{"version":3,"sources":["license.js","loader.js","alias.lint-test.js","binding.lint-test.js","cache.lint-test.js","chains.lint-test.js","computed.lint-test.js","container.lint-test.js","container/lib/container.lint-test.js","container/lib/index.lint-test.js","container/lib/registry.lint-test.js","container/tests/container_test.js","container/tests/container_test.lint-test.js","container/tests/owner_test.js","container/tests/owner_test.lint-test.js","container/tests/registry_test.js","container/tests/registry_test.lint-test.js","core.lint-test.js","dependent_keys.lint-test.js","deprecate_property.lint-test.js","descriptor.lint-test.js","ember-application/lib/index.lint-test.js","ember-application/lib/initializers/dom-templates.lint-test.js","ember-application/lib/system/application-instance.lint-test.js","ember-application/lib/system/application.lint-test.js","ember-application/lib/system/engine-instance.lint-test.js","ember-application/lib/system/engine-parent.lint-test.js","ember-application/lib/system/engine.lint-test.js","ember-application/lib/system/resolver.lint-test.js","ember-application/lib/utils/validate-type.lint-test.js","ember-application/tests/system/application_instance_test.js","ember-application/tests/system/application_instance_test.lint-test.js","ember-application/tests/system/application_test.js","ember-application/tests/system/application_test.lint-test.js","ember-application/tests/system/bootstrap-test.js","ember-application/tests/system/bootstrap-test.lint-test.js","ember-application/tests/system/dependency_injection/custom_resolver_test.js","ember-application/tests/system/dependency_injection/custom_resolver_test.lint-test.js","ember-application/tests/system/dependency_injection/default_resolver_test.js","ember-application/tests/system/dependency_injection/default_resolver_test.lint-test.js","ember-application/tests/system/dependency_injection/normalization_test.js","ember-application/tests/system/dependency_injection/normalization_test.lint-test.js","ember-application/tests/system/dependency_injection/to_string_test.js","ember-application/tests/system/dependency_injection/to_string_test.lint-test.js","ember-application/tests/system/dependency_injection_test.js","ember-application/tests/system/dependency_injection_test.lint-test.js","ember-application/tests/system/engine_initializers_test.js","ember-application/tests/system/engine_initializers_test.lint-test.js","ember-application/tests/system/engine_instance_initializers_test.js","ember-application/tests/system/engine_instance_initializers_test.lint-test.js","ember-application/tests/system/engine_instance_test.js","ember-application/tests/system/engine_instance_test.lint-test.js","ember-application/tests/system/engine_parent_test.js","ember-application/tests/system/engine_parent_test.lint-test.js","ember-application/tests/system/engine_test.js","ember-application/tests/system/engine_test.lint-test.js","ember-application/tests/system/initializers_test.js","ember-application/tests/system/initializers_test.lint-test.js","ember-application/tests/system/instance_initializers_test.js","ember-application/tests/system/instance_initializers_test.lint-test.js","ember-application/tests/system/logging_test.js","ember-application/tests/system/logging_test.lint-test.js","ember-application/tests/system/readiness_test.js","ember-application/tests/system/readiness_test.lint-test.js","ember-application/tests/system/reset_test.js","ember-application/tests/system/reset_test.lint-test.js","ember-application/tests/system/visit_test.js","ember-application/tests/system/visit_test.lint-test.js","ember-application/tests/test-helpers/registry-check.js","ember-application/tests/test-helpers/registry-check.lint-test.js","ember-babel.js","ember-console.lint-test.js","ember-console/lib/index.lint-test.js","ember-debug/deprecate.lint-test.js","ember-debug/error.lint-test.js","ember-debug/features.lint-test.js","ember-debug/handlers.lint-test.js","ember-debug/index.lint-test.js","ember-debug/lib/deprecate.lint-test.js","ember-debug/lib/error.lint-test.js","ember-debug/lib/features.lint-test.js","ember-debug/lib/handlers.lint-test.js","ember-debug/lib/index.lint-test.js","ember-debug/lib/testing.lint-test.js","ember-debug/lib/warn.lint-test.js","ember-debug/testing.lint-test.js","ember-debug/tests/error_test.js","ember-debug/tests/error_test.lint-test.js","ember-debug/tests/handlers-test.js","ember-debug/tests/handlers-test.lint-test.js","ember-debug/tests/main_test.js","ember-debug/tests/main_test.lint-test.js","ember-debug/tests/warn_if_using_stripped_feature_flags_test.js","ember-debug/tests/warn_if_using_stripped_feature_flags_test.lint-test.js","ember-debug/warn.lint-test.js","ember-dev/test-helper/assertion.js","ember-dev/test-helper/debug.js","ember-dev/test-helper/deprecation.js","ember-dev/test-helper/index.js","ember-dev/test-helper/method-call-tracker.js","ember-dev/test-helper/remaining-template.js","ember-dev/test-helper/remaining-view.js","ember-dev/test-helper/run-loop.js","ember-dev/test-helper/setup-qunit.js","ember-dev/test-helper/utils.js","ember-dev/test-helper/warning.js","ember-environment.lint-test.js","ember-environment/lib/global.lint-test.js","ember-environment/lib/index.lint-test.js","ember-environment/lib/utils.lint-test.js","ember-extension-support/lib/container_debug_adapter.lint-test.js","ember-extension-support/lib/data_adapter.lint-test.js","ember-extension-support/lib/index.lint-test.js","ember-extension-support/tests/container_debug_adapter_test.js","ember-extension-support/tests/container_debug_adapter_test.lint-test.js","ember-extension-support/tests/data_adapter_test.js","ember-extension-support/tests/data_adapter_test.lint-test.js","ember-glimmer/tests/integration/application/actions-test.js","ember-glimmer/tests/integration/application/actions-test.lint-test.js","ember-glimmer/tests/integration/application/engine-test.js","ember-glimmer/tests/integration/application/engine-test.lint-test.js","ember-glimmer/tests/integration/application/rendering-test.js","ember-glimmer/tests/integration/application/rendering-test.lint-test.js","ember-glimmer/tests/integration/binding_integration_test.js","ember-glimmer/tests/integration/binding_integration_test.lint-test.js","ember-glimmer/tests/integration/components/append-test.js","ember-glimmer/tests/integration/components/append-test.lint-test.js","ember-glimmer/tests/integration/components/attribute-bindings-test.js","ember-glimmer/tests/integration/components/attribute-bindings-test.lint-test.js","ember-glimmer/tests/integration/components/attrs-lookup-test.js","ember-glimmer/tests/integration/components/attrs-lookup-test.lint-test.js","ember-glimmer/tests/integration/components/class-bindings-test.js","ember-glimmer/tests/integration/components/class-bindings-test.lint-test.js","ember-glimmer/tests/integration/components/contextual-components-test.js","ember-glimmer/tests/integration/components/contextual-components-test.lint-test.js","ember-glimmer/tests/integration/components/curly-components-test.js","ember-glimmer/tests/integration/components/curly-components-test.lint-test.js","ember-glimmer/tests/integration/components/destroy-test.js","ember-glimmer/tests/integration/components/destroy-test.lint-test.js","ember-glimmer/tests/integration/components/dynamic-components-test.js","ember-glimmer/tests/integration/components/dynamic-components-test.lint-test.js","ember-glimmer/tests/integration/components/fragment-components-test.js","ember-glimmer/tests/integration/components/fragment-components-test.lint-test.js","ember-glimmer/tests/integration/components/instrumentation-compile-test.js","ember-glimmer/tests/integration/components/instrumentation-compile-test.lint-test.js","ember-glimmer/tests/integration/components/instrumentation-test.js","ember-glimmer/tests/integration/components/instrumentation-test.lint-test.js","ember-glimmer/tests/integration/components/life-cycle-test.js","ember-glimmer/tests/integration/components/life-cycle-test.lint-test.js","ember-glimmer/tests/integration/components/link-to-test.js","ember-glimmer/tests/integration/components/link-to-test.lint-test.js","ember-glimmer/tests/integration/components/local-lookup-test.js","ember-glimmer/tests/integration/components/local-lookup-test.lint-test.js","ember-glimmer/tests/integration/components/render-to-element-test.js","ember-glimmer/tests/integration/components/render-to-element-test.lint-test.js","ember-glimmer/tests/integration/components/target-action-test.js","ember-glimmer/tests/integration/components/target-action-test.lint-test.js","ember-glimmer/tests/integration/components/utils-test.js","ember-glimmer/tests/integration/components/utils-test.lint-test.js","ember-glimmer/tests/integration/components/web-component-fallback-test.js","ember-glimmer/tests/integration/components/web-component-fallback-test.lint-test.js","ember-glimmer/tests/integration/components/will-destroy-element-hook-test.js","ember-glimmer/tests/integration/components/will-destroy-element-hook-test.lint-test.js","ember-glimmer/tests/integration/content-test.js","ember-glimmer/tests/integration/content-test.lint-test.js","ember-glimmer/tests/integration/custom-component-manager-test.js","ember-glimmer/tests/integration/custom-component-manager-test.lint-test.js","ember-glimmer/tests/integration/event-dispatcher-test.js","ember-glimmer/tests/integration/event-dispatcher-test.lint-test.js","ember-glimmer/tests/integration/helpers/-class-test.js","ember-glimmer/tests/integration/helpers/-class-test.lint-test.js","ember-glimmer/tests/integration/helpers/closure-action-test.js","ember-glimmer/tests/integration/helpers/closure-action-test.lint-test.js","ember-glimmer/tests/integration/helpers/concat-test.js","ember-glimmer/tests/integration/helpers/concat-test.lint-test.js","ember-glimmer/tests/integration/helpers/custom-helper-test.js","ember-glimmer/tests/integration/helpers/custom-helper-test.lint-test.js","ember-glimmer/tests/integration/helpers/element-action-test.js","ember-glimmer/tests/integration/helpers/element-action-test.lint-test.js","ember-glimmer/tests/integration/helpers/get-test.js","ember-glimmer/tests/integration/helpers/get-test.lint-test.js","ember-glimmer/tests/integration/helpers/hash-test.js","ember-glimmer/tests/integration/helpers/hash-test.lint-test.js","ember-glimmer/tests/integration/helpers/if-unless-test.js","ember-glimmer/tests/integration/helpers/if-unless-test.lint-test.js","ember-glimmer/tests/integration/helpers/input-test.js","ember-glimmer/tests/integration/helpers/input-test.lint-test.js","ember-glimmer/tests/integration/helpers/loc-test.js","ember-glimmer/tests/integration/helpers/loc-test.lint-test.js","ember-glimmer/tests/integration/helpers/log-test.js","ember-glimmer/tests/integration/helpers/log-test.lint-test.js","ember-glimmer/tests/integration/helpers/mut-test.js","ember-glimmer/tests/integration/helpers/mut-test.lint-test.js","ember-glimmer/tests/integration/helpers/partial-test.js","ember-glimmer/tests/integration/helpers/partial-test.lint-test.js","ember-glimmer/tests/integration/helpers/readonly-test.js","ember-glimmer/tests/integration/helpers/readonly-test.lint-test.js","ember-glimmer/tests/integration/helpers/render-test.js","ember-glimmer/tests/integration/helpers/render-test.lint-test.js","ember-glimmer/tests/integration/helpers/text-area-test.js","ember-glimmer/tests/integration/helpers/text-area-test.lint-test.js","ember-glimmer/tests/integration/helpers/unbound-test.js","ember-glimmer/tests/integration/helpers/unbound-test.lint-test.js","ember-glimmer/tests/integration/helpers/yield-test.js","ember-glimmer/tests/integration/helpers/yield-test.lint-test.js","ember-glimmer/tests/integration/input-test.js","ember-glimmer/tests/integration/input-test.lint-test.js","ember-glimmer/tests/integration/mount-test.js","ember-glimmer/tests/integration/mount-test.lint-test.js","ember-glimmer/tests/integration/outlet-test.js","ember-glimmer/tests/integration/outlet-test.lint-test.js","ember-glimmer/tests/integration/refinements-test.js","ember-glimmer/tests/integration/refinements-test.lint-test.js","ember-glimmer/tests/integration/svg-test.js","ember-glimmer/tests/integration/svg-test.lint-test.js","ember-glimmer/tests/integration/syntax/each-in-test.js","ember-glimmer/tests/integration/syntax/each-in-test.lint-test.js","ember-glimmer/tests/integration/syntax/each-test.js","ember-glimmer/tests/integration/syntax/each-test.lint-test.js","ember-glimmer/tests/integration/syntax/experimental-syntax-test.js","ember-glimmer/tests/integration/syntax/experimental-syntax-test.lint-test.js","ember-glimmer/tests/integration/syntax/if-unless-test.js","ember-glimmer/tests/integration/syntax/if-unless-test.lint-test.js","ember-glimmer/tests/integration/syntax/in-element-test.js","ember-glimmer/tests/integration/syntax/in-element-test.lint-test.js","ember-glimmer/tests/integration/syntax/with-dynamic-var-test.js","ember-glimmer/tests/integration/syntax/with-dynamic-var-test.lint-test.js","ember-glimmer/tests/integration/syntax/with-test.js","ember-glimmer/tests/integration/syntax/with-test.lint-test.js","ember-glimmer/tests/unit/layout-cache-test.js","ember-glimmer/tests/unit/layout-cache-test.lint-test.js","ember-glimmer/tests/unit/outlet-test.js","ember-glimmer/tests/unit/outlet-test.lint-test.js","ember-glimmer/tests/unit/template-factory-test.js","ember-glimmer/tests/unit/template-factory-test.lint-test.js","ember-glimmer/tests/unit/utils/debug-stack-test.js","ember-glimmer/tests/unit/utils/debug-stack-test.lint-test.js","ember-glimmer/tests/unit/utils/iterable-test.js","ember-glimmer/tests/unit/utils/iterable-test.lint-test.js","ember-glimmer/tests/utils/abstract-test-case.js","ember-glimmer/tests/utils/abstract-test-case.lint-test.js","ember-glimmer/tests/utils/helpers.js","ember-glimmer/tests/utils/helpers.lint-test.js","ember-glimmer/tests/utils/shared-conditional-tests.js","ember-glimmer/tests/utils/shared-conditional-tests.lint-test.js","ember-glimmer/tests/utils/string-test.js","ember-glimmer/tests/utils/string-test.lint-test.js","ember-glimmer/tests/utils/test-case.js","ember-glimmer/tests/utils/test-case.lint-test.js","ember-glimmer/tests/utils/test-helpers.js","ember-glimmer/tests/utils/test-helpers.lint-test.js","ember-metal/lib/alias.lint-test.js","ember-metal/lib/binding.lint-test.js","ember-metal/lib/cache.lint-test.js","ember-metal/lib/chains.lint-test.js","ember-metal/lib/computed.lint-test.js","ember-metal/lib/core.lint-test.js","ember-metal/lib/dependent_keys.lint-test.js","ember-metal/lib/deprecate_property.lint-test.js","ember-metal/lib/descriptor.lint-test.js","ember-metal/lib/error_handler.lint-test.js","ember-metal/lib/events.lint-test.js","ember-metal/lib/expand_properties.lint-test.js","ember-metal/lib/get_properties.lint-test.js","ember-metal/lib/index.lint-test.js","ember-metal/lib/injected_property.lint-test.js","ember-metal/lib/instrumentation.lint-test.js","ember-metal/lib/is_blank.lint-test.js","ember-metal/lib/is_empty.lint-test.js","ember-metal/lib/is_none.lint-test.js","ember-metal/lib/is_present.lint-test.js","ember-metal/lib/is_proxy.lint-test.js","ember-metal/lib/libraries.lint-test.js","ember-metal/lib/map.lint-test.js","ember-metal/lib/merge.lint-test.js","ember-metal/lib/meta.lint-test.js","ember-metal/lib/meta_listeners.lint-test.js","ember-metal/lib/mixin.lint-test.js","ember-metal/lib/observer.lint-test.js","ember-metal/lib/observer_set.lint-test.js","ember-metal/lib/path_cache.lint-test.js","ember-metal/lib/properties.lint-test.js","ember-metal/lib/property_events.lint-test.js","ember-metal/lib/property_get.lint-test.js","ember-metal/lib/property_set.lint-test.js","ember-metal/lib/replace.lint-test.js","ember-metal/lib/run_loop.lint-test.js","ember-metal/lib/set_properties.lint-test.js","ember-metal/lib/tags.lint-test.js","ember-metal/lib/transaction.lint-test.js","ember-metal/lib/watch_key.lint-test.js","ember-metal/lib/watch_path.lint-test.js","ember-metal/lib/watching.lint-test.js","ember-metal/lib/weak_map.lint-test.js","ember-metal/tests/accessors/get_path_test.js","ember-metal/tests/accessors/get_path_test.lint-test.js","ember-metal/tests/accessors/get_properties_test.js","ember-metal/tests/accessors/get_properties_test.lint-test.js","ember-metal/tests/accessors/get_test.js","ember-metal/tests/accessors/get_test.lint-test.js","ember-metal/tests/accessors/is_global_path_test.js","ember-metal/tests/accessors/is_global_path_test.lint-test.js","ember-metal/tests/accessors/mandatory_setters_test.js","ember-metal/tests/accessors/mandatory_setters_test.lint-test.js","ember-metal/tests/accessors/set_path_test.js","ember-metal/tests/accessors/set_path_test.lint-test.js","ember-metal/tests/accessors/set_test.js","ember-metal/tests/accessors/set_test.lint-test.js","ember-metal/tests/alias_test.js","ember-metal/tests/alias_test.lint-test.js","ember-metal/tests/binding/connect_test.js","ember-metal/tests/binding/connect_test.lint-test.js","ember-metal/tests/binding/sync_test.js","ember-metal/tests/binding/sync_test.lint-test.js","ember-metal/tests/cache_test.js","ember-metal/tests/cache_test.lint-test.js","ember-metal/tests/chains_test.js","ember-metal/tests/chains_test.lint-test.js","ember-metal/tests/computed_test.js","ember-metal/tests/computed_test.lint-test.js","ember-metal/tests/descriptor_test.js","ember-metal/tests/descriptor_test.lint-test.js","ember-metal/tests/events_test.js","ember-metal/tests/events_test.lint-test.js","ember-metal/tests/expand_properties_test.js","ember-metal/tests/expand_properties_test.lint-test.js","ember-metal/tests/injected_property_test.js","ember-metal/tests/injected_property_test.lint-test.js","ember-metal/tests/instrumentation_test.js","ember-metal/tests/instrumentation_test.lint-test.js","ember-metal/tests/is_blank_test.js","ember-metal/tests/is_blank_test.lint-test.js","ember-metal/tests/is_empty_test.js","ember-metal/tests/is_empty_test.lint-test.js","ember-metal/tests/is_none_test.js","ember-metal/tests/is_none_test.lint-test.js","ember-metal/tests/is_present_test.js","ember-metal/tests/is_present_test.lint-test.js","ember-metal/tests/libraries_test.js","ember-metal/tests/libraries_test.lint-test.js","ember-metal/tests/main_test.js","ember-metal/tests/main_test.lint-test.js","ember-metal/tests/map_test.js","ember-metal/tests/map_test.lint-test.js","ember-metal/tests/meta_test.js","ember-metal/tests/meta_test.lint-test.js","ember-metal/tests/mixin/alias_method_test.js","ember-metal/tests/mixin/alias_method_test.lint-test.js","ember-metal/tests/mixin/apply_test.js","ember-metal/tests/mixin/apply_test.lint-test.js","ember-metal/tests/mixin/computed_test.js","ember-metal/tests/mixin/computed_test.lint-test.js","ember-metal/tests/mixin/concatenated_properties_test.js","ember-metal/tests/mixin/concatenated_properties_test.lint-test.js","ember-metal/tests/mixin/detect_test.js","ember-metal/tests/mixin/detect_test.lint-test.js","ember-metal/tests/mixin/introspection_test.js","ember-metal/tests/mixin/introspection_test.lint-test.js","ember-metal/tests/mixin/merged_properties_test.js","ember-metal/tests/mixin/merged_properties_test.lint-test.js","ember-metal/tests/mixin/method_test.js","ember-metal/tests/mixin/method_test.lint-test.js","ember-metal/tests/mixin/observer_test.js","ember-metal/tests/mixin/observer_test.lint-test.js","ember-metal/tests/mixin/reopen_test.js","ember-metal/tests/mixin/reopen_test.lint-test.js","ember-metal/tests/mixin/required_test.js","ember-metal/tests/mixin/required_test.lint-test.js","ember-metal/tests/mixin/without_test.js","ember-metal/tests/mixin/without_test.lint-test.js","ember-metal/tests/observer_test.js","ember-metal/tests/observer_test.lint-test.js","ember-metal/tests/performance_test.js","ember-metal/tests/performance_test.lint-test.js","ember-metal/tests/properties_test.js","ember-metal/tests/properties_test.lint-test.js","ember-metal/tests/property_did_change_hook.js","ember-metal/tests/property_did_change_hook.lint-test.js","ember-metal/tests/run_loop/add_queue_test.js","ember-metal/tests/run_loop/add_queue_test.lint-test.js","ember-metal/tests/run_loop/debounce_test.js","ember-metal/tests/run_loop/debounce_test.lint-test.js","ember-metal/tests/run_loop/later_test.js","ember-metal/tests/run_loop/later_test.lint-test.js","ember-metal/tests/run_loop/next_test.js","ember-metal/tests/run_loop/next_test.lint-test.js","ember-metal/tests/run_loop/once_test.js","ember-metal/tests/run_loop/once_test.lint-test.js","ember-metal/tests/run_loop/onerror_test.js","ember-metal/tests/run_loop/onerror_test.lint-test.js","ember-metal/tests/run_loop/run_bind_test.js","ember-metal/tests/run_loop/run_bind_test.lint-test.js","ember-metal/tests/run_loop/run_test.js","ember-metal/tests/run_loop/run_test.lint-test.js","ember-metal/tests/run_loop/schedule_test.js","ember-metal/tests/run_loop/schedule_test.lint-test.js","ember-metal/tests/run_loop/sync_test.js","ember-metal/tests/run_loop/sync_test.lint-test.js","ember-metal/tests/run_loop/unwind_test.js","ember-metal/tests/run_loop/unwind_test.lint-test.js","ember-metal/tests/set_properties_test.js","ember-metal/tests/set_properties_test.lint-test.js","ember-metal/tests/watching/is_watching_test.js","ember-metal/tests/watching/is_watching_test.lint-test.js","ember-metal/tests/watching/unwatch_test.js","ember-metal/tests/watching/unwatch_test.lint-test.js","ember-metal/tests/watching/watch_test.js","ember-metal/tests/watching/watch_test.lint-test.js","ember-metal/tests/weak_map_test.js","ember-metal/tests/weak_map_test.lint-test.js","ember-routing/lib/ext/controller.lint-test.js","ember-routing/lib/ext/run_loop.lint-test.js","ember-routing/lib/index.lint-test.js","ember-routing/lib/location/api.lint-test.js","ember-routing/lib/location/auto_location.lint-test.js","ember-routing/lib/location/hash_location.lint-test.js","ember-routing/lib/location/history_location.lint-test.js","ember-routing/lib/location/none_location.lint-test.js","ember-routing/lib/location/util.lint-test.js","ember-routing/lib/services/router.lint-test.js","ember-routing/lib/services/routing.lint-test.js","ember-routing/lib/system/cache.lint-test.js","ember-routing/lib/system/controller_for.lint-test.js","ember-routing/lib/system/dsl.lint-test.js","ember-routing/lib/system/generate_controller.lint-test.js","ember-routing/lib/system/query_params.lint-test.js","ember-routing/lib/system/route.lint-test.js","ember-routing/lib/system/router.lint-test.js","ember-routing/lib/system/router_state.lint-test.js","ember-routing/lib/utils.lint-test.js","ember-routing/tests/ext/controller_test.js","ember-routing/tests/ext/controller_test.lint-test.js","ember-routing/tests/location/auto_location_test.js","ember-routing/tests/location/auto_location_test.lint-test.js","ember-routing/tests/location/hash_location_test.js","ember-routing/tests/location/hash_location_test.lint-test.js","ember-routing/tests/location/history_location_test.js","ember-routing/tests/location/history_location_test.lint-test.js","ember-routing/tests/location/none_location_test.js","ember-routing/tests/location/none_location_test.lint-test.js","ember-routing/tests/location/util_test.js","ember-routing/tests/location/util_test.lint-test.js","ember-routing/tests/system/cache_test.js","ember-routing/tests/system/cache_test.lint-test.js","ember-routing/tests/system/controller_for_test.js","ember-routing/tests/system/controller_for_test.lint-test.js","ember-routing/tests/system/dsl_test.js","ember-routing/tests/system/dsl_test.lint-test.js","ember-routing/tests/system/route_test.js","ember-routing/tests/system/route_test.lint-test.js","ember-routing/tests/system/router_test.js","ember-routing/tests/system/router_test.lint-test.js","ember-routing/tests/utils_test.js","ember-routing/tests/utils_test.lint-test.js","ember-runtime/lib/compare.lint-test.js","ember-runtime/lib/computed/computed_macros.lint-test.js","ember-runtime/lib/computed/reduce_computed_macros.lint-test.js","ember-runtime/lib/controllers/controller.lint-test.js","ember-runtime/lib/copy.lint-test.js","ember-runtime/lib/ext/function.lint-test.js","ember-runtime/lib/ext/rsvp.lint-test.js","ember-runtime/lib/ext/string.lint-test.js","ember-runtime/lib/index.lint-test.js","ember-runtime/lib/inject.lint-test.js","ember-runtime/lib/is-equal.lint-test.js","ember-runtime/lib/mixins/-proxy.lint-test.js","ember-runtime/lib/mixins/action_handler.lint-test.js","ember-runtime/lib/mixins/array.lint-test.js","ember-runtime/lib/mixins/comparable.lint-test.js","ember-runtime/lib/mixins/container_proxy.lint-test.js","ember-runtime/lib/mixins/controller.lint-test.js","ember-runtime/lib/mixins/copyable.lint-test.js","ember-runtime/lib/mixins/enumerable.lint-test.js","ember-runtime/lib/mixins/evented.lint-test.js","ember-runtime/lib/mixins/freezable.lint-test.js","ember-runtime/lib/mixins/mutable_array.lint-test.js","ember-runtime/lib/mixins/mutable_enumerable.lint-test.js","ember-runtime/lib/mixins/observable.lint-test.js","ember-runtime/lib/mixins/promise_proxy.lint-test.js","ember-runtime/lib/mixins/registry_proxy.lint-test.js","ember-runtime/lib/mixins/target_action_support.lint-test.js","ember-runtime/lib/string_registry.lint-test.js","ember-runtime/lib/system/application.lint-test.js","ember-runtime/lib/system/array_proxy.lint-test.js","ember-runtime/lib/system/core_object.lint-test.js","ember-runtime/lib/system/lazy_load.lint-test.js","ember-runtime/lib/system/namespace.lint-test.js","ember-runtime/lib/system/native_array.lint-test.js","ember-runtime/lib/system/object.lint-test.js","ember-runtime/lib/system/object_proxy.lint-test.js","ember-runtime/lib/system/service.lint-test.js","ember-runtime/lib/system/string.lint-test.js","ember-runtime/lib/utils.lint-test.js","ember-runtime/tests/computed/computed_macros_test.js","ember-runtime/tests/computed/computed_macros_test.lint-test.js","ember-runtime/tests/computed/reduce_computed_macros_test.js","ember-runtime/tests/computed/reduce_computed_macros_test.lint-test.js","ember-runtime/tests/controllers/controller_test.js","ember-runtime/tests/controllers/controller_test.lint-test.js","ember-runtime/tests/core/compare_test.js","ember-runtime/tests/core/compare_test.lint-test.js","ember-runtime/tests/core/copy_test.js","ember-runtime/tests/core/copy_test.lint-test.js","ember-runtime/tests/core/isEqual_test.js","ember-runtime/tests/core/isEqual_test.lint-test.js","ember-runtime/tests/core/is_array_test.js","ember-runtime/tests/core/is_array_test.lint-test.js","ember-runtime/tests/core/is_empty_test.js","ember-runtime/tests/core/is_empty_test.lint-test.js","ember-runtime/tests/core/type_of_test.js","ember-runtime/tests/core/type_of_test.lint-test.js","ember-runtime/tests/ext/function_test.js","ember-runtime/tests/ext/function_test.lint-test.js","ember-runtime/tests/ext/mixin_test.js","ember-runtime/tests/ext/mixin_test.lint-test.js","ember-runtime/tests/ext/rsvp_test.js","ember-runtime/tests/ext/rsvp_test.lint-test.js","ember-runtime/tests/inject_test.js","ember-runtime/tests/inject_test.lint-test.js","ember-runtime/tests/legacy_1x/mixins/observable/chained_test.js","ember-runtime/tests/legacy_1x/mixins/observable/chained_test.lint-test.js","ember-runtime/tests/legacy_1x/mixins/observable/observable_test.js","ember-runtime/tests/legacy_1x/mixins/observable/observable_test.lint-test.js","ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test.js","ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test.lint-test.js","ember-runtime/tests/legacy_1x/mixins/observable/propertyChanges_test.js","ember-runtime/tests/legacy_1x/mixins/observable/propertyChanges_test.lint-test.js","ember-runtime/tests/legacy_1x/system/binding_test.js","ember-runtime/tests/legacy_1x/system/binding_test.lint-test.js","ember-runtime/tests/legacy_1x/system/object/base_test.js","ember-runtime/tests/legacy_1x/system/object/base_test.lint-test.js","ember-runtime/tests/legacy_1x/system/object/bindings_test.js","ember-runtime/tests/legacy_1x/system/object/bindings_test.lint-test.js","ember-runtime/tests/legacy_1x/system/object/concatenated_test.js","ember-runtime/tests/legacy_1x/system/object/concatenated_test.lint-test.js","ember-runtime/tests/legacy_1x/system/run_loop_test.js","ember-runtime/tests/legacy_1x/system/run_loop_test.lint-test.js","ember-runtime/tests/main_test.js","ember-runtime/tests/main_test.lint-test.js","ember-runtime/tests/mixins/array_test.js","ember-runtime/tests/mixins/array_test.lint-test.js","ember-runtime/tests/mixins/comparable_test.js","ember-runtime/tests/mixins/comparable_test.lint-test.js","ember-runtime/tests/mixins/container_proxy_test.js","ember-runtime/tests/mixins/container_proxy_test.lint-test.js","ember-runtime/tests/mixins/copyable_test.js","ember-runtime/tests/mixins/copyable_test.lint-test.js","ember-runtime/tests/mixins/enumerable_test.js","ember-runtime/tests/mixins/enumerable_test.lint-test.js","ember-runtime/tests/mixins/freezable_test.js","ember-runtime/tests/mixins/freezable_test.lint-test.js","ember-runtime/tests/mixins/mutable_array_test.js","ember-runtime/tests/mixins/mutable_array_test.lint-test.js","ember-runtime/tests/mixins/mutable_enumerable_test.js","ember-runtime/tests/mixins/mutable_enumerable_test.lint-test.js","ember-runtime/tests/mixins/observable_test.js","ember-runtime/tests/mixins/observable_test.lint-test.js","ember-runtime/tests/mixins/promise_proxy_test.js","ember-runtime/tests/mixins/promise_proxy_test.lint-test.js","ember-runtime/tests/mixins/target_action_support_test.js","ember-runtime/tests/mixins/target_action_support_test.lint-test.js","ember-runtime/tests/suites/array.js","ember-runtime/tests/suites/array.lint-test.js","ember-runtime/tests/suites/array/includes.js","ember-runtime/tests/suites/array/includes.lint-test.js","ember-runtime/tests/suites/array/indexOf.js","ember-runtime/tests/suites/array/indexOf.lint-test.js","ember-runtime/tests/suites/array/lastIndexOf.js","ember-runtime/tests/suites/array/lastIndexOf.lint-test.js","ember-runtime/tests/suites/array/objectAt.js","ember-runtime/tests/suites/array/objectAt.lint-test.js","ember-runtime/tests/suites/copyable.js","ember-runtime/tests/suites/copyable.lint-test.js","ember-runtime/tests/suites/copyable/copy.js","ember-runtime/tests/suites/copyable/copy.lint-test.js","ember-runtime/tests/suites/copyable/frozenCopy.js","ember-runtime/tests/suites/copyable/frozenCopy.lint-test.js","ember-runtime/tests/suites/enumerable.js","ember-runtime/tests/suites/enumerable.lint-test.js","ember-runtime/tests/suites/enumerable/any.js","ember-runtime/tests/suites/enumerable/any.lint-test.js","ember-runtime/tests/suites/enumerable/compact.js","ember-runtime/tests/suites/enumerable/compact.lint-test.js","ember-runtime/tests/suites/enumerable/contains.js","ember-runtime/tests/suites/enumerable/contains.lint-test.js","ember-runtime/tests/suites/enumerable/every.js","ember-runtime/tests/suites/enumerable/every.lint-test.js","ember-runtime/tests/suites/enumerable/filter.js","ember-runtime/tests/suites/enumerable/filter.lint-test.js","ember-runtime/tests/suites/enumerable/find.js","ember-runtime/tests/suites/enumerable/find.lint-test.js","ember-runtime/tests/suites/enumerable/firstObject.js","ember-runtime/tests/suites/enumerable/firstObject.lint-test.js","ember-runtime/tests/suites/enumerable/forEach.js","ember-runtime/tests/suites/enumerable/forEach.lint-test.js","ember-runtime/tests/suites/enumerable/includes.js","ember-runtime/tests/suites/enumerable/includes.lint-test.js","ember-runtime/tests/suites/enumerable/invoke.js","ember-runtime/tests/suites/enumerable/invoke.lint-test.js","ember-runtime/tests/suites/enumerable/is_any.js","ember-runtime/tests/suites/enumerable/is_any.lint-test.js","ember-runtime/tests/suites/enumerable/lastObject.js","ember-runtime/tests/suites/enumerable/lastObject.lint-test.js","ember-runtime/tests/suites/enumerable/map.js","ember-runtime/tests/suites/enumerable/map.lint-test.js","ember-runtime/tests/suites/enumerable/mapBy.js","ember-runtime/tests/suites/enumerable/mapBy.lint-test.js","ember-runtime/tests/suites/enumerable/reduce.js","ember-runtime/tests/suites/enumerable/reduce.lint-test.js","ember-runtime/tests/suites/enumerable/reject.js","ember-runtime/tests/suites/enumerable/reject.lint-test.js","ember-runtime/tests/suites/enumerable/sortBy.js","ember-runtime/tests/suites/enumerable/sortBy.lint-test.js","ember-runtime/tests/suites/enumerable/toArray.js","ember-runtime/tests/suites/enumerable/toArray.lint-test.js","ember-runtime/tests/suites/enumerable/uniq.js","ember-runtime/tests/suites/enumerable/uniq.lint-test.js","ember-runtime/tests/suites/enumerable/uniqBy.js","ember-runtime/tests/suites/enumerable/uniqBy.lint-test.js","ember-runtime/tests/suites/enumerable/without.js","ember-runtime/tests/suites/enumerable/without.lint-test.js","ember-runtime/tests/suites/mutable_array.js","ember-runtime/tests/suites/mutable_array.lint-test.js","ember-runtime/tests/suites/mutable_array/addObject.js","ember-runtime/tests/suites/mutable_array/addObject.lint-test.js","ember-runtime/tests/suites/mutable_array/clear.js","ember-runtime/tests/suites/mutable_array/clear.lint-test.js","ember-runtime/tests/suites/mutable_array/insertAt.js","ember-runtime/tests/suites/mutable_array/insertAt.lint-test.js","ember-runtime/tests/suites/mutable_array/popObject.js","ember-runtime/tests/suites/mutable_array/popObject.lint-test.js","ember-runtime/tests/suites/mutable_array/pushObject.js","ember-runtime/tests/suites/mutable_array/pushObject.lint-test.js","ember-runtime/tests/suites/mutable_array/pushObjects.js","ember-runtime/tests/suites/mutable_array/pushObjects.lint-test.js","ember-runtime/tests/suites/mutable_array/removeAt.js","ember-runtime/tests/suites/mutable_array/removeAt.lint-test.js","ember-runtime/tests/suites/mutable_array/removeObject.js","ember-runtime/tests/suites/mutable_array/removeObject.lint-test.js","ember-runtime/tests/suites/mutable_array/replace.js","ember-runtime/tests/suites/mutable_array/replace.lint-test.js","ember-runtime/tests/suites/mutable_array/reverseObjects.js","ember-runtime/tests/suites/mutable_array/reverseObjects.lint-test.js","ember-runtime/tests/suites/mutable_array/setObjects.js","ember-runtime/tests/suites/mutable_array/setObjects.lint-test.js","ember-runtime/tests/suites/mutable_array/shiftObject.js","ember-runtime/tests/suites/mutable_array/shiftObject.lint-test.js","ember-runtime/tests/suites/mutable_array/unshiftObject.js","ember-runtime/tests/suites/mutable_array/unshiftObject.lint-test.js","ember-runtime/tests/suites/mutable_array/unshiftObjects.js","ember-runtime/tests/suites/mutable_array/unshiftObjects.lint-test.js","ember-runtime/tests/suites/mutable_enumerable.js","ember-runtime/tests/suites/mutable_enumerable.lint-test.js","ember-runtime/tests/suites/mutable_enumerable/addObject.js","ember-runtime/tests/suites/mutable_enumerable/addObject.lint-test.js","ember-runtime/tests/suites/mutable_enumerable/removeObject.js","ember-runtime/tests/suites/mutable_enumerable/removeObject.lint-test.js","ember-runtime/tests/suites/mutable_enumerable/removeObjects.js","ember-runtime/tests/suites/mutable_enumerable/removeObjects.lint-test.js","ember-runtime/tests/suites/suite.js","ember-runtime/tests/suites/suite.lint-test.js","ember-runtime/tests/system/application/base_test.js","ember-runtime/tests/system/application/base_test.lint-test.js","ember-runtime/tests/system/array_proxy/arranged_content_test.js","ember-runtime/tests/system/array_proxy/arranged_content_test.lint-test.js","ember-runtime/tests/system/array_proxy/content_change_test.js","ember-runtime/tests/system/array_proxy/content_change_test.lint-test.js","ember-runtime/tests/system/array_proxy/content_update_test.js","ember-runtime/tests/system/array_proxy/content_update_test.lint-test.js","ember-runtime/tests/system/array_proxy/length_test.js","ember-runtime/tests/system/array_proxy/length_test.lint-test.js","ember-runtime/tests/system/array_proxy/suite_test.js","ember-runtime/tests/system/array_proxy/suite_test.lint-test.js","ember-runtime/tests/system/array_proxy/watching_and_listening_test.js","ember-runtime/tests/system/array_proxy/watching_and_listening_test.lint-test.js","ember-runtime/tests/system/core_object_test.js","ember-runtime/tests/system/core_object_test.lint-test.js","ember-runtime/tests/system/lazy_load_test.js","ember-runtime/tests/system/lazy_load_test.lint-test.js","ember-runtime/tests/system/namespace/base_test.js","ember-runtime/tests/system/namespace/base_test.lint-test.js","ember-runtime/tests/system/native_array/a_test.js","ember-runtime/tests/system/native_array/a_test.lint-test.js","ember-runtime/tests/system/native_array/copyable_suite_test.js","ember-runtime/tests/system/native_array/copyable_suite_test.lint-test.js","ember-runtime/tests/system/native_array/replace_test.js","ember-runtime/tests/system/native_array/replace_test.lint-test.js","ember-runtime/tests/system/native_array/suite_test.js","ember-runtime/tests/system/native_array/suite_test.lint-test.js","ember-runtime/tests/system/object/computed_test.js","ember-runtime/tests/system/object/computed_test.lint-test.js","ember-runtime/tests/system/object/create_test.js","ember-runtime/tests/system/object/create_test.lint-test.js","ember-runtime/tests/system/object/destroy_test.js","ember-runtime/tests/system/object/destroy_test.lint-test.js","ember-runtime/tests/system/object/detectInstance_test.js","ember-runtime/tests/system/object/detectInstance_test.lint-test.js","ember-runtime/tests/system/object/detect_test.js","ember-runtime/tests/system/object/detect_test.lint-test.js","ember-runtime/tests/system/object/es-compatibility-test.js","ember-runtime/tests/system/object/es-compatibility-test.lint-test.js","ember-runtime/tests/system/object/events_test.js","ember-runtime/tests/system/object/events_test.lint-test.js","ember-runtime/tests/system/object/extend_test.js","ember-runtime/tests/system/object/extend_test.lint-test.js","ember-runtime/tests/system/object/observer_test.js","ember-runtime/tests/system/object/observer_test.lint-test.js","ember-runtime/tests/system/object/reopenClass_test.js","ember-runtime/tests/system/object/reopenClass_test.lint-test.js","ember-runtime/tests/system/object/reopen_test.js","ember-runtime/tests/system/object/reopen_test.lint-test.js","ember-runtime/tests/system/object/strict-mode-test.js","ember-runtime/tests/system/object/strict-mode-test.lint-test.js","ember-runtime/tests/system/object/subclasses_test.js","ember-runtime/tests/system/object/subclasses_test.lint-test.js","ember-runtime/tests/system/object/toString_test.js","ember-runtime/tests/system/object/toString_test.lint-test.js","ember-runtime/tests/system/object_proxy_test.js","ember-runtime/tests/system/object_proxy_test.lint-test.js","ember-runtime/tests/system/string/camelize_test.js","ember-runtime/tests/system/string/camelize_test.lint-test.js","ember-runtime/tests/system/string/capitalize_test.js","ember-runtime/tests/system/string/capitalize_test.lint-test.js","ember-runtime/tests/system/string/classify_test.js","ember-runtime/tests/system/string/classify_test.lint-test.js","ember-runtime/tests/system/string/dasherize_test.js","ember-runtime/tests/system/string/dasherize_test.lint-test.js","ember-runtime/tests/system/string/decamelize_test.js","ember-runtime/tests/system/string/decamelize_test.lint-test.js","ember-runtime/tests/system/string/fmt_string_test.js","ember-runtime/tests/system/string/fmt_string_test.lint-test.js","ember-runtime/tests/system/string/loc_test.js","ember-runtime/tests/system/string/loc_test.lint-test.js","ember-runtime/tests/system/string/underscore_test.js","ember-runtime/tests/system/string/underscore_test.lint-test.js","ember-runtime/tests/system/string/w_test.js","ember-runtime/tests/system/string/w_test.lint-test.js","ember-template-compiler/compat.lint-test.js","ember-template-compiler/index.lint-test.js","ember-template-compiler/lib/compat.lint-test.js","ember-template-compiler/lib/index.lint-test.js","ember-template-compiler/lib/plugins/assert-input-helper-without-block.lint-test.js","ember-template-compiler/lib/plugins/assert-reserved-named-arguments.lint-test.js","ember-template-compiler/lib/plugins/deprecate-render-model.lint-test.js","ember-template-compiler/lib/plugins/deprecate-render.lint-test.js","ember-template-compiler/lib/plugins/extract-pragma-tag.lint-test.js","ember-template-compiler/lib/plugins/index.lint-test.js","ember-template-compiler/lib/plugins/transform-action-syntax.lint-test.js","ember-template-compiler/lib/plugins/transform-angle-bracket-components.lint-test.js","ember-template-compiler/lib/plugins/transform-attrs-into-args.lint-test.js","ember-template-compiler/lib/plugins/transform-dot-component-invocation.lint-test.js","ember-template-compiler/lib/plugins/transform-each-in-into-each.lint-test.js","ember-template-compiler/lib/plugins/transform-has-block-syntax.lint-test.js","ember-template-compiler/lib/plugins/transform-inline-link-to.lint-test.js","ember-template-compiler/lib/plugins/transform-input-on-to-onEvent.lint-test.js","ember-template-compiler/lib/plugins/transform-input-type-syntax.lint-test.js","ember-template-compiler/lib/plugins/transform-old-binding-syntax.lint-test.js","ember-template-compiler/lib/plugins/transform-old-class-binding-syntax.lint-test.js","ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.lint-test.js","ember-template-compiler/lib/plugins/transform-top-level-components.lint-test.js","ember-template-compiler/lib/system/bootstrap.lint-test.js","ember-template-compiler/lib/system/calculate-location-display.lint-test.js","ember-template-compiler/lib/system/compile-options.lint-test.js","ember-template-compiler/lib/system/compile.lint-test.js","ember-template-compiler/lib/system/precompile.lint-test.js","ember-template-compiler/plugins/assert-input-helper-without-block.lint-test.js","ember-template-compiler/plugins/assert-reserved-named-arguments.lint-test.js","ember-template-compiler/plugins/deprecate-render-model.lint-test.js","ember-template-compiler/plugins/deprecate-render.lint-test.js","ember-template-compiler/plugins/extract-pragma-tag.lint-test.js","ember-template-compiler/plugins/index.lint-test.js","ember-template-compiler/plugins/transform-action-syntax.lint-test.js","ember-template-compiler/plugins/transform-angle-bracket-components.lint-test.js","ember-template-compiler/plugins/transform-attrs-into-args.lint-test.js","ember-template-compiler/plugins/transform-dot-component-invocation.lint-test.js","ember-template-compiler/plugins/transform-each-in-into-each.lint-test.js","ember-template-compiler/plugins/transform-has-block-syntax.lint-test.js","ember-template-compiler/plugins/transform-inline-link-to.lint-test.js","ember-template-compiler/plugins/transform-input-on-to-onEvent.lint-test.js","ember-template-compiler/plugins/transform-input-type-syntax.lint-test.js","ember-template-compiler/plugins/transform-old-binding-syntax.lint-test.js","ember-template-compiler/plugins/transform-old-class-binding-syntax.lint-test.js","ember-template-compiler/plugins/transform-quoted-bindings-into-just-bindings.lint-test.js","ember-template-compiler/plugins/transform-top-level-components.lint-test.js","ember-template-compiler/system/bootstrap.lint-test.js","ember-template-compiler/system/calculate-location-display.lint-test.js","ember-template-compiler/system/compile-options.lint-test.js","ember-template-compiler/system/compile.lint-test.js","ember-template-compiler/system/precompile.lint-test.js","ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js","ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.lint-test.js","ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test.js","ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test.lint-test.js","ember-template-compiler/tests/plugins/deprecate-render-model-test.js","ember-template-compiler/tests/plugins/deprecate-render-model-test.lint-test.js","ember-template-compiler/tests/plugins/deprecate-render-test.js","ember-template-compiler/tests/plugins/deprecate-render-test.lint-test.js","ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.js","ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.lint-test.js","ember-template-compiler/tests/plugins/transform-inline-link-to-test.js","ember-template-compiler/tests/plugins/transform-inline-link-to-test.lint-test.js","ember-template-compiler/tests/plugins/transform-input-on-test.js","ember-template-compiler/tests/plugins/transform-input-on-test.lint-test.js","ember-template-compiler/tests/plugins/transform-input-type-syntax-test.js","ember-template-compiler/tests/plugins/transform-input-type-syntax-test.lint-test.js","ember-template-compiler/tests/system/bootstrap-test.js","ember-template-compiler/tests/system/bootstrap-test.lint-test.js","ember-template-compiler/tests/system/compile_options_test.js","ember-template-compiler/tests/system/compile_options_test.lint-test.js","ember-testing/adapters/adapter.lint-test.js","ember-testing/adapters/qunit.lint-test.js","ember-testing/events.lint-test.js","ember-testing/ext/application.lint-test.js","ember-testing/ext/rsvp.lint-test.js","ember-testing/helpers.lint-test.js","ember-testing/helpers/and_then.lint-test.js","ember-testing/helpers/click.lint-test.js","ember-testing/helpers/current_path.lint-test.js","ember-testing/helpers/current_route_name.lint-test.js","ember-testing/helpers/current_url.lint-test.js","ember-testing/helpers/fill_in.lint-test.js","ember-testing/helpers/find.lint-test.js","ember-testing/helpers/find_with_assert.lint-test.js","ember-testing/helpers/key_event.lint-test.js","ember-testing/helpers/pause_test.lint-test.js","ember-testing/helpers/trigger_event.lint-test.js","ember-testing/helpers/visit.lint-test.js","ember-testing/helpers/wait.lint-test.js","ember-testing/index.lint-test.js","ember-testing/initializers.lint-test.js","ember-testing/lib/adapters/adapter.lint-test.js","ember-testing/lib/adapters/qunit.lint-test.js","ember-testing/lib/events.lint-test.js","ember-testing/lib/ext/application.lint-test.js","ember-testing/lib/ext/rsvp.lint-test.js","ember-testing/lib/helpers.lint-test.js","ember-testing/lib/helpers/and_then.lint-test.js","ember-testing/lib/helpers/click.lint-test.js","ember-testing/lib/helpers/current_path.lint-test.js","ember-testing/lib/helpers/current_route_name.lint-test.js","ember-testing/lib/helpers/current_url.lint-test.js","ember-testing/lib/helpers/fill_in.lint-test.js","ember-testing/lib/helpers/find.lint-test.js","ember-testing/lib/helpers/find_with_assert.lint-test.js","ember-testing/lib/helpers/key_event.lint-test.js","ember-testing/lib/helpers/pause_test.lint-test.js","ember-testing/lib/helpers/trigger_event.lint-test.js","ember-testing/lib/helpers/visit.lint-test.js","ember-testing/lib/helpers/wait.lint-test.js","ember-testing/lib/index.lint-test.js","ember-testing/lib/initializers.lint-test.js","ember-testing/lib/setup_for_testing.lint-test.js","ember-testing/lib/support.lint-test.js","ember-testing/lib/test.lint-test.js","ember-testing/lib/test/adapter.lint-test.js","ember-testing/lib/test/helpers.lint-test.js","ember-testing/lib/test/on_inject_helpers.lint-test.js","ember-testing/lib/test/pending_requests.lint-test.js","ember-testing/lib/test/promise.lint-test.js","ember-testing/lib/test/run.lint-test.js","ember-testing/lib/test/waiters.lint-test.js","ember-testing/setup_for_testing.lint-test.js","ember-testing/support.lint-test.js","ember-testing/test.lint-test.js","ember-testing/test/adapter.lint-test.js","ember-testing/test/helpers.lint-test.js","ember-testing/test/on_inject_helpers.lint-test.js","ember-testing/test/pending_requests.lint-test.js","ember-testing/test/promise.lint-test.js","ember-testing/test/run.lint-test.js","ember-testing/test/waiters.lint-test.js","ember-testing/tests/acceptance_test.js","ember-testing/tests/acceptance_test.lint-test.js","ember-testing/tests/adapters/adapter_test.js","ember-testing/tests/adapters/adapter_test.lint-test.js","ember-testing/tests/adapters/qunit_test.js","ember-testing/tests/adapters/qunit_test.lint-test.js","ember-testing/tests/adapters_test.js","ember-testing/tests/adapters_test.lint-test.js","ember-testing/tests/ext/rsvp_test.js","ember-testing/tests/ext/rsvp_test.lint-test.js","ember-testing/tests/helper_registration_test.js","ember-testing/tests/helper_registration_test.lint-test.js","ember-testing/tests/helpers_test.js","ember-testing/tests/helpers_test.lint-test.js","ember-testing/tests/integration_test.js","ember-testing/tests/integration_test.lint-test.js","ember-testing/tests/reexports_test.js","ember-testing/tests/reexports_test.lint-test.js","ember-testing/tests/simple_setup.js","ember-testing/tests/simple_setup.lint-test.js","ember-testing/tests/test/waiters-test.js","ember-testing/tests/test/waiters-test.lint-test.js","ember-utils.lint-test.js","ember-utils/lib/apply-str.lint-test.js","ember-utils/lib/assign.lint-test.js","ember-utils/lib/dictionary.lint-test.js","ember-utils/lib/guid.lint-test.js","ember-utils/lib/index.lint-test.js","ember-utils/lib/inspect.lint-test.js","ember-utils/lib/intern.lint-test.js","ember-utils/lib/invoke.lint-test.js","ember-utils/lib/lookup-descriptor.lint-test.js","ember-utils/lib/make-array.lint-test.js","ember-utils/lib/name.lint-test.js","ember-utils/lib/owner.lint-test.js","ember-utils/lib/proxy-utils.lint-test.js","ember-utils/lib/super.lint-test.js","ember-utils/lib/symbol.lint-test.js","ember-utils/lib/to-string.lint-test.js","ember-utils/lib/weak-map-utils.lint-test.js","ember-utils/tests/assign_test.js","ember-utils/tests/assign_test.lint-test.js","ember-utils/tests/can_invoke_test.js","ember-utils/tests/can_invoke_test.lint-test.js","ember-utils/tests/checkHasSuper_test.js","ember-utils/tests/checkHasSuper_test.lint-test.js","ember-utils/tests/generate_guid_test.js","ember-utils/tests/generate_guid_test.lint-test.js","ember-utils/tests/guid_for_test.js","ember-utils/tests/guid_for_test.lint-test.js","ember-utils/tests/inspect_test.js","ember-utils/tests/inspect_test.lint-test.js","ember-utils/tests/make_array_test.js","ember-utils/tests/make_array_test.lint-test.js","ember-utils/tests/to-string-test.js","ember-utils/tests/to-string-test.lint-test.js","ember-utils/tests/try_invoke_test.js","ember-utils/tests/try_invoke_test.lint-test.js","ember-views/lib/compat/attrs.lint-test.js","ember-views/lib/compat/fallback-view-registry.lint-test.js","ember-views/lib/component_lookup.lint-test.js","ember-views/lib/index.lint-test.js","ember-views/lib/mixins/action_support.lint-test.js","ember-views/lib/mixins/child_views_support.lint-test.js","ember-views/lib/mixins/class_names_support.lint-test.js","ember-views/lib/mixins/text_support.lint-test.js","ember-views/lib/mixins/view_state_support.lint-test.js","ember-views/lib/mixins/view_support.lint-test.js","ember-views/lib/system/action_manager.lint-test.js","ember-views/lib/system/event_dispatcher.lint-test.js","ember-views/lib/system/ext.lint-test.js","ember-views/lib/system/jquery.lint-test.js","ember-views/lib/system/lookup_partial.lint-test.js","ember-views/lib/system/utils.lint-test.js","ember-views/lib/utils/lookup-component.lint-test.js","ember-views/lib/views/core_view.lint-test.js","ember-views/lib/views/states.lint-test.js","ember-views/lib/views/states/default.lint-test.js","ember-views/lib/views/states/destroying.lint-test.js","ember-views/lib/views/states/has_element.lint-test.js","ember-views/lib/views/states/in_dom.lint-test.js","ember-views/lib/views/states/pre_render.lint-test.js","ember/lib/index.lint-test.js","ember/tests/application_lifecycle_test.js","ember/tests/application_lifecycle_test.lint-test.js","ember/tests/component_context_test.js","ember/tests/component_context_test.lint-test.js","ember/tests/component_registration_test.js","ember/tests/component_registration_test.lint-test.js","ember/tests/controller_test.js","ember/tests/controller_test.lint-test.js","ember/tests/error_handler_test.js","ember/tests/error_handler_test.lint-test.js","ember/tests/global-api-test.js","ember/tests/global-api-test.lint-test.js","ember/tests/helpers/helper_registration_test.js","ember/tests/helpers/helper_registration_test.lint-test.js","ember/tests/helpers/link_to_test.js","ember/tests/helpers/link_to_test.lint-test.js","ember/tests/helpers/link_to_test/link_to_transitioning_classes_test.js","ember/tests/helpers/link_to_test/link_to_transitioning_classes_test.lint-test.js","ember/tests/helpers/link_to_test/link_to_with_query_params_test.js","ember/tests/helpers/link_to_test/link_to_with_query_params_test.lint-test.js","ember/tests/homepage_example_test.js","ember/tests/homepage_example_test.lint-test.js","ember/tests/integration/multiple-app-test.js","ember/tests/integration/multiple-app-test.lint-test.js","ember/tests/production_build_test.js","ember/tests/production_build_test.lint-test.js","ember/tests/reexports_test.js","ember/tests/reexports_test.lint-test.js","ember/tests/routing/basic_test.js","ember/tests/routing/basic_test.lint-test.js","ember/tests/routing/decoupled_basic_test.js","ember/tests/routing/decoupled_basic_test.lint-test.js","ember/tests/routing/query_params_test.js","ember/tests/routing/query_params_test.lint-test.js","ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js","ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.lint-test.js","ember/tests/routing/query_params_test/overlapping_query_params_test.js","ember/tests/routing/query_params_test/overlapping_query_params_test.lint-test.js","ember/tests/routing/query_params_test/query_param_async_get_handler_test.js","ember/tests/routing/query_params_test/query_param_async_get_handler_test.lint-test.js","ember/tests/routing/query_params_test/query_params_paramless_link_to_test.js","ember/tests/routing/query_params_test/query_params_paramless_link_to_test.lint-test.js","ember/tests/routing/query_params_test/shared_state_test.js","ember/tests/routing/query_params_test/shared_state_test.lint-test.js","ember/tests/routing/router_map_test.js","ember/tests/routing/router_map_test.lint-test.js","ember/tests/routing/router_service_test/basic_test.js","ember/tests/routing/router_service_test/basic_test.lint-test.js","ember/tests/routing/router_service_test/currenturl_lifecycle_test.js","ember/tests/routing/router_service_test/currenturl_lifecycle_test.lint-test.js","ember/tests/routing/router_service_test/isActive_test.js","ember/tests/routing/router_service_test/isActive_test.lint-test.js","ember/tests/routing/router_service_test/replaceWith_test.js","ember/tests/routing/router_service_test/replaceWith_test.lint-test.js","ember/tests/routing/router_service_test/transitionTo_test.js","ember/tests/routing/router_service_test/transitionTo_test.lint-test.js","ember/tests/routing/router_service_test/urlFor_test.js","ember/tests/routing/router_service_test/urlFor_test.lint-test.js","ember/tests/routing/substates_test.js","ember/tests/routing/substates_test.lint-test.js","ember/tests/routing/toplevel_dom_test.js","ember/tests/routing/toplevel_dom_test.lint-test.js","ember/tests/view_instrumentation_test.js","ember/tests/view_instrumentation_test.lint-test.js","error_handler.lint-test.js","events.lint-test.js","expand_properties.lint-test.js","external-helpers/lib/external-helpers-dev.lint-test.js","external-helpers/lib/external-helpers-prod.lint-test.js","get_properties.lint-test.js","index.lint-test.js","injected_property.lint-test.js","instrumentation.lint-test.js","internal-test-helpers/apply-mixins.js","internal-test-helpers/build-owner.js","internal-test-helpers/confirm-export.js","internal-test-helpers/equal-inner-html.js","internal-test-helpers/equal-tokens.js","internal-test-helpers/factory.js","internal-test-helpers/index.js","internal-test-helpers/lib/apply-mixins.lint-test.js","internal-test-helpers/lib/build-owner.lint-test.js","internal-test-helpers/lib/confirm-export.lint-test.js","internal-test-helpers/lib/equal-inner-html.lint-test.js","internal-test-helpers/lib/equal-tokens.lint-test.js","internal-test-helpers/lib/factory.lint-test.js","internal-test-helpers/lib/index.lint-test.js","internal-test-helpers/lib/matchers.lint-test.js","internal-test-helpers/lib/module-for.lint-test.js","internal-test-helpers/lib/run.lint-test.js","internal-test-helpers/lib/strip.lint-test.js","internal-test-helpers/lib/test-cases/abstract-application.lint-test.js","internal-test-helpers/lib/test-cases/abstract-rendering.lint-test.js","internal-test-helpers/lib/test-cases/abstract.lint-test.js","internal-test-helpers/lib/test-cases/application.lint-test.js","internal-test-helpers/lib/test-cases/autoboot-application.lint-test.js","internal-test-helpers/lib/test-cases/default-resolver-application.lint-test.js","internal-test-helpers/lib/test-cases/query-param.lint-test.js","internal-test-helpers/lib/test-cases/rendering.lint-test.js","internal-test-helpers/lib/test-cases/router.lint-test.js","internal-test-helpers/lib/test-cases/test-resolver-application.lint-test.js","internal-test-helpers/lib/test-groups.lint-test.js","internal-test-helpers/lib/test-resolver.lint-test.js","internal-test-helpers/matchers.js","internal-test-helpers/module-for.js","internal-test-helpers/run.js","internal-test-helpers/strip.js","internal-test-helpers/test-cases/abstract-application.js","internal-test-helpers/test-cases/abstract-rendering.js","internal-test-helpers/test-cases/abstract.js","internal-test-helpers/test-cases/application.js","internal-test-helpers/test-cases/autoboot-application.js","internal-test-helpers/test-cases/default-resolver-application.js","internal-test-helpers/test-cases/query-param.js","internal-test-helpers/test-cases/rendering.js","internal-test-helpers/test-cases/router.js","internal-test-helpers/test-cases/test-resolver-application.js","internal-test-helpers/test-groups.js","internal-test-helpers/test-resolver.js","internal-test-helpers/tests/index-test.js","internal-test-helpers/tests/index-test.lint-test.js","is_blank.lint-test.js","is_empty.lint-test.js","is_none.lint-test.js","is_present.lint-test.js","is_proxy.lint-test.js","libraries.lint-test.js","loader/lib/index.lint-test.js","map.lint-test.js","merge.lint-test.js","meta.lint-test.js","meta_listeners.lint-test.js","mixin.lint-test.js","node-module.js","node-module/lib/node-module.lint-test.js","observer.lint-test.js","observer_set.lint-test.js","path_cache.lint-test.js","properties.lint-test.js","property_events.lint-test.js","property_get.lint-test.js","property_set.lint-test.js","replace.lint-test.js","run_loop.lint-test.js","set_properties.lint-test.js","tags.lint-test.js","transaction.lint-test.js","watch_key.lint-test.js","watch_path.lint-test.js","watching.lint-test.js","weak_map.lint-test.js"],"sourcesContent":["/*!\n * @overview Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2017 Tilde Inc. and contributors\n * Portions Copyright 2006-2011 Strobe Inc.\n * Portions Copyright 2008-2011 Apple Inc. All rights reserved.\n * @license Licensed under MIT license\n * See https://raw.github.com/emberjs/ember.js/master/LICENSE\n * @version 2.18.0\n */\n","/*global process */\nvar enifed, requireModule, Ember;\nvar mainContext = this; // Used in ember-environment/lib/global.js\n\n(function() {\n function missingModule(name, referrerName) {\n if (referrerName) {\n throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n } else {\n throw new Error('Could not find module ' + name);\n }\n }\n\n function internalRequire(_name, referrerName) {\n var name = _name;\n var mod = registry[name];\n\n if (!mod) {\n name = name + '/index';\n mod = registry[name];\n }\n\n var exports = seen[name];\n\n if (exports !== undefined) {\n return exports;\n }\n\n exports = seen[name] = {};\n\n if (!mod) {\n missingModule(_name, referrerName);\n }\n\n var deps = mod.deps;\n var callback = mod.callback;\n var reified = new Array(deps.length);\n\n for (var i = 0; i < deps.length; i++) {\n if (deps[i] === 'exports') {\n reified[i] = exports;\n } else if (deps[i] === 'require') {\n reified[i] = requireModule;\n } else {\n reified[i] = internalRequire(deps[i], name);\n }\n }\n\n callback.apply(this, reified);\n\n return exports;\n }\n\n var isNode = typeof window === 'undefined' &&\n typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n if (!isNode) {\n Ember = this.Ember = this.Ember || {};\n }\n\n if (typeof Ember === 'undefined') { Ember = {}; }\n\n if (typeof Ember.__loader === 'undefined') {\n var registry = {};\n var seen = {};\n\n enifed = function(name, deps, callback) {\n var value = { };\n\n if (!callback) {\n value.deps = [];\n value.callback = deps;\n } else {\n value.deps = deps;\n value.callback = callback;\n }\n\n registry[name] = value;\n };\n\n requireModule = function(name) {\n return internalRequire(name, null);\n };\n\n // setup `require` module\n requireModule['default'] = requireModule;\n\n requireModule.has = function registryHas(moduleName) {\n return !!registry[moduleName] || !!registry[moduleName + '/index'];\n };\n\n requireModule._eak_seen = registry;\n\n Ember.__loader = {\n define: enifed,\n require: requireModule,\n registry: registry\n };\n } else {\n enifed = Ember.__loader.define;\n requireModule = Ember.__loader.require;\n }\n})();\n","QUnit.module('ESLint | alias.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'alias.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | binding.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'binding.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | cache.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'cache.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | chains.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'chains.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | computed.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'computed.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | container.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | container/lib/container.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/lib/container.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | container/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | container/lib/registry.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/lib/registry.js should pass ESLint\\n\\n');\n});\n","enifed('container/tests/container_test', ['ember-babel', 'ember-utils', 'ember-metal', 'ember/features', 'container', 'internal-test-helpers'], function (_emberBabel, _emberUtils, _emberMetal, _features, _container, _internalTestHelpers) {\n 'use strict';\n\n QUnit.module('Container');\n\n QUnit.test('A registered factory returns the same instance each time', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n var postController = container.lookup('controller:post');\n\n ok(postController instanceof PostController, 'The lookup is an instance of the factory');\n\n equal(postController, container.lookup('controller:post'));\n });\n\n QUnit.test('uses create time injections if factory has no extend', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var AppleController = (0, _internalTestHelpers.factory)();\n var PostController = (0, _internalTestHelpers.factory)();\n\n PostController.extend = undefined; // remove extend\n\n registry.register('controller:apple', AppleController);\n registry.register('controller:post', PostController);\n registry.injection('controller:post', 'apple', 'controller:apple');\n\n var postController = container.lookup('controller:post');\n\n ok(postController.apple instanceof AppleController, 'instance receives an apple of instance AppleController');\n });\n\n QUnit.test('A registered factory returns a fresh instance if singleton: false is passed as an option', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n var postController1 = container.lookup('controller:post');\n var postController2 = container.lookup('controller:post', { singleton: false });\n var postController3 = container.lookup('controller:post', { singleton: false });\n var postController4 = container.lookup('controller:post');\n\n equal(postController1.toString(), postController4.toString(), 'Singleton factories looked up normally return the same value');\n notEqual(postController1.toString(), postController2.toString(), 'Singleton factories are not equal to factories looked up with singleton: false');\n notEqual(postController2.toString(), postController3.toString(), 'Two factories looked up with singleton: false are not equal');\n notEqual(postController3.toString(), postController4.toString(), 'A singleton factory looked up after a factory called with singleton: false is not equal');\n\n ok(postController1 instanceof PostController, 'All instances are instances of the registered factory');\n ok(postController2 instanceof PostController, 'All instances are instances of the registered factory');\n ok(postController3 instanceof PostController, 'All instances are instances of the registered factory');\n ok(postController4 instanceof PostController, 'All instances are instances of the registered factory');\n });\n\n QUnit.test('A factory type with a registered injection\\'s instances receive that injection', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var Store = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n registry.register('store:main', Store);\n\n registry.typeInjection('controller', 'store', 'store:main');\n\n var postController = container.lookup('controller:post');\n var store = container.lookup('store:main');\n\n equal(postController.store, store);\n });\n\n QUnit.test('An individual factory with a registered injection receives the injection', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var Store = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n registry.register('store:main', Store);\n\n registry.injection('controller:post', 'store', 'store:main');\n\n var postController = container.lookup('controller:post');\n var store = container.lookup('store:main');\n\n equal(postController.store, store, 'has the correct store injected');\n });\n\n QUnit.test('A factory with both type and individual injections', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var Store = (0, _internalTestHelpers.factory)();\n var Router = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n registry.register('store:main', Store);\n registry.register('router:main', Router);\n\n registry.injection('controller:post', 'store', 'store:main');\n registry.typeInjection('controller', 'router', 'router:main');\n\n var postController = container.lookup('controller:post');\n var store = container.lookup('store:main');\n var router = container.lookup('router:main');\n\n equal(postController.store, store);\n equal(postController.router, router);\n });\n\n QUnit.test('A non-singleton instance is never cached', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostView = (0, _internalTestHelpers.factory)();\n\n registry.register('view:post', PostView, { singleton: false });\n\n var postView1 = container.lookup('view:post');\n var postView2 = container.lookup('view:post');\n\n ok(postView1 !== postView2, 'Non-singletons are not cached');\n });\n\n QUnit.test('A non-instantiated property is not instantiated', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var template = function () {};\n registry.register('template:foo', template, { instantiate: false });\n equal(container.lookup('template:foo'), template);\n });\n\n QUnit.test('A failed lookup returns undefined', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n\n equal(container.lookup('doesnot:exist'), undefined);\n });\n\n QUnit.test('An invalid factory throws an error', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n\n registry.register('controller:foo', {});\n\n throws(function () {\n container.lookup('controller:foo');\n }, /Failed to create an instance of \\'controller:foo\\'/);\n });\n\n QUnit.test('Injecting a failed lookup raises an error', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var fooInstance = {};\n var fooFactory = {};\n\n var Foo = {\n create: function (args) {\n return fooInstance;\n },\n extend: function (args) {\n return fooFactory;\n }\n };\n\n registry.register('model:foo', Foo);\n registry.injection('model:foo', 'store', 'store:main');\n\n throws(function () {\n container.lookup('model:foo');\n });\n });\n\n QUnit.test('Injecting a falsy value does not raise an error', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var ApplicationController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:application', ApplicationController);\n registry.register('user:current', null, { instantiate: false });\n registry.injection('controller:application', 'currentUser', 'user:current');\n\n strictEqual(container.lookup('controller:application').currentUser, null);\n });\n\n QUnit.test('The container returns same value each time even if the value is falsy', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n\n registry.register('falsy:value', null, { instantiate: false });\n\n strictEqual(container.lookup('falsy:value'), container.lookup('falsy:value'));\n });\n\n QUnit.test('Destroying the container destroys any cached singletons', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var PostView = (0, _internalTestHelpers.factory)();\n var template = function () {};\n\n registry.register('controller:post', PostController);\n registry.register('view:post', PostView, { singleton: false });\n registry.register('template:post', template, { instantiate: false });\n\n registry.injection('controller:post', 'postView', 'view:post');\n\n var postController = container.lookup('controller:post');\n var postView = postController.postView;\n\n ok(postView instanceof PostView, 'The non-singleton was injected');\n\n container.destroy();\n\n ok(postController.isDestroyed, 'Singletons are destroyed');\n ok(!postView.isDestroyed, 'Non-singletons are not destroyed');\n });\n\n QUnit.test('The container can use a registry hook to resolve factories lazily', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.resolver = {\n resolve: function (fullName) {\n if (fullName === 'controller:post') {\n return PostController;\n }\n }\n };\n\n var postController = container.lookup('controller:post');\n\n ok(postController instanceof PostController, 'The correct factory was provided');\n });\n\n QUnit.test('The container normalizes names before resolving', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.normalizeFullName = function (fullName) {\n return 'controller:post';\n };\n\n registry.register('controller:post', PostController);\n var postController = container.lookup('controller:normalized');\n\n ok(postController instanceof PostController, 'Normalizes the name before resolving');\n });\n\n QUnit.test('The container normalizes names when looking factory up', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.normalizeFullName = function (fullName) {\n return 'controller:post';\n };\n\n registry.register('controller:post', PostController);\n var fact = container.factoryFor('controller:normalized');\n\n var factInstance = fact.create();\n ok(factInstance instanceof PostController, 'Normalizes the name');\n });\n\n QUnit.test('Options can be registered that should be applied to a given factory', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostView = (0, _internalTestHelpers.factory)();\n\n registry.resolver = {\n resolve: function (fullName) {\n if (fullName === 'view:post') {\n return PostView;\n }\n }\n };\n\n registry.options('view:post', { instantiate: true, singleton: false });\n\n var postView1 = container.lookup('view:post');\n var postView2 = container.lookup('view:post');\n\n ok(postView1 instanceof PostView, 'The correct factory was provided');\n ok(postView2 instanceof PostView, 'The correct factory was provided');\n\n ok(postView1 !== postView2, 'The two lookups are different');\n });\n\n QUnit.test('Options can be registered that should be applied to all factories for a given type', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostView = (0, _internalTestHelpers.factory)();\n\n registry.resolver = {\n resolve: function (fullName) {\n if (fullName === 'view:post') {\n return PostView;\n }\n }\n };\n\n registry.optionsForType('view', { singleton: false });\n\n var postView1 = container.lookup('view:post');\n var postView2 = container.lookup('view:post');\n\n ok(postView1 instanceof PostView, 'The correct factory was provided');\n ok(postView2 instanceof PostView, 'The correct factory was provided');\n\n ok(postView1 !== postView2, 'The two lookups are different');\n });\n\n QUnit.test('An injected non-singleton instance is never cached', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostView = (0, _internalTestHelpers.factory)();\n var PostViewHelper = (0, _internalTestHelpers.factory)();\n\n registry.register('view:post', PostView, { singleton: false });\n registry.register('view_helper:post', PostViewHelper, { singleton: false });\n registry.injection('view:post', 'viewHelper', 'view_helper:post');\n\n var postView1 = container.lookup('view:post');\n var postView2 = container.lookup('view:post');\n\n ok(postView1.viewHelper !== postView2.viewHelper, 'Injected non-singletons are not cached');\n });\n\n QUnit.test('Factory resolves are cached', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var resolveWasCalled = [];\n registry.resolve = function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n };\n\n deepEqual(resolveWasCalled, []);\n container.factoryFor('controller:post');\n deepEqual(resolveWasCalled, ['controller:post']);\n\n container.factoryFor('controller:post');\n deepEqual(resolveWasCalled, ['controller:post']);\n });\n\n QUnit.test('factory for non extendables (MODEL) resolves are cached', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n var resolveWasCalled = [];\n registry.resolve = function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n };\n\n deepEqual(resolveWasCalled, []);\n container.factoryFor('model:post');\n deepEqual(resolveWasCalled, ['model:post']);\n\n container.factoryFor('model:post');\n deepEqual(resolveWasCalled, ['model:post']);\n });\n\n QUnit.test('factory for non extendables resolves are cached', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = {};\n var resolveWasCalled = [];\n\n registry.resolve = function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n };\n\n deepEqual(resolveWasCalled, []);\n container.factoryFor('foo:post');\n deepEqual(resolveWasCalled, ['foo:post']);\n\n container.factoryFor('foo:post');\n deepEqual(resolveWasCalled, ['foo:post']);\n });\n\n QUnit.test('A factory\\'s lazy injections are validated when first instantiated', function () {\n var registry = new _container.Registry();\n var container = registry.container();\n var Apple = (0, _internalTestHelpers.factory)();\n var Orange = (0, _internalTestHelpers.factory)();\n\n Apple.reopenClass({\n _lazyInjections: function () {\n return ['orange:main', 'banana:main'];\n }\n });\n\n registry.register('apple:main', Apple);\n registry.register('orange:main', Orange);\n\n throws(function () {\n container.lookup('apple:main');\n }, /Attempting to inject an unknown injection: 'banana:main'/);\n });\n\n QUnit.test('Lazy injection validations are cached', function () {\n expect(1);\n\n var registry = new _container.Registry();\n var container = registry.container();\n var Apple = (0, _internalTestHelpers.factory)();\n var Orange = (0, _internalTestHelpers.factory)();\n\n Apple.reopenClass({\n _lazyInjections: function () {\n ok(true, 'should call lazy injection method');\n return ['orange:main'];\n }\n });\n\n registry.register('apple:main', Apple);\n registry.register('orange:main', Orange);\n\n container.lookup('apple:main');\n container.lookup('apple:main');\n });\n\n QUnit.test('An object with its owner pre-set should be returned from ownerInjection', function () {\n var owner = {};\n var registry = new _container.Registry();\n var container = registry.container({ owner: owner });\n\n var result = container.ownerInjection();\n\n equal(result[_emberUtils.OWNER], owner, 'owner is properly included');\n });\n\n QUnit.test('lookup passes options through to expandlocallookup', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n registry.expandLocalLookup = function (fullName, options) {\n assert.ok(true, 'expandLocalLookup was called');\n assert.equal(fullName, 'foo:bar');\n assert.deepEqual(options, { source: 'baz:qux' });\n\n return 'controller:post';\n };\n\n var PostControllerLookupResult = container.lookup('foo:bar', { source: 'baz:qux' });\n\n assert.ok(PostControllerLookupResult instanceof PostController);\n });\n\n QUnit.test('#factoryFor class is registered class', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n\n var factoryManager = container.factoryFor('component:foo-bar');\n assert.deepEqual(factoryManager.class, Component, 'No double extend');\n });\n\n QUnit.test('#factoryFor must supply a fullname', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n expectAssertion(function () {\n container.factoryFor('chad-bar');\n }, /fullName must be a proper full name/);\n });\n\n QUnit.test('#factoryFor returns a factory manager', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n\n var factoryManager = container.factoryFor('component:foo-bar');\n assert.ok(factoryManager.create);\n assert.ok(factoryManager.class);\n });\n\n QUnit.test('#factoryFor returns a cached factory manager for the same type', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n registry.register('component:baz-bar', Component);\n\n var factoryManager1 = container.factoryFor('component:foo-bar');\n var factoryManager2 = container.factoryFor('component:foo-bar');\n var factoryManager3 = container.factoryFor('component:baz-bar');\n\n assert.equal(factoryManager1, factoryManager2, 'cache hit');\n assert.notEqual(factoryManager1, factoryManager3, 'cache miss');\n });\n\n QUnit.test('#factoryFor class returns the factory function', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n\n var factoryManager = container.factoryFor('component:foo-bar');\n assert.deepEqual(factoryManager.class, Component, 'No double extend');\n });\n\n QUnit.test('#factoryFor instance have a common parent', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n\n var factoryManager1 = container.factoryFor('component:foo-bar');\n var factoryManager2 = container.factoryFor('component:foo-bar');\n var instance1 = factoryManager1.create({ foo: 'foo' });\n var instance2 = factoryManager2.create({ bar: 'bar' });\n\n assert.deepEqual(instance1.constructor, instance2.constructor);\n });\n\n QUnit.test('can properly reset cache', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n\n var factory1 = container.factoryFor('component:foo-bar');\n var factory2 = container.factoryFor('component:foo-bar');\n\n var instance1 = container.lookup('component:foo-bar');\n var instance2 = container.lookup('component:foo-bar');\n\n assert.equal(instance1, instance2);\n assert.equal(factory1, factory2);\n\n container.reset();\n\n var factory3 = container.factoryFor('component:foo-bar');\n var instance3 = container.lookup('component:foo-bar');\n\n assert.notEqual(instance1, instance3);\n assert.notEqual(factory1, factory3);\n });\n\n QUnit.test('#factoryFor created instances come with instance injections', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n var Ajax = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n registry.register('util:ajax', Ajax);\n registry.injection('component:foo-bar', 'ajax', 'util:ajax');\n\n var componentFactory = container.factoryFor('component:foo-bar');\n var component = componentFactory.create();\n\n assert.ok(component.ajax);\n assert.ok(component.ajax instanceof Ajax);\n });\n\n QUnit.test('#factoryFor options passed to create clobber injections', function (assert) {\n var registry = new _container.Registry();\n var container = registry.container();\n\n var Component = (0, _internalTestHelpers.factory)();\n var Ajax = (0, _internalTestHelpers.factory)();\n registry.register('component:foo-bar', Component);\n registry.register('util:ajax', Ajax);\n registry.injection('component:foo-bar', 'ajax', 'util:ajax');\n\n var componentFactory = container.factoryFor('component:foo-bar');\n\n var instrance = componentFactory.create({ ajax: 'fetch' });\n\n assert.equal(instrance.ajax, 'fetch');\n });\n\n QUnit.test('#factoryFor does not add properties to the object being instantiated when _initFactory is present', function (assert) {\n var owner = {};\n var registry = new _container.Registry();\n var container = registry.container();\n\n var factory = void 0;\n\n var Component = function () {\n function Component() {\n (0, _emberBabel.classCallCheck)(this, Component);\n }\n\n Component._initFactory = function _initFactory(_factory) {\n factory = _factory;\n };\n\n Component.create = function create(options) {\n var instance = new this();\n (0, _emberUtils.assign)(instance, options);\n return instance;\n };\n\n return Component;\n }();\n\n registry.register('component:foo-bar', Component);\n\n var componentFactory = container.factoryFor('component:foo-bar');\n var instance = componentFactory.create();\n\n // note: _guid and isDestroyed are being set in the `factory` constructor\n // not via registry/container shenanigans\n assert.deepEqual(Object.keys(instance), []);\n });\n\n // this is skipped until templates and the glimmer environment do not require `OWNER` to be\n // passed in as constructor args\n QUnit.skip('#factoryFor does not add properties to the object being instantiated', function (assert) {\n var owner = {};\n var registry = new _container.Registry();\n var container = registry.container();\n\n var factory = void 0;\n\n var Component = function () {\n function Component() {\n (0, _emberBabel.classCallCheck)(this, Component);\n }\n\n Component.create = function create(options) {\n var instance = new this();\n (0, _emberUtils.assign)(instance, options);\n return instance;\n };\n\n return Component;\n }();\n\n registry.register('component:foo-bar', Component);\n\n var componentFactory = container.factoryFor('component:foo-bar');\n var instance = componentFactory.create();\n\n // note: _guid and isDestroyed are being set in the `factory` constructor\n // not via registry/container shenanigans\n assert.deepEqual(Object.keys(instance), []);\n });\n\n if (_features.EMBER_MODULE_UNIFICATION) {\n QUnit.module('Container module unification');\n\n QUnit.test('The container can pass a source to factoryFor', function (assert) {\n var PrivateComponent = (0, _internalTestHelpers.factory)();\n var lookup = 'component:my-input';\n var expectedSource = 'template:routes/application';\n var registry = new _container.Registry();\n var resolveCount = 0;\n registry.resolve = function (fullName, _ref) {\n var source = _ref.source;\n\n resolveCount++;\n if (fullName === lookup && source === expectedSource) {\n return PrivateComponent;\n }\n };\n\n var container = registry.container();\n\n assert.strictEqual(container.factoryFor(lookup, { source: expectedSource }).class, PrivateComponent, 'The correct factory was provided');\n assert.strictEqual(container.factoryFor(lookup, { source: expectedSource }).class, PrivateComponent, 'The correct factory was provided again');\n assert.equal(resolveCount, 1, 'resolve called only once and a cached factory was returned the second time');\n });\n\n QUnit.test('The container can pass a source to lookup', function (assert) {\n var PrivateComponent = (0, _internalTestHelpers.factory)();\n var lookup = 'component:my-input';\n var expectedSource = 'template:routes/application';\n var registry = new _container.Registry();\n registry.resolve = function (fullName, _ref2) {\n var source = _ref2.source;\n\n if (fullName === lookup && source === expectedSource) {\n return PrivateComponent;\n }\n };\n\n var container = registry.container();\n\n var result = container.lookup(lookup, { source: expectedSource });\n assert.ok(result instanceof PrivateComponent, 'The correct factory was provided');\n\n assert.ok(container.cache['template:routes/application:component:my-input'] instanceof PrivateComponent, 'The correct factory was stored in the cache with the correct key which includes the source.');\n });\n }\n});","QUnit.module('ESLint | container/tests/container_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/tests/container_test.js should pass ESLint\\n\\n');\n});\n","enifed('container/tests/owner_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('Owner', {});\n\n QUnit.test('An owner can be set with `setOwner` and retrieved with `getOwner`', function () {\n var owner = {};\n var obj = {};\n\n strictEqual((0, _emberUtils.getOwner)(obj), undefined, 'owner has not been set');\n\n (0, _emberUtils.setOwner)(obj, owner);\n\n strictEqual((0, _emberUtils.getOwner)(obj), owner, 'owner has been set');\n\n strictEqual(obj[_emberUtils.OWNER], owner, 'owner has been set to the OWNER symbol');\n });\n});","QUnit.module('ESLint | container/tests/owner_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/tests/owner_test.js should pass ESLint\\n\\n');\n});\n","enifed('container/tests/registry_test', ['container', 'internal-test-helpers', 'ember/features'], function (_container, _internalTestHelpers, _features) {\n 'use strict';\n\n QUnit.module('Registry');\n\n QUnit.test('A registered factory is returned from resolve', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n var PostControllerFactory = registry.resolve('controller:post');\n\n ok(PostControllerFactory, 'factory is returned');\n ok(PostControllerFactory.create() instanceof PostController, 'The return of factory.create is an instance of PostController');\n });\n\n QUnit.test('The registered factory returned from resolve is the same factory each time', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n deepEqual(registry.resolve('controller:post'), registry.resolve('controller:post'), 'The return of resolve is always the same');\n });\n\n QUnit.test('The registered value returned from resolve is the same value each time even if the value is falsy', function () {\n var registry = new _container.Registry();\n\n registry.register('falsy:value', null, { instantiate: false });\n\n strictEqual(registry.resolve('falsy:value'), registry.resolve('falsy:value'), 'The return of resolve is always the same');\n });\n\n QUnit.test('The value returned from resolver is the same value as the original value even if the value is falsy', function () {\n var resolver = {\n resolve: function (fullName) {\n if (fullName === 'falsy:value') {\n return null;\n }\n }\n };\n var registry = new _container.Registry({ resolver: resolver });\n\n strictEqual(registry.resolve('falsy:value'), null);\n });\n\n QUnit.test('A registered factory returns true for `has` if an item is registered', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n equal(registry.has('controller:post'), true, 'The `has` method returned true for registered factories');\n equal(registry.has('controller:posts'), false, 'The `has` method returned false for unregistered factories');\n });\n\n QUnit.test('Throw exception when trying to inject `type:thing` on all type(s)', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.register('controller:post', PostController);\n\n expectAssertion(function () {\n registry.typeInjection('controller', 'injected', 'controller:post');\n }, /Cannot inject a 'controller:post' on other controller\\(s\\)\\./);\n });\n\n QUnit.test('The registry can take a hook to resolve factories lazily', function () {\n var PostController = (0, _internalTestHelpers.factory)();\n var resolver = {\n resolve: function (fullName) {\n if (fullName === 'controller:post') {\n return PostController;\n }\n }\n };\n var registry = new _container.Registry({ resolver: resolver });\n\n strictEqual(registry.resolve('controller:post'), PostController, 'The correct factory was provided');\n });\n\n QUnit.test('The registry respects the resolver hook for `has`', function () {\n var PostController = (0, _internalTestHelpers.factory)();\n var resolver = {\n resolve: function (fullName) {\n if (fullName === 'controller:post') {\n return PostController;\n }\n }\n };\n var registry = new _container.Registry({ resolver: resolver });\n\n ok(registry.has('controller:post'), 'the `has` method uses the resolver hook');\n });\n\n QUnit.test('The registry normalizes names when resolving', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.normalizeFullName = function (fullName) {\n return 'controller:post';\n };\n\n registry.register('controller:post', PostController);\n var type = registry.resolve('controller:normalized');\n\n strictEqual(type, PostController, 'Normalizes the name when resolving');\n });\n\n QUnit.test('The registry normalizes names when checking if the factory is registered', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n\n registry.normalizeFullName = function (fullName) {\n return fullName === 'controller:normalized' ? 'controller:post' : fullName;\n };\n\n registry.register('controller:post', PostController);\n var isPresent = registry.has('controller:normalized');\n\n equal(isPresent, true, 'Normalizes the name when checking if the factory or instance is present');\n });\n\n QUnit.test('The registry normalizes names when injecting', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n var user = { name: 'Stef' };\n\n registry.normalize = function (fullName) {\n return 'controller:post';\n };\n\n registry.register('controller:post', PostController);\n registry.register('user:post', user, { instantiate: false });\n registry.injection('controller:post', 'user', 'controller:normalized');\n\n deepEqual(registry.resolve('controller:post'), user, 'Normalizes the name when injecting');\n });\n\n QUnit.test('cannot register an `undefined` factory', function () {\n var registry = new _container.Registry();\n\n throws(function () {\n registry.register('controller:apple', undefined);\n }, '');\n });\n\n QUnit.test('can re-register a factory', function () {\n var registry = new _container.Registry();\n var FirstApple = (0, _internalTestHelpers.factory)('first');\n var SecondApple = (0, _internalTestHelpers.factory)('second');\n\n registry.register('controller:apple', FirstApple);\n registry.register('controller:apple', SecondApple);\n\n ok(registry.resolve('controller:apple').create() instanceof SecondApple);\n });\n\n QUnit.test('cannot re-register a factory if it has been resolved', function () {\n var registry = new _container.Registry();\n var FirstApple = (0, _internalTestHelpers.factory)('first');\n var SecondApple = (0, _internalTestHelpers.factory)('second');\n\n registry.register('controller:apple', FirstApple);\n strictEqual(registry.resolve('controller:apple'), FirstApple);\n\n expectAssertion(function () {\n registry.register('controller:apple', SecondApple);\n }, /Cannot re-register: 'controller:apple', as it has already been resolved\\./);\n\n strictEqual(registry.resolve('controller:apple'), FirstApple);\n });\n\n QUnit.test('registry.has should not accidentally cause injections on that factory to be run. (Mitigate merely on observing)', function () {\n expect(1);\n\n var registry = new _container.Registry();\n var FirstApple = (0, _internalTestHelpers.factory)('first');\n var SecondApple = (0, _internalTestHelpers.factory)('second');\n\n SecondApple.extend = function (a, b, c) {\n ok(false, 'should not extend or touch the injected model, merely to inspect existence of another');\n };\n\n registry.register('controller:apple', FirstApple);\n registry.register('controller:second-apple', SecondApple);\n registry.injection('controller:apple', 'badApple', 'controller:second-apple');\n\n ok(registry.has('controller:apple'));\n });\n\n QUnit.test('registry.has should not error for invalid fullNames)', function () {\n expect(1);\n\n var registry = new _container.Registry();\n\n ok(!registry.has('foo:bar:baz'));\n });\n\n QUnit.test('once resolved, always return the same result', function () {\n expect(1);\n\n var registry = new _container.Registry();\n\n registry.resolver = {\n resolve: function () {\n return 'bar';\n }\n };\n\n var Bar = registry.resolve('models:bar');\n\n registry.resolver = {\n resolve: function () {\n return 'not bar';\n }\n };\n\n equal(registry.resolve('models:bar'), Bar);\n });\n\n QUnit.test('factory resolves are cached', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n var resolveWasCalled = [];\n\n registry.resolver = {\n resolve: function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n }\n };\n\n deepEqual(resolveWasCalled, []);\n registry.resolve('controller:post');\n deepEqual(resolveWasCalled, ['controller:post']);\n\n registry.resolve('controller:post');\n deepEqual(resolveWasCalled, ['controller:post']);\n });\n\n QUnit.test('factory for non extendables (MODEL) resolves are cached', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n var resolveWasCalled = [];\n\n registry.resolver = {\n resolve: function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n }\n };\n\n deepEqual(resolveWasCalled, []);\n registry.resolve('model:post');\n deepEqual(resolveWasCalled, ['model:post']);\n\n registry.resolve('model:post');\n deepEqual(resolveWasCalled, ['model:post']);\n });\n\n QUnit.test('factory for non extendables resolves are cached', function () {\n var registry = new _container.Registry();\n var PostController = {};\n var resolveWasCalled = [];\n\n registry.resolver = {\n resolve: function (fullName) {\n resolveWasCalled.push(fullName);\n return PostController;\n }\n };\n\n deepEqual(resolveWasCalled, []);\n registry.resolve('foo:post');\n deepEqual(resolveWasCalled, ['foo:post']);\n\n registry.resolve('foo:post');\n deepEqual(resolveWasCalled, ['foo:post']);\n });\n\n QUnit.test('registry.container creates a container', function () {\n var registry = new _container.Registry();\n var PostController = (0, _internalTestHelpers.factory)();\n registry.register('controller:post', PostController);\n\n var container = registry.container();\n var postController = container.lookup('controller:post');\n\n ok(postController instanceof PostController, 'The lookup is an instance of the registered factory');\n });\n\n QUnit.test('`describe` will be handled by the resolver, then by the fallback registry, if available', function () {\n var fallback = {\n describe: function (fullName) {\n return fullName + '-fallback';\n }\n };\n\n var resolver = {\n lookupDescription: function (fullName) {\n return fullName + '-resolver';\n }\n };\n\n var registry = new _container.Registry({ fallback: fallback, resolver: resolver });\n\n equal(registry.describe('controller:post'), 'controller:post-resolver', '`describe` handled by the resolver first.');\n\n registry.resolver = null;\n\n equal(registry.describe('controller:post'), 'controller:post-fallback', '`describe` handled by fallback registry next.');\n\n registry.fallback = null;\n\n equal(registry.describe('controller:post'), 'controller:post', '`describe` by default returns argument.');\n });\n\n QUnit.test('`normalizeFullName` will be handled by the resolver, then by the fallback registry, if available', function () {\n var fallback = {\n normalizeFullName: function (fullName) {\n return fullName + '-fallback';\n }\n };\n\n var resolver = {\n normalize: function (fullName) {\n return fullName + '-resolver';\n }\n };\n\n var registry = new _container.Registry({ fallback: fallback, resolver: resolver });\n\n equal(registry.normalizeFullName('controller:post'), 'controller:post-resolver', '`normalizeFullName` handled by the resolver first.');\n\n registry.resolver = null;\n\n equal(registry.normalizeFullName('controller:post'), 'controller:post-fallback', '`normalizeFullName` handled by fallback registry next.');\n\n registry.fallback = null;\n\n equal(registry.normalizeFullName('controller:post'), 'controller:post', '`normalizeFullName` by default returns argument.');\n });\n\n QUnit.test('`makeToString` will be handled by the resolver, then by the fallback registry, if available', function () {\n var fallback = {\n makeToString: function (fullName) {\n return fullName + '-fallback';\n }\n };\n\n var resolver = {\n makeToString: function (fullName) {\n return fullName + '-resolver';\n }\n };\n\n var registry = new _container.Registry({ fallback: fallback, resolver: resolver });\n\n equal(registry.makeToString('controller:post'), 'controller:post-resolver', '`makeToString` handled by the resolver first.');\n\n registry.resolver = null;\n\n equal(registry.makeToString('controller:post'), 'controller:post-fallback', '`makeToString` handled by fallback registry next.');\n\n registry.fallback = null;\n\n equal(registry.makeToString('controller:post'), 'controller:post', '`makeToString` by default returns argument.');\n });\n\n QUnit.test('`resolve` can be handled by a fallback registry', function () {\n var fallback = new _container.Registry();\n\n var registry = new _container.Registry({ fallback: fallback });\n var PostController = (0, _internalTestHelpers.factory)();\n\n fallback.register('controller:post', PostController);\n\n var PostControllerFactory = registry.resolve('controller:post');\n\n ok(PostControllerFactory, 'factory is returned');\n ok(PostControllerFactory.create() instanceof PostController, 'The return of factory.create is an instance of PostController');\n });\n\n QUnit.test('`has` can be handled by a fallback registry', function () {\n var fallback = new _container.Registry();\n\n var registry = new _container.Registry({ fallback: fallback });\n var PostController = (0, _internalTestHelpers.factory)();\n\n fallback.register('controller:post', PostController);\n\n equal(registry.has('controller:post'), true, 'Fallback registry is checked for registration');\n });\n\n QUnit.test('`getInjections` includes injections from a fallback registry', function () {\n var fallback = new _container.Registry();\n var registry = new _container.Registry({ fallback: fallback });\n\n equal(registry.getInjections('model:user').length, 0, 'No injections in the primary registry');\n\n fallback.injection('model:user', 'post', 'model:post');\n\n equal(registry.getInjections('model:user').length, 1, 'Injections from the fallback registry are merged');\n });\n\n QUnit.test('`getTypeInjections` includes type injections from a fallback registry', function () {\n var fallback = new _container.Registry();\n var registry = new _container.Registry({ fallback: fallback });\n\n equal(registry.getTypeInjections('model').length, 0, 'No injections in the primary registry');\n\n fallback.injection('model', 'source', 'source:main');\n\n equal(registry.getTypeInjections('model').length, 1, 'Injections from the fallback registry are merged');\n });\n\n QUnit.test('`knownForType` contains keys for each item of a given type', function () {\n var registry = new _container.Registry();\n\n registry.register('foo:bar-baz', 'baz');\n registry.register('foo:qux-fez', 'fez');\n\n var found = registry.knownForType('foo');\n\n deepEqual(found, {\n 'foo:bar-baz': true,\n 'foo:qux-fez': true\n });\n });\n\n QUnit.test('`knownForType` includes fallback registry results', function () {\n var fallback = new _container.Registry();\n var registry = new _container.Registry({ fallback: fallback });\n\n registry.register('foo:bar-baz', 'baz');\n registry.register('foo:qux-fez', 'fez');\n fallback.register('foo:zurp-zorp', 'zorp');\n\n var found = registry.knownForType('foo');\n\n deepEqual(found, {\n 'foo:bar-baz': true,\n 'foo:qux-fez': true,\n 'foo:zurp-zorp': true\n });\n });\n\n QUnit.test('`knownForType` is called on the resolver if present', function () {\n expect(3);\n\n var resolver = {\n knownForType: function (type) {\n ok(true, 'knownForType called on the resolver');\n equal(type, 'foo', 'the type was passed through');\n\n return { 'foo:yorp': true };\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n registry.register('foo:bar-baz', 'baz');\n\n var found = registry.knownForType('foo');\n\n deepEqual(found, {\n 'foo:yorp': true,\n 'foo:bar-baz': true\n });\n });\n\n QUnit.test('A registry can be created with a deprecated `resolver` function instead of an object', function () {\n expect(2);\n\n var registry = void 0;\n\n expectDeprecation(function () {\n registry = new _container.Registry({\n resolver: function (fullName) {\n return fullName + '-resolved';\n }\n });\n }, 'Passing a `resolver` function into a Registry is deprecated. Please pass in a Resolver object with a `resolve` method.');\n\n equal(registry.resolve('foo:bar'), 'foo:bar-resolved', '`resolve` still calls the deprecated function');\n });\n\n QUnit.test('resolver.expandLocalLookup is not required', function (assert) {\n assert.expect(1);\n\n var registry = new _container.Registry({\n resolver: {}\n });\n\n var result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, null);\n });\n\n QUnit.test('expandLocalLookup is called on the resolver if present', function (assert) {\n assert.expect(4);\n\n var resolver = {\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n assert.equal(targetFullName, 'foo:bar', 'the targetFullName was passed through');\n assert.equal(sourceFullName, 'baz:qux', 'the sourceFullName was passed through');\n\n return 'foo:qux/bar';\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n\n var result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar');\n });\n\n QUnit.test('`expandLocalLookup` is handled by the resolver, then by the fallback registry, if available', function (assert) {\n assert.expect(9);\n\n var fallbackResolver = {\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the fallback resolver');\n assert.equal(targetFullName, 'foo:bar', 'the targetFullName was passed through');\n assert.equal(sourceFullName, 'baz:qux', 'the sourceFullName was passed through');\n\n return 'foo:qux/bar-fallback';\n }\n };\n\n var resolver = {\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n assert.equal(targetFullName, 'foo:bar', 'the targetFullName was passed through');\n assert.equal(sourceFullName, 'baz:qux', 'the sourceFullName was passed through');\n\n return 'foo:qux/bar-resolver';\n }\n };\n\n var fallbackRegistry = new _container.Registry({\n resolver: fallbackResolver\n });\n\n var registry = new _container.Registry({\n fallback: fallbackRegistry,\n resolver: resolver\n });\n\n var result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar-resolver', 'handled by the resolver');\n\n registry.resolver = null;\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar-fallback', 'handled by the fallback registry');\n\n registry.fallback = null;\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, null, 'null is returned by default when no resolver or fallback registry is present');\n });\n\n QUnit.test('resolver.expandLocalLookup result is cached', function (assert) {\n assert.expect(3);\n var result = void 0;\n\n var resolver = {\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n\n return 'foo:qux/bar';\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar');\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar');\n });\n\n QUnit.test('resolver.expandLocalLookup cache is busted when any unregister is called', function (assert) {\n assert.expect(4);\n var result = void 0;\n\n var resolver = {\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n\n return 'foo:qux/bar';\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar');\n\n registry.unregister('foo:bar');\n\n result = registry.expandLocalLookup('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.equal(result, 'foo:qux/bar');\n });\n\n QUnit.test('resolve calls expandLocallookup when it receives options.source', function (assert) {\n assert.expect(3);\n\n var resolver = {\n resolve: function () {},\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n assert.equal(targetFullName, 'foo:bar', 'the targetFullName was passed through');\n assert.equal(sourceFullName, 'baz:qux', 'the sourceFullName was passed through');\n\n return 'foo:qux/bar';\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n\n registry.resolve('foo:bar', {\n source: 'baz:qux'\n });\n });\n\n QUnit.test('has uses expandLocalLookup', function (assert) {\n assert.expect(5);\n var resolvedFullNames = [];\n var result = void 0;\n\n var resolver = {\n resolve: function (name) {\n if (_features.EMBER_MODULE_UNIFICATION && name === 'foo:baz') {\n return;\n }\n resolvedFullNames.push(name);\n\n return 'yippie!';\n },\n expandLocalLookup: function (targetFullName, sourceFullName) {\n assert.ok(true, 'expandLocalLookup is called on the resolver');\n\n if (targetFullName === 'foo:bar') {\n return 'foo:qux/bar';\n } else {\n return null;\n }\n }\n };\n\n var registry = new _container.Registry({\n resolver: resolver\n });\n\n result = registry.has('foo:bar', {\n source: 'baz:qux'\n });\n\n assert.ok(result, 'found foo:bar/qux');\n\n result = registry.has('foo:baz', {\n source: 'baz:qux'\n });\n\n assert.ok(!result, 'foo:baz/qux not found');\n\n assert.deepEqual(['foo:qux/bar'], resolvedFullNames);\n });\n\n QUnit.module('Registry privatize');\n\n QUnit.test('valid format', function (assert) {\n var privatized = (0, _container.privatize)(['secret:factory']);\n var matched = privatized.match(/^([^:]+):([^:]+)-(\\d+)$/);\n\n assert.ok(matched, 'privatized format was recognized');\n assert.equal(matched[1], 'secret');\n assert.equal(matched[2], 'factory');\n assert.ok(/^\\d+$/.test(matched[3]));\n });\n\n if (_features.EMBER_MODULE_UNIFICATION) {\n QUnit.module('Registry module unification');\n\n QUnit.test('The registry can pass a source to the resolver', function (assert) {\n var PrivateComponent = (0, _internalTestHelpers.factory)();\n var lookup = 'component:my-input';\n var source = 'template:routes/application';\n var resolveCount = 0;\n var resolver = {\n resolve: function (fullName, src) {\n resolveCount++;\n if (fullName === lookup && src === source) {\n return PrivateComponent;\n }\n }\n };\n var registry = new _container.Registry({ resolver: resolver });\n registry.normalize = function (name) {\n return name;\n };\n\n assert.strictEqual(registry.resolve(lookup, { source: source }), PrivateComponent, 'The correct factory was provided');\n assert.strictEqual(registry.resolve(lookup, { source: source }), PrivateComponent, 'The correct factory was provided again');\n assert.equal(resolveCount, 1, 'resolve called only once and a cached factory was returned the second time');\n });\n }\n});","QUnit.module('ESLint | container/tests/registry_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'container/tests/registry_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | core.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'core.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | dependent_keys.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'dependent_keys.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | deprecate_property.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'deprecate_property.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | descriptor.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'descriptor.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/initializers/dom-templates.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/initializers/dom-templates.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/application-instance.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/application-instance.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/engine-instance.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/engine-instance.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/engine-parent.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/engine-parent.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/engine.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/engine.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/system/resolver.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/system/resolver.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-application/lib/utils/validate-type.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/lib/utils/validate-type.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/application_instance_test', ['ember-babel', 'ember-application/system/engine', 'ember-application/system/application', 'ember-application/system/application-instance', 'ember-metal', 'ember-views', 'container', 'internal-test-helpers', 'ember-runtime'], function (_emberBabel, _engine, _application, _applicationInstance, _emberMetal, _emberViews, _container, _internalTestHelpers, _emberRuntime) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']);\n\n var application = void 0,\n appInstance = void 0;\n\n QUnit.module('Ember.ApplicationInstance', {\n setup: function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('
HI
HI
');\n application = (0, _emberMetal.run)(function () {\n return _application.default.create({ rootElement: '#one', router: null });\n });\n },\n teardown: function () {\n (0, _emberViews.jQuery)('#qunit-fixture').empty();\n\n if (appInstance) {\n (0, _emberMetal.run)(appInstance, 'destroy');\n }\n\n if (application) {\n (0, _emberMetal.run)(application, 'destroy');\n }\n }\n });\n\n QUnit.test('an application instance can be created based upon an application', function () {\n appInstance = (0, _emberMetal.run)(function () {\n return appInstance = _applicationInstance.default.create({ application: application });\n });\n\n ok(appInstance, 'instance should be created');\n equal(appInstance.application, application, 'application should be set to parent');\n });\n\n QUnit.test('properties (and aliases) are correctly assigned for accessing the container and registry', function () {\n expect(6);\n\n appInstance = (0, _emberMetal.run)(function () {\n return _applicationInstance.default.create({ application: application });\n });\n\n ok(appInstance, 'instance should be created');\n ok(appInstance.__container__, '#__container__ is accessible');\n ok(appInstance.__registry__, '#__registry__ is accessible');\n\n // stub with a no-op to keep deprecation test simple\n appInstance.__container__.lookup = function () {\n ok(true, '#loookup alias is called correctly');\n };\n\n ok(typeof appInstance.registry.register === 'function', '#registry.register is available as a function');\n appInstance.__registry__.register = function () {\n ok(true, '#register alias is called correctly');\n };\n\n expectDeprecation(function () {\n appInstance.registry.register();\n }, /Using `ApplicationInstance.registry.register` is deprecated. Please use `ApplicationInstance.register` instead./);\n });\n\n QUnit.test('customEvents added to the application before setupEventDispatcher', function (assert) {\n assert.expect(1);\n\n appInstance = (0, _emberMetal.run)(function () {\n return _applicationInstance.default.create({ application: application });\n });\n appInstance.setupRegistry();\n\n application.customEvents = {\n awesome: 'sauce'\n };\n\n var eventDispatcher = appInstance.lookup('event_dispatcher:main');\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n });\n\n QUnit.test('customEvents added to the application before setupEventDispatcher', function (assert) {\n assert.expect(1);\n\n (0, _emberMetal.run)(function () {\n return appInstance = _applicationInstance.default.create({ application: application });\n });\n appInstance.setupRegistry();\n\n application.customEvents = {\n awesome: 'sauce'\n };\n\n var eventDispatcher = appInstance.lookup('event_dispatcher:main');\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n });\n\n QUnit.test('customEvents added to the application instance before setupEventDispatcher', function (assert) {\n assert.expect(1);\n\n appInstance = (0, _emberMetal.run)(function () {\n return _applicationInstance.default.create({ application: application });\n });\n appInstance.setupRegistry();\n\n appInstance.customEvents = {\n awesome: 'sauce'\n };\n\n var eventDispatcher = appInstance.lookup('event_dispatcher:main');\n eventDispatcher.setup = function (events) {\n assert.equal(events.awesome, 'sauce');\n };\n\n appInstance.setupEventDispatcher();\n });\n\n QUnit.test('unregistering a factory clears all cached instances of that factory', function (assert) {\n assert.expect(5);\n\n appInstance = (0, _emberMetal.run)(function () {\n return _applicationInstance.default.create({ application: application });\n });\n\n var PostController1 = (0, _internalTestHelpers.factory)();\n var PostController2 = (0, _internalTestHelpers.factory)();\n\n appInstance.register('controller:post', PostController1);\n\n var postController1 = appInstance.lookup('controller:post');\n var postController1Factory = appInstance.factoryFor('controller:post');\n assert.ok(postController1 instanceof PostController1, 'precond - lookup creates instance');\n assert.equal(PostController1, postController1Factory.class, 'precond - factoryFor().class matches');\n\n appInstance.unregister('controller:post');\n appInstance.register('controller:post', PostController2);\n\n var postController2 = appInstance.lookup('controller:post');\n var postController2Factory = appInstance.factoryFor('controller:post');\n assert.ok(postController2 instanceof PostController2, 'lookup creates instance');\n assert.equal(PostController2, postController2Factory.class, 'factoryFor().class matches');\n\n assert.notStrictEqual(postController1, postController2, 'lookup creates a brand new instance, because the previous one was reset');\n });\n\n QUnit.test('can build and boot a registered engine', function (assert) {\n assert.expect(11);\n\n var ChatEngine = _engine.default.extend();\n var chatEngineInstance = void 0;\n\n application.register('engine:chat', ChatEngine);\n\n (0, _emberMetal.run)(function () {\n appInstance = _applicationInstance.default.create({ application: application });\n appInstance.setupRegistry();\n chatEngineInstance = appInstance.buildChildEngineInstance('chat');\n });\n\n return chatEngineInstance.boot().then(function () {\n assert.ok(true, 'boot successful');\n\n var registrations = ['route:basic', 'service:-routing', 'service:-glimmer-environment'];\n\n registrations.forEach(function (key) {\n assert.strictEqual(chatEngineInstance.resolveRegistration(key), appInstance.resolveRegistration(key), 'Engine and parent app share registrations for \\'' + key + '\\'');\n });\n\n var singletons = ['router:main', (0, _container.privatize)(_templateObject), '-view-registry:main', '-environment:main', 'service:-document', 'event_dispatcher:main'];\n\n var env = appInstance.lookup('-environment:main');\n singletons.push(env.isInteractive ? 'renderer:-dom' : 'renderer:-inert');\n\n singletons.forEach(function (key) {\n assert.strictEqual(chatEngineInstance.lookup(key), appInstance.lookup(key), 'Engine and parent app share singleton \\'' + key + '\\'');\n });\n });\n });\n\n QUnit.test('can build a registry via Ember.ApplicationInstance.setupRegistry() -- simulates ember-test-helpers', function (assert) {\n var namespace = _emberRuntime.Object.create({\n Resolver: { create: function () {} }\n });\n\n var registry = _application.default.buildRegistry(namespace);\n\n _applicationInstance.default.setupRegistry(registry);\n\n assert.equal(registry.resolve('service:-document'), document);\n });\n});","QUnit.module('ESLint | ember-application/tests/system/application_instance_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/application_instance_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/application_test', ['ember-babel', 'ember', 'ember-environment', 'ember-metal', 'ember-debug', 'ember-application/system/application', 'ember-routing', 'ember-views', 'ember-runtime', 'ember-template-compiler', 'ember-glimmer', 'container', 'ember-application/tests/test-helpers/registry-check', 'ember-utils', 'internal-test-helpers'], function (_emberBabel, _ember, _emberEnvironment, _emberMetal, _emberDebug, _application, _emberRouting, _emberViews, _emberRuntime, _emberTemplateCompiler, _emberGlimmer, _container, _registryCheck, _emberUtils, _internalTestHelpers) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['template:components/-default'], ['template:components/-default']);\n\n var secondApp = void 0;\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application, autobooting multiple apps', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n (0, _emberViews.jQuery)('#qunit-fixture').html('\\n
\\n
HI
\\n
\\n
HI
\\n ');\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n }\n\n _class.prototype.createSecondApplication = function createSecondApplication(options) {\n var myOptions = (0, _emberUtils.assign)(this.applicationOptions, options);\n return this.secondApp = _application.default.create(myOptions);\n };\n\n _class.prototype.teardown = function teardown() {\n var _this2 = this;\n\n _ApplicationTestCase.prototype.teardown.call(this);\n\n if (this.secondApp) {\n this.runTask(function () {\n return _this2.secondApp.destroy();\n });\n }\n };\n\n _class.prototype['@test you can make a new application in a non-overlapping element'] = function (assert) {\n var _this3 = this;\n\n var app = this.runTask(function () {\n return _this3.createSecondApplication({\n rootElement: '#two'\n });\n });\n\n this.runTask(function () {\n return app.destroy();\n });\n assert.ok(true, 'should not raise');\n };\n\n _class.prototype['@test you cannot make a new application that is a parent of an existing application'] = function () {\n var _this4 = this;\n\n expectAssertion(function () {\n _this4.runTask(function () {\n return _this4.createSecondApplication({\n rootElement: _this4.applicationOptions.rootElement\n });\n });\n });\n };\n\n _class.prototype['@test you cannot make a new application that is a descendant of an existing application'] = function () {\n var _this5 = this;\n\n expectAssertion(function () {\n _this5.runTask(function () {\n return _this5.createSecondApplication({\n rootElement: '#one-child'\n });\n });\n });\n };\n\n _class.prototype['@test you cannot make a new application that is a duplicate of an existing application'] = function () {\n var _this6 = this;\n\n expectAssertion(function () {\n _this6.runTask(function () {\n return _this6.createSecondApplication({\n rootElement: '#one'\n });\n });\n });\n };\n\n _class.prototype['@test you cannot make two default applications without a rootElement error'] = function () {\n var _this7 = this;\n\n expectAssertion(function () {\n _this7.runTask(function () {\n return _this7.createSecondApplication();\n });\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_ApplicationTestCase.prototype.applicationOptions, {\n rootElement: '#one',\n router: null,\n autoboot: true\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application', function (_ApplicationTestCase2) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTestCase2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase2.apply(this, arguments));\n }\n\n _class2.prototype['@test includes deprecated access to `application.registry`'] = function testIncludesDeprecatedAccessToApplicationRegistry(assert) {\n var _this9 = this;\n\n assert.expect(3);\n\n assert.ok(typeof this.application.registry.register === 'function', '#registry.register is available as a function');\n\n this.application.__registry__.register = function () {\n assert.ok(true, '#register alias is called correctly');\n };\n\n expectDeprecation(function () {\n _this9.application.registry.register();\n }, /Using `Application.registry.register` is deprecated. Please use `Application.register` instead./);\n };\n\n _class2.prototype['@test builds a registry'] = function (assert) {\n var application = this.application;\n\n assert.strictEqual(application.resolveRegistration('application:main'), application, 'application:main is registered');\n assert.deepEqual(application.registeredOptionsForType('component'), { singleton: false }, 'optionsForType \\'component\\'');\n assert.deepEqual(application.registeredOptionsForType('view'), { singleton: false }, 'optionsForType \\'view\\'');\n (0, _registryCheck.verifyRegistration)(application, 'controller:basic');\n (0, _registryCheck.verifyRegistration)(application, '-view-registry:main');\n (0, _registryCheck.verifyInjection)(application, 'view', '_viewRegistry', '-view-registry:main');\n (0, _registryCheck.verifyInjection)(application, 'route', '_topLevelViewTemplate', 'template:-outlet');\n (0, _registryCheck.verifyRegistration)(application, 'route:basic');\n (0, _registryCheck.verifyRegistration)(application, 'event_dispatcher:main');\n (0, _registryCheck.verifyInjection)(application, 'router:main', 'namespace', 'application:main');\n (0, _registryCheck.verifyInjection)(application, 'view:-outlet', 'namespace', 'application:main');\n\n (0, _registryCheck.verifyRegistration)(application, 'location:auto');\n (0, _registryCheck.verifyRegistration)(application, 'location:hash');\n (0, _registryCheck.verifyRegistration)(application, 'location:history');\n (0, _registryCheck.verifyRegistration)(application, 'location:none');\n\n (0, _registryCheck.verifyInjection)(application, 'controller', 'target', 'router:main');\n (0, _registryCheck.verifyInjection)(application, 'controller', 'namespace', 'application:main');\n\n (0, _registryCheck.verifyRegistration)(application, (0, _container.privatize)(_templateObject));\n (0, _registryCheck.verifyInjection)(application, 'router', '_bucketCache', (0, _container.privatize)(_templateObject));\n (0, _registryCheck.verifyInjection)(application, 'route', '_bucketCache', (0, _container.privatize)(_templateObject));\n\n (0, _registryCheck.verifyInjection)(application, 'route', 'router', 'router:main');\n\n (0, _registryCheck.verifyRegistration)(application, 'component:-text-field');\n (0, _registryCheck.verifyRegistration)(application, 'component:-text-area');\n (0, _registryCheck.verifyRegistration)(application, 'component:-checkbox');\n (0, _registryCheck.verifyRegistration)(application, 'component:link-to');\n\n (0, _registryCheck.verifyRegistration)(application, 'service:-routing');\n (0, _registryCheck.verifyInjection)(application, 'service:-routing', 'router', 'router:main');\n\n // DEBUGGING\n (0, _registryCheck.verifyRegistration)(application, 'resolver-for-debugging:main');\n (0, _registryCheck.verifyInjection)(application, 'container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n (0, _registryCheck.verifyInjection)(application, 'data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n (0, _registryCheck.verifyRegistration)(application, 'container-debug-adapter:main');\n (0, _registryCheck.verifyRegistration)(application, 'component-lookup:main');\n\n (0, _registryCheck.verifyRegistration)(application, 'service:-glimmer-environment');\n (0, _registryCheck.verifyRegistration)(application, 'service:-dom-changes');\n (0, _registryCheck.verifyRegistration)(application, 'service:-dom-tree-construction');\n (0, _registryCheck.verifyInjection)(application, 'service:-glimmer-environment', 'appendOperations', 'service:-dom-tree-construction');\n (0, _registryCheck.verifyInjection)(application, 'service:-glimmer-environment', 'updateOperations', 'service:-dom-changes');\n (0, _registryCheck.verifyInjection)(application, 'renderer', 'env', 'service:-glimmer-environment');\n (0, _registryCheck.verifyRegistration)(application, 'view:-outlet');\n (0, _registryCheck.verifyRegistration)(application, 'renderer:-dom');\n (0, _registryCheck.verifyRegistration)(application, 'renderer:-inert');\n (0, _registryCheck.verifyRegistration)(application, (0, _container.privatize)(_templateObject2));\n (0, _registryCheck.verifyRegistration)(application, 'template:-outlet');\n (0, _registryCheck.verifyInjection)(application, 'view:-outlet', 'template', 'template:-outlet');\n (0, _registryCheck.verifyInjection)(application, 'template', 'env', 'service:-glimmer-environment');\n assert.deepEqual(application.registeredOptionsForType('helper'), { instantiate: false }, 'optionsForType \\'helper\\'');\n };\n\n return _class2;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application, default resolver with autoboot', function (_DefaultResolverAppli) {\n (0, _emberBabel.inherits)(_class3, _DefaultResolverAppli);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this10 = (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli.call(this));\n\n _this10.originalLookup = _emberEnvironment.context.lookup;\n return _this10;\n }\n\n _class3.prototype.teardown = function teardown() {\n _emberEnvironment.context.lookup = this.originalLookup;\n _DefaultResolverAppli.prototype.teardown.call(this);\n (0, _emberGlimmer.setTemplates)({});\n };\n\n _class3.prototype['@test acts like a namespace'] = function (assert) {\n var _this11 = this;\n\n var lookup = _emberEnvironment.context.lookup = {};\n\n lookup.TestApp = this.runTask(function () {\n return _this11.createApplication();\n });\n\n (0, _emberRuntime.setNamespaceSearchDisabled)(false);\n var Foo = this.application.Foo = _emberRuntime.Object.extend();\n assert.equal(Foo.toString(), 'TestApp.Foo', 'Classes pick up their parent namespace');\n };\n\n _class3.prototype['@test can specify custom router'] = function (assert) {\n var _this12 = this;\n\n var MyRouter = _emberRouting.Router.extend();\n this.runTask(function () {\n _this12.createApplication();\n _this12.application.Router = MyRouter;\n });\n\n assert.ok(this.application.__deprecatedInstance__.lookup('router:main') instanceof MyRouter, 'application resolved the correct router');\n };\n\n _class3.prototype['@test Minimal Application initialized with just an application template'] = function (assert) {\n var _this13 = this;\n\n this.$().html('');\n this.runTask(function () {\n return _this13.createApplication();\n });\n\n assert.equal(this.$().text().trim(), 'Hello World');\n };\n\n (0, _emberBabel.createClass)(_class3, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_DefaultResolverAppli.prototype.applicationOptions, {\n autoboot: true\n });\n }\n }]);\n return _class3;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application, autobooting', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class4, _AutobootApplicationT);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n\n var _this14 = (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n\n _this14.originalLogVersion = _emberEnvironment.ENV.LOG_VERSION;\n _this14.originalDebug = (0, _emberDebug.getDebugFunction)('debug');\n _this14.originalWarn = (0, _emberDebug.getDebugFunction)('warn');\n return _this14;\n }\n\n _class4.prototype.teardown = function teardown() {\n (0, _emberDebug.setDebugFunction)('warn', this.originalWarn);\n (0, _emberDebug.setDebugFunction)('debug', this.originalDebug);\n _emberEnvironment.ENV.LOG_VERSION = this.originalLogVersion;\n _AutobootApplicationT.prototype.teardown.call(this);\n };\n\n _class4.prototype['@test initialized application goes to initial route'] = function (assert) {\n var _this15 = this;\n\n this.runTask(function () {\n _this15.createApplication();\n _this15.addTemplate('application', '{{outlet}}');\n _this15.addTemplate('index', '

Hi from index

');\n });\n\n assert.equal(this.$('h1').text(), 'Hi from index');\n };\n\n _class4.prototype['@test ready hook is called before routing begins'] = function (assert) {\n var _this16 = this;\n\n assert.expect(2);\n\n this.runTask(function () {\n function registerRoute(application, name, callback) {\n var route = _emberRouting.Route.extend({\n activate: callback\n });\n\n application.register('route:' + name, route);\n }\n\n var MyApplication = _application.default.extend({\n ready: function () {\n registerRoute(this, 'index', function () {\n assert.ok(true, 'last-minute route is activated');\n });\n }\n });\n\n var app = _this16.createApplication({}, MyApplication);\n\n registerRoute(app, 'application', function () {\n return ok(true, 'normal route is activated');\n });\n });\n };\n\n _class4.prototype['@test initialize application via initialize call'] = function (assert) {\n var _this17 = this;\n\n this.runTask(function () {\n return _this17.createApplication();\n });\n // This is not a public way to access the container; we just\n // need to make some assertions about the created router\n var router = this.applicationInstance.lookup('router:main');\n assert.equal(router instanceof _emberRouting.Router, true, 'Router was set from initialize call');\n assert.equal(router.location instanceof _emberRouting.NoneLocation, true, 'Location was set from location implementation name');\n };\n\n _class4.prototype['@test initialize application with stateManager via initialize call from Router class'] = function (assert) {\n var _this18 = this;\n\n this.runTask(function () {\n _this18.createApplication();\n _this18.addTemplate('application', '

Hello!

');\n });\n // This is not a public way to access the container; we just\n // need to make some assertions about the created router\n var router = this.application.__deprecatedInstance__.lookup('router:main');\n assert.equal(router instanceof _emberRouting.Router, true, 'Router was set from initialize call');\n assert.equal(this.$('h1').text(), 'Hello!');\n };\n\n _class4.prototype['@test Application Controller backs the appplication template'] = function (assert) {\n var _this19 = this;\n\n this.runTask(function () {\n _this19.createApplication();\n _this19.addTemplate('application', '

{{greeting}}

');\n _this19.add('controller:application', _emberRuntime.Controller.extend({\n greeting: 'Hello!'\n }));\n });\n assert.equal(this.$('h1').text(), 'Hello!');\n };\n\n _class4.prototype['@test enable log of libraries with an ENV var'] = function (assert) {\n var _this20 = this;\n\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n var messages = [];\n\n _emberEnvironment.ENV.LOG_VERSION = true;\n\n (0, _emberDebug.setDebugFunction)('debug', function (message) {\n return messages.push(message);\n });\n\n _emberMetal.libraries.register('my-lib', '2.0.0a');\n\n this.runTask(function () {\n return _this20.createApplication();\n });\n\n assert.equal(messages[1], 'Ember : ' + _ember.VERSION);\n assert.equal(messages[2], 'jQuery : ' + (0, _emberViews.jQuery)().jquery);\n assert.equal(messages[3], 'my-lib : ' + '2.0.0a');\n\n _emberMetal.libraries.deRegister('my-lib');\n };\n\n _class4.prototype['@test disable log of version of libraries with an ENV var'] = function (assert) {\n var _this21 = this;\n\n var logged = false;\n\n _emberEnvironment.ENV.LOG_VERSION = false;\n\n (0, _emberDebug.setDebugFunction)('debug', function () {\n return logged = true;\n });\n\n this.runTask(function () {\n return _this21.createApplication();\n });\n\n assert.ok(!logged, 'library version logging skipped');\n };\n\n _class4.prototype['@test can resolve custom router'] = function (assert) {\n var _this22 = this;\n\n var CustomRouter = _emberRouting.Router.extend();\n\n this.runTask(function () {\n _this22.createApplication();\n _this22.add('router:main', CustomRouter);\n });\n\n assert.ok(this.application.__deprecatedInstance__.lookup('router:main') instanceof CustomRouter, 'application resolved the correct router');\n };\n\n _class4.prototype['@test does not leak itself in onLoad._loaded'] = function (assert) {\n var _this23 = this;\n\n assert.equal(_emberRuntime._loaded.application, undefined);\n this.runTask(function () {\n return _this23.createApplication();\n });\n assert.equal(_emberRuntime._loaded.application, this.application);\n this.runTask(function () {\n return _this23.application.destroy();\n });\n assert.equal(_emberRuntime._loaded.application, undefined);\n };\n\n _class4.prototype['@test can build a registry via Ember.Application.buildRegistry() --- simulates ember-test-helpers'] = function (assert) {\n var namespace = _emberRuntime.Object.create({\n Resolver: { create: function () {} }\n });\n\n var registry = _application.default.buildRegistry(namespace);\n\n assert.equal(registry.resolve('application:main'), namespace);\n };\n\n return _class4;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application#buildRegistry', function (_AbstractTestCase) {\n (0, _emberBabel.inherits)(_class5, _AbstractTestCase);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractTestCase.apply(this, arguments));\n }\n\n _class5.prototype['@test can build a registry via Ember.Application.buildRegistry() --- simulates ember-test-helpers'] = function (assert) {\n var namespace = _emberRuntime.Object.create({\n Resolver: {\n create: function () {}\n }\n });\n\n var registry = _application.default.buildRegistry(namespace);\n\n assert.equal(registry.resolve('application:main'), namespace);\n };\n\n return _class5;\n }(_internalTestHelpers.AbstractTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/application_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/application_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/bootstrap-test', ['ember-babel', 'ember-utils', 'ember-views', 'internal-test-helpers'], function (_emberBabel, _emberUtils, _emberViews, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application with default resolver and autoboot', function (_DefaultResolverAppli) {\n (0, _emberBabel.inherits)(_class, _DefaultResolverAppli);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n (0, _emberViews.jQuery)('#qunit-fixture').html('\\n
\\n\\n \\n \\n ');\n return (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli.call(this));\n }\n\n _class.prototype['@test templates in script tags are extracted at application creation'] = function testTemplatesInScriptTagsAreExtractedAtApplicationCreation(assert) {\n var _this2 = this;\n\n this.runTask(function () {\n return _this2.createApplication();\n });\n assert.equal(this.$('#app').text(), 'Hello World!');\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_DefaultResolverAppli.prototype.applicationOptions, {\n autoboot: true,\n rootElement: '#app'\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/bootstrap-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/bootstrap-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/dependency_injection/custom_resolver_test', ['ember-babel', 'ember-application/system/resolver', 'ember-utils', 'internal-test-helpers'], function (_emberBabel, _resolver, _emberUtils, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application with extended default resolver and autoboot', function (_DefaultResolverAppli) {\n (0, _emberBabel.inherits)(_class, _DefaultResolverAppli);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli.apply(this, arguments));\n }\n\n _class.prototype['@test a resolver can be supplied to application'] = function (assert) {\n var _this2 = this;\n\n this.runTask(function () {\n return _this2.createApplication();\n });\n assert.equal(this.$('h1').text(), 'Fallback');\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n var applicationTemplate = this.compile('

Fallback

');\n\n var Resolver = _resolver.default.extend({\n resolveTemplate: function (resolvable) {\n if (resolvable.fullNameWithoutType === 'application') {\n return applicationTemplate;\n } else {\n return this._super(resolvable);\n }\n }\n });\n\n return (0, _emberUtils.assign)(_DefaultResolverAppli.prototype.applicationOptions, {\n Resolver: Resolver,\n autoboot: true\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/dependency_injection/custom_resolver_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/dependency_injection/custom_resolver_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/dependency_injection/default_resolver_test', ['ember-babel', 'internal-test-helpers', 'ember-environment', 'ember-runtime', 'ember-routing', 'ember-glimmer', 'ember-debug'], function (_emberBabel, _internalTestHelpers, _emberEnvironment, _emberRuntime, _emberRouting, _emberGlimmer, _emberDebug) {\n 'use strict';\n\n /* globals EmberDev */\n (0, _internalTestHelpers.moduleFor)('Ember.Application Dependency Injection - Integration - default resolver', function (_DefaultResolverAppli) {\n (0, _emberBabel.inherits)(_class, _DefaultResolverAppli);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli.apply(this, arguments));\n }\n\n _class.prototype.beforeEach = function beforeEach() {\n var _this2 = this;\n\n this.runTask(function () {\n return _this2.createApplication();\n });\n return this.visit('/');\n };\n\n _class.prototype['@test the default resolver looks up templates in Ember.TEMPLATES'] = function (assert) {\n var fooTemplate = this.addTemplate('foo', 'foo template');\n var fooBarTemplate = this.addTemplate('fooBar', 'fooBar template');\n var fooBarBazTemplate = this.addTemplate('fooBar/baz', 'fooBar/baz template');\n\n assert.equal(this.applicationInstance.factoryFor('template:foo').class, fooTemplate, 'resolves template:foo');\n assert.equal(this.applicationInstance.factoryFor('template:fooBar').class, fooBarTemplate, 'resolves template:foo_bar');\n assert.equal(this.applicationInstance.factoryFor('template:fooBar.baz').class, fooBarBazTemplate, 'resolves template:foo_bar.baz');\n };\n\n _class.prototype['@test the default resolver looks up basic name as no prefix'] = function (assert) {\n var instance = this.applicationInstance.lookup('controller:basic');\n assert.ok(_emberRuntime.Controller.detect(instance), 'locator looks up correct controller');\n };\n\n _class.prototype['@test the default resolver looks up arbitrary types on the namespace'] = function (assert) {\n var Class = this.application.FooManager = _emberRuntime.Object.extend();\n var resolvedClass = this.application.resolveRegistration('manager:foo');\n assert.equal(Class, resolvedClass, 'looks up FooManager on application');\n };\n\n _class.prototype['@test the default resolver resolves models on the namespace'] = function (assert) {\n var Class = this.application.Post = _emberRuntime.Object.extend();\n var factoryClass = this.applicationInstance.factoryFor('model:post').class;\n assert.equal(Class, factoryClass, 'looks up Post model on application');\n };\n\n _class.prototype['@test the default resolver resolves *:main on the namespace'] = function (assert) {\n var Class = this.application.FooBar = _emberRuntime.Object.extend();\n var factoryClass = this.applicationInstance.factoryFor('foo-bar:main').class;\n assert.equal(Class, factoryClass, 'looks up FooBar type without name on application');\n };\n\n _class.prototype['@test the default resolver resolves container-registered helpers'] = function (assert) {\n var shorthandHelper = (0, _emberGlimmer.helper)(function () {});\n var helper = _emberGlimmer.Helper.extend();\n\n this.application.register('helper:shorthand', shorthandHelper);\n this.application.register('helper:complete', helper);\n\n var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;\n\n assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');\n\n var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;\n\n assert.ok(lookedUpHelper.isHelperFactory, 'complete helper is factory');\n assert.ok(helper.detect(lookedUpHelper), 'looked up complete helper');\n };\n\n _class.prototype['@test the default resolver resolves container-registered helpers via lookupFor'] = function (assert) {\n var shorthandHelper = (0, _emberGlimmer.helper)(function () {});\n var helper = _emberGlimmer.Helper.extend();\n\n this.application.register('helper:shorthand', shorthandHelper);\n this.application.register('helper:complete', helper);\n\n var lookedUpShorthandHelper = this.applicationInstance.factoryFor('helper:shorthand').class;\n\n assert.ok(lookedUpShorthandHelper.isHelperFactory, 'shorthand helper isHelper');\n\n var lookedUpHelper = this.applicationInstance.factoryFor('helper:complete').class;\n\n assert.ok(lookedUpHelper.isHelperFactory, 'complete helper is factory');\n assert.ok(helper.detect(lookedUpHelper), 'looked up complete helper');\n };\n\n _class.prototype['@test the default resolver resolves helpers on the namespace'] = function (assert) {\n var ShorthandHelper = (0, _emberGlimmer.helper)(function () {});\n var CompleteHelper = _emberGlimmer.Helper.extend();\n\n this.application.ShorthandHelper = ShorthandHelper;\n this.application.CompleteHelper = CompleteHelper;\n\n var resolvedShorthand = this.application.resolveRegistration('helper:shorthand');\n var resolvedComplete = this.application.resolveRegistration('helper:complete');\n\n assert.equal(resolvedShorthand, ShorthandHelper, 'resolve fetches the shorthand helper factory');\n assert.equal(resolvedComplete, CompleteHelper, 'resolve fetches the complete helper factory');\n };\n\n _class.prototype['@test the default resolver resolves to the same instance, no matter the notation '] = function (assert) {\n this.application.NestedPostController = _emberRuntime.Controller.extend({});\n\n assert.equal(this.applicationInstance.lookup('controller:nested-post'), this.applicationInstance.lookup('controller:nested_post'), 'looks up NestedPost controller on application');\n };\n\n _class.prototype['@test the default resolver throws an error if the fullName to resolve is invalid'] = function (assert) {\n var _this3 = this;\n\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration(undefined);\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration(null);\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration('');\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration('');\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration(':');\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration('model');\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration('model:');\n }, /fullName must be a proper full name/);\n expectAssertion(function () {\n _this3.applicationInstance.resolveRegistration(':type');\n }, /fullName must be a proper full name/);\n };\n\n _class.prototype['@test lookup description'] = function (assert) {\n this.application.toString = function () {\n return 'App';\n };\n\n assert.equal(this.privateRegistry.describe('controller:foo'), 'App.FooController', 'Type gets appended at the end');\n assert.equal(this.privateRegistry.describe('controller:foo.bar'), 'App.FooBarController', 'dots are removed');\n assert.equal(this.privateRegistry.describe('model:foo'), 'App.Foo', 'models don\\'t get appended at the end');\n };\n\n _class.prototype['@test assertion for routes without isRouteFactory property'] = function (assert) {\n var _this4 = this;\n\n this.application.FooRoute = _emberGlimmer.Component.extend();\n\n expectAssertion(function () {\n _this4.privateRegistry.resolve('route:foo');\n }, /to resolve to an Ember.Route/, 'Should assert');\n };\n\n _class.prototype['@test no assertion for routes that extend from Ember.Route'] = function (assert) {\n assert.expect(0);\n this.application.FooRoute = _emberRouting.Route.extend();\n this.privateRegistry.resolve('route:foo');\n };\n\n _class.prototype['@test deprecation warning for service factories without isServiceFactory property'] = function (assert) {\n var _this5 = this;\n\n expectAssertion(function () {\n _this5.application.FooService = _emberRuntime.Object.extend();\n _this5.privateRegistry.resolve('service:foo');\n }, /Expected service:foo to resolve to an Ember.Service but instead it was \\.FooService\\./);\n };\n\n _class.prototype['@test no deprecation warning for service factories that extend from Ember.Service'] = function (assert) {\n assert.expect(0);\n this.application.FooService = _emberRuntime.Service.extend();\n this.privateRegistry.resolve('service:foo');\n };\n\n _class.prototype['@test deprecation warning for component factories without isComponentFactory property'] = function (assert) {\n var _this6 = this;\n\n expectAssertion(function () {\n _this6.application.FooComponent = _emberRuntime.Object.extend();\n _this6.privateRegistry.resolve('component:foo');\n }, /Expected component:foo to resolve to an Ember\\.Component but instead it was \\.FooComponent\\./);\n };\n\n _class.prototype['@test no deprecation warning for component factories that extend from Ember.Component'] = function (assert) {\n expectNoDeprecation();\n this.application.FooView = _emberGlimmer.Component.extend();\n this.privateRegistry.resolve('component:foo');\n };\n\n _class.prototype['@test knownForType returns each item for a given type found'] = function (assert) {\n this.application.FooBarHelper = 'foo';\n this.application.BazQuxHelper = 'bar';\n\n var found = this.privateRegistry.resolver.knownForType('helper');\n\n assert.deepEqual(found, {\n 'helper:foo-bar': true,\n 'helper:baz-qux': true\n });\n };\n\n _class.prototype['@test knownForType is not required to be present on the resolver'] = function (assert) {\n delete this.privateRegistry.resolver.knownForType;\n\n this.privateRegistry.resolver.knownForType('helper', function () {});\n\n assert.ok(true, 'does not error');\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'privateRegistry',\n get: function () {\n return this.application.__registry__;\n }\n }]);\n return _class;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application Dependency Injection - Integration - default resolver w/ other namespace', function (_DefaultResolverAppli2) {\n (0, _emberBabel.inherits)(_class2, _DefaultResolverAppli2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli2.apply(this, arguments));\n }\n\n _class2.prototype.beforeEach = function beforeEach() {\n var _this8 = this;\n\n this.UserInterface = _emberEnvironment.context.lookup.UserInterface = _emberRuntime.Namespace.create();\n this.runTask(function () {\n return _this8.createApplication();\n });\n return this.visit('/');\n };\n\n _class2.prototype.teardown = function teardown() {\n var UserInterfaceNamespace = _emberRuntime.Namespace.NAMESPACES_BY_ID['UserInterface'];\n if (UserInterfaceNamespace) {\n this.runTask(function () {\n UserInterfaceNamespace.destroy();\n });\n }\n _DefaultResolverAppli2.prototype.teardown.call(this);\n };\n\n _class2.prototype['@test the default resolver can look things up in other namespaces'] = function (assert) {\n this.UserInterface.NavigationController = _emberRuntime.Controller.extend();\n\n var nav = this.applicationInstance.lookup('controller:userInterface/navigation');\n\n assert.ok(nav instanceof this.UserInterface.NavigationController, 'the result should be an instance of the specified class');\n };\n\n return _class2;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application Dependency Injection - Integration - default resolver', function (_DefaultResolverAppli3) {\n (0, _emberBabel.inherits)(_class3, _DefaultResolverAppli3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this9 = (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli3.call(this));\n\n _this9._originalLookup = _emberEnvironment.context.lookup;\n _this9._originalInfo = (0, _emberDebug.getDebugFunction)('info');\n return _this9;\n }\n\n _class3.prototype.beforeEach = function beforeEach() {\n var _this10 = this;\n\n this.runTask(function () {\n return _this10.createApplication();\n });\n return this.visit('/');\n };\n\n _class3.prototype.teardown = function teardown() {\n (0, _emberDebug.setDebugFunction)('info', this._originalInfo);\n _emberEnvironment.context.lookup = this._originalLookup;\n _DefaultResolverAppli3.prototype.teardown.call(this);\n };\n\n _class3.prototype['@test the default resolver logs hits if \\'LOG_RESOLVER\\' is set'] = function (assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n assert.expect(3);\n\n this.application.LOG_RESOLVER = true;\n this.application.ScoobyDoo = _emberRuntime.Object.extend();\n this.application.toString = function () {\n return 'App';\n };\n\n (0, _emberDebug.setDebugFunction)('info', function (symbol, name, padding, lookupDescription) {\n assert.equal(symbol, '[✓]', 'proper symbol is printed when a module is found');\n assert.equal(name, 'doo:scooby', 'proper lookup value is logged');\n assert.equal(lookupDescription, 'App.ScoobyDoo');\n });\n\n this.applicationInstance.resolveRegistration('doo:scooby');\n };\n\n _class3.prototype['@test the default resolver logs misses if \\'LOG_RESOLVER\\' is set'] = function (assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n assert.expect(3);\n\n this.application.LOG_RESOLVER = true;\n this.application.toString = function () {\n return 'App';\n };\n\n (0, _emberDebug.setDebugFunction)('info', function (symbol, name, padding, lookupDescription) {\n assert.equal(symbol, '[ ]', 'proper symbol is printed when a module is not found');\n assert.equal(name, 'doo:scooby', 'proper lookup value is logged');\n assert.equal(lookupDescription, 'App.ScoobyDoo');\n });\n\n this.applicationInstance.resolveRegistration('doo:scooby');\n };\n\n _class3.prototype['@test doesn\\'t log without LOG_RESOLVER'] = function (assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n var infoCount = 0;\n\n this.application.ScoobyDoo = _emberRuntime.Object.extend();\n\n (0, _emberDebug.setDebugFunction)('info', function (symbol, name) {\n return infoCount = infoCount + 1;\n });\n\n this.applicationInstance.resolveRegistration('doo:scooby');\n this.applicationInstance.resolveRegistration('doo:scrappy');\n assert.equal(infoCount, 0, 'Logger.info should not be called if LOG_RESOLVER is not set');\n };\n\n return _class3;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/dependency_injection/default_resolver_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/dependency_injection/default_resolver_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/dependency_injection/normalization_test', ['ember-metal', 'ember-application/system/application'], function (_emberMetal, _application) {\n 'use strict';\n\n var application = void 0,\n registry = void 0;\n\n QUnit.module('Ember.Application Dependency Injection – normalization', {\n setup: function () {\n application = (0, _emberMetal.run)(_application.default, 'create');\n registry = application.__registry__;\n },\n teardown: function () {\n (0, _emberMetal.run)(application, 'destroy');\n }\n });\n\n QUnit.test('normalization', function () {\n ok(registry.normalize, 'registry#normalize is present');\n\n equal(registry.normalize('foo:bar'), 'foo:bar');\n\n equal(registry.normalize('controller:posts'), 'controller:posts');\n equal(registry.normalize('controller:posts_index'), 'controller:postsIndex');\n equal(registry.normalize('controller:posts.index'), 'controller:postsIndex');\n equal(registry.normalize('controller:posts-index'), 'controller:postsIndex');\n equal(registry.normalize('controller:posts.post.index'), 'controller:postsPostIndex');\n equal(registry.normalize('controller:posts_post.index'), 'controller:postsPostIndex');\n equal(registry.normalize('controller:posts.post_index'), 'controller:postsPostIndex');\n equal(registry.normalize('controller:posts.post-index'), 'controller:postsPostIndex');\n equal(registry.normalize('controller:postsIndex'), 'controller:postsIndex');\n equal(registry.normalize('controller:blogPosts.index'), 'controller:blogPostsIndex');\n equal(registry.normalize('controller:blog/posts.index'), 'controller:blog/postsIndex');\n equal(registry.normalize('controller:blog/posts-index'), 'controller:blog/postsIndex');\n equal(registry.normalize('controller:blog/posts.post.index'), 'controller:blog/postsPostIndex');\n equal(registry.normalize('controller:blog/posts_post.index'), 'controller:blog/postsPostIndex');\n equal(registry.normalize('controller:blog/posts_post-index'), 'controller:blog/postsPostIndex');\n\n equal(registry.normalize('template:blog/posts_index'), 'template:blog/posts_index');\n });\n\n QUnit.test('normalization is indempotent', function () {\n var examples = ['controller:posts', 'controller:posts.post.index', 'controller:blog/posts.post_index', 'template:foo_bar'];\n\n examples.forEach(function (example) {\n equal(registry.normalize(registry.normalize(example)), registry.normalize(example));\n });\n });\n});","QUnit.module('ESLint | ember-application/tests/system/dependency_injection/normalization_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/dependency_injection/normalization_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/dependency_injection/to_string_test', ['ember-babel', 'ember-utils', 'ember-runtime', 'ember-application', 'internal-test-helpers'], function (_emberBabel, _emberUtils, _emberRuntime, _emberApplication, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application Dependency Injection - DefaultResolver#toString', function (_DefaultResolverAppli) {\n (0, _emberBabel.inherits)(_class, _DefaultResolverAppli);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _DefaultResolverAppli.call(this));\n\n _this.runTask(function () {\n return _this.createApplication();\n });\n _this.application.Post = _emberRuntime.Object.extend();\n return _this;\n }\n\n _class.prototype.beforeEach = function beforeEach() {\n return this.visit('/');\n };\n\n _class.prototype['@test factories'] = function testFactories(assert) {\n var PostFactory = this.applicationInstance.factoryFor('model:post').class;\n assert.equal(PostFactory.toString(), '.Post', 'expecting the model to be post');\n };\n\n _class.prototype['@test instances'] = function testInstances(assert) {\n var post = this.applicationInstance.lookup('model:post');\n var guid = (0, _emberUtils.guidFor)(post);\n\n assert.equal(post.toString(), '<.Post:' + guid + '>', 'expecting the model to be post');\n };\n\n return _class;\n }(_internalTestHelpers.DefaultResolverApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application Dependency Injection - Resolver#toString', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTestCase);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class2.prototype.beforeEach = function beforeEach() {\n return this.visit('/');\n };\n\n _class2.prototype['@test toString called on a resolver'] = function testToStringCalledOnAResolver(assert) {\n this.add('model:peter', _emberRuntime.Object.extend());\n\n var peter = this.applicationInstance.lookup('model:peter');\n var guid = (0, _emberUtils.guidFor)(peter);\n assert.equal(peter.toString(), '', 'expecting the supermodel to be peter');\n };\n\n (0, _emberBabel.createClass)(_class2, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_ApplicationTestCase.prototype.applicationOptions, {\n Resolver: function (_ModuleBasedTestResol) {\n (0, _emberBabel.inherits)(Resolver, _ModuleBasedTestResol);\n\n function Resolver() {\n (0, _emberBabel.classCallCheck)(this, Resolver);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ModuleBasedTestResol.apply(this, arguments));\n }\n\n Resolver.prototype.makeToString = function makeToString(_, fullName) {\n return fullName;\n };\n\n return Resolver;\n }(_internalTestHelpers.ModuleBasedTestResolver)\n });\n }\n }]);\n return _class2;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/dependency_injection/to_string_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/dependency_injection/to_string_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/dependency_injection_test', ['ember-environment', 'ember-metal', 'ember-runtime', 'ember-application/system/application'], function (_emberEnvironment, _emberMetal, _emberRuntime, _application) {\n 'use strict';\n\n var EmberApplication = _application.default;\n\n var originalLookup = _emberEnvironment.context.lookup;\n var registry = void 0,\n locator = void 0,\n application = void 0;\n\n QUnit.module('Ember.Application Dependency Injection', {\n setup: function () {\n application = (0, _emberMetal.run)(EmberApplication, 'create');\n\n application.Person = _emberRuntime.Object.extend({});\n application.Orange = _emberRuntime.Object.extend({});\n application.Email = _emberRuntime.Object.extend({});\n application.User = _emberRuntime.Object.extend({});\n application.PostIndexController = _emberRuntime.Object.extend({});\n\n application.register('model:person', application.Person, { singleton: false });\n application.register('model:user', application.User, { singleton: false });\n application.register('fruit:favorite', application.Orange);\n application.register('communication:main', application.Email, { singleton: false });\n application.register('controller:postIndex', application.PostIndexController, { singleton: true });\n\n registry = application.__registry__;\n locator = application.__container__;\n\n _emberEnvironment.context.lookup = {};\n },\n teardown: function () {\n (0, _emberMetal.run)(application, 'destroy');\n application = locator = null;\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('container lookup is normalized', function () {\n var dotNotationController = locator.lookup('controller:post.index');\n var camelCaseController = locator.lookup('controller:postIndex');\n\n ok(dotNotationController instanceof application.PostIndexController);\n ok(camelCaseController instanceof application.PostIndexController);\n\n equal(dotNotationController, camelCaseController);\n });\n\n QUnit.test('registered entities can be looked up later', function () {\n equal(registry.resolve('model:person'), application.Person);\n equal(registry.resolve('model:user'), application.User);\n equal(registry.resolve('fruit:favorite'), application.Orange);\n equal(registry.resolve('communication:main'), application.Email);\n equal(registry.resolve('controller:postIndex'), application.PostIndexController);\n\n equal(locator.lookup('fruit:favorite'), locator.lookup('fruit:favorite'), 'singleton lookup worked');\n ok(locator.lookup('model:user') !== locator.lookup('model:user'), 'non-singleton lookup worked');\n });\n\n QUnit.test('injections', function () {\n application.inject('model', 'fruit', 'fruit:favorite');\n application.inject('model:user', 'communication', 'communication:main');\n\n var user = locator.lookup('model:user');\n var person = locator.lookup('model:person');\n var fruit = locator.lookup('fruit:favorite');\n\n equal(user.get('fruit'), fruit);\n equal(person.get('fruit'), fruit);\n\n ok(application.Email.detectInstance(user.get('communication')));\n });\n});","QUnit.module('ESLint | ember-application/tests/system/dependency_injection_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/dependency_injection_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/engine_initializers_test', ['ember-metal', 'ember-application/system/engine'], function (_emberMetal, _engine) {\n 'use strict';\n\n var MyEngine = void 0,\n myEngine = void 0,\n myEngineInstance = void 0;\n\n QUnit.module('Ember.Engine initializers', {\n setup: function () {},\n teardown: function () {\n (0, _emberMetal.run)(function () {\n if (myEngineInstance) {\n myEngineInstance.destroy();\n }\n\n if (myEngine) {\n myEngine.destroy();\n }\n });\n }\n });\n\n QUnit.test('initializers require proper \\'name\\' and \\'initialize\\' properties', function () {\n MyEngine = _engine.default.extend();\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n MyEngine.initializer({ name: 'initializer' });\n });\n });\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n MyEngine.initializer({\n initialize: function () {}\n });\n });\n });\n });\n\n QUnit.test('initializers are passed an Engine', function () {\n MyEngine = _engine.default.extend();\n\n MyEngine.initializer({\n name: 'initializer',\n initialize: function (engine) {\n ok(engine instanceof _engine.default, 'initialize is passed an Engine');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n });\n\n QUnit.test('initializers can be registered in a specified order', function () {\n var order = [];\n\n MyEngine = _engine.default.extend();\n MyEngine.initializer({\n name: 'fourth',\n after: 'third',\n initialize: function (engine) {\n order.push('fourth');\n }\n });\n\n MyEngine.initializer({\n name: 'second',\n after: 'first',\n before: 'third',\n initialize: function (engine) {\n order.push('second');\n }\n });\n\n MyEngine.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (engine) {\n order.push('fifth');\n }\n });\n\n MyEngine.initializer({\n name: 'first',\n before: 'second',\n initialize: function (engine) {\n order.push('first');\n }\n });\n\n MyEngine.initializer({\n name: 'third',\n initialize: function (engine) {\n order.push('third');\n }\n });\n\n MyEngine.initializer({\n name: 'sixth',\n initialize: function (engine) {\n order.push('sixth');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n\n deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n\n QUnit.test('initializers can be registered in a specified order as an array', function () {\n var order = [];\n\n MyEngine = _engine.default.extend();\n\n MyEngine.initializer({\n name: 'third',\n initialize: function (engine) {\n order.push('third');\n }\n });\n\n MyEngine.initializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n initialize: function (engine) {\n order.push('second');\n }\n });\n\n MyEngine.initializer({\n name: 'fourth',\n after: ['second', 'third'],\n initialize: function (engine) {\n order.push('fourth');\n }\n });\n\n MyEngine.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (engine) {\n order.push('fifth');\n }\n });\n\n MyEngine.initializer({\n name: 'first',\n before: ['second'],\n initialize: function (engine) {\n order.push('first');\n }\n });\n\n MyEngine.initializer({\n name: 'sixth',\n initialize: function (engine) {\n order.push('sixth');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n\n deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n\n QUnit.test('initializers can have multiple dependencies', function () {\n var order = [];\n\n MyEngine = _engine.default.extend();\n\n var a = {\n name: 'a',\n before: 'b',\n initialize: function (engine) {\n order.push('a');\n }\n };\n var b = {\n name: 'b',\n initialize: function (engine) {\n order.push('b');\n }\n };\n var c = {\n name: 'c',\n after: 'b',\n initialize: function (engine) {\n order.push('c');\n }\n };\n var afterB = {\n name: 'after b',\n after: 'b',\n initialize: function (engine) {\n order.push('after b');\n }\n };\n var afterC = {\n name: 'after c',\n after: 'c',\n initialize: function (engine) {\n order.push('after c');\n }\n };\n\n MyEngine.initializer(b);\n MyEngine.initializer(a);\n MyEngine.initializer(afterC);\n MyEngine.initializer(afterB);\n MyEngine.initializer(c);\n\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n\n ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n });\n\n QUnit.test('initializers set on Engine subclasses are not shared between engines', function () {\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'first',\n initialize: function (engine) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondEngine = _engine.default.extend();\n\n SecondEngine.initializer({\n name: 'second',\n initialize: function (engine) {\n secondInitializerRunCount++;\n }\n });\n\n var firstEngine = FirstEngine.create();\n var firstEngineInstance = firstEngine.buildInstance();\n\n equal(firstInitializerRunCount, 1, 'first initializer only was run');\n equal(secondInitializerRunCount, 0, 'first initializer only was run');\n\n var secondEngine = SecondEngine.create();\n var secondEngineInstance = secondEngine.buildInstance();\n\n equal(firstInitializerRunCount, 1, 'second initializer only was run');\n equal(secondInitializerRunCount, 1, 'second initializer only was run');\n\n (0, _emberMetal.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n\n QUnit.test('initializers are concatenated', function () {\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'first',\n initialize: function (engine) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondEngine = FirstEngine.extend();\n\n SecondEngine.initializer({\n name: 'second',\n initialize: function (engine) {\n secondInitializerRunCount++;\n }\n });\n\n var firstEngine = FirstEngine.create();\n var firstEngineInstance = firstEngine.buildInstance();\n\n equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n equal(secondInitializerRunCount, 0, 'second initializer was not run when first base class created');\n firstInitializerRunCount = 0;\n\n var secondEngine = SecondEngine.create();\n var secondEngineInstance = secondEngine.buildInstance();\n\n equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n\n (0, _emberMetal.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n\n QUnit.test('initializers are per-engine', function () {\n expect(2);\n\n var FirstEngine = _engine.default.extend();\n\n FirstEngine.initializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n\n expectAssertion(function () {\n FirstEngine.initializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n });\n\n var SecondEngine = _engine.default.extend();\n SecondEngine.instanceInitializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n\n ok(true, 'Two engines can have initializers named the same.');\n });\n\n QUnit.test('initializers are executed in their own context', function () {\n expect(1);\n\n MyEngine = _engine.default.extend();\n\n MyEngine.initializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n initialize: function (engine) {\n equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = myEngine.buildInstance();\n });\n});","QUnit.module('ESLint | ember-application/tests/system/engine_initializers_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/engine_initializers_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/engine_instance_initializers_test', ['ember-metal', 'ember-application/system/engine', 'ember-application/system/engine-instance', 'ember-application/system/engine-parent'], function (_emberMetal, _engine, _engineInstance, _engineParent) {\n 'use strict';\n\n var MyEngine = void 0,\n myEngine = void 0,\n myEngineInstance = void 0;\n\n function buildEngineInstance(EngineClass) {\n var engineInstance = EngineClass.buildInstance();\n (0, _engineParent.setEngineParent)(engineInstance, {\n lookup: function () {\n return {};\n },\n resolveRegistration: function () {\n return {};\n }\n });\n return engineInstance;\n }\n\n QUnit.module('Ember.Engine instance initializers', {\n setup: function () {},\n teardown: function () {\n (0, _emberMetal.run)(function () {\n if (myEngineInstance) {\n myEngineInstance.destroy();\n }\n\n if (myEngine) {\n myEngine.destroy();\n }\n });\n }\n });\n\n QUnit.test('initializers require proper \\'name\\' and \\'initialize\\' properties', function () {\n MyEngine = _engine.default.extend();\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n MyEngine.instanceInitializer({ name: 'initializer' });\n });\n });\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n MyEngine.instanceInitializer({\n initialize: function () {}\n });\n });\n });\n });\n\n QUnit.test('initializers are passed an engine instance', function () {\n MyEngine = _engine.default.extend();\n\n MyEngine.instanceInitializer({\n name: 'initializer',\n initialize: function (instance) {\n ok(instance instanceof _engineInstance.default, 'initialize is passed an engine instance');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n return myEngineInstance.boot();\n });\n\n QUnit.test('initializers can be registered in a specified order', function () {\n var order = [];\n\n MyEngine = _engine.default.extend();\n\n MyEngine.instanceInitializer({\n name: 'fourth',\n after: 'third',\n initialize: function (engine) {\n order.push('fourth');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'second',\n after: 'first',\n before: 'third',\n initialize: function (engine) {\n order.push('second');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (engine) {\n order.push('fifth');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'first',\n before: 'second',\n initialize: function (engine) {\n order.push('first');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'third',\n initialize: function (engine) {\n order.push('third');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'sixth',\n initialize: function (engine) {\n order.push('sixth');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n\n return myEngineInstance.boot().then(function () {\n deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n });\n\n QUnit.test('initializers can be registered in a specified order as an array', function () {\n var order = [];\n MyEngine = _engine.default.extend();\n\n MyEngine.instanceInitializer({\n name: 'third',\n initialize: function (engine) {\n order.push('third');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n initialize: function (engine) {\n order.push('second');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'fourth',\n after: ['second', 'third'],\n initialize: function (engine) {\n order.push('fourth');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (engine) {\n order.push('fifth');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'first',\n before: ['second'],\n initialize: function (engine) {\n order.push('first');\n }\n });\n\n MyEngine.instanceInitializer({\n name: 'sixth',\n initialize: function (engine) {\n order.push('sixth');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n\n return myEngineInstance.boot().then(function () {\n deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n });\n });\n\n QUnit.test('initializers can have multiple dependencies', function () {\n var order = [];\n\n MyEngine = _engine.default.extend();\n\n var a = {\n name: 'a',\n before: 'b',\n initialize: function (engine) {\n order.push('a');\n }\n };\n var b = {\n name: 'b',\n initialize: function (engine) {\n order.push('b');\n }\n };\n var c = {\n name: 'c',\n after: 'b',\n initialize: function (engine) {\n order.push('c');\n }\n };\n var afterB = {\n name: 'after b',\n after: 'b',\n initialize: function (engine) {\n order.push('after b');\n }\n };\n var afterC = {\n name: 'after c',\n after: 'c',\n initialize: function (engine) {\n order.push('after c');\n }\n };\n\n MyEngine.instanceInitializer(b);\n MyEngine.instanceInitializer(a);\n MyEngine.instanceInitializer(afterC);\n MyEngine.instanceInitializer(afterB);\n MyEngine.instanceInitializer(c);\n\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n\n return myEngineInstance.boot().then(function () {\n ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n });\n });\n\n QUnit.test('initializers set on Engine subclasses should not be shared between engines', function () {\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstEngine = _engine.default.extend();\n var firstEngine = void 0,\n firstEngineInstance = void 0;\n\n FirstEngine.instanceInitializer({\n name: 'first',\n initialize: function (engine) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondEngine = _engine.default.extend();\n var secondEngine = void 0,\n secondEngineInstance = void 0;\n\n SecondEngine.instanceInitializer({\n name: 'second',\n initialize: function (engine) {\n secondInitializerRunCount++;\n }\n });\n\n firstEngine = FirstEngine.create();\n firstEngineInstance = buildEngineInstance(firstEngine);\n\n return firstEngineInstance.boot().then(function () {\n equal(firstInitializerRunCount, 1, 'first initializer only was run');\n equal(secondInitializerRunCount, 0, 'first initializer only was run');\n\n secondEngine = SecondEngine.create();\n secondEngineInstance = buildEngineInstance(secondEngine);\n return secondEngineInstance.boot();\n }).then(function () {\n equal(firstInitializerRunCount, 1, 'second initializer only was run');\n equal(secondInitializerRunCount, 1, 'second initializer only was run');\n\n (0, _emberMetal.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n });\n\n QUnit.test('initializers are concatenated', function () {\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstEngine = _engine.default.extend();\n\n FirstEngine.instanceInitializer({\n name: 'first',\n initialize: function (engine) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondEngine = FirstEngine.extend();\n\n SecondEngine.instanceInitializer({\n name: 'second',\n initialize: function (engine) {\n secondInitializerRunCount++;\n }\n });\n\n var firstEngine = FirstEngine.create();\n var firstEngineInstance = buildEngineInstance(firstEngine);\n\n var secondEngine = void 0,\n secondEngineInstance = void 0;\n\n return firstEngineInstance.boot().then(function () {\n equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n equal(secondInitializerRunCount, 0, 'second initializer was not run when first base class created');\n firstInitializerRunCount = 0;\n\n secondEngine = SecondEngine.create();\n secondEngineInstance = buildEngineInstance(secondEngine);\n return secondEngineInstance.boot();\n }).then(function () {\n equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n\n (0, _emberMetal.run)(function () {\n firstEngineInstance.destroy();\n secondEngineInstance.destroy();\n\n firstEngine.destroy();\n secondEngine.destroy();\n });\n });\n });\n\n QUnit.test('initializers are per-engine', function () {\n expect(2);\n\n var FirstEngine = _engine.default.extend();\n\n FirstEngine.instanceInitializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n\n expectAssertion(function () {\n FirstEngine.instanceInitializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n });\n\n var SecondEngine = _engine.default.extend();\n SecondEngine.instanceInitializer({\n name: 'abc',\n initialize: function (engine) {}\n });\n\n ok(true, 'Two engines can have initializers named the same.');\n });\n\n QUnit.test('initializers are executed in their own context', function () {\n expect(1);\n\n var MyEngine = _engine.default.extend();\n\n MyEngine.instanceInitializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n initialize: function (engine) {\n equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n });\n\n myEngine = MyEngine.create();\n myEngineInstance = buildEngineInstance(myEngine);\n\n return myEngineInstance.boot();\n });\n});","QUnit.module('ESLint | ember-application/tests/system/engine_instance_initializers_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/engine_instance_initializers_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/engine_instance_test', ['ember-application/system/engine', 'ember-application/system/engine-instance', 'ember-application/system/engine-parent', 'ember-metal', 'internal-test-helpers'], function (_engine, _engineInstance, _engineParent, _emberMetal, _internalTestHelpers) {\n 'use strict';\n\n var engine = void 0,\n engineInstance = void 0;\n\n QUnit.module('Ember.EngineInstance', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n engine = _engine.default.create({ router: null });\n });\n },\n teardown: function () {\n if (engineInstance) {\n (0, _emberMetal.run)(engineInstance, 'destroy');\n }\n\n if (engine) {\n (0, _emberMetal.run)(engine, 'destroy');\n }\n }\n });\n\n QUnit.test('an engine instance can be created based upon a base engine', function () {\n (0, _emberMetal.run)(function () {\n engineInstance = _engineInstance.default.create({ base: engine });\n });\n\n ok(engineInstance, 'instance should be created');\n equal(engineInstance.base, engine, 'base should be set to engine');\n });\n\n QUnit.test('unregistering a factory clears all cached instances of that factory', function (assert) {\n assert.expect(3);\n\n engineInstance = (0, _emberMetal.run)(function () {\n return _engineInstance.default.create({ base: engine });\n });\n\n var PostComponent = (0, _internalTestHelpers.factory)();\n\n engineInstance.register('component:post', PostComponent);\n\n var postComponent1 = engineInstance.lookup('component:post');\n assert.ok(postComponent1, 'lookup creates instance');\n\n engineInstance.unregister('component:post');\n engineInstance.register('component:post', PostComponent);\n\n var postComponent2 = engineInstance.lookup('component:post');\n assert.ok(postComponent2, 'lookup creates instance');\n\n assert.notStrictEqual(postComponent1, postComponent2, 'lookup creates a brand new instance because previous one was reset');\n });\n\n QUnit.test('can be booted when its parent has been set', function (assert) {\n assert.expect(3);\n\n engineInstance = (0, _emberMetal.run)(function () {\n return _engineInstance.default.create({ base: engine });\n });\n\n expectAssertion(function () {\n engineInstance._bootSync();\n }, 'An engine instance\\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.');\n\n (0, _engineParent.setEngineParent)(engineInstance, {});\n\n // Stub `cloneParentDependencies`, the internals of which are tested along\n // with application instances.\n engineInstance.cloneParentDependencies = function () {\n assert.ok(true, 'parent dependencies are cloned');\n };\n\n return engineInstance.boot().then(function () {\n assert.ok(true, 'boot successful');\n });\n });\n\n QUnit.test('can build a child instance of a registered engine', function (assert) {\n var ChatEngine = _engine.default.extend();\n var chatEngineInstance = void 0;\n\n engine.register('engine:chat', ChatEngine);\n\n (0, _emberMetal.run)(function () {\n engineInstance = _engineInstance.default.create({ base: engine });\n\n // Try to build an unregistered engine.\n throws(function () {\n engineInstance.buildChildEngineInstance('fake');\n }, 'You attempted to mount the engine \\'fake\\', but it is not registered with its parent.');\n\n // Build the `chat` engine, registered above.\n chatEngineInstance = engineInstance.buildChildEngineInstance('chat');\n });\n\n assert.ok(chatEngineInstance, 'child engine instance successfully created');\n\n assert.strictEqual((0, _engineParent.getEngineParent)(chatEngineInstance), engineInstance, 'child engine instance is assigned the correct parent');\n });\n});","QUnit.module('ESLint | ember-application/tests/system/engine_instance_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/engine_instance_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/engine_parent_test', ['ember-application/system/engine-parent'], function (_engineParent) {\n 'use strict';\n\n QUnit.module('EngineParent', {});\n\n QUnit.test('An engine\\'s parent can be set with `setEngineParent` and retrieved with `getEngineParent`', function () {\n var engine = {};\n var parent = {};\n\n strictEqual((0, _engineParent.getEngineParent)(engine), undefined, 'parent has not been set');\n\n (0, _engineParent.setEngineParent)(engine, parent);\n\n strictEqual((0, _engineParent.getEngineParent)(engine), parent, 'parent has been set');\n\n strictEqual(engine[_engineParent.ENGINE_PARENT], parent, 'parent has been set to the ENGINE_PARENT symbol');\n });\n});","QUnit.module('ESLint | ember-application/tests/system/engine_parent_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/engine_parent_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/engine_test', ['ember-babel', 'ember-environment', 'ember-metal', 'ember-application/system/engine', 'ember-runtime', 'container', 'ember-application/tests/test-helpers/registry-check'], function (_emberBabel, _emberEnvironment, _emberMetal, _engine, _emberRuntime, _container, _registryCheck) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['-bucket-cache:main'], ['-bucket-cache:main']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['template:components/-default'], ['template:components/-default']);\n\n var engine = void 0;\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n QUnit.module('Ember.Engine', {\n setup: function () {\n lookup = _emberEnvironment.context.lookup = {};\n engine = (0, _emberMetal.run)(function () {\n return _engine.default.create();\n });\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n if (engine) {\n (0, _emberMetal.run)(engine, 'destroy');\n }\n }\n });\n\n QUnit.test('acts like a namespace', function () {\n engine = (0, _emberMetal.run)(function () {\n return lookup.TestEngine = _engine.default.create();\n });\n\n engine.Foo = _emberRuntime.Object.extend();\n equal(engine.Foo.toString(), 'TestEngine.Foo', 'Classes pick up their parent namespace');\n });\n\n QUnit.test('builds a registry', function () {\n strictEqual(engine.resolveRegistration('application:main'), engine, 'application:main is registered');\n deepEqual(engine.registeredOptionsForType('component'), { singleton: false }, 'optionsForType \\'component\\'');\n deepEqual(engine.registeredOptionsForType('view'), { singleton: false }, 'optionsForType \\'view\\'');\n (0, _registryCheck.verifyRegistration)(engine, 'controller:basic');\n (0, _registryCheck.verifyInjection)(engine, 'view', '_viewRegistry', '-view-registry:main');\n (0, _registryCheck.verifyInjection)(engine, 'route', '_topLevelViewTemplate', 'template:-outlet');\n (0, _registryCheck.verifyInjection)(engine, 'view:-outlet', 'namespace', 'application:main');\n\n (0, _registryCheck.verifyInjection)(engine, 'controller', 'target', 'router:main');\n (0, _registryCheck.verifyInjection)(engine, 'controller', 'namespace', 'application:main');\n\n (0, _registryCheck.verifyInjection)(engine, 'router', '_bucketCache', (0, _container.privatize)(_templateObject));\n (0, _registryCheck.verifyInjection)(engine, 'route', '_bucketCache', (0, _container.privatize)(_templateObject));\n\n (0, _registryCheck.verifyInjection)(engine, 'route', 'router', 'router:main');\n\n (0, _registryCheck.verifyRegistration)(engine, 'component:-text-field');\n (0, _registryCheck.verifyRegistration)(engine, 'component:-text-area');\n (0, _registryCheck.verifyRegistration)(engine, 'component:-checkbox');\n (0, _registryCheck.verifyRegistration)(engine, 'component:link-to');\n\n (0, _registryCheck.verifyRegistration)(engine, 'service:-routing');\n (0, _registryCheck.verifyInjection)(engine, 'service:-routing', 'router', 'router:main');\n\n // DEBUGGING\n (0, _registryCheck.verifyRegistration)(engine, 'resolver-for-debugging:main');\n (0, _registryCheck.verifyInjection)(engine, 'container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n (0, _registryCheck.verifyInjection)(engine, 'data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main');\n (0, _registryCheck.verifyRegistration)(engine, 'container-debug-adapter:main');\n (0, _registryCheck.verifyRegistration)(engine, 'component-lookup:main');\n\n (0, _registryCheck.verifyInjection)(engine, 'service:-dom-changes', 'document', 'service:-document');\n (0, _registryCheck.verifyInjection)(engine, 'service:-dom-tree-construction', 'document', 'service:-document');\n (0, _registryCheck.verifyRegistration)(engine, 'view:-outlet');\n (0, _registryCheck.verifyRegistration)(engine, (0, _container.privatize)(_templateObject2));\n (0, _registryCheck.verifyRegistration)(engine, 'template:-outlet');\n (0, _registryCheck.verifyInjection)(engine, 'view:-outlet', 'template', 'template:-outlet');\n (0, _registryCheck.verifyInjection)(engine, 'template', 'env', 'service:-glimmer-environment');\n deepEqual(engine.registeredOptionsForType('helper'), { instantiate: false }, 'optionsForType \\'helper\\'');\n });\n});","QUnit.module('ESLint | ember-application/tests/system/engine_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/engine_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/initializers_test', ['ember-babel', 'ember-utils', 'internal-test-helpers', 'ember-application', 'ember-views'], function (_emberBabel, _emberUtils, _internalTestHelpers, _emberApplication, _emberViews) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application initializers', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n (0, _emberViews.jQuery)('#qunit-fixture').html('\\n
ONE
\\n
TWO
\\n ');\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n }\n\n _class.prototype.createSecondApplication = function createSecondApplication(options) {\n var MyApplication = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emberApplication.Application;\n\n var myOptions = (0, _emberUtils.assign)(this.applicationOptions, {\n rootElement: '#two'\n }, options);\n var secondApp = this.secondApp = MyApplication.create(myOptions);\n return secondApp;\n };\n\n _class.prototype.teardown = function teardown() {\n var _this2 = this;\n\n _AutobootApplicationT.prototype.teardown.call(this);\n\n if (this.secondApp) {\n this.runTask(function () {\n return _this2.secondApp.destroy();\n });\n }\n };\n\n _class.prototype['@test initializers require proper \\'name\\' and \\'initialize\\' properties'] = function () {\n var MyApplication = _emberApplication.Application.extend();\n\n expectAssertion(function () {\n MyApplication.initializer({ name: 'initializer' });\n });\n\n expectAssertion(function () {\n MyApplication.initializer({\n initialize: function () {}\n });\n });\n };\n\n _class.prototype['@test initializers that throw errors cause the boot promise to reject with the error'] = function (assert) {\n var _this3 = this;\n\n assert.expect(2);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'initializer',\n initialize: function () {\n throw new Error('boot failure');\n }\n });\n\n this.runTask(function () {\n _this3.createApplication({\n autoboot: false\n }, MyApplication);\n });\n\n var app = this.application;\n\n try {\n this.runTask(function () {\n app.boot().then(function (app) {\n assert.ok(false, 'The boot promise should not resolve when there is a boot error');\n }, function (error) {\n assert.ok(error instanceof Error, 'The boot promise should reject with an error');\n assert.equal(error.message, 'boot failure');\n });\n });\n } catch (error) {\n assert.ok(false, 'The boot method should not throw');\n throw error;\n }\n };\n\n _class.prototype['@test initializers are passed an App'] = function (assert) {\n var _this4 = this;\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'initializer',\n initialize: function (App) {\n assert.ok(App instanceof _emberApplication.Application, 'initialize is passed an Application');\n }\n });\n\n this.runTask(function () {\n return _this4.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers can be registered in a specified order'] = function (assert) {\n var _this5 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'fourth',\n after: 'third',\n initialize: function (registry) {\n order.push('fourth');\n }\n });\n\n MyApplication.initializer({\n name: 'second',\n after: 'first',\n before: 'third',\n initialize: function (registry) {\n order.push('second');\n }\n });\n\n MyApplication.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (registry) {\n order.push('fifth');\n }\n });\n\n MyApplication.initializer({\n name: 'first',\n before: 'second',\n initialize: function (registry) {\n order.push('first');\n }\n });\n\n MyApplication.initializer({\n name: 'third',\n initialize: function (registry) {\n order.push('third');\n }\n });\n\n MyApplication.initializer({\n name: 'sixth',\n initialize: function (registry) {\n order.push('sixth');\n }\n });\n\n this.runTask(function () {\n return _this5.createApplication({}, MyApplication);\n });\n\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n };\n\n _class.prototype['@test initializers can be registered in a specified order as an array'] = function (assert) {\n var _this6 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'third',\n initialize: function (registry) {\n order.push('third');\n }\n });\n\n MyApplication.initializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n initialize: function (registry) {\n order.push('second');\n }\n });\n\n MyApplication.initializer({\n name: 'fourth',\n after: ['second', 'third'],\n initialize: function (registry) {\n order.push('fourth');\n }\n });\n\n MyApplication.initializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (registry) {\n order.push('fifth');\n }\n });\n\n MyApplication.initializer({\n name: 'first',\n before: ['second'],\n initialize: function (registry) {\n order.push('first');\n }\n });\n\n MyApplication.initializer({\n name: 'sixth',\n initialize: function (registry) {\n order.push('sixth');\n }\n });\n\n this.runTask(function () {\n return _this6.createApplication({}, MyApplication);\n });\n\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n };\n\n _class.prototype['@test initializers can have multiple dependencies'] = function (assert) {\n var _this7 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n var a = {\n name: 'a',\n before: 'b',\n initialize: function (registry) {\n order.push('a');\n }\n };\n var b = {\n name: 'b',\n initialize: function (registry) {\n order.push('b');\n }\n };\n var c = {\n name: 'c',\n after: 'b',\n initialize: function (registry) {\n order.push('c');\n }\n };\n var afterB = {\n name: 'after b',\n after: 'b',\n initialize: function (registry) {\n order.push('after b');\n }\n };\n var afterC = {\n name: 'after c',\n after: 'c',\n initialize: function (registry) {\n order.push('after c');\n }\n };\n\n MyApplication.initializer(b);\n MyApplication.initializer(a);\n MyApplication.initializer(afterC);\n MyApplication.initializer(afterB);\n MyApplication.initializer(c);\n\n this.runTask(function () {\n return _this7.createApplication({}, MyApplication);\n });\n\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n };\n\n _class.prototype['@test initializers set on Application subclasses are not shared between apps'] = function (assert) {\n var _this8 = this;\n\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstApp = _emberApplication.Application.extend();\n\n FirstApp.initializer({\n name: 'first',\n initialize: function (registry) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondApp = _emberApplication.Application.extend();\n\n SecondApp.initializer({\n name: 'second',\n initialize: function (registry) {\n secondInitializerRunCount++;\n }\n });\n\n this.runTask(function () {\n return _this8.createApplication({}, FirstApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n\n this.runTask(function () {\n return _this8.createSecondApplication({}, SecondApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n };\n\n _class.prototype['@test initializers are concatenated'] = function (assert) {\n var _this9 = this;\n\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstApp = _emberApplication.Application.extend();\n\n FirstApp.initializer({\n name: 'first',\n initialize: function (registry) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondApp = FirstApp.extend();\n SecondApp.initializer({\n name: 'second',\n initialize: function (registry) {\n secondInitializerRunCount++;\n }\n });\n\n this.runTask(function () {\n return _this9.createApplication({}, FirstApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run when base class created');\n\n firstInitializerRunCount = 0;\n this.runTask(function () {\n return _this9.createSecondApplication({}, SecondApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n assert.equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n };\n\n _class.prototype['@test initializers are per-app'] = function (assert) {\n assert.expect(2);\n\n var FirstApp = _emberApplication.Application.extend();\n\n FirstApp.initializer({\n name: 'abc',\n initialize: function (app) {}\n });\n\n expectAssertion(function () {\n FirstApp.initializer({\n name: 'abc',\n initialize: function (app) {}\n });\n });\n\n var SecondApp = _emberApplication.Application.extend();\n SecondApp.instanceInitializer({\n name: 'abc',\n initialize: function (app) {}\n });\n\n assert.ok(true, 'Two apps can have initializers named the same.');\n };\n\n _class.prototype['@test initializers are executed in their own context'] = function (assert) {\n var _this10 = this;\n\n assert.expect(1);\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n initialize: function (application) {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n });\n\n this.runTask(function () {\n return _this10.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers throw a deprecation warning when receiving a second argument'] = function (assert) {\n var _this11 = this;\n\n assert.expect(1);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'deprecated',\n initialize: function (registry, application) {}\n });\n\n expectDeprecation(function () {\n _this11.runTask(function () {\n return _this11.createApplication({}, MyApplication);\n });\n }, /The `initialize` method for Application initializer 'deprecated' should take only one argument - `App`, an instance of an `Application`./);\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_AutobootApplicationT.prototype.applicationOptions, {\n rootElement: '#one'\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/initializers_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/initializers_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/instance_initializers_test', ['ember-babel', 'ember-utils', 'internal-test-helpers', 'ember-application', 'ember-views'], function (_emberBabel, _emberUtils, _internalTestHelpers, _emberApplication, _emberViews) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application instance initializers', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n (0, _emberViews.jQuery)('#qunit-fixture').html('\\n
ONE
\\n
TWO
\\n ');\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n }\n\n _class.prototype.createSecondApplication = function createSecondApplication(options) {\n var MyApplication = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emberApplication.Application;\n\n var myOptions = (0, _emberUtils.assign)(this.applicationOptions, {\n rootElement: '#two'\n }, options);\n var secondApp = this.secondApp = MyApplication.create(myOptions);\n return secondApp;\n };\n\n _class.prototype.teardown = function teardown() {\n var _this2 = this;\n\n _AutobootApplicationT.prototype.teardown.call(this);\n\n if (this.secondApp) {\n this.runTask(function () {\n return _this2.secondApp.destroy();\n });\n }\n };\n\n _class.prototype['@test initializers require proper \\'name\\' and \\'initialize\\' properties'] = function () {\n var _this3 = this;\n\n var MyApplication = _emberApplication.Application.extend();\n\n expectAssertion(function () {\n MyApplication.instanceInitializer({ name: 'initializer' });\n });\n\n expectAssertion(function () {\n MyApplication.instanceInitializer({\n initialize: function () {}\n });\n });\n\n this.runTask(function () {\n return _this3.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers are passed an app instance'] = function (assert) {\n var _this4 = this;\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'initializer',\n initialize: function (instance) {\n assert.ok(instance instanceof _emberApplication.ApplicationInstance, 'initialize is passed an application instance');\n }\n });\n\n this.runTask(function () {\n return _this4.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers can be registered in a specified order'] = function (assert) {\n var _this5 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'fourth',\n after: 'third',\n initialize: function (registry) {\n order.push('fourth');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'second',\n after: 'first',\n before: 'third',\n initialize: function (registry) {\n order.push('second');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (registry) {\n order.push('fifth');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'first',\n before: 'second',\n initialize: function (registry) {\n order.push('first');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'third',\n initialize: function (registry) {\n order.push('third');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'sixth',\n initialize: function (registry) {\n order.push('sixth');\n }\n });\n\n this.runTask(function () {\n return _this5.createApplication({}, MyApplication);\n });\n\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n };\n\n _class.prototype['@test initializers can be registered in a specified order as an array'] = function (assert) {\n var _this6 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'third',\n initialize: function (registry) {\n order.push('third');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'second',\n after: 'first',\n before: ['third', 'fourth'],\n initialize: function (registry) {\n order.push('second');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'fourth',\n after: ['second', 'third'],\n initialize: function (registry) {\n order.push('fourth');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'fifth',\n after: 'fourth',\n before: 'sixth',\n initialize: function (registry) {\n order.push('fifth');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'first',\n before: ['second'],\n initialize: function (registry) {\n order.push('first');\n }\n });\n\n MyApplication.instanceInitializer({\n name: 'sixth',\n initialize: function (registry) {\n order.push('sixth');\n }\n });\n\n this.runTask(function () {\n return _this6.createApplication({}, MyApplication);\n });\n\n assert.deepEqual(order, ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']);\n };\n\n _class.prototype['@test initializers can have multiple dependencies'] = function (assert) {\n var _this7 = this;\n\n var order = [];\n var MyApplication = _emberApplication.Application.extend();\n var a = {\n name: 'a',\n before: 'b',\n initialize: function (registry) {\n order.push('a');\n }\n };\n var b = {\n name: 'b',\n initialize: function (registry) {\n order.push('b');\n }\n };\n var c = {\n name: 'c',\n after: 'b',\n initialize: function (registry) {\n order.push('c');\n }\n };\n var afterB = {\n name: 'after b',\n after: 'b',\n initialize: function (registry) {\n order.push('after b');\n }\n };\n var afterC = {\n name: 'after c',\n after: 'c',\n initialize: function (registry) {\n order.push('after c');\n }\n };\n\n MyApplication.instanceInitializer(b);\n MyApplication.instanceInitializer(a);\n MyApplication.instanceInitializer(afterC);\n MyApplication.instanceInitializer(afterB);\n MyApplication.instanceInitializer(c);\n\n this.runTask(function () {\n return _this7.createApplication({}, MyApplication);\n });\n\n assert.ok(order.indexOf(a.name) < order.indexOf(b.name), 'a < b');\n assert.ok(order.indexOf(b.name) < order.indexOf(c.name), 'b < c');\n assert.ok(order.indexOf(b.name) < order.indexOf(afterB.name), 'b < afterB');\n assert.ok(order.indexOf(c.name) < order.indexOf(afterC.name), 'c < afterC');\n };\n\n _class.prototype['@test initializers set on Application subclasses should not be shared between apps'] = function (assert) {\n var _this8 = this;\n\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstApp = _emberApplication.Application.extend();\n\n FirstApp.instanceInitializer({\n name: 'first',\n initialize: function (registry) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondApp = _emberApplication.Application.extend();\n SecondApp.instanceInitializer({\n name: 'second',\n initialize: function (registry) {\n secondInitializerRunCount++;\n }\n });\n\n this.runTask(function () {\n return _this8.createApplication({}, FirstApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'first initializer only was run');\n assert.equal(secondInitializerRunCount, 0, 'first initializer only was run');\n\n this.runTask(function () {\n return _this8.createSecondApplication({}, SecondApp);\n });\n\n assert.equal(firstInitializerRunCount, 1, 'second initializer only was run');\n assert.equal(secondInitializerRunCount, 1, 'second initializer only was run');\n };\n\n _class.prototype['@test initializers are concatenated'] = function (assert) {\n var _this9 = this;\n\n var firstInitializerRunCount = 0;\n var secondInitializerRunCount = 0;\n var FirstApp = _emberApplication.Application.extend();\n\n FirstApp.instanceInitializer({\n name: 'first',\n initialize: function (registry) {\n firstInitializerRunCount++;\n }\n });\n\n var SecondApp = FirstApp.extend();\n SecondApp.instanceInitializer({\n name: 'second',\n initialize: function (registry) {\n secondInitializerRunCount++;\n }\n });\n\n this.runTask(function () {\n return _this9.createApplication({}, FirstApp);\n });\n\n equal(firstInitializerRunCount, 1, 'first initializer only was run when base class created');\n equal(secondInitializerRunCount, 0, 'first initializer only was run when base class created');\n\n firstInitializerRunCount = 0;\n this.runTask(function () {\n return _this9.createSecondApplication({}, SecondApp);\n });\n\n equal(firstInitializerRunCount, 1, 'first initializer was run when subclass created');\n equal(secondInitializerRunCount, 1, 'second initializers was run when subclass created');\n };\n\n _class.prototype['@test initializers are per-app'] = function (assert) {\n var _this10 = this;\n\n assert.expect(2);\n\n var FirstApp = _emberApplication.Application.extend();\n FirstApp.instanceInitializer({\n name: 'abc',\n initialize: function (app) {}\n });\n\n expectAssertion(function () {\n FirstApp.instanceInitializer({\n name: 'abc',\n initialize: function (app) {}\n });\n });\n\n this.runTask(function () {\n return _this10.createApplication({}, FirstApp);\n });\n\n var SecondApp = _emberApplication.Application.extend();\n SecondApp.instanceInitializer({\n name: 'abc',\n initialize: function (app) {}\n });\n\n this.runTask(function () {\n return _this10.createSecondApplication({}, SecondApp);\n });\n\n assert.ok(true, 'Two apps can have initializers named the same.');\n };\n\n _class.prototype['@test initializers are run before ready hook'] = function (assert) {\n var _this11 = this;\n\n assert.expect(2);\n\n var MyApplication = _emberApplication.Application.extend({\n ready: function () {\n assert.ok(true, 'ready is called');\n readyWasCalled = false;\n }\n });\n var readyWasCalled = false;\n\n MyApplication.instanceInitializer({\n name: 'initializer',\n initialize: function () {\n assert.ok(!readyWasCalled, 'ready is not yet called');\n }\n });\n\n this.runTask(function () {\n return _this11.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers are executed in their own context'] = function (assert) {\n var _this12 = this;\n\n assert.expect(1);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'coolInitializer',\n myProperty: 'cool',\n initialize: function (registry, application) {\n assert.equal(this.myProperty, 'cool', 'should have access to its own context');\n }\n });\n\n this.runTask(function () {\n return _this12.createApplication({}, MyApplication);\n });\n };\n\n _class.prototype['@test initializers get an instance on app reset'] = function (assert) {\n var _this13 = this;\n\n assert.expect(2);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'giveMeAnInstance',\n initialize: function (instance) {\n assert.ok(!!instance, 'Initializer got an instance');\n }\n });\n\n this.runTask(function () {\n return _this13.createApplication({}, MyApplication);\n });\n\n this.runTask(function () {\n return _this13.application.reset();\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_AutobootApplicationT.prototype.applicationOptions, {\n rootElement: '#one'\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/instance_initializers_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/instance_initializers_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/logging_test', ['ember-babel', 'internal-test-helpers', 'ember-console', 'ember-runtime', 'ember-routing', 'ember-utils'], function (_emberBabel, _internalTestHelpers, _emberConsole, _emberRuntime, _emberRouting, _emberUtils) {\n 'use strict';\n\n var LoggingApplicationTestCase = function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(LoggingApplicationTestCase, _ApplicationTestCase);\n\n function LoggingApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, LoggingApplicationTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.logs = {};\n\n _this._originalLogger = _emberConsole.default.info;\n\n _emberConsole.default.info = function (_, _ref) {\n var fullName = _ref.fullName;\n\n if (!_this.logs.hasOwnProperty(fullName)) {\n _this.logs[fullName] = 0;\n }\n _this.logs[fullName]++;\n };\n\n _this.router.map(function () {\n this.route('posts', { resetNamespace: true });\n });\n return _this;\n }\n\n LoggingApplicationTestCase.prototype.teardown = function teardown() {\n _emberConsole.default.info = this._originalLogger;\n _ApplicationTestCase.prototype.teardown.call(this);\n };\n\n return LoggingApplicationTestCase;\n }(_internalTestHelpers.ApplicationTestCase);\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application with LOG_ACTIVE_GENERATION=true', function (_LoggingApplicationTe) {\n (0, _emberBabel.inherits)(_class, _LoggingApplicationTe);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LoggingApplicationTe.apply(this, arguments));\n }\n\n _class.prototype['@test log class generation if logging enabled'] = function testLogClassGenerationIfLoggingEnabled(assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n this.visit('/posts');\n assert.equal(Object.keys(this.logs).length, 4, 'expected logs');\n };\n\n _class.prototype['@test actively generated classes get logged'] = function testActivelyGeneratedClassesGetLogged(assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n this.visit('/posts');\n assert.equal(this.logs['controller:application'], 1, 'expected: ApplicationController was generated');\n assert.equal(this.logs['controller:posts'], 1, 'expected: PostsController was generated');\n\n assert.equal(this.logs['route:application'], 1, 'expected: ApplicationRoute was generated');\n assert.equal(this.logs['route:posts'], 1, 'expected: PostsRoute was generated');\n };\n\n _class.prototype['@test predefined classes do not get logged'] = function testPredefinedClassesDoNotGetLogged(assert) {\n this.add('controller:application', _emberRuntime.Controller.extend());\n this.add('controller:posts', _emberRuntime.Controller.extend());\n this.add('route:application', _emberRouting.Route.extend());\n this.add('route:posts', _emberRouting.Route.extend());\n\n this.visit('/posts');\n\n assert.ok(!this.logs['controller:application'], 'did not expect: ApplicationController was generated');\n assert.ok(!this.logs['controller:posts'], 'did not expect: PostsController was generated');\n\n assert.ok(!this.logs['route:application'], 'did not expect: ApplicationRoute was generated');\n assert.ok(!this.logs['route:posts'], 'did not expect: PostsRoute was generated');\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_LoggingApplicationTe.prototype.applicationOptions, {\n LOG_ACTIVE_GENERATION: true\n });\n }\n }]);\n return _class;\n }(LoggingApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application when LOG_ACTIVE_GENERATION=false', function (_LoggingApplicationTe2) {\n (0, _emberBabel.inherits)(_class2, _LoggingApplicationTe2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LoggingApplicationTe2.apply(this, arguments));\n }\n\n _class2.prototype['@test do NOT log class generation if logging disabled'] = function (assert) {\n this.visit('/posts');\n assert.equal(Object.keys(this.logs).length, 0, 'expected logs');\n };\n\n (0, _emberBabel.createClass)(_class2, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_LoggingApplicationTe2.prototype.applicationOptions, {\n LOG_ACTIVE_GENERATION: false\n });\n }\n }]);\n return _class2;\n }(LoggingApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application with LOG_VIEW_LOOKUPS=true', function (_LoggingApplicationTe3) {\n (0, _emberBabel.inherits)(_class3, _LoggingApplicationTe3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LoggingApplicationTe3.apply(this, arguments));\n }\n\n _class3.prototype['@test log when template and view are missing when flag is active'] = function (assert) {\n if (EmberDev && EmberDev.runningProdBuild) {\n assert.ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n this.addTemplate('application', '{{outlet}}');\n\n this.visit('/');\n this.visit('/posts');\n\n assert.equal(this.logs['template:application'], undefined, 'expected: Should not log template:application since it exists.');\n assert.equal(this.logs['template:index'], 1, 'expected: Could not find \"index\" template or view.');\n assert.equal(this.logs['template:posts'], 1, 'expected: Could not find \"posts\" template or view.');\n };\n\n (0, _emberBabel.createClass)(_class3, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_LoggingApplicationTe3.prototype.applicationOptions, {\n LOG_VIEW_LOOKUPS: true\n });\n }\n }]);\n return _class3;\n }(LoggingApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application with LOG_VIEW_LOOKUPS=false', function (_LoggingApplicationTe4) {\n (0, _emberBabel.inherits)(_class4, _LoggingApplicationTe4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LoggingApplicationTe4.apply(this, arguments));\n }\n\n _class4.prototype['@test do not log when template and view are missing when flag is not true'] = function (assert) {\n this.visit('/posts');\n assert.equal(Object.keys(this.logs).length, 0, 'expected no logs');\n };\n\n _class4.prototype['@test do not log which views are used with templates when flag is not true'] = function (assert) {\n this.visit('/posts');\n assert.equal(Object.keys(this.logs).length, 0, 'expected no logs');\n };\n\n (0, _emberBabel.createClass)(_class4, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_LoggingApplicationTe4.prototype.applicationOptions, {\n LOG_VIEW_LOOKUPS: false\n });\n }\n }]);\n return _class4;\n }(LoggingApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/logging_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/logging_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/readiness_test', ['ember-metal', 'ember-application/system/application'], function (_emberMetal, _application) {\n 'use strict';\n\n var jQuery = void 0,\n application = void 0,\n Application = void 0;\n var readyWasCalled = void 0,\n domReady = void 0,\n readyCallbacks = void 0;\n\n // We are using a small mock of jQuery because jQuery is third-party code with\n // very well-defined semantics, and we want to confirm that a jQuery stub run\n // in a more minimal server environment that implements this behavior will be\n // sufficient for Ember's requirements.\n\n QUnit.module('Application readiness', {\n setup: function () {\n readyWasCalled = 0;\n readyCallbacks = [];\n\n var jQueryInstance = {\n ready: function (callback) {\n readyCallbacks.push(callback);\n if (jQuery.isReady) {\n domReady();\n }\n }\n };\n\n jQuery = function () {\n return jQueryInstance;\n };\n jQuery.isReady = false;\n\n var domReadyCalled = 0;\n domReady = function () {\n if (domReadyCalled !== 0) {\n return;\n }\n domReadyCalled++;\n for (var i = 0; i < readyCallbacks.length; i++) {\n readyCallbacks[i]();\n }\n };\n\n Application = _application.default.extend({\n $: jQuery,\n\n ready: function () {\n readyWasCalled++;\n }\n });\n },\n teardown: function () {\n if (application) {\n (0, _emberMetal.run)(function () {\n return application.destroy();\n });\n }\n }\n });\n\n // These tests are confirming that if the callbacks passed into jQuery's ready hook is called\n // synchronously during the application's initialization, we get the same behavior as if\n // it was triggered after initialization.\n\n QUnit.test('Ember.Application\\'s ready event is called right away if jQuery is already ready', function () {\n jQuery.isReady = true;\n\n (0, _emberMetal.run)(function () {\n application = Application.create({ router: false });\n\n equal(readyWasCalled, 0, 'ready is not called until later');\n });\n\n equal(readyWasCalled, 1, 'ready was called');\n\n domReady();\n\n equal(readyWasCalled, 1, 'application\\'s ready was not called again');\n });\n\n QUnit.test('Ember.Application\\'s ready event is called after the document becomes ready', function () {\n (0, _emberMetal.run)(function () {\n application = Application.create({ router: false });\n });\n\n equal(readyWasCalled, 0, 'ready wasn\\'t called yet');\n\n domReady();\n\n equal(readyWasCalled, 1, 'ready was called now that DOM is ready');\n });\n\n QUnit.test('Ember.Application\\'s ready event can be deferred by other components', function () {\n (0, _emberMetal.run)(function () {\n application = Application.create({ router: false });\n application.deferReadiness();\n });\n\n equal(readyWasCalled, 0, 'ready wasn\\'t called yet');\n\n domReady();\n\n equal(readyWasCalled, 0, 'ready wasn\\'t called yet');\n\n (0, _emberMetal.run)(function () {\n application.advanceReadiness();\n equal(readyWasCalled, 0);\n });\n\n equal(readyWasCalled, 1, 'ready was called now all readiness deferrals are advanced');\n });\n\n QUnit.test('Ember.Application\\'s ready event can be deferred by other components', function () {\n jQuery.isReady = false;\n\n (0, _emberMetal.run)(function () {\n application = Application.create({ router: false });\n application.deferReadiness();\n equal(readyWasCalled, 0, 'ready wasn\\'t called yet');\n });\n\n domReady();\n\n equal(readyWasCalled, 0, 'ready wasn\\'t called yet');\n\n (0, _emberMetal.run)(function () {\n application.advanceReadiness();\n });\n\n equal(readyWasCalled, 1, 'ready was called now all readiness deferrals are advanced');\n\n expectAssertion(function () {\n application.deferReadiness();\n });\n });\n});","QUnit.module('ESLint | ember-application/tests/system/readiness_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/readiness_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/reset_test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-routing', 'internal-test-helpers'], function (_emberBabel, _emberMetal, _emberRuntime, _emberRouting, _internalTestHelpers) {\n 'use strict';\n\n var application = void 0,\n Application = void 0;\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application - resetting', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.apply(this, arguments));\n }\n\n _class.prototype['@test Brings its own run-loop if not provided'] = function testBringsItsOwnRunLoopIfNotProvided(assert) {\n var _this2 = this;\n\n assert.expect(0);\n (0, _emberMetal.run)(function () {\n return _this2.createApplication();\n });\n this.application.reset();\n };\n\n _class.prototype['@test Does not bring its own run loop if one is already provided'] = function testDoesNotBringItsOwnRunLoopIfOneIsAlreadyProvided(assert) {\n var _this3 = this;\n\n assert.expect(3);\n\n var didBecomeReady = false;\n\n (0, _emberMetal.run)(function () {\n return _this3.createApplication();\n });\n\n (0, _emberMetal.run)(function () {\n _this3.application.ready = function () {\n didBecomeReady = true;\n };\n\n _this3.application.reset();\n\n _this3.application.deferReadiness();\n assert.ok(!didBecomeReady, 'app is not ready');\n });\n\n assert.ok(!didBecomeReady, 'app is not ready');\n (0, _emberMetal.run)(this.application, 'advanceReadiness');\n assert.ok(didBecomeReady, 'app is ready');\n };\n\n _class.prototype['@test When an application is reset, new instances of controllers are generated'] = function testWhenAnApplicationIsResetNewInstancesOfControllersAreGenerated(assert) {\n var _this4 = this;\n\n (0, _emberMetal.run)(function () {\n _this4.createApplication();\n _this4.add('controller:academic', _emberRuntime.Controller.extend());\n });\n\n var firstController = this.applicationInstance.lookup('controller:academic');\n var secondController = this.applicationInstance.lookup('controller:academic');\n\n this.application.reset();\n\n var thirdController = this.applicationInstance.lookup('controller:academic');\n\n assert.strictEqual(firstController, secondController, 'controllers looked up in succession should be the same instance');\n\n ok(firstController.isDestroying, 'controllers are destroyed when their application is reset');\n\n assert.notStrictEqual(firstController, thirdController, 'controllers looked up after the application is reset should not be the same instance');\n };\n\n _class.prototype['@test When an application is reset, the eventDispatcher is destroyed and recreated'] = function testWhenAnApplicationIsResetTheEventDispatcherIsDestroyedAndRecreated(assert) {\n var _this5 = this;\n\n var eventDispatcherWasSetup = 0;\n var eventDispatcherWasDestroyed = 0;\n\n var mockEventDispatcher = {\n setup: function () {\n eventDispatcherWasSetup++;\n },\n destroy: function () {\n eventDispatcherWasDestroyed++;\n }\n };\n\n (0, _emberMetal.run)(function () {\n _this5.createApplication();\n _this5.add('event_dispatcher:main', { create: function () {\n return mockEventDispatcher;\n } });\n\n assert.equal(eventDispatcherWasSetup, 0);\n assert.equal(eventDispatcherWasDestroyed, 0);\n });\n\n assert.equal(eventDispatcherWasSetup, 1);\n assert.equal(eventDispatcherWasDestroyed, 0);\n\n this.application.reset();\n\n assert.equal(eventDispatcherWasDestroyed, 1);\n assert.equal(eventDispatcherWasSetup, 2, 'setup called after reset');\n };\n\n _class.prototype['@test When an application is reset, the router URL is reset to `/`'] = function testWhenAnApplicationIsResetTheRouterURLIsResetTo(assert) {\n var _this6 = this;\n\n (0, _emberMetal.run)(function () {\n _this6.createApplication();\n\n _this6.add('router:main', _emberRouting.Router.extend({\n location: 'none'\n }));\n\n _this6.router.map(function () {\n this.route('one');\n this.route('two');\n });\n });\n\n this.visit('/one');\n\n this.application.reset();\n\n var applicationController = this.applicationInstance.lookup('controller:application');\n var router = this.applicationInstance.lookup('router:main');\n var location = router.get('location');\n\n assert.equal(location.getURL(), '');\n assert.equal((0, _emberMetal.get)(applicationController, 'currentPath'), 'index');\n\n this.visit('/one');\n\n assert.equal((0, _emberMetal.get)(applicationController, 'currentPath'), 'one');\n };\n\n _class.prototype['@test When an application with advance/deferReadiness is reset, the app does correctly become ready after reset'] = function testWhenAnApplicationWithAdvanceDeferReadinessIsResetTheAppDoesCorrectlyBecomeReadyAfterReset(assert) {\n var _this7 = this;\n\n var readyCallCount = 0;\n\n (0, _emberMetal.run)(function () {\n _this7.createApplication({\n ready: function () {\n readyCallCount++;\n }\n });\n\n _this7.application.deferReadiness();\n assert.equal(readyCallCount, 0, 'ready has not yet been called');\n });\n\n (0, _emberMetal.run)(this.application, 'advanceReadiness');\n\n assert.equal(readyCallCount, 1, 'ready was called once');\n\n this.application.reset();\n\n assert.equal(readyCallCount, 2, 'ready was called twice');\n };\n\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/reset_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/reset_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/system/visit_test', ['ember-babel', 'internal-test-helpers', 'ember-runtime', 'ember-metal', 'ember-application/system/application', 'ember-application/system/application-instance', 'ember-application/system/engine', 'ember-routing', 'ember-glimmer', 'ember-template-compiler', 'ember-views'], function (_emberBabel, _internalTestHelpers, _emberRuntime, _emberMetal, _application, _applicationInstance, _engine, _emberRouting, _emberGlimmer, _emberTemplateCompiler, _emberViews) {\n 'use strict';\n\n function expectAsyncError() {\n _emberRuntime.RSVP.off('error');\n }\n\n (0, _internalTestHelpers.moduleFor)('Ember.Application - visit()', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype.teardown = function teardown() {\n _emberRuntime.RSVP.on('error', _emberRuntime.onerrorDefault);\n _ApplicationTestCase.prototype.teardown.call(this);\n };\n\n _class.prototype.createApplication = function createApplication(options) {\n return _ApplicationTestCase.prototype.createApplication.call(this, options, _application.default.extend());\n };\n\n _class.prototype['@test Applications with autoboot set to false do not autoboot'] = function (assert) {\n var _this2 = this;\n\n function delay(time) {\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n return _emberMetal.run.later(resolve, time);\n });\n }\n\n var appBooted = 0;\n var instanceBooted = 0;\n\n this.application.initializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n appBooted++;\n }\n });\n\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n instanceBooted++;\n }\n });\n\n assert.ok(!this.applicationInstance, 'precond - no instance');\n assert.ok(appBooted === 0, 'precond - not booted');\n assert.ok(instanceBooted === 0, 'precond - not booted');\n\n // Continue after 500ms\n return delay(500).then(function () {\n assert.ok(appBooted === 0, '500ms elapsed without app being booted');\n assert.ok(instanceBooted === 0, '500ms elapsed without instances being booted');\n\n return _this2.runTask(function () {\n return _this2.application.boot();\n });\n }).then(function () {\n assert.ok(appBooted === 1, 'app should boot when manually calling `app.boot()`');\n assert.ok(instanceBooted === 0, 'no instances should be booted automatically when manually calling `app.boot()');\n });\n };\n\n _class.prototype['@test calling visit() on an app without first calling boot() should boot the app'] = function (assert) {\n var appBooted = 0;\n var instanceBooted = 0;\n\n this.application.initializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n appBooted++;\n }\n });\n\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n instanceBooted++;\n }\n });\n\n return this.visit('/').then(function () {\n assert.ok(appBooted === 1, 'the app should be booted`');\n assert.ok(instanceBooted === 1, 'an instances should be booted');\n });\n };\n\n _class.prototype['@test calling visit() on an already booted app should not boot it again'] = function (assert) {\n var _this3 = this;\n\n var appBooted = 0;\n var instanceBooted = 0;\n\n this.application.initializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n appBooted++;\n }\n });\n\n this.application.instanceInitializer({\n name: 'assert-no-autoboot',\n initialize: function () {\n instanceBooted++;\n }\n });\n\n return this.runTask(function () {\n return _this3.application.boot();\n }).then(function () {\n assert.ok(appBooted === 1, 'the app should be booted');\n assert.ok(instanceBooted === 0, 'no instances should be booted');\n\n return _this3.visit('/');\n }).then(function () {\n assert.ok(appBooted === 1, 'the app should not be booted again');\n assert.ok(instanceBooted === 1, 'an instance should be booted');\n\n /*\n * Destroy the instance.\n */\n return _this3.runTask(function () {\n _this3.applicationInstance.destroy();\n _this3.applicationInstance = null;\n });\n }).then(function () {\n /*\n * Visit on the application a second time. The application should remain\n * booted, but a new instance will be created.\n */\n return _this3.visit('/');\n }).then(function () {\n assert.ok(appBooted === 1, 'the app should not be booted again');\n assert.ok(instanceBooted === 2, 'another instance should be booted');\n });\n };\n\n _class.prototype['@test visit() rejects on application boot failure'] = function (assert) {\n this.application.initializer({\n name: 'error',\n initialize: function () {\n throw new Error('boot failure');\n }\n });\n\n expectAsyncError();\n\n return this.visit('/').then(function () {\n assert.ok(false, 'It should not resolve the promise');\n }, function (error) {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'boot failure');\n });\n };\n\n _class.prototype['@test visit() rejects on instance boot failure'] = function (assert) {\n this.application.instanceInitializer({\n name: 'error',\n initialize: function () {\n throw new Error('boot failure');\n }\n });\n\n expectAsyncError();\n\n return this.visit('/').then(function () {\n assert.ok(false, 'It should not resolve the promise');\n }, function (error) {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'boot failure');\n });\n };\n\n _class.prototype['@test visit() follows redirects'] = function (assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b', { path: '/b/:b' });\n this.route('c', { path: '/c/:c' });\n });\n\n this.add('route:a', _emberRouting.Route.extend({\n afterModel: function () {\n this.replaceWith('b', 'zomg');\n }\n }));\n\n this.add('route:b', _emberRouting.Route.extend({\n afterModel: function (params) {\n this.transitionTo('c', params.b);\n }\n }));\n\n /*\n * First call to `visit` is `this.application.visit` and returns the\n * applicationInstance.\n */\n return this.visit('/a').then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/c/zomg', 'It should follow all redirects');\n });\n };\n\n _class.prototype['@test visit() rejects if an error occurred during a transition'] = function (assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b', { path: '/b/:b' });\n this.route('c', { path: '/c/:c' });\n });\n\n this.add('route:a', _emberRouting.Route.extend({\n afterModel: function () {\n this.replaceWith('b', 'zomg');\n }\n }));\n\n this.add('route:b', _emberRouting.Route.extend({\n afterModel: function (params) {\n this.transitionTo('c', params.b);\n }\n }));\n\n this.add('route:c', _emberRouting.Route.extend({\n afterModel: function (params) {\n throw new Error('transition failure');\n }\n }));\n\n expectAsyncError();\n\n return this.visit('/a').then(function () {\n assert.ok(false, 'It should not resolve the promise');\n }, function (error) {\n assert.ok(error instanceof Error, 'It should reject the promise with the boot error');\n assert.equal(error.message, 'transition failure');\n });\n };\n\n _class.prototype['@test visit() chain'] = function (assert) {\n this.router.map(function () {\n this.route('a');\n this.route('b');\n this.route('c');\n });\n\n return this.visit('/').then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/');\n\n return instance.visit('/a');\n }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/a');\n\n return instance.visit('/b');\n }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/b');\n\n return instance.visit('/c');\n }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(instance.getURL(), '/c');\n });\n };\n\n _class.prototype['@test visit() returns a promise that resolves when the view has rendered'] = function (assert) {\n var _this4 = this;\n\n this.addTemplate('application', '

Hello world

');\n\n assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/').then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.equal(_this4.$('.ember-view h1').text(), 'Hello world', 'the application was rendered once the promise resolves');\n });\n };\n\n _class.prototype['@test visit() returns a promise that resolves without rendering when shouldRender is set to false'] = function (assert) {\n var _this5 = this;\n\n assert.expect(3);\n\n this.addTemplate('application', '

Hello world

');\n\n assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/', { shouldRender: false }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(_this5.$().children().length, 0, 'there are still no elements in the fixture element after visit');\n });\n };\n\n _class.prototype['@test visit() renders a template when shouldRender is set to true'] = function (assert) {\n var _this6 = this;\n\n assert.expect(3);\n\n this.addTemplate('application', '

Hello world

');\n\n assert.strictEqual(this.$('#qunit-fixture').children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/', { shouldRender: true }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(_this6.$().children().length, 1, 'there is 1 element in the fixture element after visit');\n });\n };\n\n _class.prototype['@test visit() returns a promise that resolves without rendering when shouldRender is set to false with Engines'] = function (assert) {\n var _this7 = this;\n\n assert.expect(3);\n\n this.router.map(function () {\n this.mount('blog');\n });\n\n this.addTemplate('application', '

Hello world

');\n\n // Register engine\n var BlogEngine = _engine.default.extend();\n this.add('engine:blog', BlogEngine);\n\n // Register engine route map\n var BlogMap = function () {};\n this.add('route-map:blog', BlogMap);\n\n assert.strictEqual(this.$('#qunit-fixture').children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/blog', { shouldRender: false }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(_this7.$().children().length, 0, 'there are still no elements in the fixture element after visit');\n });\n };\n\n _class.prototype['@test visit() does not setup the event_dispatcher:main if isInteractive is false (with Engines) GH#15615'] = function (assert) {\n var _this8 = this;\n\n assert.expect(3);\n\n this.router.map(function () {\n this.mount('blog');\n });\n\n this.addTemplate('application', '

Hello world

{{outlet}}');\n this.add('event_dispatcher:main', {\n create: function () {\n throw new Error('should not happen!');\n }\n });\n\n // Register engine\n var BlogEngine = _engine.default.extend({\n init: function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n this._super.apply(this, args);\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{cache-money}}'));\n this.register('template:components/cache-money', (0, _emberTemplateCompiler.compile)('\\n

Dis cache money

\\n '));\n this.register('component:cache-money', _emberGlimmer.Component.extend({}));\n }\n });\n this.add('engine:blog', BlogEngine);\n\n // Register engine route map\n var BlogMap = function () {};\n this.add('route-map:blog', BlogMap);\n\n assert.strictEqual(this.$('#qunit-fixture').children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/blog', { isInteractive: false }).then(function (instance) {\n assert.ok(instance instanceof _applicationInstance.default, 'promise is resolved with an ApplicationInstance');\n assert.strictEqual(_this8.$().find('p').text(), 'Dis cache money', 'Engine component is resolved');\n });\n };\n\n _class.prototype['@test visit() on engine resolves engine component'] = function (assert) {\n var _this9 = this;\n\n assert.expect(2);\n\n this.router.map(function () {\n this.mount('blog');\n });\n\n // Register engine\n var BlogEngine = _engine.default.extend({\n init: function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n this._super.apply(this, args);\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{cache-money}}'));\n this.register('template:components/cache-money', (0, _emberTemplateCompiler.compile)('\\n

Dis cache money

\\n '));\n this.register('component:cache-money', _emberGlimmer.Component.extend({}));\n }\n });\n this.add('engine:blog', BlogEngine);\n\n // Register engine route map\n var BlogMap = function () {};\n this.add('route-map:blog', BlogMap);\n\n assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/blog', { shouldRender: true }).then(function (instance) {\n assert.strictEqual(_this9.$().find('p').text(), 'Dis cache money', 'Engine component is resolved');\n });\n };\n\n _class.prototype['@test visit() on engine resolves engine helper'] = function (assert) {\n var _this10 = this;\n\n assert.expect(2);\n\n this.router.map(function () {\n this.mount('blog');\n });\n\n // Register engine\n var BlogEngine = _engine.default.extend({\n init: function () {\n for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n args[_key3] = arguments[_key3];\n }\n\n this._super.apply(this, args);\n this.register('template:application', (0, _emberTemplateCompiler.compile)('{{swag}}'));\n this.register('helper:swag', (0, _emberGlimmer.helper)(function () {\n return 'turnt up';\n }));\n }\n });\n this.add('engine:blog', BlogEngine);\n\n // Register engine route map\n var BlogMap = function () {};\n this.add('route-map:blog', BlogMap);\n\n assert.strictEqual(this.$().children().length, 0, 'there are no elements in the fixture element');\n\n return this.visit('/blog', { shouldRender: true }).then(function () {\n assert.strictEqual(_this10.$().text(), 'turnt up', 'Engine component is resolved');\n });\n };\n\n _class.prototype['@test Ember Islands-style setup'] = function (assert) {\n var _this11 = this;\n\n var xFooInitCalled = false;\n var xFooDidInsertElementCalled = false;\n\n var xBarInitCalled = false;\n var xBarDidInsertElementCalled = false;\n\n this.router.map(function () {\n this.route('show', { path: '/:component_name' });\n });\n\n this.add('route:show', _emberRouting.Route.extend({\n queryParams: {\n data: { refreshModel: true }\n },\n\n model: function (params) {\n return {\n componentName: params.component_name,\n componentData: params.data ? JSON.parse(params.data) : undefined\n };\n }\n }));\n\n var Counter = _emberRuntime.Object.extend({\n value: 0,\n\n increment: function () {\n this.incrementProperty('value');\n }\n });\n\n this.add('service:isolatedCounter', Counter);\n this.add('service:sharedCounter', Counter.create());\n this.application.registerOptions('service:sharedCounter', { instantiate: false });\n\n this.addTemplate('show', '{{component model.componentName model=model.componentData}}');\n\n this.addTemplate('components/x-foo', '\\n

X-Foo

\\n

Hello {{model.name}}, I have been clicked {{isolatedCounter.value}} times ({{sharedCounter.value}} times combined)!

\\n ');\n\n this.add('component:x-foo', _emberGlimmer.Component.extend({\n tagName: 'x-foo',\n\n isolatedCounter: _emberRuntime.inject.service(),\n sharedCounter: _emberRuntime.inject.service(),\n\n init: function () {\n this._super();\n xFooInitCalled = true;\n },\n didInsertElement: function () {\n xFooDidInsertElementCalled = true;\n },\n click: function () {\n this.get('isolatedCounter').increment();\n this.get('sharedCounter').increment();\n }\n }));\n\n this.addTemplate('components/x-bar', '\\n

X-Bar

\\n \\n ');\n\n this.add('component:x-bar', _emberGlimmer.Component.extend({\n counter: _emberRuntime.inject.service('sharedCounter'),\n\n actions: {\n incrementCounter: function () {\n this.get('counter').increment();\n }\n },\n\n init: function () {\n this._super();\n xBarInitCalled = true;\n },\n didInsertElement: function () {\n xBarDidInsertElementCalled = true;\n }\n }));\n\n var $foo = (0, _emberViews.jQuery)('
').appendTo(this.$());\n var $bar = (0, _emberViews.jQuery)('
').appendTo(this.$());\n\n var data = encodeURIComponent(JSON.stringify({ name: 'Godfrey' }));\n var instances = [];\n\n return _emberRuntime.RSVP.all([this.runTask(function () {\n return _this11.application.visit('/x-foo?data=' + data, { rootElement: $foo[0] });\n }), this.runTask(function () {\n return _this11.application.visit('/x-bar', { rootElement: $bar[0] });\n })]).then(function (_instances) {\n instances = _instances;\n\n assert.ok(xFooInitCalled);\n assert.ok(xFooDidInsertElementCalled);\n\n assert.ok(xBarInitCalled);\n assert.ok(xBarDidInsertElementCalled);\n\n assert.equal($foo.find('h1').text(), 'X-Foo');\n assert.equal($foo.find('p').text(), 'Hello Godfrey, I have been clicked 0 times (0 times combined)!');\n assert.ok($foo.text().indexOf('X-Bar') === -1);\n\n assert.equal($bar.find('h1').text(), 'X-Bar');\n assert.equal($bar.find('button').text(), 'Join 0 others in clicking me!');\n assert.ok($bar.text().indexOf('X-Foo') === -1);\n\n _this11.runTask(function () {\n $foo.find('x-foo').click();\n });\n\n assert.equal($foo.find('p').text(), 'Hello Godfrey, I have been clicked 1 times (1 times combined)!');\n assert.equal($bar.find('button').text(), 'Join 1 others in clicking me!');\n\n _this11.runTask(function () {\n $bar.find('button').click();\n $bar.find('button').click();\n });\n\n assert.equal($foo.find('p').text(), 'Hello Godfrey, I have been clicked 1 times (3 times combined)!');\n assert.equal($bar.find('button').text(), 'Join 3 others in clicking me!');\n }).finally(function () {\n _this11.runTask(function () {\n instances.forEach(function (instance) {\n instance.destroy();\n });\n });\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember-application/tests/system/visit_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/system/visit_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-application/tests/test-helpers/registry-check', ['exports'], function (exports) {\n 'use strict';\n\n exports.verifyRegistration = verifyRegistration;\n exports.verifyInjection = verifyInjection;\n function verifyRegistration(owner, fullName) {\n ok(owner.resolveRegistration(fullName), 'has registration: ' + fullName);\n }\n\n function verifyInjection(owner, fullName, property, injectionName) {\n var registry = owner.__registry__;\n var injections = void 0;\n\n if (fullName.indexOf(':') === -1) {\n injections = registry.getTypeInjections(fullName);\n } else {\n injections = registry.getInjections(registry.normalize(fullName));\n }\n\n var normalizedName = registry.normalize(injectionName);\n var hasInjection = false;\n var injection = void 0;\n\n for (var i = 0, l = injections.length; i < l; i++) {\n injection = injections[i];\n if (injection.property === property && injection.fullName === normalizedName) {\n hasInjection = true;\n break;\n }\n }\n\n ok(hasInjection, 'has injection: ' + fullName + '.' + property + ' = ' + injectionName);\n }\n});","QUnit.module('ESLint | ember-application/tests/test-helpers/registry-check.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-application/tests/test-helpers/registry-check.js should pass ESLint\\n\\n');\n});\n","enifed('ember-babel', ['exports'], function (exports) {\n 'use strict';\n\n exports.classCallCheck = classCallCheck;\n exports.inherits = inherits;\n exports.taggedTemplateLiteralLoose = taggedTemplateLiteralLoose;\n exports.createClass = createClass;\n exports.defaults = defaults;\n function classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n\n function inherits(subClass, superClass) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : defaults(subClass, superClass);\n }\n\n function taggedTemplateLiteralLoose(strings, raw) {\n strings.raw = raw;\n return strings;\n }\n\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if ('value' in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n function createClass(Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n }\n\n function defaults(obj, defaults) {\n var keys = Object.getOwnPropertyNames(defaults);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = Object.getOwnPropertyDescriptor(defaults, key);\n if (value && value.configurable && obj[key] === undefined) {\n Object.defineProperty(obj, key, value);\n }\n }\n return obj;\n }\n\n var possibleConstructorReturn = exports.possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError('this hasn\\'t been initialized - super() hasn\\'t been called');\n }\n return call && (typeof call === 'object' || typeof call === 'function') ? call : self;\n };\n\n var slice = exports.slice = Array.prototype.slice;\n});","QUnit.module('ESLint | ember-console.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-console.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-console/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-console/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/deprecate.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/deprecate.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/error.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/error.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/features.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/features.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/handlers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/handlers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/deprecate.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/deprecate.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/error.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/error.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/features.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/features.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/handlers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/handlers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/testing.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/testing.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/lib/warn.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/lib/warn.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/testing.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/testing.js should pass ESLint\\n\\n');\n});\n","enifed('ember-debug/tests/error_test', ['ember-debug/error'], function (_error) {\n 'use strict';\n\n QUnit.module('Ember Error Throwing');\n\n QUnit.test('new Ember.Error displays provided message', function () {\n throws(function () {\n throw new _error.default('A Message');\n }, function (e) {\n return e.message === 'A Message';\n }, 'the assigned message was displayed');\n });\n});","QUnit.module('ESLint | ember-debug/tests/error_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/tests/error_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-debug/tests/handlers-test', ['ember-debug/handlers'], function (_handlers) {\n 'use strict';\n\n QUnit.module('ember-debug/handlers', {\n teardown: function () {\n delete _handlers.HANDLERS.blarz;\n }\n });\n\n QUnit.test('calls handler on `invoke` when `falsey`', function (assert) {\n assert.expect(2);\n\n function handler(message) {\n assert.ok(true, 'called handler');\n assert.equal(message, 'Foo bar');\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n\n (0, _handlers.invoke)('blarz', 'Foo bar', false);\n });\n\n QUnit.test('does not call handler on `invoke` when `truthy`', function (assert) {\n assert.expect(0);\n\n function handler() {\n assert.ok(false, 'called handler');\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n\n (0, _handlers.invoke)('blarz', 'Foo bar', true);\n });\n\n QUnit.test('calling `invoke` without handlers does not throw an error', function (assert) {\n assert.expect(0);\n\n (0, _handlers.invoke)('blarz', 'Foo bar', false);\n });\n\n QUnit.test('invoking `next` argument calls the next handler', function (assert) {\n assert.expect(2);\n\n function handler1(message, options, next) {\n assert.ok(true, 'called handler1');\n }\n\n function handler2(message, options, next) {\n assert.ok(true, 'called handler2');\n next(message, options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n\n (0, _handlers.invoke)('blarz', 'Foo', false);\n });\n\n QUnit.test('invoking `next` when no other handlers exists does not error', function (assert) {\n assert.expect(1);\n\n function handler(message, options, next) {\n assert.ok(true, 'called handler1');\n\n next(message, options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler);\n\n (0, _handlers.invoke)('blarz', 'Foo', false);\n });\n\n QUnit.test('handlers are called in the proper order', function (assert) {\n assert.expect(11);\n\n var expectedMessage = 'This is the message';\n var expectedOptions = { id: 'foo-bar' };\n var expected = ['first', 'second', 'third', 'fourth', 'fifth'];\n var actualCalls = [];\n\n function generateHandler(item) {\n return function (message, options, next) {\n assert.equal(message, expectedMessage, 'message supplied to ' + item + ' handler is correct');\n assert.equal(options, expectedOptions, 'options supplied to ' + item + ' handler is correct');\n\n actualCalls.push(item);\n\n next(message, options);\n };\n }\n\n expected.forEach(function (item) {\n return (0, _handlers.registerHandler)('blarz', generateHandler(item));\n });\n\n (0, _handlers.invoke)('blarz', expectedMessage, false, expectedOptions);\n\n assert.deepEqual(actualCalls, expected.reverse(), 'handlers were called in proper order');\n });\n\n QUnit.test('not invoking `next` prevents further handlers from being called', function (assert) {\n assert.expect(1);\n\n function handler1(message, options, next) {\n assert.ok(false, 'called handler1');\n }\n\n function handler2(message, options, next) {\n assert.ok(true, 'called handler2');\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n\n (0, _handlers.invoke)('blarz', 'Foo', false);\n });\n\n QUnit.test('handlers can call `next` with custom message and/or options', function (assert) {\n assert.expect(4);\n\n var initialMessage = 'initial message';\n var initialOptions = { id: 'initial-options' };\n\n var handler2Message = 'Handler2 Message';\n var handler2Options = { id: 'handler-2' };\n\n function handler1(message, options, next) {\n assert.equal(message, handler2Message, 'handler2 message provided to handler1');\n assert.equal(options, handler2Options, 'handler2 options provided to handler1');\n }\n\n function handler2(message, options, next) {\n assert.equal(message, initialMessage, 'initial message provided to handler2');\n assert.equal(options, initialOptions, 'initial options proivided to handler2');\n\n next(handler2Message, handler2Options);\n }\n\n (0, _handlers.registerHandler)('blarz', handler1);\n (0, _handlers.registerHandler)('blarz', handler2);\n\n (0, _handlers.invoke)('blarz', initialMessage, false, initialOptions);\n });\n});","QUnit.module('ESLint | ember-debug/tests/handlers-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/tests/handlers-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-debug/tests/main_test', ['ember-environment', 'ember-runtime', 'ember-debug/handlers', 'ember-debug/deprecate', 'ember-debug/warn', 'ember-debug/index'], function (_emberEnvironment, _emberRuntime, _handlers, _deprecate, _warn, _index) {\n 'use strict';\n\n var originalEnvValue = void 0;\n var originalDeprecateHandler = void 0;\n\n QUnit.module('ember-debug', {\n setup: function () {\n originalEnvValue = _emberEnvironment.ENV.RAISE_ON_DEPRECATION;\n originalDeprecateHandler = _handlers.HANDLERS.deprecate;\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = true;\n },\n teardown: function () {\n _handlers.HANDLERS.deprecate = originalDeprecateHandler;\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = originalEnvValue;\n }\n });\n\n QUnit.test('Ember.deprecate does not throw if RAISE_ON_DEPRECATION is false', function (assert) {\n assert.expect(1);\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = false;\n\n try {\n (0, _index.deprecate)('Should not throw', false, { id: 'test', until: 'forever' });\n assert.ok(true, 'Ember.deprecate did not throw');\n } catch (e) {\n assert.ok(false, 'Expected deprecate not to throw but it did: ' + e.message);\n }\n });\n\n QUnit.test('Ember.deprecate resets deprecation level to RAISE if ENV.RAISE_ON_DEPRECATION is set', function (assert) {\n assert.expect(2);\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = false;\n\n try {\n (0, _index.deprecate)('Should not throw', false, { id: 'test', until: 'forever' });\n assert.ok(true, 'Ember.deprecate did not throw');\n } catch (e) {\n assert.ok(false, 'Expected deprecate not to throw but it did: ' + e.message);\n }\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = true;\n\n assert.throws(function () {\n (0, _index.deprecate)('Should throw', false, { id: 'test', until: 'forever' });\n }, /Should throw/);\n });\n\n QUnit.test('When ENV.RAISE_ON_DEPRECATION is true, it is still possible to silence a deprecation by id', function (assert) {\n assert.expect(3);\n\n _emberEnvironment.ENV.RAISE_ON_DEPRECATION = true;\n (0, _deprecate.registerHandler)(function (message, options, next) {\n if (!options || options.id !== 'my-deprecation') {\n next.apply(undefined, arguments);\n }\n });\n\n try {\n (0, _index.deprecate)('should be silenced with matching id', false, { id: 'my-deprecation', until: 'forever' });\n assert.ok(true, 'Did not throw when level is set by id');\n } catch (e) {\n assert.ok(false, 'Expected deprecate not to throw but it did: ' + e.message);\n }\n\n assert.throws(function () {\n (0, _index.deprecate)('Should throw with no matching id', false, { id: 'test', until: 'forever' });\n }, /Should throw with no matching id/);\n\n assert.throws(function () {\n (0, _index.deprecate)('Should throw with non-matching id', false, { id: 'other-id', until: 'forever' });\n }, /Should throw with non-matching id/);\n });\n\n QUnit.test('Ember.deprecate throws deprecation if second argument is falsy', function () {\n expect(3);\n\n throws(function () {\n return (0, _index.deprecate)('Deprecation is thrown', false, { id: 'test', until: 'forever' });\n });\n throws(function () {\n return (0, _index.deprecate)('Deprecation is thrown', '', { id: 'test', until: 'forever' });\n });\n throws(function () {\n return (0, _index.deprecate)('Deprecation is thrown', 0, { id: 'test', until: 'forever' });\n });\n });\n\n QUnit.test('Ember.deprecate does not invoke a function as the second argument', function () {\n expect(1);\n\n (0, _index.deprecate)('Deprecation is thrown', function () {\n ok(false, 'this function should not be invoked');\n }, { id: 'test', until: 'forever' });\n\n ok(true, 'deprecations were not thrown');\n });\n\n QUnit.test('Ember.deprecate does not throw deprecations if second argument is truthy', function () {\n expect(1);\n\n (0, _index.deprecate)('Deprecation is thrown', true, { id: 'test', until: 'forever' });\n (0, _index.deprecate)('Deprecation is thrown', '1', { id: 'test', until: 'forever' });\n (0, _index.deprecate)('Deprecation is thrown', 1, { id: 'test', until: 'forever' });\n\n ok(true, 'deprecations were not thrown');\n });\n\n QUnit.test('Ember.assert throws if second argument is falsy', function () {\n expect(3);\n\n throws(function () {\n return (0, _index.assert)('Assertion is thrown', false);\n });\n throws(function () {\n return (0, _index.assert)('Assertion is thrown', '');\n });\n throws(function () {\n return (0, _index.assert)('Assertion is thrown', 0);\n });\n });\n\n QUnit.test('Ember.assert does not throw if second argument is a function', function (assert) {\n assert.expect(1);\n\n (0, _index.assert)('Assertion is thrown', function () {\n return true;\n });\n\n ok(true, 'assertions were not thrown');\n });\n\n QUnit.test('Ember.assert does not throw if second argument is truthy', function () {\n expect(1);\n\n (0, _index.assert)('Assertion is thrown', true);\n (0, _index.assert)('Assertion is thrown', '1');\n (0, _index.assert)('Assertion is thrown', 1);\n\n ok(true, 'assertions were not thrown');\n });\n\n QUnit.test('Ember.assert does not throw if second argument is an object', function () {\n expect(1);\n var Igor = _emberRuntime.Object.extend();\n\n (0, _index.assert)('is truthy', Igor);\n (0, _index.assert)('is truthy', Igor.create());\n\n ok(true, 'assertions were not thrown');\n });\n\n QUnit.test('Ember.deprecate does not throw a deprecation at log and silence levels', function () {\n expect(4);\n var id = 'ABC';\n var until = 'forever';\n var shouldThrow = false;\n\n (0, _deprecate.registerHandler)(function (message, options, next) {\n if (options && options.id === id) {\n if (shouldThrow) {\n throw new Error(message);\n }\n }\n });\n\n try {\n (0, _index.deprecate)('Deprecation for testing purposes', false, { id: id, until: until });\n ok(true, 'Deprecation did not throw');\n } catch (e) {\n ok(false, 'Deprecation was thrown despite being added to blacklist');\n }\n\n try {\n (0, _index.deprecate)('Deprecation for testing purposes', false, { id: id, until: until });\n ok(true, 'Deprecation did not throw');\n } catch (e) {\n ok(false, 'Deprecation was thrown despite being added to blacklist');\n }\n\n shouldThrow = true;\n\n throws(function () {\n (0, _index.deprecate)('Deprecation is thrown', false, { id: id, until: until });\n });\n\n throws(function () {\n (0, _index.deprecate)('Deprecation is thrown', false, { id: id, until: until });\n });\n });\n\n QUnit.test('Ember.deprecate without options triggers a deprecation', function (assert) {\n assert.expect(4);\n\n (0, _deprecate.registerHandler)(function (message) {\n if (message === _deprecate.missingOptionsDeprecation) {\n assert.ok(true, 'proper deprecation is triggered when options is missing');\n } else if (message === 'foo') {\n assert.ok(true, 'original deprecation is still triggered');\n }\n });\n\n (0, _index.deprecate)('foo');\n (0, _index.deprecate)('foo', false, {});\n });\n\n QUnit.test('Ember.deprecate without options.id triggers a deprecation', function (assert) {\n assert.expect(2);\n\n (0, _deprecate.registerHandler)(function (message) {\n if (message === _deprecate.missingOptionsIdDeprecation) {\n assert.ok(true, 'proper deprecation is triggered when options.id is missing');\n } else if (message === 'foo') {\n assert.ok(true, 'original deprecation is still triggered');\n }\n });\n\n (0, _index.deprecate)('foo', false, { until: 'forever' });\n });\n\n QUnit.test('Ember.deprecate without options.until triggers a deprecation', function (assert) {\n assert.expect(2);\n\n (0, _deprecate.registerHandler)(function (message) {\n if (message === _deprecate.missingOptionsUntilDeprecation) {\n assert.ok(true, 'proper deprecation is triggered when options.until is missing');\n } else if (message === 'foo') {\n assert.ok(true, 'original deprecation is still triggered');\n }\n });\n\n (0, _index.deprecate)('foo', false, { id: 'test' });\n });\n\n QUnit.test('warn without options triggers a deprecation', function (assert) {\n assert.expect(2);\n\n (0, _deprecate.registerHandler)(function (message) {\n assert.equal(message, _warn.missingOptionsDeprecation, 'deprecation is triggered when options is missing');\n });\n\n (0, _warn.registerHandler)(function (message) {\n assert.equal(message, 'foo', 'original warning is triggered');\n });\n\n (0, _index.warn)('foo');\n });\n\n QUnit.test('warn without options.id triggers a deprecation', function (assert) {\n assert.expect(2);\n\n (0, _deprecate.registerHandler)(function (message) {\n assert.equal(message, _warn.missingOptionsIdDeprecation, 'deprecation is triggered when options is missing');\n });\n\n (0, _warn.registerHandler)(function (message) {\n assert.equal(message, 'foo', 'original warning is triggered');\n });\n\n (0, _index.warn)('foo', false, {});\n });\n\n QUnit.test('warn without options.id nor test triggers a deprecation', function (assert) {\n assert.expect(2);\n\n (0, _deprecate.registerHandler)(function (message) {\n assert.equal(message, _warn.missingOptionsIdDeprecation, 'deprecation is triggered when options is missing');\n });\n\n (0, _warn.registerHandler)(function (message) {\n assert.equal(message, 'foo', 'original warning is triggered');\n });\n\n (0, _index.warn)('foo', {});\n });\n\n QUnit.test('warn without test but with options does not trigger a deprecation', function (assert) {\n assert.expect(1);\n\n (0, _deprecate.registerHandler)(function (message) {\n assert.ok(false, 'there should be no deprecation ' + message);\n });\n\n (0, _warn.registerHandler)(function (message) {\n assert.equal(message, 'foo', 'warning was triggered');\n });\n\n (0, _index.warn)('foo', { id: 'ember-debug.do-not-raise' });\n });\n});","QUnit.module('ESLint | ember-debug/tests/main_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/tests/main_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-debug/tests/warn_if_using_stripped_feature_flags_test', ['ember-environment', 'ember-debug', 'ember-debug/index'], function (_emberEnvironment, _emberDebug, _index) {\n 'use strict';\n\n var oldWarn = void 0,\n oldRunInDebug = void 0,\n origEnvFeatures = void 0,\n origEnableOptional = void 0,\n features = void 0,\n knownFeatures = void 0;\n\n function confirmWarns(expectedMsg) {\n var featuresWereStripped = true;\n\n (0, _emberDebug.setDebugFunction)('warn', function (msg, test) {\n if (!test) {\n equal(msg, expectedMsg);\n }\n });\n\n (0, _emberDebug.setDebugFunction)('runInDebug', function (func) {\n func();\n });\n\n // Should trigger our 1 warning\n (0, _index._warnIfUsingStrippedFeatureFlags)(features, knownFeatures, featuresWereStripped);\n\n // Shouldn't trigger any warnings now that we're \"in canary\"\n featuresWereStripped = false;\n (0, _index._warnIfUsingStrippedFeatureFlags)(features, knownFeatures, featuresWereStripped);\n }\n\n QUnit.module('ember-debug - _warnIfUsingStrippedFeatureFlags', {\n setup: function () {\n oldWarn = (0, _emberDebug.getDebugFunction)('warn');\n oldRunInDebug = (0, _emberDebug.getDebugFunction)('runInDebug');\n origEnvFeatures = _emberEnvironment.ENV.FEATURES;\n origEnableOptional = _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES;\n\n knownFeatures = {\n 'fred': null,\n 'barney': null,\n 'wilma': null\n };\n },\n teardown: function () {\n (0, _emberDebug.setDebugFunction)('warn', oldWarn);\n (0, _emberDebug.setDebugFunction)('runInDebug', oldRunInDebug);\n _emberEnvironment.ENV.FEATURES = origEnvFeatures;\n _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES = origEnableOptional;\n }\n });\n\n QUnit.test('Setting Ember.ENV.ENABLE_OPTIONAL_FEATURES truthy in non-canary, debug build causes a warning', function () {\n expect(1);\n\n _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES = true;\n features = {};\n\n confirmWarns('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.');\n });\n\n QUnit.test('Enabling a known FEATURE flag in non-canary, debug build causes a warning', function () {\n expect(1);\n\n _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES = false;\n features = {\n 'fred': true,\n 'barney': false,\n 'wilma': null\n };\n\n confirmWarns('FEATURE[\"fred\"] is set as enabled, but FEATURE flags are only available in canary builds.');\n });\n\n QUnit.test('Enabling an unknown FEATURE flag in non-canary debug build does not cause a warning', function () {\n expect(0);\n\n _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES = false;\n features = {\n 'some-ember-data-feature-flag': true\n };\n\n confirmWarns('FEATURE[\"fred\"] is set as enabled, but FEATURE flags are only available in canary builds.');\n });\n\n QUnit.test('`ENV.FEATURES` being undefined does not cause an error', function () {\n expect(0);\n\n _emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES = false;\n features = undefined;\n\n confirmWarns();\n });\n});","QUnit.module('ESLint | ember-debug/tests/warn_if_using_stripped_feature_flags_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/tests/warn_if_using_stripped_feature_flags_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-debug/warn.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-debug/warn.js should pass ESLint\\n\\n');\n});\n","enifed('ember-dev/test-helper/assertion', ['exports', 'ember-dev/test-helper/utils'], function (exports, _utils) {\n 'use strict';\n\n exports.default = AssertionAssert;\n\n\n var BREAK = {};\n\n /**\n This assertion class is used to test assertions made using Ember.assert.\n It injects two helpers onto `window`:\n \n - expectAssertion(func: Function, [expectedMessage: String | RegExp])\n \n This function calls `func` and asserts that `Ember.assert` is invoked during\n the execution. Moreover, it takes a String or a RegExp as a second optional\n argument that can be used to test if a specific assertion message was\n generated.\n \n - ignoreAssertion(func: Function)\n \n This function calls `func` and disables `Ember.assert` during the execution.\n In particular, this prevents `Ember.assert` from throw errors that would\n disrupt the control flow.\n */\n function AssertionAssert(env) {\n this.env = env;\n }\n\n AssertionAssert.prototype = {\n reset: function reset() {},\n assert: function assert() {},\n\n inject: function inject() {\n var _this = this;\n\n var expectAssertion = function expectAssertion(func, expectedMessage) {\n if (_this.env.runningProdBuild) {\n QUnit.ok(true, 'Assertions disabled in production builds.');\n return;\n }\n\n var sawCall = undefined;\n var actualMessage = undefined;\n\n // The try-catch statement is used to \"exit\" `func` as soon as\n // the first useful assertion has been produced.\n try {\n (0, _utils.callWithStub)(_this.env, 'assert', func, function (message, test) {\n sawCall = true;\n if ((0, _utils.checkTest)(test)) {\n return;\n }\n actualMessage = message;\n throw BREAK;\n });\n } catch (e) {\n if (e !== BREAK) {\n throw e;\n }\n }\n\n assert(sawCall, actualMessage, expectedMessage);\n };\n\n var ignoreAssertion = function ignoreAssertion(func) {\n (0, _utils.callWithStub)(_this.env, 'assert', func);\n };\n\n window.expectAssertion = expectAssertion;\n window.ignoreAssertion = ignoreAssertion;\n },\n\n restore: function restore() {\n window.expectAssertion = null;\n window.ignoreAssertion = null;\n }\n };\n\n function assert(sawCall, actualMessage, expectedMessage) {\n // Run assertions in an order that is useful when debugging a test failure.\n if (!sawCall) {\n QUnit.ok(false, 'Expected Ember.assert to be called (Not called with any value).');\n } else if (!actualMessage) {\n QUnit.ok(false, 'Expected a failing Ember.assert (Ember.assert called, but without a failing test).');\n } else {\n if (expectedMessage) {\n if (expectedMessage instanceof RegExp) {\n QUnit.ok(expectedMessage.test(actualMessage), 'Expected failing Ember.assert: \\'' + expectedMessage + '\\', but got \\'' + actualMessage + '\\'.');\n } else {\n QUnit.equal(actualMessage, expectedMessage, 'Expected failing Ember.assert: \\'' + expectedMessage + '\\', but got \\'' + actualMessage + '\\'.');\n }\n } else {\n // Positive assertion that assert was called\n QUnit.ok(true, 'Expected a failing Ember.assert.');\n }\n }\n }\n});","enifed('ember-dev/test-helper/debug', ['exports', 'ember-dev/test-helper/method-call-tracker'], function (exports, _methodCallTracker) {\n 'use strict';\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ('value' in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n\n var DebugAssert = function () {\n function DebugAssert(methodName, env) {\n _classCallCheck(this, DebugAssert);\n\n this.methodName = methodName;\n this.env = env;\n }\n\n _createClass(DebugAssert, [{\n key: 'inject',\n value: function inject() {}\n }, {\n key: 'restore',\n value: function restore() {\n this.reset();\n }\n }, {\n key: 'reset',\n value: function reset() {\n if (this.tracker) {\n this.tracker.restoreMethod();\n }\n\n this.tracker = null;\n }\n }, {\n key: 'assert',\n value: function assert() {\n if (this.tracker) {\n this.tracker.assert();\n }\n }\n\n // Run an expectation callback within the context of a new tracker, optionally\n // accepting a function to run, which asserts immediately\n }, {\n key: 'runExpectation',\n value: function runExpectation(func, callback) {\n var originalTracker = undefined;\n\n // When helpers are passed a callback, they get a new tracker context\n if (func) {\n originalTracker = this.tracker;\n this.tracker = null;\n }\n\n if (!this.tracker) {\n this.tracker = new _methodCallTracker.default(this.env, this.methodName);\n }\n\n // Yield to caller with tracker instance\n callback(this.tracker);\n\n // Once the given callback is invoked, the pending assertions should be\n // flushed immediately\n if (func) {\n func();\n this.assert();\n this.reset();\n\n this.tracker = originalTracker;\n }\n }\n }]);\n\n return DebugAssert;\n }();\n\n exports.default = DebugAssert;\n});","enifed('ember-dev/test-helper/deprecation', ['exports', 'ember-babel', 'ember-dev/test-helper/debug', 'ember-dev/test-helper/utils'], function (exports, _emberBabel, _debug, _utils) {\n 'use strict';\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ('value' in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n var _get = function get(_x, _x2, _x3) {\n var _again = true;_function: while (_again) {\n var object = _x,\n property = _x2,\n receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);if (parent === null) {\n return undefined;\n } else {\n _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined;continue _function;\n }\n } else if ('value' in desc) {\n return desc.value;\n } else {\n var getter = desc.get;if (getter === undefined) {\n return undefined;\n }return getter.call(receiver);\n }\n }\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : (0, _emberBabel.defaults)(subClass, superClass);\n }\n\n var DeprecationAssert = function (_DebugAssert) {\n _inherits(DeprecationAssert, _DebugAssert);\n\n function DeprecationAssert(env) {\n _classCallCheck(this, DeprecationAssert);\n\n _get(Object.getPrototypeOf(DeprecationAssert.prototype), 'constructor', this).call(this, 'deprecate', env);\n }\n\n _createClass(DeprecationAssert, [{\n key: 'inject',\n value: function inject() {\n var _this = this;\n\n // Expects no deprecation to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test.\n //\n // expectNoDeprecation(function() {\n // fancyNewThing();\n // });\n //\n // expectNoDeprecation();\n // Ember.deprecate(\"Old And Busted\");\n //\n var expectNoDeprecation = function expectNoDeprecation(func) {\n if (typeof func !== 'function') {\n func = null;\n }\n\n _this.runExpectation(func, function (tracker) {\n if (tracker.isExpectingCalls()) {\n throw new Error(\"expectNoDeprecation was called after expectDeprecation was called!\");\n }\n\n tracker.expectNoCalls();\n });\n };\n\n // Expect a deprecation to happen within a function, or if no function\n // is pass, from the time of calling until the end of the test. Can be called\n // multiple times to assert deprecations with different specific messages\n // were fired.\n //\n // expectDeprecation(function() {\n // Ember.deprecate(\"Old And Busted\");\n // }, /* optionalStringOrRegex */);\n //\n // expectDeprecation(/* optionalStringOrRegex */);\n // Ember.deprecate(\"Old And Busted\");\n //\n var expectDeprecation = function expectDeprecation(func, message) {\n if (typeof func !== 'function') {\n message = func;\n func = null;\n }\n\n _this.runExpectation(func, function (tracker) {\n if (tracker.isExpectingNoCalls()) {\n throw new Error(\"expectDeprecation was called after expectNoDeprecation was called!\");\n }\n\n tracker.expectCall(message);\n });\n };\n\n var ignoreDeprecation = function ignoreDeprecation(func) {\n (0, _utils.callWithStub)(_this.env, 'deprecate', func);\n };\n\n window.expectNoDeprecation = expectNoDeprecation;\n window.expectDeprecation = expectDeprecation;\n window.ignoreDeprecation = ignoreDeprecation;\n }\n }, {\n key: 'restore',\n value: function restore() {\n _get(Object.getPrototypeOf(DeprecationAssert.prototype), 'restore', this).call(this);\n window.expectDeprecation = null;\n window.expectNoDeprecation = null;\n window.ignoreDeprecation = null;\n }\n }]);\n\n return DeprecationAssert;\n }(_debug.default);\n\n exports.default = DeprecationAssert;\n});","enifed(\"ember-dev/test-helper/index\", [\"exports\", \"ember-dev/test-helper/deprecation\", \"ember-dev/test-helper/warning\", \"ember-dev/test-helper/remaining-view\", \"ember-dev/test-helper/remaining-template\", \"ember-dev/test-helper/assertion\", \"ember-dev/test-helper/run-loop\", \"ember-dev/test-helper/utils\"], function (exports, _deprecation, _warning, _remainingView, _remainingTemplate, _assertion, _runLoop, _utils) {\n \"use strict\";\n\n var EmberDevTestHelperAssert = (0, _utils.buildCompositeAssert)([_deprecation.default, _warning.default, _remainingView.default, _remainingTemplate.default, _assertion.default, _runLoop.default]);\n\n exports.default = EmberDevTestHelperAssert;\n});","enifed('ember-dev/test-helper/method-call-tracker', ['exports', 'ember-dev/test-helper/utils'], function (exports, _utils) {\n 'use strict';\n\n var MethodCallTracker = function MethodCallTracker(env, methodName) {\n this._env = env;\n this._methodName = methodName;\n this._isExpectingNoCalls = false;\n this._expecteds = [];\n this._actuals = [];\n }; /* globals QUnit */\n\n MethodCallTracker.prototype = {\n stubMethod: function stubMethod() {\n var _this = this;\n\n if (this._originalMethod) {\n // Method is already stubbed\n return;\n }\n\n var env = this._env;\n var methodName = this._methodName;\n\n this._originalMethod = env.getDebugFunction(methodName);\n\n env.setDebugFunction(methodName, function (message, test) {\n var resultOfTest = (0, _utils.checkTest)(test);\n\n _this._actuals.push([message, resultOfTest]);\n });\n },\n\n restoreMethod: function restoreMethod() {\n if (this._originalMethod) {\n this._env.setDebugFunction(this._methodName, this._originalMethod);\n }\n },\n\n expectCall: function expectCall(message) {\n this.stubMethod();\n this._expecteds.push(message || /.*/);\n },\n\n expectNoCalls: function expectNoCalls() {\n this.stubMethod();\n this._isExpectingNoCalls = true;\n },\n\n isExpectingNoCalls: function isExpectingNoCalls() {\n return this._isExpectingNoCalls;\n },\n\n isExpectingCalls: function isExpectingCalls() {\n return !this._isExpectingNoCalls && this._expecteds.length;\n },\n\n assert: function assert() {\n var env = this._env;\n var methodName = this._methodName;\n var isExpectingNoCalls = this._isExpectingNoCalls;\n var expecteds = this._expecteds;\n var actuals = this._actuals;\n var o = undefined,\n i = undefined;\n\n if (!isExpectingNoCalls && expecteds.length === 0 && actuals.length === 0) {\n return;\n }\n\n if (env.runningProdBuild) {\n QUnit.ok(true, 'calls to Ember.' + methodName + ' disabled in production builds.');\n return;\n }\n\n if (isExpectingNoCalls) {\n var actualMessages = [];\n for (i = 0; i < actuals.length; i++) {\n if (!actuals[i][1]) {\n actualMessages.push(actuals[i][0]);\n }\n }\n QUnit.ok(actualMessages.length === 0, 'Expected no Ember.' + methodName + ' calls, got ' + actuals.length + ': ' + actualMessages.join(', '));\n return;\n }\n\n var expected = undefined,\n actual = undefined,\n match = undefined;\n\n for (o = 0; o < expecteds.length; o++) {\n expected = expecteds[o];\n for (i = 0; i < actuals.length; i++) {\n actual = actuals[i];\n if (!actual[1]) {\n if (expected instanceof RegExp) {\n if (expected.test(actual[0])) {\n match = actual;\n break;\n }\n } else {\n if (expected === actual[0]) {\n match = actual;\n break;\n }\n }\n }\n }\n\n if (!actual) {\n QUnit.ok(false, 'Recieved no Ember.' + methodName + ' calls at all, expecting: ' + expected);\n } else if (match && !match[1]) {\n QUnit.ok(true, 'Recieved failing Ember.' + methodName + ' call with message: ' + match[0]);\n } else if (match && match[1]) {\n QUnit.ok(false, 'Expected failing Ember.' + methodName + ' call, got succeeding with message: ' + match[0]);\n } else if (actual[1]) {\n QUnit.ok(false, 'Did not receive failing Ember.' + methodName + ' call matching \\'' + expected + '\\', last was success with \\'' + actual[0] + '\\'');\n } else if (!actual[1]) {\n QUnit.ok(false, 'Did not receive failing Ember.' + methodName + ' call matching \\'' + expected + '\\', last was failure with \\'' + actual[0] + '\\'');\n }\n }\n }\n };\n\n exports.default = MethodCallTracker;\n});","enifed(\"ember-dev/test-helper/remaining-template\", [\"exports\"], function (exports) {\n \"use strict\";\n\n /* globals QUnit */\n\n var RemainingTemplateAssert = function RemainingTemplateAssert(env) {\n this.env = env;\n };\n\n RemainingTemplateAssert.prototype = {\n reset: function reset() {},\n inject: function inject() {},\n assert: function assert() {\n if (this.env.Ember && this.env.Ember.TEMPLATES) {\n var templateNames = [],\n name;\n for (name in this.env.Ember.TEMPLATES) {\n if (this.env.Ember.TEMPLATES[name] != null) {\n templateNames.push(name);\n }\n }\n\n if (templateNames.length > 0) {\n QUnit.deepEqual(templateNames, [], \"Ember.TEMPLATES should be empty\");\n this.env.Ember.TEMPLATES = {};\n }\n }\n },\n restore: function restore() {}\n };\n\n exports.default = RemainingTemplateAssert;\n});","enifed(\"ember-dev/test-helper/remaining-view\", [\"exports\"], function (exports) {\n \"use strict\";\n\n /* globals QUnit */\n\n var RemainingViewAssert = function RemainingViewAssert(env) {\n this.env = env;\n };\n\n RemainingViewAssert.prototype = {\n reset: function reset() {},\n inject: function inject() {},\n assert: function assert() {\n if (this.env.Ember && this.env.Ember.View) {\n var viewIds = [],\n id;\n for (id in this.env.Ember.View.views) {\n if (this.env.Ember.View.views[id] != null) {\n viewIds.push(id);\n }\n }\n\n if (viewIds.length > 0) {\n QUnit.deepEqual(viewIds, [], \"Ember.View.views should be empty\");\n this.env.Ember.View.views = [];\n }\n }\n },\n restore: function restore() {}\n };\n\n exports.default = RemainingViewAssert;\n});","enifed(\"ember-dev/test-helper/run-loop\", [\"exports\"], function (exports) {\n \"use strict\";\n\n /* globals QUnit */\n\n function RunLoopAssertion(env) {\n this.env = env;\n }\n\n RunLoopAssertion.prototype = {\n reset: function reset() {},\n inject: function inject() {},\n assert: function assert() {\n var run = this.env.Ember.run;\n\n if (run.currentRunLoop) {\n QUnit.ok(false, \"Should not be in a run loop at end of test\");\n while (run.currentRunLoop) {\n run.end();\n }\n }\n\n if (run.hasScheduledTimers()) {\n QUnit.ok(false, \"Ember run should not have scheduled timers at end of test\");\n run.cancelTimers();\n }\n },\n restore: function restore() {}\n };\n\n exports.default = RunLoopAssertion;\n});","enifed(\"ember-dev/test-helper/setup-qunit\", [\"exports\"], function (exports) {\n \"use strict\";\n\n exports.default = setupQUnit;\n\n /* globals QUnit */\n function setupQUnit(assertion, _qunitGlobal) {\n var qunitGlobal = QUnit;\n\n if (_qunitGlobal) {\n qunitGlobal = _qunitGlobal;\n }\n\n var originalModule = qunitGlobal.module;\n\n qunitGlobal.module = function (name, _options) {\n var options = _options || {};\n var originalSetup = options.setup || function () {};\n var originalTeardown = options.teardown || function () {};\n\n options.setup = function () {\n assertion.reset();\n assertion.inject();\n\n originalSetup.call(this);\n };\n\n options.teardown = function () {\n originalTeardown.call(this);\n\n assertion.assert();\n assertion.restore();\n };\n\n return originalModule(name, options);\n };\n }\n});","enifed('ember-dev/test-helper/utils', ['exports'], function (exports) {\n 'use strict';\n\n exports.buildCompositeAssert = buildCompositeAssert;\n exports.callWithStub = callWithStub;\n exports.checkTest = checkTest;\n\n function callForEach(prop, func) {\n return function () {\n for (var i = 0, l = this[prop].length; i < l; i++) {\n this[prop][i][func]();\n }\n };\n }\n\n function buildCompositeAssert(assertClasses) {\n function Composite(env) {\n this.asserts = assertClasses.map(function (Assert) {\n return new Assert(env);\n });\n }\n\n Composite.prototype = {\n reset: callForEach('asserts', 'reset'),\n inject: callForEach('asserts', 'inject'),\n assert: callForEach('asserts', 'assert'),\n restore: callForEach('asserts', 'restore')\n };\n\n return Composite;\n }\n\n function noop() {}\n\n function callWithStub(env, name, func) {\n var debugStub = arguments.length <= 3 || arguments[3] === undefined ? noop : arguments[3];\n\n var originalFunc = env.getDebugFunction(name);\n try {\n env.setDebugFunction(name, debugStub);\n func();\n } finally {\n env.setDebugFunction(name, originalFunc);\n }\n }\n\n function checkTest(test) {\n return typeof test === 'function' ? test() : test;\n }\n});","enifed('ember-dev/test-helper/warning', ['exports', 'ember-babel', 'ember-dev/test-helper/debug', 'ember-dev/test-helper/utils'], function (exports, _emberBabel, _debug, _utils) {\n 'use strict';\n\n var _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if ('value' in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n }();\n\n var _get = function get(_x, _x2, _x3) {\n var _again = true;_function: while (_again) {\n var object = _x,\n property = _x2,\n receiver = _x3;_again = false;if (object === null) object = Function.prototype;var desc = Object.getOwnPropertyDescriptor(object, property);if (desc === undefined) {\n var parent = Object.getPrototypeOf(object);if (parent === null) {\n return undefined;\n } else {\n _x = parent;_x2 = property;_x3 = receiver;_again = true;desc = parent = undefined;continue _function;\n }\n } else if ('value' in desc) {\n return desc.value;\n } else {\n var getter = desc.get;if (getter === undefined) {\n return undefined;\n }return getter.call(receiver);\n }\n }\n };\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError('Cannot call a class as a function');\n }\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== 'function' && superClass !== null) {\n throw new TypeError('Super expression must either be null or a function, not ' + typeof superClass);\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : (0, _emberBabel.defaults)(subClass, superClass);\n }\n\n var WarningAssert = function (_DebugAssert) {\n _inherits(WarningAssert, _DebugAssert);\n\n function WarningAssert(env) {\n _classCallCheck(this, WarningAssert);\n\n _get(Object.getPrototypeOf(WarningAssert.prototype), 'constructor', this).call(this, 'warn', env);\n }\n\n _createClass(WarningAssert, [{\n key: 'inject',\n value: function inject() {\n var _this = this;\n\n // Expects no warning to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test.\n //\n // expectNoWarning(function() {\n // fancyNewThing();\n // });\n //\n // expectNoWarning();\n // Ember.warn(\"Oh snap, didn't expect that\");\n //\n var expectNoWarning = function expectNoWarning(func) {\n if (typeof func !== 'function') {\n func = null;\n }\n\n _this.runExpectation(func, function (tracker) {\n if (tracker.isExpectingCalls()) {\n throw new Error(\"expectNoWarning was called after expectWarning was called!\");\n }\n\n tracker.expectNoCalls();\n });\n };\n\n // Expect a warning to happen within a function, or if no function is\n // passed, from the time of calling until the end of the test. Can be called\n // multiple times to assert warnings with different specific messages\n // happened.\n //\n // expectWarning(function() {\n // Ember.warn(\"Times they are a-changin'\");\n // }, /* optionalStringOrRegex */);\n //\n // expectWarning(/* optionalStringOrRegex */);\n // Ember.warn(\"Times definitely be changin'\");\n //\n var expectWarning = function expectWarning(fn, message) {\n if (typeof fn !== 'function') {\n message = fn;\n fn = null;\n }\n\n _this.runExpectation(fn, function (tracker) {\n if (tracker.isExpectingNoCalls()) {\n throw new Error(\"expectWarning was called after expectNoWarning was called!\");\n }\n\n tracker.expectCall(message);\n });\n };\n\n var ignoreWarning = function ignoreWarning(func) {\n (0, _utils.callWithStub)(_this.env, 'warn', func);\n };\n\n window.expectNoWarning = expectNoWarning;\n window.expectWarning = expectWarning;\n window.ignoreWarning = ignoreWarning;\n }\n }, {\n key: 'restore',\n value: function restore() {\n _get(Object.getPrototypeOf(WarningAssert.prototype), 'restore', this).call(this);\n window.expectWarning = null;\n window.expectNoWarning = null;\n window.ignoreWarning = null;\n }\n }]);\n\n return WarningAssert;\n }(_debug.default);\n\n exports.default = WarningAssert;\n});","QUnit.module('ESLint | ember-environment.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-environment.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-environment/lib/global.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-environment/lib/global.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-environment/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-environment/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-environment/lib/utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-environment/lib/utils.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-extension-support/lib/container_debug_adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-extension-support/lib/container_debug_adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-extension-support/lib/data_adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-extension-support/lib/data_adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-extension-support/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-extension-support/lib/index.js should pass ESLint\\n\\n');\n});\n","enifed('ember-extension-support/tests/container_debug_adapter_test', ['ember-babel', 'internal-test-helpers', 'ember-utils', 'ember-metal', 'ember-runtime', 'ember-extension-support/index'], function (_emberBabel, _internalTestHelpers, _emberUtils, _emberMetal, _emberRuntime) {\n 'use strict';\n\n // Must be required to export Ember.ContainerDebugAdapter.\n\n var adapter = void 0;\n\n (0, _internalTestHelpers.moduleFor)('Container Debug Adapter', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n adapter = _this.application.__deprecatedInstance__.lookup('container-debug-adapter:main');\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n (0, _emberMetal.run)(function () {\n adapter.destroy();\n });\n\n _ApplicationTestCase.prototype.teardown.call(this);\n };\n\n _class.prototype['@test default ContainerDebugAdapter cannot catalog certain entries by type'] = function testDefaultContainerDebugAdapterCannotCatalogCertainEntriesByType(assert) {\n assert.equal(adapter.canCatalogEntriesByType('model'), false, 'canCatalogEntriesByType should return false for model');\n assert.equal(adapter.canCatalogEntriesByType('template'), false, 'canCatalogEntriesByType should return false for template');\n };\n\n _class.prototype['@test default ContainerDebugAdapter can catalog typical entries by type'] = function testDefaultContainerDebugAdapterCanCatalogTypicalEntriesByType(assert) {\n assert.equal(adapter.canCatalogEntriesByType('controller'), true, 'canCatalogEntriesByType should return true for controller');\n assert.equal(adapter.canCatalogEntriesByType('route'), true, 'canCatalogEntriesByType should return true for route');\n assert.equal(adapter.canCatalogEntriesByType('view'), true, 'canCatalogEntriesByType should return true for view');\n };\n\n _class.prototype['@test default ContainerDebugAdapter catalogs controller entries'] = function testDefaultContainerDebugAdapterCatalogsControllerEntries(assert) {\n this.application.PostController = _emberRuntime.Controller.extend();\n var controllerClasses = adapter.catalogEntriesByType('controller');\n\n assert.equal(controllerClasses.length, 1, 'found 1 class');\n assert.equal(controllerClasses[0], 'post', 'found the right class');\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_ApplicationTestCase.prototype.applicationOptions, {\n autoboot: true\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember-extension-support/tests/container_debug_adapter_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-extension-support/tests/container_debug_adapter_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-extension-support/tests/data_adapter_test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-extension-support/data_adapter', 'internal-test-helpers'], function (_emberBabel, _emberMetal, _emberRuntime, _data_adapter, _internalTestHelpers) {\n 'use strict';\n\n var adapter = void 0,\n App = void 0;\n var Model = _emberRuntime.Object.extend();\n\n var PostClass = Model.extend();\n\n var DataAdapter = _data_adapter.default.extend({\n detect: function (klass) {\n return klass !== Model && Model.detect(klass);\n },\n init: function () {\n this._super.apply(this, arguments);\n this.set('containerDebugAdapter', {\n canCatalogEntriesByType: function (type) {\n return true;\n },\n catalogEntriesByType: function (type) {\n return (0, _emberRuntime.A)(['post']);\n }\n });\n }\n });\n\n (0, _internalTestHelpers.moduleFor)('Data Adapter', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Model types added'] = function testModelTypesAdded() {\n var _this2 = this;\n\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function () {\n return (0, _emberRuntime.A)([1, 2, 3]);\n },\n columnsForType: function () {\n return [{ name: 'title', desc: 'Title' }];\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n var adapter = _this2.applicationInstance.lookup('data-adapter:main');\n\n function modelTypesAdded(types) {\n equal(types.length, 1);\n var postType = types[0];\n equal(postType.name, 'post', 'Correctly sets the name');\n equal(postType.count, 3, 'Correctly sets the record count');\n strictEqual(postType.object, PostClass, 'Correctly sets the object');\n deepEqual(postType.columns, [{ name: 'title', desc: 'Title' }], 'Correctly sets the columns');\n }\n\n adapter.watchModelTypes(modelTypesAdded);\n });\n };\n\n _class.prototype['@test getRecords gets a model name as second argument'] = function testGetRecordsGetsAModelNameAsSecondArgument() {\n var _this3 = this;\n\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function (klass, name) {\n equal(name, 'post');\n return (0, _emberRuntime.A)();\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n adapter = _this3.applicationInstance.lookup('data-adapter:main');\n adapter.watchModelTypes(function () {});\n });\n };\n\n _class.prototype['@test Model types added with custom container-debug-adapter'] = function testModelTypesAddedWithCustomContainerDebugAdapter() {\n var _this4 = this;\n\n var StubContainerDebugAdapter = _emberRuntime.Object.extend({\n canCatalogEntriesByType: function (type) {\n return true;\n },\n catalogEntriesByType: function (type) {\n return (0, _emberRuntime.A)(['post']);\n }\n });\n this.add('container-debug-adapter:main', StubContainerDebugAdapter);\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function () {\n return (0, _emberRuntime.A)([1, 2, 3]);\n },\n columnsForType: function () {\n return [{ name: 'title', desc: 'Title' }];\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n var adapter = _this4.applicationInstance.lookup('data-adapter:main');\n\n function modelTypesAdded(types) {\n equal(types.length, 1);\n var postType = types[0];\n equal(postType.name, 'post', 'Correctly sets the name');\n equal(postType.count, 3, 'Correctly sets the record count');\n strictEqual(postType.object, PostClass, 'Correctly sets the object');\n deepEqual(postType.columns, [{ name: 'title', desc: 'Title' }], 'Correctly sets the columns');\n }\n\n adapter.watchModelTypes(modelTypesAdded);\n });\n };\n\n _class.prototype['@test Model Types Updated'] = function testModelTypesUpdated() {\n var _this5 = this;\n\n var records = (0, _emberRuntime.A)([1, 2, 3]);\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function (klass, name) {\n return records;\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n adapter = _this5.applicationInstance.lookup('data-adapter:main');\n\n function modelTypesAdded(types) {\n (0, _emberMetal.run)(function () {\n records.pushObject(4);\n });\n }\n\n function modelTypesUpdated(types) {\n var postType = types[0];\n equal(postType.count, 4, 'Correctly updates the count');\n }\n\n adapter.watchModelTypes(modelTypesAdded, modelTypesUpdated);\n });\n };\n\n _class.prototype['@test Model Types Updated but Unchanged Do not Trigger Callbacks'] = function testModelTypesUpdatedButUnchangedDoNotTriggerCallbacks() {\n var _this6 = this;\n\n expect(0);\n var records = (0, _emberRuntime.A)([1, 2, 3]);\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function (klass, name) {\n return records;\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n adapter = _this6.applicationInstance.lookup('data-adapter:main');\n\n function modelTypesAdded(types) {\n (0, _emberMetal.run)(function () {\n records.arrayContentDidChange(0, 0, 0);\n });\n }\n\n function modelTypesUpdated(types) {\n ok(false, \"modelTypesUpdated should not be triggered if the array didn't change\");\n }\n\n adapter.watchModelTypes(modelTypesAdded, modelTypesUpdated);\n });\n };\n\n _class.prototype['@test Records Added'] = function testRecordsAdded() {\n var _this7 = this;\n\n var countAdded = 1;\n var post = PostClass.create();\n var recordList = (0, _emberRuntime.A)([post]);\n\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function (klass, name) {\n return recordList;\n },\n getRecordColor: function () {\n return 'blue';\n },\n getRecordColumnValues: function () {\n return { title: 'Post ' + countAdded };\n },\n getRecordKeywords: function () {\n return ['Post ' + countAdded];\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n adapter = _this7.applicationInstance.lookup('data-adapter:main');\n\n function recordsAdded(records) {\n var record = records[0];\n equal(record.color, 'blue', 'Sets the color correctly');\n deepEqual(record.columnValues, { title: 'Post ' + countAdded }, 'Sets the column values correctly');\n deepEqual(record.searchKeywords, ['Post ' + countAdded], 'Sets search keywords correctly');\n strictEqual(record.object, post, 'Sets the object to the record instance');\n }\n\n adapter.watchRecords('post', recordsAdded);\n countAdded++;\n post = PostClass.create();\n recordList.pushObject(post);\n });\n };\n\n _class.prototype['@test Observes and releases a record correctly'] = function testObservesAndReleasesARecordCorrectly() {\n var _this8 = this;\n\n var updatesCalled = 0;\n var post = PostClass.create({ title: 'Post' });\n var recordList = (0, _emberRuntime.A)([post]);\n\n this.add('data-adapter:main', DataAdapter.extend({\n getRecords: function () {\n return recordList;\n },\n observeRecord: function (record, recordUpdated) {\n var self = this;\n function callback() {\n recordUpdated(self.wrapRecord(record));\n }\n (0, _emberMetal.addObserver)(record, 'title', callback);\n return function () {\n (0, _emberMetal.removeObserver)(record, 'title', callback);\n };\n },\n getRecordColumnValues: function (record) {\n return { title: (0, _emberMetal.get)(record, 'title') };\n }\n }));\n this.add('model:post', PostClass);\n\n return this.visit('/').then(function () {\n adapter = _this8.applicationInstance.lookup('data-adapter:main');\n\n function recordsAdded() {\n (0, _emberMetal.set)(post, 'title', 'Post Modified');\n }\n\n function recordsUpdated(records) {\n updatesCalled++;\n equal(records[0].columnValues.title, 'Post Modified');\n }\n\n var release = adapter.watchRecords('post', recordsAdded, recordsUpdated);\n release();\n (0, _emberMetal.set)(post, 'title', 'New Title');\n equal(updatesCalled, 1, 'Release function removes observers');\n });\n };\n\n _class.prototype['@test _nameToClass does not error when not found'] = function test_nameToClassDoesNotErrorWhenNotFound() {\n var _this9 = this;\n\n this.add('data-adapter:main', DataAdapter);\n\n return this.visit('/').then(function () {\n adapter = _this9.applicationInstance.lookup('data-adapter:main');\n\n var klass = adapter._nameToClass('foo');\n\n equal(klass, undefined, 'returns undefined');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember-extension-support/tests/data_adapter_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-extension-support/tests/data_adapter_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/application/actions-test', ['ember-babel', 'ember-runtime', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _emberRuntime, _testCase, _helpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Application test: actions', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class, _ApplicationTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.apply(this, arguments));\n }\n\n _class.prototype['@test actions in top level template application template target application controller'] = function testActionsInTopLevelTemplateApplicationTemplateTargetApplicationController(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n actions: {\n handleIt: function (arg) {\n assert.ok(true, 'controller received action properly');\n }\n }\n }));\n\n this.addTemplate('application', '');\n\n return this.visit('/').then(function () {\n _this2.runTask(function () {\n return _this2.$('#handle-it').click();\n });\n });\n };\n\n _class.prototype['@test actions in nested outlet template target their controller'] = function testActionsInNestedOutletTemplateTargetTheirController(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n actions: {\n handleIt: function (arg) {\n assert.ok(false, 'application controller should not have received action!');\n }\n }\n }));\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n actions: {\n handleIt: function (arg) {\n assert.ok(true, 'controller received action properly');\n }\n }\n }));\n\n this.addTemplate('index', '');\n\n return this.visit('/').then(function () {\n _this3.runTask(function () {\n return _this3.$('#handle-it').click();\n });\n });\n };\n\n return _class;\n }(_testCase.ApplicationTest));\n\n (0, _testCase.moduleFor)('Rendering test: non-interactive actions', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class2.prototype.getBootOptions = function getBootOptions() {\n return { isInteractive: false };\n };\n\n _class2.prototype['@test doesn\\'t attatch actions'] = function (assert) {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n actions: {\n fire: function () {\n assert.ok(false);\n }\n }\n }),\n template: ''\n });\n\n this.render('{{foo-bar tagName=\"\"}}');\n\n this.assertHTML('');\n\n this.$('button').click();\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/application/actions-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/application/actions-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/application/engine-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers', 'ember-runtime', 'ember-glimmer', 'ember-application', 'ember-routing', 'ember-metal'], function (_emberBabel, _testCase, _abstractTestCase, _helpers, _emberRuntime, _emberGlimmer, _emberApplication, _emberRouting, _emberMetal) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

{{contextType}}

\\n {{ambiguous-curlies}}\\n\\n {{outlet}}\\n '], ['\\n

{{contextType}}

\\n {{ambiguous-curlies}}\\n\\n {{outlet}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

Component!

\\n '], ['\\n

Component!

\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{ambiguous-curlies}}\\n '], ['\\n {{ambiguous-curlies}}\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

Application

\\n {{my-component ambiguous-curlies=\"Local Data!\"}}\\n {{outlet}}\\n '], ['\\n

Application

\\n {{my-component ambiguous-curlies=\"Local Data!\"}}\\n {{outlet}}\\n ']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

Engine

\\n {{my-component}}\\n {{outlet}}\\n '], ['\\n

Engine

\\n {{my-component}}\\n {{outlet}}\\n ']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

Component!

\\n '], ['\\n

Component!

\\n ']);\n\n (0, _testCase.moduleFor)('Application test: engine rendering', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class, _ApplicationTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.apply(this, arguments));\n }\n\n _class.prototype.setupAppAndRoutableEngine = function setupAppAndRoutableEngine() {\n var hooks = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n var self = this;\n\n this.addTemplate('application', 'Application{{outlet}}');\n\n this.router.map(function () {\n this.mount('blog');\n });\n this.add('route-map:blog', function () {\n this.route('post', function () {\n this.route('comments');\n this.route('likes');\n });\n this.route('category', { path: 'category/:id' });\n this.route('author', { path: 'author/:id' });\n });\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n hooks.push('application - application');\n }\n }));\n\n this.add('engine:blog', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('controller:application', _emberRuntime.Controller.extend({\n queryParams: ['lang'],\n lang: ''\n }));\n this.register('controller:category', _emberRuntime.Controller.extend({\n queryParams: ['type']\n }));\n this.register('controller:authorKtrl', _emberRuntime.Controller.extend({\n queryParams: ['official']\n }));\n this.register('template:application', (0, _helpers.compile)('Engine{{lang}}{{outlet}}'));\n this.register('route:application', _emberRouting.Route.extend({\n model: function () {\n hooks.push('engine - application');\n }\n }));\n this.register('route:author', _emberRouting.Route.extend({\n controllerName: 'authorKtrl'\n }));\n\n if (self._additionalEngineRegistrations) {\n self._additionalEngineRegistrations.call(this);\n }\n }\n }));\n };\n\n _class.prototype.setupAppAndRoutelessEngine = function setupAppAndRoutelessEngine(hooks) {\n this.setupRoutelessEngine(hooks);\n\n this.add('engine:chat-engine', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('Engine'));\n this.register('controller:application', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n hooks.push('engine - application');\n }\n }));\n }\n }));\n };\n\n _class.prototype.setupAppAndRoutableEngineWithPartial = function setupAppAndRoutableEngineWithPartial(hooks) {\n this.addTemplate('application', 'Application{{outlet}}');\n\n this.router.map(function () {\n this.mount('blog');\n });\n this.add('route-map:blog', function () {});\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n hooks.push('application - application');\n }\n }));\n\n this.add('engine:blog', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:foo', (0, _helpers.compile)('foo partial'));\n this.register('template:application', (0, _helpers.compile)('Engine{{outlet}} {{partial \"foo\"}}'));\n this.register('route:application', _emberRouting.Route.extend({\n model: function () {\n hooks.push('engine - application');\n }\n }));\n }\n }));\n };\n\n _class.prototype.setupRoutelessEngine = function setupRoutelessEngine(hooks) {\n this.addTemplate('application', 'Application{{mount \"chat-engine\"}}');\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n hooks.push('application - application');\n }\n }));\n };\n\n _class.prototype.setupAppAndRoutlessEngineWithPartial = function setupAppAndRoutlessEngineWithPartial(hooks) {\n this.setupRoutelessEngine(hooks);\n\n this.add('engine:chat-engine', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:foo', (0, _helpers.compile)('foo partial'));\n this.register('template:application', (0, _helpers.compile)('Engine {{partial \"foo\"}}'));\n this.register('controller:application', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n hooks.push('engine - application');\n }\n }));\n }\n }));\n };\n\n _class.prototype.additionalEngineRegistrations = function additionalEngineRegistrations(callback) {\n this._additionalEngineRegistrations = callback;\n };\n\n _class.prototype.setupEngineWithAttrs = function setupEngineWithAttrs(hooks) {\n this.addTemplate('application', 'Application{{mount \"chat-engine\"}}');\n\n this.add('engine:chat-engine', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:components/foo-bar', (0, _helpers.compile)('{{partial \"troll\"}}'));\n this.register('template:troll', (0, _helpers.compile)('{{attrs.wat}}'));\n this.register('controller:application', _emberRuntime.Controller.extend({\n contextType: 'Engine'\n }));\n this.register('template:application', (0, _helpers.compile)('Engine {{foo-bar wat=contextType}}'));\n }\n }));\n };\n\n _class.prototype.stringsEndWith = function stringsEndWith(str, suffix) {\n return str.indexOf(suffix, str.length - suffix.length) !== -1;\n };\n\n _class.prototype['@test attrs in an engine'] = function testAttrsInAnEngine() {\n var _this2 = this;\n\n this.setupEngineWithAttrs([]);\n\n return this.visit('/').then(function () {\n _this2.assertText('ApplicationEngine Engine');\n });\n };\n\n _class.prototype['@test sharing a template between engine and application has separate refinements'] = function testSharingATemplateBetweenEngineAndApplicationHasSeparateRefinements() {\n var _this3 = this;\n\n this.assert.expect(1);\n\n var sharedTemplate = (0, _helpers.compile)((0, _abstractTestCase.strip)(_templateObject));\n\n this.add('template:application', sharedTemplate);\n this.add('controller:application', _emberRuntime.Controller.extend({\n contextType: 'Application',\n 'ambiguous-curlies': 'Controller Data!'\n }));\n\n this.router.map(function () {\n this.mount('blog');\n });\n this.add('route-map:blog', function () {});\n\n this.add('engine:blog', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n\n this.register('controller:application', _emberRuntime.Controller.extend({\n contextType: 'Engine'\n }));\n this.register('template:application', sharedTemplate);\n this.register('template:components/ambiguous-curlies', (0, _helpers.compile)((0, _abstractTestCase.strip)(_templateObject2)));\n }\n }));\n\n return this.visit('/blog').then(function () {\n _this3.assertText('ApplicationController Data!EngineComponent!');\n });\n };\n\n _class.prototype['@test sharing a layout between engine and application has separate refinements'] = function testSharingALayoutBetweenEngineAndApplicationHasSeparateRefinements() {\n var _this4 = this;\n\n this.assert.expect(1);\n\n var sharedLayout = (0, _helpers.compile)((0, _abstractTestCase.strip)(_templateObject3));\n\n var sharedComponent = _emberGlimmer.Component.extend({\n layout: sharedLayout\n });\n\n this.addTemplate('application', (0, _abstractTestCase.strip)(_templateObject4));\n\n this.add('component:my-component', sharedComponent);\n\n this.router.map(function () {\n this.mount('blog');\n });\n this.add('route-map:blog', function () {});\n\n this.add('engine:blog', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)((0, _abstractTestCase.strip)(_templateObject5)));\n this.register('component:my-component', sharedComponent);\n this.register('template:components/ambiguous-curlies', (0, _helpers.compile)((0, _abstractTestCase.strip)(_templateObject6)));\n }\n }));\n\n return this.visit('/blog').then(function () {\n _this4.assertText('ApplicationLocal Data!EngineComponent!');\n });\n };\n\n _class.prototype['@test visit() with `shouldRender: true` returns a promise that resolves when application and engine templates have rendered'] = function testVisitWithShouldRenderTrueReturnsAPromiseThatResolvesWhenApplicationAndEngineTemplatesHaveRendered(assert) {\n var _this5 = this;\n\n assert.expect(2);\n\n var hooks = [];\n\n this.setupAppAndRoutableEngine(hooks);\n\n return this.visit('/blog', { shouldRender: true }).then(function () {\n _this5.assertText('ApplicationEngine');\n\n _this5.assert.deepEqual(hooks, ['application - application', 'engine - application'], 'the expected model hooks were fired');\n });\n };\n\n _class.prototype['@test visit() with `shouldRender: false` returns a promise that resolves without rendering'] = function testVisitWithShouldRenderFalseReturnsAPromiseThatResolvesWithoutRendering(assert) {\n var _this6 = this;\n\n assert.expect(2);\n\n var hooks = [];\n\n this.setupAppAndRoutableEngine(hooks);\n\n return this.visit('/blog', { shouldRender: false }).then(function () {\n _this6.assertText('');\n\n _this6.assert.deepEqual(hooks, ['application - application', 'engine - application'], 'the expected model hooks were fired');\n });\n };\n\n _class.prototype['@test visit() with `shouldRender: true` returns a promise that resolves when application and routeless engine templates have rendered'] = function testVisitWithShouldRenderTrueReturnsAPromiseThatResolvesWhenApplicationAndRoutelessEngineTemplatesHaveRendered(assert) {\n var _this7 = this;\n\n assert.expect(2);\n\n var hooks = [];\n\n this.setupAppAndRoutelessEngine(hooks);\n\n return this.visit('/', { shouldRender: true }).then(function () {\n _this7.assertText('ApplicationEngine');\n\n _this7.assert.deepEqual(hooks, ['application - application', 'engine - application'], 'the expected hooks were fired');\n });\n };\n\n _class.prototype['@test visit() with partials in routable engine'] = function testVisitWithPartialsInRoutableEngine(assert) {\n var _this8 = this;\n\n assert.expect(2);\n\n var hooks = [];\n\n this.setupAppAndRoutableEngineWithPartial(hooks);\n\n return this.visit('/blog', { shouldRender: true }).then(function () {\n _this8.assertText('ApplicationEngine foo partial');\n\n _this8.assert.deepEqual(hooks, ['application - application', 'engine - application'], 'the expected hooks were fired');\n });\n };\n\n _class.prototype['@test visit() with partials in non-routable engine'] = function testVisitWithPartialsInNonRoutableEngine(assert) {\n var _this9 = this;\n\n assert.expect(2);\n\n var hooks = [];\n\n this.setupAppAndRoutlessEngineWithPartial(hooks);\n\n return this.visit('/', { shouldRender: true }).then(function () {\n _this9.assertText('ApplicationEngine foo partial');\n\n _this9.assert.deepEqual(hooks, ['application - application', 'engine - application'], 'the expected hooks were fired');\n });\n };\n\n _class.prototype['@test deactivate should be called on Engine Routes before destruction'] = function testDeactivateShouldBeCalledOnEngineRoutesBeforeDestruction(assert) {\n var _this10 = this;\n\n assert.expect(3);\n\n this.setupAppAndRoutableEngine();\n\n this.add('engine:blog', _emberApplication.Engine.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('Engine{{outlet}}'));\n this.register('route:application', _emberRouting.Route.extend({\n deactivate: function () {\n assert.notOk(this.isDestroyed, 'Route is not destroyed');\n assert.notOk(this.isDestroying, 'Route is not being destroyed');\n }\n }));\n }\n }));\n\n return this.visit('/blog').then(function () {\n _this10.assertText('ApplicationEngine');\n });\n };\n\n _class.prototype['@test engine should lookup and use correct controller'] = function testEngineShouldLookupAndUseCorrectController(assert) {\n var _this11 = this;\n\n this.setupAppAndRoutableEngine();\n\n return this.visit('/blog?lang=English').then(function () {\n _this11.assertText('ApplicationEngineEnglish');\n });\n };\n\n _class.prototype['@test error substate route works for the application route of an Engine'] = function testErrorSubstateRouteWorksForTheApplicationRouteOfAnEngine(assert) {\n var _this12 = this;\n\n assert.expect(2);\n\n var errorEntered = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:application_error', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(errorEntered.resolve);\n }\n }));\n this.register('template:application_error', (0, _helpers.compile)('Error! {{model.message}}'));\n this.register('route:post', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject(new Error('Oh, noes!'));\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this12.assertText('Application');\n return _this12.transitionTo('blog.post');\n }).then(function () {\n return errorEntered.promise;\n }).then(function () {\n _this12.assertText('ApplicationError! Oh, noes!');\n });\n };\n\n _class.prototype['@test error route works for the application route of an Engine'] = function testErrorRouteWorksForTheApplicationRouteOfAnEngine(assert) {\n var _this13 = this;\n\n assert.expect(2);\n\n var errorEntered = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:error', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(errorEntered.resolve);\n }\n }));\n this.register('template:error', (0, _helpers.compile)('Error! {{model.message}}'));\n this.register('route:post', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject(new Error('Oh, noes!'));\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this13.assertText('Application');\n return _this13.transitionTo('blog.post');\n }).then(function () {\n return errorEntered.promise;\n }).then(function () {\n _this13.assertText('ApplicationEngineError! Oh, noes!');\n });\n };\n\n _class.prototype['@test error substate route works for a child route of an Engine'] = function testErrorSubstateRouteWorksForAChildRouteOfAnEngine(assert) {\n var _this14 = this;\n\n assert.expect(2);\n\n var errorEntered = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:post_error', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(errorEntered.resolve);\n }\n }));\n this.register('template:post_error', (0, _helpers.compile)('Error! {{model.message}}'));\n this.register('route:post', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject(new Error('Oh, noes!'));\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this14.assertText('Application');\n return _this14.transitionTo('blog.post');\n }).then(function () {\n return errorEntered.promise;\n }).then(function () {\n _this14.assertText('ApplicationEngineError! Oh, noes!');\n });\n };\n\n _class.prototype['@test error route works for a child route of an Engine'] = function testErrorRouteWorksForAChildRouteOfAnEngine(assert) {\n var _this15 = this;\n\n assert.expect(2);\n\n var errorEntered = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:post.error', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(errorEntered.resolve);\n }\n }));\n this.register('template:post.error', (0, _helpers.compile)('Error! {{model.message}}'));\n this.register('route:post.comments', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject(new Error('Oh, noes!'));\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this15.assertText('Application');\n return _this15.transitionTo('blog.post.comments');\n }).then(function () {\n return errorEntered.promise;\n }).then(function () {\n _this15.assertText('ApplicationEngineError! Oh, noes!');\n });\n };\n\n _class.prototype['@test loading substate route works for the application route of an Engine'] = function testLoadingSubstateRouteWorksForTheApplicationRouteOfAnEngine(assert) {\n var _this16 = this;\n\n assert.expect(3);\n var done = assert.async();\n\n var loadingEntered = _emberRuntime.RSVP.defer();\n var resolveLoading = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:application_loading', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(loadingEntered.resolve);\n }\n }));\n this.register('template:application_loading', (0, _helpers.compile)('Loading'));\n this.register('template:post', (0, _helpers.compile)('Post'));\n this.register('route:post', _emberRouting.Route.extend({\n model: function () {\n return resolveLoading.promise;\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this16.assertText('Application');\n var transition = _this16.transitionTo('blog.post');\n\n loadingEntered.promise.then(function () {\n _this16.assertText('ApplicationLoading');\n resolveLoading.resolve();\n\n _this16.runTaskNext(function () {\n _this16.assertText('ApplicationEnginePost');\n done();\n });\n });\n\n return transition;\n });\n };\n\n _class.prototype['@test loading route works for the application route of an Engine'] = function testLoadingRouteWorksForTheApplicationRouteOfAnEngine(assert) {\n var _this17 = this;\n\n assert.expect(3);\n var done = assert.async();\n\n var loadingEntered = _emberRuntime.RSVP.defer();\n var resolveLoading = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('route:loading', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(loadingEntered.resolve);\n }\n }));\n this.register('template:loading', (0, _helpers.compile)('Loading'));\n this.register('template:post', (0, _helpers.compile)('Post'));\n this.register('route:post', _emberRouting.Route.extend({\n model: function () {\n return resolveLoading.promise;\n }\n }));\n });\n\n return this.visit('/').then(function () {\n _this17.assertText('Application');\n var transition = _this17.transitionTo('blog.post');\n\n loadingEntered.promise.then(function () {\n _this17.assertText('ApplicationEngineLoading');\n resolveLoading.resolve();\n\n _this17.runTaskNext(function () {\n _this17.assertText('ApplicationEnginePost');\n done();\n });\n });\n\n return transition;\n });\n };\n\n _class.prototype['@test loading substate route works for a child route of an Engine'] = function testLoadingSubstateRouteWorksForAChildRouteOfAnEngine(assert) {\n var _this18 = this;\n\n assert.expect(3);\n\n var resolveLoading = void 0;\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('template:post', (0, _helpers.compile)('{{outlet}}'));\n this.register('template:post.comments', (0, _helpers.compile)('Comments'));\n this.register('template:post.likes_loading', (0, _helpers.compile)('Loading'));\n this.register('template:post.likes', (0, _helpers.compile)('Likes'));\n this.register('route:post.likes', _emberRouting.Route.extend({\n model: function () {\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n resolveLoading = resolve;\n });\n }\n }));\n });\n\n return this.visit('/blog/post/comments').then(function () {\n _this18.assertText('ApplicationEngineComments');\n var transition = _this18.transitionTo('blog.post.likes');\n\n _this18.runTaskNext(function () {\n _this18.assertText('ApplicationEngineLoading');\n resolveLoading();\n });\n\n return transition.then(function () {\n _this18.runTaskNext(function () {\n return _this18.assertText('ApplicationEngineLikes');\n });\n });\n });\n };\n\n _class.prototype['@test loading route works for a child route of an Engine'] = function testLoadingRouteWorksForAChildRouteOfAnEngine(assert) {\n var _this19 = this;\n\n assert.expect(3);\n var done = assert.async();\n\n var loadingEntered = _emberRuntime.RSVP.defer();\n var resolveLoading = _emberRuntime.RSVP.defer();\n\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('template:post', (0, _helpers.compile)('{{outlet}}'));\n this.register('template:post.comments', (0, _helpers.compile)('Comments'));\n this.register('route:post.loading', _emberRouting.Route.extend({\n activate: function () {\n _emberMetal.run.next(loadingEntered.resolve);\n }\n }));\n this.register('template:post.loading', (0, _helpers.compile)('Loading'));\n this.register('template:post.likes', (0, _helpers.compile)('Likes'));\n this.register('route:post.likes', _emberRouting.Route.extend({\n model: function () {\n return resolveLoading.promise;\n }\n }));\n });\n\n return this.visit('/blog/post/comments').then(function () {\n _this19.assertText('ApplicationEngineComments');\n var transition = _this19.transitionTo('blog.post.likes');\n\n loadingEntered.promise.then(function () {\n _this19.assertText('ApplicationEngineLoading');\n resolveLoading.resolve();\n\n _this19.runTaskNext(function () {\n _this19.assertText('ApplicationEngineLikes');\n done();\n });\n });\n\n return transition;\n });\n };\n\n _class.prototype['@test query params don\\'t have stickiness by default between model'] = function testQueryParamsDonTHaveStickinessByDefaultBetweenModel(assert) {\n var _this20 = this;\n\n assert.expect(1);\n var tmpl = '{{#link-to \"blog.category\" 1337}}Category 1337{{/link-to}}';\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('template:category', (0, _helpers.compile)(tmpl));\n });\n\n return this.visit('/blog/category/1?type=news').then(function () {\n var suffix = '/blog/category/1337';\n var href = _this20.element.querySelector('a').href;\n\n // check if link ends with the suffix\n assert.ok(_this20.stringsEndWith(href, suffix));\n });\n };\n\n _class.prototype['@test query params in customized controllerName have stickiness by default between model'] = function testQueryParamsInCustomizedControllerNameHaveStickinessByDefaultBetweenModel(assert) {\n var _this21 = this;\n\n assert.expect(2);\n var tmpl = '{{#link-to \"blog.author\" 1337 class=\"author-1337\"}}Author 1337{{/link-to}}{{#link-to \"blog.author\" 1 class=\"author-1\"}}Author 1{{/link-to}}';\n this.setupAppAndRoutableEngine();\n this.additionalEngineRegistrations(function () {\n this.register('template:author', (0, _helpers.compile)(tmpl));\n });\n\n return this.visit('/blog/author/1?official=true').then(function () {\n var suffix1 = '/blog/author/1?official=true';\n var href1 = _this21.element.querySelector('.author-1').href;\n var suffix1337 = '/blog/author/1337';\n var href1337 = _this21.element.querySelector('.author-1337').href;\n\n // check if link ends with the suffix\n assert.ok(_this21.stringsEndWith(href1, suffix1));\n assert.ok(_this21.stringsEndWith(href1337, suffix1337));\n });\n };\n\n _class.prototype['@test visit() routable engine which errors on init'] = function testVisitRoutableEngineWhichErrorsOnInit(assert) {\n var _this22 = this;\n\n assert.expect(1);\n\n var hooks = [];\n\n this.additionalEngineRegistrations(function () {\n this.register('route:application', _emberRouting.Route.extend({\n init: function () {\n throw new Error('Whoops! Something went wrong...');\n }\n }));\n });\n\n this.setupAppAndRoutableEngine(hooks);\n\n return this.visit('/', { shouldRender: true }).then(function () {\n return _this22.visit('/blog');\n }).catch(function (error) {\n assert.equal(error.message, 'Whoops! Something went wrong...');\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'routerOptions',\n get: function () {\n var assert = this.assert;\n\n return {\n location: 'none',\n\n _getHandlerFunction: function () {\n var _this23 = this;\n\n var syncHandler = this._super.apply(this, arguments);\n this._enginePromises = Object.create(null);\n this._resolvedEngines = Object.create(null);\n\n return function (name) {\n var engineInfo = _this23._engineInfoByRoute[name];\n if (!engineInfo) {\n return syncHandler(name);\n }\n\n var engineName = engineInfo.name;\n if (_this23._resolvedEngines[engineName]) {\n return syncHandler(name);\n }\n\n var enginePromise = _this23._enginePromises[engineName];\n\n if (!enginePromise) {\n enginePromise = new _emberRuntime.RSVP.Promise(function (resolve) {\n setTimeout(function () {\n _this23._resolvedEngines[engineName] = true;\n\n resolve();\n }, 1);\n });\n _this23._enginePromises[engineName] = enginePromise;\n }\n\n return enginePromise.then(function () {\n return syncHandler(name);\n });\n };\n }\n };\n }\n }]);\n return _class;\n }(_testCase.ApplicationTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/application/engine-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/application/engine-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/application/rendering-test', ['ember-babel', 'ember-runtime', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-routing', 'ember-glimmer', 'ember/features'], function (_emberBabel, _emberRuntime, _testCase, _abstractTestCase, _emberRouting, _emberGlimmer, _features) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n {{#each model as |item|}}\\n
  • {{item}}
  • \\n {{/each}}\\n
\\n '], ['\\n
    \\n {{#each model as |item|}}\\n
  • {{item}}
  • \\n {{/each}}\\n
\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • red
  • \\n
  • yellow
  • \\n
  • blue
  • \\n
\\n '], ['\\n
    \\n
  • red
  • \\n
  • yellow
  • \\n
  • blue
  • \\n
\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n \\n
{{outlet}}
\\n '], ['\\n \\n
{{outlet}}
\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n Ember\\n '], ['\\n Ember\\n ']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n \\n
\\n
    \\n
  • red
  • \\n
  • yellow
  • \\n
  • blue
  • \\n
\\n
\\n '], ['\\n \\n
\\n
    \\n
  • red
  • \\n
  • yellow
  • \\n
  • blue
  • \\n
\\n
\\n ']);\n\n (0, _testCase.moduleFor)('Application test: rendering', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class, _ApplicationTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can render the application template'] = function testItCanRenderTheApplicationTemplate(assert) {\n var _this2 = this;\n\n this.addTemplate('application', 'Hello world!');\n\n return this.visit('/').then(function () {\n _this2.assertText('Hello world!');\n });\n };\n\n _class.prototype['@test it can access the model provided by the route'] = function testItCanAccessTheModelProvidedByTheRoute(assert) {\n var _this3 = this;\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n return ['red', 'yellow', 'blue'];\n }\n }));\n\n this.addTemplate('application', (0, _abstractTestCase.strip)(_templateObject));\n\n return this.visit('/').then(function () {\n _this3.assertComponentElement(_this3.firstChild, {\n content: (0, _abstractTestCase.strip)(_templateObject2)\n });\n });\n };\n\n _class.prototype['@test it can render a nested route'] = function testItCanRenderANestedRoute(assert) {\n var _this4 = this;\n\n this.router.map(function () {\n this.route('lists', function () {\n this.route('colors', function () {\n this.route('favorite');\n });\n });\n });\n\n // The \"favorite\" route will inherit the model\n this.add('route:lists.colors', _emberRouting.Route.extend({\n model: function () {\n return ['red', 'yellow', 'blue'];\n }\n }));\n\n this.addTemplate('lists.colors.favorite', (0, _abstractTestCase.strip)(_templateObject));\n\n return this.visit('/lists/colors/favorite').then(function () {\n _this4.assertComponentElement(_this4.firstChild, {\n content: (0, _abstractTestCase.strip)(_templateObject2)\n });\n });\n };\n\n _class.prototype['@test it can render into named outlets'] = function testItCanRenderIntoNamedOutlets(assert) {\n var _this5 = this;\n\n this.router.map(function () {\n this.route('colors');\n });\n\n this.addTemplate('application', (0, _abstractTestCase.strip)(_templateObject3));\n\n this.addTemplate('nav', (0, _abstractTestCase.strip)(_templateObject4));\n\n this.add('route:application', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('nav', {\n into: 'application',\n outlet: 'nav'\n });\n }\n }));\n\n this.add('route:colors', _emberRouting.Route.extend({\n model: function () {\n return ['red', 'yellow', 'blue'];\n }\n }));\n\n this.addTemplate('colors', (0, _abstractTestCase.strip)(_templateObject));\n\n return this.visit('/colors').then(function () {\n _this5.assertComponentElement(_this5.firstChild, {\n content: (0, _abstractTestCase.strip)(_templateObject5)\n });\n });\n };\n\n _class.prototype['@test it can render into named outlets'] = function testItCanRenderIntoNamedOutlets(assert) {\n var _this6 = this;\n\n this.router.map(function () {\n this.route('colors');\n });\n\n this.addTemplate('application', (0, _abstractTestCase.strip)(_templateObject3));\n\n this.addTemplate('nav', (0, _abstractTestCase.strip)(_templateObject4));\n\n this.add('route:application', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('nav', {\n into: 'application',\n outlet: 'nav'\n });\n }\n }));\n\n this.add('route:colors', _emberRouting.Route.extend({\n model: function () {\n return ['red', 'yellow', 'blue'];\n }\n }));\n\n this.addTemplate('colors', (0, _abstractTestCase.strip)(_templateObject));\n\n return this.visit('/colors').then(function () {\n _this6.assertComponentElement(_this6.firstChild, {\n content: (0, _abstractTestCase.strip)(_templateObject5)\n });\n });\n };\n\n _class.prototype['@test it should update the outlets when switching between routes'] = function testItShouldUpdateTheOutletsWhenSwitchingBetweenRoutes(assert) {\n var _this7 = this;\n\n this.router.map(function () {\n this.route('a');\n this.route('b', function () {\n this.route('c');\n this.route('d');\n });\n });\n\n this.addTemplate('a', 'A{{outlet}}');\n this.addTemplate('b', 'B{{outlet}}');\n this.addTemplate('b.c', 'C');\n this.addTemplate('b.d', 'D');\n\n return this.visit('/b/c').then(function () {\n // this.assertComponentElement(this.firstChild, { content: 'BC' });\n _this7.assertText('BC');\n return _this7.visit('/a');\n }).then(function () {\n // this.assertComponentElement(this.firstChild, { content: 'A' });\n _this7.assertText('A');\n return _this7.visit('/b/d');\n }).then(function () {\n _this7.assertText('BD');\n // this.assertComponentElement(this.firstChild, { content: 'BD' });\n });\n };\n\n _class.prototype['@test it should produce a stable DOM when the model changes'] = function testItShouldProduceAStableDOMWhenTheModelChanges(assert) {\n var _this8 = this;\n\n this.router.map(function () {\n this.route('color', { path: '/colors/:color' });\n });\n\n this.add('route:color', _emberRouting.Route.extend({\n model: function (params) {\n return params.color;\n }\n }));\n\n this.addTemplate('color', 'color: {{model}}');\n\n return this.visit('/colors/red').then(function () {\n _this8.assertComponentElement(_this8.firstChild, { content: 'color: red' });\n _this8.takeSnapshot();\n return _this8.visit('/colors/green');\n }).then(function () {\n _this8.assertComponentElement(_this8.firstChild, { content: 'color: green' });\n _this8.assertInvariants();\n });\n };\n\n _class.prototype['@test it should have the right controller in scope for the route template'] = function testItShouldHaveTheRightControllerInScopeForTheRouteTemplate() {\n var _this9 = this;\n\n this.router.map(function () {\n this.route('a');\n this.route('b');\n });\n\n this.add('controller:a', _emberRuntime.Controller.extend({\n value: 'a'\n }));\n\n this.add('controller:b', _emberRuntime.Controller.extend({\n value: 'b'\n }));\n\n this.addTemplate('a', '{{value}}');\n this.addTemplate('b', '{{value}}');\n\n return this.visit('/a').then(function () {\n _this9.assertText('a');\n return _this9.visit('/b');\n }).then(function () {\n return _this9.assertText('b');\n });\n };\n\n _class.prototype['@test it should update correctly when the controller changes'] = function testItShouldUpdateCorrectlyWhenTheControllerChanges(assert) {\n var _this10 = this;\n\n this.router.map(function () {\n this.route('color', { path: '/colors/:color' });\n });\n\n this.add('route:color', _emberRouting.Route.extend({\n model: function (params) {\n return { color: params.color };\n },\n renderTemplate: function (controller, model) {\n this.render({ controller: model.color, model: model });\n }\n }));\n\n this.add('controller:red', _emberRuntime.Controller.extend({\n color: 'red'\n }));\n\n this.add('controller:green', _emberRuntime.Controller.extend({\n color: 'green'\n }));\n\n this.addTemplate('color', 'model color: {{model.color}}, controller color: {{color}}');\n\n return this.visit('/colors/red').then(function () {\n _this10.assertComponentElement(_this10.firstChild, { content: 'model color: red, controller color: red' });\n _this10.takeSnapshot();\n return _this10.visit('/colors/green');\n }).then(function () {\n _this10.assertComponentElement(_this10.firstChild, { content: 'model color: green, controller color: green' });\n _this10.assertInvariants();\n });\n };\n\n _class.prototype['@test it should produce a stable DOM when two routes render the same template'] = function testItShouldProduceAStableDOMWhenTwoRoutesRenderTheSameTemplate(assert) {\n var _this11 = this;\n\n this.router.map(function () {\n this.route('a');\n this.route('b');\n });\n\n this.add('route:a', _emberRouting.Route.extend({\n model: function () {\n return 'A';\n },\n renderTemplate: function (controller, model) {\n this.render('common', { controller: 'common', model: model });\n }\n }));\n\n this.add('route:b', _emberRouting.Route.extend({\n model: function () {\n return 'B';\n },\n renderTemplate: function (controller, model) {\n this.render('common', { controller: 'common', model: model });\n }\n }));\n\n this.add('controller:common', _emberRuntime.Controller.extend({\n prefix: 'common'\n }));\n\n this.addTemplate('common', '{{prefix}} {{model}}');\n\n return this.visit('/a').then(function () {\n _this11.assertComponentElement(_this11.firstChild, { content: 'common A' });\n _this11.takeSnapshot();\n return _this11.visit('/b');\n }).then(function () {\n _this11.assertComponentElement(_this11.firstChild, { content: 'common B' });\n _this11.assertInvariants();\n });\n };\n\n _class.prototype['@test a child outlet is always a fragment'] = function testAChildOutletIsAlwaysAFragment() {\n var _this12 = this;\n\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('index', '{{#if true}}1{{/if}}
2
');\n return this.visit('/').then(function () {\n _this12.assertComponentElement(_this12.firstChild, { content: '1
2
' });\n });\n };\n\n _class.prototype['@test it allows a transition during route activate'] = function testItAllowsATransitionDuringRouteActivate(assert) {\n var _this13 = this;\n\n this.router.map(function () {\n this.route('a');\n });\n\n this.add('route:index', _emberRouting.Route.extend({\n activate: function () {\n this.transitionTo('a');\n }\n }));\n\n this.addTemplate('a', 'Hello from A!');\n\n return this.visit('/').then(function () {\n _this13.assertComponentElement(_this13.firstChild, {\n content: 'Hello from A!'\n });\n });\n };\n\n _class.prototype['@test it emits a useful backtracking re-render assertion message'] = function testItEmitsAUsefulBacktrackingReRenderAssertionMessage(assert) {\n var _this14 = this;\n\n this.router.map(function () {\n this.route('routeWithError');\n });\n\n this.add('route:routeWithError', _emberRouting.Route.extend({\n model: function () {\n return { name: 'Alex' };\n }\n }));\n\n this.addTemplate('routeWithError', 'Hi {{model.name}} {{x-foo person=model}}');\n\n this.addComponent('x-foo', {\n ComponentClass: _emberGlimmer.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('person.name', 'Ben');\n }\n }),\n template: 'Hi {{person.name}} from component'\n });\n\n var expectedBacktrackingMessage = /modified \"model\\.name\" twice on \\[object Object\\] in a single render\\. It was rendered in \"template:routeWithError\" and modified in \"component:x-foo\"/;\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n return this.visit('/routeWithError');\n } else {\n return this.visit('/').then(function () {\n expectAssertion(function () {\n _this14.visit('/routeWithError');\n }, expectedBacktrackingMessage);\n });\n }\n };\n\n return _class;\n }(_testCase.ApplicationTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/application/rendering-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/application/rendering-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/binding_integration_test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Binding integration tests', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test should accept bindings as a string or an Ember.binding'] = function testShouldAcceptBindingsAsAStringOrAnEmberBinding() {\n var _this2 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n twoWayTestBinding: _emberMetal.Binding.from('direction'),\n stringTestBinding: 'direction',\n twoWayObjectTestBinding: _emberMetal.Binding.from('displacement.distance'),\n stringObjectTestBinding: 'displacement.distance'\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: 'two way: {{twoWayTest}}, string: {{stringTest}}, object: {{twoWayObjectTest}}, string object: {{stringObjectTest}}'\n });\n\n expectDeprecation(function () {\n _this2.render('{{foo-bar direction=direction displacement=displacement}}', {\n direction: 'down',\n displacement: {\n distance: 10\n }\n });\n }, /`Ember\\.Binding` is deprecated/);\n\n this.assertText('two way: down, string: down, object: 10, string object: 10');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'direction', 'up');\n });\n\n this.assertText('two way: up, string: up, object: 10, string object: 10');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'displacement.distance', 20);\n });\n\n this.assertText('two way: up, string: up, object: 20, string object: 20');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'direction', 'right');\n (0, _emberMetal.set)(_this2.context, 'displacement.distance', 30);\n });\n\n this.assertText('two way: right, string: right, object: 30, string object: 30');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'direction', 'down');\n (0, _emberMetal.set)(_this2.context, 'displacement', { distance: 10 });\n });\n\n this.assertText('two way: down, string: down, object: 10, string object: 10');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/binding_integration_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/binding_integration_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/append-test', ['ember-babel', 'ember-metal', 'ember-views', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _emberMetal, _emberViews, _testCase, _helpers, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if showFooBar}}\\n {{foo-bar}}\\n {{else}}\\n {{baz-qux}}\\n {{/if}}\\n '], ['\\n {{#if showFooBar}}\\n {{foo-bar}}\\n {{else}}\\n {{baz-qux}}\\n {{/if}}\\n ']);\n\n var AbstractAppendTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(AbstractAppendTest, _RenderingTest);\n\n function AbstractAppendTest() {\n (0, _emberBabel.classCallCheck)(this, AbstractAppendTest);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.components = [];\n _this.ids = [];\n return _this;\n }\n\n AbstractAppendTest.prototype.teardown = function teardown() {\n var _this2 = this;\n\n this.component = null;\n\n this.components.forEach(function (component) {\n _this2.runTask(function () {\n return component.destroy();\n });\n });\n\n this.ids.forEach(function (id) {\n var $element = (0, _emberViews.jQuery)(id).remove();\n _this2.assert.strictEqual($element.length, 0, 'Should not leak element: #' + id);\n });\n\n _RenderingTest.prototype.teardown.call(this);\n };\n\n AbstractAppendTest.prototype.didAppend = function didAppend(component) {\n this.components.push(component);\n this.ids.push(component.elementId);\n };\n\n AbstractAppendTest.prototype['@test lifecycle hooks during component append'] = function testLifecycleHooksDuringComponentAppend(assert) {\n var _this4 = this;\n\n var hooks = [];\n\n var oldRegisterComponent = this.registerComponent;\n var componentsByName = {};\n\n // TODO: refactor/combine with other life-cycle tests\n this.registerComponent = function (name, _options) {\n function pushHook(hookName) {\n hooks.push([name, hookName]);\n }\n\n var options = {\n ComponentClass: _options.ComponentClass.extend({\n init: function () {\n var _this3 = this,\n _arguments = arguments;\n\n expectDeprecation(function () {\n _this3._super.apply(_this3, _arguments);\n }, /didInitAttrs called/);\n if (name in componentsByName) {\n throw new TypeError('Component named: ` ' + name + ' ` already registered');\n }\n componentsByName[name] = this;\n pushHook('init');\n this.on('init', function () {\n return pushHook('on(init)');\n });\n },\n didInitAttrs: function (options) {\n pushHook('didInitAttrs', options);\n },\n didReceiveAttrs: function () {\n pushHook('didReceiveAttrs');\n },\n willInsertElement: function () {\n pushHook('willInsertElement');\n },\n willRender: function () {\n pushHook('willRender');\n },\n didInsertElement: function () {\n pushHook('didInsertElement');\n },\n didRender: function () {\n pushHook('didRender');\n },\n didUpdateAttrs: function () {\n pushHook('didUpdateAttrs');\n },\n willUpdate: function () {\n pushHook('willUpdate');\n },\n didUpdate: function () {\n pushHook('didUpdate');\n },\n willDestroyElement: function () {\n pushHook('willDestroyElement');\n },\n willClearRender: function () {\n pushHook('willClearRender');\n },\n didDestroyElement: function () {\n pushHook('didDestroyElement');\n },\n willDestroy: function () {\n pushHook('willDestroy');\n this._super.apply(this, arguments);\n }\n }),\n template: _options.template\n };\n\n oldRegisterComponent.call(this, name, options);\n };\n\n this.registerComponent('x-parent', {\n ComponentClass: _helpers.Component.extend({\n layoutName: 'components/x-parent'\n }),\n\n template: '[parent: {{foo}}]{{#x-child bar=foo}}[yielded: {{foo}}]{{/x-child}}'\n });\n\n this.registerComponent('x-child', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n }),\n\n template: '[child: {{bar}}]{{yield}}'\n });\n\n var XParent = void 0;\n\n XParent = this.owner.factoryFor('component:x-parent');\n\n this.component = XParent.create({ foo: 'zomg' });\n\n assert.deepEqual(hooks, [['x-parent', 'init'], ['x-parent', 'didInitAttrs'], ['x-parent', 'didReceiveAttrs'], ['x-parent', 'on(init)']], 'creation of x-parent');\n\n hooks.length = 0;\n\n this.element = this.append(this.component);\n\n assert.deepEqual(hooks, [['x-parent', 'willInsertElement'], ['x-child', 'init'], ['x-child', 'didInitAttrs'], ['x-child', 'didReceiveAttrs'], ['x-child', 'on(init)'], ['x-child', 'willRender'], ['x-child', 'willInsertElement'], ['x-child', 'didInsertElement'], ['x-child', 'didRender'], ['x-parent', 'didInsertElement'], ['x-parent', 'didRender']], 'appending of x-parent');\n\n hooks.length = 0;\n\n this.runTask(function () {\n return componentsByName['x-parent'].rerender();\n });\n\n assert.deepEqual(hooks, [['x-parent', 'willUpdate'], ['x-parent', 'willRender'], ['x-parent', 'didUpdate'], ['x-parent', 'didRender']], 'rerender x-parent');\n\n hooks.length = 0;\n\n this.runTask(function () {\n return componentsByName['x-child'].rerender();\n });\n\n assert.deepEqual(hooks, [['x-parent', 'willUpdate'], ['x-parent', 'willRender'], ['x-child', 'willUpdate'], ['x-child', 'willRender'], ['x-child', 'didUpdate'], ['x-child', 'didRender'], ['x-parent', 'didUpdate'], ['x-parent', 'didRender']], 'rerender x-child');\n\n hooks.length = 0;\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.component, 'foo', 'wow');\n });\n\n assert.deepEqual(hooks, [['x-parent', 'willUpdate'], ['x-parent', 'willRender'], ['x-child', 'didUpdateAttrs'], ['x-child', 'didReceiveAttrs'], ['x-child', 'willUpdate'], ['x-child', 'willRender'], ['x-child', 'didUpdate'], ['x-child', 'didRender'], ['x-parent', 'didUpdate'], ['x-parent', 'didRender']], 'set foo = wow');\n\n hooks.length = 0;\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.component, 'foo', 'zomg');\n });\n\n assert.deepEqual(hooks, [['x-parent', 'willUpdate'], ['x-parent', 'willRender'], ['x-child', 'didUpdateAttrs'], ['x-child', 'didReceiveAttrs'], ['x-child', 'willUpdate'], ['x-child', 'willRender'], ['x-child', 'didUpdate'], ['x-child', 'didRender'], ['x-parent', 'didUpdate'], ['x-parent', 'didRender']], 'set foo = zomg');\n\n hooks.length = 0;\n\n this.runTask(function () {\n return _this4.component.destroy();\n });\n\n assert.deepEqual(hooks, [['x-parent', 'willDestroyElement'], ['x-parent', 'willClearRender'], ['x-child', 'willDestroyElement'], ['x-child', 'willClearRender'], ['x-child', 'didDestroyElement'], ['x-parent', 'didDestroyElement'], ['x-parent', 'willDestroy'], ['x-child', 'willDestroy']], 'destroy');\n };\n\n AbstractAppendTest.prototype['@test appending, updating and destroying a single component'] = function testAppendingUpdatingAndDestroyingASingleComponent(assert) {\n var _this5 = this;\n\n var willDestroyCalled = 0;\n\n this.registerComponent('x-parent', {\n ComponentClass: _helpers.Component.extend({\n layoutName: 'components/x-parent',\n willDestroyElement: function () {\n willDestroyCalled++;\n }\n }),\n\n template: '[parent: {{foo}}]{{#x-child bar=foo}}[yielded: {{foo}}]{{/x-child}}'\n });\n\n this.registerComponent('x-child', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n }),\n\n template: '[child: {{bar}}]{{yield}}'\n });\n\n var XParent = void 0;\n\n XParent = this.owner.factoryFor('component:x-parent');\n\n this.component = XParent.create({ foo: 'zomg' });\n\n assert.ok(!this.component.element, 'precond - should not have an element');\n\n this.element = this.append(this.component);\n\n var componentElement = this.component.element;\n\n this.assertComponentElement(componentElement, { content: '[parent: zomg][child: zomg][yielded: zomg]' });\n\n assert.equal(componentElement.parentElement, this.element, 'It should be attached to the target');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertComponentElement(componentElement, { content: '[parent: zomg][child: zomg][yielded: zomg]' });\n\n assert.equal(componentElement.parentElement, this.element, 'It should be attached to the target');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.component, 'foo', 'wow');\n });\n\n this.assertComponentElement(componentElement, { content: '[parent: wow][child: wow][yielded: wow]' });\n\n assert.equal(componentElement.parentElement, this.element, 'It should be attached to the target');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.component, 'foo', 'zomg');\n });\n\n this.assertComponentElement(componentElement, { content: '[parent: zomg][child: zomg][yielded: zomg]' });\n\n assert.equal(componentElement.parentElement, this.element, 'It should be attached to the target');\n\n this.runTask(function () {\n return _this5.component.destroy();\n });\n\n assert.ok(!this.component.element, 'It should not have an element');\n assert.ok(!componentElement.parentElement, 'The component element should be detached');\n\n this.assert.equal(willDestroyCalled, 1);\n };\n\n AbstractAppendTest.prototype['@test releasing a root component after it has been destroy'] = function testReleasingARootComponentAfterItHasBeenDestroy(assert) {\n var _this6 = this;\n\n var renderer = this.owner.lookup('renderer:-dom');\n\n this.registerComponent('x-component', {\n ComponentClass: _helpers.Component.extend()\n });\n\n this.component = this.owner.factoryFor('component:x-component').create();\n this.append(this.component);\n\n assert.equal(renderer._roots.length, 1, 'added a root component');\n\n this.runTask(function () {\n return _this6.component.destroy();\n });\n\n assert.equal(renderer._roots.length, 0, 'released the root component');\n };\n\n AbstractAppendTest.prototype['@test appending, updating and destroying multiple components'] = function testAppendingUpdatingAndDestroyingMultipleComponents(assert) {\n var _this7 = this;\n\n var willDestroyCalled = 0;\n\n this.registerComponent('x-first', {\n ComponentClass: _helpers.Component.extend({\n layoutName: 'components/x-first',\n\n willDestroyElement: function () {\n willDestroyCalled++;\n }\n }),\n\n template: 'x-first {{foo}}!'\n });\n\n this.registerComponent('x-second', {\n ComponentClass: _helpers.Component.extend({\n layoutName: 'components/x-second',\n\n willDestroyElement: function () {\n willDestroyCalled++;\n }\n }),\n\n template: 'x-second {{bar}}!'\n });\n\n var First = void 0,\n Second = void 0;\n\n First = this.owner.factoryFor('component:x-first');\n Second = this.owner.factoryFor('component:x-second');\n\n var first = First.create({ foo: 'foo' });\n var second = Second.create({ bar: 'bar' });\n\n this.assert.ok(!first.element, 'precond - should not have an element');\n this.assert.ok(!second.element, 'precond - should not have an element');\n\n var wrapper1 = void 0,\n wrapper2 = void 0;\n\n this.runTask(function () {\n return wrapper1 = _this7.append(first);\n });\n this.runTask(function () {\n return wrapper2 = _this7.append(second);\n });\n\n var componentElement1 = first.element;\n var componentElement2 = second.element;\n\n this.assertComponentElement(componentElement1, { content: 'x-first foo!' });\n this.assertComponentElement(componentElement2, { content: 'x-second bar!' });\n\n assert.equal(componentElement1.parentElement, wrapper1, 'The first component should be attached to the target');\n assert.equal(componentElement2.parentElement, wrapper2, 'The second component should be attached to the target');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(first, 'foo', 'FOO');\n });\n\n this.assertComponentElement(componentElement1, { content: 'x-first FOO!' });\n this.assertComponentElement(componentElement2, { content: 'x-second bar!' });\n\n assert.equal(componentElement1.parentElement, wrapper1, 'The first component should be attached to the target');\n assert.equal(componentElement2.parentElement, wrapper2, 'The second component should be attached to the target');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(second, 'bar', 'BAR');\n });\n\n this.assertComponentElement(componentElement1, { content: 'x-first FOO!' });\n this.assertComponentElement(componentElement2, { content: 'x-second BAR!' });\n\n assert.equal(componentElement1.parentElement, wrapper1, 'The first component should be attached to the target');\n assert.equal(componentElement2.parentElement, wrapper2, 'The second component should be attached to the target');\n\n this.runTask(function () {\n (0, _emberMetal.set)(first, 'foo', 'foo');\n (0, _emberMetal.set)(second, 'bar', 'bar');\n });\n\n this.assertComponentElement(componentElement1, { content: 'x-first foo!' });\n this.assertComponentElement(componentElement2, { content: 'x-second bar!' });\n\n assert.equal(componentElement1.parentElement, wrapper1, 'The first component should be attached to the target');\n assert.equal(componentElement2.parentElement, wrapper2, 'The second component should be attached to the target');\n\n this.runTask(function () {\n first.destroy();\n second.destroy();\n });\n\n assert.ok(!first.element, 'The first component should not have an element');\n assert.ok(!second.element, 'The second component should not have an element');\n\n assert.ok(!componentElement1.parentElement, 'The first component element should be detached');\n assert.ok(!componentElement2.parentElement, 'The second component element should be detached');\n\n this.assert.equal(willDestroyCalled, 2);\n };\n\n AbstractAppendTest.prototype['@test can appendTo while rendering'] = function testCanAppendToWhileRendering(assert) {\n var _this8 = this;\n\n var owner = this.owner;\n\n var append = function (component) {\n return _this8.append(component);\n };\n\n var element1 = void 0,\n element2 = void 0;\n this.registerComponent('first-component', {\n ComponentClass: _helpers.Component.extend({\n layout: (0, _helpers.compile)('component-one'),\n\n didInsertElement: function () {\n element1 = this.element;\n\n var SecondComponent = owner.factoryFor('component:second-component');\n\n append(SecondComponent.create());\n }\n })\n });\n\n this.registerComponent('second-component', {\n ComponentClass: _helpers.Component.extend({\n layout: (0, _helpers.compile)('component-two'),\n\n didInsertElement: function () {\n element2 = this.element;\n }\n })\n });\n\n var FirstComponent = this.owner.factoryFor('component:first-component');\n\n this.runTask(function () {\n return append(FirstComponent.create());\n });\n\n this.assertComponentElement(element1, { content: 'component-one' });\n this.assertComponentElement(element2, { content: 'component-two' });\n };\n\n AbstractAppendTest.prototype['@test can appendTo and remove while rendering'] = function testCanAppendToAndRemoveWhileRendering(assert) {\n var _this9 = this;\n\n var owner = this.owner;\n\n var append = function (component) {\n return _this9.append(component);\n };\n\n var element1 = void 0,\n element2 = void 0,\n element3 = void 0,\n element4 = void 0,\n component1 = void 0,\n component2 = void 0;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n layout: (0, _helpers.compile)('foo-bar'),\n\n init: function () {\n this._super.apply(this, arguments);\n component1 = this;\n },\n didInsertElement: function () {\n element1 = this.element;\n\n var OtherRoot = owner.factoryFor('component:other-root');\n\n this._instance = OtherRoot.create({\n didInsertElement: function () {\n element2 = this.element;\n }\n });\n\n append(this._instance);\n },\n willDestroy: function () {\n this._instance.destroy();\n }\n })\n });\n\n this.registerComponent('baz-qux', {\n ComponentClass: _helpers.Component.extend({\n layout: (0, _helpers.compile)('baz-qux'),\n\n init: function () {\n this._super.apply(this, arguments);\n component2 = this;\n },\n didInsertElement: function () {\n element3 = this.element;\n\n var OtherRoot = owner.factoryFor('component:other-root');\n\n this._instance = OtherRoot.create({\n didInsertElement: function () {\n element4 = this.element;\n }\n });\n\n append(this._instance);\n },\n willDestroy: function () {\n this._instance.destroy();\n }\n })\n });\n\n var instantiatedRoots = 0;\n var destroyedRoots = 0;\n this.registerComponent('other-root', {\n ComponentClass: _helpers.Component.extend({\n layout: (0, _helpers.compile)('fake-thing: {{counter}}'),\n init: function () {\n this._super.apply(this, arguments);\n this.counter = instantiatedRoots++;\n },\n willDestroy: function () {\n destroyedRoots++;\n this._super.apply(this, arguments);\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { showFooBar: true });\n\n this.assertComponentElement(element1, {});\n this.assertComponentElement(element2, { content: 'fake-thing: 0' });\n assert.equal(instantiatedRoots, 1);\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'showFooBar', false);\n });\n\n assert.equal(instantiatedRoots, 2);\n assert.equal(destroyedRoots, 1);\n\n this.assertComponentElement(element3, {});\n this.assertComponentElement(element4, { content: 'fake-thing: 1' });\n\n this.runTask(function () {\n component1.destroy();\n component2.destroy();\n });\n\n assert.equal(instantiatedRoots, 2);\n assert.equal(destroyedRoots, 2);\n };\n\n return AbstractAppendTest;\n }(_testCase.RenderingTest);\n\n (0, _testCase.moduleFor)('append: no arguments (attaching to document.body)', function (_AbstractAppendTest) {\n (0, _emberBabel.inherits)(_class, _AbstractAppendTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractAppendTest.apply(this, arguments));\n }\n\n _class.prototype.append = function append(component) {\n this.runTask(function () {\n return component.append();\n });\n this.didAppend(component);\n return document.body;\n };\n\n return _class;\n }(AbstractAppendTest));\n\n (0, _testCase.moduleFor)('appendTo: a selector', function (_AbstractAppendTest2) {\n (0, _emberBabel.inherits)(_class2, _AbstractAppendTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractAppendTest2.apply(this, arguments));\n }\n\n _class2.prototype.append = function append(component) {\n this.runTask(function () {\n return component.appendTo('#qunit-fixture');\n });\n this.didAppend(component);\n return (0, _emberViews.jQuery)('#qunit-fixture')[0];\n };\n\n _class2.prototype['@test raises an assertion when the target does not exist in the DOM'] = function testRaisesAnAssertionWhenTheTargetDoesNotExistInTheDOM(assert) {\n var _this12 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n layoutName: 'components/foo-bar'\n }),\n template: 'FOO BAR!'\n });\n\n var FooBar = this.owner.factoryFor('component:foo-bar');\n\n this.component = FooBar.create();\n\n assert.ok(!this.component.element, 'precond - should not have an element');\n\n this.runTask(function () {\n expectAssertion(function () {\n _this12.component.appendTo('#does-not-exist-in-dom');\n }, /You tried to append to \\(#does-not-exist-in-dom\\) but that isn't in the DOM/);\n });\n\n assert.ok(!this.component.element, 'component should not have an element');\n };\n\n return _class2;\n }(AbstractAppendTest));\n\n (0, _testCase.moduleFor)('appendTo: an element', function (_AbstractAppendTest3) {\n (0, _emberBabel.inherits)(_class3, _AbstractAppendTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractAppendTest3.apply(this, arguments));\n }\n\n _class3.prototype.append = function append(component) {\n var element = (0, _emberViews.jQuery)('#qunit-fixture')[0];\n this.runTask(function () {\n return component.appendTo(element);\n });\n this.didAppend(component);\n return element;\n };\n\n return _class3;\n }(AbstractAppendTest));\n\n (0, _testCase.moduleFor)('appendTo: with multiple components', function (_AbstractAppendTest4) {\n (0, _emberBabel.inherits)(_class4, _AbstractAppendTest4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractAppendTest4.apply(this, arguments));\n }\n\n _class4.prototype.append = function append(component) {\n this.runTask(function () {\n return component.appendTo('#qunit-fixture');\n });\n this.didAppend(component);\n return (0, _emberViews.jQuery)('#qunit-fixture')[0];\n };\n\n return _class4;\n }(AbstractAppendTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/append-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/append-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/attribute-bindings-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _abstractTestCase, _emberMetal) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{foo-bar hasFoo=true foo=foo hasBar=false bar=bar}}\\n {{foo-bar hasFoo=false foo=foo hasBar=true bar=bar}}\\n {{foo-bar hasFoo=true foo=foo hasBar=true bar=bar}}\\n {{foo-bar hasFoo=false foo=foo hasBar=false bar=bar}}\\n '], ['\\n {{foo-bar hasFoo=true foo=foo hasBar=false bar=bar}}\\n {{foo-bar hasFoo=false foo=foo hasBar=true bar=bar}}\\n {{foo-bar hasFoo=true foo=foo hasBar=true bar=bar}}\\n {{foo-bar hasFoo=false foo=foo hasBar=false bar=bar}}\\n ']);\n\n (0, _testCase.moduleFor)('Attribute bindings integration', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can have attribute bindings'] = function testItCanHaveAttributeBindings() {\n var _this2 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['foo:data-foo', 'bar:data-bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=foo bar=bar}}', { foo: 'foo', bar: 'bar' });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', 'FOO');\n (0, _emberMetal.set)(_this2.context, 'bar', undefined);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'FOO' }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', 'foo');\n (0, _emberMetal.set)(_this2.context, 'bar', 'bar');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n };\n\n _class.prototype['@test it can have attribute bindings with attrs'] = function testItCanHaveAttributeBindingsWithAttrs() {\n var _this3 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['attrs.foo:data-foo', 'attrs.baz.bar:data-bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=model.foo baz=model.baz}}', {\n model: { foo: undefined, baz: { bar: 'bar' } }\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'data-bar': 'bar' } });\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'data-bar': 'bar' } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.context, 'model.foo', 'foo');\n (0, _emberMetal.set)(_this3.context, 'model.baz.bar', undefined);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'foo' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model', {\n foo: undefined, baz: { bar: 'bar' }\n });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'data-bar': 'bar' } });\n };\n\n _class.prototype['@test it can have attribute bindings with a nested path'] = function testItCanHaveAttributeBindingsWithANestedPath() {\n var _this4 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['foo.bar:data-foo-bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=foo}}', { foo: { bar: 'foo-bar' } });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo-bar': 'foo-bar' }, content: 'hello' });\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo-bar': 'foo-bar' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'foo.bar', 'FOO-BAR');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo-bar': 'FOO-BAR' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'foo.bar', undefined);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'foo', undefined);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'foo', { bar: 'foo-bar' });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo-bar': 'foo-bar' }, content: 'hello' });\n };\n\n _class.prototype['@test handles non-microsyntax attributeBindings'] = function testHandlesNonMicrosyntaxAttributeBindings() {\n var _this5 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['type']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar type=submit}}', {\n submit: 'submit'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'submit' }, content: 'hello' });\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'submit' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'submit', 'password');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'password' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'submit', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'submit', 'submit');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'submit' }, content: 'hello' });\n };\n\n _class.prototype['@test non-microsyntax attributeBindings cannot contain nested paths'] = function testNonMicrosyntaxAttributeBindingsCannotContainNestedPaths() {\n var _this6 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['foo.bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this6.render('{{foo-bar foo=foo}}', { foo: { bar: 'foo-bar' } });\n }, /Illegal attributeBinding: 'foo.bar' is not a valid attribute name./);\n };\n\n _class.prototype['@test normalizes attributeBindings for property names'] = function testNormalizesAttributeBindingsForPropertyNames() {\n var _this7 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['tiTLe']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar tiTLe=name}}', {\n name: 'qux'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { title: 'qux' }, content: 'hello' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'name', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'name', 'qux');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { title: 'qux' }, content: 'hello' });\n };\n\n _class.prototype['@test normalizes attributeBindings for attribute names'] = function testNormalizesAttributeBindingsForAttributeNames() {\n var _this8 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['foo:data-FOO']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=foo}}', {\n foo: 'qux'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'qux' }, content: 'hello' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', 'qux');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': 'qux' }, content: 'hello' });\n };\n\n _class.prototype['@test attributeBindings handles null/undefined'] = function testAttributeBindingsHandlesNullUndefined() {\n var _this9 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['fizz', 'bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar fizz=fizz bar=bar}}', {\n fizz: null,\n bar: undefined\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'fizz', 'fizz');\n (0, _emberMetal.set)(_this9.context, 'bar', 'bar');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { fizz: 'fizz', bar: 'bar' }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'fizz', null);\n (0, _emberMetal.set)(_this9.context, 'bar', undefined);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: {}, content: 'hello' });\n };\n\n _class.prototype['@test attributeBindings handles number value'] = function testAttributeBindingsHandlesNumberValue() {\n var _this10 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['size']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar size=size}}', {\n size: 21\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { size: '21' }, content: 'hello' });\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { size: '21' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'size', 0);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { size: '0' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'size', 21);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { size: '21' }, content: 'hello' });\n };\n\n _class.prototype['@test handles internal and external changes'] = function testHandlesInternalAndExternalChanges() {\n var _this11 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['type'],\n type: 'password',\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'password' }, content: 'hello' });\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'password' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'type', 'checkbox');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'checkbox' }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'type', 'password');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { type: 'password' }, content: 'hello' });\n };\n\n _class.prototype['@test can set attributeBindings on component with a different tagName'] = function testCanSetAttributeBindingsOnComponentWithADifferentTagName() {\n var _this12 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'input',\n attributeBindings: ['type', 'isDisabled:disabled']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar type=type isDisabled=disabled}}', {\n type: 'password',\n disabled: false\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { type: 'password' } });\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { type: 'password' } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this12.context, 'type', 'checkbox');\n (0, _emberMetal.set)(_this12.context, 'disabled', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { type: 'checkbox', disabled: '' } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this12.context, 'type', 'password');\n (0, _emberMetal.set)(_this12.context, 'disabled', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'input', attrs: { type: 'password' } });\n };\n\n _class.prototype['@test should allow namespaced attributes in micro syntax'] = function testShouldAllowNamespacedAttributesInMicroSyntax() {\n var _this13 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['xlinkHref:xlink:href']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar type=type xlinkHref=xlinkHref}}', {\n xlinkHref: '/foo.png'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'xlink:href': '/foo.png' } });\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'xlink:href': '/foo.png' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'xlinkHref', '/lol.png');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'xlink:href': '/lol.png' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'xlinkHref', '/foo.png');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'xlink:href': '/foo.png' } });\n };\n\n _class.prototype['@test should allow for String objects'] = function testShouldAllowForStringObjects() {\n var _this14 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['foo']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar foo=foo}}', {\n foo: function () {\n return this;\n }.call('bar')\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'foo': 'bar' } });\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'foo': 'bar' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'foo', function () {\n return this;\n }.call('baz'));\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'foo': 'baz' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'foo', function () {\n return this;\n }.call('bar'));\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'foo': 'bar' } });\n };\n\n _class.prototype['@test can set id initially via attributeBindings '] = function testCanSetIdInitiallyViaAttributeBindings() {\n var _this15 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['specialSauce:id']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar specialSauce=sauce}}', {\n sauce: 'special-sauce'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'id': 'special-sauce' } });\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'id': 'special-sauce' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'sauce', 'foo');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'id': 'special-sauce' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'sauce', 'special-sauce');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'id': 'special-sauce' } });\n };\n\n _class.prototype['@test attributeBindings are overwritten'] = function testAttributeBindingsAreOverwritten() {\n var _this16 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['href'],\n href: 'a href'\n });\n\n var FizzBarComponent = FooBarComponent.extend({\n attributeBindings: ['newHref:href']\n });\n\n this.registerComponent('fizz-bar', { ComponentClass: FizzBarComponent });\n\n this.render('{{fizz-bar newHref=href}}', {\n href: 'dog.html'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { href: 'dog.html' } });\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { href: 'dog.html' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'href', 'cat.html');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { href: 'cat.html' } });\n };\n\n _class.prototype['@test it can set attribute bindings in the constructor'] = function testItCanSetAttributeBindingsInTheConstructor() {\n var _this17 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n\n var bindings = [];\n\n if (this.get('hasFoo')) {\n bindings.push('foo:data-foo');\n }\n\n if (this.get('hasBar')) {\n bindings.push('bar:data-bar');\n }\n\n this.attributeBindings = bindings;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { foo: 'foo', bar: 'bar' });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'data-foo': 'foo' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'data-foo': 'foo' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'foo', 'FOO');\n (0, _emberMetal.set)(_this17.context, 'bar', undefined);\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'data-foo': 'FOO' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: {}, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'data-foo': 'FOO' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'bar', 'BAR');\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'data-foo': 'FOO' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'data-bar': 'BAR' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'data-foo': 'FOO', 'data-bar': 'BAR' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: {}, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'foo', 'foo');\n (0, _emberMetal.set)(_this17.context, 'bar', 'bar');\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'data-foo': 'foo' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'data-foo': 'foo', 'data-bar': 'bar' }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: {}, content: 'hello' });\n };\n\n _class.prototype['@test it should not allow attributeBindings to be set'] = function testItShouldNotAllowAttributeBindingsToBeSet() {\n var _this18 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n expectAssertion(function () {\n _this18.render('{{foo-bar attributeBindings=\"one two\"}}');\n }, /Setting 'attributeBindings' via template helpers is not allowed/);\n };\n\n _class.prototype['@test asserts if an attributeBinding is setup on class'] = function testAssertsIfAnAttributeBindingIsSetupOnClass() {\n var _this19 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['class']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this19.render('{{foo-bar}}');\n }, /You cannot use class as an attributeBinding, use classNameBindings instead./i);\n };\n\n _class.prototype['@test blacklists href bindings based on protocol'] = function testBlacklistsHrefBindingsBasedOnProtocol() {\n /* jshint scripturl:true */\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'a',\n attributeBindings: ['href']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar href=xss}}', {\n xss: 'javascript:alert(\\'foo\\')'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'a', attrs: { href: 'unsafe:javascript:alert(\\'foo\\')' } });\n };\n\n _class.prototype['@test it can bind the role attribute (issue #14007)'] = function testItCanBindTheRoleAttributeIssue14007() {\n var _this20 = this;\n\n var FooBarComponent = _helpers.Component.extend({ attributeBindings: ['role'] });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar role=role}}', { role: 'button' });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { role: 'button' } });\n\n this.runTask(function () {\n return _this20.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { role: 'button' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'role', 'combobox');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { role: 'combobox' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'role', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div' });\n };\n\n _class.prototype['@test component with an `id` attribute binding of undefined'] = function testComponentWithAnIdAttributeBindingOfUndefined() {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['id'],\n\n id: undefined\n })\n });\n\n this.registerComponent('baz-qux', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['somethingUndefined:id'],\n\n somethingUndefined: undefined\n })\n });\n this.render('{{foo-bar}}{{baz-qux}}');\n\n this.assertComponentElement(this.nthChild(0), { content: '' });\n this.assertComponentElement(this.nthChild(1), { content: '' });\n\n this.assert.ok(this.nthChild(0).id.match(/ember\\d+/), 'a valid `id` was used');\n this.assert.ok(this.nthChild(1).id.match(/ember\\d+/), 'a valid `id` was used');\n };\n\n _class.prototype['@test component with an `id` attribute binding of null'] = function testComponentWithAnIdAttributeBindingOfNull() {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['id'],\n\n id: null\n })\n });\n\n this.registerComponent('baz-qux', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['somethingNull:id'],\n\n somethingNull: null\n })\n });\n this.render('{{foo-bar}}{{baz-qux}}');\n\n this.assertComponentElement(this.nthChild(0), { content: '' });\n this.assertComponentElement(this.nthChild(1), { content: '' });\n\n this.assert.ok(this.nthChild(0).id.match(/ember\\d+/), 'a valid `id` was used');\n this.assert.ok(this.nthChild(1).id.match(/ember\\d+/), 'a valid `id` was used');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/attribute-bindings-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/attribute-bindings-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/attrs-lookup-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal', 'ember-glimmer/tests/utils/test-helpers'], function (_emberBabel, _testCase, _helpers, _emberMetal, _testHelpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Components test: attrs lookup', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it should be able to lookup attrs without `attrs.` - template access'] = function testItShouldBeAbleToLookupAttrsWithoutAttrsTemplateAccess() {\n var _this2 = this;\n\n this.registerComponent('foo-bar', { template: '{{first}}' });\n\n this.render('{{foo-bar first=firstAttr}}', {\n firstAttr: 'first attr'\n });\n\n this.assertText('first attr');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('first attr');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'firstAttr', 'second attr');\n });\n\n this.assertText('second attr');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'firstAttr', 'first attr');\n });\n\n this.assertText('first attr');\n };\n\n _class.prototype['@test it should be able to lookup attrs without `attrs.` - component access'] = function testItShouldBeAbleToLookupAttrsWithoutAttrsComponentAccess(assert) {\n var _this3 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n }\n });\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{first}}' });\n\n this.render('{{foo-bar first=firstAttr}}', {\n firstAttr: 'first attr'\n });\n\n assert.equal(instance.get('first'), 'first attr');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n assert.equal(instance.get('first'), 'first attr');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'firstAttr', 'second attr');\n });\n\n assert.equal(instance.get('first'), 'second attr');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'firstAttr', 'first attr');\n });\n\n this.assertText('first attr');\n };\n\n _class.prototype['@test should be able to modify a provided attr into local state #11571 / #11559'] = function testShouldBeAbleToModifyAProvidedAttrIntoLocalState1157111559(assert) {\n var _this4 = this;\n\n var instance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n didReceiveAttrs: function () {\n this.set('first', this.get('first').toUpperCase());\n }\n });\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{first}}' });\n\n this.render('{{foo-bar first=\"first attr\"}}');\n\n assert.equal(instance.get('first'), 'FIRST ATTR', 'component lookup uses local state');\n this.assertText('FIRST ATTR');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n assert.equal(instance.get('first'), 'FIRST ATTR', 'component lookup uses local state during rerender');\n this.assertText('FIRST ATTR');\n\n // This is testing that passing string literals for use as initial values,\n // so there is no update step\n };\n\n _class.prototype['@test should be able to access unspecified attr #12035'] = function testShouldBeAbleToAccessUnspecifiedAttr12035(assert) {\n var _this5 = this;\n\n var instance = void 0;\n var wootVal = 'yes';\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n didReceiveAttrs: function () {\n assert.equal(this.get('woot'), wootVal, 'found attr in didReceiveAttrs');\n }\n });\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar woot=woot}}', {\n woot: wootVal\n });\n\n assert.equal(instance.get('woot'), 'yes', 'component found attr');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n assert.equal(instance.get('woot'), 'yes', 'component found attr after rerender');\n\n this.runTask(function () {\n wootVal = 'nope';\n (0, _emberMetal.set)(_this5.context, 'woot', wootVal);\n });\n\n assert.equal(instance.get('woot'), 'nope', 'component found attr after attr change');\n\n this.runTask(function () {\n wootVal = 'yes';\n (0, _emberMetal.set)(_this5.context, 'woot', wootVal);\n });\n\n assert.equal(instance.get('woot'), 'yes', 'component found attr after reset');\n };\n\n _class.prototype['@test getAttr() should return the same value as get()'] = function testGetAttrShouldReturnTheSameValueAsGet(assert) {\n var _this6 = this;\n\n assert.expect(33);\n\n var instance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n didReceiveAttrs: function () {\n var rootFirstPositional = this.get('firstPositional');\n var rootFirst = this.get('first');\n var rootSecond = this.get('second');\n var attrFirstPositional = this.getAttr('firstPositional');\n var attrFirst = this.getAttr('first');\n var attrSecond = this.getAttr('second');\n\n equal(rootFirstPositional, attrFirstPositional, 'root property matches attrs value');\n equal(rootFirst, attrFirst, 'root property matches attrs value');\n equal(rootSecond, attrSecond, 'root property matches attrs value');\n }\n });\n\n FooBarComponent.reopenClass({\n positionalParams: ['firstPositional']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar firstPositional first=first second=second}}', {\n firstPositional: 'firstPositional',\n first: 'first',\n second: 'second'\n });\n\n assert.equal(instance.get('firstPositional'), 'firstPositional', 'matches known value');\n assert.equal(instance.get('first'), 'first', 'matches known value');\n assert.equal(instance.get('second'), 'second', 'matches known value');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n assert.equal(instance.get('firstPositional'), 'firstPositional', 'matches known value');\n assert.equal(instance.get('first'), 'first', 'matches known value');\n assert.equal(instance.get('second'), 'second', 'matches known value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'first', 'third');\n });\n\n assert.equal(instance.get('firstPositional'), 'firstPositional', 'matches known value');\n assert.equal(instance.get('first'), 'third', 'matches known value');\n assert.equal(instance.get('second'), 'second', 'matches known value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'second', 'fourth');\n });\n\n assert.equal(instance.get('firstPositional'), 'firstPositional', 'matches known value');\n assert.equal(instance.get('first'), 'third', 'matches known value');\n assert.equal(instance.get('second'), 'fourth', 'matches known value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'firstPositional', 'fifth');\n });\n\n assert.equal(instance.get('firstPositional'), 'fifth', 'matches known value');\n assert.equal(instance.get('first'), 'third', 'matches known value');\n assert.equal(instance.get('second'), 'fourth', 'matches known value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'firstPositional', 'firstPositional');\n (0, _emberMetal.set)(_this6.context, 'first', 'first');\n (0, _emberMetal.set)(_this6.context, 'second', 'second');\n });\n\n assert.equal(instance.get('firstPositional'), 'firstPositional', 'matches known value');\n assert.equal(instance.get('first'), 'first', 'matches known value');\n assert.equal(instance.get('second'), 'second', 'matches known value');\n };\n\n _class.prototype['@test bound computed properties can be overridden in extensions, set during init, and passed in as attrs'] = function testBoundComputedPropertiesCanBeOverriddenInExtensionsSetDuringInitAndPassedInAsAttrs() {\n var FooClass = _helpers.Component.extend({\n attributeBindings: ['style'],\n style: (0, _emberMetal.computed)('height', 'color', function () {\n var height = this.get('height');\n var color = this.get('color');\n return 'height: ' + height + 'px; background-color: ' + color + ';';\n }),\n color: 'red',\n height: 20\n });\n\n var BarClass = FooClass.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.height = 150;\n },\n\n color: 'yellow'\n });\n\n this.registerComponent('x-foo', { ComponentClass: FooClass });\n this.registerComponent('x-bar', { ComponentClass: BarClass });\n\n this.render('{{x-foo}}{{x-bar}}{{x-bar color=\"green\"}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 20px; background-color: red;') } });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 150px; background-color: yellow;') } });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 150px; background-color: green;') } });\n\n this.assertStableRerender();\n\n // No U-R\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/attrs-lookup-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/attrs-lookup-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/class-bindings-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-helpers', 'ember-metal', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _testCase, _helpers, _testHelpers, _emberMetal, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{foo-bar foo=foo bindIsEnabled=true isEnabled=isEnabled bindIsHappy=false isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=false isEnabled=isEnabled bindIsHappy=true isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=true isEnabled=isEnabled bindIsHappy=true isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=false isEnabled=isEnabled bindIsHappy=false isHappy=isHappy}}\\n '], ['\\n {{foo-bar foo=foo bindIsEnabled=true isEnabled=isEnabled bindIsHappy=false isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=false isEnabled=isEnabled bindIsHappy=true isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=true isEnabled=isEnabled bindIsHappy=true isHappy=isHappy}}\\n {{foo-bar foo=foo bindIsEnabled=false isEnabled=isEnabled bindIsHappy=false isHappy=isHappy}}\\n ']);\n\n (0, _testCase.moduleFor)('ClassNameBindings integration', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can have class name bindings on the class definition'] = function testItCanHaveClassNameBindingsOnTheClassDefinition() {\n var _this2 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['foo', 'isEnabled:enabled', 'isHappy:happy:sad']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=foo isEnabled=isEnabled isHappy=isHappy}}', { foo: 'foo', isEnabled: true, isHappy: false });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', 'FOO');\n (0, _emberMetal.set)(_this2.context, 'isEnabled', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO sad') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', undefined);\n (0, _emberMetal.set)(_this2.context, 'isHappy', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view happy') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', 'foo');\n (0, _emberMetal.set)(_this2.context, 'isEnabled', true);\n (0, _emberMetal.set)(_this2.context, 'isHappy', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n };\n\n _class.prototype['@test attrs in classNameBindings'] = function testAttrsInClassNameBindings() {\n var _this3 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['attrs.joker:purple:green', 'attrs.batman.robin:black:red']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar joker=model.wat batman=model.super}}', {\n model: { wat: false, super: { robin: true } }\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view green black') }, content: 'hello' });\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view green black') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.context, 'model.wat', true);\n (0, _emberMetal.set)(_this3.context, 'model.super.robin', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view purple red') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model', {\n wat: false, super: { robin: true }\n });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view green black') }, content: 'hello' });\n };\n\n _class.prototype['@test it can have class name bindings in the template'] = function testItCanHaveClassNameBindingsInTheTemplate() {\n var _this4 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classNameBindings=\"model.someInitiallyTrueProperty model.someInitiallyFalseProperty model.someInitiallyUndefinedProperty :static model.isBig:big model.isOpen:open:closed model.isUp::down model.bar:isTruthy:isFalsy\"}}', {\n model: {\n someInitiallyTrueProperty: true,\n someInitiallyFalseProperty: false,\n isBig: true,\n isOpen: false,\n isUp: true,\n bar: true\n }\n });\n\n this.assertComponentElement(this.firstChild, {\n attrs: { 'class': (0, _testHelpers.classes)('ember-view some-initially-true-property static big closed isTruthy') },\n content: 'hello'\n });\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertComponentElement(this.firstChild, {\n attrs: { 'class': (0, _testHelpers.classes)('ember-view some-initially-true-property static big closed isTruthy') },\n content: 'hello'\n });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this4.context, 'model.someInitiallyTrueProperty', false);\n (0, _emberMetal.set)(_this4.context, 'model.someInitiallyFalseProperty', true);\n (0, _emberMetal.set)(_this4.context, 'model.someInitiallyUndefinedProperty', true);\n (0, _emberMetal.set)(_this4.context, 'model.isBig', false);\n (0, _emberMetal.set)(_this4.context, 'model.isOpen', true);\n (0, _emberMetal.set)(_this4.context, 'model.isUp', false);\n (0, _emberMetal.set)(_this4.context, 'model.bar', false);\n });\n\n this.assertComponentElement(this.firstChild, {\n attrs: { 'class': (0, _testHelpers.classes)('ember-view some-initially-false-property some-initially-undefined-property static open down isFalsy') },\n content: 'hello'\n });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this4.context, 'model', {\n someInitiallyTrueProperty: true,\n someInitiallyFalseProperty: false,\n someInitiallyUndefinedProperty: undefined,\n isBig: true,\n isOpen: false,\n isUp: true,\n bar: true\n });\n });\n\n this.assertComponentElement(this.firstChild, {\n attrs: { 'class': (0, _testHelpers.classes)('ember-view some-initially-true-property static big closed isTruthy') },\n content: 'hello'\n });\n };\n\n _class.prototype['@test it can have class name bindings with nested paths'] = function testItCanHaveClassNameBindingsWithNestedPaths() {\n var _this5 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['foo.bar', 'is.enabled:enabled', 'is.happy:happy:sad']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar foo=foo is=is}}', { foo: { bar: 'foo-bar' }, is: { enabled: true, happy: false } });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar enabled sad') }, content: 'hello' });\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar enabled sad') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'foo.bar', 'FOO-BAR');\n (0, _emberMetal.set)(_this5.context, 'is.enabled', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO-BAR sad') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'foo.bar', null);\n (0, _emberMetal.set)(_this5.context, 'is.happy', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view happy') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'foo', null);\n (0, _emberMetal.set)(_this5.context, 'is', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view sad') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'foo', { bar: 'foo-bar' });\n (0, _emberMetal.set)(_this5.context, 'is', { enabled: true, happy: false });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar enabled sad') }, content: 'hello' });\n };\n\n _class.prototype['@test it should dasherize the path when the it resolves to true'] = function testItShouldDasherizeThePathWhenTheItResolvesToTrue() {\n var _this6 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['fooBar', 'nested.fooBarBaz']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar fooBar=fooBar nested=nested}}', { fooBar: true, nested: { fooBarBaz: false } });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') }, content: 'hello' });\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'fooBar', false);\n (0, _emberMetal.set)(_this6.context, 'nested.fooBarBaz', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar-baz') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'fooBar', 'FOO-BAR');\n (0, _emberMetal.set)(_this6.context, 'nested.fooBarBaz', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO-BAR') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'nested', null);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO-BAR') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'fooBar', true);\n (0, _emberMetal.set)(_this6.context, 'nested', { fooBarBaz: false });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') }, content: 'hello' });\n };\n\n _class.prototype['@test const bindings can be set as attrs'] = function testConstBindingsCanBeSetAsAttrs() {\n var _this7 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n this.render('{{foo-bar classNameBindings=\"foo:enabled:disabled\"}}', {\n foo: true\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view enabled') }, content: 'hello' });\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view enabled') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'foo', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view disabled') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'foo', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view enabled') }, content: 'hello' });\n };\n\n _class.prototype['@test :: class name syntax works with an empty true class'] = function testClassNameSyntaxWorksWithAnEmptyTrueClass() {\n var _this8 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['isEnabled::not-enabled']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar isEnabled=enabled}}', {\n enabled: false\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view not-enabled') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'enabled', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'enabled', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view not-enabled') }, content: 'hello' });\n };\n\n _class.prototype['@test uses all provided static class names (issue #11193)'] = function testUsesAllProvidedStaticClassNamesIssue11193() {\n var _this9 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: [':class-one', ':class-two']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}', {\n enabled: false\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view class-one class-two') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'enabled', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view class-one class-two') }, content: 'hello' });\n };\n\n _class.prototype['@test Providing a binding with a space in it asserts'] = function testProvidingABindingWithASpaceInItAsserts() {\n var _this10 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: 'i:think:i am:so:clever'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this10.render('{{foo-bar}}');\n }, /classNameBindings must not have spaces in them/i);\n };\n\n _class.prototype['@test it asserts that items must be strings'] = function testItAssertsThatItemsMustBeStrings() {\n var _this11 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n foo: 'foo',\n bar: 'bar',\n classNameBindings: ['foo',, 'bar'] // eslint-disable-line no-sparse-arrays\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this11.render('{{foo-bar}}');\n }, /classNameBindings must be non-empty strings/);\n };\n\n _class.prototype['@test it asserts that items must be non-empty strings'] = function testItAssertsThatItemsMustBeNonEmptyStrings() {\n var _this12 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n foo: 'foo',\n bar: 'bar',\n classNameBindings: ['foo', '', 'bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this12.render('{{foo-bar}}');\n }, /classNameBindings must be non-empty strings/);\n };\n\n _class.prototype['@test it can set class name bindings in the constructor'] = function testItCanSetClassNameBindingsInTheConstructor() {\n var _this13 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: ['foo'],\n\n init: function () {\n this._super();\n\n var bindings = this.classNameBindings = this.classNameBindings.slice();\n\n if (this.get('bindIsEnabled')) {\n bindings.push('isEnabled:enabled');\n }\n\n if (this.get('bindIsHappy')) {\n bindings.push('isHappy:happy:sad');\n }\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { foo: 'foo', isEnabled: true, isHappy: false });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo') }, content: 'hello' });\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'foo', 'FOO');\n (0, _emberMetal.set)(_this13.context, 'isEnabled', false);\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view FOO') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'foo', undefined);\n (0, _emberMetal.set)(_this13.context, 'isHappy', true);\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view happy') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view happy') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view') }, content: 'hello' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'foo', 'foo');\n (0, _emberMetal.set)(_this13.context, 'isEnabled', true);\n (0, _emberMetal.set)(_this13.context, 'isHappy', false);\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo enabled sad') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(3), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo') }, content: 'hello' });\n };\n\n _class.prototype['@test using a computed property for classNameBindings triggers an assertion'] = function testUsingAComputedPropertyForClassNameBindingsTriggersAnAssertion() {\n var _this14 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNameBindings: (0, _emberMetal.computed)(function () {\n return ['isHappy:happy:sad'];\n })\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this14.render('{{foo-bar}}');\n }, /Only arrays are allowed/);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('ClassBinding integration', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test it should apply classBinding without condition always'] = function testItShouldApplyClassBindingWithoutConditionAlways() {\n var _this16 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\":foo\"}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo ember-view') } });\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo ember-view') } });\n };\n\n _class2.prototype['@test it should merge classBinding with class'] = function testItShouldMergeClassBindingWithClass() {\n var _this17 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"birdman:respeck\" class=\"myName\"}}', { birdman: true });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('respeck myName ember-view') } });\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('respeck myName ember-view') } });\n };\n\n _class2.prototype['@test it should apply classBinding with only truthy condition'] = function testItShouldApplyClassBindingWithOnlyTruthyCondition() {\n var _this18 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"myName:respeck\"}}', { myName: true });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('respeck ember-view') } });\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('respeck ember-view') } });\n };\n\n _class2.prototype['@test it should apply classBinding with only falsy condition'] = function testItShouldApplyClassBindingWithOnlyFalsyCondition() {\n var _this19 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"myName::shade\"}}', { myName: false });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('shade ember-view') } });\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('shade ember-view') } });\n };\n\n _class2.prototype['@test it should apply nothing when classBinding is falsy but only supplies truthy class'] = function testItShouldApplyNothingWhenClassBindingIsFalsyButOnlySuppliesTruthyClass() {\n var _this20 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"myName:respeck\"}}', { myName: false });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view') } });\n\n this.runTask(function () {\n return _this20.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view') } });\n };\n\n _class2.prototype['@test it should apply nothing when classBinding is truthy but only supplies falsy class'] = function testItShouldApplyNothingWhenClassBindingIsTruthyButOnlySuppliesFalsyClass() {\n var _this21 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"myName::shade\"}}', { myName: true });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view') } });\n\n this.runTask(function () {\n return _this21.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view') } });\n };\n\n _class2.prototype['@test it should apply classBinding with falsy condition'] = function testItShouldApplyClassBindingWithFalsyCondition() {\n var _this22 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"swag:fresh:scrub\"}}', { swag: false });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('scrub ember-view') } });\n\n this.runTask(function () {\n return _this22.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('scrub ember-view') } });\n };\n\n _class2.prototype['@test it should apply classBinding with truthy condition'] = function testItShouldApplyClassBindingWithTruthyCondition() {\n var _this23 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar classBinding=\"swag:fresh:scrub\"}}', { swag: true });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fresh ember-view') } });\n\n this.runTask(function () {\n return _this23.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fresh ember-view') } });\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/class-bindings-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/class-bindings-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/contextual-components-test', ['ember-babel', 'ember-utils', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember-runtime/system/native_array'], function (_emberBabel, _emberUtils, _helpers, _abstractTestCase, _testCase, _emberMetal, _native_array) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{component (component \"-looked-up\") \"Hodari\" greeting=\"Hodi\"}}'], ['\\n {{component (component \"-looked-up\") \"Hodari\" greeting=\"Hodi\"}}']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{component (component \"-looked-up\" \"Hodari\" greeting=\"Hodi\")\\n greeting=\"Hola\"}}'], ['\\n {{component (component \"-looked-up\" \"Hodari\" greeting=\"Hodi\")\\n greeting=\"Hola\"}}']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash comp=(component \"-looked-up\" greeting=model.greeting)) as |my|}}\\n {{#my.comp}}{{/my.comp}}\\n {{/with}}'], ['\\n {{#with (hash comp=(component \"-looked-up\" greeting=model.greeting)) as |my|}}\\n {{#my.comp}}{{/my.comp}}\\n {{/with}}']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (component \"-looked-up\" greeting=\"Hola\" name=\"Dolores\" age=33) as |first|}}\\n {{#with (component first greeting=\"Hej\" name=\"Sigmundur\") as |second|}}\\n {{component second greeting=model.greeting}}\\n {{/with}}\\n {{/with}}'], ['\\n {{#with (component \"-looked-up\" greeting=\"Hola\" name=\"Dolores\" age=33) as |first|}}\\n {{#with (component first greeting=\"Hej\" name=\"Sigmundur\") as |second|}}\\n {{component second greeting=model.greeting}}\\n {{/with}}\\n {{/with}}']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup}}\\n {{/with}}'], ['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup}}\\n {{/with}}']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup expectedText=model.expectedText}}\\n {{/with}}'], ['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup expectedText=model.expectedText}}\\n {{/with}}']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash lookedup=(component \"-looked-up\" expectedText=model.expectedText)) as |object|}}\\n {{object.lookedup}}\\n {{/with}}'], ['\\n {{#with (hash lookedup=(component \"-looked-up\" expectedText=model.expectedText)) as |object|}}\\n {{object.lookedup}}\\n {{/with}}']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup model.expectedText \"Hola\"}}\\n {{/with}}'], ['\\n {{#with (hash lookedup=(component \"-looked-up\")) as |object|}}\\n {{object.lookedup model.expectedText \"Hola\"}}\\n {{/with}}']),\n _templateObject9 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with (hash my-component=(component \\'my-component\\' first)) as |c|}}\\n {{c.my-component}}\\n {{/with}}'], ['\\n {{#with (hash my-component=(component \\'my-component\\' first)) as |c|}}\\n {{c.my-component}}\\n {{/with}}']),\n _templateObject10 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#my-component my-attr=myProp as |api|}}\\n {{api.my-nested-component}}\\n {{/my-component}}\\n
\\n '], ['\\n {{#my-component my-attr=myProp as |api|}}\\n {{api.my-nested-component}}\\n {{/my-component}}\\n
\\n ']),\n _templateObject11 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#select-box as |sb|}}\\n {{sb.option label=\"Foo\"}}\\n {{sb.option}}\\n {{/select-box}}'], ['\\n {{#select-box as |sb|}}\\n {{sb.option label=\"Foo\"}}\\n {{sb.option}}\\n {{/select-box}}']),\n _templateObject12 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n '], ['\\n ']),\n _templateObject13 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{component (component \"change-button\" model.val2)}}\\n {{model.val2}}'], ['\\n {{component (component \"change-button\" model.val2)}}\\n {{model.val2}}']),\n _templateObject14 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n message: {{message}}{{inner-component message=message}}\\n '], ['\\n ']);\n\n (0, _testCase.moduleFor)('Components test: contextual components', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test renders with component helper'] = function testRendersWithComponentHelper() {\n var _this2 = this;\n\n var expectedText = 'Hodi';\n\n this.registerComponent('-looked-up', {\n template: expectedText\n });\n\n this.render('{{component (component \"-looked-up\")}}');\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText(expectedText);\n };\n\n _class.prototype['@test renders with component helper with invocation params, hash'] = function testRendersWithComponentHelperWithInvocationParamsHash() {\n var _this3 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{greeting}} {{name}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject));\n\n this.assertText('Hodi Hodari');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('Hodi Hodari');\n };\n\n _class.prototype['@test GH#13742 keeps nested rest positional parameters if rendered with no positional parameters'] = function testGH13742KeepsNestedRestPositionalParametersIfRenderedWithNoPositionalParameters() {\n var _this4 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{component (component \"-looked-up\" model.greeting model.name)}}', {\n model: {\n greeting: 'Gabon ',\n name: 'Zack'\n }\n });\n\n this.assertText('Gabon Zack');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('Gabon Zack');\n\n this.runTask(function () {\n return _this4.context.set('model.greeting', 'Good morning ');\n });\n\n this.assertText('Good morning Zack');\n\n this.runTask(function () {\n return _this4.context.set('model.name', 'Matthew');\n });\n\n this.assertText('Good morning Matthew');\n\n this.runTask(function () {\n return _this4.context.set('model', { greeting: 'Gabon ', name: 'Zack' });\n });\n\n this.assertText('Gabon Zack');\n };\n\n _class.prototype['@test overwrites nested rest positional parameters if rendered with positional parameters'] = function testOverwritesNestedRestPositionalParametersIfRenderedWithPositionalParameters() {\n var _this5 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{component (component \"-looked-up\" model.greeting model.name) model.name model.greeting}}', {\n model: {\n greeting: 'Gabon ',\n name: 'Zack'\n }\n });\n\n this.assertText('ZackGabon ');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('ZackGabon ');\n\n this.runTask(function () {\n return _this5.context.set('model.greeting', 'Good morning ');\n });\n\n this.assertText('ZackGood morning ');\n\n this.runTask(function () {\n return _this5.context.set('model.name', 'Matthew');\n });\n\n this.assertText('MatthewGood morning ');\n\n this.runTask(function () {\n return _this5.context.set('model', { greeting: 'Gabon ', name: 'Zack' });\n });\n\n this.assertText('ZackGabon ');\n };\n\n _class.prototype['@test GH#13742 keeps nested rest positional parameters if nested and rendered with no positional parameters'] = function testGH13742KeepsNestedRestPositionalParametersIfNestedAndRenderedWithNoPositionalParameters() {\n var _this6 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{component (component (component \"-looked-up\" model.greeting model.name))}}', {\n model: {\n greeting: 'Gabon ',\n name: 'Zack'\n }\n });\n\n this.assertText('Gabon Zack');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('Gabon Zack');\n\n this.runTask(function () {\n return _this6.context.set('model.greeting', 'Good morning ');\n });\n\n this.assertText('Good morning Zack');\n\n this.runTask(function () {\n return _this6.context.set('model.name', 'Matthew');\n });\n\n this.assertText('Good morning Matthew');\n\n this.runTask(function () {\n return _this6.context.set('model', { greeting: 'Gabon ', name: 'Zack' });\n });\n\n this.assertText('Gabon Zack');\n };\n\n _class.prototype['@test overwrites nested rest positional parameters if nested with new pos params and rendered with no positional parameters'] = function testOverwritesNestedRestPositionalParametersIfNestedWithNewPosParamsAndRenderedWithNoPositionalParameters() {\n var _this7 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{component (component (component \"-looked-up\" model.greeting model.name) model.name model.greeting)}}', {\n model: {\n greeting: 'Gabon ',\n name: 'Zack'\n }\n });\n\n this.assertText('ZackGabon ');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('ZackGabon ');\n\n this.runTask(function () {\n return _this7.context.set('model.greeting', 'Good morning ');\n });\n\n this.assertText('ZackGood morning ');\n\n this.runTask(function () {\n return _this7.context.set('model.name', 'Matthew');\n });\n\n this.assertText('MatthewGood morning ');\n\n this.runTask(function () {\n return _this7.context.set('model', { greeting: 'Gabon ', name: 'Zack' });\n });\n\n this.assertText('ZackGabon ');\n };\n\n _class.prototype['@test renders with component helper with curried params, hash'] = function testRendersWithComponentHelperWithCurriedParamsHash() {\n var _this8 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{greeting}} {{name}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertText('Hola Hodari');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('Hola Hodari');\n };\n\n _class.prototype['@test updates when component path is bound'] = function testUpdatesWhenComponentPathIsBound() {\n var _this9 = this;\n\n this.registerComponent('-mandarin', {\n template: 'ni hao'\n });\n\n this.registerComponent('-hindi', {\n template: 'Namaste'\n });\n\n this.render('{{component (component model.lookupComponent)}}', {\n model: {\n lookupComponent: '-mandarin'\n }\n });\n\n this.assertText('ni hao');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('ni hao');\n\n this.runTask(function () {\n return _this9.context.set('model.lookupComponent', '-hindi');\n });\n\n this.assertText('Namaste');\n\n this.runTask(function () {\n return _this9.context.set('model', { lookupComponent: '-mandarin' });\n });\n\n this.assertText('ni hao');\n };\n\n _class.prototype['@test updates when curried hash argument is bound'] = function testUpdatesWhenCurriedHashArgumentIsBound() {\n var _this10 = this;\n\n this.registerComponent('-looked-up', {\n template: '{{greeting}}'\n });\n\n this.render('{{component (component \"-looked-up\" greeting=model.greeting)}}', {\n model: {\n greeting: 'Hodi'\n }\n });\n\n this.assertText('Hodi');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('Hodi');\n\n this.runTask(function () {\n return _this10.context.set('model.greeting', 'Hola');\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this10.context.set('model', { greeting: 'Hodi' });\n });\n\n this.assertText('Hodi');\n };\n\n _class.prototype['@test updates when curried hash arguments is bound in block form'] = function testUpdatesWhenCurriedHashArgumentsIsBoundInBlockForm() {\n var _this11 = this;\n\n this.registerComponent('-looked-up', {\n template: '{{greeting}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject3), {\n model: {\n greeting: 'Hodi'\n }\n });\n\n this.assertText('Hodi');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('Hodi');\n\n this.runTask(function () {\n return _this11.context.set('model.greeting', 'Hola');\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this11.context.set('model', { greeting: 'Hodi' });\n });\n\n this.assertText('Hodi');\n };\n\n _class.prototype['@test nested components overwrite named positional parameters'] = function testNestedComponentsOverwriteNamedPositionalParameters() {\n var _this12 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n }),\n template: '{{name}} {{age}}'\n });\n\n this.render('{{component (component (component \"-looked-up\" \"Sergio\" 29) \"Marvin\" 21) \"Hodari\"}}');\n\n this.assertText('Hodari 21');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('Hodari 21');\n };\n\n _class.prototype['@test nested components overwrite hash parameters'] = function testNestedComponentsOverwriteHashParameters() {\n var _this13 = this;\n\n this.registerComponent('-looked-up', {\n template: '{{greeting}} {{name}} {{age}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject4), {\n model: {\n greeting: 'Hodi'\n }\n });\n\n this.assertText('Hodi Sigmundur 33');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('Hodi Sigmundur 33');\n\n this.runTask(function () {\n return _this13.context.set('model.greeting', 'Kaixo');\n });\n\n this.assertText('Kaixo Sigmundur 33');\n\n this.runTask(function () {\n return _this13.context.set('model', { greeting: 'Hodi' });\n });\n\n this.assertText('Hodi Sigmundur 33');\n };\n\n _class.prototype['@test bound outer named parameters get updated in the right scope'] = function testBoundOuterNamedParametersGetUpdatedInTheRightScope() {\n var _this14 = this;\n\n this.registerComponent('-inner-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['comp']\n }),\n template: '{{component comp \"Inner\"}}'\n });\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n }),\n template: '{{name}} {{age}}'\n });\n\n this.render('{{component \"-inner-component\" (component \"-looked-up\" model.outerName model.outerAge)}}', {\n model: {\n outerName: 'Outer',\n outerAge: 28\n }\n });\n\n this.assertText('Inner 28');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('Inner 28');\n\n this.runTask(function () {\n return _this14.context.set('model.outerAge', 29);\n });\n\n this.assertText('Inner 29');\n\n this.runTask(function () {\n return _this14.context.set('model.outerName', 'Not outer');\n });\n\n this.assertText('Inner 29');\n\n this.runTask(function () {\n _this14.context.set('model', {\n outerName: 'Outer',\n outerAge: 28\n });\n });\n\n this.assertText('Inner 28');\n };\n\n _class.prototype['@test bound outer hash parameters get updated in the right scope'] = function testBoundOuterHashParametersGetUpdatedInTheRightScope() {\n var _this15 = this;\n\n this.registerComponent('-inner-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['comp']\n }),\n template: '{{component comp name=\"Inner\"}}'\n });\n\n this.registerComponent('-looked-up', {\n template: '{{name}} {{age}}'\n });\n\n this.render('{{component \"-inner-component\" (component \"-looked-up\" name=model.outerName age=model.outerAge)}}', {\n model: {\n outerName: 'Outer',\n outerAge: 28\n }\n });\n\n this.assertText('Inner 28');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertText('Inner 28');\n\n this.runTask(function () {\n return _this15.context.set('model.outerAge', 29);\n });\n\n this.assertText('Inner 29');\n\n this.runTask(function () {\n return _this15.context.set('model.outerName', 'Not outer');\n });\n\n this.assertText('Inner 29');\n\n this.runTask(function () {\n _this15.context.set('model', {\n outerName: 'Outer',\n outerAge: 28\n });\n });\n\n this.assertText('Inner 28');\n };\n\n _class.prototype['@test conflicting positional and hash parameters raise and assertion if in the same component context'] = function testConflictingPositionalAndHashParametersRaiseAndAssertionIfInTheSameComponentContext() {\n var _this16 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{greeting}} {{name}}'\n });\n\n expectAssertion(function () {\n _this16.render('{{component (component \"-looked-up\" \"Hodari\" name=\"Sergio\") \"Hodari\" greeting=\"Hodi\"}}');\n }, 'You cannot specify both a positional param (at position 0) and the hash argument `name`.');\n };\n\n _class.prototype['@test conflicting positional and hash parameters does not raise an assertion if rerendered'] = function testConflictingPositionalAndHashParametersDoesNotRaiseAnAssertionIfRerendered() {\n var _this17 = this;\n\n // In some cases, rerendering with a positional param used to cause an\n // assertion. This test checks it does not.\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{greeting}} {{name}}'\n });\n\n this.render('{{component (component \"-looked-up\" model.name greeting=\"Hodi\")}}', {\n model: {\n name: 'Hodari'\n }\n });\n\n this.assertText('Hodi Hodari');\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertText('Hodi Hodari');\n\n this.runTask(function () {\n return _this17.context.set('model.name', 'Sergio');\n });\n\n this.assertText('Hodi Sergio');\n\n this.runTask(function () {\n return _this17.context.set('model', { name: 'Hodari' });\n });\n\n this.assertText('Hodi Hodari');\n };\n\n _class.prototype['@test conflicting positional and hash parameters does not raise an assertion if in different component context'] = function testConflictingPositionalAndHashParametersDoesNotRaiseAnAssertionIfInDifferentComponentContext() {\n var _this18 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{greeting}} {{name}}'\n });\n\n this.render('{{component (component \"-looked-up\" \"Hodari\") name=\"Sergio\" greeting=\"Hodi\"}}');\n\n this.assertText('Hodi Sergio');\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertText('Hodi Sergio');\n };\n\n _class.prototype['@test raises an asserton when component path is null'] = function testRaisesAnAssertonWhenComponentPathIsNull() {\n var _this19 = this;\n\n expectAssertion(function () {\n _this19.render('{{component (component lookupComponent)}}');\n });\n };\n\n _class.prototype['@test raises an assertion when component path is not a component name (static)'] = function testRaisesAnAssertionWhenComponentPathIsNotAComponentNameStatic() {\n var _this20 = this;\n\n expectAssertion(function () {\n _this20.render('{{component (component \"not-a-component\")}}');\n }, 'The component helper cannot be used without a valid component name. You used \"not-a-component\" via (component \"not-a-component\")');\n };\n\n _class.prototype['@test raises an assertion when component path is not a component name (dynamic)'] = function testRaisesAnAssertionWhenComponentPathIsNotAComponentNameDynamic() {\n var _this21 = this;\n\n expectAssertion(function () {\n _this21.render('{{component (component compName)}}', {\n compName: 'not-a-component'\n });\n }, /The component helper cannot be used without a valid component name. You used \"not-a-component\" via \\(component .*\\)/);\n };\n\n _class.prototype['@test renders with dot path'] = function testRendersWithDotPath() {\n var _this22 = this;\n\n var expectedText = 'Hodi';\n this.registerComponent('-looked-up', {\n template: expectedText\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject5));\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this22.rerender();\n });\n\n this.assertText(expectedText);\n };\n\n _class.prototype['@test renders with dot path and attr'] = function testRendersWithDotPathAndAttr() {\n var _this23 = this;\n\n var expectedText = 'Hodi';\n this.registerComponent('-looked-up', {\n template: '{{expectedText}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject6), {\n model: {\n expectedText: expectedText\n }\n });\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this23.rerender();\n });\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this23.context.set('model.expectedText', 'Hola');\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this23.context.set('model', { expectedText: expectedText });\n });\n\n this.assertText(expectedText);\n };\n\n _class.prototype['@test renders with dot path and curried over attr'] = function testRendersWithDotPathAndCurriedOverAttr() {\n var _this24 = this;\n\n var expectedText = 'Hodi';\n this.registerComponent('-looked-up', {\n template: '{{expectedText}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject7), {\n model: {\n expectedText: expectedText\n }\n });\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this24.rerender();\n });\n\n this.assertText(expectedText);\n\n this.runTask(function () {\n return _this24.context.set('model.expectedText', 'Hola');\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this24.context.set('model', { expectedText: expectedText });\n });\n\n this.assertText(expectedText);\n };\n\n _class.prototype['@test renders with dot path and with rest positional parameters'] = function testRendersWithDotPathAndWithRestPositionalParameters() {\n var _this25 = this;\n\n this.registerComponent('-looked-up', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{params}}'\n });\n\n var expectedText = 'Hodi';\n\n this.render((0, _abstractTestCase.strip)(_templateObject8), {\n model: {\n expectedText: expectedText\n }\n });\n\n this.assertText(expectedText + ',Hola');\n\n this.runTask(function () {\n return _this25.rerender();\n });\n\n this.assertText(expectedText + ',Hola');\n\n this.runTask(function () {\n return _this25.context.set('model.expectedText', 'Kaixo');\n });\n\n this.assertText('Kaixo,Hola');\n\n this.runTask(function () {\n return _this25.context.set('model', { expectedText: expectedText });\n });\n\n this.assertText(expectedText + ',Hola');\n };\n\n _class.prototype['@test renders with dot path and rest parameter does not leak'] = function testRendersWithDotPathAndRestParameterDoesNotLeak(assert) {\n // In the original implementation, positional parameters were not handled\n // correctly causing the first positional parameter to be the contextual\n // component itself.\n var value = false;\n\n this.registerComponent('my-component', {\n ComponentClass: _helpers.Component.extend({\n didReceiveAttrs: function () {\n value = this.getAttr('value');\n }\n }).reopenClass({\n positionalParams: ['value']\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject9), { first: 'first' });\n\n assert.equal(value, 'first', 'value is the expected parameter');\n };\n\n _class.prototype['@test renders with dot path and updates attributes'] = function testRendersWithDotPathAndUpdatesAttributes(assert) {\n var _this26 = this;\n\n this.registerComponent('my-nested-component', {\n ComponentClass: _helpers.Component.extend({\n didReceiveAttrs: function () {\n this.set('myProp', this.getAttr('my-parent-attr'));\n }\n }),\n template: '{{myProp}}'\n });\n\n this.registerComponent('my-component', {\n template: '{{yield (hash my-nested-component=(component \"my-nested-component\" my-parent-attr=my-attr))}}'\n });\n\n this.registerComponent('my-action-component', {\n ComponentClass: _helpers.Component.extend({\n actions: {\n changeValue: function () {\n this.incrementProperty('myProp');\n }\n }\n }),\n template: (0, _abstractTestCase.strip)(_templateObject10)\n });\n\n this.render('{{my-action-component myProp=model.myProp}}', {\n model: {\n myProp: 1\n }\n });\n\n assert.equal(this.$('#nested-prop').text(), '1');\n\n this.runTask(function () {\n return _this26.rerender();\n });\n\n assert.equal(this.$('#nested-prop').text(), '1');\n\n this.runTask(function () {\n return _this26.$('button').click();\n });\n\n assert.equal(this.$('#nested-prop').text(), '2');\n\n this.runTask(function () {\n return _this26.$('button').click();\n });\n\n assert.equal(this.$('#nested-prop').text(), '3');\n\n this.runTask(function () {\n return _this26.context.set('model', { myProp: 1 });\n });\n\n assert.equal(this.$('#nested-prop').text(), '1');\n };\n\n _class.prototype['@test adding parameters to a contextual component\\'s instance does not add it to other instances'] = function testAddingParametersToAContextualComponentSInstanceDoesNotAddItToOtherInstances() {\n var _this27 = this;\n\n // If parameters and attributes are not handled correctly, setting a value\n // in an invokation can leak to others invocation.\n this.registerComponent('select-box', {\n template: '{{yield (hash option=(component \"select-box-option\"))}}'\n });\n\n this.registerComponent('select-box-option', {\n template: '{{label}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject11));\n\n this.assertText('Foo');\n\n this.runTask(function () {\n return _this27.rerender();\n });\n\n this.assertText('Foo');\n };\n\n _class.prototype['@test parameters in a contextual component are mutable when value is a param'] = function testParametersInAContextualComponentAreMutableWhenValueIsAParam(assert) {\n var _this28 = this;\n\n // This checks that a `(mut)` is added to parameters and attributes to\n // contextual components when it is a param.\n\n this.registerComponent('change-button', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['val']\n }),\n template: (0, _abstractTestCase.strip)(_templateObject12)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject13), {\n model: {\n val2: 8\n }\n });\n\n assert.equal(this.$('.value').text(), '8');\n\n this.runTask(function () {\n return _this28.rerender();\n });\n\n assert.equal(this.$('.value').text(), '8');\n\n this.runTask(function () {\n return _this28.$('.my-button').click();\n });\n\n assert.equal(this.$('.value').text(), '10');\n\n this.runTask(function () {\n return _this28.context.set('model', { val2: 8 });\n });\n\n assert.equal(this.$('.value').text(), '8');\n };\n\n _class.prototype['@test tagless blockless components render'] = function testTaglessBlocklessComponentsRender(assert) {\n var _this29 = this;\n\n this.registerComponent('my-comp', {\n ComponentClass: _helpers.Component.extend({ tagName: '' })\n });\n\n this.render('{{my-comp}}');\n\n this.runTask(function () {\n return _this29.rerender();\n });\n\n assert.equal(this.$().text(), '');\n };\n\n _class.prototype['@test GH#13494 tagless blockless component with property binding'] = function testGH13494TaglessBlocklessComponentWithPropertyBinding(assert) {\n var _this30 = this;\n\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n message: 'hello',\n actions: {\n change: function () {\n this.set('message', 'goodbye');\n }\n }\n }),\n template: (0, _abstractTestCase.strip)(_templateObject14)\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n })\n });\n\n this.render('{{outer-component}}');\n\n assert.equal(this.$().text(), 'message: hello');\n\n this.runTask(function () {\n return _this30.rerender();\n });\n\n assert.equal(this.$().text(), 'message: hello');\n\n this.runTask(function () {\n return _this30.$('button').click();\n });\n\n assert.equal(this.$().text(), 'message: goodbye');\n\n this.runTask(function () {\n return _this30.rerender();\n });\n\n assert.equal(this.$().text(), 'message: goodbye');\n };\n\n _class.prototype['@test GH#13982 contextual component ref is stable even when bound params change'] = function testGH13982ContextualComponentRefIsStableEvenWhenBoundParamsChange(assert) {\n var _this31 = this;\n\n var instance = void 0,\n previousInstance = void 0;\n var initCount = 0;\n\n this.registerComponent('my-comp', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n previousInstance = instance;\n instance = this;\n initCount++;\n },\n\n isOpen: undefined\n }),\n template: '{{if isOpen \"open\" \"closed\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject15), {\n isOpen: true\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'a instance was created');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n\n this.runTask(function () {\n return _this31.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n\n this.runTask(function () {\n return _this31.context.set('isOpen', false);\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'closed', 'the component text is \"closed\"');\n\n this.runTask(function () {\n return _this31.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'closed', 'the component text is \"closed\"');\n\n this.runTask(function () {\n return _this31.context.set('isOpen', true);\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n };\n\n _class.prototype['@test GH#13982 contextual component ref is stable even when bound params change (bound name param)'] = function testGH13982ContextualComponentRefIsStableEvenWhenBoundParamsChangeBoundNameParam(assert) {\n var _this32 = this;\n\n var instance = void 0,\n previousInstance = void 0;\n var initCount = 0;\n\n this.registerComponent('my-comp', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n previousInstance = instance;\n instance = this;\n initCount++;\n },\n\n isOpen: undefined\n }),\n template: '{{if isOpen \"open\" \"closed\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject16), {\n compName: 'my-comp',\n isOpen: true\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'a instance was created');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n\n this.runTask(function () {\n return _this32.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n\n this.runTask(function () {\n return _this32.context.set('isOpen', false);\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'closed', 'the component text is \"closed\"');\n\n this.runTask(function () {\n return _this32.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'closed', 'the component text is \"closed\"');\n\n this.runTask(function () {\n return _this32.context.set('isOpen', true);\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'the component instance exists');\n assert.equal(previousInstance, undefined, 'no previous component exists');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'open', 'the components text is \"open\"');\n };\n\n _class.prototype['@test GH#13982 contextual component ref is recomputed when component name param changes'] = function testGH13982ContextualComponentRefIsRecomputedWhenComponentNameParamChanges(assert) {\n var _this33 = this;\n\n var instance = void 0,\n previousInstance = void 0;\n var initCount = 0;\n\n this.registerComponent('my-comp', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n previousInstance = instance;\n instance = this;\n initCount++;\n },\n\n isOpen: undefined\n }),\n template: 'my-comp: {{if isOpen \"open\" \"closed\"}}'\n });\n\n this.registerComponent('your-comp', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n previousInstance = instance;\n instance = this;\n initCount++;\n },\n\n isOpen: undefined\n }),\n template: 'your-comp: {{if isOpen \"open\" \"closed\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject16), {\n compName: 'my-comp',\n isOpen: true\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'a instance was created');\n assert.equal(previousInstance, undefined, 'there is no previous instance');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'my-comp: open');\n\n this.runTask(function () {\n return _this33.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'a instance exists after rerender');\n assert.equal(previousInstance, undefined, 'there is no previous instance after rerender');\n assert.equal(initCount, 1, 'the component was constructed exactly 1 time');\n assert.equal(this.$().text(), 'my-comp: open');\n\n this.runTask(function () {\n return _this33.context.set('compName', 'your-comp');\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'an instance was created after component name changed');\n assert.ok(!(0, _emberMetal.isEmpty)(previousInstance), 'a previous instance now exists');\n assert.notEqual(instance, previousInstance, 'the instance and previous instance are not the same object');\n assert.equal(initCount, 2, 'the component was constructed exactly 2 times');\n assert.equal(this.$().text(), 'your-comp: open');\n\n this.runTask(function () {\n return _this33.rerender();\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'an instance was created after component name changed (rerender)');\n assert.ok(!(0, _emberMetal.isEmpty)(previousInstance), 'a previous instance now exists (rerender)');\n assert.notEqual(instance, previousInstance, 'the instance and previous instance are not the same object (rerender)');\n assert.equal(initCount, 2, 'the component was constructed exactly 2 times (rerender)');\n assert.equal(this.$().text(), 'your-comp: open');\n\n this.runTask(function () {\n return _this33.context.set('compName', 'my-comp');\n });\n\n assert.ok(!(0, _emberMetal.isEmpty)(instance), 'an instance was created after component name changed');\n assert.ok(!(0, _emberMetal.isEmpty)(previousInstance), 'a previous instance still exists');\n assert.notEqual(instance, previousInstance, 'the instance and previous instance are not the same object');\n assert.equal(initCount, 3, 'the component was constructed exactly 3 times (rerender)');\n assert.equal(this.$().text(), 'my-comp: open');\n };\n\n _class.prototype['@test GH#14508 rest positional params are received when passed as named parameter'] = function testGH14508RestPositionalParamsAreReceivedWhenPassedAsNamedParameter() {\n var _this34 = this;\n\n this.registerComponent('my-link', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{component (component \"my-link\") params=allParams}}', {\n allParams: (0, _native_array.A)(['a', 'b'])\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this34.rerender();\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this34.context.get('allParams').pushObject('c');\n });\n\n this.assertText('abc');\n\n this.runTask(function () {\n return _this34.context.get('allParams').popObject();\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this34.context.get('allParams').clear();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this34.context.set('allParams', (0, _native_array.A)(['1', '2']));\n });\n\n this.assertText('12');\n\n this.runTask(function () {\n return _this34.context.set('allParams', (0, _native_array.A)(['a', 'b']));\n });\n\n this.assertText('ab');\n };\n\n _class.prototype['@test GH#14508 rest positional params are received when passed as named parameter with dot notation'] = function testGH14508RestPositionalParamsAreReceivedWhenPassedAsNamedParameterWithDotNotation() {\n var _this35 = this;\n\n this.registerComponent('my-link', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'params'\n }),\n template: '{{#each params as |p|}}{{p}}{{/each}}'\n });\n\n this.render('{{#with (hash link=(component \"my-link\")) as |c|}}{{c.link params=allParams}}{{/with}}', {\n allParams: (0, _native_array.A)(['a', 'b'])\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this35.rerender();\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this35.context.get('allParams').pushObject('c');\n });\n\n this.assertText('abc');\n\n this.runTask(function () {\n return _this35.context.get('allParams').popObject();\n });\n\n this.assertText('ab');\n\n this.runTask(function () {\n return _this35.context.get('allParams').clear();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this35.context.set('allParams', (0, _native_array.A)(['1', '2']));\n });\n\n this.assertText('12');\n\n this.runTask(function () {\n return _this35.context.set('allParams', (0, _native_array.A)(['a', 'b']));\n });\n\n this.assertText('ab');\n };\n\n _class.prototype['@test GH#14632 give useful warning when calling contextual components with input as a name'] = function testGH14632GiveUsefulWarningWhenCallingContextualComponentsWithInputAsAName() {\n var _this36 = this;\n\n expectAssertion(function () {\n _this36.render('{{component (component \"input\" type=\"text\")}}');\n }, 'You cannot use the input helper as a contextual helper. Please extend TextField or Checkbox to use it as a contextual component.');\n };\n\n _class.prototype['@test GH#14632 give useful warning when calling contextual components with textarea as a name'] = function testGH14632GiveUsefulWarningWhenCallingContextualComponentsWithTextareaAsAName() {\n var _this37 = this;\n\n expectAssertion(function () {\n _this37.render('{{component (component \"textarea\" type=\"text\")}}');\n }, 'You cannot use the textarea helper as a contextual helper. Please extend TextArea to use it as a contextual component.');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n var ContextualComponentMutableParamsTest = function (_RenderingTest2) {\n (0, _emberBabel.inherits)(ContextualComponentMutableParamsTest, _RenderingTest2);\n\n function ContextualComponentMutableParamsTest() {\n (0, _emberBabel.classCallCheck)(this, ContextualComponentMutableParamsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n ContextualComponentMutableParamsTest.prototype.render = function render(templateStr) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n _RenderingTest2.prototype.render.call(this, templateStr + '{{model.val2}}', (0, _emberUtils.assign)(context, { model: { val2: 8 } }));\n };\n\n return ContextualComponentMutableParamsTest;\n }(_testCase.RenderingTest);\n\n var MutableParamTestGenerator = function () {\n function MutableParamTestGenerator(cases) {\n (0, _emberBabel.classCallCheck)(this, MutableParamTestGenerator);\n\n this.cases = cases;\n }\n\n MutableParamTestGenerator.prototype.generate = function generate(_ref) {\n var _ref2;\n\n var title = _ref.title,\n setup = _ref.setup;\n\n return _ref2 = {}, _ref2['@test parameters in a contextual component are mutable when value is a ' + title] = function (assert) {\n var _this39 = this;\n\n this.registerComponent('change-button', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['val']\n }),\n template: (0, _abstractTestCase.strip)(_templateObject17)\n });\n\n setup.call(this, assert);\n\n assert.equal(this.$('.value').text(), '8');\n\n this.runTask(function () {\n return _this39.rerender();\n });\n\n assert.equal(this.$('.value').text(), '8');\n\n this.runTask(function () {\n return _this39.$('.my-button').click();\n });\n\n assert.equal(this.$('.value').text(), '10');\n\n this.runTask(function () {\n return _this39.context.set('model', { val2: 8 });\n });\n\n assert.equal(this.$('.value').text(), '8');\n }, _ref2;\n };\n\n return MutableParamTestGenerator;\n }();\n\n (0, _abstractTestCase.applyMixins)(ContextualComponentMutableParamsTest, new MutableParamTestGenerator([{\n title: 'param',\n setup: function () {\n this.render('{{component (component \"change-button\" model.val2)}}');\n }\n }, {\n title: 'nested param',\n setup: function () {\n this.registerComponent('my-comp', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['components']\n }),\n template: '{{component components.comp}}'\n });\n\n this.render('{{my-comp (hash comp=(component \"change-button\" model.val2))}}');\n }\n }, {\n title: 'hash value',\n setup: function () {\n this.registerComponent('my-comp', {\n template: '{{component component}}'\n });\n\n this.render('{{my-comp component=(component \"change-button\" val=model.val2)}}');\n }\n }, {\n title: 'nested hash value',\n setup: function () {\n this.registerComponent('my-comp', {\n template: '{{component components.button}}'\n });\n\n this.render('{{my-comp components=(hash button=(component \"change-button\" val=model.val2))}}');\n }\n }]));\n\n (0, _testCase.moduleFor)('Components test: contextual components -- mutable params', ContextualComponentMutableParamsTest);\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/contextual-components-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/contextual-components-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/curly-components-test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/test-helpers', 'ember/features'], function (_emberBabel, _emberMetal, _emberRuntime, _helpers, _abstractTestCase, _testCase, _testHelpers, _features) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{foo-bar class=\"bar baz\"}}\\n {{foo-bar classNames=\"bar baz\"}}\\n {{foo-bar}}\\n '], ['\\n {{foo-bar class=\"bar baz\"}}\\n {{foo-bar classNames=\"bar baz\"}}\\n {{foo-bar}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if cond1}}\\n {{#foo-bar id=1}}\\n {{#if cond2}}\\n {{#foo-bar id=2}}{{/foo-bar}}\\n {{#if cond3}}\\n {{#foo-bar id=3}}\\n {{#if cond4}}\\n {{#foo-bar id=4}}\\n {{#if cond5}}\\n {{#foo-bar id=5}}{{/foo-bar}}\\n {{#foo-bar id=6}}{{/foo-bar}}\\n {{#foo-bar id=7}}{{/foo-bar}}\\n {{/if}}\\n {{#foo-bar id=8}}{{/foo-bar}}\\n {{/foo-bar}}\\n {{/if}}\\n {{/foo-bar}}\\n {{/if}}\\n {{/if}}\\n {{/foo-bar}}\\n {{/if}}'], ['\\n {{#if cond1}}\\n {{#foo-bar id=1}}\\n {{#if cond2}}\\n {{#foo-bar id=2}}{{/foo-bar}}\\n {{#if cond3}}\\n {{#foo-bar id=3}}\\n {{#if cond4}}\\n {{#foo-bar id=4}}\\n {{#if cond5}}\\n {{#foo-bar id=5}}{{/foo-bar}}\\n {{#foo-bar id=6}}{{/foo-bar}}\\n {{#foo-bar id=7}}{{/foo-bar}}\\n {{/if}}\\n {{#foo-bar id=8}}{{/foo-bar}}\\n {{/foo-bar}}\\n {{/if}}\\n {{/foo-bar}}\\n {{/if}}\\n {{/if}}\\n {{/foo-bar}}\\n {{/if}}']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if isStream}}\\n true\\n {{else}}\\n false\\n {{/if}}\\n '], ['\\n {{#if isStream}}\\n true\\n {{else}}\\n false\\n {{/if}}\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n Args: {{this.attrs.value}} | {{attrs.value}} | {{value}}\\n {{#each this.attrs.items as |item|}}\\n {{item}}\\n {{/each}}\\n {{#each attrs.items as |item|}}\\n {{item}}\\n {{/each}}\\n {{#each items as |item|}}\\n {{item}}\\n {{/each}}\\n '], ['\\n Args: {{this.attrs.value}} | {{attrs.value}} | {{value}}\\n {{#each this.attrs.items as |item|}}\\n {{item}}\\n {{/each}}\\n {{#each attrs.items as |item|}}\\n {{item}}\\n {{/each}}\\n {{#each items as |item|}}\\n {{item}}\\n {{/each}}\\n ']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['Args: lul | lul | lul111'], ['Args: lul | lul | lul111']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with-block someProp=prop}}\\n In template\\n {{/with-block}}'], ['\\n {{#with-block someProp=prop}}\\n In template\\n {{/with-block}}']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each names as |name|}}\\n {{name}}\\n {{/each}}'], ['\\n {{#each names as |name|}}\\n {{name}}\\n {{/each}}']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{sample-component \"Foo\" 4 \"Bar\" elementId=\"args-3\"}}\\n {{sample-component \"Foo\" 4 \"Bar\" 5 \"Baz\" elementId=\"args-5\"}}'], ['\\n {{sample-component \"Foo\" 4 \"Bar\" elementId=\"args-3\"}}\\n {{sample-component \"Foo\" 4 \"Bar\" 5 \"Baz\" elementId=\"args-5\"}}']),\n _templateObject9 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{sample-component \"one\" \"two\" elementId=\"two-positional\"}}\\n {{sample-component \"one\" second=\"two\" elementId=\"one-positional\"}}\\n {{sample-component first=\"one\" second=\"two\" elementId=\"no-positional\"}}'], ['\\n {{sample-component \"one\" \"two\" elementId=\"two-positional\"}}\\n {{sample-component \"one\" second=\"two\" elementId=\"one-positional\"}}\\n {{sample-component first=\"one\" second=\"two\" elementId=\"no-positional\"}}']),\n _templateObject10 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each n as |name|}}\\n {{name}}\\n {{/each}}'], ['\\n {{#each n as |name|}}\\n {{name}}\\n {{/each}}']),\n _templateObject11 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with-template name=\"with-block\"}}\\n [In block - {{name}}]\\n {{/with-template}}\\n {{with-template name=\"without-block\"}}'], ['\\n {{#with-template name=\"with-block\"}}\\n [In block - {{name}}]\\n {{/with-template}}\\n {{with-template name=\"without-block\"}}']),\n _templateObject12 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if hasBlock}}\\n {{yield}}\\n {{else}}\\n No Block!\\n {{/if}}'], ['\\n {{#if hasBlock}}\\n {{yield}}\\n {{else}}\\n No Block!\\n {{/if}}']),\n _templateObject13 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with-block}}\\n In template\\n {{/with-block}}'], ['\\n {{#with-block}}\\n In template\\n {{/with-block}}']),\n _templateObject14 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if hasBlockParams}}\\n {{yield this}} - In Component\\n {{else}}\\n {{yield}} No Block!\\n {{/if}}'], ['\\n {{#if hasBlockParams}}\\n {{yield this}} - In Component\\n {{else}}\\n {{yield}} No Block!\\n {{/if}}']),\n _templateObject15 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with-block as |something|}}\\n In template\\n {{/with-block}}'], ['\\n {{#with-block as |something|}}\\n In template\\n {{/with-block}}']),\n _templateObject16 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if hasBlockParams}}\\n {{yield this}}\\n {{else}}\\n {{yield}} No Block Param!\\n {{/if}}'], ['\\n {{#if hasBlockParams}}\\n {{yield this}}\\n {{else}}\\n {{yield}} No Block Param!\\n {{/if}}']),\n _templateObject17 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with-block}}\\n In block\\n {{/with-block}}'], ['\\n {{#with-block}}\\n In block\\n {{/with-block}}']),\n _templateObject18 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if predicate}}\\n Yes:{{yield someValue}}\\n {{else}}\\n No:{{yield to=\"inverse\"}}\\n {{/if}}'], ['\\n {{#if predicate}}\\n Yes:{{yield someValue}}\\n {{else}}\\n No:{{yield to=\"inverse\"}}\\n {{/if}}']),\n _templateObject19 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#my-if predicate=activated someValue=42 as |result|}}\\n Hello{{result}}\\n {{else}}\\n Goodbye\\n {{/my-if}}'], ['\\n {{#my-if predicate=activated someValue=42 as |result|}}\\n Hello{{result}}\\n {{else}}\\n Goodbye\\n {{/my-if}}']),\n _templateObject20 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if (hasBlock \"inverse\")}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if (hasBlock \"inverse\")}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject21 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-inverse}}{{/check-inverse}}\\n {{#check-inverse}}{{else}}{{/check-inverse}}'], ['\\n {{#check-inverse}}{{/check-inverse}}\\n {{#check-inverse}}{{else}}{{/check-inverse}}']),\n _templateObject22 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if (hasBlock)}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if (hasBlock)}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject23 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{check-block}}\\n {{#check-block}}{{/check-block}}'], ['\\n {{check-block}}\\n {{#check-block}}{{/check-block}}']),\n _templateObject24 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if (hasBlockParams \"inverse\")}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if (hasBlockParams \"inverse\")}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject25 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-inverse}}{{/check-inverse}}\\n {{#check-inverse as |something|}}{{/check-inverse}}'], ['\\n {{#check-inverse}}{{/check-inverse}}\\n {{#check-inverse as |something|}}{{/check-inverse}}']),\n _templateObject26 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if (hasBlockParams)}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if (hasBlockParams)}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject27 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-block}}{{/check-block}}\\n {{#check-block as |something|}}{{/check-block}}'], ['\\n {{#check-block}}{{/check-block}}\\n {{#check-block as |something|}}{{/check-block}}']),\n _templateObject28 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if hasBlock}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if hasBlock}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject29 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-params}}{{/check-params}}\\n {{#check-params as |foo|}}{{/check-params}}'], ['\\n {{#check-params}}{{/check-params}}\\n {{#check-params as |foo|}}{{/check-params}}']),\n _templateObject30 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if hasBlockParams}}\\n Yes\\n {{else}}\\n No\\n {{/if}}'], ['\\n {{#if hasBlockParams}}\\n Yes\\n {{else}}\\n No\\n {{/if}}']),\n _templateObject31 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{check-attr}}\\n {{#check-attr}}{{/check-attr}}'], ['\\n {{check-attr}}\\n {{#check-attr}}{{/check-attr}}']),\n _templateObject32 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-attr}}{{/check-attr}}\\n {{#check-attr}}{{else}}{{/check-attr}}'], ['\\n {{#check-attr}}{{/check-attr}}\\n {{#check-attr}}{{else}}{{/check-attr}}']),\n _templateObject33 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-attr}}{{/check-attr}}\\n {{#check-attr as |something|}}{{/check-attr}}'], ['\\n {{#check-attr}}{{/check-attr}}\\n {{#check-attr as |something|}}{{/check-attr}}']),\n _templateObject34 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{check-helper}}\\n {{#check-helper}}{{/check-helper}}'], ['\\n {{check-helper}}\\n {{#check-helper}}{{/check-helper}}']),\n _templateObject35 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-helper}}{{/check-helper}}\\n {{#check-helper}}{{else}}{{/check-helper}}'], ['\\n {{#check-helper}}{{/check-helper}}\\n {{#check-helper}}{{else}}{{/check-helper}}']),\n _templateObject36 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#check-helper}}{{/check-helper}}\\n {{#check-helper as |something|}}{{/check-helper}}'], ['\\n {{#check-helper}}{{/check-helper}}\\n {{#check-helper as |something|}}{{/check-helper}}']),\n _templateObject37 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#x-outer}}\\n {{#if showInner}}\\n {{x-inner}}\\n {{/if}}\\n {{/x-outer}}'], ['\\n {{#x-outer}}\\n {{#if showInner}}\\n {{x-inner}}\\n {{/if}}\\n {{/x-outer}}']),\n _templateObject38 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n In layout. {{#each items as |item|}}\\n [{{child-non-block item=item}}]\\n {{/each}}'], ['\\n In layout. {{#each items as |item|}}\\n [{{child-non-block item=item}}]\\n {{/each}}']),\n _templateObject39 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#some-clicky-thing classNames=\"baz\"}}\\n Click Me\\n {{/some-clicky-thing}}'], ['\\n {{#some-clicky-thing classNames=\"baz\"}}\\n Click Me\\n {{/some-clicky-thing}}']),\n _templateObject40 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each blahzz as |p|}}\\n {{p}}\\n {{/each}}\\n - {{yield}}'], ['\\n {{#each blahzz as |p|}}\\n {{p}}\\n {{/each}}\\n - {{yield}}']),\n _templateObject41 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#some-clicky-thing blahzz=\"baz\"}}\\n Click Me\\n {{/some-clicky-thing}}'], ['\\n {{#some-clicky-thing blahzz=\"baz\"}}\\n Click Me\\n {{/some-clicky-thing}}']),\n _templateObject42 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#x-select value=value as |select|}}\\n {{#x-option value=\"1\" select=select}}1{{/x-option}}\\n {{#x-option value=\"2\" select=select}}2{{/x-option}}\\n {{/x-select}}\\n '], ['\\n {{#x-select value=value as |select|}}\\n {{#x-option value=\"1\" select=select}}1{{/x-option}}\\n {{#x-option value=\"2\" select=select}}2{{/x-option}}\\n {{/x-select}}\\n ']),\n _templateObject43 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#list-items items=items as |thing|}}\\n |{{thing}}|\\n\\n {{#if editMode}}\\n Remove {{thing}}\\n {{/if}}\\n {{/list-items}}\\n '], ['\\n {{#list-items items=items as |thing|}}\\n |{{thing}}|\\n\\n {{#if editMode}}\\n Remove {{thing}}\\n {{/if}}\\n {{/list-items}}\\n ']);\n\n (0, _testCase.moduleFor)('Components test: curly components', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can render a basic component'] = function testItCanRenderABasicComponent() {\n var _this2 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it can render a template only component'] = function testItCanRenderATemplateOnlyComponent() {\n var _this3 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it can have a custom id and it is not bound'] = function testItCanHaveACustomIdAndItIsNotBound() {\n var _this4 = this;\n\n this.registerComponent('foo-bar', { template: '{{id}} {{elementId}}' });\n\n this.render('{{foo-bar id=customId}}', {\n customId: 'bizz'\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'bizz' }, content: 'bizz bizz' });\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'bizz' }, content: 'bizz bizz' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'customId', 'bar');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'bizz' }, content: 'bar bizz' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'customId', 'bizz');\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'bizz' }, content: 'bizz bizz' });\n };\n\n _class.prototype['@test elementId cannot change'] = function testElementIdCannotChange(assert) {\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n elementId: 'blahzorz',\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{elementId}}' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'blahzorz' }, content: 'blahzorz' });\n\n if (EmberDev && !EmberDev.runningProdBuild) {\n var willThrow = function () {\n return (0, _emberMetal.run)(null, _emberMetal.set, component, 'elementId', 'herpyderpy');\n };\n\n assert.throws(willThrow, /Changing a view's elementId after creation is not allowed/);\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { id: 'blahzorz' }, content: 'blahzorz' });\n }\n };\n\n _class.prototype['@test can specify template with `layoutName` property'] = function testCanSpecifyTemplateWithLayoutNameProperty() {\n var FooBarComponent = _helpers.Component.extend({\n elementId: 'blahzorz',\n layoutName: 'fizz-bar',\n init: function () {\n this._super.apply(this, arguments);\n this.local = 'hey';\n }\n });\n\n this.registerTemplate('fizz-bar', 'FIZZ BAR {{local}}');\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar}}');\n\n this.assertText('FIZZ BAR hey');\n };\n\n _class.prototype['@test can specify template with `defaultLayout` property [DEPRECATED]'] = function testCanSpecifyTemplateWithDefaultLayoutPropertyDEPRECATED() {\n expectDeprecation(/Specifying `defaultLayout` to .* is deprecated. Please use `layout` instead/);\n var FooBarComponent = _helpers.Component.extend({\n elementId: 'blahzorz',\n defaultLayout: (0, _helpers.compile)('much wat {{lulz}}'),\n init: function () {\n this._super.apply(this, arguments);\n this.lulz = 'hey';\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar}}');\n\n this.assertText('much wat hey');\n };\n\n _class.prototype['@test layout takes precedence over defaultLayout'] = function testLayoutTakesPrecedenceOverDefaultLayout() {\n var FooBarComponent = _helpers.Component.extend({\n elementId: 'blahzorz',\n layout: (0, _helpers.compile)('so much layout wat {{lulz}}'),\n defaultLayout: (0, _helpers.compile)('much wat {{lulz}}'),\n init: function () {\n this._super.apply(this, arguments);\n this.lulz = 'hey';\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar}}');\n\n this.assertText('so much layout wat hey');\n };\n\n _class.prototype['@test layout supports computed property'] = function testLayoutSupportsComputedProperty() {\n var FooBarComponent = _helpers.Component.extend({\n elementId: 'blahzorz',\n layout: (0, _emberMetal.computed)(function () {\n return (0, _helpers.compile)('so much layout wat {{lulz}}');\n }),\n init: function () {\n this._super.apply(this, arguments);\n this.lulz = 'heyo';\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar}}');\n\n this.assertText('so much layout wat heyo');\n };\n\n _class.prototype['@test passing undefined elementId results in a default elementId'] = function testPassingUndefinedElementIdResultsInADefaultElementId(assert) {\n var _this5 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'h1'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'something' });\n\n this.render('{{foo-bar id=somethingUndefined}}');\n\n var foundId = this.$('h1').attr('id');\n assert.ok(/^ember/.test(foundId), 'Has a reasonable id attribute (found id=' + foundId + ').');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n var newFoundId = this.$('h1').attr('id');\n assert.ok(/^ember/.test(newFoundId), 'Has a reasonable id attribute (found id=' + newFoundId + ').');\n\n assert.equal(foundId, newFoundId);\n };\n\n _class.prototype['@test id is an alias for elementId'] = function testIdIsAnAliasForElementId(assert) {\n var _this6 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'h1'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'something' });\n\n this.render('{{foo-bar id=\"custom-id\"}}');\n\n var foundId = this.$('h1').attr('id');\n assert.equal(foundId, 'custom-id');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n var newFoundId = this.$('h1').attr('id');\n assert.equal(newFoundId, 'custom-id');\n\n assert.equal(foundId, newFoundId);\n };\n\n _class.prototype['@test cannot pass both id and elementId at the same time'] = function testCannotPassBothIdAndElementIdAtTheSameTime(assert) {\n var _this7 = this;\n\n this.registerComponent('foo-bar', { template: '' });\n\n expectAssertion(function () {\n _this7.render('{{foo-bar id=\"zomg\" elementId=\"lol\"}}');\n }, /You cannot invoke a component with both 'id' and 'elementId' at the same time./);\n };\n\n _class.prototype['@test it can have a custom tagName'] = function testItCanHaveACustomTagName() {\n var _this8 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'foo-bar'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n };\n\n _class.prototype['@test it can have a custom tagName set in the constructor'] = function testItCanHaveACustomTagNameSetInTheConstructor() {\n var _this9 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n this.tagName = 'foo-bar';\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n };\n\n _class.prototype['@test it can have a custom tagName from the invocation'] = function testItCanHaveACustomTagNameFromTheInvocation() {\n var _this10 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar tagName=\"foo-bar\"}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'foo-bar', content: 'hello' });\n };\n\n _class.prototype['@test tagName can not be a computed property'] = function testTagNameCanNotBeAComputedProperty(assert) {\n var _this11 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n tagName: (0, _emberMetal.computed)(function () {\n return 'foo-bar';\n })\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n expectAssertion(function () {\n _this11.render('{{foo-bar}}');\n }, /You cannot use a computed property for the component's `tagName` \\(<\\(.+>\\)\\./);\n };\n\n _class.prototype['@test class is applied before didInsertElement'] = function testClassIsAppliedBeforeDidInsertElement(assert) {\n var componentClass = void 0;\n var FooBarComponent = _helpers.Component.extend({\n didInsertElement: function () {\n componentClass = this.element.className;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar class=\"foo-bar\"}}');\n\n assert.equal(componentClass, 'foo-bar ember-view');\n };\n\n _class.prototype['@test it can have custom classNames'] = function testItCanHaveCustomClassNames() {\n var _this12 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNames: ['foo', 'bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar') }, content: 'hello' });\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar') }, content: 'hello' });\n };\n\n _class.prototype['@test should not apply falsy class name'] = function testShouldNotApplyFalsyClassName() {\n var _this13 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar class=somethingFalsy}}', {\n somethingFalsy: false\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: 'ember-view' }, content: 'hello' });\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: 'ember-view' }, content: 'hello' });\n };\n\n _class.prototype['@test should apply classes of the dasherized property name when bound property specified is true'] = function testShouldApplyClassesOfTheDasherizedPropertyNameWhenBoundPropertySpecifiedIsTrue() {\n var _this14 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar class=model.someTruth}}', {\n model: { someTruth: true }\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view some-truth') }, content: 'hello' });\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view some-truth') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'model.someTruth', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view') }, content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'model', { someTruth: true });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view some-truth') }, content: 'hello' });\n };\n\n _class.prototype['@test class property on components can be dynamic'] = function testClassPropertyOnComponentsCanBeDynamic() {\n var _this15 = this;\n\n this.registerComponent('foo-bar', { template: 'hello' });\n\n this.render('{{foo-bar class=(if fooBar \"foo-bar\")}}', {\n fooBar: true\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') } });\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'fooBar', false);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'fooBar', true);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo-bar') } });\n };\n\n _class.prototype['@test it can have custom classNames from constructor'] = function testItCanHaveCustomClassNamesFromConstructor() {\n var _this16 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n this.classNames = this.classNames.slice();\n this.classNames.push('foo', 'bar', 'outside-' + this.get('extraClass'));\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar extraClass=\"baz\"}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar outside-baz') }, content: 'hello' });\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar outside-baz') }, content: 'hello' });\n };\n\n _class.prototype['@test it can set custom classNames from the invocation'] = function testItCanSetCustomClassNamesFromTheInvocation() {\n var _this17 = this;\n\n var FooBarComponent = _helpers.Component.extend({\n classNames: ['foo']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render((0, _abstractTestCase.strip)(_templateObject));\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar baz') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar baz') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo') }, content: 'hello' });\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertComponentElement(this.nthChild(0), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar baz') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(1), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo bar baz') }, content: 'hello' });\n this.assertComponentElement(this.nthChild(2), { tagName: 'div', attrs: { 'class': (0, _testHelpers.classes)('ember-view foo') }, content: 'hello' });\n };\n\n _class.prototype['@test it has an element'] = function testItHasAnElement() {\n var _this18 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n var element1 = instance.element;\n\n this.assertComponentElement(element1, { content: 'hello' });\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n var element2 = instance.element;\n\n this.assertComponentElement(element2, { content: 'hello' });\n\n this.assertSameNode(element2, element1);\n };\n\n _class.prototype['@test it has a jQuery proxy to the element'] = function testItHasAJQueryProxyToTheElement(assert) {\n var _this19 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{foo-bar}}');\n\n var element1 = instance.$()[0];\n\n this.assertComponentElement(element1, { content: 'hello' });\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n var element2 = instance.$()[0];\n\n this.assertComponentElement(element2, { content: 'hello' });\n\n this.assertSameNode(element2, element1);\n };\n\n _class.prototype['@test it scopes the jQuery proxy to the component element'] = function testItScopesTheJQueryProxyToTheComponentElement(assert) {\n var _this20 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'inner' });\n\n this.render('outer{{foo-bar}}');\n\n var $span = instance.$('span');\n\n assert.equal($span.length, 1);\n assert.equal($span.attr('class'), 'inner');\n\n this.runTask(function () {\n return _this20.rerender();\n });\n\n $span = instance.$('span');\n\n assert.equal($span.length, 1);\n assert.equal($span.attr('class'), 'inner');\n };\n\n _class.prototype['@test an empty component does not have childNodes'] = function testAnEmptyComponentDoesNotHaveChildNodes(assert) {\n var _this21 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'input',\n init: function () {\n this._super();\n fooBarInstance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { tagName: 'input' });\n\n assert.strictEqual(fooBarInstance.element.childNodes.length, 0);\n\n this.runTask(function () {\n return _this21.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'input' });\n\n assert.strictEqual(fooBarInstance.element.childNodes.length, 0);\n };\n\n _class.prototype['@test it has the right parentView and childViews'] = function testItHasTheRightParentViewAndChildViews(assert) {\n var _this22 = this;\n\n var fooBarInstance = void 0,\n fooBarBazInstance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarInstance = this;\n }\n });\n\n var FooBarBazComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarBazInstance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'foo-bar {{foo-bar-baz}}' });\n this.registerComponent('foo-bar-baz', { ComponentClass: FooBarBazComponent, template: 'foo-bar-baz' });\n\n this.render('{{foo-bar}}');\n this.assertText('foo-bar foo-bar-baz');\n\n assert.equal(fooBarInstance.parentView, this.component);\n assert.equal(fooBarBazInstance.parentView, fooBarInstance);\n\n assert.deepEqual(this.component.childViews, [fooBarInstance]);\n assert.deepEqual(fooBarInstance.childViews, [fooBarBazInstance]);\n\n this.runTask(function () {\n return _this22.rerender();\n });\n this.assertText('foo-bar foo-bar-baz');\n\n assert.equal(fooBarInstance.parentView, this.component);\n assert.equal(fooBarBazInstance.parentView, fooBarInstance);\n\n assert.deepEqual(this.component.childViews, [fooBarInstance]);\n assert.deepEqual(fooBarInstance.childViews, [fooBarBazInstance]);\n };\n\n _class.prototype['@test it renders passed named arguments'] = function testItRendersPassedNamedArguments() {\n var _this23 = this;\n\n this.registerComponent('foo-bar', {\n template: '{{foo}}'\n });\n\n this.render('{{foo-bar foo=model.bar}}', {\n model: {\n bar: 'Hola'\n }\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this23.rerender();\n });\n\n this.assertText('Hola');\n\n this.runTask(function () {\n return _this23.context.set('model.bar', 'Hello');\n });\n\n this.assertText('Hello');\n\n this.runTask(function () {\n return _this23.context.set('model', { bar: 'Hola' });\n });\n\n this.assertText('Hola');\n };\n\n _class.prototype['@test it can render a basic component with a block'] = function testItCanRenderABasicComponentWithABlock() {\n var _this24 = this;\n\n this.registerComponent('foo-bar', { template: '{{yield}} - In component' });\n\n this.render('{{#foo-bar}}hello{{/foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello - In component' });\n\n this.runTask(function () {\n return _this24.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello - In component' });\n };\n\n _class.prototype['@test it can render a basic component with a block when the yield is in a partial'] = function testItCanRenderABasicComponentWithABlockWhenTheYieldIsInAPartial() {\n var _this25 = this;\n\n this.registerPartial('_partialWithYield', 'yielded: [{{yield}}]');\n\n this.registerComponent('foo-bar', { template: '{{partial \"partialWithYield\"}} - In component' });\n\n this.render('{{#foo-bar}}hello{{/foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'yielded: [hello] - In component' });\n\n this.runTask(function () {\n return _this25.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'yielded: [hello] - In component' });\n };\n\n _class.prototype['@test it can render a basic component with a block param when the yield is in a partial'] = function testItCanRenderABasicComponentWithABlockParamWhenTheYieldIsInAPartial() {\n var _this26 = this;\n\n this.registerPartial('_partialWithYield', 'yielded: [{{yield \"hello\"}}]');\n\n this.registerComponent('foo-bar', { template: '{{partial \"partialWithYield\"}} - In component' });\n\n this.render('{{#foo-bar as |value|}}{{value}}{{/foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'yielded: [hello] - In component' });\n\n this.runTask(function () {\n return _this26.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'yielded: [hello] - In component' });\n };\n\n _class.prototype['@test it renders the layout with the component instance as the context'] = function testItRendersTheLayoutWithTheComponentInstanceAsTheContext() {\n var _this27 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n this.set('message', 'hello');\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{message}}' });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this27.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'message', 'goodbye');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'goodbye' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'message', 'hello');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it preserves the outer context when yielding'] = function testItPreservesTheOuterContextWhenYielding() {\n var _this28 = this;\n\n this.registerComponent('foo-bar', { template: '{{yield}}' });\n\n this.render('{{#foo-bar}}{{message}}{{/foo-bar}}', { message: 'hello' });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this28.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.context, 'message', 'goodbye');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'goodbye' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.context, 'message', 'hello');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it can yield a block param named for reserved words [GH#14096]'] = function testItCanYieldABlockParamNamedForReservedWordsGH14096() {\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n\n\n name: 'foo-bar'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{yield this}}' });\n\n this.render('{{#foo-bar as |component|}}{{component.name}}{{/foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'foo-bar' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'name', 'derp-qux');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'derp-qux' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'name', 'foo-bar');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'foo-bar' });\n };\n\n _class.prototype['@test it can yield internal and external properties positionally'] = function testItCanYieldInternalAndExternalPropertiesPositionally() {\n var _this29 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n\n greeting: 'hello'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{yield greeting greetee.firstName}}' });\n\n this.render('{{#foo-bar greetee=person as |greeting name|}}{{name}} {{person.lastName}}, {{greeting}}{{/foo-bar}}', {\n person: {\n firstName: 'Joel',\n lastName: 'Kang'\n }\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Joel Kang, hello' });\n\n this.runTask(function () {\n return _this29.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Joel Kang, hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'person', { firstName: 'Dora', lastName: 'the Explorer' });\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Dora the Explorer, hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'greeting', 'hola');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Dora the Explorer, hola' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(instance, 'greeting', 'hello');\n (0, _emberMetal.set)(_this29.context, 'person', {\n firstName: 'Joel',\n lastName: 'Kang'\n });\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Joel Kang, hello' });\n };\n\n _class.prototype['@test #11519 - block param infinite loop'] = function test11519BlockParamInfiniteLoop() {\n var _this30 = this;\n\n var instance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n },\n\n danger: 0\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{danger}}{{yield danger}}' });\n\n // On initial render, create streams. The bug will not have manifested yet, but at this point\n // we have created streams that create a circular invalidation.\n this.render('{{#foo-bar as |dangerBlockParam|}}{{/foo-bar}}');\n\n this.assertText('0');\n\n // Trigger a non-revalidating re-render. The yielded block will not be dirtied\n // nor will block param streams, and thus no infinite loop will occur.\n this.runTask(function () {\n return _this30.rerender();\n });\n\n this.assertText('0');\n\n // Trigger a revalidation, which will cause an infinite loop without the fix\n // in place. Note that we do not see the infinite loop is in testing mode,\n // because a deprecation warning about re-renders is issued, which Ember\n // treats as an exception.\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'danger', 1);\n });\n\n this.assertText('1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'danger', 0);\n });\n\n this.assertText('0');\n };\n\n _class.prototype['@test the component and its child components are destroyed'] = function testTheComponentAndItsChildComponentsAreDestroyed(assert) {\n var _this31 = this;\n\n var destroyed = { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 };\n\n this.registerComponent('foo-bar', {\n template: '{{id}} {{yield}}',\n ComponentClass: _helpers.Component.extend({\n willDestroy: function () {\n this._super();\n destroyed[this.get('id')]++;\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n cond1: true,\n cond2: true,\n cond3: true,\n cond4: true,\n cond5: true\n });\n\n this.assertText('1 2 3 4 5 6 7 8 ');\n\n this.runTask(function () {\n return _this31.rerender();\n });\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this31.context, 'cond5', false);\n });\n\n this.assertText('1 2 3 4 8 ');\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 0, 4: 0, 5: 1, 6: 1, 7: 1, 8: 0 });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this31.context, 'cond3', false);\n (0, _emberMetal.set)(_this31.context, 'cond5', true);\n (0, _emberMetal.set)(_this31.context, 'cond4', false);\n });\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1 });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this31.context, 'cond2', false);\n (0, _emberMetal.set)(_this31.context, 'cond1', false);\n });\n\n assert.deepEqual(destroyed, { 1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1 });\n };\n\n _class.prototype['@test should escape HTML in normal mustaches'] = function testShouldEscapeHTMLInNormalMustaches() {\n var _this32 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n output: 'you need to be more bold'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{output}}' });\n\n this.render('{{foo-bar}}');\n\n this.assertText('you need to be more bold');\n\n this.runTask(function () {\n return _this32.rerender();\n });\n\n this.assertText('you need to be more bold');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', 'you are so super');\n });\n\n this.assertText('you are so super');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', 'you need to be more bold');\n });\n };\n\n _class.prototype['@test should not escape HTML in triple mustaches'] = function testShouldNotEscapeHTMLInTripleMustaches(assert) {\n var _this33 = this;\n\n var expectedHtmlBold = 'you need to be more bold';\n var expectedHtmlItalic = 'you are so super';\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n output: expectedHtmlBold\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{{output}}}' });\n\n this.render('{{foo-bar}}');\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n\n this.runTask(function () {\n return _this33.rerender();\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', expectedHtmlItalic);\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlItalic);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', expectedHtmlBold);\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n };\n\n _class.prototype['@test should not escape HTML if string is a htmlSafe'] = function testShouldNotEscapeHTMLIfStringIsAHtmlSafe(assert) {\n var _this34 = this;\n\n var expectedHtmlBold = 'you need to be more bold';\n var expectedHtmlItalic = 'you are so super';\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n output: (0, _helpers.htmlSafe)(expectedHtmlBold)\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{output}}' });\n\n this.render('{{foo-bar}}');\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n\n this.runTask(function () {\n return _this34.rerender();\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', (0, _helpers.htmlSafe)(expectedHtmlItalic));\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlItalic);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'output', (0, _helpers.htmlSafe)(expectedHtmlBold));\n });\n\n (0, _testHelpers.equalTokens)(this.firstChild, expectedHtmlBold);\n };\n\n _class.prototype['@test late bound layouts return the same definition'] = function testLateBoundLayoutsReturnTheSameDefinition(assert) {\n var templateIds = [];\n\n // This is testing the scenario where you import a template and\n // set it to the layout property:\n //\n // import layout from './template';\n //\n // export default Ember.Component.extend({\n // layout\n // });\n var hello = (0, _helpers.compile)('Hello');\n var bye = (0, _helpers.compile)('Bye');\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.layout = this.cond ? hello : bye;\n templateIds.push(this.layout.id);\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent });\n\n this.render('{{foo-bar cond=true}}{{foo-bar cond=false}}{{foo-bar cond=true}}{{foo-bar cond=false}}');\n\n var t1 = templateIds[0],\n t2 = templateIds[1],\n t3 = templateIds[2],\n t4 = templateIds[3];\n\n assert.equal(t1, t3);\n assert.equal(t2, t4);\n };\n\n _class.prototype['@test can use isStream property without conflict (#13271)'] = function testCanUseIsStreamPropertyWithoutConflict13271() {\n var _this35 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n isStream: true,\n\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n\n template: (0, _abstractTestCase.strip)(_templateObject3)\n });\n\n this.render('{{foo-bar}}');\n\n this.assertComponentElement(this.firstChild, { content: 'true' });\n\n this.runTask(function () {\n return _this35.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'true' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'isStream', false);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'isStream', true);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'true' });\n };\n\n _class.prototype['@test lookup of component takes priority over property'] = function testLookupOfComponentTakesPriorityOverProperty() {\n var _this36 = this;\n\n this.registerComponent('some-component', {\n template: 'some-component'\n });\n\n this.render('{{some-prop}} {{some-component}}', {\n 'some-component': 'not-some-component',\n 'some-prop': 'some-prop'\n });\n\n this.assertText('some-prop some-component');\n\n this.runTask(function () {\n return _this36.rerender();\n });\n\n this.assertText('some-prop some-component');\n };\n\n _class.prototype['@test component without dash is not looked up'] = function testComponentWithoutDashIsNotLookedUp() {\n var _this37 = this;\n\n this.registerComponent('somecomponent', {\n template: 'somecomponent'\n });\n\n this.render('{{somecomponent}}', {\n 'somecomponent': 'notsomecomponent'\n });\n\n this.assertText('notsomecomponent');\n\n this.runTask(function () {\n return _this37.rerender();\n });\n\n this.assertText('notsomecomponent');\n\n this.runTask(function () {\n return _this37.context.set('somecomponent', 'not not notsomecomponent');\n });\n\n this.assertText('not not notsomecomponent');\n\n this.runTask(function () {\n return _this37.context.set('somecomponent', 'notsomecomponent');\n });\n\n this.assertText('notsomecomponent');\n };\n\n _class.prototype['@test non-block with properties on attrs'] = function testNonBlockWithPropertiesOnAttrs() {\n var _this38 = this;\n\n this.registerComponent('non-block', {\n template: 'In layout - someProp: {{attrs.someProp}}'\n });\n\n this.render('{{non-block someProp=prop}}', {\n prop: 'something here'\n });\n\n this.assertText('In layout - someProp: something here');\n\n this.runTask(function () {\n return _this38.rerender();\n });\n\n this.assertText('In layout - someProp: something here');\n\n this.runTask(function () {\n return _this38.context.set('prop', 'other thing there');\n });\n\n this.assertText('In layout - someProp: other thing there');\n\n this.runTask(function () {\n return _this38.context.set('prop', 'something here');\n });\n\n this.assertText('In layout - someProp: something here');\n };\n\n _class.prototype['@test non-block with properties overridden in init'] = function testNonBlockWithPropertiesOverriddenInInit() {\n var _this39 = this;\n\n var instance = void 0;\n this.registerComponent('non-block', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n instance = this;\n this.someProp = 'value set in instance';\n }\n }),\n template: 'In layout - someProp: {{someProp}}'\n });\n\n this.render('{{non-block someProp=prop}}', {\n prop: 'something passed when invoked'\n });\n\n this.assertText('In layout - someProp: value set in instance');\n\n this.runTask(function () {\n return _this39.rerender();\n });\n\n this.assertText('In layout - someProp: value set in instance');\n\n this.runTask(function () {\n return _this39.context.set('prop', 'updated something passed when invoked');\n });\n\n this.assertText('In layout - someProp: updated something passed when invoked');\n\n this.runTask(function () {\n return instance.set('someProp', 'update value set in instance');\n });\n\n this.assertText('In layout - someProp: update value set in instance');\n\n this.runTask(function () {\n return _this39.context.set('prop', 'something passed when invoked');\n });\n this.runTask(function () {\n return instance.set('someProp', 'value set in instance');\n });\n\n this.assertText('In layout - someProp: value set in instance');\n };\n\n _class.prototype['@test rerendering component with attrs from parent'] = function testRerenderingComponentWithAttrsFromParent(assert) {\n var _this40 = this;\n\n var willUpdateCount = 0;\n var didReceiveAttrsCount = 0;\n\n function expectHooks(_ref, callback) {\n var willUpdate = _ref.willUpdate,\n didReceiveAttrs = _ref.didReceiveAttrs;\n\n willUpdateCount = 0;\n didReceiveAttrsCount = 0;\n\n callback();\n\n if (willUpdate) {\n assert.strictEqual(willUpdateCount, 1, 'The willUpdate hook was fired');\n } else {\n assert.strictEqual(willUpdateCount, 0, 'The willUpdate hook was not fired');\n }\n\n if (didReceiveAttrs) {\n assert.strictEqual(didReceiveAttrsCount, 1, 'The didReceiveAttrs hook was fired');\n } else {\n assert.strictEqual(didReceiveAttrsCount, 0, 'The didReceiveAttrs hook was not fired');\n }\n }\n\n this.registerComponent('non-block', {\n ComponentClass: _helpers.Component.extend({\n didReceiveAttrs: function () {\n didReceiveAttrsCount++;\n },\n willUpdate: function () {\n willUpdateCount++;\n }\n }),\n template: 'In layout - someProp: {{someProp}}'\n });\n\n expectHooks({ willUpdate: false, didReceiveAttrs: true }, function () {\n _this40.render('{{non-block someProp=someProp}}', {\n someProp: 'wycats'\n });\n });\n\n this.assertText('In layout - someProp: wycats');\n\n // Note: Hooks are not fired in Glimmer for idempotent re-renders\n expectHooks({ willUpdate: false, didReceiveAttrs: false }, function () {\n _this40.runTask(function () {\n return _this40.rerender();\n });\n });\n\n this.assertText('In layout - someProp: wycats');\n\n expectHooks({ willUpdate: true, didReceiveAttrs: true }, function () {\n _this40.runTask(function () {\n return _this40.context.set('someProp', 'tomdale');\n });\n });\n\n this.assertText('In layout - someProp: tomdale');\n\n // Note: Hooks are not fired in Glimmer for idempotent re-renders\n expectHooks({ willUpdate: false, didReceiveAttrs: false }, function () {\n _this40.runTask(function () {\n return _this40.rerender();\n });\n });\n\n this.assertText('In layout - someProp: tomdale');\n\n expectHooks({ willUpdate: true, didReceiveAttrs: true }, function () {\n _this40.runTask(function () {\n return _this40.context.set('someProp', 'wycats');\n });\n });\n\n this.assertText('In layout - someProp: wycats');\n };\n\n _class.prototype['@test this.attrs.foo === attrs.foo === foo'] = function testThisAttrsFooAttrsFooFoo() {\n var _this41 = this;\n\n this.registerComponent('foo-bar', {\n template: (0, _abstractTestCase.strip)(_templateObject4)\n });\n\n this.render('{{foo-bar value=model.value items=model.items}}', {\n model: {\n value: 'wat',\n items: [1, 2, 3]\n }\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n _this41.context.set('model.value', 'lul');\n _this41.context.set('model.items', [1]);\n });\n\n this.assertText((0, _abstractTestCase.strip)(_templateObject5));\n\n this.runTask(function () {\n return _this41.context.set('model', { value: 'wat', items: [1, 2, 3] });\n });\n\n this.assertText('Args: wat | wat | wat123123123');\n };\n\n _class.prototype['@test non-block with properties on self'] = function testNonBlockWithPropertiesOnSelf() {\n var _this42 = this;\n\n this.registerComponent('non-block', {\n template: 'In layout - someProp: {{someProp}}'\n });\n\n this.render('{{non-block someProp=prop}}', {\n prop: 'something here'\n });\n\n this.assertText('In layout - someProp: something here');\n\n this.runTask(function () {\n return _this42.rerender();\n });\n\n this.assertText('In layout - someProp: something here');\n\n this.runTask(function () {\n return _this42.context.set('prop', 'something else');\n });\n\n this.assertText('In layout - someProp: something else');\n\n this.runTask(function () {\n return _this42.context.set('prop', 'something here');\n });\n\n this.assertText('In layout - someProp: something here');\n };\n\n _class.prototype['@test block with properties on self'] = function testBlockWithPropertiesOnSelf() {\n var _this43 = this;\n\n this.registerComponent('with-block', {\n template: 'In layout - someProp: {{someProp}} - {{yield}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject6), {\n prop: 'something here'\n });\n\n this.assertText('In layout - someProp: something here - In template');\n\n this.runTask(function () {\n return _this43.rerender();\n });\n\n this.assertText('In layout - someProp: something here - In template');\n\n this.runTask(function () {\n return _this43.context.set('prop', 'something else');\n });\n\n this.assertText('In layout - someProp: something else - In template');\n\n this.runTask(function () {\n return _this43.context.set('prop', 'something here');\n });\n\n this.assertText('In layout - someProp: something here - In template');\n };\n\n _class.prototype['@test block with properties on attrs'] = function testBlockWithPropertiesOnAttrs() {\n var _this44 = this;\n\n this.registerComponent('with-block', {\n template: 'In layout - someProp: {{attrs.someProp}} - {{yield}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject6), {\n prop: 'something here'\n });\n\n this.assertText('In layout - someProp: something here - In template');\n\n this.runTask(function () {\n return _this44.rerender();\n });\n\n this.assertText('In layout - someProp: something here - In template');\n\n this.runTask(function () {\n return _this44.context.set('prop', 'something else');\n });\n\n this.assertText('In layout - someProp: something else - In template');\n\n this.runTask(function () {\n return _this44.context.set('prop', 'something here');\n });\n\n this.assertText('In layout - someProp: something here - In template');\n };\n\n _class.prototype['@test static arbitrary number of positional parameters'] = function testStaticArbitraryNumberOfPositionalParameters(assert) {\n var _this45 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'names'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject7)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject8));\n\n assert.equal(this.$('#args-3').text(), 'Foo4Bar');\n assert.equal(this.$('#args-5').text(), 'Foo4Bar5Baz');\n\n this.runTask(function () {\n return _this45.rerender();\n });\n\n assert.equal(this.$('#args-3').text(), 'Foo4Bar');\n assert.equal(this.$('#args-5').text(), 'Foo4Bar5Baz');\n };\n\n _class.prototype['@test arbitrary positional parameter conflict with hash parameter is reported'] = function testArbitraryPositionalParameterConflictWithHashParameterIsReported() {\n var _this46 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'names'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject7)\n });\n\n expectAssertion(function () {\n _this46.render('{{sample-component \"Foo\" 4 \"Bar\" names=numbers id=\"args-3\"}}', {\n numbers: [1, 2, 3]\n });\n }, 'You cannot specify positional parameters and the hash argument `names`.');\n };\n\n _class.prototype['@test can use hash parameter instead of arbitrary positional param [GH #12444]'] = function testCanUseHashParameterInsteadOfArbitraryPositionalParamGH12444(assert) {\n var _this47 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'names'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject7)\n });\n\n this.render('{{sample-component names=things}}', {\n things: (0, _emberRuntime.A)(['Foo', 4, 'Bar'])\n });\n\n this.assertText('Foo4Bar');\n\n this.runTask(function () {\n return _this47.rerender();\n });\n\n this.assertText('Foo4Bar');\n\n this.runTask(function () {\n return _this47.context.get('things').pushObject(5);\n });\n\n this.assertText('Foo4Bar5');\n\n this.runTask(function () {\n return _this47.context.get('things').shiftObject();\n });\n\n this.assertText('4Bar5');\n\n this.runTask(function () {\n return _this47.context.get('things').clear();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this47.context.set('things', (0, _emberRuntime.A)(['Foo', 4, 'Bar']));\n });\n\n this.assertText('Foo4Bar');\n };\n\n _class.prototype['@test can use hash parameter instead of positional param'] = function testCanUseHashParameterInsteadOfPositionalParam(assert) {\n var _this48 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['first', 'second']\n }),\n template: '{{first}} - {{second}}'\n });\n\n // TODO: Fix when id is implemented\n this.render((0, _abstractTestCase.strip)(_templateObject9));\n\n assert.equal(this.$('#two-positional').text(), 'one - two');\n assert.equal(this.$('#one-positional').text(), 'one - two');\n assert.equal(this.$('#no-positional').text(), 'one - two');\n\n this.runTask(function () {\n return _this48.rerender();\n });\n\n assert.equal(this.$('#two-positional').text(), 'one - two');\n assert.equal(this.$('#one-positional').text(), 'one - two');\n assert.equal(this.$('#no-positional').text(), 'one - two');\n };\n\n _class.prototype['@test dynamic arbitrary number of positional parameters'] = function testDynamicArbitraryNumberOfPositionalParameters(assert) {\n var _this49 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'n'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject10)\n });\n\n this.render('{{sample-component user1 user2}}', {\n user1: 'Foo',\n user2: 4\n });\n\n this.assertText('Foo4');\n\n this.runTask(function () {\n return _this49.rerender();\n });\n\n this.assertText('Foo4');\n\n this.runTask(function () {\n return _this49.context.set('user1', 'Bar');\n });\n\n this.assertText('Bar4');\n\n this.runTask(function () {\n return _this49.context.set('user2', '5');\n });\n\n this.assertText('Bar5');\n\n this.runTask(function () {\n _this49.context.set('user1', 'Foo');\n _this49.context.set('user2', 4);\n });\n\n this.assertText('Foo4');\n };\n\n _class.prototype['@test with ariaRole specified'] = function testWithAriaRoleSpecified() {\n var _this50 = this;\n\n this.registerComponent('aria-test', {\n template: 'Here!'\n });\n\n this.render('{{aria-test ariaRole=role}}', {\n role: 'main'\n });\n\n this.assertComponentElement(this.firstChild, { attrs: { role: 'main' } });\n\n this.runTask(function () {\n return _this50.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { attrs: { role: 'main' } });\n\n this.runTask(function () {\n return _this50.context.set('role', 'input');\n });\n\n this.assertComponentElement(this.firstChild, { attrs: { role: 'input' } });\n\n this.runTask(function () {\n return _this50.context.set('role', 'main');\n });\n\n this.assertComponentElement(this.firstChild, { attrs: { role: 'main' } });\n };\n\n _class.prototype['@test `template` specified in component is overridden by block'] = function testTemplateSpecifiedInComponentIsOverriddenByBlock() {\n var _this51 = this;\n\n this.registerComponent('with-template', {\n ComponentClass: _helpers.Component.extend({\n template: (0, _helpers.compile)('Should not be used')\n }),\n template: '[In layout - {{name}}] {{yield}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject11), {\n name: 'Whoop, whoop!'\n });\n\n this.assertText('[In layout - with-block] [In block - Whoop, whoop!][In layout - without-block] ');\n\n this.runTask(function () {\n return _this51.rerender();\n });\n\n this.assertText('[In layout - with-block] [In block - Whoop, whoop!][In layout - without-block] ');\n\n this.runTask(function () {\n return _this51.context.set('name', 'Ole, ole');\n });\n\n this.assertText('[In layout - with-block] [In block - Ole, ole][In layout - without-block] ');\n\n this.runTask(function () {\n return _this51.context.set('name', 'Whoop, whoop!');\n });\n\n this.assertText('[In layout - with-block] [In block - Whoop, whoop!][In layout - without-block] ');\n };\n\n _class.prototype['@test hasBlock is true when block supplied'] = function testHasBlockIsTrueWhenBlockSupplied() {\n var _this52 = this;\n\n this.registerComponent('with-block', {\n template: (0, _abstractTestCase.strip)(_templateObject12)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject13));\n\n this.assertText('In template');\n\n this.runTask(function () {\n return _this52.rerender();\n });\n\n this.assertText('In template');\n };\n\n _class.prototype['@test hasBlock is false when no block supplied'] = function testHasBlockIsFalseWhenNoBlockSupplied() {\n var _this53 = this;\n\n this.registerComponent('with-block', {\n template: (0, _abstractTestCase.strip)(_templateObject12)\n });\n\n this.render('{{with-block}}');\n\n this.assertText('No Block!');\n\n this.runTask(function () {\n return _this53.rerender();\n });\n\n this.assertText('No Block!');\n };\n\n _class.prototype['@test hasBlockParams is true when block param supplied'] = function testHasBlockParamsIsTrueWhenBlockParamSupplied() {\n var _this54 = this;\n\n this.registerComponent('with-block', {\n template: (0, _abstractTestCase.strip)(_templateObject14)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject15));\n\n this.assertText('In template - In Component');\n\n this.runTask(function () {\n return _this54.rerender();\n });\n\n this.assertText('In template - In Component');\n };\n\n _class.prototype['@test hasBlockParams is false when no block param supplied'] = function testHasBlockParamsIsFalseWhenNoBlockParamSupplied() {\n var _this55 = this;\n\n this.registerComponent('with-block', {\n template: (0, _abstractTestCase.strip)(_templateObject16)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject17));\n\n this.assertText('In block No Block Param!');\n\n this.runTask(function () {\n return _this55.rerender();\n });\n\n this.assertText('In block No Block Param!');\n };\n\n _class.prototype['@test static named positional parameters'] = function testStaticNamedPositionalParameters() {\n var _this56 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n }),\n template: '{{name}}{{age}}'\n });\n\n this.render('{{sample-component \"Quint\" 4}}');\n\n this.assertText('Quint4');\n\n this.runTask(function () {\n return _this56.rerender();\n });\n\n this.assertText('Quint4');\n };\n\n _class.prototype['@test dynamic named positional parameters'] = function testDynamicNamedPositionalParameters() {\n var _this57 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n }),\n template: '{{name}}{{age}}'\n });\n\n this.render('{{sample-component myName myAge}}', {\n myName: 'Quint',\n myAge: 4\n });\n\n this.assertText('Quint4');\n\n this.runTask(function () {\n return _this57.rerender();\n });\n\n this.assertText('Quint4');\n\n this.runTask(function () {\n return _this57.context.set('myName', 'Sergio');\n });\n\n this.assertText('Sergio4');\n\n this.runTask(function () {\n return _this57.context.set('myAge', 2);\n });\n\n this.assertText('Sergio2');\n\n this.runTask(function () {\n _this57.context.set('myName', 'Quint');\n _this57.context.set('myAge', 4);\n });\n\n this.assertText('Quint4');\n };\n\n _class.prototype['@test if a value is passed as a non-positional parameter, it raises an assertion'] = function testIfAValueIsPassedAsANonPositionalParameterItRaisesAnAssertion() {\n var _this58 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name']\n }),\n template: '{{name}}'\n });\n\n expectAssertion(function () {\n _this58.render('{{sample-component notMyName name=myName}}', {\n myName: 'Quint',\n notMyName: 'Sergio'\n });\n }, 'You cannot specify both a positional param (at position 0) and the hash argument `name`.');\n };\n\n _class.prototype['@test yield to inverse'] = function testYieldToInverse() {\n var _this59 = this;\n\n this.registerComponent('my-if', {\n template: (0, _abstractTestCase.strip)(_templateObject18)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject19), {\n activated: true\n });\n\n this.assertText('Yes:Hello42');\n\n this.runTask(function () {\n return _this59.rerender();\n });\n\n this.assertText('Yes:Hello42');\n\n this.runTask(function () {\n return _this59.context.set('activated', false);\n });\n\n this.assertText('No:Goodbye');\n\n this.runTask(function () {\n return _this59.context.set('activated', true);\n });\n\n this.assertText('Yes:Hello42');\n };\n\n _class.prototype['@test expression hasBlock inverse'] = function testExpressionHasBlockInverse(assert) {\n this.registerComponent('check-inverse', {\n template: (0, _abstractTestCase.strip)(_templateObject20)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject21));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test expression hasBlock default'] = function testExpressionHasBlockDefault(assert) {\n this.registerComponent('check-block', {\n template: (0, _abstractTestCase.strip)(_templateObject22)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject23));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test expression hasBlockParams inverse'] = function testExpressionHasBlockParamsInverse(assert) {\n this.registerComponent('check-inverse', {\n template: (0, _abstractTestCase.strip)(_templateObject24)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject25));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'No' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test expression hasBlockParams default'] = function testExpressionHasBlockParamsDefault(assert) {\n this.registerComponent('check-block', {\n template: (0, _abstractTestCase.strip)(_templateObject26)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject27));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test non-expression hasBlock'] = function testNonExpressionHasBlock(assert) {\n this.registerComponent('check-block', {\n template: (0, _abstractTestCase.strip)(_templateObject28)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject23));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test expression hasBlockParams'] = function testExpressionHasBlockParams(assert) {\n this.registerComponent('check-params', {\n template: (0, _abstractTestCase.strip)(_templateObject26)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject29));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test non-expression hasBlockParams'] = function testNonExpressionHasBlockParams(assert) {\n this.registerComponent('check-params', {\n template: (0, _abstractTestCase.strip)(_templateObject30)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject29));\n\n this.assertComponentElement(this.firstChild, { content: 'No' });\n this.assertComponentElement(this.nthChild(1), { content: 'Yes' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlock expression in an attribute'] = function testHasBlockExpressionInAnAttribute(assert) {\n this.registerComponent('check-attr', {\n template: ''\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject31));\n\n (0, _testHelpers.equalsElement)(this.$('button')[0], 'button', { name: 'false' }, '');\n (0, _testHelpers.equalsElement)(this.$('button')[1], 'button', { name: 'true' }, '');\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlock inverse expression in an attribute'] = function testHasBlockInverseExpressionInAnAttribute(assert) {\n this.registerComponent('check-attr', {\n template: ''\n }, '');\n\n this.render((0, _abstractTestCase.strip)(_templateObject32));\n\n (0, _testHelpers.equalsElement)(this.$('button')[0], 'button', { name: 'false' }, '');\n (0, _testHelpers.equalsElement)(this.$('button')[1], 'button', { name: 'true' }, '');\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlockParams expression in an attribute'] = function testHasBlockParamsExpressionInAnAttribute(assert) {\n this.registerComponent('check-attr', {\n template: ''\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject33));\n\n (0, _testHelpers.equalsElement)(this.$('button')[0], 'button', { name: 'false' }, '');\n (0, _testHelpers.equalsElement)(this.$('button')[1], 'button', { name: 'true' }, '');\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlockParams inverse expression in an attribute'] = function testHasBlockParamsInverseExpressionInAnAttribute(assert) {\n this.registerComponent('check-attr', {\n template: ''\n }, '');\n\n this.render((0, _abstractTestCase.strip)(_templateObject33));\n\n (0, _testHelpers.equalsElement)(this.$('button')[0], 'button', { name: 'false' }, '');\n (0, _testHelpers.equalsElement)(this.$('button')[1], 'button', { name: 'false' }, '');\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlock as a param to a helper'] = function testHasBlockAsAParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if hasBlock \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject34));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'true' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlock as an expression param to a helper'] = function testHasBlockAsAnExpressionParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if (hasBlock) \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject34));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'true' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlock inverse as a param to a helper'] = function testHasBlockInverseAsAParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if (hasBlock \"inverse\") \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject35));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'true' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlockParams as a param to a helper'] = function testHasBlockParamsAsAParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if hasBlockParams \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject36));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'true' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlockParams as an expression param to a helper'] = function testHasBlockParamsAsAnExpressionParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if (hasBlockParams) \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject36));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'true' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test hasBlockParams inverse as a param to a helper'] = function testHasBlockParamsInverseAsAParamToAHelper(assert) {\n this.registerComponent('check-helper', {\n template: '{{if (hasBlockParams \"inverse\") \"true\" \"false\"}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject36));\n\n this.assertComponentElement(this.firstChild, { content: 'false' });\n this.assertComponentElement(this.nthChild(1), { content: 'false' });\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test component in template of a yielding component should have the proper parentView'] = function testComponentInTemplateOfAYieldingComponentShouldHaveTheProperParentView(assert) {\n var _this60 = this;\n\n var outer = void 0,\n innerTemplate = void 0,\n innerLayout = void 0;\n\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outer = this;\n }\n }),\n template: '{{x-inner-in-layout}}{{yield}}'\n });\n\n this.registerComponent('x-inner-in-template', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerTemplate = this;\n }\n })\n });\n\n this.registerComponent('x-inner-in-layout', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerLayout = this;\n }\n })\n });\n\n this.render('{{#x-outer}}{{x-inner-in-template}}{{/x-outer}}');\n\n assert.equal(innerTemplate.parentView, outer, 'receives the wrapping component as its parentView in template blocks');\n assert.equal(innerLayout.parentView, outer, 'receives the wrapping component as its parentView in layout');\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');\n\n this.runTask(function () {\n return _this60.rerender();\n });\n\n assert.equal(innerTemplate.parentView, outer, 'receives the wrapping component as its parentView in template blocks');\n assert.equal(innerLayout.parentView, outer, 'receives the wrapping component as its parentView in layout');\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');\n };\n\n _class.prototype['@test newly-added sub-components get correct parentView'] = function testNewlyAddedSubComponentsGetCorrectParentView(assert) {\n var _this61 = this;\n\n var outer = void 0,\n inner = void 0;\n\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outer = this;\n }\n })\n });\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n inner = this;\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject37), {\n showInner: false\n });\n\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');\n\n this.runTask(function () {\n return _this61.rerender();\n });\n\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView (after rerender)');\n\n this.runTask(function () {\n return _this61.context.set('showInner', true);\n });\n\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');\n assert.equal(inner.parentView, outer, 'receives the wrapping component as its parentView in template blocks');\n\n this.runTask(function () {\n return _this61.context.set('showInner', false);\n });\n\n assert.equal(outer.parentView, this.context, 'x-outer receives the ambient scope as its parentView');\n };\n\n _class.prototype['@test when a property is changed during children\\'s rendering'] = function testWhenAPropertyIsChangedDuringChildrenSRendering(assert) {\n var _this62 = this;\n\n var outer = void 0,\n middle = void 0;\n\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outer = this;\n },\n\n value: 1\n }),\n template: '{{#x-middle}}{{x-inner value=value}}{{/x-middle}}'\n });\n\n this.registerComponent('x-middle', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n middle = this;\n },\n\n value: null\n }),\n template: '
{{value}}
{{yield}}'\n });\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n value: null,\n pushDataUp: (0, _emberMetal.observer)('value', function () {\n middle.set('value', this.get('value'));\n })\n }),\n template: '
{{value}}
'\n });\n\n this.render('{{x-outer}}');\n\n assert.equal(this.$('#inner-value').text(), '1', 'initial render of inner');\n assert.equal(this.$('#middle-value').text(), '', 'initial render of middle (observers do not run during init)');\n\n this.runTask(function () {\n return _this62.rerender();\n });\n\n assert.equal(this.$('#inner-value').text(), '1', 'initial render of inner');\n assert.equal(this.$('#middle-value').text(), '', 'initial render of middle (observers do not run during init)');\n\n var expectedBacktrackingMessage = /modified \"value\" twice on <\\(.+> in a single render\\. It was rendered in \"component:x-middle\" and modified in \"component:x-inner\"/;\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n this.runTask(function () {\n return outer.set('value', 2);\n });\n } else {\n expectAssertion(function () {\n _this62.runTask(function () {\n return outer.set('value', 2);\n });\n }, expectedBacktrackingMessage);\n\n return;\n }\n\n assert.equal(this.$('#inner-value').text(), '2', 'second render of inner');\n assert.equal(this.$('#middle-value').text(), '2', 'second render of middle');\n\n this.runTask(function () {\n return outer.set('value', 3);\n });\n\n assert.equal(this.$('#inner-value').text(), '3', 'third render of inner');\n assert.equal(this.$('#middle-value').text(), '3', 'third render of middle');\n\n this.runTask(function () {\n return outer.set('value', 1);\n });\n\n assert.equal(this.$('#inner-value').text(), '1', 'reset render of inner');\n assert.equal(this.$('#middle-value').text(), '1', 'reset render of middle');\n };\n\n _class.prototype['@test when a shared dependency is changed during children\\'s rendering'] = function testWhenASharedDependencyIsChangedDuringChildrenSRendering(assert) {\n var _this63 = this;\n\n var outer = void 0;\n\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outer = this;\n },\n\n value: 1,\n wrapper: _emberRuntime.Object.create({ content: null })\n }),\n template: '
{{wrapper.content}}
{{x-inner value=value wrapper=wrapper}}'\n });\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didReceiveAttrs: function () {\n this.get('wrapper').set('content', this.get('value'));\n },\n\n value: null\n }),\n template: '
{{wrapper.content}}
'\n });\n\n var expectedBacktrackingMessage = /modified \"wrapper\\.content\" twice on in a single render\\. It was rendered in \"component:x-outer\" and modified in \"component:x-inner\"/;\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n this.render('{{x-outer}}');\n } else {\n expectAssertion(function () {\n _this63.render('{{x-outer}}');\n }, expectedBacktrackingMessage);\n\n return;\n }\n\n assert.equal(this.$('#inner-value').text(), '1', 'initial render of inner');\n assert.equal(this.$('#outer-value').text(), '1', 'initial render of outer');\n\n this.runTask(function () {\n return _this63.rerender();\n });\n\n assert.equal(this.$('#inner-value').text(), '1', 're-render of inner');\n assert.equal(this.$('#outer-value').text(), '1', 're-render of outer');\n\n this.runTask(function () {\n return outer.set('value', 2);\n });\n\n assert.equal(this.$('#inner-value').text(), '2', 'second render of inner');\n assert.equal(this.$('#outer-value').text(), '2', 'second render of outer');\n\n this.runTask(function () {\n return outer.set('value', 3);\n });\n\n assert.equal(this.$('#inner-value').text(), '3', 'third render of inner');\n assert.equal(this.$('#outer-value').text(), '3', 'third render of outer');\n\n this.runTask(function () {\n return outer.set('value', 1);\n });\n\n assert.equal(this.$('#inner-value').text(), '1', 'reset render of inner');\n assert.equal(this.$('#outer-value').text(), '1', 'reset render of outer');\n };\n\n _class.prototype['@test non-block with each rendering child components'] = function testNonBlockWithEachRenderingChildComponents() {\n var _this64 = this;\n\n this.registerComponent('non-block', {\n template: (0, _abstractTestCase.strip)(_templateObject38)\n });\n\n this.registerComponent('child-non-block', {\n template: 'Child: {{item}}.'\n });\n\n var items = (0, _emberRuntime.A)(['Tom', 'Dick', 'Harry']);\n\n this.render('{{non-block items=items}}', { items: items });\n\n this.assertText('In layout. [Child: Tom.][Child: Dick.][Child: Harry.]');\n\n this.runTask(function () {\n return _this64.rerender();\n });\n\n this.assertText('In layout. [Child: Tom.][Child: Dick.][Child: Harry.]');\n\n this.runTask(function () {\n return _this64.context.get('items').pushObject('Sergio');\n });\n\n this.assertText('In layout. [Child: Tom.][Child: Dick.][Child: Harry.][Child: Sergio.]');\n\n this.runTask(function () {\n return _this64.context.get('items').shiftObject();\n });\n\n this.assertText('In layout. [Child: Dick.][Child: Harry.][Child: Sergio.]');\n\n this.runTask(function () {\n return _this64.context.set('items', (0, _emberRuntime.A)(['Tom', 'Dick', 'Harry']));\n });\n\n this.assertText('In layout. [Child: Tom.][Child: Dick.][Child: Harry.]');\n };\n\n _class.prototype['@test specifying classNames results in correct class'] = function testSpecifyingClassNamesResultsInCorrectClass(assert) {\n var _this65 = this;\n\n this.registerComponent('some-clicky-thing', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'button',\n classNames: ['foo', 'bar']\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject39));\n\n // TODO: ember-view is no longer viewable in the classNames array. Bug or\n // feature?\n var expectedClassNames = ['ember-view', 'foo', 'bar', 'baz'];\n\n assert.ok(this.$('button').is('.foo.bar.baz.ember-view'), 'the element has the correct classes: ' + this.$('button').attr('class'));\n // `ember-view` is no longer in classNames.\n // assert.deepEqual(clickyThing.get('classNames'), expectedClassNames, 'classNames are properly combined');\n this.assertComponentElement(this.firstChild, { tagName: 'button', attrs: { 'class': (0, _testHelpers.classes)(expectedClassNames.join(' ')) } });\n\n this.runTask(function () {\n return _this65.rerender();\n });\n\n assert.ok(this.$('button').is('.foo.bar.baz.ember-view'), 'the element has the correct classes: ' + this.$('button').attr('class') + ' (rerender)');\n // `ember-view` is no longer in classNames.\n // assert.deepEqual(clickyThing.get('classNames'), expectedClassNames, 'classNames are properly combined (rerender)');\n this.assertComponentElement(this.firstChild, { tagName: 'button', attrs: { 'class': (0, _testHelpers.classes)(expectedClassNames.join(' ')) } });\n };\n\n _class.prototype['@test specifying custom concatenatedProperties avoids clobbering'] = function testSpecifyingCustomConcatenatedPropertiesAvoidsClobbering(assert) {\n var _this66 = this;\n\n this.registerComponent('some-clicky-thing', {\n ComponentClass: _helpers.Component.extend({\n concatenatedProperties: ['blahzz'],\n blahzz: ['blark', 'pory']\n }),\n template: (0, _abstractTestCase.strip)(_templateObject40)\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject41));\n\n this.assertText('blarkporybaz- Click Me');\n\n this.runTask(function () {\n return _this66.rerender();\n });\n\n this.assertText('blarkporybaz- Click Me');\n };\n\n _class.prototype['@test a two way binding flows upstream when consumed in the template'] = function testATwoWayBindingFlowsUpstreamWhenConsumedInTheTemplate() {\n var _this67 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n\n template: '{{bar}}'\n });\n\n this.render('{{localBar}} - {{foo-bar bar=localBar}}', {\n localBar: 'initial value'\n });\n\n this.assertText('initial value - initial value');\n\n this.runTask(function () {\n return _this67.rerender();\n });\n\n this.assertText('initial value - initial value');\n\n if (_features.MANDATORY_SETTER) {\n expectAssertion(function () {\n component.bar = 'foo-bar';\n }, /You must use set\\(\\) to set the `bar` property \\(of .+\\) to `foo-bar`\\./);\n\n this.assertText('initial value - initial value');\n }\n\n this.runTask(function () {\n component.set('bar', 'updated value');\n });\n\n this.assertText('updated value - updated value');\n\n this.runTask(function () {\n component.set('bar', undefined);\n });\n\n this.assertText(' - ');\n\n this.runTask(function () {\n _this67.component.set('localBar', 'initial value');\n });\n\n this.assertText('initial value - initial value');\n };\n\n _class.prototype['@test a two way binding flows upstream through a CP when consumed in the template'] = function testATwoWayBindingFlowsUpstreamThroughACPWhenConsumedInTheTemplate() {\n var _this68 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n\n bar: (0, _emberMetal.computed)({\n get: function () {\n return this._bar;\n },\n set: function (key, value) {\n this._bar = value;\n return this._bar;\n }\n })\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n\n template: '{{bar}}'\n });\n\n this.render('{{localBar}} - {{foo-bar bar=localBar}}', {\n localBar: 'initial value'\n });\n\n this.assertText('initial value - initial value');\n\n this.runTask(function () {\n return _this68.rerender();\n });\n\n this.assertText('initial value - initial value');\n\n this.runTask(function () {\n component.set('bar', 'updated value');\n });\n\n this.assertText('updated value - updated value');\n\n this.runTask(function () {\n _this68.component.set('localBar', 'initial value');\n });\n\n this.assertText('initial value - initial value');\n };\n\n _class.prototype['@test a two way binding flows upstream through a CP without template consumption'] = function testATwoWayBindingFlowsUpstreamThroughACPWithoutTemplateConsumption() {\n var _this69 = this;\n\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n\n bar: (0, _emberMetal.computed)({\n get: function () {\n return this._bar;\n },\n set: function (key, value) {\n this._bar = value;\n return this._bar;\n }\n })\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: ''\n });\n\n this.render('{{localBar}}{{foo-bar bar=localBar}}', {\n localBar: 'initial value'\n });\n\n this.assertText('initial value');\n\n this.runTask(function () {\n return _this69.rerender();\n });\n\n this.assertText('initial value');\n\n this.runTask(function () {\n component.set('bar', 'updated value');\n });\n\n this.assertText('updated value');\n\n this.runTask(function () {\n _this69.component.set('localBar', 'initial value');\n });\n\n this.assertText('initial value');\n };\n\n _class.prototype['@test services can be injected into components'] = function testServicesCanBeInjectedIntoComponents() {\n var _this70 = this;\n\n var service = void 0;\n this.registerService('name', _emberRuntime.Service.extend({\n init: function () {\n this._super.apply(this, arguments);\n service = this;\n },\n\n last: 'Jackson'\n }));\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n name: _emberRuntime.inject.service()\n }),\n template: '{{name.last}}'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('Jackson');\n\n this.runTask(function () {\n return _this70.rerender();\n });\n\n this.assertText('Jackson');\n\n this.runTask(function () {\n service.set('last', 'McGuffey');\n });\n\n this.assertText('McGuffey');\n\n this.runTask(function () {\n service.set('last', 'Jackson');\n });\n\n this.assertText('Jackson');\n };\n\n _class.prototype['@test injecting an unknown service raises an exception'] = function testInjectingAnUnknownServiceRaisesAnException(assert) {\n var _this71 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n missingService: _emberRuntime.inject.service()\n })\n });\n\n expectAssertion(function () {\n _this71.render('{{foo-bar}}');\n }, 'Attempting to inject an unknown injection: \\'service:missingService\\'');\n };\n\n _class.prototype['@test can access `actions` hash via `_actions` [DEPRECATED]'] = function testCanAccessActionsHashVia_actionsDEPRECATED() {\n var _this72 = this;\n\n var component = void 0;\n\n function derp() {}\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n\n actions: {\n derp: derp\n }\n })\n });\n\n this.render('{{foo-bar}}');\n\n this.assert.strictEqual(component.actions.derp, derp);\n\n expectDeprecation(function () {\n _this72.assert.strictEqual(component._actions.derp, derp);\n }, 'Usage of `_actions` is deprecated, use `actions` instead.');\n };\n\n _class.prototype['@test throws if `this._super` is not called from `init`'] = function testThrowsIfThis_superIsNotCalledFromInit() {\n var _this73 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {}\n })\n });\n\n expectAssertion(function () {\n _this73.render('{{foo-bar}}');\n }, /You must call `this._super\\(...arguments\\);` when overriding `init` on a framework object. Please update .* to call `this._super\\(...arguments\\);` from `init`./);\n };\n\n _class.prototype['@test should toggle visibility with isVisible'] = function testShouldToggleVisibilityWithIsVisible(assert) {\n var _this74 = this;\n\n var assertStyle = function (expected) {\n var matcher = (0, _testHelpers.styles)(expected);\n var actual = _this74.firstChild.getAttribute('style');\n\n assert.pushResult({\n result: matcher.match(actual),\n message: matcher.message(),\n actual: actual,\n expected: expected\n });\n };\n\n this.registerComponent('foo-bar', {\n template: '

foo

'\n });\n\n this.render('{{foo-bar id=\"foo-bar\" isVisible=visible}}', {\n visible: false\n });\n\n assertStyle('display: none;');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this74.context, 'visible', true);\n });\n assertStyle('');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this74.context, 'visible', false);\n });\n assertStyle('display: none;');\n };\n\n _class.prototype['@test isVisible does not overwrite component style'] = function testIsVisibleDoesNotOverwriteComponentStyle(assert) {\n var _this75 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['style'],\n style: (0, _helpers.htmlSafe)('color: blue;')\n }),\n\n template: '

foo

'\n });\n\n this.render('{{foo-bar id=\"foo-bar\" isVisible=visible}}', {\n visible: false\n });\n\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: { id: 'foo-bar', style: (0, _testHelpers.styles)('color: blue; display: none;') }\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this75.context, 'visible', true);\n });\n\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: { id: 'foo-bar', style: (0, _testHelpers.styles)('color: blue;') }\n });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this75.context, 'visible', false);\n });\n\n this.assertComponentElement(this.firstChild, {\n tagName: 'div',\n attrs: { id: 'foo-bar', style: (0, _testHelpers.styles)('color: blue; display: none;') }\n });\n };\n\n _class.prototype['@test adds isVisible binding when style binding is missing and other bindings exist'] = function testAddsIsVisibleBindingWhenStyleBindingIsMissingAndOtherBindingsExist(assert) {\n var _this76 = this;\n\n var assertStyle = function (expected) {\n var matcher = (0, _testHelpers.styles)(expected);\n var actual = _this76.firstChild.getAttribute('style');\n\n assert.pushResult({\n result: matcher.match(actual),\n message: matcher.message(),\n actual: actual,\n expected: expected\n });\n };\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['foo'],\n foo: 'bar'\n }),\n template: '

foo

'\n });\n\n this.render('{{foo-bar id=\"foo-bar\" foo=foo isVisible=visible}}', {\n visible: false,\n foo: 'baz'\n });\n\n assertStyle('display: none;');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this76.context, 'visible', true);\n });\n\n assertStyle('');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this76.context, 'visible', false);\n (0, _emberMetal.set)(_this76.context, 'foo', 'woo');\n });\n\n assertStyle('display: none;');\n assert.equal(this.firstChild.getAttribute('foo'), 'woo');\n };\n\n _class.prototype['@test it can use readDOMAttr to read input value'] = function testItCanUseReadDOMAttrToReadInputValue() {\n var _this77 = this;\n\n var component = void 0;\n var assertElement = function (expectedValue) {\n // value is a property, not an attribute\n _this77.assertHTML('');\n _this77.assert.equal(_this77.firstChild.value, expectedValue, 'value property is correct');\n _this77.assert.equal((0, _emberMetal.get)(component, 'value'), expectedValue, 'component.get(\"value\") is correct');\n };\n\n this.registerComponent('one-way-input', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'input',\n attributeBindings: ['value'],\n\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n change: function () {\n var value = this.readDOMAttr('value');\n this.set('value', value);\n }\n })\n });\n\n this.render('{{one-way-input value=value}}', {\n value: 'foo'\n });\n\n assertElement('foo');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n _this77.firstChild.value = 'bar';\n _this77.$('input').trigger('change');\n });\n\n assertElement('bar');\n\n this.runTask(function () {\n _this77.firstChild.value = 'foo';\n _this77.$('input').trigger('change');\n });\n\n assertElement('foo');\n\n this.runTask(function () {\n (0, _emberMetal.set)(component, 'value', 'bar');\n });\n\n assertElement('bar');\n\n this.runTask(function () {\n _this77.firstChild.value = 'foo';\n _this77.$('input').trigger('change');\n });\n\n assertElement('foo');\n };\n\n _class.prototype['@test child triggers revalidate during parent destruction (GH#13846)'] = function testChildTriggersRevalidateDuringParentDestructionGH13846() {\n this.registerComponent('x-select', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'select',\n\n init: function () {\n this._super();\n this.options = (0, _emberRuntime.A)([]);\n this.value = null;\n },\n updateValue: function () {\n var newValue = this.get('options.lastObject.value');\n\n this.set('value', newValue);\n },\n registerOption: function (option) {\n this.get('options').addObject(option);\n },\n unregisterOption: function (option) {\n this.get('options').removeObject(option);\n\n this.updateValue();\n }\n }),\n\n template: '{{yield this}}'\n });\n\n this.registerComponent('x-option', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'option',\n attributeBindings: ['selected'],\n\n didInsertElement: function () {\n this._super.apply(this, arguments);\n\n this.get('select').registerOption(this);\n },\n\n\n selected: (0, _emberMetal.computed)('select.value', function () {\n return this.get('value') === this.get('select.value');\n }),\n\n willDestroyElement: function () {\n this._super.apply(this, arguments);\n this.get('select').unregisterOption(this);\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject42));\n\n this.teardown();\n\n this.assert.ok(true, 'no errors during teardown');\n };\n\n _class.prototype['@test setting a property in willDestroyElement does not assert (GH#14273)'] = function testSettingAPropertyInWillDestroyElementDoesNotAssertGH14273(assert) {\n assert.expect(2);\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.showFoo = true;\n },\n willDestroyElement: function () {\n this.set('showFoo', false);\n assert.ok(true, 'willDestroyElement was fired');\n this._super.apply(this, arguments);\n }\n }),\n\n template: '{{#if showFoo}}things{{/if}}'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('things');\n };\n\n _class.prototype['@test using didInitAttrs as an event is deprecated'] = function testUsingDidInitAttrsAsAnEventIsDeprecated(assert) {\n var _this78 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n foo: (0, _emberMetal.on)('didInitAttrs', function () {\n assert.ok(true, 'should fire `didInitAttrs` event');\n })\n })\n });\n\n expectDeprecation(function () {\n _this78.render('{{foo-bar}}');\n }, /didInitAttrs called/);\n };\n\n _class.prototype['@test did{Init,Receive}Attrs fires even if component is not rendered'] = function testDidInitReceiveAttrsFiresEvenIfComponentIsNotRendered(assert) {\n var _this79 = this;\n\n expectDeprecation(/didInitAttrs called/);\n\n var didInitAttrsCount = 0;\n var didReceiveAttrsCount = 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.didInit = true;\n },\n didInitAttrs: function () {\n assert.ok(this.didInit, 'expected init to have run before didInitAttrs');\n didInitAttrsCount++;\n },\n didReceiveAttrs: function () {\n assert.ok(this.didInit, 'expected init to have run before didReceiveAttrs');\n didReceiveAttrsCount++;\n },\n willRender: function () {\n throw new Error('Unexpected render!');\n }\n })\n });\n\n assert.strictEqual(didInitAttrsCount, 0, 'precond: didInitAttrs is not fired');\n assert.strictEqual(didReceiveAttrsCount, 0, 'precond: didReceiveAttrs is not fired');\n\n this.runTask(function () {\n return _this79.component = _this79.owner.lookup('component:foo-bar');\n });\n\n assert.strictEqual(didInitAttrsCount, 1, 'precond: didInitAttrs is fired');\n assert.strictEqual(didReceiveAttrsCount, 1, 'precond: didReceiveAttrs is fired');\n };\n\n _class.prototype['@test did{Init,Receive}Attrs fires after .init() but before observers become active'] = function testDidInitReceiveAttrsFiresAfterInitButBeforeObserversBecomeActive(assert) {\n var _this80 = this;\n\n expectDeprecation(/didInitAttrs called/);\n\n var fooCopyDidChangeCount = 0;\n var barCopyDidChangeCount = 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.didInit = true;\n },\n didInitAttrs: function () {\n assert.ok(this.didInit, 'expected init to have run before didInitAttrs');\n this.set('fooCopy', this.attrs.foo.value + 1);\n },\n didReceiveAttrs: function () {\n assert.ok(this.didInit, 'expected init to have run before didReceiveAttrs');\n this.set('barCopy', this.attrs.bar.value + 1);\n },\n\n\n fooCopyDidChange: (0, _emberMetal.observer)('fooCopy', function () {\n fooCopyDidChangeCount++;\n }),\n barCopyDidChange: (0, _emberMetal.observer)('barCopy', function () {\n barCopyDidChangeCount++;\n })\n }),\n\n template: '{{foo}}-{{fooCopy}}-{{bar}}-{{barCopy}}'\n });\n\n this.render('{{foo-bar foo=foo bar=bar}}', { foo: 1, bar: 3 });\n\n this.assertText('1-2-3-4');\n\n assert.strictEqual(fooCopyDidChangeCount, 0, 'expected NO observer firing for: fooCopy');\n assert.strictEqual(barCopyDidChangeCount, 0, 'expected NO observer firing for: barCopy');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this80.context, 'foo', 5);\n });\n\n this.assertText('5-2-3-4');\n\n assert.strictEqual(fooCopyDidChangeCount, 0, 'expected observer firing for: fooCopy');\n assert.strictEqual(barCopyDidChangeCount, 0, 'expected NO observer firing for: barCopy');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this80.context, 'bar', 7);\n });\n\n this.assertText('5-2-7-8');\n\n assert.strictEqual(fooCopyDidChangeCount, 0, 'expected observer firing for: fooCopy');\n assert.strictEqual(barCopyDidChangeCount, 1, 'expected observer firing for: barCopy');\n };\n\n _class.prototype['@test overriding didReceiveAttrs does not trigger deprecation'] = function testOverridingDidReceiveAttrsDoesNotTriggerDeprecation(assert) {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didReceiveAttrs: function () {\n assert.equal(1, this.get('foo'), 'expected attrs to have correct value');\n }\n }),\n\n template: '{{foo}}-{{fooCopy}}-{{bar}}-{{barCopy}}'\n });\n\n this.render('{{foo-bar foo=foo bar=bar}}', { foo: 1, bar: 3 });\n };\n\n _class.prototype['@test overriding didUpdateAttrs does not trigger deprecation'] = function testOverridingDidUpdateAttrsDoesNotTriggerDeprecation(assert) {\n var _this81 = this;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didUpdateAttrs: function () {\n assert.equal(5, this.get('foo'), \"expected newAttrs to have new value\");\n }\n }),\n\n template: '{{foo}}-{{fooCopy}}-{{bar}}-{{barCopy}}'\n });\n\n this.render('{{foo-bar foo=foo bar=bar}}', { foo: 1, bar: 3 });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this81.context, 'foo', 5);\n });\n };\n\n _class.prototype['@test returning `true` from an action does not bubble if `target` is not specified (GH#14275)'] = function testReturningTrueFromAnActionDoesNotBubbleIfTargetIsNotSpecifiedGH14275(assert) {\n var _this82 = this;\n\n this.registerComponent('display-toggle', {\n ComponentClass: _helpers.Component.extend({\n actions: {\n show: function () {\n assert.ok(true, 'display-toggle show action was called');\n return true;\n }\n }\n }),\n\n template: ''\n });\n\n this.render('{{display-toggle}}', {\n send: function () {\n assert.notOk(true, 'send should not be called when action is not \"subscribed\" to');\n }\n });\n\n this.assertText('Show');\n\n this.runTask(function () {\n return _this82.$('button').click();\n });\n };\n\n _class.prototype['@test returning `true` from an action bubbles to the `target` if specified'] = function testReturningTrueFromAnActionBubblesToTheTargetIfSpecified(assert) {\n var _this83 = this;\n\n assert.expect(4);\n\n this.registerComponent('display-toggle', {\n ComponentClass: _helpers.Component.extend({\n actions: {\n show: function () {\n assert.ok(true, 'display-toggle show action was called');\n return true;\n }\n }\n }),\n\n template: ''\n });\n\n this.render('{{display-toggle target=this}}', {\n send: function (actionName) {\n assert.ok(true, 'send should be called when action is \"subscribed\" to');\n assert.equal(actionName, 'show');\n }\n });\n\n this.assertText('Show');\n\n this.runTask(function () {\n return _this83.$('button').click();\n });\n };\n\n _class.prototype['@test triggering an event only attempts to invoke an identically named method, if it actually is a function (GH#15228)'] = function testTriggeringAnEventOnlyAttemptsToInvokeAnIdenticallyNamedMethodIfItActuallyIsAFunctionGH15228(assert) {\n assert.expect(3);\n\n var payload = ['arbitrary', 'event', 'data'];\n\n this.registerComponent('evented-component', {\n ComponentClass: _helpers.Component.extend({\n someTruthyProperty: true,\n\n init: function () {\n this._super.apply(this, arguments);\n this.trigger.apply(this, ['someMethod'].concat(payload));\n this.trigger.apply(this, ['someTruthyProperty'].concat(payload));\n },\n someMethod: function () {\n for (var _len = arguments.length, data = Array(_len), _key = 0; _key < _len; _key++) {\n data[_key] = arguments[_key];\n }\n\n assert.deepEqual(data, payload, 'the method `someMethod` should be called, when `someMethod` is triggered');\n },\n\n\n listenerForSomeMethod: (0, _emberMetal.on)('someMethod', function () {\n for (var _len2 = arguments.length, data = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n data[_key2] = arguments[_key2];\n }\n\n assert.deepEqual(data, payload, 'the listener `listenerForSomeMethod` should be called, when `someMethod` is triggered');\n }),\n\n listenerForSomeTruthyProperty: (0, _emberMetal.on)('someTruthyProperty', function () {\n for (var _len3 = arguments.length, data = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {\n data[_key3] = arguments[_key3];\n }\n\n assert.deepEqual(data, payload, 'the listener `listenerForSomeTruthyProperty` should be called, when `someTruthyProperty` is triggered');\n })\n })\n });\n\n this.render('{{evented-component}}');\n };\n\n _class.prototype['@test component yielding in an {{#each}} has correct block values after rerendering (GH#14284)'] = function testComponentYieldingInAnEachHasCorrectBlockValuesAfterRerenderingGH14284() {\n var _this84 = this;\n\n this.registerComponent('list-items', {\n template: '{{#each items as |item|}}{{yield item}}{{/each}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject43), {\n editMode: false,\n items: ['foo', 'bar', 'qux', 'baz']\n });\n\n this.assertText('|foo||bar||qux||baz|');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this84.context, 'editMode', true);\n });\n\n this.assertText('|foo|Remove foo|bar|Remove bar|qux|Remove qux|baz|Remove baz');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this84.context, 'editMode', false);\n });\n\n this.assertText('|foo||bar||qux||baz|');\n };\n\n _class.prototype['@test unimplimented positionalParams do not cause an error GH#14416'] = function testUnimplimentedPositionalParamsDoNotCauseAnErrorGH14416(assert) {\n this.registerComponent('foo-bar', {\n template: 'hello'\n });\n\n this.render('{{foo-bar wat}}');\n this.assertText('hello');\n };\n\n _class.prototype['@test using attrs for positional params'] = function testUsingAttrsForPositionalParams(assert) {\n var MyComponent = _helpers.Component.extend();\n\n this.registerComponent('foo-bar', {\n ComponentClass: MyComponent.reopenClass({\n positionalParams: ['myVar']\n }),\n template: 'MyVar1: {{attrs.myVar}} {{myVar}} MyVar2: {{myVar2}} {{attrs.myVar2}}'\n });\n\n this.render('{{foo-bar 1 myVar2=2}}');\n\n this.assertText('MyVar1: 1 1 MyVar2: 2 2');\n };\n\n _class.prototype['@test can use `{{this}}` to emit the component\\'s toString value [GH#14581]'] = function testCanUseThisToEmitTheComponentSToStringValueGH14581(assert) {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n toString: function () {\n return 'special sauce goes here!';\n }\n }),\n template: '{{this}}'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('special sauce goes here!');\n };\n\n _class.prototype['@test can use `{{this` to access paths on current context [GH#14581]'] = function testCanUseThisToAccessPathsOnCurrentContextGH14581(assert) {\n var instance = void 0;\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n\n instance = this;\n },\n\n\n foo: {\n bar: {\n baz: 'huzzah!'\n }\n }\n }),\n template: '{{this.foo.bar.baz}}'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('huzzah!');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'foo.bar.baz', 'yippie!');\n });\n\n this.assertText('yippie!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'foo.bar.baz', 'huzzah!');\n });\n\n this.assertText('huzzah!');\n };\n\n _class.prototype['@test can use custom element in component layout'] = function testCanUseCustomElementInComponentLayout(assert) {\n this.registerComponent('foo-bar', {\n template: 'Hi!'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('Hi!');\n };\n\n _class.prototype['@test can use nested custom element in component layout'] = function testCanUseNestedCustomElementInComponentLayout(assert) {\n this.registerComponent('foo-bar', {\n template: 'Hi!'\n });\n\n this.render('{{foo-bar}}');\n\n this.assertText('Hi!');\n };\n\n _class.prototype['@test can access properties off of rest style positionalParams array'] = function testCanAccessPropertiesOffOfRestStylePositionalParamsArray(assert) {\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend().reopenClass({ positionalParams: 'things' }),\n // using `attrs` here to simulate `@things.length`\n template: '{{attrs.things.length}}'\n });\n\n this.render('{{foo-bar \"foo\" \"bar\" \"baz\"}}');\n\n this.assertText('3');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/curly-components-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/curly-components-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/destroy-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case'], function (_emberBabel, _emberMetal, _helpers, _testCase) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Component destroy', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it correctly releases the destroyed components'] = function testItCorrectlyReleasesTheDestroyedComponents(assert) {\n var _this2 = this;\n\n var FooBarComponent = _helpers.Component.extend({});\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{#if switch}}{{#foo-bar}}{{foo-bar}}{{/foo-bar}}{{/if}}', { switch: true });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'switch', false);\n });\n\n this.assertText('');\n\n assert.equal(this.env.destroyedComponents.length, 0, 'environment.destroyedComponents should be empty');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/destroy-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/destroy-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/dynamic-components-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember/features'], function (_emberBabel, _emberMetal, _helpers, _abstractTestCase, _testCase, _features) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if cond1}}\\n {{#component \"foo-bar\" id=1}}\\n {{#if cond2}}\\n {{#component \"foo-bar\" id=2}}{{/component}}\\n {{#if cond3}}\\n {{#component \"foo-bar\" id=3}}\\n {{#if cond4}}\\n {{#component \"foo-bar\" id=4}}\\n {{#if cond5}}\\n {{#component \"foo-bar\" id=5}}{{/component}}\\n {{#component \"foo-bar\" id=6}}{{/component}}\\n {{#component \"foo-bar\" id=7}}{{/component}}\\n {{/if}}\\n {{#component \"foo-bar\" id=8}}{{/component}}\\n {{/component}}\\n {{/if}}\\n {{/component}}\\n {{/if}}\\n {{/if}}\\n {{/component}}\\n {{/if}}'], ['\\n {{#if cond1}}\\n {{#component \"foo-bar\" id=1}}\\n {{#if cond2}}\\n {{#component \"foo-bar\" id=2}}{{/component}}\\n {{#if cond3}}\\n {{#component \"foo-bar\" id=3}}\\n {{#if cond4}}\\n {{#component \"foo-bar\" id=4}}\\n {{#if cond5}}\\n {{#component \"foo-bar\" id=5}}{{/component}}\\n {{#component \"foo-bar\" id=6}}{{/component}}\\n {{#component \"foo-bar\" id=7}}{{/component}}\\n {{/if}}\\n {{#component \"foo-bar\" id=8}}{{/component}}\\n {{/component}}\\n {{/if}}\\n {{/component}}\\n {{/if}}\\n {{/if}}\\n {{/component}}\\n {{/if}}']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each names as |name|}}\\n {{name}}\\n {{/each}}'], ['\\n {{#each names as |name|}}\\n {{name}}\\n {{/each}}']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each n as |name|}}\\n {{name}}\\n {{/each}}'], ['\\n {{#each n as |name|}}\\n {{name}}\\n {{/each}}']);\n\n (0, _testCase.moduleFor)('Components test: dynamic components', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can render a basic component with a static component name argument'] = function testItCanRenderABasicComponentWithAStaticComponentNameArgument() {\n var _this2 = this;\n\n this.registerComponent('foo-bar', { template: 'hello {{name}}' });\n\n this.render('{{component \"foo-bar\" name=name}}', { name: 'Sarah' });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Sarah' });\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Sarah' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'name', 'Gavin');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Gavin' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'name', 'Sarah');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Sarah' });\n };\n\n _class.prototype['@test it can render a basic component with a dynamic component name argument'] = function testItCanRenderABasicComponentWithADynamicComponentNameArgument() {\n var _this3 = this;\n\n this.registerComponent('foo-bar', { template: 'hello {{name}} from foo-bar' });\n this.registerComponent('foo-bar-baz', { template: 'hello {{name}} from foo-bar-baz' });\n\n this.render('{{component componentName name=name}}', { componentName: 'foo-bar', name: 'Alex' });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex from foo-bar' });\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex from foo-bar' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'name', 'Ben');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Ben from foo-bar' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'componentName', 'foo-bar-baz');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Ben from foo-bar-baz' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.context, 'componentName', 'foo-bar');\n (0, _emberMetal.set)(_this3.context, 'name', 'Alex');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex from foo-bar' });\n };\n\n _class.prototype['@test it has an element'] = function testItHasAnElement() {\n var _this4 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{component \"foo-bar\"}}');\n\n var element1 = instance.element;\n\n this.assertComponentElement(element1, { content: 'hello' });\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n var element2 = instance.element;\n\n this.assertComponentElement(element2, { content: 'hello' });\n\n this.assertSameNode(element2, element1);\n };\n\n _class.prototype['@test it has a jQuery proxy to the element'] = function testItHasAJQueryProxyToTheElement(assert) {\n var _this5 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{component \"foo-bar\"}}');\n\n var element1 = instance.$()[0];\n\n this.assertComponentElement(element1, { content: 'hello' });\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n var element2 = instance.$()[0];\n\n this.assertComponentElement(element2, { content: 'hello' });\n\n this.assertSameNode(element2, element1);\n };\n\n _class.prototype['@test it scopes the jQuery proxy to the component element'] = function testItScopesTheJQueryProxyToTheComponentElement(assert) {\n var _this6 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'inner' });\n\n this.render('outer{{component \"foo-bar\"}}');\n\n var $span = instance.$('span');\n\n assert.equal($span.length, 1);\n assert.equal($span.attr('class'), 'inner');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n $span = instance.$('span');\n\n assert.equal($span.length, 1);\n assert.equal($span.attr('class'), 'inner');\n };\n\n _class.prototype['@test it has the right parentView and childViews'] = function testItHasTheRightParentViewAndChildViews(assert) {\n var _this7 = this;\n\n var fooBarInstance = void 0,\n fooBarBazInstance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarInstance = this;\n }\n });\n\n var FooBarBazComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarBazInstance = this;\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'foo-bar {{foo-bar-baz}}' });\n this.registerComponent('foo-bar-baz', { ComponentClass: FooBarBazComponent, template: 'foo-bar-baz' });\n\n this.render('{{component \"foo-bar\"}}');\n this.assertText('foo-bar foo-bar-baz');\n\n assert.equal(fooBarInstance.parentView, this.component);\n assert.equal(fooBarBazInstance.parentView, fooBarInstance);\n\n assert.deepEqual(this.component.childViews, [fooBarInstance]);\n assert.deepEqual(fooBarInstance.childViews, [fooBarBazInstance]);\n\n this.runTask(function () {\n return _this7.rerender();\n });\n this.assertText('foo-bar foo-bar-baz');\n\n assert.equal(fooBarInstance.parentView, this.component);\n assert.equal(fooBarBazInstance.parentView, fooBarInstance);\n\n assert.deepEqual(this.component.childViews, [fooBarInstance]);\n assert.deepEqual(fooBarInstance.childViews, [fooBarBazInstance]);\n };\n\n _class.prototype['@test it can render a basic component with a block'] = function testItCanRenderABasicComponentWithABlock() {\n var _this8 = this;\n\n this.registerComponent('foo-bar', { template: '{{yield}}' });\n\n this.render('{{#component \"foo-bar\"}}hello{{/component}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it renders the layout with the component instance as the context'] = function testItRendersTheLayoutWithTheComponentInstanceAsTheContext() {\n var _this9 = this;\n\n var instance = void 0;\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n instance = this;\n this.set('message', 'hello');\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{message}}' });\n\n this.render('{{component \"foo-bar\"}}');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'message', 'goodbye');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'goodbye' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'message', 'hello');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test it preserves the outer context when yielding'] = function testItPreservesTheOuterContextWhenYielding() {\n var _this10 = this;\n\n this.registerComponent('foo-bar', { template: '{{yield}}' });\n\n this.render('{{#component \"foo-bar\"}}{{message}}{{/component}}', { message: 'hello' });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'message', 'goodbye');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'goodbye' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'message', 'hello');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n };\n\n _class.prototype['@test the component and its child components are destroyed'] = function testTheComponentAndItsChildComponentsAreDestroyed(assert) {\n var _this11 = this;\n\n var destroyed = { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 };\n\n this.registerComponent('foo-bar', {\n template: '{{id}} {{yield}}',\n ComponentClass: _helpers.Component.extend({\n willDestroy: function () {\n this._super();\n destroyed[this.get('id')]++;\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), {\n cond1: true,\n cond2: true,\n cond3: true,\n cond4: true,\n cond5: true\n });\n\n this.assertText('1 2 3 4 5 6 7 8 ');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 0, 4: 0, 5: 0, 6: 0, 7: 0, 8: 0 });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'cond5', false);\n });\n\n this.assertText('1 2 3 4 8 ');\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 0, 4: 0, 5: 1, 6: 1, 7: 1, 8: 0 });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this11.context, 'cond3', false);\n (0, _emberMetal.set)(_this11.context, 'cond5', true);\n (0, _emberMetal.set)(_this11.context, 'cond4', false);\n });\n\n assert.deepEqual(destroyed, { 1: 0, 2: 0, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1 });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this11.context, 'cond2', false);\n (0, _emberMetal.set)(_this11.context, 'cond1', false);\n });\n\n assert.deepEqual(destroyed, { 1: 1, 2: 1, 3: 1, 4: 1, 5: 1, 6: 1, 7: 1, 8: 1 });\n };\n\n _class.prototype['@test component helper destroys underlying component when it is swapped out'] = function testComponentHelperDestroysUnderlyingComponentWhenItIsSwappedOut(assert) {\n var _this12 = this;\n\n var destroyed = { 'foo-bar': 0, 'foo-bar-baz': 0 };\n var testContext = this;\n\n this.registerComponent('foo-bar', {\n template: 'hello from foo-bar',\n ComponentClass: _helpers.Component.extend({\n willDestroyElement: function () {\n assert.equal(testContext.$('#' + this.elementId).length, 1, 'element is still attached to the document');\n },\n willDestroy: function () {\n this._super();\n destroyed['foo-bar']++;\n }\n })\n });\n\n this.registerComponent('foo-bar-baz', {\n template: 'hello from foo-bar-baz',\n ComponentClass: _helpers.Component.extend({\n willDestroy: function () {\n this._super();\n destroyed['foo-bar-baz']++;\n }\n })\n });\n\n this.render('{{component componentName name=name}}', { componentName: 'foo-bar' });\n\n assert.deepEqual(destroyed, { 'foo-bar': 0, 'foo-bar-baz': 0 });\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n assert.deepEqual(destroyed, { 'foo-bar': 0, 'foo-bar-baz': 0 });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'componentName', 'foo-bar-baz');\n });\n\n assert.deepEqual(destroyed, { 'foo-bar': 1, 'foo-bar-baz': 0 });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'componentName', 'foo-bar');\n });\n\n assert.deepEqual(destroyed, { 'foo-bar': 1, 'foo-bar-baz': 1 });\n };\n\n _class.prototype['@test component helper with bound properties are updating correctly in init of component'] = function testComponentHelperWithBoundPropertiesAreUpdatingCorrectlyInInitOfComponent(assert) {\n var _this13 = this;\n\n this.registerComponent('foo-bar', {\n template: 'foo-bar {{location}} {{locationCopy}} {{yield}}',\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('locationCopy', this.get('location'));\n }\n })\n });\n\n this.registerComponent('foo-bar-baz', {\n template: 'foo-bar-baz {{location}} {{locationCopy}} {{yield}}',\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('locationCopy', this.get('location'));\n }\n })\n });\n\n this.registerComponent('outer-component', {\n template: '{{#component componentName location=location}}arepas!{{/component}}',\n ComponentClass: _helpers.Component.extend({\n componentName: (0, _emberMetal.computed)('location', function () {\n if (this.get('location') === 'Caracas') {\n return 'foo-bar';\n } else {\n return 'foo-bar-baz';\n }\n })\n })\n });\n\n this.render('{{outer-component location=location}}', { location: 'Caracas' });\n\n this.assertText('foo-bar Caracas Caracas arepas!');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('foo-bar Caracas Caracas arepas!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'location', 'Loisaida');\n });\n\n this.assertText('foo-bar-baz Loisaida Loisaida arepas!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'location', 'Caracas');\n });\n\n this.assertText('foo-bar Caracas Caracas arepas!');\n };\n\n _class.prototype['@test component helper with actions'] = function testComponentHelperWithActions(assert) {\n var _this15 = this;\n\n this.registerComponent('inner-component', {\n template: 'inner-component {{yield}}',\n ComponentClass: _helpers.Component.extend({\n classNames: 'inner-component',\n didInsertElement: function () {\n var _this14 = this;\n\n // trigger action on click in absence of app's EventDispatcher\n this.$().on('click', function () {\n _this14.sendAction('somethingClicked');\n });\n },\n willDestroyElement: function () {\n this.$().off('click');\n }\n })\n });\n\n var actionTriggered = 0;\n this.registerComponent('outer-component', {\n template: '{{#component componentName somethingClicked=\"mappedAction\"}}arepas!{{/component}}',\n ComponentClass: _helpers.Component.extend({\n classNames: 'outer-component',\n componentName: 'inner-component',\n actions: {\n mappedAction: function () {\n actionTriggered++;\n }\n }\n })\n });\n\n this.render('{{outer-component}}');\n\n assert.equal(actionTriggered, 0, 'action was not triggered');\n\n this.runTask(function () {\n _this15.$('.inner-component').trigger('click');\n });\n\n assert.equal(actionTriggered, 1, 'action was triggered');\n };\n\n _class.prototype['@test nested component helpers'] = function testNestedComponentHelpers(assert) {\n var _this16 = this;\n\n this.registerComponent('foo-bar', { template: 'yippie! {{attrs.location}} {{yield}}' });\n this.registerComponent('baz-qux', { template: 'yummy {{attrs.location}} {{yield}}' });\n this.registerComponent('corge-grault', { template: 'delicious {{attrs.location}} {{yield}}' });\n\n this.render('{{#component componentName1 location=location}}{{#component componentName2 location=location}}arepas!{{/component}}{{/component}}', {\n componentName1: 'foo-bar',\n componentName2: 'baz-qux',\n location: 'Caracas'\n });\n\n this.assertText('yippie! Caracas yummy Caracas arepas!');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertText('yippie! Caracas yummy Caracas arepas!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'location', 'Loisaida');\n });\n\n this.assertText('yippie! Loisaida yummy Loisaida arepas!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'componentName1', 'corge-grault');\n });\n\n this.assertText('delicious Loisaida yummy Loisaida arepas!');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'componentName1', 'foo-bar');\n (0, _emberMetal.set)(_this16.context, 'location', 'Caracas');\n });\n\n this.assertText('yippie! Caracas yummy Caracas arepas!');\n };\n\n _class.prototype['@test component with dynamic name argument resolving to non-existent component'] = function testComponentWithDynamicNameArgumentResolvingToNonExistentComponent(assert) {\n var _this17 = this;\n\n expectAssertion(function () {\n _this17.render('{{component componentName}}', { componentName: 'does-not-exist' });\n }, /Could not find component named \"does-not-exist\"/);\n };\n\n _class.prototype['@test component with static name argument for non-existent component'] = function testComponentWithStaticNameArgumentForNonExistentComponent(assert) {\n var _this18 = this;\n\n expectAssertion(function () {\n _this18.render('{{component \"does-not-exist\"}}');\n }, /Could not find component named \"does-not-exist\"/);\n };\n\n _class.prototype['@test component with dynamic component name resolving to a component, then non-existent component'] = function testComponentWithDynamicComponentNameResolvingToAComponentThenNonExistentComponent(assert) {\n var _this19 = this;\n\n this.registerComponent('foo-bar', { template: 'hello {{name}}' });\n\n this.render('{{component componentName name=name}}', { componentName: 'foo-bar', name: 'Alex' });\n\n this.assertText('hello Alex');\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n this.assertText('hello Alex');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'componentName', undefined);\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'componentName', 'foo-bar');\n });\n\n this.assertText('hello Alex');\n };\n\n _class.prototype['@test component helper properly invalidates hash params inside an {{each}} invocation #11044'] = function testComponentHelperProperlyInvalidatesHashParamsInsideAnEachInvocation11044(assert) {\n var _this20 = this;\n\n this.registerComponent('foo-bar', {\n template: '[{{internalName}} - {{name}}]',\n ComponentClass: _helpers.Component.extend({\n willRender: function () {\n // store internally available name to ensure that the name available in `this.attrs.name`\n // matches the template lookup name\n (0, _emberMetal.set)(this, 'internalName', this.get('name'));\n }\n })\n });\n\n this.render('{{#each items as |item|}}{{component \"foo-bar\" name=item.name}}{{/each}}', {\n items: [{ name: 'Robert' }, { name: 'Jacquie' }]\n });\n\n this.assertText('[Robert - Robert][Jacquie - Jacquie]');\n\n this.runTask(function () {\n return _this20.rerender();\n });\n\n this.assertText('[Robert - Robert][Jacquie - Jacquie]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'items', [{ name: 'Max' }, { name: 'James' }]);\n });\n\n this.assertText('[Max - Max][James - James]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'items', [{ name: 'Robert' }, { name: 'Jacquie' }]);\n });\n\n this.assertText('[Robert - Robert][Jacquie - Jacquie]');\n };\n\n _class.prototype['@test dashless components should not be found'] = function testDashlessComponentsShouldNotBeFound(assert) {\n var _this21 = this;\n\n this.registerComponent('dashless2', { template: 'Do not render me!' });\n\n expectAssertion(function () {\n _this21.render('{{component \"dashless\"}}');\n }, /You cannot use 'dashless' as a component name. Component names must contain a hyphen./);\n };\n\n _class.prototype['@test positional parameters does not clash when rendering different components'] = function testPositionalParametersDoesNotClashWhenRenderingDifferentComponents(assert) {\n var _this22 = this;\n\n this.registerComponent('foo-bar', {\n template: 'hello {{name}} ({{age}}) from foo-bar',\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n })\n });\n\n this.registerComponent('foo-bar-baz', {\n template: 'hello {{name}} ({{age}}) from foo-bar-baz',\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['name', 'age']\n })\n });\n\n this.render('{{component componentName name age}}', {\n componentName: 'foo-bar',\n name: 'Alex',\n age: 29\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex (29) from foo-bar' });\n\n this.runTask(function () {\n return _this22.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex (29) from foo-bar' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this22.context, 'name', 'Ben');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Ben (29) from foo-bar' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this22.context, 'age', 22);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Ben (22) from foo-bar' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this22.context, 'componentName', 'foo-bar-baz');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Ben (22) from foo-bar-baz' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this22.context, 'componentName', 'foo-bar');\n (0, _emberMetal.set)(_this22.context, 'name', 'Alex');\n (0, _emberMetal.set)(_this22.context, 'age', 29);\n });\n\n this.assertComponentElement(this.firstChild, { content: 'hello Alex (29) from foo-bar' });\n };\n\n _class.prototype['@test positional parameters does not pollute the attributes when changing components'] = function testPositionalParametersDoesNotPolluteTheAttributesWhenChangingComponents(assert) {\n var _this23 = this;\n\n this.registerComponent('normal-message', {\n template: 'Normal: {{something}}!',\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: ['something']\n })\n });\n\n this.registerComponent('alternative-message', {\n template: 'Alternative: {{something}} {{somethingElse}}!',\n ComponentClass: _helpers.Component.extend({\n something: 'Another'\n }).reopenClass({\n positionalParams: ['somethingElse']\n })\n });\n\n this.render('{{component componentName message}}', { componentName: 'normal-message', message: 'Hello' });\n\n this.assertComponentElement(this.firstChild, { content: 'Normal: Hello!' });\n\n this.runTask(function () {\n return _this23.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Normal: Hello!' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this23.context, 'componentName', 'alternative-message');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Alternative: Another Hello!' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this23.context, 'message', 'Hi');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Alternative: Another Hi!' });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this23.context, 'componentName', 'normal-message');\n (0, _emberMetal.set)(_this23.context, 'message', 'Hello');\n });\n\n this.assertComponentElement(this.firstChild, { content: 'Normal: Hello!' });\n };\n\n _class.prototype['@test static arbitrary number of positional parameters'] = function testStaticArbitraryNumberOfPositionalParameters(assert) {\n var _this24 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'names'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject2)\n });\n\n this.render('{{component \"sample-component\" \"Foo\" 4 \"Bar\" 5 \"Baz\" elementId=\"helper\"}}');\n\n this.assertText('Foo4Bar5Baz');\n\n this.runTask(function () {\n return _this24.rerender();\n });\n\n this.assertText('Foo4Bar5Baz');\n };\n\n _class.prototype['@test dynamic arbitrary number of positional parameters'] = function testDynamicArbitraryNumberOfPositionalParameters(assert) {\n var _this25 = this;\n\n this.registerComponent('sample-component', {\n ComponentClass: _helpers.Component.extend().reopenClass({\n positionalParams: 'n'\n }),\n template: (0, _abstractTestCase.strip)(_templateObject3)\n });\n\n this.render('{{component \"sample-component\" user1 user2}}', {\n user1: 'Foo',\n user2: 4\n });\n\n this.assertText('Foo4');\n\n this.runTask(function () {\n return _this25.rerender();\n });\n\n this.assertText('Foo4');\n\n this.runTask(function () {\n return _this25.context.set('user1', 'Bar');\n });\n\n this.assertText('Bar4');\n\n this.runTask(function () {\n return _this25.context.set('user2', '5');\n });\n\n this.assertText('Bar5');\n\n this.runTask(function () {\n _this25.context.set('user1', 'Foo');\n _this25.context.set('user2', 4);\n });\n\n this.assertText('Foo4');\n };\n\n _class.prototype['@test component helper emits useful backtracking re-render assertion message'] = function testComponentHelperEmitsUsefulBacktrackingReRenderAssertionMessage(assert) {\n var _this26 = this;\n\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('person', { name: 'Alex' });\n }\n }),\n template: 'Hi {{person.name}}! {{component \"error-component\" person=person}}'\n });\n\n this.registerComponent('error-component', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('person.name', { name: 'Ben' });\n }\n }),\n template: '{{person.name}}'\n });\n\n var expectedBacktrackingMessage = /modified \"person\\.name\" twice on \\[object Object\\] in a single render\\. It was rendered in \"component:outer-component\" and modified in \"component:error-component\"/;\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n this.render('{{component componentName}}', { componentName: 'outer-component' });\n } else {\n expectAssertion(function () {\n _this26.render('{{component componentName}}', { componentName: 'outer-component' });\n }, expectedBacktrackingMessage);\n }\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/dynamic-components-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/dynamic-components-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/fragment-components-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _abstractTestCase, _helpers, _emberMetal) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['
Hey
bar'], ['
Hey
bar']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['bar'], ['bar']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['bizz'], ['bizz']);\n\n (0, _testCase.moduleFor)('Components test: fragment components', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype.getCustomDispatcherEvents = function getCustomDispatcherEvents() {\n return {\n hitDem: 'folks'\n };\n };\n\n _class.prototype['@test fragments do not render an outer tag'] = function testFragmentsDoNotRenderAnOuterTag() {\n var instance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n init: function () {\n this._super();\n instance = this;\n this.foo = true;\n this.bar = 'bar';\n }\n });\n\n var template = '{{#if foo}}
Hey
{{/if}}{{yield bar}}';\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n this.render('{{#foo-bar as |bar|}}{{bar}}{{/foo-bar}}');\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'foo', false);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(instance, 'bar', 'bizz');\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject3));\n\n this.runTask(function () {\n (0, _emberMetal.set)(instance, 'bar', 'bar');\n (0, _emberMetal.set)(instance, 'foo', true);\n });\n };\n\n _class.prototype['@test throws an error if an event function is defined in a tagless component'] = function testThrowsAnErrorIfAnEventFunctionIsDefinedInATaglessComponent() {\n var _this2 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n click: function () {}\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n expectAssertion(function () {\n _this2.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You can not define a function that handles DOM events in the .* tagless component since it doesn't have any DOM element./);\n };\n\n _class.prototype['@test throws an error if a custom defined event function is defined in a tagless component'] = function testThrowsAnErrorIfACustomDefinedEventFunctionIsDefinedInATaglessComponent() {\n var _this3 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n folks: function () {}\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n expectAssertion(function () {\n _this3.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You can not define a function that handles DOM events in the .* tagless component since it doesn't have any DOM element./);\n };\n\n _class.prototype['@test throws an error if `tagName` is an empty string and `classNameBindings` are specified'] = function testThrowsAnErrorIfTagNameIsAnEmptyStringAndClassNameBindingsAreSpecified() {\n var _this4 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n foo: true,\n classNameBindings: ['foo:is-foo:is-bar']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n expectAssertion(function () {\n _this4.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You cannot use `classNameBindings` on a tag-less component/);\n };\n\n _class.prototype['@test throws an error if `tagName` is an empty string and `attributeBindings` are specified'] = function testThrowsAnErrorIfTagNameIsAnEmptyStringAndAttributeBindingsAreSpecified() {\n var _this5 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n attributeBindings: ['href']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n expectAssertion(function () {\n _this5.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You cannot use `attributeBindings` on a tag-less component/);\n };\n\n _class.prototype['@test throws an error if `tagName` is an empty string and `elementId` is specified via JS'] = function testThrowsAnErrorIfTagNameIsAnEmptyStringAndElementIdIsSpecifiedViaJS() {\n var _this6 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n elementId: 'turntUp'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n expectAssertion(function () {\n _this6.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You cannot use `elementId` on a tag-less component/);\n };\n\n _class.prototype['@test throws an error if `tagName` is an empty string and `elementId` is specified via template'] = function testThrowsAnErrorIfTagNameIsAnEmptyStringAndElementIdIsSpecifiedViaTemplate() {\n var _this7 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: ''\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n expectAssertion(function () {\n _this7.render('{{#foo-bar elementId=\\'turntUp\\'}}{{/foo-bar}}');\n }, /You cannot use `elementId` on a tag-less component/);\n };\n\n _class.prototype['@test does not throw an error if `tagName` is an empty string and `id` is specified via JS'] = function testDoesNotThrowAnErrorIfTagNameIsAnEmptyStringAndIdIsSpecifiedViaJS() {\n var template = '{{id}}';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n id: 'baz'\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n this.render('{{#foo-bar}}{{/foo-bar}}');\n this.assertText('baz');\n };\n\n _class.prototype['@test does not throw an error if `tagName` is an empty string and `id` is specified via template'] = function testDoesNotThrowAnErrorIfTagNameIsAnEmptyStringAndIdIsSpecifiedViaTemplate() {\n var template = '{{id}}';\n var FooBarComponent = _helpers.Component.extend({\n tagName: ''\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n this.render('{{#foo-bar id=\\'baz\\'}}{{/foo-bar}}');\n this.assertText('baz');\n };\n\n _class.prototype['@test does not throw an error if `tagName` is an empty string and `id` is bound property specified via template'] = function testDoesNotThrowAnErrorIfTagNameIsAnEmptyStringAndIdIsBoundPropertySpecifiedViaTemplate() {\n var _this8 = this;\n\n var template = '{{id}}';\n var FooBarComponent = _helpers.Component.extend({\n tagName: ''\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n this.render('{{#foo-bar id=fooBarId}}{{/foo-bar}}', { fooBarId: 'baz' });\n\n this.assertText('baz');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'fooBarId', 'qux');\n });\n\n this.assertText('qux');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'fooBarId', 'baz');\n });\n\n this.assertText('baz');\n };\n\n _class.prototype['@test does not throw an error if `tagName` is an empty string and `id` is specified via template and passed to child component'] = function testDoesNotThrowAnErrorIfTagNameIsAnEmptyStringAndIdIsSpecifiedViaTemplateAndPassedToChildComponent() {\n var fooBarTemplate = '{{#baz-child id=id}}{{/baz-child}}';\n var FooBarComponent = _helpers.Component.extend({\n tagName: ''\n });\n var BazChildComponent = _helpers.Component.extend();\n var bazChildTemplate = '{{id}}';\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: fooBarTemplate });\n this.registerComponent('baz-child', { ComponentClass: BazChildComponent, template: bazChildTemplate });\n this.render('{{#foo-bar id=\\'baz\\'}}{{/foo-bar}}');\n this.assertText('baz');\n };\n\n _class.prototype['@test throws an error if when $() is accessed on component where `tagName` is an empty string'] = function testThrowsAnErrorIfWhen$IsAccessedOnComponentWhereTagNameIsAnEmptyString() {\n var _this9 = this;\n\n var template = 'hit dem folks';\n var FooBarComponent = _helpers.Component.extend({\n tagName: '',\n init: function () {\n this._super();\n this.$();\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: template });\n\n expectAssertion(function () {\n _this9.render('{{#foo-bar}}{{/foo-bar}}');\n }, /You cannot access this.\\$\\(\\) on a component with `tagName: \\'\\'` specified/);\n };\n\n _class.prototype['@test renders a contained view with omitted start tag and tagless parent view context'] = function testRendersAContainedViewWithOmittedStartTagAndTaglessParentViewContext() {\n var _this10 = this;\n\n this.registerComponent('root-component', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'section'\n }),\n template: '{{frag-ment}}'\n });\n\n this.registerComponent('frag-ment', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n }),\n template: '{{my-span}}'\n });\n\n this.registerComponent('my-span', {\n ComponentClass: _helpers.Component.extend({\n tagName: 'span'\n }),\n template: 'dab'\n });\n\n this.render('{{root-component}}');\n\n this.assertElement(this.firstChild, { tagName: 'section' });\n this.assertElement(this.firstChild.firstElementChild, { tagName: 'span' });\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'section' });\n this.assertElement(this.firstChild.firstElementChild, { tagName: 'span' });\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/fragment-components-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/fragment-components-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/instrumentation-compile-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Components compile instrumentation', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.resetEvents();\n\n (0, _emberMetal.instrumentationSubscribe)('render.getComponentDefinition', {\n before: function (name, timestamp, payload) {\n if (payload.view !== _this.component) {\n _this.actual.before.push(payload);\n }\n },\n after: function (name, timestamp, payload) {\n if (payload.view !== _this.component) {\n _this.actual.after.push(payload);\n }\n }\n });\n return _this;\n }\n\n _class.prototype.resetEvents = function resetEvents() {\n this.expected = {\n before: [],\n after: []\n };\n\n this.actual = {\n before: [],\n after: []\n };\n };\n\n _class.prototype.teardown = function teardown() {\n this.assert.deepEqual(this.actual.before, [], 'No unexpected events (before)');\n this.assert.deepEqual(this.actual.after, [], 'No unexpected events (after)');\n _RenderingTest.prototype.teardown.call(this);\n (0, _emberMetal.instrumentationReset)();\n };\n\n _class.prototype['@test it should only receive an instrumentation event for initial render'] = function testItShouldOnlyReceiveAnInstrumentationEventForInitialRender(assert) {\n var _this2 = this;\n\n var testCase = this;\n\n var BaseClass = _helpers.Component.extend({\n tagName: '',\n\n willRender: function () {\n testCase.expected.before.push(this);\n testCase.expected.after.unshift(this);\n }\n });\n\n this.registerComponent('x-bar', {\n template: '[x-bar: {{bar}}]',\n ComponentClass: BaseClass.extend()\n });\n\n this.render('[-top-level: {{foo}}] {{x-bar bar=bar}}', {\n foo: 'foo', bar: 'bar'\n });\n\n this.assertText('[-top-level: foo] [x-bar: bar]');\n\n this.assertEvents('after initial render');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertEvents('after no-op rerender');\n };\n\n _class.prototype.assertEvents = function assertEvents(label) {\n var actual = this.actual,\n expected = this.expected;\n\n this.assert.strictEqual(actual.before.length, actual.after.length, label + ': before and after callbacks should be balanced');\n\n this._assertEvents(label + ' (before):', actual.before, expected.before);\n this._assertEvents(label + ' (after):', actual.before, expected.before);\n\n this.resetEvents();\n };\n\n _class.prototype._assertEvents = function _assertEvents(label, actual, expected) {\n var _this3 = this;\n\n this.assert.equal(actual.length, expected.length, label + ': expected ' + expected.length + ' and got ' + actual.length);\n\n actual.forEach(function (payload, i) {\n return _this3.assertPayload(payload, expected[i]);\n });\n };\n\n _class.prototype.assertPayload = function assertPayload(payload, component) {\n this.assert.equal(payload.object, component._debugContainerKey, 'payload.object');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/instrumentation-compile-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/instrumentation-compile-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/instrumentation-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Components instrumentation', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.resetEvents();\n\n (0, _emberMetal.instrumentationSubscribe)('render.component', {\n before: function (name, timestamp, payload) {\n if (payload.view !== _this.component) {\n _this.actual.before.push(payload);\n }\n },\n after: function (name, timestamp, payload) {\n if (payload.view !== _this.component) {\n _this.actual.after.push(payload);\n }\n }\n });\n return _this;\n }\n\n _class.prototype.resetEvents = function resetEvents() {\n this.expected = {\n before: [],\n after: []\n };\n\n this.actual = {\n before: [],\n after: []\n };\n };\n\n _class.prototype.teardown = function teardown() {\n this.assert.deepEqual(this.actual.before, [], 'No unexpected events (before)');\n this.assert.deepEqual(this.actual.after, [], 'No unexpected events (after)');\n _RenderingTest.prototype.teardown.call(this);\n (0, _emberMetal.instrumentationReset)();\n };\n\n _class.prototype['@test zomg'] = function testZomg(assert) {\n assert.ok(true);\n };\n\n _class.prototype['@test it should receive an instrumentation event for both initial render and updates'] = function testItShouldReceiveAnInstrumentationEventForBothInitialRenderAndUpdates(assert) {\n var _this2 = this;\n\n var testCase = this;\n\n var BaseClass = _helpers.Component.extend({\n tagName: '',\n\n willRender: function () {\n testCase.expected.before.push(this);\n testCase.expected.after.unshift(this);\n }\n });\n\n this.registerComponent('x-bar', {\n template: '[x-bar: {{bar}}] {{yield}}',\n ComponentClass: BaseClass.extend()\n });\n\n this.registerComponent('x-baz', {\n template: '[x-baz: {{baz}}]',\n ComponentClass: BaseClass.extend()\n });\n\n this.registerComponent('x-bat', {\n template: '[x-bat: {{bat}}]',\n ComponentClass: BaseClass.extend()\n });\n\n this.render('[-top-level: {{foo}}] {{#x-bar bar=bar}}{{x-baz baz=baz}}{{/x-bar}} {{x-bat bat=bat}}', {\n foo: 'foo', bar: 'bar', baz: 'baz', bat: 'bat'\n });\n\n this.assertText('[-top-level: foo] [x-bar: bar] [x-baz: baz] [x-bat: bat]');\n\n this.assertEvents('after initial render', true);\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertEvents('after no-op rerender');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'foo', 'FOO');\n });\n\n this.assertEvents('after updating top-level');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'baz', 'BAZ');\n });\n\n this.assertEvents('after updating inner-most');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'bar', 'BAR');\n (0, _emberMetal.set)(_this2.context, 'bat', 'BAT');\n });\n\n this.assertEvents('after updating the rest');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this2.context, 'foo', 'FOO');\n (0, _emberMetal.set)(_this2.context, 'bar', 'BAR');\n (0, _emberMetal.set)(_this2.context, 'baz', 'BAZ');\n (0, _emberMetal.set)(_this2.context, 'bat', 'BAT');\n });\n\n this.assertEvents('after reset');\n };\n\n _class.prototype.assertEvents = function assertEvents(label) {\n var initialRender = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var actual = this.actual,\n expected = this.expected;\n\n\n this.assert.strictEqual(actual.before.length, actual.after.length, label + ': before and after callbacks should be balanced');\n\n this._assertEvents(label + ' (before):', actual.before, expected.before, initialRender);\n this._assertEvents(label + ' (after):', actual.before, expected.before, initialRender);\n\n this.resetEvents();\n };\n\n _class.prototype._assertEvents = function _assertEvents(label, actual, expected, initialRender) {\n var _this3 = this;\n\n this.assert.equal(actual.length, expected.length, label + ': expected ' + expected.length + ' and got ' + actual.length);\n\n actual.forEach(function (payload, i) {\n return _this3.assertPayload(payload, expected[i], initialRender);\n });\n };\n\n _class.prototype.assertPayload = function assertPayload(payload, component, initialRender) {\n this.assert.equal(payload.object, component.toString(), 'payload.object');\n this.assert.ok(payload.containerKey, 'the container key should be present');\n this.assert.equal(payload.containerKey, component._debugContainerKey, 'payload.containerKey');\n this.assert.equal(payload.view, component, 'payload.view');\n this.assert.strictEqual(payload.initialRender, initialRender, 'payload.initialRender');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/instrumentation-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/instrumentation-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/life-cycle-test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-views', 'ember-glimmer/tests/utils/test-helpers', 'ember-utils', 'internal-test-helpers'], function (_emberBabel, _emberMetal, _emberRuntime, _helpers, _abstractTestCase, _testCase, _emberViews, _testHelpers, _emberUtils, _internalTestHelpers) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Twitter: {{', '}}|\\n ', '\\n
'], ['\\n
\\n Twitter: {{', '}}|\\n ', '\\n
']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Name: {{', '}}|\\n ', '\\n
'], ['\\n
\\n Name: {{', '}}|\\n ', '\\n
']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Website: {{', '}}\\n
'], ['\\n
\\n Website: {{', '}}\\n
']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n ', '|\\n ', '|\\n ', '\\n
'], ['\\n
\\n ', '|\\n ', '|\\n ', '\\n
']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Top: ', '\\n
'], ['\\n
\\n Top: ', '\\n
']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Middle: ', '\\n
'], ['\\n
\\n Middle: ', '\\n
']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n Bottom: {{', '}}\\n
'], ['\\n
\\n Bottom: {{', '}}\\n
']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#nested-item}}Item: {{count}}{{/nested-item}}\\n '], ['\\n {{#nested-item}}Item: {{count}}{{/nested-item}}\\n ']),\n _templateObject9 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#nested-item}}Nothing to see here{{/nested-item}}\\n '], ['\\n {{#nested-item}}Nothing to see here{{/nested-item}}\\n ']),\n _templateObject10 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each items as |item|}}\\n ', '\\n {{else}}\\n ', '\\n {{/each}}\\n '], ['\\n {{#each items as |item|}}\\n ', '\\n {{else}}\\n ', '\\n {{/each}}\\n ']),\n _templateObject11 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{yield}}\\n
    \\n {{#nested-component nestedId=(concat itemId \\'-A\\')}}A{{/nested-component}}\\n {{#nested-component nestedId=(concat itemId \\'-B\\')}}B{{/nested-component}}\\n
\\n '], ['\\n {{yield}}\\n
    \\n {{#nested-component nestedId=(concat itemId \\'-A\\')}}A{{/nested-component}}\\n {{#nested-component nestedId=(concat itemId \\'-B\\')}}B{{/nested-component}}\\n
\\n ']),\n _templateObject12 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each items as |item|}}\\n {{#parent-component itemId=item.id}}{{item.id}}{{/parent-component}}\\n {{/each}}\\n {{#if model.shouldShow}}\\n {{#parent-component itemId=6}}6{{/parent-component}}\\n {{/if}}\\n {{#if model.shouldShow}}\\n {{#parent-component itemId=7}}7{{/parent-component}}\\n {{/if}}\\n '], ['\\n {{#each items as |item|}}\\n {{#parent-component itemId=item.id}}{{item.id}}{{/parent-component}}\\n {{/each}}\\n {{#if model.shouldShow}}\\n {{#parent-component itemId=6}}6{{/parent-component}}\\n {{/if}}\\n {{#if model.shouldShow}}\\n {{#parent-component itemId=7}}7{{/parent-component}}\\n {{/if}}\\n ']);\n\n var LifeCycleHooksTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(LifeCycleHooksTest, _RenderingTest);\n\n function LifeCycleHooksTest() {\n (0, _emberBabel.classCallCheck)(this, LifeCycleHooksTest);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.hooks = [];\n _this.components = {};\n _this.componentRegistry = [];\n _this.teardownAssertions = [];\n return _this;\n }\n\n LifeCycleHooksTest.prototype.teardown = function teardown() {\n _RenderingTest.prototype.teardown.call(this);\n\n for (var i = 0; i < this.teardownAssertions.length; i++) {\n this.teardownAssertions[i]();\n }\n };\n\n LifeCycleHooksTest.prototype.getBootOptions = function getBootOptions() {\n return {\n isInteractive: this.isInteractive\n };\n };\n\n LifeCycleHooksTest.prototype.invocationFor = function invocationFor(name) {\n var namedArgs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n throw new Error('Not implemented: `invocationFor`');\n };\n\n LifeCycleHooksTest.prototype.attrFor = function attrFor(name) {\n throw new Error('Not implemented: `attrFor`');\n };\n\n LifeCycleHooksTest.prototype.assertRegisteredViews = function assertRegisteredViews(label) {\n var viewRegistry = this.owner.lookup('-view-registry:main');\n var topLevelId = (0, _emberViews.getViewId)(this.component);\n var actual = Object.keys(viewRegistry).sort().filter(function (id) {\n return id !== topLevelId;\n });\n\n if (this.isInteractive) {\n var expected = this.componentRegistry.sort();\n\n this.assert.deepEqual(actual, expected, 'registered views - ' + label);\n } else {\n this.assert.deepEqual(actual, [], 'no views should be registered for non-interactive mode');\n }\n };\n\n LifeCycleHooksTest.prototype.registerComponent = function registerComponent(name, _ref) {\n var _this2 = this;\n\n var _ref$template = _ref.template,\n template = _ref$template === undefined ? null : _ref$template;\n\n var pushComponent = function (instance) {\n _this2.components[name] = instance;\n _this2.componentRegistry.push((0, _emberViews.getViewId)(instance));\n };\n\n var removeComponent = function (instance) {\n var index = _this2.componentRegistry.indexOf(instance);\n _this2.componentRegistry.splice(index, 1);\n\n delete _this2.components[name];\n };\n\n var pushHook = function (hookName, args) {\n _this2.hooks.push(hook(name, hookName, args));\n };\n\n var assertParentView = function (hookName, instance) {\n _this2.assert.ok(instance.parentView, 'parentView should be present in ' + hookName);\n\n if (hookName === 'willDestroyElement') {\n _this2.assert.ok(instance.parentView.childViews.indexOf(instance) !== -1, 'view is still connected to parentView in ' + hookName);\n }\n };\n\n var assertElement = function (hookName, instance) {\n var inDOM = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;\n\n if (instance.tagName === '') {\n return;\n }\n\n _this2.assert.ok((0, _emberViews.getViewElement)(instance), 'element should be present on ' + instance + ' during ' + hookName);\n\n if (_this2.isInteractive) {\n _this2.assert.ok(instance.element, 'this.element should be present on ' + instance + ' during ' + hookName);\n _this2.assert.equal(document.body.contains(instance.element), inDOM, 'element for ' + instance + ' ' + (inDOM ? 'should' : 'should not') + ' be in the DOM during ' + hookName);\n } else {\n _this2.assert.throws(function () {\n return instance.element;\n }, /Accessing `this.element` is not allowed in non-interactive environments/);\n }\n };\n\n var assertNoElement = function (hookName, instance) {\n _this2.assert.strictEqual((0, _emberViews.getViewElement)(instance), null, 'element should not be present in ' + hookName);\n\n if (_this2.isInteractive) {\n _this2.assert.strictEqual(instance.element, null, 'this.element should not be present in ' + hookName);\n } else {\n _this2.assert.throws(function () {\n return instance.element;\n }, /Accessing `this.element` is not allowed in non-interactive environments/);\n }\n };\n\n var assertState = function (hookName, expectedState, instance) {\n _this2.assert.equal(instance._state, expectedState, 'within ' + hookName + ' the expected _state is ' + expectedState);\n };\n\n var isInteractive = this.isInteractive;\n\n\n var ComponentClass = this.ComponentClass.extend({\n init: function () {\n var _this3 = this,\n _arguments = arguments;\n\n expectDeprecation(function () {\n _this3._super.apply(_this3, _arguments);\n }, /didInitAttrs called/);\n\n this.isInitialRender = true;\n this.componentName = name;\n pushHook('init');\n pushComponent(this);\n assertParentView('init', this);\n assertNoElement('init', this);\n assertState('init', 'preRender', this);\n\n this.on('init', function () {\n return pushHook('on(init)');\n });\n\n _emberMetal.run.schedule('afterRender', function () {\n _this3.isInitialRender = false;\n });\n },\n didInitAttrs: function (options) {\n pushHook('didInitAttrs', options);\n assertParentView('didInitAttrs', this);\n assertNoElement('didInitAttrs', this);\n assertState('didInitAttrs', 'preRender', this);\n },\n didReceiveAttrs: function (options) {\n pushHook('didReceiveAttrs', options);\n assertParentView('didReceiveAttrs', this);\n\n if (this.isInitialRender) {\n assertNoElement('didReceiveAttrs', this);\n assertState('didReceiveAttrs', 'preRender', this);\n } else {\n assertElement('didReceiveAttrs', this);\n\n if (isInteractive) {\n assertState('didReceiveAttrs', 'inDOM', this);\n } else {\n assertState('didReceiveAttrs', 'hasElement', this);\n }\n }\n },\n willInsertElement: function () {\n pushHook('willInsertElement');\n assertParentView('willInsertElement', this);\n assertElement('willInsertElement', this, false);\n assertState('willInsertElement', 'hasElement', this);\n },\n willRender: function () {\n pushHook('willRender');\n assertParentView('willRender', this);\n\n if (this.isInitialRender) {\n assertNoElement('willRender', this, false);\n assertState('willRender', 'preRender', this);\n } else {\n assertElement('willRender', this);\n assertState('willRender', 'inDOM', this);\n }\n },\n didInsertElement: function () {\n pushHook('didInsertElement');\n assertParentView('didInsertElement', this);\n assertElement('didInsertElement', this);\n assertState('didInsertElement', 'inDOM', this);\n },\n didRender: function () {\n pushHook('didRender');\n assertParentView('didRender', this);\n assertElement('didRender', this);\n assertState('didRender', 'inDOM', this);\n },\n didUpdateAttrs: function (options) {\n pushHook('didUpdateAttrs', options);\n assertParentView('didUpdateAttrs', this);\n\n if (isInteractive) {\n assertState('didUpdateAttrs', 'inDOM', this);\n } else {\n assertState('didUpdateAttrs', 'hasElement', this);\n }\n },\n willUpdate: function (options) {\n pushHook('willUpdate', options);\n assertParentView('willUpdate', this);\n assertElement('willUpdate', this);\n assertState('willUpdate', 'inDOM', this);\n },\n didUpdate: function (options) {\n pushHook('didUpdate', options);\n assertParentView('didUpdate', this);\n assertElement('didUpdate', this);\n assertState('didUpdate', 'inDOM', this);\n },\n willDestroyElement: function () {\n pushHook('willDestroyElement');\n assertParentView('willDestroyElement', this);\n assertElement('willDestroyElement', this);\n assertState('willDestroyElement', 'inDOM', this);\n },\n willClearRender: function () {\n pushHook('willClearRender');\n assertParentView('willClearRender', this);\n assertElement('willClearRender', this);\n assertState('willClearRender', 'inDOM', this);\n },\n didDestroyElement: function () {\n pushHook('didDestroyElement');\n assertNoElement('didDestroyElement', this);\n assertState('didDestroyElement', 'destroying', this);\n },\n willDestroy: function () {\n pushHook('willDestroy');\n removeComponent(this);\n\n this._super.apply(this, arguments);\n }\n });\n\n _RenderingTest.prototype.registerComponent.call(this, name, { ComponentClass: ComponentClass, template: template });\n };\n\n LifeCycleHooksTest.prototype.assertHooks = function assertHooks(_ref2) {\n var label = _ref2.label,\n interactive = _ref2.interactive,\n nonInteractive = _ref2.nonInteractive;\n\n var rawHooks = this.isInteractive ? interactive : nonInteractive;\n var hooks = rawHooks.map(function (raw) {\n return hook.apply(undefined, raw);\n });\n this.assert.deepEqual(json(this.hooks), json(hooks), label);\n this.hooks = [];\n };\n\n LifeCycleHooksTest.prototype['@test lifecycle hooks are invoked in a predictable order'] = function testLifecycleHooksAreInvokedInAPredictableOrder() {\n var _this4 = this;\n\n var _boundHelpers = this.boundHelpers,\n attr = _boundHelpers.attr,\n invoke = _boundHelpers.invoke;\n\n\n this.registerComponent('the-top', { template: (0, _abstractTestCase.strip)(_templateObject, attr('twitter'), invoke('the-middle', { name: string('Tom Dale') }))\n });\n\n this.registerComponent('the-middle', { template: (0, _abstractTestCase.strip)(_templateObject2, attr('name'), invoke('the-bottom', { website: string('tomdale.net') }))\n });\n\n this.registerComponent('the-bottom', { template: (0, _abstractTestCase.strip)(_templateObject3, attr('website'))\n });\n\n this.render(invoke('the-top', { twitter: expr('twitter') }), { twitter: '@tomdale' });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n this.assertRegisteredViews('intial render');\n\n var topAttrs = { twitter: '@tomdale' };\n var middleAttrs = { name: 'Tom Dale' };\n var bottomAttrs = { website: 'tomdale.net' };\n\n this.assertHooks({\n label: 'after initial render',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'init'], ['the-top', 'didInitAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'on(init)'], ['the-top', 'willRender'], ['the-top', 'willInsertElement'], ['the-middle', 'init'], ['the-middle', 'didInitAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-middle', 'on(init)'], ['the-middle', 'willRender'], ['the-middle', 'willInsertElement'], ['the-bottom', 'init'], ['the-bottom', 'didInitAttrs'], ['the-bottom', 'didReceiveAttrs'], ['the-bottom', 'on(init)'], ['the-bottom', 'willRender'], ['the-bottom', 'willInsertElement'],\n\n // Async hooks\n\n ['the-bottom', 'didInsertElement'], ['the-bottom', 'didRender'], ['the-middle', 'didInsertElement'], ['the-middle', 'didRender'], ['the-top', 'didInsertElement'], ['the-top', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n ['the-top', 'init'], ['the-top', 'didInitAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'on(init)'], ['the-middle', 'init'], ['the-middle', 'didInitAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-middle', 'on(init)'], ['the-bottom', 'init'], ['the-bottom', 'didInitAttrs'], ['the-bottom', 'didReceiveAttrs'], ['the-bottom', 'on(init)']]\n });\n\n this.runTask(function () {\n return _this4.components['the-bottom'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (bottom)',\n\n interactive: [\n // Sync hooks\n ['the-top', 'willUpdate'], ['the-top', 'willRender'], ['the-middle', 'willUpdate'], ['the-middle', 'willRender'], ['the-bottom', 'willUpdate'], ['the-bottom', 'willRender'],\n\n // Async hooks\n\n ['the-bottom', 'didUpdate'], ['the-bottom', 'didRender'], ['the-middle', 'didUpdate'], ['the-middle', 'didRender'], ['the-top', 'didUpdate'], ['the-top', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return _this4.components['the-middle'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (middle)',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'willUpdate'], ['the-top', 'willRender'], ['the-middle', 'willUpdate'], ['the-middle', 'willRender'],\n\n // Async hooks\n\n ['the-middle', 'didUpdate'], ['the-middle', 'didRender'], ['the-top', 'didUpdate'], ['the-top', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return _this4.components['the-top'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (top)',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'willUpdate'], ['the-top', 'willRender'],\n\n // Async hooks\n\n ['the-top', 'didUpdate'], ['the-top', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'twitter', '@horsetomdale');\n });\n\n this.assertText('Twitter: @horsetomdale|Name: Tom Dale|Website: tomdale.net');\n\n // Because the `twitter` attr is only used by the topmost component,\n // and not passed down, we do not expect to see lifecycle hooks\n // called for child components. If the `didReceiveAttrs` hook used\n // the new attribute to rerender itself imperatively, that would result\n // in lifecycle hooks being invoked for the child.\n\n this.assertHooks({\n label: 'after update',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'didUpdateAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'willUpdate'], ['the-top', 'willRender'],\n\n // Async hooks\n\n ['the-top', 'didUpdate'], ['the-top', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n ['the-top', 'didUpdateAttrs'], ['the-top', 'didReceiveAttrs']]\n });\n\n this.teardownAssertions.push(function () {\n _this4.assertHooks({\n label: 'destroy',\n\n interactive: [['the-top', 'willDestroyElement'], ['the-top', 'willClearRender'], ['the-middle', 'willDestroyElement'], ['the-middle', 'willClearRender'], ['the-bottom', 'willDestroyElement'], ['the-bottom', 'willClearRender'], ['the-top', 'didDestroyElement'], ['the-middle', 'didDestroyElement'], ['the-bottom', 'didDestroyElement'], ['the-top', 'willDestroy'], ['the-middle', 'willDestroy'], ['the-bottom', 'willDestroy']],\n\n nonInteractive: [['the-top', 'willDestroy'], ['the-middle', 'willDestroy'], ['the-bottom', 'willDestroy']]\n });\n\n _this4.assertRegisteredViews('after destroy');\n });\n };\n\n LifeCycleHooksTest.prototype['@test lifecycle hooks are invoked in a correct sibling order'] = function testLifecycleHooksAreInvokedInACorrectSiblingOrder() {\n var _this5 = this;\n\n var _boundHelpers2 = this.boundHelpers,\n attr = _boundHelpers2.attr,\n invoke = _boundHelpers2.invoke;\n\n\n this.registerComponent('the-parent', { template: (0, _abstractTestCase.strip)(_templateObject4, invoke('the-first-child', { twitter: expr(attr('twitter')) }), invoke('the-second-child', { name: expr(attr('name')) }), invoke('the-last-child', { website: expr(attr('website')) }))\n });\n\n this.registerComponent('the-first-child', { template: 'Twitter: {{' + attr('twitter') + '}}' });\n\n this.registerComponent('the-second-child', { template: 'Name: {{' + attr('name') + '}}' });\n\n this.registerComponent('the-last-child', { template: 'Website: {{' + attr('website') + '}}' });\n\n this.render(invoke('the-parent', {\n twitter: expr('twitter'),\n name: expr('name'),\n website: expr('website')\n }), {\n twitter: '@tomdale',\n name: 'Tom Dale',\n website: 'tomdale.net'\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n this.assertRegisteredViews('intial render');\n\n this.assertHooks({\n label: 'after initial render',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'init'], ['the-parent', 'didInitAttrs'], ['the-parent', 'didReceiveAttrs'], ['the-parent', 'on(init)'], ['the-parent', 'willRender'], ['the-parent', 'willInsertElement'], ['the-first-child', 'init'], ['the-first-child', 'didInitAttrs'], ['the-first-child', 'didReceiveAttrs'], ['the-first-child', 'on(init)'], ['the-first-child', 'willRender'], ['the-first-child', 'willInsertElement'], ['the-second-child', 'init'], ['the-second-child', 'didInitAttrs'], ['the-second-child', 'didReceiveAttrs'], ['the-second-child', 'on(init)'], ['the-second-child', 'willRender'], ['the-second-child', 'willInsertElement'], ['the-last-child', 'init'], ['the-last-child', 'didInitAttrs'], ['the-last-child', 'didReceiveAttrs'], ['the-last-child', 'on(init)'], ['the-last-child', 'willRender'], ['the-last-child', 'willInsertElement'],\n\n // Async hooks\n\n ['the-first-child', 'didInsertElement'], ['the-first-child', 'didRender'], ['the-second-child', 'didInsertElement'], ['the-second-child', 'didRender'], ['the-last-child', 'didInsertElement'], ['the-last-child', 'didRender'], ['the-parent', 'didInsertElement'], ['the-parent', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n\n ['the-parent', 'init'], ['the-parent', 'didInitAttrs'], ['the-parent', 'didReceiveAttrs'], ['the-parent', 'on(init)'], ['the-first-child', 'init'], ['the-first-child', 'didInitAttrs'], ['the-first-child', 'didReceiveAttrs'], ['the-first-child', 'on(init)'], ['the-second-child', 'init'], ['the-second-child', 'didInitAttrs'], ['the-second-child', 'didReceiveAttrs'], ['the-second-child', 'on(init)'], ['the-last-child', 'init'], ['the-last-child', 'didInitAttrs'], ['the-last-child', 'didReceiveAttrs'], ['the-last-child', 'on(init)']]\n });\n\n this.runTask(function () {\n return _this5.components['the-first-child'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (first child)',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'willUpdate'], ['the-parent', 'willRender'], ['the-first-child', 'willUpdate'], ['the-first-child', 'willRender'],\n\n // Async hooks\n\n ['the-first-child', 'didUpdate'], ['the-first-child', 'didRender'], ['the-parent', 'didUpdate'], ['the-parent', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return _this5.components['the-second-child'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (second child)',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'willUpdate'], ['the-parent', 'willRender'], ['the-second-child', 'willUpdate'], ['the-second-child', 'willRender'],\n\n // Async hooks\n\n ['the-second-child', 'didUpdate'], ['the-second-child', 'didRender'], ['the-parent', 'didUpdate'], ['the-parent', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return _this5.components['the-last-child'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (last child)',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'willUpdate'], ['the-parent', 'willRender'], ['the-last-child', 'willUpdate'], ['the-last-child', 'willRender'],\n\n // Async hooks\n\n ['the-last-child', 'didUpdate'], ['the-last-child', 'didRender'], ['the-parent', 'didUpdate'], ['the-parent', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return _this5.components['the-parent'].rerender();\n });\n\n this.assertText('Twitter: @tomdale|Name: Tom Dale|Website: tomdale.net');\n\n this.assertHooks({\n label: 'after no-op rerender (parent)',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'willUpdate'], ['the-parent', 'willRender'],\n\n // Async hooks\n\n ['the-parent', 'didUpdate'], ['the-parent', 'didRender']],\n\n nonInteractive: []\n });\n\n this.runTask(function () {\n return (0, _emberMetal.setProperties)(_this5.context, {\n twitter: '@horsetomdale',\n name: 'Horse Tom Dale',\n website: 'horsetomdale.net'\n });\n });\n\n this.assertText('Twitter: @horsetomdale|Name: Horse Tom Dale|Website: horsetomdale.net');\n\n this.assertHooks({\n label: 'after update',\n\n interactive: [\n // Sync hooks\n\n ['the-parent', 'didUpdateAttrs'], ['the-parent', 'didReceiveAttrs'], ['the-parent', 'willUpdate'], ['the-parent', 'willRender'], ['the-first-child', 'didUpdateAttrs'], ['the-first-child', 'didReceiveAttrs'], ['the-first-child', 'willUpdate'], ['the-first-child', 'willRender'], ['the-second-child', 'didUpdateAttrs'], ['the-second-child', 'didReceiveAttrs'], ['the-second-child', 'willUpdate'], ['the-second-child', 'willRender'], ['the-last-child', 'didUpdateAttrs'], ['the-last-child', 'didReceiveAttrs'], ['the-last-child', 'willUpdate'], ['the-last-child', 'willRender'],\n\n // Async hooks\n\n ['the-first-child', 'didUpdate'], ['the-first-child', 'didRender'], ['the-second-child', 'didUpdate'], ['the-second-child', 'didRender'], ['the-last-child', 'didUpdate'], ['the-last-child', 'didRender'], ['the-parent', 'didUpdate'], ['the-parent', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n\n ['the-parent', 'didUpdateAttrs'], ['the-parent', 'didReceiveAttrs'], ['the-first-child', 'didUpdateAttrs'], ['the-first-child', 'didReceiveAttrs'], ['the-second-child', 'didUpdateAttrs'], ['the-second-child', 'didReceiveAttrs'], ['the-last-child', 'didUpdateAttrs'], ['the-last-child', 'didReceiveAttrs']]\n });\n\n this.teardownAssertions.push(function () {\n _this5.assertHooks({\n label: 'destroy',\n\n interactive: [['the-parent', 'willDestroyElement'], ['the-parent', 'willClearRender'], ['the-first-child', 'willDestroyElement'], ['the-first-child', 'willClearRender'], ['the-second-child', 'willDestroyElement'], ['the-second-child', 'willClearRender'], ['the-last-child', 'willDestroyElement'], ['the-last-child', 'willClearRender'], ['the-parent', 'didDestroyElement'], ['the-first-child', 'didDestroyElement'], ['the-second-child', 'didDestroyElement'], ['the-last-child', 'didDestroyElement'], ['the-parent', 'willDestroy'], ['the-first-child', 'willDestroy'], ['the-second-child', 'willDestroy'], ['the-last-child', 'willDestroy']],\n\n nonInteractive: [['the-parent', 'willDestroy'], ['the-first-child', 'willDestroy'], ['the-second-child', 'willDestroy'], ['the-last-child', 'willDestroy']]\n });\n\n _this5.assertRegisteredViews('after destroy');\n });\n };\n\n LifeCycleHooksTest.prototype['@test passing values through attrs causes lifecycle hooks to fire if the attribute values have changed'] = function testPassingValuesThroughAttrsCausesLifecycleHooksToFireIfTheAttributeValuesHaveChanged() {\n var _this6 = this;\n\n var _boundHelpers3 = this.boundHelpers,\n attr = _boundHelpers3.attr,\n invoke = _boundHelpers3.invoke;\n\n\n this.registerComponent('the-top', { template: (0, _abstractTestCase.strip)(_templateObject5, invoke('the-middle', { twitterTop: expr(attr('twitter')) }))\n });\n\n this.registerComponent('the-middle', { template: (0, _abstractTestCase.strip)(_templateObject6, invoke('the-bottom', { twitterMiddle: expr(attr('twitterTop')) }))\n });\n\n this.registerComponent('the-bottom', { template: (0, _abstractTestCase.strip)(_templateObject7, attr('twitterMiddle'))\n });\n\n this.render(invoke('the-top', { twitter: expr('twitter') }), { twitter: '@tomdale' });\n\n this.assertText('Top: Middle: Bottom: @tomdale');\n this.assertRegisteredViews('intial render');\n\n this.assertHooks({\n label: 'after initial render',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'init'], ['the-top', 'didInitAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'on(init)'], ['the-top', 'willRender'], ['the-top', 'willInsertElement'], ['the-middle', 'init'], ['the-middle', 'didInitAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-middle', 'on(init)'], ['the-middle', 'willRender'], ['the-middle', 'willInsertElement'], ['the-bottom', 'init'], ['the-bottom', 'didInitAttrs'], ['the-bottom', 'didReceiveAttrs'], ['the-bottom', 'on(init)'], ['the-bottom', 'willRender'], ['the-bottom', 'willInsertElement'],\n\n // Async hooks\n\n ['the-bottom', 'didInsertElement'], ['the-bottom', 'didRender'], ['the-middle', 'didInsertElement'], ['the-middle', 'didRender'], ['the-top', 'didInsertElement'], ['the-top', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n\n ['the-top', 'init'], ['the-top', 'didInitAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'on(init)'], ['the-middle', 'init'], ['the-middle', 'didInitAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-middle', 'on(init)'], ['the-bottom', 'init'], ['the-bottom', 'didInitAttrs'], ['the-bottom', 'didReceiveAttrs'], ['the-bottom', 'on(init)']]\n });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'twitter', '@horsetomdale');\n });\n\n this.assertText('Top: Middle: Bottom: @horsetomdale');\n\n // Because the `twitter` attr is used by the all of the components,\n // the lifecycle hooks are invoked for all components.\n\n this.assertHooks({\n label: 'after updating (root)',\n\n interactive: [\n // Sync hooks\n\n ['the-top', 'didUpdateAttrs'], ['the-top', 'didReceiveAttrs'], ['the-top', 'willUpdate'], ['the-top', 'willRender'], ['the-middle', 'didUpdateAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-middle', 'willUpdate'], ['the-middle', 'willRender'], ['the-bottom', 'didUpdateAttrs'], ['the-bottom', 'didReceiveAttrs'], ['the-bottom', 'willUpdate'], ['the-bottom', 'willRender'],\n\n // Async hooks\n\n ['the-bottom', 'didUpdate'], ['the-bottom', 'didRender'], ['the-middle', 'didUpdate'], ['the-middle', 'didRender'], ['the-top', 'didUpdate'], ['the-top', 'didRender']],\n\n nonInteractive: [\n // Sync hooks\n\n ['the-top', 'didUpdateAttrs'], ['the-top', 'didReceiveAttrs'], ['the-middle', 'didUpdateAttrs'], ['the-middle', 'didReceiveAttrs'], ['the-bottom', 'didUpdateAttrs'], ['the-bottom', 'didReceiveAttrs']]\n });\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('Top: Middle: Bottom: @horsetomdale');\n\n // In this case, because the attrs are passed down, all child components are invoked.\n\n this.assertHooks({\n label: 'after no-op rernder (root)',\n interactive: [],\n nonInteractive: []\n });\n\n this.teardownAssertions.push(function () {\n _this6.assertHooks({\n label: 'destroy',\n\n interactive: [['the-top', 'willDestroyElement'], ['the-top', 'willClearRender'], ['the-middle', 'willDestroyElement'], ['the-middle', 'willClearRender'], ['the-bottom', 'willDestroyElement'], ['the-bottom', 'willClearRender'], ['the-top', 'didDestroyElement'], ['the-middle', 'didDestroyElement'], ['the-bottom', 'didDestroyElement'], ['the-top', 'willDestroy'], ['the-middle', 'willDestroy'], ['the-bottom', 'willDestroy']],\n\n nonInteractive: [['the-top', 'willDestroy'], ['the-middle', 'willDestroy'], ['the-bottom', 'willDestroy']]\n });\n\n _this6.assertRegisteredViews('after destroy');\n });\n };\n\n LifeCycleHooksTest.prototype['@test components rendered from `{{each}}` have correct life-cycle hooks to be called'] = function testComponentsRenderedFromEachHaveCorrectLifeCycleHooksToBeCalled() {\n var _this7 = this;\n\n var invoke = this.boundHelpers.invoke;\n\n\n this.registerComponent('nested-item', { template: '{{yield}}' });\n\n this.registerComponent('an-item', { template: (0, _abstractTestCase.strip)(_templateObject8) });\n\n this.registerComponent('no-items', { template: (0, _abstractTestCase.strip)(_templateObject9) });\n\n this.render((0, _abstractTestCase.strip)(_templateObject10, invoke('an-item', { count: expr('item') }), invoke('no-items')), {\n items: [1, 2, 3, 4, 5]\n });\n\n this.assertText('Item: 1Item: 2Item: 3Item: 4Item: 5');\n this.assertRegisteredViews('intial render');\n\n var initialHooks = function (count) {\n var ret = [['an-item', 'init'], ['an-item', 'didInitAttrs'], ['an-item', 'didReceiveAttrs'], ['an-item', 'on(init)']];\n if (_this7.isInteractive) {\n ret.push(['an-item', 'willRender'], ['an-item', 'willInsertElement']);\n }\n ret.push(['nested-item', 'init'], ['nested-item', 'didInitAttrs'], ['nested-item', 'didReceiveAttrs'], ['nested-item', 'on(init)']);\n if (_this7.isInteractive) {\n ret.push(['nested-item', 'willRender'], ['nested-item', 'willInsertElement']);\n }\n return ret;\n };\n\n var initialAfterRenderHooks = function (count) {\n if (_this7.isInteractive) {\n return [['nested-item', 'didInsertElement'], ['nested-item', 'didRender'], ['an-item', 'didInsertElement'], ['an-item', 'didRender']];\n } else {\n return [];\n }\n };\n\n this.assertHooks({\n label: 'after initial render',\n\n interactive: [].concat(initialHooks(1), initialHooks(2), initialHooks(3), initialHooks(4), initialHooks(5), initialAfterRenderHooks(5), initialAfterRenderHooks(4), initialAfterRenderHooks(3), initialAfterRenderHooks(2), initialAfterRenderHooks(1)),\n\n nonInteractive: [].concat(initialHooks(1), initialHooks(2), initialHooks(3), initialHooks(4), initialHooks(5), initialAfterRenderHooks(5), initialAfterRenderHooks(4), initialAfterRenderHooks(3), initialAfterRenderHooks(2), initialAfterRenderHooks(1))\n });\n\n // TODO: Is this correct? Should childViews be populated in non-interactive mode?\n if (this.isInteractive) {\n this.assert.equal(this.component.childViews.length, 5, 'childViews precond');\n }\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'items', []);\n });\n\n // TODO: Is this correct? Should childViews be populated in non-interactive mode?\n if (this.isInteractive) {\n this.assert.equal(this.component.childViews.length, 1, 'childViews updated');\n }\n\n this.assertText('Nothing to see here');\n\n this.assertHooks({\n label: 'reset to empty array',\n\n interactive: [['an-item', 'willDestroyElement'], ['an-item', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['an-item', 'willDestroyElement'], ['an-item', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['an-item', 'willDestroyElement'], ['an-item', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['an-item', 'willDestroyElement'], ['an-item', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['an-item', 'willDestroyElement'], ['an-item', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['no-items', 'init'], ['no-items', 'didInitAttrs'], ['no-items', 'didReceiveAttrs'], ['no-items', 'on(init)'], ['no-items', 'willRender'], ['no-items', 'willInsertElement'], ['nested-item', 'init'], ['nested-item', 'didInitAttrs'], ['nested-item', 'didReceiveAttrs'], ['nested-item', 'on(init)'], ['nested-item', 'willRender'], ['nested-item', 'willInsertElement'], ['an-item', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['an-item', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['an-item', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['an-item', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['an-item', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['nested-item', 'didInsertElement'], ['nested-item', 'didRender'], ['no-items', 'didInsertElement'], ['no-items', 'didRender'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy']],\n\n nonInteractive: [['no-items', 'init'], ['no-items', 'didInitAttrs'], ['no-items', 'didReceiveAttrs'], ['no-items', 'on(init)'], ['nested-item', 'init'], ['nested-item', 'didInitAttrs'], ['nested-item', 'didReceiveAttrs'], ['nested-item', 'on(init)'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy'], ['an-item', 'willDestroy'], ['nested-item', 'willDestroy']]\n });\n\n this.teardownAssertions.push(function () {\n _this7.assertHooks({\n label: 'destroy',\n\n interactive: [['no-items', 'willDestroyElement'], ['no-items', 'willClearRender'], ['nested-item', 'willDestroyElement'], ['nested-item', 'willClearRender'], ['no-items', 'didDestroyElement'], ['nested-item', 'didDestroyElement'], ['no-items', 'willDestroy'], ['nested-item', 'willDestroy']],\n\n nonInteractive: [['no-items', 'willDestroy'], ['nested-item', 'willDestroy']]\n });\n\n _this7.assertRegisteredViews('after destroy');\n });\n };\n\n (0, _emberBabel.createClass)(LifeCycleHooksTest, [{\n key: 'isInteractive',\n get: function () {\n return true;\n }\n }, {\n key: 'ComponentClass',\n get: function () {\n throw new Error('Not implemented: `ComponentClass`');\n }\n }, {\n key: 'boundHelpers',\n get: function () {\n return {\n invoke: bind(this.invocationFor, this),\n attr: bind(this.attrFor, this)\n };\n }\n }]);\n return LifeCycleHooksTest;\n }(_testCase.RenderingTest);\n\n var CurlyComponentsTest = function (_LifeCycleHooksTest) {\n (0, _emberBabel.inherits)(CurlyComponentsTest, _LifeCycleHooksTest);\n\n function CurlyComponentsTest() {\n (0, _emberBabel.classCallCheck)(this, CurlyComponentsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LifeCycleHooksTest.apply(this, arguments));\n }\n\n CurlyComponentsTest.prototype.invocationFor = function invocationFor(name) {\n var _this9 = this;\n\n var namedArgs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var attrs = Object.keys(namedArgs).map(function (k) {\n return k + '=' + _this9.val(namedArgs[k]);\n }).join(' ');\n return '{{' + name + ' ' + attrs + '}}';\n };\n\n CurlyComponentsTest.prototype.attrFor = function attrFor(name) {\n return '' + name;\n };\n\n CurlyComponentsTest.prototype.val = function val(value) {\n if (value.isString) {\n return JSON.stringify(value.value);\n } else if (value.isExpr) {\n return '(readonly ' + value.value + ')';\n } else {\n throw new Error('Unknown value: ' + value);\n }\n };\n\n (0, _emberBabel.createClass)(CurlyComponentsTest, [{\n key: 'ComponentClass',\n get: function () {\n return _helpers.Component;\n }\n }]);\n return CurlyComponentsTest;\n }(LifeCycleHooksTest);\n\n (0, _testCase.moduleFor)('Components test: interactive lifecycle hooks (curly components)', function (_CurlyComponentsTest) {\n (0, _emberBabel.inherits)(_class, _CurlyComponentsTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _CurlyComponentsTest.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'isInteractive',\n get: function () {\n return true;\n }\n }]);\n return _class;\n }(CurlyComponentsTest));\n\n (0, _testCase.moduleFor)('Components test: non-interactive lifecycle hooks (curly components)', function (_CurlyComponentsTest2) {\n (0, _emberBabel.inherits)(_class2, _CurlyComponentsTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _CurlyComponentsTest2.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(_class2, [{\n key: 'isInteractive',\n get: function () {\n return false;\n }\n }]);\n return _class2;\n }(CurlyComponentsTest));\n\n (0, _testCase.moduleFor)('Components test: interactive lifecycle hooks (tagless curly components)', function (_CurlyComponentsTest3) {\n (0, _emberBabel.inherits)(_class3, _CurlyComponentsTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _CurlyComponentsTest3.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(_class3, [{\n key: 'ComponentClass',\n get: function () {\n return _helpers.Component.extend({ tagName: '' });\n }\n }, {\n key: 'isInteractive',\n get: function () {\n return true;\n }\n }]);\n return _class3;\n }(CurlyComponentsTest));\n\n (0, _testCase.moduleFor)('Components test: non-interactive lifecycle hooks (tagless curly components)', function (_CurlyComponentsTest4) {\n (0, _emberBabel.inherits)(_class4, _CurlyComponentsTest4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _CurlyComponentsTest4.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(_class4, [{\n key: 'ComponentClass',\n get: function () {\n return _helpers.Component.extend({ tagName: '' });\n }\n }, {\n key: 'isInteractive',\n get: function () {\n return false;\n }\n }]);\n return _class4;\n }(CurlyComponentsTest));\n\n (0, _testCase.moduleFor)('Run loop and lifecycle hooks', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class5, _RenderingTest2);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class5.prototype['@test afterRender set'] = function testAfterRenderSet() {\n var _this16 = this;\n\n var ComponentClass = _helpers.Component.extend({\n width: '5',\n didInsertElement: function () {\n var _this15 = this;\n\n _emberMetal.run.schedule('afterRender', function () {\n _this15.set('width', '10');\n });\n }\n });\n\n var template = '{{width}}';\n this.registerComponent('foo-bar', { ComponentClass: ComponentClass, template: template });\n\n this.render('{{foo-bar}}');\n\n this.assertText('10');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertText('10');\n };\n\n _class5.prototype['@test afterRender set on parent'] = function testAfterRenderSetOnParent() {\n var _this18 = this;\n\n var ComponentClass = _helpers.Component.extend({\n didInsertElement: function () {\n var _this17 = this;\n\n _emberMetal.run.schedule('afterRender', function () {\n var parent = _this17.get('parent');\n parent.set('foo', 'wat');\n });\n }\n });\n\n var template = '{{foo}}';\n\n this.registerComponent('foo-bar', { ComponentClass: ComponentClass, template: template });\n\n this.render('{{foo-bar parent=this foo=foo}}');\n\n this.assertText('wat');\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertText('wat');\n };\n\n _class5.prototype['@test `willRender` can set before render (GH#14458)'] = function testWillRenderCanSetBeforeRenderGH14458(assert) {\n var ComponentClass = _helpers.Component.extend({\n tagName: 'a',\n customHref: 'http://google.com',\n attributeBindings: ['customHref:href'],\n willRender: function () {\n this.set('customHref', 'http://willRender.com');\n }\n });\n\n var template = 'Hello World';\n\n this.registerComponent('foo-bar', { ComponentClass: ComponentClass, template: template });\n\n this.render('{{foo-bar id=\"foo\"}}');\n\n this.assertElement(this.firstChild, {\n tagName: 'a',\n attrs: {\n id: 'foo',\n href: 'http://willRender.com',\n class: (0, _testHelpers.classes)('ember-view')\n }\n });\n };\n\n _class5.prototype['@test that thing about destroying'] = function testThatThingAboutDestroying(assert) {\n var _this19 = this;\n\n var ParentDestroyedElements = [];\n var ChildDestroyedElements = [];\n\n var ParentComponent = _helpers.Component.extend({\n willDestroyElement: function () {\n ParentDestroyedElements.push({\n id: this.itemId,\n name: 'parent-component',\n hasParent: !!this.element.parentNode,\n nextSibling: !!this.element.nextSibling,\n previousSibling: !!this.element.previousSibling\n });\n }\n });\n\n var PartentTemplate = (0, _abstractTestCase.strip)(_templateObject11);\n\n var NestedComponent = _helpers.Component.extend({\n willDestroyElement: function () {\n ChildDestroyedElements.push({\n id: this.nestedId,\n name: 'nested-component',\n hasParent: !!this.element.parentNode,\n nextSibling: !!this.element.nextSibling,\n previousSibling: !!this.element.previousSibling\n });\n }\n });\n\n var NestedTemplate = '{{yield}}';\n\n this.registerComponent('parent-component', {\n ComponentClass: ParentComponent,\n template: PartentTemplate\n });\n\n this.registerComponent('nested-component', {\n ComponentClass: NestedComponent,\n template: NestedTemplate\n });\n\n var array = (0, _emberRuntime.A)([{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, { id: 5 }]);\n\n this.render((0, _abstractTestCase.strip)(_templateObject12), {\n items: array,\n model: { shouldShow: true }\n });\n\n this.assertText('1AB2AB3AB4AB5AB6AB7AB');\n\n this.runTask(function () {\n array.removeAt(2);\n array.removeAt(2);\n (0, _emberMetal.set)(_this19.context, 'model.shouldShow', false);\n });\n\n this.assertText('1AB2AB5AB');\n\n assertDestroyHooks(assert, [].concat(ParentDestroyedElements), [{\n id: 3,\n hasParent: true,\n nextSibling: true,\n previousSibling: true\n }, {\n id: 4,\n hasParent: true,\n nextSibling: true,\n previousSibling: true\n }, {\n id: 6,\n hasParent: true,\n nextSibling: true,\n previousSibling: true\n }, {\n id: 7,\n hasParent: true,\n nextSibling: false,\n previousSibling: true\n }]);\n\n assertDestroyHooks(assert, [].concat(ChildDestroyedElements), [{\n id: '3-A',\n hasParent: true,\n nextSibling: true,\n previousSibling: false\n }, {\n id: '3-B',\n hasParent: true,\n nextSibling: false,\n previousSibling: true\n }, {\n id: '4-A',\n hasParent: true,\n nextSibling: true,\n previousSibling: false\n }, {\n id: '4-B',\n hasParent: true,\n nextSibling: false,\n previousSibling: true\n }, {\n id: '6-A',\n hasParent: true,\n nextSibling: true,\n previousSibling: false\n }, {\n id: '6-B',\n hasParent: true,\n nextSibling: false,\n previousSibling: true\n }, {\n id: '7-A',\n hasParent: true,\n nextSibling: true,\n previousSibling: false\n }, {\n id: '7-B',\n hasParent: true,\n nextSibling: false,\n previousSibling: true\n }]);\n };\n\n _class5.prototype['@test lifecycle hooks have proper access to this.$()'] = function testLifecycleHooksHaveProperAccessToThis$(assert) {\n assert.expect(6);\n var component = void 0;\n var FooBarComponent = _helpers.Component.extend({\n tagName: 'div',\n init: function () {\n assert.notOk(this.$(), 'no access to element via this.$() on init() enter');\n this._super.apply(this, arguments);\n assert.notOk(this.$(), 'no access to element via this.$() after init() finished');\n },\n willInsertElement: function () {\n component = this;\n assert.ok(this.$(), 'willInsertElement has access to element via this.$()');\n },\n didInsertElement: function () {\n assert.ok(this.$(), 'didInsertElement has access to element via this.$()');\n },\n willDestroyElement: function () {\n assert.ok(this.$(), 'willDestroyElement has access to element via this.$()');\n },\n didDestroyElement: function () {\n assert.notOk(this.$(), 'didDestroyElement does not have access to element via this.$()');\n }\n });\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n var owner = this.owner;\n\n var comp = owner.lookup('component:foo-bar');\n (0, _internalTestHelpers.runAppend)(comp);\n this.runTask(function () {\n return (0, _emberUtils.tryInvoke)(component, 'destroy');\n });\n };\n\n return _class5;\n }(_testCase.RenderingTest));\n\n function assertDestroyHooks(assert, _actual, _expected) {\n _expected.forEach(function (expected, i) {\n var name = expected.name;\n assert.equal(expected.id, _actual[i].id, name + ' id is the same');\n assert.equal(expected.hasParent, _actual[i].hasParent, name + ' has parent node');\n assert.equal(expected.nextSibling, _actual[i].nextSibling, name + ' has next sibling node');\n assert.equal(expected.previousSibling, _actual[i].previousSibling, name + ' has previous sibling node');\n });\n }\n\n function bind(func, thisArg) {\n return function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return func.apply(thisArg, args);\n };\n }\n\n function string(value) {\n return { isString: true, value: value };\n }\n\n function expr(value) {\n return { isExpr: true, value: value };\n }\n\n function hook(name, hook) {\n var _ref3 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {},\n attrs = _ref3.attrs,\n oldAttrs = _ref3.oldAttrs,\n newAttrs = _ref3.newAttrs;\n\n return { name: name, hook: hook, args: { attrs: attrs, oldAttrs: oldAttrs, newAttrs: newAttrs } };\n }\n\n function json(serializable) {\n return JSON.parse(JSON.stringify(serializable));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/life-cycle-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/life-cycle-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/link-to-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-runtime', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-helpers'], function (_emberBabel, _testCase, _emberRuntime, _emberMetal, _helpers, _testHelpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Link-to component', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class, _ApplicationTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.apply(this, arguments));\n }\n\n _class.prototype.visitWithDeprecation = function visitWithDeprecation(path, deprecation) {\n var _this2 = this;\n\n var p = void 0;\n\n expectDeprecation(function () {\n p = _this2.visit(path);\n }, deprecation);\n\n return p;\n };\n\n _class.prototype['@test accessing `currentWhen` triggers a deprecation'] = function testAccessingCurrentWhenTriggersADeprecation(assert) {\n var component = void 0;\n this.addComponent('link-to', {\n ComponentClass: _helpers.LinkComponent.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n })\n });\n\n this.addTemplate('application', '{{link-to \\'Index\\' \\'index\\'}}');\n\n return this.visit('/').then(function () {\n expectDeprecation(function () {\n component.get('currentWhen');\n }, /Usage of `currentWhen` is deprecated, use `current-when` instead/);\n });\n };\n\n _class.prototype['@test should be able to be inserted in DOM when the router is not present'] = function testShouldBeAbleToBeInsertedInDOMWhenTheRouterIsNotPresent() {\n var _this3 = this;\n\n this.addTemplate('application', '{{#link-to \\'index\\'}}Go to Index{{/link-to}}');\n\n return this.visit('/').then(function () {\n _this3.assertText('Go to Index');\n });\n };\n\n _class.prototype['@test re-renders when title changes'] = function testReRendersWhenTitleChanges() {\n var _this4 = this;\n\n var controller = void 0;\n\n this.addTemplate('application', '{{link-to title routeName}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n controller = this;\n },\n\n title: 'foo',\n routeName: 'index'\n }));\n\n return this.visit('/').then(function () {\n _this4.assertText('foo');\n _this4.runTask(function () {\n return (0, _emberMetal.set)(controller, 'title', 'bar');\n });\n _this4.assertText('bar');\n });\n };\n\n _class.prototype['@test escaped inline form (double curlies) escapes link title'] = function testEscapedInlineFormDoubleCurliesEscapesLinkTitle() {\n var _this5 = this;\n\n this.addTemplate('application', '{{link-to title \\'index\\'}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n title: 'blah'\n }));\n\n return this.visit('/').then(function () {\n _this5.assertText('blah');\n });\n };\n\n _class.prototype['@test escaped inline form with (-html-safe) does not escape link title'] = function testEscapedInlineFormWithHtmlSafeDoesNotEscapeLinkTitle(assert) {\n var _this6 = this;\n\n this.addTemplate('application', '{{link-to (-html-safe title) \\'index\\'}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n title: 'blah'\n }));\n\n return this.visit('/').then(function () {\n _this6.assertText('blah');\n assert.equal(_this6.$('b').length, 1);\n });\n };\n\n _class.prototype['@test unescaped inline form (triple curlies) does not escape link title'] = function testUnescapedInlineFormTripleCurliesDoesNotEscapeLinkTitle(assert) {\n var _this7 = this;\n\n this.addTemplate('application', '{{{link-to title \\'index\\'}}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n title: 'blah'\n }));\n\n return this.visit('/').then(function () {\n _this7.assertText('blah');\n assert.equal(_this7.$('b').length, 1);\n });\n };\n\n _class.prototype['@test unwraps controllers'] = function testUnwrapsControllers() {\n var _this8 = this;\n\n this.router.map(function () {\n this.route('profile', { path: '/profile/:id' });\n });\n this.addTemplate('application', '{{#link-to \\'profile\\' otherController}}Text{{/link-to}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n otherController: _emberRuntime.Controller.create({\n model: 'foo'\n })\n }));\n\n var deprecation = /Providing `{{link-to}}` with a param that is wrapped in a controller is deprecated./;\n\n return this.visitWithDeprecation('/', deprecation).then(function () {\n _this8.assertText('Text');\n });\n };\n\n _class.prototype['@test able to safely extend the built-in component and use the normal path'] = function testAbleToSafelyExtendTheBuiltInComponentAndUseTheNormalPath() {\n var _this9 = this;\n\n this.addComponent('custom-link-to', { ComponentClass: _helpers.LinkComponent.extend() });\n this.addTemplate('application', '{{#custom-link-to \\'index\\'}}{{title}}{{/custom-link-to}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n title: 'Hello'\n }));\n\n return this.visit('/').then(function () {\n _this9.assertText('Hello');\n });\n };\n\n _class.prototype['@test [GH#13432] able to safely extend the built-in component and invoke it inline'] = function testGH13432AbleToSafelyExtendTheBuiltInComponentAndInvokeItInline() {\n var _this10 = this;\n\n this.addComponent('custom-link-to', { ComponentClass: _helpers.LinkComponent.extend() });\n this.addTemplate('application', '{{custom-link-to title \\'index\\'}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n title: 'Hello'\n }));\n\n return this.visit('/').then(function () {\n _this10.assertText('Hello');\n });\n };\n\n return _class;\n }(_testCase.ApplicationTest));\n\n (0, _testCase.moduleFor)('Link-to component with query-params', function (_ApplicationTest2) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this11 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest2.apply(this, arguments));\n\n _this11.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: '123',\n bar: 'yes'\n }));\n return _this11;\n }\n\n _class2.prototype['@test populates href with fully supplied query param values'] = function testPopulatesHrefWithFullySuppliedQueryParamValues(assert) {\n var _this12 = this;\n\n this.addTemplate('index', '{{#link-to \\'index\\' (query-params foo=\\'456\\' bar=\\'NAW\\')}}Index{{/link-to}}');\n\n return this.visit('/').then(function () {\n _this12.assertComponentElement(_this12.firstChild.firstElementChild, {\n tagName: 'a',\n attrs: { href: '/?bar=NAW&foo=456' },\n content: 'Index'\n });\n });\n };\n\n _class2.prototype['@test populates href with partially supplied query param values, but omits if value is default value'] = function testPopulatesHrefWithPartiallySuppliedQueryParamValuesButOmitsIfValueIsDefaultValue() {\n var _this13 = this;\n\n this.addTemplate('index', '{{#link-to \\'index\\' (query-params foo=\\'123\\')}}Index{{/link-to}}');\n\n return this.visit('/').then(function () {\n _this13.assertComponentElement(_this13.firstChild.firstElementChild, {\n tagName: 'a',\n attrs: { href: '/', class: (0, _testHelpers.classes)('ember-view active') },\n content: 'Index'\n });\n });\n };\n\n return _class2;\n }(_testCase.ApplicationTest));\n\n (0, _testCase.moduleFor)('Link-to component', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class3, _RenderingTest);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class3.prototype['@test should be able to be inserted in DOM when the router is not present - block'] = function testShouldBeAbleToBeInsertedInDOMWhenTheRouterIsNotPresentBlock() {\n this.render('{{#link-to \\'index\\'}}Go to Index{{/link-to}}');\n\n this.assertText('Go to Index');\n };\n\n _class3.prototype['@test should be able to be inserted in DOM when the router is not present - inline'] = function testShouldBeAbleToBeInsertedInDOMWhenTheRouterIsNotPresentInline() {\n this.render('{{link-to \\'Go to Index\\' \\'index\\'}}');\n\n this.assertText('Go to Index');\n };\n\n return _class3;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/link-to-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/link-to-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/local-lookup-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'internal-test-helpers', 'ember-glimmer/tests/utils/helpers', 'ember/features', 'ember-glimmer'], function (_emberBabel, _testCase, _internalTestHelpers, _helpers, _features, _emberGlimmer) {\n 'use strict';\n\n var LocalLookupTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(LocalLookupTest, _RenderingTest);\n\n function LocalLookupTest() {\n (0, _emberBabel.classCallCheck)(this, LocalLookupTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n LocalLookupTest.prototype['@test it can lookup a local template'] = function testItCanLookupALocalTemplate() {\n var _this2 = this;\n\n this.registerComponent('x-outer/x-inner', { template: 'Nested template says: {{yield}}' });\n this.registerComponent('x-outer', { template: '{{#x-inner}}Hi!{{/x-inner}}' });\n\n this.render('{{x-outer}}');\n\n this.assertText('Nested template says: Hi!', 'Initial render works');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('Nested template says: Hi!', 'Re-render works');\n };\n\n LocalLookupTest.prototype['@test tagless blockless component can lookup local template'] = function testTaglessBlocklessComponentCanLookupLocalTemplate() {\n var _this3 = this;\n\n this.registerComponent('x-outer/x-inner', { template: 'Nested template says: {{yield}}' });\n this.registerTemplate('components/x-outer', '{{#x-inner}}Hi!{{/x-inner}}');\n this.registerComponent('x-outer', {\n ComponentClass: _helpers.Component.extend({ tagName: '' })\n });\n\n this.render('{{x-outer}}');\n\n this.assertText('Nested template says: Hi!', 'Re-render works');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('Nested template says: Hi!', 'Re-render works');\n };\n\n LocalLookupTest.prototype['@test it can lookup a local component template'] = function testItCanLookupALocalComponentTemplate() {\n var _this4 = this;\n\n this.registerTemplate('components/x-outer/x-inner', 'Nested template says: {{yield}}');\n this.registerTemplate('components/x-outer', '{{#x-inner}}Hi!{{/x-inner}}');\n\n this.render('{{x-outer}}');\n\n this.assertText('Nested template says: Hi!', 'Initial render works');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('Nested template says: Hi!', 'Re-render works');\n };\n\n LocalLookupTest.prototype['@test it can local lookup a dynamic component'] = function testItCanLocalLookupADynamicComponent() {\n var _this5 = this;\n\n this.registerComponent('foo-bar', { template: 'yall finished {{component child}}' });\n this.registerComponent('foo-bar/biz-baz', { template: 'or yall done?' });\n\n this.render('{{foo-bar child=child}}', { child: 'biz-baz' });\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('yall finished or yall done?');\n };\n\n LocalLookupTest.prototype['@test it can local lookup a dynamic component from a dynamic component'] = function testItCanLocalLookupADynamicComponentFromADynamicComponent() {\n var _this6 = this;\n\n this.registerComponent('foo-bar', { template: 'yall finished {{component child}}' });\n this.registerComponent('foo-bar/biz-baz', { template: 'or yall done?' });\n\n this.render('{{component componentName child=child}}', { componentName: 'foo-bar', child: 'biz-baz' });\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('yall finished or yall done?');\n };\n\n LocalLookupTest.prototype['@test it can local lookup a dynamic component from a passed named argument'] = function testItCanLocalLookupADynamicComponentFromAPassedNamedArgument() {\n var _this7 = this;\n\n this.registerComponent('parent-foo', { template: 'yall finished {{global-biz baz=(component \\'local-bar\\')}}' });\n this.registerComponent('global-biz', { template: 'or {{component baz}}' });\n this.registerComponent('parent-foo/local-bar', { template: 'yall done?' });\n\n this.render('{{parent-foo}}');\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('yall finished or yall done?');\n };\n\n LocalLookupTest.prototype['@test it can local lookup a re-wrapped dynamic component from a passed named argument'] = function testItCanLocalLookupAReWrappedDynamicComponentFromAPassedNamedArgument() {\n var _this8 = this;\n\n this.registerComponent('parent-foo', { template: 'yall finished {{global-x comp=(component \\'local-bar\\')}}' });\n this.registerComponent('global-x', { template: 'or {{global-y comp=(component comp phrase=\\'done\\')}}' });\n this.registerComponent('global-y', { template: '{{component comp}}?' });\n this.registerComponent('parent-foo/local-bar', { template: 'yall {{phrase}}' });\n\n this.render('{{parent-foo}}');\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('yall finished or yall done?');\n };\n\n LocalLookupTest.prototype['@test it can nest local lookups of dynamic components from a passed named argument'] = function testItCanNestLocalLookupsOfDynamicComponentsFromAPassedNamedArgument() {\n var _this9 = this;\n\n this.registerComponent('parent-foo', { template: 'yall finished {{global-x comp=(component \\'local-bar\\')}}' });\n this.registerComponent('global-x', { template: 'or {{global-y comp=(component comp phrase=\\'done\\')}}' });\n this.registerComponent('global-y', { template: '{{component comp}}{{component \\'local-bar\\'}}' });\n this.registerComponent('parent-foo/local-bar', { template: 'yall {{phrase}}' });\n this.registerComponent('global-y/local-bar', { template: '?' });\n\n this.render('{{parent-foo}}');\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('yall finished or yall done?');\n };\n\n LocalLookupTest.prototype['@test it can switch from local to global lookups of dynamic components from a passed named argument'] = function testItCanSwitchFromLocalToGlobalLookupsOfDynamicComponentsFromAPassedNamedArgument() {\n var _this10 = this;\n\n this.registerComponent('parent-foo', { template: 'yall finished {{global-x comp=(component bar)}}' });\n this.registerComponent('global-x', { template: 'or yall {{component comp}}' });\n this.registerComponent('parent-foo/local-bar', { template: 'done?' });\n this.registerComponent('global-bar', { template: 'ready?' });\n\n this.render('{{parent-foo bar=bar}}', { bar: 'local-bar' });\n\n this.assertText('yall finished or yall done?');\n\n this.runTask(function () {\n return _this10.context.set('bar', 'global-bar');\n });\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('yall finished or yall ready?');\n };\n\n LocalLookupTest.prototype['@test it can lookup a local helper'] = function testItCanLookupALocalHelper() {\n var _this11 = this;\n\n this.registerHelper('x-outer/x-helper', function () {\n return 'Who dis?';\n });\n this.registerComponent('x-outer', { template: 'Who dat? {{x-helper}}' });\n\n this.render('{{x-outer}}');\n\n this.assertText('Who dat? Who dis?', 'Initial render works');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('Who dat? Who dis?', 'Re-render works');\n };\n\n LocalLookupTest.prototype['@test it overrides global helper lookup'] = function testItOverridesGlobalHelperLookup() {\n var _this12 = this;\n\n this.registerHelper('x-outer/x-helper', function () {\n return 'Who dis?';\n });\n\n this.registerHelper('x-helper', function () {\n return 'I dunno';\n });\n\n this.registerComponent('x-outer', { template: 'Who dat? {{x-helper}}' });\n\n this.render('{{x-outer}} {{x-helper}}');\n\n this.assertText('Who dat? Who dis? I dunno', 'Initial render works');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('Who dat? Who dis? I dunno', 'Re-render works');\n };\n\n LocalLookupTest.prototype['@test lookup without match issues standard assertion (with local helper name)'] = function testLookupWithoutMatchIssuesStandardAssertionWithLocalHelperName() {\n var _this13 = this;\n\n this.registerComponent('x-outer', { template: '{{#x-inner}}Hi!{{/x-inner}}' });\n\n expectAssertion(function () {\n _this13.render('{{x-outer}}');\n }, /A component or helper named \"x-inner\" could not be found/);\n };\n\n LocalLookupTest.prototype['@test overrides global lookup'] = function testOverridesGlobalLookup() {\n var _this14 = this;\n\n this.registerComponent('x-outer', { template: '{{#x-inner}}Hi!{{/x-inner}}' });\n this.registerComponent('x-outer/x-inner', { template: 'Nested template says (from local): {{yield}}' });\n this.registerComponent('x-inner', { template: 'Nested template says (from global): {{yield}}' });\n\n this.render('{{#x-inner}}Hi!{{/x-inner}} {{x-outer}} {{#x-outer/x-inner}}Hi!{{/x-outer/x-inner}}');\n\n this.assertText('Nested template says (from global): Hi! Nested template says (from local): Hi! Nested template says (from local): Hi!');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('Nested template says (from global): Hi! Nested template says (from local): Hi! Nested template says (from local): Hi!');\n };\n\n return LocalLookupTest;\n }(_testCase.RenderingTest);\n\n // first run these tests with expandLocalLookup\n\n function buildResolver() {\n var resolver = {\n resolve: function () {},\n expandLocalLookup: function (fullName, sourceFullName) {\n var _sourceFullName$split = sourceFullName.split(':'),\n sourceType = _sourceFullName$split[0],\n sourceName = _sourceFullName$split[1];\n\n var _fullName$split = fullName.split(':'),\n type = _fullName$split[0],\n name = _fullName$split[1];\n\n if (type !== 'template' && sourceType === 'template' && sourceName.slice(0, 11) === 'components/') {\n sourceName = sourceName.slice(11);\n }\n\n if (type === 'template' && sourceType === 'template' && name.slice(0, 11) === 'components/') {\n name = name.slice(11);\n }\n\n var result = type + ':' + sourceName + '/' + name;\n\n return result;\n }\n };\n\n return resolver;\n }\n\n (0, _testCase.moduleFor)('Components test: local lookup with expandLocalLookup feature', function (_LocalLookupTest) {\n (0, _emberBabel.inherits)(_class, _LocalLookupTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LocalLookupTest.apply(this, arguments));\n }\n\n _class.prototype.getResolver = function getResolver() {\n return buildResolver();\n };\n\n return _class;\n }(LocalLookupTest));\n\n if (_features.EMBER_MODULE_UNIFICATION) {\n var LocalLookupTestResolver = function (_ModuleBasedTestResol) {\n (0, _emberBabel.inherits)(LocalLookupTestResolver, _ModuleBasedTestResol);\n\n function LocalLookupTestResolver() {\n (0, _emberBabel.classCallCheck)(this, LocalLookupTestResolver);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ModuleBasedTestResol.apply(this, arguments));\n }\n\n LocalLookupTestResolver.prototype.resolve = function resolve(specifier, referrer) {\n var fullSpecifier = specifier;\n\n if (referrer) {\n var namespace = referrer.split('template:components/')[1];\n if (specifier.indexOf('template:components/') !== -1) {\n var name = specifier.split('template:components/')[1];\n fullSpecifier = 'template:components/' + namespace + '/' + name;\n } else if (specifier.indexOf(':') !== -1) {\n var _specifier$split = specifier.split(':'),\n type = _specifier$split[0],\n _name = _specifier$split[1];\n\n fullSpecifier = type + ':' + namespace + '/' + _name;\n }\n }\n\n return _ModuleBasedTestResol.prototype.resolve.call(this, fullSpecifier);\n };\n\n return LocalLookupTestResolver;\n }(_internalTestHelpers.ModuleBasedTestResolver);\n\n /*\n * This sub-classing changes `registerXXX` methods to use the resolver.\n * Required for testing the module unification-friendly `resolve` call\n * with a `referrer` argument.\n *\n * In theory all these tests can be ported to use the resolver instead of\n * the registry.\n */\n (0, _testCase.moduleFor)('Components test: local lookup with resolution referrer', function (_LocalLookupTest2) {\n (0, _emberBabel.inherits)(_class2, _LocalLookupTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _LocalLookupTest2.apply(this, arguments));\n }\n\n _class2.prototype.getResolver = function getResolver() {\n return new LocalLookupTestResolver();\n };\n\n _class2.prototype.registerComponent = function registerComponent(name, _ref) {\n var _ref$ComponentClass = _ref.ComponentClass,\n ComponentClass = _ref$ComponentClass === undefined ? null : _ref$ComponentClass,\n _ref$template = _ref.template,\n template = _ref$template === undefined ? null : _ref$template;\n var resolver = this.resolver;\n\n\n if (ComponentClass) {\n resolver.add('component:' + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n resolver.add('template:components/' + name, this.compile(template, {\n moduleName: 'components/' + name\n }));\n }\n };\n\n _class2.prototype.registerTemplate = function registerTemplate(name, template) {\n var resolver = this.resolver;\n\n if (typeof template === 'string') {\n resolver.add('template:' + name, this.compile(template, {\n moduleName: name\n }));\n } else {\n throw new Error('Registered template \"' + name + '\" must be a string');\n }\n };\n\n _class2.prototype.registerHelper = function registerHelper(name, funcOrClassBody) {\n var resolver = this.resolver;\n\n var type = typeof funcOrClassBody;\n\n if (type === 'function') {\n resolver.add('helper:' + name, (0, _emberGlimmer.helper)(funcOrClassBody));\n } else if (type === 'object' && type !== null) {\n resolver.add('helper:' + name, _emberGlimmer.Helper.extend(funcOrClassBody));\n } else {\n throw new Error('Cannot register ' + funcOrClassBody + ' as a helper');\n }\n };\n\n (0, _emberBabel.createClass)(_class2, [{\n key: 'resolver',\n get: function () {\n return this.owner.__registry__.fallback.resolver;\n }\n }]);\n return _class2;\n }(LocalLookupTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/local-lookup-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/local-lookup-test.js should pass ESLint\\n\\n');\n});\n","enifed(\"ember-glimmer/tests/integration/components/render-to-element-test\", [], function () {\n \"use strict\";\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/render-to-element-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/render-to-element-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/target-action-test', ['ember-babel', 'ember-utils', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-runtime', 'ember-routing'], function (_emberBabel, _emberUtils, _testCase, _abstractTestCase, _emberMetal, _helpers, _emberRuntime, _emberRouting) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#component-a}}\\n {{component-b bar=\"derp\"}}\\n {{/component-a}}\\n '], ['\\n {{#component-a}}\\n {{component-b bar=\"derp\"}}\\n {{/component-a}}\\n ']);\n\n (0, _testCase.moduleFor)('Components test: sendAction', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.actionCounts = {};\n _this.sendCount = 0;\n _this.actionArguments = null;\n\n var self = _this;\n\n _this.registerComponent('action-delegate', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n self.delegate = this;\n this.name = 'action-delegate';\n }\n })\n });\n return _this;\n }\n\n _class.prototype.renderDelegate = function renderDelegate() {\n var template = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '{{action-delegate}}';\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var root = this;\n context = (0, _emberUtils.assign)(context, {\n send: function (actionName) {\n root.sendCount++;\n root.actionCounts[actionName] = root.actionCounts[actionName] || 0;\n root.actionCounts[actionName]++;\n\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n root.actionArguments = args;\n }\n });\n this.render(template, context);\n };\n\n _class.prototype.assertSendCount = function assertSendCount(count) {\n this.assert.equal(this.sendCount, count, 'Send was called ' + count + ' time(s)');\n };\n\n _class.prototype.assertNamedSendCount = function assertNamedSendCount(actionName, count) {\n this.assert.equal(this.actionCounts[actionName], count, 'An action named \\'' + actionName + '\\' was sent ' + count + ' times');\n };\n\n _class.prototype.assertSentWithArgs = function assertSentWithArgs(expected) {\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'arguments were sent with the action';\n\n this.assert.deepEqual(this.actionArguments, expected, message);\n };\n\n _class.prototype['@test Calling sendAction on a component without an action defined does nothing'] = function testCallingSendActionOnAComponentWithoutAnActionDefinedDoesNothing() {\n var _this2 = this;\n\n this.renderDelegate();\n\n this.runTask(function () {\n return _this2.delegate.sendAction();\n });\n\n this.assertSendCount(0);\n };\n\n _class.prototype['@test Calling sendAction on a component with an action defined calls send on the controller'] = function testCallingSendActionOnAComponentWithAnActionDefinedCallsSendOnTheController() {\n var _this3 = this;\n\n this.renderDelegate();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.delegate, 'action', 'addItem');\n _this3.delegate.sendAction();\n });\n\n this.assertSendCount(1);\n this.assertNamedSendCount('addItem', 1);\n };\n\n _class.prototype['@test Calling sendAction on a component with a function calls the function'] = function testCallingSendActionOnAComponentWithAFunctionCallsTheFunction() {\n var _this4 = this;\n\n this.assert.expect(1);\n\n this.renderDelegate();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this4.delegate, 'action', function () {\n return _this4.assert.ok(true, 'function is called');\n });\n _this4.delegate.sendAction();\n });\n };\n\n _class.prototype['@test Calling sendAction on a component with a function calls the function with arguments'] = function testCallingSendActionOnAComponentWithAFunctionCallsTheFunctionWithArguments() {\n var _this5 = this;\n\n this.assert.expect(1);\n var argument = {};\n\n this.renderDelegate();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.delegate, 'action', function (actualArgument) {\n _this5.assert.deepEqual(argument, actualArgument, 'argument is passed');\n });\n _this5.delegate.sendAction('action', argument);\n });\n };\n\n _class.prototype['@test Calling sendAction on a component with a reference attr calls the function with arguments'] = function testCallingSendActionOnAComponentWithAReferenceAttrCallsTheFunctionWithArguments() {\n var _this6 = this;\n\n this.renderDelegate('{{action-delegate playing=playing}}', {\n playing: null\n });\n\n this.runTask(function () {\n return _this6.delegate.sendAction();\n });\n\n this.assertSendCount(0);\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'playing', 'didStartPlaying');\n });\n\n this.runTask(function () {\n _this6.delegate.sendAction('playing');\n });\n\n this.assertSendCount(1);\n this.assertNamedSendCount('didStartPlaying', 1);\n };\n\n _class.prototype['@test Calling sendAction on a component with a {{mut}} attr calls the function with arguments'] = function testCallingSendActionOnAComponentWithAMutAttrCallsTheFunctionWithArguments() {\n var _this7 = this;\n\n this.renderDelegate('{{action-delegate playing=(mut playing)}}', {\n playing: null\n });\n\n this.runTask(function () {\n return _this7.delegate.sendAction('playing');\n });\n\n this.assertSendCount(0);\n\n this.runTask(function () {\n return _this7.delegate.attrs.playing.update('didStartPlaying');\n });\n this.runTask(function () {\n return _this7.delegate.sendAction('playing');\n });\n\n this.assertSendCount(1);\n this.assertNamedSendCount('didStartPlaying', 1);\n };\n\n _class.prototype['@test Calling sendAction with a named action uses the component\\'s property as the action name'] = function testCallingSendActionWithANamedActionUsesTheComponentSPropertyAsTheActionName() {\n var _this8 = this;\n\n this.renderDelegate();\n\n var component = this.delegate;\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this8.delegate, 'playing', 'didStartPlaying');\n component.sendAction('playing');\n });\n\n this.assertSendCount(1);\n this.assertNamedSendCount('didStartPlaying', 1);\n\n this.runTask(function () {\n return component.sendAction('playing');\n });\n\n this.assertSendCount(2);\n this.assertNamedSendCount('didStartPlaying', 2);\n\n this.runTask(function () {\n (0, _emberMetal.set)(component, 'action', 'didDoSomeBusiness');\n component.sendAction();\n });\n\n this.assertSendCount(3);\n this.assertNamedSendCount('didDoSomeBusiness', 1);\n };\n\n _class.prototype['@test Calling sendAction when the action name is not a string raises an exception'] = function testCallingSendActionWhenTheActionNameIsNotAStringRaisesAnException() {\n var _this9 = this;\n\n this.renderDelegate();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.delegate, 'action', {});\n (0, _emberMetal.set)(_this9.delegate, 'playing', {});\n });\n\n expectAssertion(function () {\n return _this9.delegate.sendAction();\n });\n expectAssertion(function () {\n return _this9.delegate.sendAction('playing');\n });\n };\n\n _class.prototype['@test Calling sendAction on a component with contexts'] = function testCallingSendActionOnAComponentWithContexts() {\n var _this10 = this;\n\n this.renderDelegate();\n\n var testContext = { song: 'She Broke My Ember' };\n var firstContext = { song: 'She Broke My Ember' };\n var secondContext = { song: 'My Achey Breaky Ember' };\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this10.delegate, 'playing', 'didStartPlaying');\n _this10.delegate.sendAction('playing', testContext);\n });\n\n this.assertSendCount(1);\n this.assertNamedSendCount('didStartPlaying', 1);\n this.assertSentWithArgs([testContext], 'context was sent with the action');\n\n this.runTask(function () {\n _this10.delegate.sendAction('playing', firstContext, secondContext);\n });\n\n this.assertSendCount(2);\n this.assertNamedSendCount('didStartPlaying', 2);\n this.assertSentWithArgs([firstContext, secondContext], 'multiple contexts were sent to the action');\n };\n\n _class.prototype['@test calling sendAction on a component within a block sends to the outer scope GH#14216'] = function testCallingSendActionOnAComponentWithinABlockSendsToTheOuterScopeGH14216(assert) {\n var testContext = this;\n // overrides default action-delegate so actions can be added\n this.registerComponent('action-delegate', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n testContext.delegate = this;\n this.name = 'action-delegate';\n },\n\n\n actions: {\n derp: function (arg1) {\n assert.ok(true, 'action called on action-delgate');\n assert.equal(arg1, 'something special', 'argument passed through properly');\n }\n }\n }),\n\n template: (0, _abstractTestCase.strip)(_templateObject)\n });\n\n this.registerComponent('component-a', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.name = 'component-a';\n },\n\n actions: {\n derp: function () {\n assert.ok(false, 'no! bad scoping!');\n }\n }\n })\n });\n\n var innerChild = void 0;\n this.registerComponent('component-b', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerChild = this;\n this.name = 'component-b';\n }\n })\n });\n\n this.renderDelegate();\n\n this.runTask(function () {\n return innerChild.sendAction('bar', 'something special');\n });\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('Components test: sendAction to a controller', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTest);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.apply(this, arguments));\n }\n\n _class2.prototype['@test sendAction should trigger an action on the parent component\\'s controller if it exists'] = function testSendActionShouldTriggerAnActionOnTheParentComponentSControllerIfItExists(assert) {\n var _this12 = this;\n\n assert.expect(15);\n\n var component = void 0;\n\n this.router.map(function () {\n this.route('a');\n this.route('b');\n this.route('c', function () {\n this.route('d');\n this.route('e');\n });\n });\n\n this.addComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: '{{val}}'\n });\n\n this.add('controller:a', _emberRuntime.Controller.extend({\n send: function (actionName, actionContext) {\n assert.equal(actionName, 'poke', 'send() method was invoked from a top level controller');\n assert.equal(actionContext, 'top', 'action arguments were passed into the top level controller');\n }\n }));\n this.addTemplate('a', '{{foo-bar val=\"a\" poke=\"poke\"}}');\n\n this.add('route:b', _emberRouting.Route.extend({\n actions: {\n poke: function (actionContext) {\n assert.ok(true, 'Unhandled action sent to route');\n assert.equal(actionContext, 'top no controller');\n }\n }\n }));\n this.addTemplate('b', '{{foo-bar val=\"b\" poke=\"poke\"}}');\n\n this.add('route:c', _emberRouting.Route.extend({\n actions: {\n poke: function (actionContext) {\n assert.ok(true, 'Unhandled action sent to route');\n assert.equal(actionContext, 'top with nested no controller');\n }\n }\n }));\n this.addTemplate('c', '{{foo-bar val=\"c\" poke=\"poke\"}}{{outlet}}');\n\n this.add('route:c.d', _emberRouting.Route.extend({}));\n\n this.add('controller:c.d', _emberRuntime.Controller.extend({\n send: function (actionName, actionContext) {\n assert.equal(actionName, 'poke', 'send() method was invoked from a nested controller');\n assert.equal(actionContext, 'nested', 'action arguments were passed into the nested controller');\n }\n }));\n this.addTemplate('c.d', '{{foo-bar val=\".d\" poke=\"poke\"}}');\n\n this.add('route:c.e', _emberRouting.Route.extend({\n actions: {\n poke: function (actionContext) {\n assert.ok(true, 'Unhandled action sent to route');\n assert.equal(actionContext, 'nested no controller');\n }\n }\n }));\n this.addTemplate('c.e', '{{foo-bar val=\".e\" poke=\"poke\"}}');\n\n return this.visit('/a').then(function () {\n return component.sendAction('poke', 'top');\n }).then(function () {\n _this12.assertText('a');\n return _this12.visit('/b');\n }).then(function () {\n return component.sendAction('poke', 'top no controller');\n }).then(function () {\n _this12.assertText('b');\n return _this12.visit('/c');\n }).then(function () {\n return component.sendAction('poke', 'top with nested no controller');\n }).then(function () {\n _this12.assertText('c');\n return _this12.visit('/c/d');\n }).then(function () {\n return component.sendAction('poke', 'nested');\n }).then(function () {\n _this12.assertText('c.d');\n return _this12.visit('/c/e');\n }).then(function () {\n return component.sendAction('poke', 'nested no controller');\n }).then(function () {\n return _this12.assertText('c.e');\n });\n };\n\n _class2.prototype['@test sendAction should not trigger an action in an outlet\\'s controller if a parent component handles it'] = function testSendActionShouldNotTriggerAnActionInAnOutletSControllerIfAParentComponentHandlesIt(assert) {\n assert.expect(1);\n\n var component = void 0;\n\n this.addComponent('x-parent', {\n ComponentClass: _helpers.Component.extend({\n actions: {\n poke: function () {\n assert.ok(true, 'parent component handled the aciton');\n }\n }\n }),\n template: '{{x-child poke=\"poke\"}}'\n });\n\n this.addComponent('x-child', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n })\n });\n\n this.addTemplate('application', '{{x-parent}}');\n this.add('controller:application', _emberRuntime.Controller.extend({\n send: function (actionName) {\n throw new Error('controller action should not be called');\n }\n }));\n\n return this.visit('/').then(function () {\n return component.sendAction('poke');\n });\n };\n\n return _class2;\n }(_testCase.ApplicationTest));\n\n (0, _testCase.moduleFor)('Components test: sendAction of a closure action', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class3, _RenderingTest2);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class3.prototype['@test action should be called'] = function testActionShouldBeCalled(assert) {\n assert.expect(1);\n var component = void 0;\n\n this.registerComponent('inner-component', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n outerSubmit: function () {\n assert.ok(true, 'outerSubmit called');\n }\n }),\n template: '{{inner-component submitAction=(action outerSubmit)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n return component.sendAction('submitAction');\n });\n };\n\n _class3.prototype['@test contexts passed to sendAction are appended to the bound arguments on a closure action'] = function testContextsPassedToSendActionAreAppendedToTheBoundArgumentsOnAClosureAction() {\n var first = 'mitch';\n var second = 'martin';\n var third = 'matt';\n var fourth = 'wacky wycats';\n\n var innerComponent = void 0;\n var actualArgs = void 0;\n\n this.registerComponent('inner-component', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n }\n }),\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n third: third,\n actions: {\n outerSubmit: function () {\n actualArgs = [].concat(Array.prototype.slice.call(arguments));\n }\n }\n }),\n template: '{{inner-component innerSubmit=(action (action \"outerSubmit\" \"' + first + '\") \"' + second + '\" third)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n return innerComponent.sendAction('innerSubmit', fourth);\n });\n\n this.assert.deepEqual(actualArgs, [first, second, third, fourth], 'action has the correct args');\n };\n\n return _class3;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('Components test: send', function (_RenderingTest3) {\n (0, _emberBabel.inherits)(_class4, _RenderingTest3);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.apply(this, arguments));\n }\n\n _class4.prototype['@test sending to undefined actions triggers an error'] = function testSendingToUndefinedActionsTriggersAnError(assert) {\n assert.expect(2);\n\n var component = void 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n component = this;\n },\n\n actions: {\n foo: function (message) {\n assert.equal('bar', message);\n }\n }\n })\n });\n\n this.render('{{foo-bar}}');\n\n this.runTask(function () {\n return component.send('foo', 'bar');\n });\n\n expectAssertion(function () {\n return component.send('baz', 'bar');\n }, /had no action handler for: baz/);\n };\n\n _class4.prototype['@test `send` will call send from a target if it is defined'] = function testSendWillCallSendFromATargetIfItIsDefined() {\n var _this15 = this;\n\n var component = void 0;\n var target = {\n send: function (message, payload) {\n _this15.assert.equal('foo', message);\n _this15.assert.equal('baz', payload);\n }\n };\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super();\n component = this;\n },\n\n target: target\n })\n });\n\n this.render('{{foo-bar}}');\n\n this.runTask(function () {\n return component.send('foo', 'baz');\n });\n };\n\n _class4.prototype['@test a handled action can be bubbled to the target for continued processing'] = function testAHandledActionCanBeBubbledToTheTargetForContinuedProcessing() {\n var _this16 = this;\n\n this.assert.expect(2);\n\n var component = void 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n poke: function () {\n _this16.assert.ok(true, 'component action called');\n return true;\n }\n },\n target: _emberRuntime.Controller.extend({\n actions: {\n poke: function () {\n _this16.assert.ok(true, 'action bubbled to controller');\n }\n }\n }).create()\n })\n });\n\n this.render('{{foo-bar poke=\"poke\"}}');\n\n this.runTask(function () {\n return component.send('poke');\n });\n };\n\n _class4.prototype['@test action can be handled by a superclass\\' actions object'] = function testActionCanBeHandledByASuperclassActionsObject(assert) {\n this.assert.expect(4);\n\n var component = void 0;\n\n var SuperComponent = _helpers.Component.extend({\n actions: {\n foo: function () {\n assert.ok(true, 'foo');\n },\n bar: function (msg) {\n assert.equal(msg, 'HELLO');\n }\n }\n });\n\n var BarViewMixin = _emberMetal.Mixin.create({\n actions: {\n bar: function (msg) {\n assert.equal(msg, 'HELLO');\n this._super(msg);\n }\n }\n });\n\n this.registerComponent('x-index', {\n ComponentClass: SuperComponent.extend(BarViewMixin, {\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n baz: function () {\n assert.ok(true, 'baz');\n }\n }\n })\n });\n\n this.render('{{x-index}}');\n\n this.runTask(function () {\n component.send('foo');\n component.send('bar', 'HELLO');\n component.send('baz');\n });\n };\n\n _class4.prototype['@test actions cannot be provided at create time'] = function testActionsCannotBeProvidedAtCreateTime(assert) {\n expectAssertion(function () {\n return _helpers.Component.create({\n actions: {\n foo: function () {\n assert.ok(true, 'foo');\n }\n }\n });\n });\n // but should be OK on an object that doesn't mix in Ember.ActionHandler\n _emberRuntime.Object.create({\n actions: ['foo']\n });\n };\n\n return _class4;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/target-action-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/target-action-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/utils-test', ['ember-babel', 'ember-runtime', 'ember-views', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _emberRuntime, _emberViews, _testCase, _helpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('View tree tests', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class, _ApplicationTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.call(this));\n\n _this.addComponent('x-tagless', {\n ComponentClass: _helpers.Component.extend({\n tagName: ''\n }),\n\n template: '
[{{id}}] {{#if isShowing}}{{yield}}{{/if}}
'\n });\n\n _this.addComponent('x-toggle', {\n ComponentClass: _helpers.Component.extend({\n isExpanded: true,\n\n click: function () {\n this.toggleProperty('isExpanded');\n return false;\n }\n }),\n\n template: '[{{id}}] {{#if isExpanded}}{{yield}}{{/if}}'\n });\n\n var ToggleController = _emberRuntime.Controller.extend({\n isExpanded: true,\n\n actions: {\n toggle: function () {\n this.toggleProperty('isExpanded');\n }\n }\n });\n\n _this.add('controller:application', ToggleController);\n\n _this.addTemplate('application', '\\n {{x-tagless id=\"root-1\"}}\\n\\n {{#x-toggle id=\"root-2\"}}\\n {{x-toggle id=\"inner-1\"}}\\n\\n {{#x-toggle id=\"inner-2\"}}\\n {{x-toggle id=\"inner-3\"}}\\n {{/x-toggle}}\\n {{/x-toggle}}\\n\\n \\n\\n {{#if isExpanded}}\\n {{x-toggle id=\"root-3\"}}\\n {{/if}}\\n\\n {{outlet}}\\n ');\n\n _this.add('controller:index', ToggleController.extend({\n isExpanded: false\n }));\n\n _this.addTemplate('index', '\\n {{x-tagless id=\"root-4\"}}\\n\\n {{#x-toggle id=\"root-5\" isExpanded=false}}\\n {{x-toggle id=\"inner-4\"}}\\n\\n {{#x-toggle id=\"inner-5\"}}\\n {{x-toggle id=\"inner-6\"}}\\n {{/x-toggle}}\\n {{/x-toggle}}\\n\\n \\n\\n {{#if isExpanded}}\\n {{x-toggle id=\"root-6\"}}\\n {{/if}}\\n ');\n\n _this.addTemplate('zomg', '\\n {{x-tagless id=\"root-7\"}}\\n\\n {{#x-toggle id=\"root-8\"}}\\n {{x-toggle id=\"inner-7\"}}\\n\\n {{#x-toggle id=\"inner-8\"}}\\n {{x-toggle id=\"inner-9\"}}\\n {{/x-toggle}}\\n {{/x-toggle}}\\n\\n {{#x-toggle id=\"root-9\"}}\\n {{outlet}}\\n {{/x-toggle}}\\n ');\n\n _this.addTemplate('zomg.lol', '\\n {{x-toggle id=\"inner-10\"}}\\n ');\n\n _this.router.map(function () {\n this.route('zomg', function () {\n this.route('lol');\n });\n });\n return _this;\n }\n\n _class.prototype['@test getRootViews'] = function testGetRootViews(assert) {\n var _this2 = this;\n\n return this.visit('/').then(function () {\n _this2.assertRootViews(['root-1', 'root-2', 'root-3', 'root-4', 'root-5']);\n\n _this2.runTask(function () {\n return (0, _emberViews.jQuery)('#toggle-application').click();\n });\n\n _this2.assertRootViews(['root-1', 'root-2', 'root-4', 'root-5']);\n\n _this2.runTask(function () {\n (0, _emberViews.jQuery)('#toggle-application').click();\n (0, _emberViews.jQuery)('#toggle-index').click();\n });\n\n _this2.assertRootViews(['root-1', 'root-2', 'root-3', 'root-4', 'root-5', 'root-6']);\n\n return _this2.visit('/zomg/lol');\n }).then(function () {\n _this2.assertRootViews(['root-1', 'root-2', 'root-3', 'root-7', 'root-8', 'root-9']);\n\n return _this2.visit('/');\n }).then(function () {\n _this2.assertRootViews(['root-1', 'root-2', 'root-3', 'root-4', 'root-5', 'root-6']);\n });\n };\n\n _class.prototype.assertRootViews = function assertRootViews(ids) {\n var owner = this.applicationInstance;\n\n var actual = (0, _emberViews.getRootViews)(owner).map(function (view) {\n return view.id;\n }).sort();\n var expected = ids.sort();\n\n this.assert.deepEqual(actual, expected, 'root views');\n };\n\n _class.prototype['@test getChildViews'] = function testGetChildViews(assert) {\n var _this3 = this;\n\n return this.visit('/').then(function () {\n _this3.assertChildViews('root-2', ['inner-1', 'inner-2']);\n _this3.assertChildViews('root-5', []);\n _this3.assertChildViews('inner-2', ['inner-3']);\n\n _this3.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n\n _this3.assertChildViews('root-2', []);\n\n _this3.runTask(function () {\n return (0, _emberViews.jQuery)('#root-5').click();\n });\n\n _this3.assertChildViews('root-5', ['inner-4', 'inner-5']);\n _this3.assertChildViews('inner-5', ['inner-6']);\n\n return _this3.visit('/zomg');\n }).then(function () {\n _this3.assertChildViews('root-2', []);\n _this3.assertChildViews('root-8', ['inner-7', 'inner-8']);\n _this3.assertChildViews('inner-8', ['inner-9']);\n _this3.assertChildViews('root-9', []);\n\n _this3.runTask(function () {\n return (0, _emberViews.jQuery)('#root-8').click();\n });\n\n _this3.assertChildViews('root-8', []);\n\n return _this3.visit('/zomg/lol');\n }).then(function () {\n _this3.assertChildViews('root-2', []);\n _this3.assertChildViews('root-8', []);\n _this3.assertChildViews('root-9', ['inner-10']);\n\n return _this3.visit('/');\n }).then(function () {\n _this3.assertChildViews('root-2', []);\n _this3.assertChildViews('root-5', []);\n\n _this3.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this3.runTask(function () {\n return (0, _emberViews.jQuery)('#inner-2').click();\n });\n\n _this3.assertChildViews('root-2', ['inner-1', 'inner-2']);\n _this3.assertChildViews('inner-2', []);\n });\n };\n\n _class.prototype['@test getChildViews does not return duplicates'] = function testGetChildViewsDoesNotReturnDuplicates(assert) {\n var _this4 = this;\n\n return this.visit('/').then(function () {\n _this4.assertChildViews('root-2', ['inner-1', 'inner-2']);\n\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n _this4.runTask(function () {\n return (0, _emberViews.jQuery)('#root-2').click();\n });\n\n _this4.assertChildViews('root-2', ['inner-1', 'inner-2']);\n });\n };\n\n _class.prototype.assertChildViews = function assertChildViews(parentId, childIds) {\n var parentView = this.viewFor(parentId);\n var childViews = (0, _emberViews.getChildViews)(parentView);\n\n var actual = childViews.map(function (view) {\n return view.id;\n }).sort();\n var expected = childIds.sort();\n\n this.assert.deepEqual(actual, expected, 'child views for #' + parentId);\n };\n\n _class.prototype.viewFor = function viewFor(id) {\n var owner = this.applicationInstance;\n var registry = owner.lookup('-view-registry:main');\n return registry[id];\n };\n\n return _class;\n }(_testCase.ApplicationTest));\n\n var hasGetClientRects = void 0,\n hasGetBoundingClientRect = void 0;\n var ClientRectListCtor = void 0,\n ClientRectCtor = void 0;\n\n (function () {\n if (document.createRange) {\n var range = document.createRange();\n\n if (range.getClientRects) {\n var clientRectsList = range.getClientRects();\n hasGetClientRects = true;\n ClientRectListCtor = clientRectsList && clientRectsList.constructor;\n }\n\n if (range.getBoundingClientRect) {\n var clientRect = range.getBoundingClientRect();\n hasGetBoundingClientRect = true;\n ClientRectCtor = clientRect && clientRect.constructor;\n }\n }\n })();\n\n (0, _testCase.moduleFor)('Bounds tests', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class2.prototype['@test getViewBounds on a regular component'] = function testGetViewBoundsOnARegularComponent(assert) {\n var component = void 0;\n this.registerComponent('hi-mom', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: '

Hi, mom!

'\n });\n\n this.render('{{hi-mom}}');\n\n var _getViewBounds = (0, _emberViews.getViewBounds)(component),\n parentElement = _getViewBounds.parentElement,\n firstNode = _getViewBounds.firstNode,\n lastNode = _getViewBounds.lastNode;\n\n assert.equal(parentElement, this.element, 'a regular component should have the right parentElement');\n assert.equal(firstNode, component.element, 'a regular component should have a single node that is its element');\n assert.equal(lastNode, component.element, 'a regular component should have a single node that is its element');\n };\n\n _class2.prototype['@test getViewBounds on a tagless component'] = function testGetViewBoundsOnATaglessComponent(assert) {\n var component = void 0;\n this.registerComponent('hi-mom', {\n ComponentClass: _helpers.Component.extend({\n tagName: '',\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: 'Hi, mom!'\n });\n\n this.render('{{hi-mom}}');\n\n var _getViewBounds2 = (0, _emberViews.getViewBounds)(component),\n parentElement = _getViewBounds2.parentElement,\n firstNode = _getViewBounds2.firstNode,\n lastNode = _getViewBounds2.lastNode;\n\n assert.equal(parentElement, this.element, 'a tagless component should have the right parentElement');\n assert.equal(firstNode, this.$('#start-node')[0], 'a tagless component should have a range enclosing all of its nodes');\n assert.equal(lastNode, this.$('#before-end-node')[0].nextSibling, 'a tagless component should have a range enclosing all of its nodes');\n };\n\n _class2.prototype['@test getViewClientRects'] = function testGetViewClientRects(assert) {\n if (!hasGetClientRects || !ClientRectListCtor) {\n assert.ok(true, 'The test environment does not support the DOM API required to run this test.');\n return;\n }\n\n var component = void 0;\n this.registerComponent('hi-mom', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: '

Hi, mom!

'\n });\n\n this.render('{{hi-mom}}');\n\n assert.ok((0, _emberViews.getViewClientRects)(component) instanceof ClientRectListCtor);\n };\n\n _class2.prototype['@test getViewBoundingClientRect'] = function testGetViewBoundingClientRect(assert) {\n if (!hasGetBoundingClientRect || !ClientRectCtor) {\n assert.ok(true, 'The test environment does not support the DOM API required to run this test.');\n return;\n }\n\n var component = void 0;\n this.registerComponent('hi-mom', {\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }),\n template: '

Hi, mom!

'\n });\n\n this.render('{{hi-mom}}');\n\n assert.ok((0, _emberViews.getViewBoundingClientRect)(component) instanceof ClientRectCtor);\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/utils-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/utils-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/web-component-fallback-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal'], function (_emberBabel, _testCase, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Components test: web component fallback', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test custom elements are rendered'] = function testCustomElementsAreRendered() {\n var template = 'hello';\n\n this.render(template);\n\n this.assertHTML(template);\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test custom elements can have bound attributes'] = function testCustomElementsCanHaveBoundAttributes() {\n var _this2 = this;\n\n var template = 'hello';\n\n this.render(template, { name: 'Robert' });\n\n this.assertHTML('hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'name', 'Kris');\n });\n\n this.assertHTML('hello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'name', 'Robert');\n });\n\n this.assertHTML('hello');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/web-component-fallback-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/web-component-fallback-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/components/will-destroy-element-hook-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case'], function (_emberBabel, _emberMetal, _helpers, _testCase) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Component willDestroyElement hook', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it calls willDestroyElement when removed by if'] = function testItCallsWillDestroyElementWhenRemovedByIf(assert) {\n var _this2 = this;\n\n var didInsertElementCount = 0;\n var willDestroyElementCount = 0;\n var FooBarComponent = _helpers.Component.extend({\n didInsertElement: function () {\n didInsertElementCount++;\n assert.notEqual(this.element.parentNode, null, 'precond component is in DOM');\n },\n willDestroyElement: function () {\n willDestroyElementCount++;\n assert.notEqual(this.element.parentNode, null, 'has not been removed from DOM yet');\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n\n this.render('{{#if switch}}{{foo-bar}}{{/if}}', { switch: true });\n\n assert.equal(didInsertElementCount, 1, 'didInsertElement was called once');\n\n this.assertComponentElement(this.firstChild, { content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'switch', false);\n });\n\n assert.equal(willDestroyElementCount, 1, 'willDestroyElement was called once');\n\n this.assertText('');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/components/will-destroy-element-hook-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/components/will-destroy-element-hook-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/content-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-metal', 'ember-debug', 'ember-runtime', 'ember-glimmer/tests/utils/test-helpers', 'ember-views', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _testCase, _abstractTestCase, _emberMetal, _emberDebug, _emberRuntime, _testHelpers, _emberViews, _helpers) {\n 'use strict';\n\n /* globals EmberDev */\n (0, _testCase.moduleFor)('Static content tests', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can render a static text node'] = function testItCanRenderAStaticTextNode() {\n var _this2 = this;\n\n this.render('hello');\n var text1 = this.assertTextNode(this.firstChild, 'hello');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n var text2 = this.assertTextNode(this.firstChild, 'hello');\n\n this.assertSameNode(text1, text2);\n };\n\n _class.prototype['@test it can render a static element'] = function testItCanRenderAStaticElement() {\n var _this3 = this;\n\n this.render('

hello

');\n var p1 = this.assertElement(this.firstChild, { tagName: 'p' });\n var text1 = this.assertTextNode(this.firstChild.firstChild, 'hello');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n var p2 = this.assertElement(this.firstChild, { tagName: 'p' });\n var text2 = this.assertTextNode(this.firstChild.firstChild, 'hello');\n\n this.assertSameNode(p1, p2);\n this.assertSameNode(text1, text2);\n };\n\n _class.prototype['@test it can render a static template'] = function testItCanRenderAStaticTemplate() {\n var _this4 = this;\n\n var template = '\\n
\\n

Welcome to Ember.js

\\n
\\n
\\n

Why you should use Ember.js?

\\n
    \\n
  1. It\\'s great
  2. \\n
  3. It\\'s awesome
  4. \\n
  5. It\\'s Ember.js
  6. \\n
\\n
\\n
\\n Ember.js is free, open source and always will be.\\n
\\n ';\n\n this.render(template);\n this.assertHTML(template);\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertHTML(template);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n var DynamicContentTest = function (_RenderingTest2) {\n (0, _emberBabel.inherits)(DynamicContentTest, _RenderingTest2);\n\n function DynamicContentTest() {\n (0, _emberBabel.classCallCheck)(this, DynamicContentTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n DynamicContentTest.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n throw new Error('Not implemented: `renderValues`');\n };\n\n DynamicContentTest.prototype.assertIsEmpty = function assertIsEmpty() {\n this.assert.strictEqual(this.firstChild, null);\n };\n\n DynamicContentTest.prototype.assertContent = function assertContent(content) {\n throw new Error('Not implemented: `assertContent`');\n };\n\n DynamicContentTest.prototype['@test it can render a dynamic path'] = function testItCanRenderADynamicPath() {\n var _this6 = this;\n\n this.renderPath('message', { message: 'hello' });\n\n this.assertContent('hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'message', 'goodbye');\n });\n\n this.assertContent('goodbye');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'message', 'hello');\n });\n\n this.assertContent('hello');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test resolves the string length properly'] = function testResolvesTheStringLengthProperly() {\n var _this7 = this;\n\n this.render('

{{foo.length}}

', { foo: undefined });\n\n this.assertHTML('

');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'foo', 'foo');\n });\n\n this.assertHTML('

3

');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'foo', '');\n });\n\n this.assertHTML('

0

');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'foo', undefined);\n });\n\n this.assertHTML('

');\n };\n\n DynamicContentTest.prototype['@test resolves the array length properly'] = function testResolvesTheArrayLengthProperly() {\n var _this8 = this;\n\n this.render('

{{foo.length}}

', { foo: undefined });\n\n this.assertHTML('

');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', [1, 2, 3]);\n });\n\n this.assertHTML('

3

');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', []);\n });\n\n this.assertHTML('

0

');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', undefined);\n });\n\n this.assertHTML('

');\n };\n\n DynamicContentTest.prototype['@test it can render a capitalized path with no deprecation'] = function testItCanRenderACapitalizedPathWithNoDeprecation() {\n var _this9 = this;\n\n expectNoDeprecation();\n\n this.renderPath('CaptializedPath', { CaptializedPath: 'no deprecation' });\n\n this.assertContent('no deprecation');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'CaptializedPath', 'still no deprecation');\n });\n\n this.assertContent('still no deprecation');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'CaptializedPath', 'no deprecation');\n });\n\n this.assertContent('no deprecation');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can render undefined dynamic paths'] = function testItCanRenderUndefinedDynamicPaths() {\n var _this10 = this;\n\n this.renderPath('name', {});\n\n this.assertIsEmpty();\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'name', 'foo-bar');\n });\n\n this.assertContent('foo-bar');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'name', undefined);\n });\n\n this.assertIsEmpty();\n };\n\n DynamicContentTest.prototype['@test it can render a deeply nested dynamic path'] = function testItCanRenderADeeplyNestedDynamicPath() {\n var _this11 = this;\n\n this.renderPath('a.b.c.d.e.f', {\n a: { b: { c: { d: { e: { f: 'hello' } } } } }\n });\n\n this.assertContent('hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'a.b.c.d.e.f', 'goodbye');\n });\n\n this.assertContent('goodbye');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'a.b.c.d', { e: { f: 'aloha' } });\n });\n\n this.assertContent('aloha');\n this.assertInvariants();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this11.context, 'a', { b: { c: { d: { e: { f: 'hello' } } } } });\n });\n\n this.assertContent('hello');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can render a computed property'] = function testItCanRenderAComputedProperty() {\n var _this12 = this;\n\n var Formatter = _emberRuntime.Object.extend({\n formattedMessage: (0, _emberMetal.computed)('message', function () {\n return this.get('message').toUpperCase();\n })\n });\n\n var m = Formatter.create({ message: 'hello' });\n\n this.renderPath('m.formattedMessage', { m: m });\n\n this.assertContent('HELLO');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(m, 'message', 'goodbye');\n });\n\n this.assertContent('GOODBYE');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'm', Formatter.create({ message: 'hello' }));\n });\n\n this.assertContent('HELLO');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can render a computed property with nested dependency'] = function testItCanRenderAComputedPropertyWithNestedDependency() {\n var _this13 = this;\n\n var Formatter = _emberRuntime.Object.extend({\n formattedMessage: (0, _emberMetal.computed)('messenger.message', function () {\n return this.get('messenger.message').toUpperCase();\n })\n });\n\n var m = Formatter.create({ messenger: { message: 'hello' } });\n\n this.renderPath('m.formattedMessage', { m: m });\n\n this.assertContent('HELLO');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(m, 'messenger.message', 'goodbye');\n });\n\n this.assertContent('GOODBYE');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'm', Formatter.create({ messenger: { message: 'hello' } }));\n });\n\n this.assertContent('HELLO');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can read from a proxy object'] = function testItCanReadFromAProxyObject() {\n var _this14 = this;\n\n this.renderPath('proxy.name', { proxy: _emberRuntime.ObjectProxy.create({ content: { name: 'Tom Dale' } }) });\n\n this.assertContent('Tom Dale');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'proxy.content.name', 'Yehuda Katz');\n });\n\n this.assertContent('Yehuda Katz');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'proxy.content', { name: 'Godfrey Chan' });\n });\n\n this.assertContent('Godfrey Chan');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'proxy.name', 'Stefan Penner');\n });\n\n this.assertContent('Stefan Penner');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'proxy.content', null);\n });\n\n this.assertIsEmpty();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'proxy', _emberRuntime.ObjectProxy.create({ content: { name: 'Tom Dale' } }));\n });\n\n this.assertContent('Tom Dale');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can read from a nested path in a proxy object'] = function testItCanReadFromANestedPathInAProxyObject() {\n var _this15 = this;\n\n this.renderPath('proxy.name.last', { proxy: _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Tom', last: 'Dale' } } }) });\n\n this.assertContent('Dale');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy.content.name.last', 'Cruise');\n });\n\n this.assertContent('Cruise');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy.content.name.first', 'Suri');\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy.content.name', { first: 'Yehuda', last: 'Katz' });\n });\n\n this.assertContent('Katz');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy.content', { name: { first: 'Godfrey', last: 'Chan' } });\n });\n\n this.assertContent('Chan');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy.name', { first: 'Stefan', last: 'Penner' });\n });\n\n this.assertContent('Penner');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy', null);\n });\n\n this.assertIsEmpty();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'proxy', _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Tom', last: 'Dale' } } }));\n });\n\n this.assertContent('Dale');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can read from a path flipping between a proxy and a real object'] = function testItCanReadFromAPathFlippingBetweenAProxyAndARealObject() {\n var _this16 = this;\n\n this.renderPath('proxyOrObject.name.last', { proxyOrObject: _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Tom', last: 'Dale' } } }) });\n\n this.assertContent('Dale');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject', { name: { first: 'Tom', last: 'Dale' } });\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject.name.last', 'Cruise');\n });\n\n this.assertContent('Cruise');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject.name.first', 'Suri');\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject', { name: { first: 'Yehuda', last: 'Katz' } });\n });\n\n this.assertContent('Katz');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject', _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Godfrey', last: 'Chan' } } }));\n });\n\n this.assertContent('Chan');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject.content.name', { first: 'Stefan', last: 'Penner' });\n });\n\n this.assertContent('Penner');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject', null);\n });\n\n this.assertIsEmpty();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'proxyOrObject', _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Tom', last: 'Dale' } } }));\n });\n\n this.assertContent('Dale');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can read from a path flipping between a real object and a proxy'] = function testItCanReadFromAPathFlippingBetweenARealObjectAndAProxy() {\n var _this17 = this;\n\n this.renderPath('objectOrProxy.name.last', { objectOrProxy: { name: { first: 'Tom', last: 'Dale' } } });\n\n this.assertContent('Dale');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy', _emberRuntime.ObjectProxy.create({ content: { name: { first: 'Tom', last: 'Dale' } } }));\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy.content.name.last', 'Cruise');\n });\n\n this.assertContent('Cruise');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy.content.name.first', 'Suri');\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy.content', { name: { first: 'Yehuda', last: 'Katz' } });\n });\n\n this.assertContent('Katz');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy', { name: { first: 'Godfrey', last: 'Chan' } });\n });\n\n this.assertContent('Chan');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy.name', { first: 'Stefan', last: 'Penner' });\n });\n\n this.assertContent('Penner');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy', null);\n });\n\n this.assertIsEmpty();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'objectOrProxy', { name: { first: 'Tom', last: 'Dale' } });\n });\n\n this.assertContent('Dale');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can read from a null object'] = function testItCanReadFromANullObject() {\n var _this18 = this;\n\n var nullObject = Object.create(null);\n nullObject['message'] = 'hello';\n\n this.renderPath('nullObject.message', { nullObject: nullObject });\n\n this.assertContent('hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(nullObject, 'message', 'goodbye');\n });\n\n this.assertContent('goodbye');\n this.assertInvariants();\n\n nullObject = Object.create(null);\n nullObject['message'] = 'hello';\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this18.context, 'nullObject', nullObject);\n });\n\n this.assertContent('hello');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can render a readOnly property of a path'] = function testItCanRenderAReadOnlyPropertyOfAPath() {\n var _this19 = this;\n\n var Messenger = _emberRuntime.Object.extend({\n message: _emberMetal.computed.readOnly('a.b.c')\n });\n\n var messenger = Messenger.create({\n a: {\n b: {\n c: 'hello'\n }\n }\n });\n\n this.renderPath('messenger.message', { messenger: messenger });\n\n this.assertContent('hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(messenger, 'a.b.c', 'hi');\n });\n\n this.assertContent('hi');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'messenger.a.b', {\n c: 'goodbye'\n });\n });\n\n this.assertContent('goodbye');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'messenger', {\n message: 'hello'\n });\n });\n\n this.assertContent('hello');\n this.assertInvariants();\n };\n\n DynamicContentTest.prototype['@test it can render a property on a function'] = function testItCanRenderAPropertyOnAFunction() {\n var func = function () {};\n func.aProp = 'this is a property on a function';\n\n this.renderPath('func.aProp', { func: func });\n\n this.assertContent('this is a property on a function');\n\n this.assertStableRerender();\n\n // this.runTask(() => set(func, 'aProp', 'still a property on a function'));\n // this.assertContent('still a property on a function');\n // this.assertInvariants();\n\n // func = () => {};\n // func.aProp = 'a prop on a new function';\n\n // this.runTask(() => set(this.context, 'func', func));\n\n // this.assertContent('a prop on a new function');\n // this.assertInvariants();\n };\n\n return DynamicContentTest;\n }(_testCase.RenderingTest);\n\n var EMPTY = {};\n\n var ContentTestGenerator = function () {\n function ContentTestGenerator(cases) {\n var tag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '@test';\n (0, _emberBabel.classCallCheck)(this, ContentTestGenerator);\n\n this.cases = cases;\n this.tag = tag;\n }\n\n ContentTestGenerator.prototype.generate = function generate(_ref) {\n var value = _ref[0],\n expected = _ref[1],\n label = _ref[2];\n\n var tag = this.tag;\n label = label || value;\n\n if (expected === EMPTY) {\n var _ref2;\n\n return _ref2 = {}, _ref2[tag + ' rendering ' + label] = function () {\n var _this20 = this;\n\n this.renderPath('value', { value: value });\n\n this.assertIsEmpty();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'value', 'hello');\n });\n\n this.assertContent('hello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this20.context, 'value', value);\n });\n\n this.assertIsEmpty();\n }, _ref2;\n } else {\n var _ref3;\n\n return _ref3 = {}, _ref3[tag + ' rendering ' + label] = function () {\n var _this21 = this;\n\n this.renderPath('value', { value: value });\n\n this.assertContent(expected);\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this21.context, 'value', 'hello');\n });\n\n this.assertContent('hello');\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this21.context, 'value', value);\n });\n\n this.assertContent(expected);\n this.assertInvariants();\n }, _ref3;\n }\n };\n\n return ContentTestGenerator;\n }();\n\n var SharedContentTestCases = new ContentTestGenerator([['foo', 'foo'], [0, '0'], [-0, '0', '-0'], [1, '1'], [-1, '-1'], [0.0, '0', '0.0'], [0.5, '0.5'], [undefined, EMPTY], [null, EMPTY], [true, 'true'], [false, 'false'], [NaN, 'NaN'], [new Date(2000, 0, 1), String(new Date(2000, 0, 1)), 'a Date object'], [Infinity, 'Infinity'], [1 / -0, '-Infinity'], [{ foo: 'bar' }, '[object Object]', '{ foo: \\'bar\\' }'], [{\n toString: function () {\n return 'foo';\n }\n }, 'foo', 'an object with a custom toString function'], [{\n valueOf: function () {\n return 1;\n }\n }, '[object Object]', 'an object with a custom valueOf function'],\n\n // Escaping tests\n ['MaxJames', 'MaxJames']]);\n\n var GlimmerContentTestCases = new ContentTestGenerator([[Object.create(null), EMPTY, 'an object with no toString']]);\n\n if (typeof Symbol !== 'undefined') {\n GlimmerContentTestCases.cases.push([Symbol('debug'), 'Symbol(debug)', 'a symbol']);\n }\n\n (0, _abstractTestCase.applyMixins)(DynamicContentTest, SharedContentTestCases, GlimmerContentTestCases);\n\n (0, _testCase.moduleFor)('Dynamic content tests (content position)', function (_DynamicContentTest) {\n (0, _emberBabel.inherits)(_class2, _DynamicContentTest);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DynamicContentTest.apply(this, arguments));\n }\n\n _class2.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n this.render('{{' + path + '}}', context);\n };\n\n _class2.prototype.assertContent = function assertContent(content) {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one text node');\n this.assertTextNode(this.firstChild, content);\n };\n\n return _class2;\n }(DynamicContentTest));\n\n (0, _testCase.moduleFor)('Dynamic content tests (content concat)', function (_DynamicContentTest2) {\n (0, _emberBabel.inherits)(_class3, _DynamicContentTest2);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DynamicContentTest2.apply(this, arguments));\n }\n\n _class3.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n this.render('{{concat \"\" ' + path + ' \"\"}}', context);\n };\n\n _class3.prototype.assertContent = function assertContent(content) {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one text node');\n this.assertTextNode(this.firstChild, content);\n };\n\n return _class3;\n }(DynamicContentTest));\n\n (0, _testCase.moduleFor)('Dynamic content tests (inside an element)', function (_DynamicContentTest3) {\n (0, _emberBabel.inherits)(_class4, _DynamicContentTest3);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DynamicContentTest3.apply(this, arguments));\n }\n\n _class4.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n this.render('

{{' + path + '}}

', context);\n };\n\n _class4.prototype.assertIsEmpty = function assertIsEmpty() {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one

tag');\n this.assertElement(this.firstChild, { tagName: 'p' });\n this.assertText('');\n };\n\n _class4.prototype.assertContent = function assertContent(content) {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one

tag');\n this.assertElement(this.firstChild, { tagName: 'p' });\n this.assertText(content);\n };\n\n return _class4;\n }(DynamicContentTest));\n\n (0, _testCase.moduleFor)('Dynamic content tests (attribute position)', function (_DynamicContentTest4) {\n (0, _emberBabel.inherits)(_class5, _DynamicContentTest4);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DynamicContentTest4.apply(this, arguments));\n }\n\n _class5.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n this.render('

', context);\n };\n\n _class5.prototype.assertIsEmpty = function assertIsEmpty() {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one
tag');\n this.assertElement(this.firstChild, { tagName: 'div', content: '' });\n };\n\n _class5.prototype.assertContent = function assertContent(content) {\n this.assert.strictEqual(this.nodesCount, 1, 'It should render exactly one
tag');\n this.assertElement(this.firstChild, { tagName: 'div', attrs: { 'data-foo': content }, content: '' });\n };\n\n return _class5;\n }(DynamicContentTest));\n\n var TrustedContentTest = function (_DynamicContentTest5) {\n (0, _emberBabel.inherits)(TrustedContentTest, _DynamicContentTest5);\n\n function TrustedContentTest() {\n (0, _emberBabel.classCallCheck)(this, TrustedContentTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _DynamicContentTest5.apply(this, arguments));\n }\n\n TrustedContentTest.prototype.assertIsEmpty = function assertIsEmpty() {\n this.assert.strictEqual(this.firstChild, null);\n };\n\n TrustedContentTest.prototype.assertContent = function assertContent(content) {\n this.assertHTML(content);\n };\n\n TrustedContentTest.prototype.assertStableRerender = function assertStableRerender() {\n var _this27 = this;\n\n this.takeSnapshot();\n this.runTask(function () {\n return _this27.rerender();\n });\n _DynamicContentTest5.prototype.assertInvariants.call(this);\n };\n\n TrustedContentTest.prototype.assertInvariants = function assertInvariants() {\n // If it's not stable, we will wipe out all the content and replace them,\n // so there are no invariants\n };\n\n return TrustedContentTest;\n }(DynamicContentTest);\n\n (0, _testCase.moduleFor)('Dynamic content tests (trusted)', function (_TrustedContentTest) {\n (0, _emberBabel.inherits)(_class6, _TrustedContentTest);\n\n function _class6() {\n (0, _emberBabel.classCallCheck)(this, _class6);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TrustedContentTest.apply(this, arguments));\n }\n\n _class6.prototype.renderPath = function renderPath(path) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n this.render('{{{' + path + '}}}', context);\n };\n\n _class6.prototype['@test updating trusted curlies'] = function testUpdatingTrustedCurlies() {\n var _this29 = this;\n\n this.render('{{{htmlContent}}}{{{nested.htmlContent}}}', {\n htmlContent: 'Max',\n nested: { htmlContent: 'James' }\n });\n\n this.assertContent('MaxJames');\n\n this.runTask(function () {\n return _this29.rerender();\n });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'htmlContent', 'Max');\n });\n\n this.assertContent('MaxJames');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'nested.htmlContent', 'Jammie');\n });\n\n this.assertContent('MaxJammie');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this29.context, 'htmlContent', 'Max');\n (0, _emberMetal.set)(_this29.context, 'nested', { htmlContent: 'James' });\n });\n\n this.assertContent('MaxJames');\n };\n\n return _class6;\n }(TrustedContentTest));\n\n (0, _testCase.moduleFor)('Dynamic content tests (integration)', function (_RenderingTest3) {\n (0, _emberBabel.inherits)(_class7, _RenderingTest3);\n\n function _class7() {\n (0, _emberBabel.classCallCheck)(this, _class7);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.apply(this, arguments));\n }\n\n _class7.prototype['@test it can render a dynamic template'] = function testItCanRenderADynamicTemplate() {\n var _this31 = this;\n\n var template = '\\n
\\n

Welcome to {{framework}}

\\n
\\n
\\n

Why you should use {{framework}}?

\\n
    \\n
  1. It\\'s great
  2. \\n
  3. It\\'s awesome
  4. \\n
  5. It\\'s {{framework}}
  6. \\n
\\n
\\n
\\n {{framework}} is free, open source and always will be.\\n
\\n ';\n\n var ember = '\\n
\\n

Welcome to Ember.js

\\n
\\n
\\n

Why you should use Ember.js?

\\n
    \\n
  1. It\\'s great
  2. \\n
  3. It\\'s awesome
  4. \\n
  5. It\\'s Ember.js
  6. \\n
\\n
\\n
\\n Ember.js is free, open source and always will be.\\n
\\n ';\n\n var react = '\\n
\\n

Welcome to React

\\n
\\n
\\n

Why you should use React?

\\n
    \\n
  1. It\\'s great
  2. \\n
  3. It\\'s awesome
  4. \\n
  5. It\\'s React
  6. \\n
\\n
\\n
\\n React is free, open source and always will be.\\n
\\n ';\n\n this.render(template, {\n framework: 'Ember.js'\n });\n this.assertHTML(ember);\n\n this.runTask(function () {\n return _this31.rerender();\n });\n\n this.assertHTML(ember);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this31.context, 'framework', 'React');\n });\n\n this.assertHTML(react);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this31.context, 'framework', 'Ember.js');\n });\n\n this.assertHTML(ember);\n };\n\n _class7.prototype['@test it should evaluate to nothing if part of the path is `undefined`'] = function testItShouldEvaluateToNothingIfPartOfThePathIsUndefined() {\n var _this32 = this;\n\n this.render('{{foo.bar.baz.bizz}}', {\n foo: {}\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this32.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'foo', {\n bar: { baz: { bizz: 'Hey!' } }\n });\n });\n\n this.assertText('Hey!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'foo', {});\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'foo', {\n bar: { baz: { bizz: 'Hello!' } }\n });\n });\n\n this.assertText('Hello!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'foo', {});\n });\n\n this.assertText('');\n };\n\n _class7.prototype['@test it should evaluate to nothing if part of the path is a primative'] = function testItShouldEvaluateToNothingIfPartOfThePathIsAPrimative() {\n var _this33 = this;\n\n this.render('{{foo.bar.baz.bizz}}', {\n foo: { bar: true }\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this33.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: false\n });\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: 'Haha'\n });\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: null\n });\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: undefined\n });\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: 1\n });\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: { baz: { bizz: 'Hello!' } }\n });\n });\n\n this.assertText('Hello!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this33.context, 'foo', {\n bar: true\n });\n });\n\n this.assertText('');\n };\n\n _class7.prototype['@test can set dynamic href'] = function testCanSetDynamicHref() {\n var _this34 = this;\n\n this.render('Example', {\n model: {\n url: 'http://example.com'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'a', content: 'Example', attrs: { 'href': 'http://example.com' } });\n\n this.runTask(function () {\n return _this34.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'a', content: 'Example', attrs: { 'href': 'http://example.com' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this34.context, 'model.url', 'http://linkedin.com');\n });\n\n this.assertElement(this.firstChild, { tagName: 'a', content: 'Example', attrs: { 'href': 'http://linkedin.com' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this34.context, 'model', { url: 'http://example.com' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'a', content: 'Example', attrs: { 'href': 'http://example.com' } });\n };\n\n _class7.prototype['@test quoteless class attributes update correctly'] = function testQuotelessClassAttributesUpdateCorrectly() {\n var _this35 = this;\n\n this.render('
hello
', {\n fooBar: true\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n\n this.runTask(function () {\n return _this35.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this35.context, 'fooBar', false);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this35.context, 'fooBar', true);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n };\n\n _class7.prototype['@test quoted class attributes update correctly'] = function testQuotedClassAttributesUpdateCorrectly(assert) {\n var _this36 = this;\n\n this.render('
hello
', {\n fooBar: true\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n\n this.runTask(function () {\n return _this36.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this36.context, 'fooBar', false);\n });\n\n assert.equal(this.firstChild.className, '');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this36.context, 'fooBar', true);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo-bar') } });\n };\n\n _class7.prototype['@test unquoted class attribute can contain multiple classes'] = function testUnquotedClassAttributeCanContainMultipleClasses() {\n var _this37 = this;\n\n this.render('
hello
', {\n model: {\n classes: 'foo bar baz'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n\n this.runTask(function () {\n return _this37.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this37.context, 'model.classes', 'fizz bizz');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz bizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this37.context, 'model', { classes: 'foo bar baz' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n };\n\n _class7.prototype['@test unquoted class attribute'] = function testUnquotedClassAttribute() {\n var _this38 = this;\n\n this.render('
hello
', {\n model: {\n foo: 'foo'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n\n this.runTask(function () {\n return _this38.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this38.context, 'model.foo', 'fizz');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this38.context, 'model', { foo: 'foo' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n };\n\n _class7.prototype['@test quoted class attribute'] = function testQuotedClassAttribute() {\n var _this39 = this;\n\n this.render('
hello
', {\n model: {\n foo: 'foo'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n\n this.runTask(function () {\n return _this39.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this39.context, 'model.foo', 'fizz');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this39.context, 'model', { foo: 'foo' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo') } });\n };\n\n _class7.prototype['@test quoted class attribute can contain multiple classes'] = function testQuotedClassAttributeCanContainMultipleClasses() {\n var _this40 = this;\n\n this.render('
hello
', {\n model: {\n classes: 'foo bar baz'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n\n this.runTask(function () {\n return _this40.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this40.context, 'model.classes', 'fizz bizz');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz bizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this40.context, 'model', { classes: 'foo bar baz' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar baz') } });\n };\n\n _class7.prototype['@test class attribute concats bound values'] = function testClassAttributeConcatsBoundValues() {\n var _this41 = this;\n\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar',\n bizz: 'bizz'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar bizz') } });\n\n this.runTask(function () {\n return _this41.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar bizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this41.context, 'model.foo', 'fizz');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz bar bizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this41.context, 'model.bar', null);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('fizz bizz') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this41.context, 'model', {\n foo: 'foo',\n bar: 'bar',\n bizz: 'bizz'\n });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar bizz') } });\n };\n\n _class7.prototype['@test class attribute accepts nested helpers, and updates'] = function testClassAttributeAcceptsNestedHelpersAndUpdates() {\n var _this42 = this;\n\n this.render('
hello
', {\n model: {\n size: 'large',\n hasSize: true,\n hasShape: false,\n shape: 'round'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('large') } });\n\n this.runTask(function () {\n return _this42.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('large') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this42.context, 'model.hasShape', true);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('large round') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this42.context, 'model.hasSize', false);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('round') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this42.context, 'model', {\n size: 'large',\n hasSize: true,\n hasShape: false,\n shape: 'round'\n });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('large') } });\n };\n\n _class7.prototype['@test Multiple dynamic classes'] = function testMultipleDynamicClasses() {\n var _this43 = this;\n\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar',\n fizz: 'fizz',\n baz: 'baz'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar fizz baz') } });\n\n this.runTask(function () {\n return _this43.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar fizz baz') } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this43.context, 'model.foo', null);\n (0, _emberMetal.set)(_this43.context, 'model.fizz', null);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('bar baz') } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this43.context, 'model', {\n foo: 'foo',\n bar: 'bar',\n fizz: 'fizz',\n baz: 'baz'\n });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': (0, _testHelpers.classes)('foo bar fizz baz') } });\n };\n\n _class7.prototype['@test classes are ordered: See issue #9912'] = function testClassesAreOrderedSeeIssue9912() {\n var _this44 = this;\n\n this.render('
hello
', {\n model: {\n foo: 'foo',\n bar: 'bar'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': 'foo static bar' } });\n\n this.runTask(function () {\n return _this44.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': 'foo static bar' } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this44.context, 'model.bar', null);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': 'foo static ' } });\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this44.context, 'model', {\n foo: 'foo',\n bar: 'bar'\n });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: 'hello', attrs: { 'class': 'foo static bar' } });\n };\n\n return _class7;\n }(_testCase.RenderingTest));\n\n var warnings = void 0,\n originalWarn = void 0;\n\n var StyleTest = function (_RenderingTest4) {\n (0, _emberBabel.inherits)(StyleTest, _RenderingTest4);\n\n function StyleTest() {\n (0, _emberBabel.classCallCheck)(this, StyleTest);\n\n var _this45 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest4.apply(this, arguments));\n\n warnings = [];\n originalWarn = (0, _emberDebug.getDebugFunction)('warn');\n (0, _emberDebug.setDebugFunction)('warn', function (message, test) {\n if (!test) {\n warnings.push(message);\n }\n });\n return _this45;\n }\n\n StyleTest.prototype.teardown = function teardown() {\n var _RenderingTest4$proto;\n\n (_RenderingTest4$proto = _RenderingTest4.prototype.teardown).call.apply(_RenderingTest4$proto, [this].concat(Array.prototype.slice.call(arguments)));\n (0, _emberDebug.setDebugFunction)('warn', originalWarn);\n };\n\n StyleTest.prototype.assertStyleWarning = function assertStyleWarning(style) {\n this.assert.deepEqual(warnings, [(0, _emberViews.constructStyleDeprecationMessage)(style)]);\n };\n\n StyleTest.prototype.assertNoWarning = function assertNoWarning() {\n this.assert.deepEqual(warnings, []);\n };\n\n return StyleTest;\n }(_testCase.RenderingTest);\n\n (0, _testCase.moduleFor)('Inline style tests', function (_StyleTest) {\n (0, _emberBabel.inherits)(_class8, _StyleTest);\n\n function _class8() {\n (0, _emberBabel.classCallCheck)(this, _class8);\n return (0, _emberBabel.possibleConstructorReturn)(this, _StyleTest.apply(this, arguments));\n }\n\n _class8.prototype['@test can set dynamic style'] = function testCanSetDynamicStyle() {\n var _this47 = this;\n\n this.render('
', {\n model: {\n style: 'width: 60px;'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n\n this.runTask(function () {\n return _this47.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this47.context, 'model.style', 'height: 60px;');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'height: 60px;' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this47.context, 'model.style', null);\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: {} });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this47.context, 'model', { style: 'width: 60px;' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n };\n\n _class8.prototype['@test can set dynamic style with -html-safe'] = function testCanSetDynamicStyleWithHtmlSafe() {\n var _this48 = this;\n\n this.render('
', {\n model: {\n style: 'width: 60px;'\n }\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n\n this.runTask(function () {\n return _this48.rerender();\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this48.context, 'model.style', 'height: 60px;');\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'height: 60px;' } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this48.context, 'model', { style: 'width: 60px;' });\n });\n\n this.assertElement(this.firstChild, { tagName: 'div', content: '', attrs: { 'style': 'width: 60px;' } });\n };\n\n return _class8;\n }(StyleTest));\n\n if (!EmberDev.runningProdBuild) {\n (0, _testCase.moduleFor)('Inline style tests - warnings', function (_StyleTest2) {\n (0, _emberBabel.inherits)(_class9, _StyleTest2);\n\n function _class9() {\n (0, _emberBabel.classCallCheck)(this, _class9);\n return (0, _emberBabel.possibleConstructorReturn)(this, _StyleTest2.apply(this, arguments));\n }\n\n _class9.prototype['@test specifying
generates a warning'] = function testSpecifyingDivStyleUserValueDivGeneratesAWarning(assert) {\n var userValue = 'width: 42px';\n this.render('
', {\n userValue: userValue\n });\n\n this.assertStyleWarning(userValue);\n };\n\n _class9.prototype['@test specifying `attributeBindings: [\"style\"]` generates a warning'] = function testSpecifyingAttributeBindingsStyleGeneratesAWarning(assert) {\n var FooBarComponent = _helpers.Component.extend({\n attributeBindings: ['style']\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: 'hello' });\n var userValue = 'width: 42px';\n this.render('{{foo-bar style=userValue}}', {\n userValue: userValue\n });\n\n this.assertStyleWarning(userValue);\n };\n\n _class9.prototype['@test specifying `
` works properly without a warning'] = function testSpecifyingDivStyleUserValueDivWorksProperlyWithoutAWarning(assert) {\n this.render('
', {\n userValue: 'width: 42px'\n });\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test specifying `
` works properly with a SafeString'] = function testSpecifyingDivStyleUserValueDivWorksProperlyWithASafeString(assert) {\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test null value do not generate htmlsafe warning'] = function testNullValueDoNotGenerateHtmlsafeWarning(assert) {\n this.render('
', {\n userValue: null\n });\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test undefined value do not generate htmlsafe warning'] = function testUndefinedValueDoNotGenerateHtmlsafeWarning(assert) {\n this.render('
');\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test no warnings are triggered when using `-html-safe`'] = function testNoWarningsAreTriggeredWhenUsingHtmlSafe(assert) {\n this.render('
', {\n userValue: 'width: 42px'\n });\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test no warnings are triggered when a safe string is quoted'] = function testNoWarningsAreTriggeredWhenASafeStringIsQuoted(assert) {\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n\n this.assertNoWarning();\n };\n\n _class9.prototype['@test binding warning is triggered when an unsafe string is quoted'] = function testBindingWarningIsTriggeredWhenAnUnsafeStringIsQuoted(assert) {\n var userValue = 'width: 42px';\n this.render('
', {\n userValue: userValue\n });\n\n this.assertStyleWarning(userValue);\n };\n\n _class9.prototype['@test binding warning is triggered when a safe string for a complete property is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForACompletePropertyIsConcatenatedInPlace(assert) {\n var userValue = 'width: 42px';\n this.render('
', {\n userValue: new _helpers.SafeString('width: 42px')\n });\n\n this.assertStyleWarning('color: green; ' + userValue);\n };\n\n _class9.prototype['@test binding warning is triggered when a safe string for a value is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForAValueIsConcatenatedInPlace(assert) {\n var userValue = '42px';\n this.render('
', {\n userValue: new _helpers.SafeString(userValue)\n });\n\n this.assertStyleWarning('color: green; width: ' + userValue);\n };\n\n _class9.prototype['@test binding warning is triggered when a safe string for a property name is concatenated in place'] = function testBindingWarningIsTriggeredWhenASafeStringForAPropertyNameIsConcatenatedInPlace(assert) {\n var userValue = 'width';\n this.render('
', {\n userProperty: new _helpers.SafeString(userValue)\n });\n\n this.assertStyleWarning('color: green; ' + userValue + ': 42px');\n };\n\n return _class9;\n }(StyleTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/content-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/content-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/custom-component-manager-test', ['ember-babel', '@glimmer/runtime', 'ember-glimmer/tests/utils/test-case', 'ember/features', 'ember-glimmer'], function (_emberBabel, _runtime, _testCase, _features, _emberGlimmer) {\n 'use strict';\n\n if (_features.GLIMMER_CUSTOM_COMPONENT_MANAGER) {\n var TestLayoutCompiler = function () {\n function TestLayoutCompiler(template) {\n (0, _emberBabel.classCallCheck)(this, TestLayoutCompiler);\n\n this.template = template;\n }\n\n TestLayoutCompiler.prototype.compile = function compile(builder) {\n builder.wrapLayout(this.template);\n builder.tag.dynamic(function () {\n return _runtime.PrimitiveReference.create('p');\n });\n builder.attrs.static('class', 'hey-oh-lets-go');\n builder.attrs.static('manager-id', 'test');\n };\n\n return TestLayoutCompiler;\n }();\n\n var TestComponentManager = function (_AbstractComponentMan) {\n (0, _emberBabel.inherits)(TestComponentManager, _AbstractComponentMan);\n\n function TestComponentManager() {\n (0, _emberBabel.classCallCheck)(this, TestComponentManager);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractComponentMan.apply(this, arguments));\n }\n\n TestComponentManager.prototype.create = function create(env, definition, args, dynamicScope, caller, hasBlock) {\n return definition.ComponentClass.create();\n };\n\n TestComponentManager.prototype.layoutFor = function layoutFor(definition, bucket, env) {\n return env.getCompiledBlock(TestLayoutCompiler, definition.template);\n };\n\n TestComponentManager.prototype.getDestructor = function getDestructor(component) {\n return component;\n };\n\n TestComponentManager.prototype.getSelf = function getSelf() {\n return null;\n };\n\n return TestComponentManager;\n }(_emberGlimmer.AbstractComponentManager);\n\n (0, _testCase.moduleFor)('Components test: curly components with custom manager', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it can render a basic component with custom component manager'] = function testItCanRenderABasicComponentWithCustomComponentManager(assert) {\n var managerId = 'test';\n this.owner.register('component-manager:' + managerId, new TestComponentManager());\n this.registerComponent('foo-bar', {\n template: '{{use-component-manager \"' + managerId + '\"}}hello',\n managerId: managerId\n });\n\n this.render('{{foo-bar}}');\n\n assert.equal(this.firstChild.className, 'hey-oh-lets-go', 'class name was set correctly');\n assert.equal(this.firstChild.tagName, 'P', 'tag name was set correctly');\n assert.equal(this.firstChild.getAttribute('manager-id'), managerId, 'custom attribute was set correctly');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/custom-component-manager-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/custom-component-manager-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/event-dispatcher-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal', 'ember/features', 'ember-views'], function (_emberBabel, _testCase, _helpers, _emberMetal, _features, _emberViews) {\n 'use strict';\n\n var canDataTransfer = !!document.createEvent('HTMLEvents').dataTransfer;\n\n function fireNativeWithDataTransfer(node, type, dataTransfer) {\n var event = document.createEvent('HTMLEvents');\n event.initEvent(type, true, true);\n event.dataTransfer = dataTransfer;\n node.dispatchEvent(event);\n }\n\n (0, _testCase.moduleFor)('EventDispatcher', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test events bubble view hierarchy for form elements'] = function testEventsBubbleViewHierarchyForFormElements(assert) {\n var _this2 = this;\n\n var receivedEvent = void 0;\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change: function (event) {\n receivedEvent = event;\n }\n }),\n template: ''\n });\n\n this.render('{{x-foo}}');\n\n this.runTask(function () {\n return _this2.$('#is-done').trigger('change');\n });\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n };\n\n _class.prototype['@test events bubble to parent view'] = function testEventsBubbleToParentView(assert) {\n var _this3 = this;\n\n var receivedEvent = void 0;\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change: function (event) {\n receivedEvent = event;\n }\n }),\n template: '{{yield}}'\n });\n\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n change: function () {}\n }),\n template: ''\n });\n\n this.render('{{#x-foo}}{{x-bar}}{{/x-foo}}');\n\n this.runTask(function () {\n return _this3.$('#is-done').trigger('change');\n });\n assert.ok(receivedEvent, 'change event was triggered');\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n };\n\n _class.prototype['@test events bubbling up can be prevented'] = function testEventsBubblingUpCanBePrevented(assert) {\n var _this4 = this;\n\n var hasReceivedEvent = void 0;\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change: function () {\n hasReceivedEvent = true;\n }\n }),\n template: '{{yield}}'\n });\n\n this.registerComponent('x-bar', {\n ComponentClass: _helpers.Component.extend({\n change: function () {\n return false;\n }\n }),\n template: ''\n });\n\n this.render('{{#x-foo}}{{x-bar}}{{/x-foo}}');\n\n this.runTask(function () {\n return _this4.$('#is-done').trigger('change');\n });\n assert.notOk(hasReceivedEvent, 'change event has not been received');\n };\n\n _class.prototype['@test dispatches to the nearest event manager'] = function testDispatchesToTheNearestEventManager(assert) {\n var _this5 = this;\n\n var receivedEvent = void 0;\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click: function (event) {\n assert.notOk(true, 'should not trigger `click` on component');\n },\n\n\n eventManager: {\n click: function (event) {\n receivedEvent = event;\n }\n }\n }),\n\n template: ''\n });\n\n expectDeprecation(/`eventManager` has been deprecated/);\n this.render('{{x-foo}}');\n\n this.runTask(function () {\n return _this5.$('#is-done').trigger('click');\n });\n assert.strictEqual(receivedEvent.target, this.$('#is-done')[0]);\n };\n\n _class.prototype['@test event manager can re-dispatch to the component'] = function testEventManagerCanReDispatchToTheComponent(assert) {\n var _this6 = this;\n\n var handlers = [];\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click: function () {\n handlers.push('component');\n },\n\n\n eventManager: {\n click: function (event, component) {\n handlers.push('eventManager');\n // Re-dispatch event when you get it.\n //\n // The second parameter tells the dispatcher\n // that this event has been handled. This\n // API will clearly need to be reworked since\n // multiple eventManagers in a single view\n // hierarchy would break, but it shows that\n // re-dispatching works\n component.$().trigger('click', this);\n }\n }\n }),\n\n template: ''\n });\n\n expectDeprecation(/`eventManager` has been deprecated/);\n this.render('{{x-foo}}');\n\n this.runTask(function () {\n return _this6.$('#is-done').trigger('click');\n });\n assert.deepEqual(handlers, ['eventManager', 'component']);\n };\n\n _class.prototype['@test event handlers are wrapped in a run loop'] = function testEventHandlersAreWrappedInARunLoop(assert) {\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n change: function () {\n assert.ok(_emberMetal.run.currentRunLoop, 'a run loop should have started');\n }\n }),\n template: ''\n });\n\n this.render('{{x-foo}}');\n\n this.$('#is-done').trigger('click');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('EventDispatcher#setup', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this7 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.call(this));\n\n var dispatcher = _this7.owner.lookup('event_dispatcher:main');\n (0, _emberMetal.run)(dispatcher, 'destroy');\n _this7.owner.__container__.reset('event_dispatcher:main');\n _this7.dispatcher = _this7.owner.lookup('event_dispatcher:main');\n return _this7;\n }\n\n _class2.prototype['@test additional events can be specified'] = function testAdditionalEventsCanBeSpecified(assert) {\n this.dispatcher.setup({ myevent: 'myEvent' });\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n myEvent: function () {\n assert.ok(true, 'custom event was triggered');\n }\n }),\n template: '

Hello!

'\n });\n\n this.render('{{x-foo}}');\n\n this.$('div').trigger('myevent');\n };\n\n _class2.prototype['@test eventManager is deprecated'] = function testEventManagerIsDeprecated(assert) {\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n eventManager: {\n myEvent: function () {}\n }\n }),\n template: '

Hello!

'\n });\n\n expectDeprecation(/`eventManager` has been deprecated/);\n this.render('{{x-foo}}');\n };\n\n _class2.prototype['@test a rootElement can be specified'] = function testARootElementCanBeSpecified(assert) {\n this.$().append('
');\n this.dispatcher.setup({ myevent: 'myEvent' }, '#app');\n\n assert.ok(this.$('#app').hasClass('ember-application'), 'custom rootElement was used');\n assert.equal(this.dispatcher.rootElement, '#app', 'the dispatchers rootElement was updated');\n };\n\n _class2.prototype['@test default events can be disabled via `customEvents`'] = function testDefaultEventsCanBeDisabledViaCustomEvents(assert) {\n this.dispatcher.setup({ click: null });\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click: function () {\n assert.ok(false, 'click method was called');\n },\n null: function () {\n assert.ok(false, 'null method was called');\n },\n doubleClick: function () {\n assert.ok(true, 'a non-disabled event is still handled properly');\n }\n }),\n\n template: '

Hello!

'\n });\n\n this.render('{{x-foo}}');\n\n this.$('div').trigger('click');\n this.$('div').trigger('dblclick');\n };\n\n _class2.prototype['@test throws if specified rootElement does not exist'] = function testThrowsIfSpecifiedRootElementDoesNotExist(assert) {\n var _this8 = this;\n\n assert.throws(function () {\n _this8.dispatcher.setup({ myevent: 'myEvent' }, '#app');\n });\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('custom EventDispatcher subclass with #setup', function (_RenderingTest3) {\n (0, _emberBabel.inherits)(_class3, _RenderingTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this9 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.call(this));\n\n var dispatcher = _this9.owner.lookup('event_dispatcher:main');\n (0, _emberMetal.run)(dispatcher, 'destroy');\n _this9.owner.__container__.reset('event_dispatcher:main');\n _this9.owner.unregister('event_dispatcher:main');\n return _this9;\n }\n\n _class3.prototype['@test canDispatchToEventManager is deprecated in EventDispatcher'] = function testCanDispatchToEventManagerIsDeprecatedInEventDispatcher(assert) {\n var MyDispatcher = _emberViews.EventDispatcher.extend({\n canDispatchToEventManager: null\n });\n this.owner.register('event_dispatcher:main', MyDispatcher);\n\n expectDeprecation(/`canDispatchToEventManager` has been deprecated/);\n this.owner.lookup('event_dispatcher:main');\n };\n\n return _class3;\n }(_testCase.RenderingTest));\n\n if (_features.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _testCase.moduleFor)('EventDispatcher - Instrumentation', function (_RenderingTest4) {\n (0, _emberBabel.inherits)(_class4, _RenderingTest4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest4.apply(this, arguments));\n }\n\n _class4.prototype.teardown = function teardown() {\n _RenderingTest4.prototype.teardown.call(this);\n (0, _emberMetal.instrumentationReset)();\n };\n\n _class4.prototype['@test instruments triggered events'] = function testInstrumentsTriggeredEvents(assert) {\n var clicked = 0;\n\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n click: function (evt) {\n clicked++;\n }\n }),\n template: '

hello

'\n });\n\n this.render('{{x-foo}}');\n\n this.$('div').trigger('click');\n\n assert.equal(clicked, 1, 'precond - the click handler was invoked');\n\n var clickInstrumented = 0;\n (0, _emberMetal.instrumentationSubscribe)('interaction.click', {\n before: function () {\n clickInstrumented++;\n assert.equal(clicked, 1, 'invoked before event is handled');\n },\n after: function () {\n clickInstrumented++;\n assert.equal(clicked, 2, 'invoked after event is handled');\n }\n });\n\n var keypressInstrumented = 0;\n (0, _emberMetal.instrumentationSubscribe)('interaction.keypress', {\n before: function () {\n keypressInstrumented++;\n },\n after: function () {\n keypressInstrumented++;\n }\n });\n\n this.$('div').trigger('click');\n this.$('div').trigger('change');\n assert.equal(clicked, 2, 'precond - The click handler was invoked');\n assert.equal(clickInstrumented, 2, 'The click was instrumented');\n assert.strictEqual(keypressInstrumented, 0, 'The keypress was not instrumented');\n };\n\n return _class4;\n }(_testCase.RenderingTest));\n }\n\n if (canDataTransfer) {\n (0, _testCase.moduleFor)('EventDispatcher - Event Properties', function (_RenderingTest5) {\n (0, _emberBabel.inherits)(_class5, _RenderingTest5);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest5.apply(this, arguments));\n }\n\n _class5.prototype['@test dataTransfer property is added to drop event'] = function testDataTransferPropertyIsAddedToDropEvent(assert) {\n var receivedEvent = void 0;\n this.registerComponent('x-foo', {\n ComponentClass: _helpers.Component.extend({\n drop: function (event) {\n receivedEvent = event;\n }\n })\n });\n\n this.render('{{x-foo}}');\n\n fireNativeWithDataTransfer(this.$('div')[0], 'drop', 'success');\n assert.equal(receivedEvent.dataTransfer, 'success');\n };\n\n return _class5;\n }(_testCase.RenderingTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/event-dispatcher-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/event-dispatcher-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/-class-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/test-helpers', 'ember-metal'], function (_emberBabel, _testCase, _testHelpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{-class}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test casts binding to dasherized class'] = function testCastsBindingToDasherizedClass() {\n var _this2 = this;\n\n this.registerComponent('foo-bar', { template: '' });\n this.render('{{foo-bar class=(-class someTruth \"someTruth\")}}', {\n someTruth: true\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'someTruth', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'someTruth', true);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n };\n\n _class.prototype['@tests casts leaf path of binding to dasherized class'] = function testsCastsLeafPathOfBindingToDasherizedClass() {\n var _this3 = this;\n\n this.registerComponent('foo-bar', { template: '' });\n this.render('{{foo-bar class=(-class model.someTruth \"someTruth\")}}', {\n model: {\n someTruth: true\n }\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model.someTruth', false);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('ember-view') } });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model', { someTruth: true });\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { class: (0, _testHelpers.classes)('some-truth ember-view') } });\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/-class-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/-class-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/closure-action-test', ['ember-babel', 'ember-metal', 'ember/features', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _emberMetal, _features, _testCase, _abstractTestCase, _helpers) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
clicked: {{clicked}}; foo: {{foo}}
\\n\\n {{click-me id=\"string-action\" onClick=(action \"on-click\")}}\\n {{click-me id=\"function-action\" onClick=(action onClick)}}\\n {{click-me id=\"mut-action\" onClick=(action (mut clicked))}}\\n '], ['\\n
clicked: {{clicked}}; foo: {{foo}}
\\n\\n {{click-me id=\"string-action\" onClick=(action \"on-click\")}}\\n {{click-me id=\"function-action\" onClick=(action onClick)}}\\n {{click-me id=\"mut-action\" onClick=(action (mut clicked))}}\\n ']);\n\n if (_features.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _testCase.moduleFor)('Helpers test: closure {{action}} improved instrumentation', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype.subscribe = function subscribe(eventName, options) {\n this.subscriber = (0, _emberMetal.instrumentationSubscribe)(eventName, options);\n };\n\n _class.prototype.teardown = function teardown() {\n if (this.subscriber) {\n (0, _emberMetal.instrumentationUnsubscribe)(this.subscriber);\n }\n\n _RenderingTest.prototype.teardown.call(this);\n };\n\n _class.prototype['@test interaction event subscriber should be passed parameters'] = function testInteractionEventSubscriberShouldBePassedParameters() {\n var _this2 = this;\n\n var actionParam = 'So krispy';\n var beforeParameters = [];\n var afterParameters = [];\n\n var InnerComponent = _helpers.Component.extend({\n actions: {\n fireAction: function () {\n this.attrs.submit(actionParam);\n }\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerSubmit: function () {}\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: ''\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.subscribe('interaction.ember-action', {\n before: function (name, timestamp, payload) {\n beforeParameters.push(payload.args);\n },\n after: function (name, timestamp, payload) {\n afterParameters.push(payload.args);\n }\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n _this2.$('#instrument-button').trigger('click');\n });\n\n this.assert.deepEqual(beforeParameters, [[], [actionParam]], 'instrumentation subscriber before function was passed closure action parameters');\n this.assert.deepEqual(afterParameters, [[actionParam], []], 'instrumentation subscriber after function was passed closure action parameters');\n };\n\n _class.prototype['@test interaction event subscriber should be passed target'] = function testInteractionEventSubscriberShouldBePassedTarget() {\n var _this3 = this;\n\n var beforeParameters = [];\n var afterParameters = [];\n\n var InnerComponent = _helpers.Component.extend({\n myProperty: 'inner-thing',\n actions: {\n fireAction: function () {\n this.attrs.submit();\n }\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n myProperty: 'outer-thing',\n outerSubmit: function () {}\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: ''\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.subscribe('interaction.ember-action', {\n before: function (name, timestamp, payload) {\n beforeParameters.push(payload.target.get('myProperty'));\n },\n after: function (name, timestamp, payload) {\n afterParameters.push(payload.target.get('myProperty'));\n }\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n _this3.$('#instrument-button').trigger('click');\n });\n\n this.assert.deepEqual(beforeParameters, ['inner-thing', 'outer-thing'], 'instrumentation subscriber before function was passed target');\n this.assert.deepEqual(afterParameters, ['outer-thing', 'inner-thing'], 'instrumentation subscriber after function was passed target');\n };\n\n _class.prototype['@test instrumented action should return value'] = function testInstrumentedActionShouldReturnValue() {\n var _this4 = this;\n\n var returnedValue = 'Chris P is so krispy';\n var actualReturnedValue = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n actions: {\n fireAction: function () {\n actualReturnedValue = this.attrs.submit();\n }\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerSubmit: function () {\n return returnedValue;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: ''\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.subscribe('interaction.ember-action', {\n before: function (name, timestamp, payload) {},\n after: function (name, timestamp, payload) {}\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n _this4.$('#instrument-button').trigger('click');\n });\n\n this.assert.equal(actualReturnedValue, returnedValue, 'action can return to caller');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n }\n\n (0, _testCase.moduleFor)('Helpers test: closure {{action}}', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test action should be called'] = function testActionShouldBeCalled() {\n var outerActionCalled = false;\n var component = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerSubmit: function () {\n outerActionCalled = true;\n }\n });\n\n this.registerComponent('inner-component', { ComponentClass: InnerComponent, template: 'inner' });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n component.fireAction();\n });\n\n this.assert.ok(outerActionCalled, 'the action was called');\n };\n\n _class2.prototype['@test an error is triggered when bound action function is undefined'] = function testAnErrorIsTriggeredWhenBoundActionFunctionIsUndefined() {\n var _this6 = this;\n\n this.registerComponent('inner-component', {\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n template: '{{inner-component submit=(action somethingThatIsUndefined)}}'\n });\n\n expectAssertion(function () {\n _this6.render('{{outer-component}}');\n }, /Action passed is null or undefined in \\(action[^)]*\\) from .*\\./);\n };\n\n _class2.prototype['@test an error is triggered when bound action being passed in is a non-function'] = function testAnErrorIsTriggeredWhenBoundActionBeingPassedInIsANonFunction() {\n var _this7 = this;\n\n this.registerComponent('inner-component', {\n template: 'inner'\n });\n this.registerComponent('outer-component', {\n ComponentClass: _helpers.Component.extend({\n nonFunctionThing: {}\n }),\n template: '{{inner-component submit=(action nonFunctionThing)}}'\n });\n\n expectAssertion(function () {\n _this7.render('{{outer-component}}');\n }, /An action could not be made for `.*` in .*\\. Please confirm that you are using either a quoted action name \\(i\\.e\\. `\\(action '.*'\\)`\\) or a function available in .*\\./);\n };\n\n _class2.prototype['@test [#12718] a nice error is shown when a bound action function is undefined and it is passed as attrs.foo'] = function test12718ANiceErrorIsShownWhenABoundActionFunctionIsUndefinedAndItIsPassedAsAttrsFoo() {\n var _this8 = this;\n\n this.registerComponent('inner-component', {\n template: ''\n });\n\n this.registerComponent('outer-component', {\n template: '{{inner-component}}'\n });\n\n expectAssertion(function () {\n _this8.render('{{outer-component}}');\n }, /Action passed is null or undefined in \\(action[^)]*\\) from .*\\./);\n };\n\n _class2.prototype['@test action value is returned'] = function testActionValueIsReturned() {\n var expectedValue = 'terrible tom';\n var returnedValue = void 0;\n var innerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n returnedValue = this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerSubmit: function () {\n return expectedValue;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(returnedValue, expectedValue, 'action can return to caller');\n };\n\n _class2.prototype['@test action should be called on the correct scope'] = function testActionShouldBeCalledOnTheCorrectScope() {\n var innerComponent = void 0;\n var outerComponent = void 0;\n var actualComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outerComponent = this;\n },\n\n isOuterComponent: true,\n outerSubmit: function () {\n actualComponent = this;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualComponent, outerComponent, 'action has the correct context');\n this.assert.ok(actualComponent.isOuterComponent, 'action has the correct context');\n };\n\n _class2.prototype['@test arguments to action are passed, curry'] = function testArgumentsToActionArePassedCurry() {\n var first = 'mitch';\n var second = 'martin';\n var third = 'matt';\n var fourth = 'wacky wycats';\n\n var innerComponent = void 0;\n var actualArgs = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit(fourth);\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n third: third,\n outerSubmit: function (actualFirst, actualSecond, actualThird, actualFourth) {\n actualArgs = [].concat(Array.prototype.slice.call(arguments));\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action (action outerSubmit \"' + first + '\") \"' + second + '\" third)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.deepEqual(actualArgs, [first, second, third, fourth], 'action has the correct args');\n };\n\n _class2.prototype['@test `this` can be passed as an argument'] = function testThisCanBePassedAsAnArgument() {\n var value = {};\n var component = void 0;\n var innerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n outerAction: function (incomingValue) {\n value = incomingValue;\n }\n }\n });\n\n this.registerComponent('inner-component', { ComponentClass: InnerComponent, template: 'inner' });\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \"outerAction\" this)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.strictEqual(value, component, 'the component is passed at `this`');\n };\n\n _class2.prototype['@test arguments to action are bound'] = function testArgumentsToActionAreBound() {\n var value = 'lazy leah';\n\n var innerComponent = void 0;\n var outerComponent = void 0;\n var actualArg = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outerComponent = this;\n },\n\n value: '',\n outerSubmit: function (incomingValue) {\n actualArg = incomingValue;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit value)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.strictEqual(actualArg, '', 'action has the correct first arg');\n\n this.runTask(function () {\n outerComponent.set('value', value);\n });\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.strictEqual(actualArg, value, 'action has the correct first arg');\n };\n\n _class2.prototype['@test array arguments are passed correctly to action'] = function testArrayArgumentsArePassedCorrectlyToAction() {\n var first = 'foo';\n var second = [3, 5];\n var third = [4, 9];\n\n var actualFirst = void 0;\n var actualSecond = void 0;\n var actualThird = void 0;\n\n var innerComponent = void 0;\n var outerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit(second, third);\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outerComponent = this;\n },\n outerSubmit: function (incomingFirst, incomingSecond, incomingThird) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n actualThird = incomingThird;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerSubmit first)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n outerComponent.set('first', first);\n outerComponent.set('second', second);\n });\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualFirst, first, 'action has the correct first arg');\n this.assert.equal(actualSecond, second, 'action has the correct second arg');\n this.assert.equal(actualThird, third, 'action has the correct third arg');\n };\n\n _class2.prototype['@test mut values can be wrapped in actions, are settable'] = function testMutValuesCanBeWrappedInActionsAreSettable() {\n var newValue = 'trollin trek';\n\n var innerComponent = void 0;\n var outerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit(newValue);\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outerComponent = this;\n },\n\n outerMut: 'patient peter'\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action (mut outerMut))}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(outerComponent.get('outerMut'), newValue, 'mut value is set');\n };\n\n _class2.prototype['@test mut values can be wrapped in actions, are settable with a curry'] = function testMutValuesCanBeWrappedInActionsAreSettableWithACurry() {\n var newValue = 'trollin trek';\n\n var innerComponent = void 0;\n var outerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n outerComponent = this;\n },\n\n outerMut: 'patient peter'\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action (mut outerMut) \\'' + newValue + '\\')}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(outerComponent.get('outerMut'), newValue, 'mut value is set');\n };\n\n _class2.prototype['@test action can create closures over actions'] = function testActionCanCreateClosuresOverActions() {\n var first = 'raging robert';\n var second = 'mild machty';\n var returnValue = 'butch brian';\n\n var actualFirst = void 0;\n var actualSecond = void 0;\n var actualReturnedValue = void 0;\n\n var innerComponent = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n actualReturnedValue = this.attrs.submit(second);\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n actions: {\n outerAction: function (incomingFirst, incomingSecond) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n return returnValue;\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'outerAction\\' \\'' + first + '\\')}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualReturnedValue, returnValue, 'return value is present');\n this.assert.equal(actualFirst, first, 'first argument is correct');\n this.assert.equal(actualSecond, second, 'second argument is correct');\n };\n\n _class2.prototype['@test provides a helpful error if an action is not present'] = function testProvidesAHelpfulErrorIfAnActionIsNotPresent() {\n var _this9 = this;\n\n var InnerComponent = _helpers.Component.extend({});\n\n var OuterComponent = _helpers.Component.extend({\n actions: {\n something: function () {\n // this is present to ensure `actions` hash is present\n // a different error is triggered if `actions` is missing\n // completely\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'doesNotExist\\')}}'\n });\n\n expectAssertion(function () {\n _this9.render('{{outer-component}}');\n }, /An action named 'doesNotExist' was not found in /);\n };\n\n _class2.prototype['@test provides a helpful error if actions hash is not present'] = function testProvidesAHelpfulErrorIfActionsHashIsNotPresent() {\n var _this10 = this;\n\n var InnerComponent = _helpers.Component.extend({});\n\n var OuterComponent = _helpers.Component.extend({});\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'doesNotExist\\')}}'\n });\n\n expectAssertion(function () {\n _this10.render('{{outer-component}}');\n }, /An action named 'doesNotExist' was not found in /);\n };\n\n _class2.prototype['@test action can create closures over actions with target'] = function testActionCanCreateClosuresOverActionsWithTarget() {\n var innerComponent = void 0;\n var actionCalled = false;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n otherComponent: (0, _emberMetal.computed)(function () {\n return {\n actions: {\n outerAction: function () {\n actionCalled = true;\n }\n }\n };\n })\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'outerAction\\' target=otherComponent)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.ok(actionCalled, 'action called on otherComponent');\n };\n\n _class2.prototype['@test value can be used with action over actions'] = function testValueCanBeUsedWithActionOverActions() {\n var newValue = 'yelping yehuda';\n\n var innerComponent = void 0;\n var actualValue = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit({\n readProp: newValue\n });\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerContent: {\n readProp: newValue\n },\n actions: {\n outerAction: function (incomingValue) {\n actualValue = incomingValue;\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'outerAction\\' value=\"readProp\")}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualValue, newValue, 'value is read');\n };\n\n _class2.prototype['@test action will read the value of a first property'] = function testActionWillReadTheValueOfAFirstProperty() {\n var newValue = 'irate igor';\n\n var innerComponent = void 0;\n var actualValue = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit({\n readProp: newValue\n });\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n outerAction: function (incomingValue) {\n actualValue = incomingValue;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerAction value=\"readProp\")}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualValue, newValue, 'property is read');\n };\n\n _class2.prototype['@test action will read the value of a curried first argument property'] = function testActionWillReadTheValueOfACurriedFirstArgumentProperty() {\n var newValue = 'kissing kris';\n\n var innerComponent = void 0;\n var actualValue = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n objectArgument: {\n readProp: newValue\n },\n outerAction: function (incomingValue) {\n actualValue = incomingValue;\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action outerAction objectArgument value=\"readProp\")}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actualValue, newValue, 'property is read');\n };\n\n _class2.prototype['@test action closure does not get auto-mut wrapped'] = function testActionClosureDoesNotGetAutoMutWrapped(assert) {\n var first = 'raging robert';\n var second = 'mild machty';\n var returnValue = 'butch brian';\n\n var innerComponent = void 0;\n var actualFirst = void 0;\n var actualSecond = void 0;\n var actualReturnedValue = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.get('submit')(second);\n this.get('attrs-submit')(second);\n var attrsSubmitReturnValue = this.attrs['attrs-submit'](second);\n var submitReturnValue = this.attrs.submit(second);\n\n assert.equal(attrsSubmitReturnValue, submitReturnValue, 'both attrs.foo and foo should behave the same');\n\n return submitReturnValue;\n }\n });\n\n var MiddleComponent = _helpers.Component.extend({});\n\n var OuterComponent = _helpers.Component.extend({\n actions: {\n outerAction: function (incomingFirst, incomingSecond) {\n actualFirst = incomingFirst;\n actualSecond = incomingSecond;\n return returnValue;\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('middle-component', {\n ComponentClass: MiddleComponent,\n template: '{{inner-component attrs-submit=attrs.submit submit=submit}}'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{middle-component submit=(action \\'outerAction\\' \\'' + first + '\\')}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n actualReturnedValue = innerComponent.fireAction();\n });\n\n this.assert.equal(actualFirst, first, 'first argument is correct');\n this.assert.equal(actualSecond, second, 'second argument is correct');\n this.assert.equal(actualReturnedValue, returnValue, 'return value is present');\n };\n\n _class2.prototype['@test action should be called within a run loop'] = function testActionShouldBeCalledWithinARunLoop() {\n var innerComponent = void 0;\n var capturedRunLoop = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n this.attrs.submit();\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n actions: {\n submit: function () {\n capturedRunLoop = _emberMetal.run.currentRunLoop;\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action \\'submit\\')}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.ok(capturedRunLoop, 'action is called within a run loop');\n };\n\n _class2.prototype['@test objects that define INVOKE can be casted to actions'] = function testObjectsThatDefineINVOKECanBeCastedToActions() {\n var innerComponent = void 0;\n var actionArgs = void 0;\n var invokableArgs = void 0;\n\n var InnerComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n innerComponent = this;\n },\n fireAction: function () {\n actionArgs = this.attrs.submit(4, 5, 6);\n }\n });\n\n var OuterComponent = _helpers.Component.extend({\n foo: 123,\n submitTask: (0, _emberMetal.computed)(function () {\n var _this11 = this,\n _ref;\n\n return _ref = {}, _ref[_helpers.INVOKE] = function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n invokableArgs = args;\n return _this11.foo;\n }, _ref;\n })\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: 'inner'\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: '{{inner-component submit=(action submitTask 1 2 3)}}'\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n innerComponent.fireAction();\n });\n\n this.assert.equal(actionArgs, 123);\n this.assert.deepEqual(invokableArgs, [1, 2, 3, 4, 5, 6]);\n };\n\n _class2.prototype['@test closure action with `(mut undefinedThing)` works properly [GH#13959]'] = function testClosureActionWithMutUndefinedThingWorksProperlyGH13959() {\n var _this12 = this;\n\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n label: undefined,\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.assertText('Click me');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n _this12.$('button').click();\n });\n\n this.assertText('Clicked!');\n\n this.runTask(function () {\n component.set('label', 'Dun clicked');\n });\n\n this.assertText('Dun clicked');\n\n this.runTask(function () {\n _this12.$('button').click();\n });\n\n this.assertText('Clicked!');\n\n this.runTask(function () {\n component.set('label', undefined);\n });\n\n this.assertText('Click me');\n };\n\n _class2.prototype['@test closure actions does not cause component hooks to fire unnecessarily [GH#14305] [GH#14654]'] = function testClosureActionsDoesNotCauseComponentHooksToFireUnnecessarilyGH14305GH14654(assert) {\n var _this14 = this;\n\n var clicked = 0;\n var didReceiveAttrsFired = 0;\n\n var ClickMeComponent = _helpers.Component.extend({\n tagName: 'button',\n\n click: function () {\n this.get('onClick').call(undefined, ++clicked);\n },\n didReceiveAttrs: function () {\n didReceiveAttrsFired++;\n }\n });\n\n this.registerComponent('click-me', {\n ComponentClass: ClickMeComponent\n });\n\n var outer = void 0;\n\n var OuterComponent = _helpers.Component.extend({\n clicked: 0,\n\n actions: {\n 'on-click': function () {\n this.incrementProperty('clicked');\n }\n },\n\n init: function () {\n var _this13 = this;\n\n this._super();\n outer = this;\n this.set('onClick', function () {\n return _this13.incrementProperty('clicked');\n });\n }\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: (0, _abstractTestCase.strip)(_templateObject)\n });\n\n this.render('{{outer-component foo=foo}}', { foo: 1 });\n\n this.assertText('clicked: 0; foo: 1');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('clicked: 0; foo: 1');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'foo', 2);\n });\n\n this.assertText('clicked: 0; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return _this14.$('#string-action').click();\n });\n\n this.assertText('clicked: 1; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return _this14.$('#function-action').click();\n });\n\n this.assertText('clicked: 2; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(outer, 'onClick', function () {\n outer.incrementProperty('clicked');\n });\n });\n\n this.assertText('clicked: 2; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return _this14.$('#function-action').click();\n });\n\n this.assertText('clicked: 3; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n\n this.runTask(function () {\n return _this14.$('#mut-action').click();\n });\n\n this.assertText('clicked: 4; foo: 2');\n\n assert.equal(didReceiveAttrsFired, 3);\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/closure-action-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/closure-action-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/concat-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal'], function (_emberBabel, _testCase, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{concat}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it concats static arguments'] = function testItConcatsStaticArguments() {\n this.render('{{concat \"foo\" \" \" \"bar\" \" \" \"baz\"}}');\n this.assertText('foo bar baz');\n };\n\n _class.prototype['@test it updates for bound arguments'] = function testItUpdatesForBoundArguments() {\n var _this2 = this;\n\n this.render('{{concat model.first model.second}}', {\n model: { first: 'one', second: 'two' }\n });\n\n this.assertText('onetwo');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('onetwo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model.first', 'three');\n });\n\n this.assertText('threetwo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model.second', 'four');\n });\n\n this.assertText('threefour');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model', { first: 'one', second: 'two' });\n });\n\n this.assertText('onetwo');\n };\n\n _class.prototype['@test it can be used as a sub-expression'] = function testItCanBeUsedAsASubExpression() {\n var _this3 = this;\n\n this.render('{{concat (concat model.first model.second) (concat model.third model.fourth)}}', {\n model: {\n first: 'one',\n second: 'two',\n third: 'three',\n fourth: 'four'\n }\n });\n\n this.assertText('onetwothreefour');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('onetwothreefour');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model.first', 'five');\n });\n\n this.assertText('fivetwothreefour');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.context, 'model.second', 'six');\n (0, _emberMetal.set)(_this3.context, 'model.third', 'seven');\n });\n\n this.assertText('fivesixsevenfour');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this3.context, 'model', {\n first: 'one',\n second: 'two',\n third: 'three',\n fourth: 'four'\n });\n });\n\n this.assertText('onetwothreefour');\n };\n\n _class.prototype['@test it can be used as input for other helpers'] = function testItCanBeUsedAsInputForOtherHelpers() {\n var _this4 = this;\n\n this.registerHelper('x-eq', function (_ref) {\n var actual = _ref[0],\n expected = _ref[1];\n return actual === expected;\n });\n\n this.render('{{#if (x-eq (concat model.first model.second) \"onetwo\")}}Truthy!{{else}}False{{/if}}', {\n model: {\n first: 'one',\n second: 'two'\n }\n });\n\n this.assertText('Truthy!');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('Truthy!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model.first', 'three');\n });\n\n this.assertText('False');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model', { first: 'one', second: 'two' });\n });\n\n this.assertText('Truthy!');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/concat-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/concat-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/custom-helper-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'internal-test-helpers', 'ember-metal', 'ember-utils'], function (_emberBabel, _testCase, _internalTestHelpers, _emberMetal, _emberUtils) {\n 'use strict';\n\n /* globals EmberDev */\n var assert = QUnit.assert;\n\n (0, _testCase.moduleFor)('Helpers test: custom helpers', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it cannot override built-in syntax'] = function testItCannotOverrideBuiltInSyntax() {\n var _this2 = this;\n\n this.registerHelper('if', function () {\n return 'Nope';\n });\n expectAssertion(function () {\n _this2.render('{{if foo \\'LOL\\'}}', { foo: true });\n }, /You attempted to overwrite the built-in helper \\\"if\\\" which is not allowed. Please rename the helper./);\n };\n\n _class.prototype['@test it can resolve custom simple helpers with or without dashes'] = function testItCanResolveCustomSimpleHelpersWithOrWithoutDashes() {\n var _this3 = this;\n\n this.registerHelper('hello', function () {\n return 'hello';\n });\n this.registerHelper('hello-world', function () {\n return 'hello world';\n });\n\n this.render('{{hello}} | {{hello-world}}');\n\n this.assertText('hello | hello world');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('hello | hello world');\n };\n\n _class.prototype['@test it does not resolve helpers with a `.` (period)'] = function testItDoesNotResolveHelpersWithAPeriod() {\n var _this4 = this;\n\n this.registerHelper('hello.world', function () {\n return 'hello world';\n });\n\n this.render('{{hello.world}}', {\n hello: {\n world: ''\n }\n });\n\n this.assertText('');\n\n this.assertStableRerender();\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'hello', { world: 'hello world!' });\n });\n\n this.assertText('hello world!');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this4.context, 'hello', {\n world: ''\n });\n });\n\n this.assertText('');\n };\n\n _class.prototype['@test it can resolve custom class-based helpers with or without dashes'] = function testItCanResolveCustomClassBasedHelpersWithOrWithoutDashes() {\n var _this5 = this;\n\n this.registerHelper('hello', {\n compute: function () {\n return 'hello';\n }\n });\n\n this.registerHelper('hello-world', {\n compute: function () {\n return 'hello world';\n }\n });\n\n this.render('{{hello}} | {{hello-world}}');\n\n this.assertText('hello | hello world');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('hello | hello world');\n };\n\n _class.prototype['@test throws if `this._super` is not called from `init`'] = function testThrowsIfThis_superIsNotCalledFromInit() {\n var _this6 = this;\n\n this.registerHelper('hello-world', {\n init: function () {}\n });\n\n expectAssertion(function () {\n _this6.render('{{hello-world}}');\n }, /You must call `this._super\\(...arguments\\);` when overriding `init` on a framework object. Please update .* to call `this._super\\(...arguments\\);` from `init`./);\n };\n\n _class.prototype['@test class-based helper can recompute a new value'] = function testClassBasedHelperCanRecomputeANewValue() {\n var _this7 = this;\n\n var destroyCount = 0;\n var computeCount = 0;\n var helper = void 0;\n\n this.registerHelper('hello-world', {\n init: function () {\n this._super.apply(this, arguments);\n helper = this;\n },\n compute: function () {\n return ++computeCount;\n },\n destroy: function () {\n destroyCount++;\n this._super();\n }\n });\n\n this.render('{{hello-world}}');\n\n this.assertText('1');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('1');\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('2');\n\n assert.strictEqual(destroyCount, 0, 'destroy is not called on recomputation');\n };\n\n _class.prototype['@test class-based helper with static arguments can recompute a new value'] = function testClassBasedHelperWithStaticArgumentsCanRecomputeANewValue() {\n var _this8 = this;\n\n var destroyCount = 0;\n var computeCount = 0;\n var helper = void 0;\n\n this.registerHelper('hello-world', {\n init: function () {\n this._super.apply(this, arguments);\n helper = this;\n },\n compute: function () {\n return ++computeCount;\n },\n destroy: function () {\n destroyCount++;\n this._super();\n }\n });\n\n this.render('{{hello-world \"whut\"}}');\n\n this.assertText('1');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('1');\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('2');\n\n assert.strictEqual(destroyCount, 0, 'destroy is not called on recomputation');\n };\n\n _class.prototype['@test helper params can be returned'] = function testHelperParamsCanBeReturned() {\n this.registerHelper('hello-world', function (values) {\n return values;\n });\n\n this.render('{{#each (hello-world model) as |item|}}({{item}}){{/each}}', {\n model: ['bob']\n });\n\n this.assertText('(bob)');\n };\n\n _class.prototype['@test helper hash can be returned'] = function testHelperHashCanBeReturned() {\n this.registerHelper('hello-world', function (_, hash) {\n return hash.model;\n });\n\n this.render('{{get (hello-world model=model) \\'name\\'}}', {\n model: { name: 'bob' }\n });\n\n this.assertText('bob');\n };\n\n _class.prototype['@test simple helper is called for param changes'] = function testSimpleHelperIsCalledForParamChanges() {\n var _this9 = this;\n\n var computeCount = 0;\n\n this.registerHelper('hello-world', function (_ref) {\n var value = _ref[0];\n\n computeCount++;\n return value + '-value';\n });\n\n this.render('{{hello-world model.name}}', {\n model: { name: 'bob' }\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'model.name', 'sal');\n });\n\n this.assertText('sal-value');\n\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'model', { name: 'bob' });\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 3, 'compute is called exactly 3 times');\n };\n\n _class.prototype['@test class-based helper compute is called for param changes'] = function testClassBasedHelperComputeIsCalledForParamChanges() {\n var _this10 = this;\n\n var createCount = 0;\n var computeCount = 0;\n\n this.registerHelper('hello-world', {\n init: function () {\n this._super.apply(this, arguments);\n createCount++;\n },\n compute: function (_ref2) {\n var value = _ref2[0];\n\n computeCount++;\n return value + '-value';\n }\n });\n\n this.render('{{hello-world model.name}}', {\n model: { name: 'bob' }\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 1, 'compute is called exactly 1 time');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'model.name', 'sal');\n });\n\n this.assertText('sal-value');\n\n assert.strictEqual(computeCount, 2, 'compute is called exactly 2 times');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'model', { name: 'bob' });\n });\n\n this.assertText('bob-value');\n\n assert.strictEqual(computeCount, 3, 'compute is called exactly 3 times');\n assert.strictEqual(createCount, 1, 'helper is only created once');\n };\n\n _class.prototype['@test simple helper receives params, hash'] = function testSimpleHelperReceivesParamsHash() {\n var _this11 = this;\n\n this.registerHelper('hello-world', function (_params, _hash) {\n return 'params: ' + JSON.stringify(_params) + ', hash: ' + JSON.stringify(_hash);\n });\n\n this.render('{{hello-world model.name \"rich\" first=model.age last=\"sam\"}}', {\n model: {\n name: 'bob',\n age: 42\n }\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'model.name', 'sal');\n });\n\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'model.age', 28);\n });\n\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":28,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'model', { name: 'bob', age: 42 });\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n };\n\n _class.prototype['@test class-based helper receives params, hash'] = function testClassBasedHelperReceivesParamsHash() {\n var _this12 = this;\n\n this.registerHelper('hello-world', {\n compute: function (_params, _hash) {\n return 'params: ' + JSON.stringify(_params) + ', hash: ' + JSON.stringify(_hash);\n }\n });\n\n this.render('{{hello-world model.name \"rich\" first=model.age last=\"sam\"}}', {\n model: {\n name: 'bob',\n age: 42\n }\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'model.name', 'sal');\n });\n\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'model.age', 28);\n });\n\n this.assertText('params: [\"sal\",\"rich\"], hash: {\"first\":28,\"last\":\"sam\"}');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'model', { name: 'bob', age: 42 });\n });\n\n this.assertText('params: [\"bob\",\"rich\"], hash: {\"first\":42,\"last\":\"sam\"}');\n };\n\n _class.prototype['@test class-based helper usable in subexpressions'] = function testClassBasedHelperUsableInSubexpressions() {\n var _this13 = this;\n\n this.registerHelper('join-words', {\n compute: function (params) {\n return params.join(' ');\n }\n });\n\n this.render('{{join-words \"Who\"\\n (join-words \"overcomes\" \"by\")\\n model.reason\\n (join-words (join-words \"hath overcome but\" \"half\"))\\n (join-words \"his\" (join-words \"foe\"))}}', { model: { reason: 'force' } });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'model.reason', 'Nickleback');\n });\n\n this.assertText('Who overcomes by Nickleback hath overcome but half his foe');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'model', { reason: 'force' });\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n };\n\n _class.prototype['@test parameterless helper is usable in subexpressions'] = function testParameterlessHelperIsUsableInSubexpressions() {\n var _this14 = this;\n\n this.registerHelper('should-show', function () {\n return true;\n });\n\n this.render('{{#if (should-show)}}true{{/if}}');\n\n this.assertText('true');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('true');\n };\n\n _class.prototype['@test parameterless helper is usable in attributes'] = function testParameterlessHelperIsUsableInAttributes() {\n var _this15 = this;\n\n this.registerHelper('foo-bar', function () {\n return 'baz';\n });\n\n this.render('
');\n\n this.assertHTML('
');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertHTML('
');\n };\n\n _class.prototype['@test simple helper not usable with a block'] = function testSimpleHelperNotUsableWithABlock() {\n var _this16 = this;\n\n this.registerHelper('some-helper', function () {});\n\n expectAssertion(function () {\n _this16.render('{{#some-helper}}{{/some-helper}}');\n }, /Helpers may not be used in the block form/);\n };\n\n _class.prototype['@test class-based helper not usable with a block'] = function testClassBasedHelperNotUsableWithABlock() {\n var _this17 = this;\n\n this.registerHelper('some-helper', {\n compute: function () {}\n });\n\n expectAssertion(function () {\n _this17.render('{{#some-helper}}{{/some-helper}}');\n }, /Helpers may not be used in the block form/);\n };\n\n _class.prototype['@test simple helper not usable within element'] = function testSimpleHelperNotUsableWithinElement() {\n var _this18 = this;\n\n this.registerHelper('some-helper', function () {});\n\n this.assert.throws(function () {\n _this18.render('
');\n }, /Compile Error some-helper is not a modifier: Helpers may not be used in the element form/);\n };\n\n _class.prototype['@test class-based helper not usable within element'] = function testClassBasedHelperNotUsableWithinElement() {\n var _this19 = this;\n\n this.registerHelper('some-helper', {\n compute: function () {}\n });\n\n this.assert.throws(function () {\n _this19.render('
');\n }, /Compile Error some-helper is not a modifier: Helpers may not be used in the element form/);\n };\n\n _class.prototype['@test class-based helper is torn down'] = function testClassBasedHelperIsTornDown() {\n var destroyCalled = 0;\n\n this.registerHelper('some-helper', {\n destroy: function () {\n destroyCalled++;\n this._super.apply(this, arguments);\n },\n compute: function () {\n return 'must define a compute';\n }\n });\n\n this.render('{{some-helper}}');\n\n (0, _internalTestHelpers.runDestroy)(this.component);\n\n assert.strictEqual(destroyCalled, 1, 'destroy called once');\n };\n\n _class.prototype['@test class-based helper used in subexpression can recompute'] = function testClassBasedHelperUsedInSubexpressionCanRecompute() {\n var _this20 = this;\n\n var helper = void 0;\n var phrase = 'overcomes by';\n\n this.registerHelper('dynamic-segment', {\n init: function () {\n this._super.apply(this, arguments);\n helper = this;\n },\n compute: function () {\n return phrase;\n }\n });\n\n this.registerHelper('join-words', {\n compute: function (params) {\n return params.join(' ');\n }\n });\n\n this.render('{{join-words \"Who\"\\n (dynamic-segment)\\n \"force\"\\n (join-words (join-words \"hath overcome but\" \"half\"))\\n (join-words \"his\" (join-words \"foe\"))}}');\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n this.runTask(function () {\n return _this20.rerender();\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n phrase = 'believes his';\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('Who believes his force hath overcome but half his foe');\n\n phrase = 'overcomes by';\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n };\n\n _class.prototype['@test class-based helper used in subexpression can recompute component'] = function testClassBasedHelperUsedInSubexpressionCanRecomputeComponent() {\n var _this21 = this;\n\n var helper = void 0;\n var phrase = 'overcomes by';\n\n this.registerHelper('dynamic-segment', {\n init: function () {\n this._super.apply(this, arguments);\n helper = this;\n },\n compute: function () {\n return phrase;\n }\n });\n\n this.registerHelper('join-words', {\n compute: function (params) {\n return params.join(' ');\n }\n });\n\n this.registerComponent('some-component', {\n template: '{{first}} {{second}} {{third}} {{fourth}} {{fifth}}'\n });\n\n this.render('{{some-component first=\"Who\"\\n second=(dynamic-segment)\\n third=\"force\"\\n fourth=(join-words (join-words \"hath overcome but\" \"half\"))\\n fifth=(join-words \"his\" (join-words \"foe\"))}}');\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n this.runTask(function () {\n return _this21.rerender();\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n\n phrase = 'believes his';\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('Who believes his force hath overcome but half his foe');\n\n phrase = 'overcomes by';\n\n this.runTask(function () {\n return helper.recompute();\n });\n\n this.assertText('Who overcomes by force hath overcome but half his foe');\n };\n\n _class.prototype['@test class-based helper used in subexpression is destroyed'] = function testClassBasedHelperUsedInSubexpressionIsDestroyed() {\n var destroyCount = 0;\n\n this.registerHelper('dynamic-segment', {\n phrase: 'overcomes by',\n init: function () {\n this._super.apply(this, arguments);\n },\n compute: function () {\n return this.phrase;\n },\n destroy: function () {\n destroyCount++;\n this._super.apply(this, arguments);\n }\n });\n\n this.registerHelper('join-words', {\n compute: function (params) {\n return params.join(' ');\n }\n });\n\n this.render('{{join-words \"Who\"\\n (dynamic-segment)\\n \"force\"\\n (join-words (join-words \"hath overcome but\" \"half\"))\\n (join-words \"his\" (join-words \"foe\"))}}');\n\n (0, _internalTestHelpers.runDestroy)(this.component);\n\n equal(destroyCount, 1, 'destroy is called after a view is destroyed');\n };\n\n _class.prototype['@test simple helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function testSimpleHelperCanBeInvokedManuallyViaOwnerFactoryForCreateCompute(assert) {\n this.registerHelper('some-helper', function () {\n assert.ok(true, 'some-helper helper invoked');\n return 'lolol';\n });\n\n var instance = this.owner.factoryFor('helper:some-helper').create();\n\n assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');\n assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');\n };\n\n _class.prototype['@test class-based helper can be invoked manually via `owner.factoryFor(...).create().compute()'] = function testClassBasedHelperCanBeInvokedManuallyViaOwnerFactoryForCreateCompute() {\n this.registerHelper('some-helper', {\n compute: function () {\n assert.ok(true, 'some-helper helper invoked');\n return 'lolol';\n }\n });\n\n var instance = this.owner.factoryFor('helper:some-helper').create();\n\n assert.equal(typeof instance.compute, 'function', 'expected instance.compute to be present');\n assert.equal(instance.compute(), 'lolol', 'can invoke `.compute`');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n // these feature detects prevent errors in these tests\n // on platforms (*cough* IE9 *cough*) that do not\n // property support `Object.freeze`\n var pushingIntoFrozenArrayThrows = function () {\n var array = [];\n Object.freeze(array);\n\n try {\n array.push('foo');\n\n return false;\n } catch (e) {\n return true;\n }\n }();\n\n var assigningExistingFrozenPropertyThrows = function () {\n var obj = { foo: 'asdf' };\n Object.freeze(obj);\n\n try {\n obj.foo = 'derp';\n\n return false;\n } catch (e) {\n return true;\n }\n }();\n\n var addingPropertyToFrozenObjectThrows = function () {\n var obj = { foo: 'asdf' };\n Object.freeze(obj);\n\n try {\n obj.bar = 'derp';\n\n return false;\n } catch (e) {\n return true;\n }\n }();\n\n if (!EmberDev.runningProdBuild && _emberUtils.HAS_NATIVE_WEAKMAP && (pushingIntoFrozenArrayThrows || assigningExistingFrozenPropertyThrows || addingPropertyToFrozenObjectThrows)) {\n var HelperMutatingArgsTests = function (_RenderingTest2) {\n (0, _emberBabel.inherits)(HelperMutatingArgsTests, _RenderingTest2);\n\n function HelperMutatingArgsTests() {\n (0, _emberBabel.classCallCheck)(this, HelperMutatingArgsTests);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n HelperMutatingArgsTests.prototype.buildCompute = function buildCompute() {\n var _this23 = this;\n\n return function (params, hash) {\n if (pushingIntoFrozenArrayThrows) {\n _this23.assert.throws(function () {\n params.push('foo');\n\n // cannot assert error message as it varies by platform\n });\n }\n\n if (assigningExistingFrozenPropertyThrows) {\n _this23.assert.throws(function () {\n hash.foo = 'bar';\n\n // cannot assert error message as it varies by platform\n });\n }\n\n if (addingPropertyToFrozenObjectThrows) {\n _this23.assert.throws(function () {\n hash.someUnusedHashProperty = 'bar';\n\n // cannot assert error message as it varies by platform\n });\n }\n };\n };\n\n HelperMutatingArgsTests.prototype['@test cannot mutate params - no positional specified / named specified'] = function testCannotMutateParamsNoPositionalSpecifiedNamedSpecified() {\n this.render('{{test-helper foo=bar}}', { bar: 'derp' });\n };\n\n HelperMutatingArgsTests.prototype['@test cannot mutate params - positional specified / no named specified'] = function testCannotMutateParamsPositionalSpecifiedNoNamedSpecified() {\n this.render('{{test-helper bar}}', { bar: 'derp' });\n };\n\n HelperMutatingArgsTests.prototype['@test cannot mutate params - positional specified / named specified'] = function testCannotMutateParamsPositionalSpecifiedNamedSpecified() {\n this.render('{{test-helper bar foo=qux}}', { bar: 'derp', qux: 'baz' });\n };\n\n HelperMutatingArgsTests.prototype['@test cannot mutate params - no positional specified / no named specified'] = function testCannotMutateParamsNoPositionalSpecifiedNoNamedSpecified() {\n this.render('{{test-helper}}', { bar: 'derp', qux: 'baz' });\n };\n\n return HelperMutatingArgsTests;\n }(_testCase.RenderingTest);\n\n (0, _testCase.moduleFor)('Helpers test: mutation triggers errors - class based helper', function (_HelperMutatingArgsTe) {\n (0, _emberBabel.inherits)(_class2, _HelperMutatingArgsTe);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this24 = (0, _emberBabel.possibleConstructorReturn)(this, _HelperMutatingArgsTe.call(this));\n\n var compute = _this24.buildCompute();\n\n _this24.registerHelper('test-helper', {\n compute: compute\n });\n return _this24;\n }\n\n return _class2;\n }(HelperMutatingArgsTests));\n\n (0, _testCase.moduleFor)('Helpers test: mutation triggers errors - simple helper', function (_HelperMutatingArgsTe2) {\n (0, _emberBabel.inherits)(_class3, _HelperMutatingArgsTe2);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this25 = (0, _emberBabel.possibleConstructorReturn)(this, _HelperMutatingArgsTe2.call(this));\n\n var compute = _this25.buildCompute();\n\n _this25.registerHelper('test-helper', compute);\n return _this25;\n }\n\n return _class3;\n }(HelperMutatingArgsTests));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/custom-helper-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/custom-helper-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/element-action-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal', 'ember/features', 'ember-runtime', 'ember-views'], function (_emberBabel, _testCase, _abstractTestCase, _helpers, _emberMetal, _features, _emberRuntime, _emberViews) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#inner-component}}\\n \\n {{/inner-component}}\\n '], ['\\n {{#inner-component}}\\n \\n {{/inner-component}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#target-component as |parent|}}\\n {{other-component anotherTarget=parent}}\\n {{/target-component}}\\n '], ['\\n {{#target-component as |parent|}}\\n {{other-component anotherTarget=parent}}\\n {{/target-component}}\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#target-component as |aTarget|}}\\n click me\\n {{/target-component}}\\n '], ['\\n {{#target-component as |aTarget|}}\\n click me\\n {{/target-component}}\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n click me'], ['\\n click me']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#middle-component}}\\n {{inner-component action=\"hey\"}}\\n {{/middle-component}}\\n '], ['\\n {{#middle-component}}\\n {{inner-component action=\"hey\"}}\\n {{/middle-component}}\\n ']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n \\n {{yield}}\\n '], ['\\n \\n {{yield}}\\n ']);\n\n function getActionAttributes(element) {\n var attributes = element.attributes;\n var actionAttrs = [];\n\n for (var i = 0; i < attributes.length; i++) {\n var attr = attributes.item(i);\n\n if (attr.name.indexOf('data-ember-action-') === 0) {\n actionAttrs.push(attr.name);\n }\n }\n\n return actionAttrs;\n }\n\n function getActionIds(element) {\n return getActionAttributes(element).map(function (attribute) {\n return attribute.slice('data-ember-action-'.length);\n });\n }\n\n if (_features.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _testCase.moduleFor)('Helpers test: element action instrumentation', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype.teardown = function teardown() {\n _RenderingTest.prototype.teardown.call(this);\n (0, _emberMetal.instrumentationReset)();\n };\n\n _class.prototype['@test action should fire interaction event with proper params'] = function testActionShouldFireInteractionEventWithProperParams() {\n var _this2 = this;\n\n var subscriberCallCount = 0;\n var subscriberPayload = null;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n foo: function () {}\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n (0, _emberMetal.instrumentationSubscribe)('interaction.ember-action', {\n before: function () {\n subscriberCallCount++;\n },\n after: function (name, time, payload) {\n subscriberPayload = payload;\n }\n });\n\n this.render('{{example-component}}');\n\n this.assert.equal(subscriberCallCount, 0, 'subscriber has not been called');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assert.equal(subscriberCallCount, 0, 'subscriber has not been called');\n\n this.runTask(function () {\n _this2.$('button').click();\n });\n\n this.assert.equal(subscriberCallCount, 1, 'subscriber has been called 1 time');\n this.assert.equal(subscriberPayload.name, 'foo', 'subscriber called with correct name');\n this.assert.equal(subscriberPayload.args[0], 'bar', 'subscriber called with correct args');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n }\n\n (0, _testCase.moduleFor)('Helpers test: element action', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test it can call an action on its enclosing component'] = function testItCanCallAnActionOnItsEnclosingComponent() {\n var _this4 = this;\n\n var fooCallCount = 0;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n foo: function () {\n fooCallCount++;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.assert.equal(fooCallCount, 0, 'foo has not been called');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assert.equal(fooCallCount, 0, 'foo has not been called');\n\n this.runTask(function () {\n _this4.$('button').click();\n });\n\n this.assert.equal(fooCallCount, 1, 'foo has been called 1 time');\n\n this.runTask(function () {\n _this4.$('button').click();\n });\n\n this.assert.equal(fooCallCount, 2, 'foo has been called 2 times');\n };\n\n _class2.prototype['@test it can call an action with parameters'] = function testItCanCallAnActionWithParameters() {\n var _this5 = this;\n\n var fooArgs = [];\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n member: 'a',\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n foo: function (thing) {\n fooArgs.push(thing);\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.assert.deepEqual(fooArgs, [], 'foo has not been called');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assert.deepEqual(fooArgs, [], 'foo has not been called');\n\n this.runTask(function () {\n _this5.$('button').click();\n });\n\n this.assert.deepEqual(fooArgs, ['a'], 'foo has not been called');\n\n this.runTask(function () {\n component.set('member', 'b');\n });\n\n this.runTask(function () {\n _this5.$('button').click();\n });\n\n this.assert.deepEqual(fooArgs, ['a', 'b'], 'foo has been called with an updated value');\n };\n\n _class2.prototype['@test it should output a marker attribute with a guid'] = function testItShouldOutputAMarkerAttributeWithAGuid() {\n this.render('');\n\n var button = this.$('button');\n\n var attributes = getActionAttributes(button.get(0));\n\n this.assert.ok(button.attr('data-ember-action').match(''), 'An empty data-ember-action attribute was added');\n this.assert.ok(attributes[0].match(/data-ember-action-\\d+/), 'A data-ember-action-xyz attribute with a guid was added');\n };\n\n _class2.prototype['@test it should allow alternative events to be handled'] = function testItShouldAllowAlternativeEventsToBeHandled() {\n var _this6 = this;\n\n var showCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n show: function () {\n showCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('mouseup');\n _this6.$('#show').trigger(event);\n });\n\n this.assert.ok(showCalled, 'show action was called on mouseUp');\n };\n\n _class2.prototype['@test inside a yield, the target points at the original target'] = function testInsideAYieldTheTargetPointsAtTheOriginalTarget() {\n var _this7 = this;\n\n var targetWatted = false;\n var innerWatted = false;\n\n var TargetComponent = _helpers.Component.extend({\n actions: {\n wat: function () {\n targetWatted = true;\n }\n }\n });\n\n var InnerComponent = _helpers.Component.extend({\n actions: {\n wat: function () {\n innerWatted = true;\n }\n }\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: '{{yield}}'\n });\n\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: (0, _abstractTestCase.strip)(_templateObject)\n });\n\n this.render('{{target-component}}');\n\n this.runTask(function () {\n _this7.$('button').click();\n });\n\n this.assert.ok(targetWatted, 'the correct target was watted');\n this.assert.notOk(innerWatted, 'the inner target was not watted');\n };\n\n _class2.prototype['@test it should allow a target to be specified'] = function testItShouldAllowATargetToBeSpecified() {\n var _this8 = this;\n\n var targetWatted = false;\n\n var TargetComponent = _helpers.Component.extend({\n actions: {\n wat: function () {\n targetWatted = true;\n }\n }\n });\n\n var OtherComponent = _helpers.Component.extend({});\n\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: '{{yield this}}'\n });\n\n this.registerComponent('other-component', {\n ComponentClass: OtherComponent,\n template: 'Wat?'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject2));\n\n this.runTask(function () {\n _this8.$('a').click();\n });\n\n this.assert.equal(targetWatted, true, 'the specified target was watted');\n };\n\n _class2.prototype['@test it should lazily evaluate the target'] = function testItShouldLazilyEvaluateTheTarget() {\n var _this9 = this;\n\n var firstEdit = 0;\n var secondEdit = 0;\n var component = void 0;\n\n var first = {\n edit: function () {\n firstEdit++;\n }\n };\n\n var second = {\n edit: function () {\n secondEdit++;\n }\n };\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n theTarget: first\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Edit'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this9.$('a').click();\n });\n\n this.assert.equal(firstEdit, 1);\n\n this.runTask(function () {\n (0, _emberMetal.set)(component, 'theTarget', second);\n });\n\n this.runTask(function () {\n _this9.$('a').click();\n });\n\n this.assert.equal(firstEdit, 1);\n this.assert.equal(secondEdit, 1);\n };\n\n _class2.prototype['@test it should register an event handler'] = function testItShouldRegisterAnEventHandler() {\n var _this10 = this;\n\n var editHandlerWasCalled = false;\n var shortcutHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n },\n shortcut: function () {\n shortcutHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me
click me too
'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n event.altKey = true;\n _this10.$('a[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n event.ctrlKey = true;\n _this10.$('div[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(shortcutHandlerWasCalled, true, 'the \"any\" shortcut\\'s event handler was called');\n };\n\n _class2.prototype['@test it handles whitelisted bound modifier keys'] = function testItHandlesWhitelistedBoundModifierKeys() {\n var _this11 = this;\n\n var editHandlerWasCalled = false;\n var shortcutHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n altKey: 'alt',\n anyKey: 'any',\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n },\n shortcut: function () {\n shortcutHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me
click me too
'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n event.altKey = true;\n _this11.$('a[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n event.ctrlKey = true;\n _this11.$('div[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(shortcutHandlerWasCalled, true, 'the \"any\" shortcut\\'s event handler was called');\n };\n\n _class2.prototype['@test it handles whitelisted bound modifier keys with current value'] = function testItHandlesWhitelistedBoundModifierKeysWithCurrentValue() {\n var _this12 = this;\n\n var editHandlerWasCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n acceptedKeys: 'alt',\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n event.altKey = true;\n _this12.$('a[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n\n editHandlerWasCalled = false;\n\n this.runTask(function () {\n component.set('acceptedKeys', '');\n });\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('click');\n _this12.$('div[data-ember-action]').trigger(event);\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the event handler was not called');\n };\n\n _class2.prototype['@test should be able to use action more than once for the same event within a view'] = function testShouldBeAbleToUseActionMoreThanOnceForTheSameEventWithinAView() {\n var _this13 = this;\n\n var editHandlerWasCalled = false;\n var deleteHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n },\n 'delete': function () {\n deleteHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'editdelete'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this13.$('#edit').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called (due to bubbling)');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n _this13.$('#delete').click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called (due to bubbling)');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n component.$().click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n };\n\n _class2.prototype['@test the event should not bubble if `bubbles=false` is passed'] = function testTheEventShouldNotBubbleIfBubblesFalseIsPassed() {\n var _this14 = this;\n\n var editHandlerWasCalled = false;\n var deleteHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n },\n 'delete': function () {\n deleteHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'editdelete'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this14.$('#edit').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n _this14.$('#delete').click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n component.$().click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n };\n\n _class2.prototype['@test the event should not bubble if `bubbles=false` is passed bound'] = function testTheEventShouldNotBubbleIfBubblesFalseIsPassedBound() {\n var _this15 = this;\n\n var editHandlerWasCalled = false;\n var deleteHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n isFalse: false,\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n },\n 'delete': function () {\n deleteHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'editdelete'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this15.$('#edit').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n _this15.$('#delete').click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, true, 'the delete action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n\n editHandlerWasCalled = deleteHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n component.$().click();\n });\n\n this.assert.equal(editHandlerWasCalled, false, 'the edit action was not called');\n this.assert.equal(deleteHandlerWasCalled, false, 'the delete action was not called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n };\n\n _class2.prototype['@test the bubbling depends on the bound parameter'] = function testTheBubblingDependsOnTheBoundParameter() {\n var _this16 = this;\n\n var editHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n shouldBubble: false,\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'edit'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this16.$('#edit').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(originalHandlerWasCalled, false, 'the click handler was not called');\n\n editHandlerWasCalled = originalHandlerWasCalled = false;\n\n this.runTask(function () {\n component.set('shouldBubble', true);\n });\n\n this.runTask(function () {\n _this16.$('#edit').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the edit action was called');\n this.assert.equal(originalHandlerWasCalled, true, 'the click handler was called');\n };\n\n _class2.prototype['@test it should work properly in an #each block'] = function testItShouldWorkProperlyInAnEachBlock() {\n var _this17 = this;\n\n var editHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n items: (0, _emberRuntime.A)([1, 2, 3, 4]),\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#each items as |item|}}click me{{/each}}'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this17.$('a').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n };\n\n _class2.prototype['@test it should work properly in a {{#with foo as |bar|}} block'] = function testItShouldWorkProperlyInAWithFooAsBarBlock() {\n var _this18 = this;\n\n var editHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n something: { ohai: 'there' },\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#with something as |somethingElse|}}click me{{/with}}'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this18.$('a').click();\n });\n\n this.assert.equal(editHandlerWasCalled, true, 'the event handler was called');\n };\n\n _class2.prototype['@test it should unregister event handlers when an element action is removed'] = function testItShouldUnregisterEventHandlersWhenAnElementActionIsRemoved() {\n var _this19 = this;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {}\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#if isActive}}click me{{/if}}'\n });\n\n this.render('{{example-component isActive=isActive}}', { isActive: true });\n\n equal(this.$('a[data-ember-action]').length, 1, 'The element is rendered');\n\n var actionId = void 0;\n\n actionId = getActionIds(this.$('a[data-ember-action]').get(0))[0];\n\n ok(_emberViews.ActionManager.registeredActions[actionId], 'An action is registered');\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n equal(this.$('a[data-ember-action]').length, 1, 'The element is still present');\n\n ok(_emberViews.ActionManager.registeredActions[actionId], 'The action is still registered');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'isActive', false);\n });\n\n strictEqual(this.$('a[data-ember-action]').length, 0, 'The element is removed');\n\n ok(!_emberViews.ActionManager.registeredActions[actionId], 'The action is unregistered');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context, 'isActive', true);\n });\n\n equal(this.$('a[data-ember-action]').length, 1, 'The element is rendered');\n\n actionId = getActionIds(this.$('a[data-ember-action]').get(0))[0];\n\n ok(_emberViews.ActionManager.registeredActions[actionId], 'A new action is registered');\n };\n\n _class2.prototype['@test it should capture events from child elements and allow them to trigger the action'] = function testItShouldCaptureEventsFromChildElementsAndAllowThemToTriggerTheAction() {\n var _this20 = this;\n\n var editHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '
'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this20.$('button').click();\n });\n\n this.assert.ok(editHandlerWasCalled, 'event on a child target triggered the action of its parent');\n };\n\n _class2.prototype['@test it should allow bubbling of events from action helper to original parent event'] = function testItShouldAllowBubblingOfEventsFromActionHelperToOriginalParentEvent() {\n var _this21 = this;\n\n var editHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this21.$('a').click();\n });\n\n this.assert.ok(editHandlerWasCalled && originalHandlerWasCalled, 'both event handlers were called');\n };\n\n _class2.prototype['@test it should not bubble an event from action helper to original parent event if `bubbles=false` is passed'] = function testItShouldNotBubbleAnEventFromActionHelperToOriginalParentEventIfBubblesFalseIsPassed() {\n var _this22 = this;\n\n var editHandlerWasCalled = false;\n var originalHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n },\n click: function () {\n originalHandlerWasCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this22.$('a').click();\n });\n\n this.assert.ok(editHandlerWasCalled, 'the child event handler was called');\n this.assert.notOk(originalHandlerWasCalled, 'the parent handler was not called');\n };\n\n _class2.prototype['@test it should allow \"send\" as the action name (#594)'] = function testItShouldAllowSendAsTheActionName594() {\n var _this23 = this;\n\n var sendHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n send: function () {\n sendHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this23.$('a').click();\n });\n\n this.assert.ok(sendHandlerWasCalled, 'the event handler was called');\n };\n\n _class2.prototype['@test it should send the view, event, and current context to the action'] = function testItShouldSendTheViewEventAndCurrentContextToTheAction() {\n var _this24 = this;\n\n var passedTarget = void 0;\n var passedContext = void 0;\n var targetThis = void 0;\n\n var TargetComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n targetThis = this;\n },\n\n actions: {\n edit: function (context) {\n passedTarget = this === targetThis;\n passedContext = context;\n }\n }\n });\n\n var aContext = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n aContext = this;\n }\n });\n\n this.registerComponent('target-component', {\n ComponentClass: TargetComponent,\n template: '{{yield this}}'\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _abstractTestCase.strip)(_templateObject3)\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this24.$('#edit').click();\n });\n\n this.assert.ok(passedTarget, 'the action is called with the target as this');\n this.assert.strictEqual(passedContext, aContext, 'the parameter is passed along');\n };\n\n _class2.prototype['@test it should only trigger actions for the event they were registered on'] = function testItShouldOnlyTriggerActionsForTheEventTheyWereRegisteredOn() {\n var _this25 = this;\n\n var editHandlerWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n edit: function () {\n editHandlerWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'click me'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this25.$('a').click();\n });\n\n this.assert.ok(editHandlerWasCalled, 'the event handler was called on click');\n\n editHandlerWasCalled = false;\n\n this.runTask(function () {\n _this25.$('a').trigger('mouseover');\n });\n\n this.assert.notOk(editHandlerWasCalled, 'the event handler was not called on mouseover');\n };\n\n _class2.prototype['@test it should allow multiple contexts to be specified'] = function testItShouldAllowMultipleContextsToBeSpecified() {\n var _this26 = this;\n\n var passedContexts = void 0;\n var models = [_emberRuntime.Object.create(), _emberRuntime.Object.create()];\n\n var ExampleComponent = _helpers.Component.extend({\n modelA: models[0],\n modelB: models[1],\n actions: {\n edit: function () {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n passedContexts = args;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this26.$('button').click();\n });\n\n this.assert.deepEqual(passedContexts, models, 'the action was called with the passed contexts');\n };\n\n _class2.prototype['@test it should allow multiple contexts to be specified mixed with string args'] = function testItShouldAllowMultipleContextsToBeSpecifiedMixedWithStringArgs() {\n var _this27 = this;\n\n var passedContexts = void 0;\n var model = _emberRuntime.Object.create();\n\n var ExampleComponent = _helpers.Component.extend({\n model: model,\n actions: {\n edit: function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n passedContexts = args;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this27.$('button').click();\n });\n\n this.assert.deepEqual(passedContexts, ['herp', model], 'the action was called with the passed contexts');\n };\n\n _class2.prototype['@test it should not trigger action with special clicks'] = function testItShouldNotTriggerActionWithSpecialClicks() {\n var showCalled = false;\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n show: function () {\n showCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n var assert = this.assert;\n\n function checkClick(prop, value, expected) {\n var event = _emberViews.jQuery.Event('click');\n event[prop] = value;\n\n component.$('button').trigger(event);\n\n if (expected) {\n assert.ok(showCalled, 'should call action with ' + prop + ':' + value);\n assert.ok(event.isDefaultPrevented(), 'should prevent default');\n } else {\n assert.notOk(showCalled, 'should not call action with ' + prop + ':' + value);\n assert.notOk(event.isDefaultPrevented(), 'should not prevent default');\n }\n }\n\n checkClick('ctrlKey', true, false);\n checkClick('altKey', true, false);\n checkClick('metaKey', true, false);\n checkClick('shiftKey', true, false);\n checkClick('which', 2, false);\n\n checkClick('which', 1, true);\n checkClick('which', undefined, true); // IE <9\n };\n\n _class2.prototype['@test it can trigger actions for keyboard events'] = function testItCanTriggerActionsForKeyboardEvents() {\n var _this28 = this;\n\n var showCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n show: function () {\n showCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n var event = _emberViews.jQuery.Event('keyup');\n event.char = 'a';\n event.which = 65;\n _this28.$('input').trigger(event);\n });\n\n this.assert.ok(showCalled, 'the action was called with keyup');\n };\n\n _class2.prototype['@test a quoteless parameter should allow dynamic lookup of the actionName'] = function testAQuotelessParameterShouldAllowDynamicLookupOfTheActionName() {\n var lastAction = void 0;\n var actionOrder = [];\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n hookMeUp: 'rock',\n actions: {\n rock: function () {\n lastAction = 'rock';\n actionOrder.push('rock');\n },\n paper: function () {\n lastAction = 'paper';\n actionOrder.push('paper');\n },\n scissors: function () {\n lastAction = 'scissors';\n actionOrder.push('scissors');\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Whistle tips go woop woooop'\n });\n\n this.render('{{example-component}}');\n\n var test = this;\n\n function testBoundAction(propertyValue) {\n test.runTask(function () {\n component.set('hookMeUp', propertyValue);\n });\n\n test.runTask(function () {\n component.$('#bound-param').click();\n });\n\n test.assert.ok(lastAction, propertyValue, 'lastAction set to ' + propertyValue);\n }\n\n testBoundAction('rock');\n testBoundAction('paper');\n testBoundAction('scissors');\n\n this.assert.deepEqual(actionOrder, ['rock', 'paper', 'scissors'], 'action name was looked up properly');\n };\n\n _class2.prototype['@test a quoteless string parameter should resolve actionName, including path'] = function testAQuotelessStringParameterShouldResolveActionNameIncludingPath() {\n var lastAction = void 0;\n var actionOrder = [];\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n allactions: (0, _emberRuntime.A)([{ title: 'Rock', name: 'rock' }, { title: 'Paper', name: 'paper' }, { title: 'Scissors', name: 'scissors' }]),\n actions: {\n rock: function () {\n lastAction = 'rock';\n actionOrder.push('rock');\n },\n paper: function () {\n lastAction = 'paper';\n actionOrder.push('paper');\n },\n scissors: function () {\n lastAction = 'scissors';\n actionOrder.push('scissors');\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: '{{#each allactions as |allaction|}}{{allaction.title}}{{/each}}'\n });\n\n this.render('{{example-component}}');\n\n var test = this;\n\n function testBoundAction(propertyValue) {\n test.runTask(function () {\n component.$('#' + propertyValue).click();\n });\n\n test.assert.ok(lastAction, propertyValue, 'lastAction set to ' + propertyValue);\n }\n\n testBoundAction('rock');\n testBoundAction('paper');\n testBoundAction('scissors');\n\n this.assert.deepEqual(actionOrder, ['rock', 'paper', 'scissors'], 'action name was looked up properly');\n };\n\n _class2.prototype['@test a quoteless function parameter should be called, including arguments'] = function testAQuotelessFunctionParameterShouldBeCalledIncludingArguments() {\n var _this29 = this;\n\n var submitCalled = false;\n var incomingArg = void 0;\n\n var arg = 'rough ray';\n\n var ExampleComponent = _helpers.Component.extend({\n submit: function (actualArg) {\n incomingArg = actualArg;\n submitCalled = true;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Hi'\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this29.$('a').click();\n });\n\n this.assert.ok(submitCalled, 'submit function called');\n this.assert.equal(incomingArg, arg, 'argument passed');\n };\n\n _class2.prototype['@test a quoteless parameter that does not resolve to a value asserts'] = function testAQuotelessParameterThatDoesNotResolveToAValueAsserts() {\n var _this30 = this;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n ohNoeNotValid: function () {}\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Hi'\n });\n\n expectAssertion(function () {\n _this30.render('{{example-component}}');\n }, 'You specified a quoteless path, `ohNoeNotValid`, to the {{action}} helper ' + 'which did not resolve to an action name (a string). ' + 'Perhaps you meant to use a quoted actionName? (e.g. {{action \"ohNoeNotValid\"}}).');\n };\n\n _class2.prototype['@test allows multiple actions on a single element'] = function testAllowsMultipleActionsOnASingleElement() {\n var _this31 = this;\n\n var clickActionWasCalled = false;\n var doubleClickActionWasCalled = false;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n clicked: function () {\n clickActionWasCalled = true;\n },\n doubleClicked: function () {\n doubleClickActionWasCalled = true;\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: (0, _abstractTestCase.strip)(_templateObject4)\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this31.$('a').trigger('click');\n });\n\n this.assert.ok(clickActionWasCalled, 'the clicked action was called');\n\n this.runTask(function () {\n _this31.$('a').trigger('dblclick');\n });\n\n this.assert.ok(doubleClickActionWasCalled, 'the doubleClicked action was called');\n };\n\n _class2.prototype['@test it should respect preventDefault option if provided'] = function testItShouldRespectPreventDefaultOptionIfProvided() {\n var _this32 = this;\n\n var ExampleComponent = _helpers.Component.extend({\n actions: {\n show: function () {}\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Hi'\n });\n\n this.render('{{example-component}}');\n\n var event = _emberViews.jQuery.Event('click');\n\n this.runTask(function () {\n _this32.$('a').trigger(event);\n });\n\n this.assert.equal(event.isDefaultPrevented(), false, 'should not preventDefault');\n };\n\n _class2.prototype['@test it should respect preventDefault option if provided bound'] = function testItShouldRespectPreventDefaultOptionIfProvidedBound() {\n var _this33 = this;\n\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n shouldPreventDefault: false,\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n },\n\n actions: {\n show: function () {}\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: 'Hi'\n });\n\n this.render('{{example-component}}');\n\n var event = _emberViews.jQuery.Event('click');\n\n this.runTask(function () {\n _this33.$('a').trigger(event);\n });\n\n this.assert.equal(event.isDefaultPrevented(), false, 'should not preventDefault');\n\n event = _emberViews.jQuery.Event('click');\n\n this.runTask(function () {\n component.set('shouldPreventDefault', true);\n _this33.$('a').trigger(event);\n });\n\n this.assert.equal(event.isDefaultPrevented(), true, 'should preventDefault');\n };\n\n _class2.prototype['@test it should target the proper component when `action` is in yielded block [GH #12409]'] = function testItShouldTargetTheProperComponentWhenActionIsInYieldedBlockGH12409() {\n var _this34 = this;\n\n var outerActionCalled = false;\n var innerClickCalled = false;\n\n var OuterComponent = _helpers.Component.extend({\n actions: {\n hey: function () {\n outerActionCalled = true;\n }\n }\n });\n\n var MiddleComponent = _helpers.Component.extend({});\n\n var InnerComponent = _helpers.Component.extend({\n click: function () {\n innerClickCalled = true;\n this.sendAction();\n }\n });\n\n this.registerComponent('outer-component', {\n ComponentClass: OuterComponent,\n template: (0, _abstractTestCase.strip)(_templateObject5)\n });\n\n this.registerComponent('middle-component', {\n ComponentClass: MiddleComponent,\n template: '{{yield}}'\n });\n\n this.registerComponent('inner-component', {\n ComponentClass: InnerComponent,\n template: (0, _abstractTestCase.strip)(_templateObject6)\n });\n\n this.render('{{outer-component}}');\n\n this.runTask(function () {\n _this34.$('button').click();\n });\n\n this.assert.ok(outerActionCalled, 'the action fired on the proper target');\n this.assert.ok(innerClickCalled, 'the click was triggered');\n };\n\n _class2.prototype['@test element action with (mut undefinedThing) works properly'] = function testElementActionWithMutUndefinedThingWorksProperly() {\n var _this35 = this;\n\n var component = void 0;\n\n var ExampleComponent = _helpers.Component.extend({\n label: undefined,\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.assertText('Click me');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n _this35.$('button').click();\n });\n\n this.assertText('Clicked!');\n\n this.runTask(function () {\n component.set('label', 'Dun clicked');\n });\n\n this.assertText('Dun clicked');\n\n this.runTask(function () {\n _this35.$('button').click();\n });\n\n this.assertText('Clicked!');\n\n this.runTask(function () {\n component.set('label', undefined);\n });\n\n this.assertText('Click me');\n };\n\n _class2.prototype['@test it supports non-registered actions [GH#14888]'] = function testItSupportsNonRegisteredActionsGH14888() {\n this.render('\\n {{#if show}}\\n \\n {{/if}}\\n ', { show: true });\n\n this.assert.equal(this.$('button').text().trim(), 'Show (true)');\n // We need to focus in to simulate an actual click.\n this.runTask(function () {\n document.getElementById('ddButton').focus();\n document.getElementById('ddButton').click();\n });\n };\n\n _class2.prototype['@test action handler that shifts element attributes doesn\\'t trigger multiple invocations'] = function testActionHandlerThatShiftsElementAttributesDoesnTTriggerMultipleInvocations() {\n var _this36 = this;\n\n var actionCount = 0;\n var ExampleComponent = _helpers.Component.extend({\n selected: false,\n actions: {\n toggleSelected: function () {\n actionCount++;\n this.toggleProperty('selected');\n }\n }\n });\n\n this.registerComponent('example-component', {\n ComponentClass: ExampleComponent,\n template: ''\n });\n\n this.render('{{example-component}}');\n\n this.runTask(function () {\n _this36.$('button').click();\n });\n\n this.assert.equal(actionCount, 1, 'Click action only fired once.');\n this.assert.ok(this.$('button').hasClass('selected'), 'Element with action handler has properly updated it\\'s conditional class');\n\n this.runTask(function () {\n _this36.$('button').click();\n });\n\n this.assert.equal(actionCount, 2, 'Second click action only fired once.');\n this.assert.ok(!this.$('button').hasClass('selected'), 'Element with action handler has properly updated it\\'s conditional class');\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/element-action-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/element-action-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/get-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{get}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test should be able to get an object value with a static key'] = function testShouldBeAbleToGetAnObjectValueWithAStaticKey() {\n var _this2 = this;\n\n this.render('[{{get colors \\'apple\\'}}] [{{if true (get colors \\'apple\\')}}]', {\n colors: { apple: 'red' }\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'colors.apple', 'green');\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'colors', {\n apple: 'red'\n });\n });\n\n this.assertText('[red] [red]');\n };\n\n _class.prototype['@test should be able to get an object value with nested static key'] = function testShouldBeAbleToGetAnObjectValueWithNestedStaticKey() {\n var _this3 = this;\n\n this.render('[{{get colors \"apple.gala\"}}] [{{if true (get colors \"apple.gala\")}}]', {\n colors: {\n apple: {\n gala: 'red and yellow'\n }\n }\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'colors.apple.gala', 'yellow and red striped');\n });\n\n this.assertText('[yellow and red striped] [yellow and red striped]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'colors', { apple: { gala: 'red and yellow' } });\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n };\n\n _class.prototype['@test should be able to get an object value with numeric keys'] = function testShouldBeAbleToGetAnObjectValueWithNumericKeys() {\n var _this4 = this;\n\n this.render('{{#each indexes as |index|}}[{{get items index}}]{{/each}}', {\n indexes: [1, 2, 3],\n items: {\n 1: 'First',\n 2: 'Second',\n 3: 'Third'\n }\n });\n\n this.assertText('[First][Second][Third]');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('[First][Second][Third]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'items.1', 'Qux');\n });\n\n this.assertText('[Qux][Second][Third]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'items', { 1: 'First', 2: 'Second', 3: 'Third' });\n });\n\n this.assertText('[First][Second][Third]');\n };\n\n _class.prototype['@test should be able to get an array value with numeric keys'] = function testShouldBeAbleToGetAnArrayValueWithNumericKeys() {\n var _this5 = this;\n\n this.render('{{#each numbers as |num index|}}[{{get numbers index}}]{{/each}}', {\n numbers: [1, 2, 3]\n });\n\n this.assertText('[1][2][3]');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('[1][2][3]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'numbers', [3, 2, 1]);\n });\n\n this.assertText('[3][2][1]');\n };\n\n _class.prototype['@test should be able to get an object value with a bound/dynamic key'] = function testShouldBeAbleToGetAnObjectValueWithABoundDynamicKey() {\n var _this6 = this;\n\n this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {\n colors: { apple: 'red', banana: 'yellow' },\n key: 'apple'\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'key', 'banana');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'colors.apple', 'green');\n (0, _emberMetal.set)(_this6.context, 'colors.banana', 'purple');\n });\n\n this.assertText('[purple] [purple]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'key', 'apple');\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'colors', { apple: 'red' });\n });\n\n this.assertText('[red] [red]');\n };\n\n _class.prototype['@test should be able to get an object value with nested dynamic key'] = function testShouldBeAbleToGetAnObjectValueWithNestedDynamicKey() {\n var _this7 = this;\n\n this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {\n colors: {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n },\n banana: 'yellow'\n },\n key: 'apple.gala'\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'key', 'apple.mcintosh');\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'key', 'banana');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'key', 'apple.gala');\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n };\n\n _class.prototype['@test should be able to get an object value with subexpression returning nested key'] = function testShouldBeAbleToGetAnObjectValueWithSubexpressionReturningNestedKey() {\n var _this8 = this;\n\n this.render('[{{get colors (concat \\'apple\\' \\'.\\' \\'gala\\')}}] [{{if true (get colors (concat \\'apple\\' \\'.\\' \\'gala\\'))}}]', {\n colors: {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n }\n },\n key: 'apple.gala'\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'colors.apple.gala', 'yellow and red striped');\n });\n\n this.assertText('[yellow and red striped] [yellow and red striped]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'colors.apple.gala', 'yellow-redish');\n });\n\n this.assertText('[yellow-redish] [yellow-redish]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'colors', {\n apple: {\n gala: 'red and yellow',\n mcintosh: 'red'\n }\n });\n });\n\n this.assertText('[red and yellow] [red and yellow]');\n };\n\n _class.prototype['@test should be able to get an object value with a get helper as the key'] = function testShouldBeAbleToGetAnObjectValueWithAGetHelperAsTheKey() {\n var _this9 = this;\n\n this.render('[{{get colors (get possibleKeys key)}}] [{{if true (get colors (get possibleKeys key))}}]', {\n colors: { apple: 'red', banana: 'yellow' },\n key: 'key1',\n possibleKeys: { key1: 'apple', key2: 'banana' }\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'key', 'key2');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'colors.apple', 'green');\n (0, _emberMetal.set)(_this9.context, 'colors.banana', 'purple');\n });\n\n this.assertText('[purple] [purple]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'key', 'key1');\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'colors', { apple: 'red', banana: 'yellow' });\n });\n\n this.assertText('[red] [red]');\n };\n\n _class.prototype['@test should be able to get an object value with a get helper value as a bound/dynamic key'] = function testShouldBeAbleToGetAnObjectValueWithAGetHelperValueAsABoundDynamicKey() {\n var _this10 = this;\n\n this.render('[{{get (get possibleValues objectKey) key}}] [{{if true (get (get possibleValues objectKey) key)}}]', {\n possibleValues: {\n colors1: { apple: 'red', banana: 'yellow' },\n colors2: { apple: 'green', banana: 'purple' }\n },\n objectKey: 'colors1',\n key: 'apple'\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors2');\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors1');\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'key', 'banana');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors2');\n });\n\n this.assertText('[purple] [purple]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'objectKey', 'colors1');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'key', 'apple');\n });\n };\n\n _class.prototype['@test should be able to get an object value with a get helper as the value and a get helper as the key'] = function testShouldBeAbleToGetAnObjectValueWithAGetHelperAsTheValueAndAGetHelperAsTheKey() {\n var _this11 = this;\n\n this.render('[{{get (get possibleValues objectKey) (get possibleKeys key)}}] [{{if true (get (get possibleValues objectKey) (get possibleKeys key))}}]', {\n possibleValues: {\n colors1: { apple: 'red', banana: 'yellow' },\n colors2: { apple: 'green', banana: 'purple' }\n },\n objectKey: 'colors1',\n possibleKeys: {\n key1: 'apple',\n key2: 'banana'\n },\n key: 'key1'\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'objectKey', 'colors2');\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'objectKey', 'colors1');\n });\n\n this.assertText('[red] [red]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'key', 'key2');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'objectKey', 'colors2');\n });\n\n this.assertText('[purple] [purple]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this11.context, 'objectKey', 'colors1');\n (0, _emberMetal.set)(_this11.context, 'key', 'key1');\n });\n\n this.assertText('[red] [red]');\n };\n\n _class.prototype['@test the result of a get helper can be yielded'] = function testTheResultOfAGetHelperCanBeYielded() {\n var _this12 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarInstance = this;\n this.mcintosh = 'red';\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{yield (get colors mcintosh)}}'\n });\n\n this.render('{{#foo-bar colors=colors as |value|}}{{value}}{{/foo-bar}}', {\n colors: {\n red: 'banana'\n }\n });\n\n this.assertText('banana');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('banana');\n\n this.runTask(function () {\n (0, _emberMetal.set)(fooBarInstance, 'mcintosh', 'yellow');\n (0, _emberMetal.set)(_this12.context, 'colors', { yellow: 'bus' });\n });\n\n this.assertText('bus');\n\n this.runTask(function () {\n (0, _emberMetal.set)(fooBarInstance, 'mcintosh', 'red');\n (0, _emberMetal.set)(_this12.context, 'colors', { red: 'banana' });\n });\n\n this.assertText('banana');\n };\n\n _class.prototype['@test should handle object values as nulls'] = function testShouldHandleObjectValuesAsNulls() {\n var _this13 = this;\n\n this.render('[{{get colors \\'apple\\'}}] [{{if true (get colors \\'apple\\')}}]', {\n colors: null\n });\n\n this.assertText('[] []');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('[] []');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'colors', { apple: 'green', banana: 'purple' });\n });\n\n this.assertText('[green] [green]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'colors', null);\n });\n\n this.assertText('[] []');\n };\n\n _class.prototype['@test should handle object keys as nulls'] = function testShouldHandleObjectKeysAsNulls() {\n var _this14 = this;\n\n this.render('[{{get colors key}}] [{{if true (get colors key)}}]', {\n colors: {\n apple: 'red',\n banana: 'yellow'\n },\n key: null\n });\n\n this.assertText('[] []');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('[] []');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'key', 'banana');\n });\n\n this.assertText('[yellow] [yellow]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'key', null);\n });\n\n this.assertText('[] []');\n };\n\n _class.prototype['@test should handle object values and keys as nulls'] = function testShouldHandleObjectValuesAndKeysAsNulls() {\n this.render('[{{get colors \\'apple\\'}}] [{{if true (get colors key)}}]', {\n colors: null,\n key: null\n });\n\n this.assertText('[] []');\n };\n\n _class.prototype['@test get helper value should be updatable using {{input}} and (mut) - static key'] = function testGetHelperValueShouldBeUpdatableUsingInputAndMutStaticKey(assert) {\n var _this15 = this;\n\n this.render('{{input type=\\'text\\' value=(mut (get source \\'banana\\')) id=\\'get-input\\'}}', {\n source: {\n banana: 'banana'\n }\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'source.banana', 'yellow');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'yellow');\n\n this.runTask(function () {\n return _this15.$('#get-input').val('some value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'some value');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'source', { banana: 'banana' });\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n };\n\n _class.prototype['@test get helper value should be updatable using {{input}} and (mut) - dynamic key'] = function testGetHelperValueShouldBeUpdatableUsingInputAndMutDynamicKey(assert) {\n var _this16 = this;\n\n this.render('{{input type=\\'text\\' value=(mut (get source key)) id=\\'get-input\\'}}', {\n source: {\n apple: 'apple',\n banana: 'banana'\n },\n key: 'banana'\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'source.banana', 'yellow');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'yellow');\n\n this.runTask(function () {\n return _this16.$('#get-input').val('some value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'some value');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'key', 'apple');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'apple');\n\n this.runTask(function () {\n return _this16.$('#get-input').val('some other value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'some other value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple'), 'some other value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'key', 'banana');\n (0, _emberMetal.set)(_this16.context, 'source', { banana: 'banana' });\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n };\n\n _class.prototype['@test get helper value should be updatable using {{input}} and (mut) - dynamic nested key'] = function testGetHelperValueShouldBeUpdatableUsingInputAndMutDynamicNestedKey(assert) {\n var _this17 = this;\n\n this.render('{{input type=\\'text\\' value=(mut (get source key)) id=\\'get-input\\'}}', {\n source: {\n apple: {\n gala: 'gala',\n mcintosh: 'mcintosh'\n },\n banana: 'banana'\n },\n key: 'apple.mcintosh'\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'source.apple.mcintosh', 'red');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'red');\n\n this.runTask(function () {\n return _this17.$('#get-input').val('some value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'some value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple.mcintosh'), 'some value');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'key', 'apple.gala');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'gala');\n\n this.runTask(function () {\n return _this17.$('#get-input').val('some other value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'some other value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.apple.gala'), 'some other value');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'key', 'banana');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'banana');\n\n this.runTask(function () {\n return _this17.$('#get-input').val('yet another value').trigger('change');\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'yet another value');\n assert.strictEqual((0, _emberMetal.get)(this.context, 'source.banana'), 'yet another value');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'key', 'apple.mcintosh');\n (0, _emberMetal.set)(_this17.context, 'source', {\n apple: {\n gala: 'gala',\n mcintosh: 'mcintosh'\n },\n banana: 'banana'\n });\n });\n\n assert.strictEqual(this.$('#get-input').val(), 'mcintosh');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/get-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/get-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/hash-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{hash}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test returns a hash with the right key-value'] = function testReturnsAHashWithTheRightKeyValue() {\n var _this2 = this;\n\n this.render('{{#with (hash name=\"Sergio\") as |person|}}{{person.name}}{{/with}}');\n\n this.assertText('Sergio');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('Sergio');\n };\n\n _class.prototype['@test can have more than one key-value'] = function testCanHaveMoreThanOneKeyValue() {\n var _this3 = this;\n\n this.render('{{#with (hash name=\"Sergio\" lastName=\"Arbeo\") as |person|}}{{person.name}} {{person.lastName}}{{/with}}');\n\n this.assertText('Sergio Arbeo');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('Sergio Arbeo');\n };\n\n _class.prototype['@test binds values when variables are used'] = function testBindsValuesWhenVariablesAreUsed() {\n var _this4 = this;\n\n this.render('{{#with (hash name=model.firstName lastName=\"Arbeo\") as |person|}}{{person.name}} {{person.lastName}}{{/with}}', {\n model: {\n firstName: 'Marisa'\n }\n });\n\n this.assertText('Marisa Arbeo');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('Marisa Arbeo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model.firstName', 'Sergio');\n });\n\n this.assertText('Sergio Arbeo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model', { firstName: 'Marisa' });\n });\n\n this.assertText('Marisa Arbeo');\n };\n\n _class.prototype['@test binds multiple values when variables are used'] = function testBindsMultipleValuesWhenVariablesAreUsed() {\n var _this5 = this;\n\n this.render('{{#with (hash name=model.firstName lastName=model.lastName) as |person|}}{{person.name}} {{person.lastName}}{{/with}}', {\n model: {\n firstName: 'Marisa',\n lastName: 'Arbeo'\n }\n });\n\n this.assertText('Marisa Arbeo');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('Marisa Arbeo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.firstName', 'Sergio');\n });\n\n this.assertText('Sergio Arbeo');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.lastName', 'Smith');\n });\n\n this.assertText('Sergio Smith');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model', {\n firstName: 'Marisa',\n lastName: 'Arbeo'\n });\n });\n\n this.assertText('Marisa Arbeo');\n };\n\n _class.prototype['@test hash helpers can be nested'] = function testHashHelpersCanBeNested() {\n var _this6 = this;\n\n this.render('{{#with (hash person=(hash name=model.firstName)) as |ctx|}}{{ctx.person.name}}{{/with}}', {\n model: { firstName: 'Balint' }\n });\n\n this.assertText('Balint');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('Balint');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'model.firstName', 'Chad');\n });\n\n this.assertText('Chad');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'model', { firstName: 'Balint' });\n });\n\n this.assertText('Balint');\n };\n\n _class.prototype['@test should yield hash of internal properties'] = function testShouldYieldHashOfInternalProperties() {\n var _this7 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarInstance = this;\n this.model = { firstName: 'Chad' };\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{yield (hash firstName=model.firstName)}}'\n });\n\n this.render('{{#foo-bar as |values|}}{{values.firstName}}{{/foo-bar}}');\n\n this.assertText('Chad');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('Chad');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model.firstName', 'Godfrey');\n });\n\n this.assertText('Godfrey');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model', { firstName: 'Chad' });\n });\n\n this.assertText('Chad');\n };\n\n _class.prototype['@test should yield hash of internal and external properties'] = function testShouldYieldHashOfInternalAndExternalProperties() {\n var _this8 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super();\n fooBarInstance = this;\n this.model = { firstName: 'Chad' };\n }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{yield (hash firstName=model.firstName lastName=lastName)}}'\n });\n\n this.render('{{#foo-bar lastName=model.lastName as |values|}}{{values.firstName}} {{values.lastName}}{{/foo-bar}}', {\n model: { lastName: 'Hietala' }\n });\n\n this.assertText('Chad Hietala');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('Chad Hietala');\n\n this.runTask(function () {\n (0, _emberMetal.set)(fooBarInstance, 'model.firstName', 'Godfrey');\n (0, _emberMetal.set)(_this8.context, 'model.lastName', 'Chan');\n });\n\n this.assertText('Godfrey Chan');\n\n this.runTask(function () {\n (0, _emberMetal.set)(fooBarInstance, 'model', { firstName: 'Chad' });\n (0, _emberMetal.set)(_this8.context, 'model', { lastName: 'Hietala' });\n });\n\n this.assertText('Chad Hietala');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/hash-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/hash-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/if-unless-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/shared-conditional-tests'], function (_emberBabel, _testCase, _sharedConditionalTests) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: inline {{if}}', function (_IfUnlessHelperTest) {\n (0, _emberBabel.inherits)(_class, _IfUnlessHelperTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest.apply(this, arguments));\n }\n\n _class.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n return '{{if ' + cond + ' ' + truthy + ' ' + falsy + '}}';\n };\n\n _class.prototype['@test it raises when there are more than three arguments'] = function testItRaisesWhenThereAreMoreThanThreeArguments() {\n var _this2 = this;\n\n expectAssertion(function () {\n _this2.render('{{if condition \\'a\\' \\'b\\' \\'c\\'}}', { condition: true });\n }, /The inline form of the `if` helper expects two or three arguments/);\n };\n\n _class.prototype['@test it raises when there are less than two arguments'] = function testItRaisesWhenThereAreLessThanTwoArguments() {\n var _this3 = this;\n\n expectAssertion(function () {\n _this3.render('{{if condition}}', { condition: true });\n }, /The inline form of the `if` helper expects two or three arguments/);\n };\n\n return _class;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: nested {{if}} helpers (returning truthy values)', function (_IfUnlessHelperTest2) {\n (0, _emberBabel.inherits)(_class2, _IfUnlessHelperTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest2.apply(this, arguments));\n }\n\n _class2.prototype.templateFor = function templateFor(_ref2) {\n var cond = _ref2.cond,\n truthy = _ref2.truthy,\n falsy = _ref2.falsy;\n\n return '{{if (if ' + cond + ' ' + cond + ' false) ' + truthy + ' ' + falsy + '}}';\n };\n\n return _class2;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: nested {{if}} helpers (returning falsy values)', function (_IfUnlessHelperTest3) {\n (0, _emberBabel.inherits)(_class3, _IfUnlessHelperTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest3.apply(this, arguments));\n }\n\n _class3.prototype.templateFor = function templateFor(_ref3) {\n var cond = _ref3.cond,\n truthy = _ref3.truthy,\n falsy = _ref3.falsy;\n\n return '{{if (if ' + cond + ' true ' + cond + ') ' + truthy + ' ' + falsy + '}}';\n };\n\n return _class3;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{if}} used with another helper', function (_IfUnlessHelperTest4) {\n (0, _emberBabel.inherits)(_class4, _IfUnlessHelperTest4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest4.apply(this, arguments));\n }\n\n _class4.prototype.wrapperFor = function wrapperFor(templates) {\n return '{{concat ' + templates.join(' ') + '}}';\n };\n\n _class4.prototype.templateFor = function templateFor(_ref4) {\n var cond = _ref4.cond,\n truthy = _ref4.truthy,\n falsy = _ref4.falsy;\n\n return '(if ' + cond + ' ' + truthy + ' ' + falsy + ')';\n };\n\n return _class4;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{if}} used in attribute position', function (_IfUnlessHelperTest5) {\n (0, _emberBabel.inherits)(_class5, _IfUnlessHelperTest5);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest5.apply(this, arguments));\n }\n\n _class5.prototype.wrapperFor = function wrapperFor(templates) {\n return '
';\n };\n\n _class5.prototype.templateFor = function templateFor(_ref5) {\n var cond = _ref5.cond,\n truthy = _ref5.truthy,\n falsy = _ref5.falsy;\n\n return '{{if ' + cond + ' ' + truthy + ' ' + falsy + '}}';\n };\n\n _class5.prototype.textValue = function textValue() {\n return this.$('div').attr('data-foo');\n };\n\n return _class5;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: inline {{if}} and {{unless}} without the inverse argument', function (_IfUnlessHelperTest6) {\n (0, _emberBabel.inherits)(_class6, _IfUnlessHelperTest6);\n\n function _class6() {\n (0, _emberBabel.classCallCheck)(this, _class6);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest6.apply(this, arguments));\n }\n\n _class6.prototype.templateFor = function templateFor(_ref6) {\n var cond = _ref6.cond,\n truthy = _ref6.truthy,\n falsy = _ref6.falsy;\n\n return '{{if ' + cond + ' ' + truthy + '}}{{unless ' + cond + ' ' + falsy + '}}';\n };\n\n return _class6;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: inline {{unless}}', function (_IfUnlessHelperTest7) {\n (0, _emberBabel.inherits)(_class7, _IfUnlessHelperTest7);\n\n function _class7() {\n (0, _emberBabel.classCallCheck)(this, _class7);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest7.apply(this, arguments));\n }\n\n _class7.prototype.templateFor = function templateFor(_ref7) {\n var cond = _ref7.cond,\n truthy = _ref7.truthy,\n falsy = _ref7.falsy;\n\n return '{{unless ' + cond + ' ' + falsy + ' ' + truthy + '}}';\n };\n\n _class7.prototype['@test it raises when there are more than three arguments'] = function testItRaisesWhenThereAreMoreThanThreeArguments() {\n var _this10 = this;\n\n expectAssertion(function () {\n _this10.render('{{unless condition \\'a\\' \\'b\\' \\'c\\'}}', { condition: true });\n }, /The inline form of the `unless` helper expects two or three arguments/);\n };\n\n _class7.prototype['@test it raises when there are less than two arguments'] = function testItRaisesWhenThereAreLessThanTwoArguments() {\n var _this11 = this;\n\n expectAssertion(function () {\n _this11.render('{{unless condition}}', { condition: true });\n }, /The inline form of the `unless` helper expects two or three arguments/);\n };\n\n return _class7;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: nested {{unless}} helpers (returning truthy values)', function (_IfUnlessHelperTest8) {\n (0, _emberBabel.inherits)(_class8, _IfUnlessHelperTest8);\n\n function _class8() {\n (0, _emberBabel.classCallCheck)(this, _class8);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest8.apply(this, arguments));\n }\n\n _class8.prototype.templateFor = function templateFor(_ref8) {\n var cond = _ref8.cond,\n truthy = _ref8.truthy,\n falsy = _ref8.falsy;\n\n return '{{unless (unless ' + cond + ' false ' + cond + ') ' + falsy + ' ' + truthy + '}}';\n };\n\n return _class8;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: nested {{unless}} helpers (returning falsy values)', function (_IfUnlessHelperTest9) {\n (0, _emberBabel.inherits)(_class9, _IfUnlessHelperTest9);\n\n function _class9() {\n (0, _emberBabel.classCallCheck)(this, _class9);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest9.apply(this, arguments));\n }\n\n _class9.prototype.templateFor = function templateFor(_ref9) {\n var cond = _ref9.cond,\n truthy = _ref9.truthy,\n falsy = _ref9.falsy;\n\n return '{{unless (unless ' + cond + ' ' + cond + ' true) ' + falsy + ' ' + truthy + '}}';\n };\n\n return _class9;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{unless}} used with another helper', function (_IfUnlessHelperTest10) {\n (0, _emberBabel.inherits)(_class10, _IfUnlessHelperTest10);\n\n function _class10() {\n (0, _emberBabel.classCallCheck)(this, _class10);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest10.apply(this, arguments));\n }\n\n _class10.prototype.wrapperFor = function wrapperFor(templates) {\n return '{{concat ' + templates.join(' ') + '}}';\n };\n\n _class10.prototype.templateFor = function templateFor(_ref10) {\n var cond = _ref10.cond,\n truthy = _ref10.truthy,\n falsy = _ref10.falsy;\n\n return '(unless ' + cond + ' ' + falsy + ' ' + truthy + ')';\n };\n\n return _class10;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{unless}} used in attribute position', function (_IfUnlessHelperTest11) {\n (0, _emberBabel.inherits)(_class11, _IfUnlessHelperTest11);\n\n function _class11() {\n (0, _emberBabel.classCallCheck)(this, _class11);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessHelperTest11.apply(this, arguments));\n }\n\n _class11.prototype.wrapperFor = function wrapperFor(templates) {\n return '
';\n };\n\n _class11.prototype.templateFor = function templateFor(_ref11) {\n var cond = _ref11.cond,\n truthy = _ref11.truthy,\n falsy = _ref11.falsy;\n\n return '{{unless ' + cond + ' ' + falsy + ' ' + truthy + '}}';\n };\n\n _class11.prototype.textValue = function textValue() {\n return this.$('div').attr('data-foo');\n };\n\n return _class11;\n }(_sharedConditionalTests.IfUnlessHelperTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/if-unless-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/if-unless-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/input-test', ['ember-babel', 'ember-utils', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case', 'internal-test-helpers'], function (_emberBabel, _emberUtils, _emberMetal, _helpers, _testCase, _internalTestHelpers) {\n 'use strict';\n\n var InputRenderingTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(InputRenderingTest, _RenderingTest);\n\n function InputRenderingTest() {\n (0, _emberBabel.classCallCheck)(this, InputRenderingTest);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.registerComponent('-text-field', { ComponentClass: _helpers.TextField });\n _this.registerComponent('-checkbox', { ComponentClass: _helpers.Checkbox });\n return _this;\n }\n\n InputRenderingTest.prototype.$input = function $input() {\n return this.$('input');\n };\n\n InputRenderingTest.prototype.inputID = function inputID() {\n return this.$input().prop('id');\n };\n\n InputRenderingTest.prototype.assertDisabled = function assertDisabled() {\n this.assert.ok(this.$('input').prop('disabled'), 'The input is disabled');\n };\n\n InputRenderingTest.prototype.assertNotDisabled = function assertNotDisabled() {\n this.assert.ok(this.$('input').is(':not(:disabled)'), 'The input is not disabled');\n };\n\n InputRenderingTest.prototype.assertInputId = function assertInputId(expectedId) {\n this.assert.equal(this.inputID(), expectedId, 'the input id should be `expectedId`');\n };\n\n InputRenderingTest.prototype.assertSingleInput = function assertSingleInput() {\n this.assert.equal(this.$('input').length, 1, 'A single text field was inserted');\n };\n\n InputRenderingTest.prototype.assertSingleCheckbox = function assertSingleCheckbox() {\n this.assert.equal(this.$('input[type=checkbox]').length, 1, 'A single checkbox is added');\n };\n\n InputRenderingTest.prototype.assertCheckboxIsChecked = function assertCheckboxIsChecked() {\n this.assert.equal(this.$input().prop('checked'), true, 'the checkbox is checked');\n };\n\n InputRenderingTest.prototype.assertCheckboxIsNotChecked = function assertCheckboxIsNotChecked() {\n this.assert.equal(this.$input().prop('checked'), false, 'the checkbox is not checked');\n };\n\n InputRenderingTest.prototype.assertValue = function assertValue(expected) {\n this.assert.equal(this.$input().val(), expected, 'the input value should be ' + expected);\n };\n\n InputRenderingTest.prototype.assertAttr = function assertAttr(name, expected) {\n this.assert.equal(this.$input().attr(name), expected, 'the input ' + name + ' attribute has the value \\'' + expected + '\\'');\n };\n\n InputRenderingTest.prototype.assertAllAttrs = function assertAllAttrs(names, expected) {\n var _this2 = this;\n\n names.forEach(function (name) {\n return _this2.assertAttr(name, expected);\n });\n };\n\n InputRenderingTest.prototype.assertSelectionRange = function assertSelectionRange(start, end) {\n var input = this.$input()[0];\n this.assert.equal(input.selectionStart, start, 'the cursor start position should be ' + start);\n this.assert.equal(input.selectionEnd, end, 'the cursor end position should be ' + end);\n };\n\n InputRenderingTest.prototype.triggerEvent = function triggerEvent(type, options) {\n var event = document.createEvent('Events');\n event.initEvent(type, true, true);\n (0, _emberUtils.assign)(event, options);\n\n var element = this.$input()[0];\n this.runTask(function () {\n element.dispatchEvent(event);\n });\n };\n\n return InputRenderingTest;\n }(_testCase.RenderingTest);\n\n (0, _testCase.moduleFor)('Helpers test: {{input}}', function (_InputRenderingTest) {\n (0, _emberBabel.inherits)(_class, _InputRenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _InputRenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test a single text field is inserted into the DOM'] = function testASingleTextFieldIsInsertedIntoTheDOM(assert) {\n var _this4 = this;\n\n this.render('{{input type=\"text\" value=value}}', { value: 'hello' });\n\n var id = this.inputID();\n\n this.assertValue('hello');\n this.assertSingleInput();\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertValue('hello');\n this.assertSingleInput();\n this.assertInputId(id);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'value', 'goodbye');\n });\n\n this.assertValue('goodbye');\n this.assertSingleInput();\n this.assertInputId(id);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'value', 'hello');\n });\n\n this.assertValue('hello');\n this.assertSingleInput();\n this.assertInputId(id);\n };\n\n _class.prototype['@test default type'] = function testDefaultType() {\n var _this5 = this;\n\n this.render('{{input}}');\n\n this.assertAttr('type', 'text');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertAttr('type', 'text');\n };\n\n _class.prototype['@test dynamic attributes'] = function testDynamicAttributes() {\n var _this6 = this;\n\n this.render('\\n {{input type=\"text\"\\n disabled=disabled\\n value=value\\n placeholder=placeholder\\n name=name\\n maxlength=maxlength\\n minlength=minlength\\n size=size\\n tabindex=tabindex\\n }}', {\n disabled: false,\n value: 'Original value',\n placeholder: 'Original placeholder',\n name: 'original-name',\n maxlength: 10,\n minlength: 5,\n size: 20,\n tabindex: 30\n });\n\n this.assertNotDisabled();\n this.assertValue('Original value');\n this.assertAttr('placeholder', 'Original placeholder');\n this.assertAttr('name', 'original-name');\n this.assertAttr('maxlength', '10');\n this.assertAttr('minlength', '5');\n // this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertNotDisabled();\n this.assertValue('Original value');\n this.assertAttr('placeholder', 'Original placeholder');\n this.assertAttr('name', 'original-name');\n this.assertAttr('maxlength', '10');\n this.assertAttr('minlength', '5');\n // this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'value', 'Updated value');\n (0, _emberMetal.set)(_this6.context, 'disabled', true);\n (0, _emberMetal.set)(_this6.context, 'placeholder', 'Updated placeholder');\n (0, _emberMetal.set)(_this6.context, 'name', 'updated-name');\n (0, _emberMetal.set)(_this6.context, 'maxlength', 11);\n (0, _emberMetal.set)(_this6.context, 'minlength', 6);\n // set(this.context, 'size', 21); //NOTE: failing in IE (TEST_SUITE=sauce)\n // set(this.context, 'tabindex', 31); //NOTE: failing in IE (TEST_SUITE=sauce)\n });\n\n this.assertDisabled();\n this.assertValue('Updated value');\n this.assertAttr('placeholder', 'Updated placeholder');\n this.assertAttr('name', 'updated-name');\n this.assertAttr('maxlength', '11');\n this.assertAttr('minlength', '6');\n // this.assertAttr('size', '21'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '31'); //NOTE: failing in IE (TEST_SUITE=sauce)\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'value', 'Original value');\n (0, _emberMetal.set)(_this6.context, 'disabled', false);\n (0, _emberMetal.set)(_this6.context, 'placeholder', 'Original placeholder');\n (0, _emberMetal.set)(_this6.context, 'name', 'original-name');\n (0, _emberMetal.set)(_this6.context, 'maxlength', 10);\n (0, _emberMetal.set)(_this6.context, 'minlength', 5);\n // set(this.context, 'size', 20); //NOTE: failing in IE (TEST_SUITE=sauce)\n // set(this.context, 'tabindex', 30); //NOTE: failing in IE (TEST_SUITE=sauce)\n });\n\n this.assertNotDisabled();\n this.assertValue('Original value');\n this.assertAttr('placeholder', 'Original placeholder');\n this.assertAttr('name', 'original-name');\n this.assertAttr('maxlength', '10');\n this.assertAttr('minlength', '5');\n // this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)\n };\n\n _class.prototype['@test static attributes'] = function testStaticAttributes() {\n var _this7 = this;\n\n this.render('\\n {{input type=\"text\"\\n disabled=true\\n value=\"Original value\"\\n placeholder=\"Original placeholder\"\\n name=\"original-name\"\\n maxlength=10\\n minlength=5\\n size=20\\n tabindex=30\\n }}');\n\n this.assertDisabled();\n this.assertValue('Original value');\n this.assertAttr('placeholder', 'Original placeholder');\n this.assertAttr('name', 'original-name');\n this.assertAttr('maxlength', '10');\n this.assertAttr('minlength', '5');\n // this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertDisabled();\n this.assertValue('Original value');\n this.assertAttr('placeholder', 'Original placeholder');\n this.assertAttr('name', 'original-name');\n this.assertAttr('maxlength', '10');\n this.assertAttr('minlength', '5');\n // this.assertAttr('size', '20'); //NOTE: failing in IE (TEST_SUITE=sauce)\n // this.assertAttr('tabindex', '30'); //NOTE: failing in IE (TEST_SUITE=sauce)\n };\n\n _class.prototype['@test cursor selection range'] = function testCursorSelectionRange(assert) {\n var _this8 = this;\n\n // Modifying input.selectionStart, which is utilized in the cursor tests,\n // causes an event in Safari.\n (0, _internalTestHelpers.runDestroy)(this.owner.lookup('event_dispatcher:main'));\n\n this.render('{{input type=\"text\" value=value}}', { value: 'original' });\n\n var input = this.$input()[0];\n\n // See https://ember-twiddle.com/33e506329f8176ae874422644d4cc08c?openFiles=components.input-component.js%2Ctemplates.components.input-component.hbs\n // this.assertSelectionRange(8, 8); //NOTE: this is (0, 0) on Firefox (TEST_SUITE=sauce)\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n // this.assertSelectionRange(8, 8); //NOTE: this is (0, 0) on Firefox (TEST_SUITE=sauce)\n\n this.runTask(function () {\n input.selectionStart = 2;\n input.selectionEnd = 4;\n });\n\n this.assertSelectionRange(2, 4);\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertSelectionRange(2, 4);\n\n // this.runTask(() => set(this.context, 'value', 'updated'));\n //\n // this.assertSelectionRange(7, 7); //NOTE: this fails in IE, the range is 0 -> 0 (TEST_SUITE=sauce)\n //\n // this.runTask(() => set(this.context, 'value', 'original'));\n //\n // this.assertSelectionRange(8, 8); //NOTE: this fails in IE, the range is 0 -> 0 (TEST_SUITE=sauce)\n };\n\n _class.prototype['@test specifying `on=\"someevent\" action=\"foo\"` results in a deprecation warning'] = function testSpecifyingOnSomeeventActionFooResultsInADeprecationWarning() {\n var _this9 = this;\n\n expectDeprecation(function () {\n _this9.render('{{input on=\"focus-in\" action=\"doFoo\" value=\"hello\"}}');\n }, 'Using \\'{{input on=\"focus-in\" action=\"doFoo\"}}\\' (\\'-top-level\\' @ L1:C0) is deprecated. Please use \\'{{input focus-in=\"doFoo\"}}\\' instead.');\n };\n\n _class.prototype['@test sends an action with `{{input action=\"foo\"}}` when is pressed [DEPRECATED]'] = function testSendsAnActionWithInputActionFooWhenEnterIsPressedDEPRECATED(assert) {\n var _this10 = this;\n\n assert.expect(2);\n\n expectDeprecation(function () {\n _this10.render('{{input action=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n }, /Please use '{{input enter=\"foo\"}}' instead/);\n\n this.triggerEvent('keyup', {\n keyCode: 13\n });\n };\n\n _class.prototype['@test sends an action with `{{input enter=\"foo\"}}` when is pressed'] = function testSendsAnActionWithInputEnterFooWhenEnterIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input enter=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keyup', {\n keyCode: 13\n });\n };\n\n _class.prototype['@test sends an action with `{{input key-press=\"foo\"}}` is pressed'] = function testSendsAnActionWithInputKeyPressFooIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input value=value key-press=\\'foo\\'}}', {\n value: 'initial',\n\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keypress', {\n keyCode: 65\n });\n };\n\n _class.prototype['@test sends an action to the parent level when `bubbles=true` is provided'] = function testSendsAnActionToTheParentLevelWhenBubblesTrueIsProvided(assert) {\n assert.expect(1);\n\n var ParentComponent = _helpers.Component.extend({\n change: function () {\n assert.ok(true, 'bubbled upwards');\n }\n });\n\n this.registerComponent('x-parent', {\n ComponentClass: ParentComponent,\n template: '{{input bubbles=true}}'\n });\n this.render('{{x-parent}}');\n\n this.triggerEvent('change');\n };\n\n _class.prototype['@test triggers `focus-in` when focused'] = function testTriggersFocusInWhenFocused(assert) {\n var _this11 = this;\n\n assert.expect(1);\n\n this.render('{{input focus-in=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.runTask(function () {\n _this11.$input().trigger('focusin');\n });\n };\n\n _class.prototype['@test sends `insert-newline` when is pressed'] = function testSendsInsertNewlineWhenEnterIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input insert-newline=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keyup', {\n keyCode: 13\n });\n };\n\n _class.prototype['@test sends an action with `{{input escape-press=\"foo\"}}` when is pressed'] = function testSendsAnActionWithInputEscapePressFooWhenEscapeIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input escape-press=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keyup', {\n keyCode: 27\n });\n };\n\n _class.prototype['@test sends an action with `{{input key-down=\"foo\"}}` when a key is pressed'] = function testSendsAnActionWithInputKeyDownFooWhenAKeyIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input key-down=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keydown', {\n keyCode: 65\n });\n };\n\n _class.prototype['@test sends an action with `{{input key-up=\"foo\"}}` when a key is pressed'] = function testSendsAnActionWithInputKeyUpFooWhenAKeyIsPressed(assert) {\n assert.expect(1);\n\n this.render('{{input key-up=\\'foo\\'}}', {\n actions: {\n foo: function () {\n assert.ok(true, 'action was triggered');\n }\n }\n });\n\n this.triggerEvent('keyup', {\n keyCode: 65\n });\n };\n\n _class.prototype['@test GH#14727 can render a file input after having had render an input of other type'] = function testGH14727CanRenderAFileInputAfterHavingHadRenderAnInputOfOtherType() {\n this.render('{{input type=\"text\"}}{{input type=\"file\"}}');\n\n this.assert.equal(this.$input()[0].type, 'text');\n this.assert.equal(this.$input()[1].type, 'file');\n };\n\n return _class;\n }(InputRenderingTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{input}} with dynamic type', function (_InputRenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _InputRenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _InputRenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test a bound property can be used to determine type'] = function testABoundPropertyCanBeUsedToDetermineType() {\n var _this13 = this;\n\n this.render('{{input type=type}}', { type: 'password' });\n\n this.assertAttr('type', 'password');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertAttr('type', 'password');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'type', 'text');\n });\n\n this.assertAttr('type', 'text');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'type', 'password');\n });\n\n this.assertAttr('type', 'password');\n };\n\n _class2.prototype['@test a subexpression can be used to determine type'] = function testASubexpressionCanBeUsedToDetermineType() {\n var _this14 = this;\n\n this.render('{{input type=(if isTruthy trueType falseType)}}', {\n isTruthy: true,\n trueType: 'text',\n falseType: 'password'\n });\n\n this.assertAttr('type', 'text');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertAttr('type', 'text');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'isTruthy', false);\n });\n\n this.assertAttr('type', 'password');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'isTruthy', true);\n });\n\n this.assertAttr('type', 'text');\n };\n\n return _class2;\n }(InputRenderingTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{input type=\\'checkbox\\'}}', function (_InputRenderingTest3) {\n (0, _emberBabel.inherits)(_class3, _InputRenderingTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _InputRenderingTest3.apply(this, arguments));\n }\n\n _class3.prototype['@test dynamic attributes'] = function testDynamicAttributes() {\n var _this16 = this;\n\n this.render('{{input\\n type=\\'checkbox\\'\\n disabled=disabled\\n name=name\\n checked=checked\\n tabindex=tabindex\\n }}', {\n disabled: false,\n name: 'original-name',\n checked: false,\n tabindex: 10\n });\n\n this.assertSingleCheckbox();\n this.assertNotDisabled();\n this.assertAttr('name', 'original-name');\n this.assertAttr('tabindex', '10');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertSingleCheckbox();\n this.assertNotDisabled();\n this.assertAttr('name', 'original-name');\n this.assertAttr('tabindex', '10');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'disabled', true);\n (0, _emberMetal.set)(_this16.context, 'name', 'updated-name');\n (0, _emberMetal.set)(_this16.context, 'tabindex', 11);\n });\n\n this.assertSingleCheckbox();\n this.assertDisabled();\n this.assertAttr('name', 'updated-name');\n this.assertAttr('tabindex', '11');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'disabled', false);\n (0, _emberMetal.set)(_this16.context, 'name', 'original-name');\n (0, _emberMetal.set)(_this16.context, 'tabindex', 10);\n });\n\n this.assertSingleCheckbox();\n this.assertNotDisabled();\n this.assertAttr('name', 'original-name');\n this.assertAttr('tabindex', '10');\n };\n\n _class3.prototype['@test `value` property assertion'] = function testValuePropertyAssertion() {\n var _this17 = this;\n\n expectAssertion(function () {\n _this17.render('{{input type=\"checkbox\" value=value}}', { value: 'value' });\n }, /you must use `checked=/);\n };\n\n _class3.prototype['@test with a bound type'] = function testWithABoundType(assert) {\n var _this18 = this;\n\n this.render('{{input type=inputType checked=isChecked}}', { inputType: 'checkbox', isChecked: true });\n\n this.assertSingleCheckbox();\n this.assertCheckboxIsChecked();\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertCheckboxIsChecked();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this18.context, 'isChecked', false);\n });\n\n this.assertCheckboxIsNotChecked();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this18.context, 'isChecked', true);\n });\n\n this.assertCheckboxIsChecked();\n };\n\n _class3.prototype['@test native click changes check property'] = function testNativeClickChangesCheckProperty(assert) {\n this.render('{{input type=\"checkbox\"}}');\n\n this.assertSingleCheckbox();\n this.assertCheckboxIsNotChecked();\n this.$input()[0].click();\n this.assertCheckboxIsChecked();\n this.$input()[0].click();\n this.assertCheckboxIsNotChecked();\n };\n\n _class3.prototype['@test with static values'] = function testWithStaticValues(assert) {\n var _this19 = this;\n\n this.render('{{input type=\"checkbox\" disabled=false tabindex=10 name=\"original-name\" checked=false}}');\n\n this.assertSingleCheckbox();\n this.assertCheckboxIsNotChecked();\n this.assertNotDisabled();\n this.assertAttr('tabindex', '10');\n this.assertAttr('name', 'original-name');\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n this.assertSingleCheckbox();\n this.assertCheckboxIsNotChecked();\n this.assertNotDisabled();\n this.assertAttr('tabindex', '10');\n this.assertAttr('name', 'original-name');\n };\n\n return _class3;\n }(InputRenderingTest));\n\n (0, _testCase.moduleFor)('Helpers test: {{input type=\\'text\\'}}', function (_InputRenderingTest4) {\n (0, _emberBabel.inherits)(_class4, _InputRenderingTest4);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _InputRenderingTest4.apply(this, arguments));\n }\n\n _class4.prototype['@test null values'] = function testNullValues(assert) {\n var _this21 = this;\n\n var attributes = ['disabled', 'placeholder', 'name', 'maxlength', 'size', 'tabindex'];\n\n this.render('\\n {{input type=\"text\"\\n disabled=disabled\\n value=value\\n placeholder=placeholder\\n name=name\\n maxlength=maxlength\\n size=size\\n tabindex=tabindex\\n }}', {\n disabled: null,\n value: null,\n placeholder: null,\n name: null,\n maxlength: null,\n size: null,\n tabindex: null\n });\n\n this.assertValue('');\n this.assertAllAttrs(attributes, undefined);\n\n this.runTask(function () {\n return _this21.rerender();\n });\n\n this.assertValue('');\n this.assertAllAttrs(attributes, undefined);\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this21.context, 'disabled', true);\n (0, _emberMetal.set)(_this21.context, 'value', 'Updated value');\n (0, _emberMetal.set)(_this21.context, 'placeholder', 'Updated placeholder');\n (0, _emberMetal.set)(_this21.context, 'name', 'updated-name');\n (0, _emberMetal.set)(_this21.context, 'maxlength', 11);\n (0, _emberMetal.set)(_this21.context, 'size', 21);\n (0, _emberMetal.set)(_this21.context, 'tabindex', 31);\n });\n\n this.assertDisabled();\n this.assertValue('Updated value');\n this.assertAttr('placeholder', 'Updated placeholder');\n this.assertAttr('name', 'updated-name');\n this.assertAttr('maxlength', '11');\n this.assertAttr('size', '21');\n this.assertAttr('tabindex', '31');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this21.context, 'disabled', null);\n (0, _emberMetal.set)(_this21.context, 'value', null);\n (0, _emberMetal.set)(_this21.context, 'placeholder', null);\n (0, _emberMetal.set)(_this21.context, 'name', null);\n (0, _emberMetal.set)(_this21.context, 'maxlength', null);\n // set(this.context, 'size', null); //NOTE: this fails with `Error: Failed to set the 'size' property on 'HTMLInputElement': The value provided is 0, which is an invalid size.` (TEST_SUITE=sauce)\n (0, _emberMetal.set)(_this21.context, 'tabindex', null);\n });\n\n this.assertAttr('disabled', undefined);\n this.assertValue('');\n // this.assertAttr('placeholder', undefined); //NOTE: this fails with a value of \"null\" (TEST_SUITE=sauce)\n // this.assertAttr('name', undefined); //NOTE: this fails with a value of \"null\" (TEST_SUITE=sauce)\n this.assertAttr('maxlength', undefined);\n // this.assertAttr('size', undefined); //NOTE: re-enable once `size` bug above has been addressed\n this.assertAttr('tabindex', undefined);\n };\n\n return _class4;\n }(InputRenderingTest));\n\n // These are the permutations of the set:\n // ['type=\"range\"', 'min=\"-5\" max=\"50\"', 'value=\"%x\"']\n ['type=\"range\" min=\"-5\" max=\"50\" value=\"%x\"', 'type=\"range\" value=\"%x\" min=\"-5\" max=\"50\"', 'min=\"-5\" max=\"50\" type=\"range\" value=\"%x\"', 'min=\"-5\" max=\"50\" value=\"%x\" type=\"range\"', 'value=\"%x\" min=\"-5\" max=\"50\" type=\"range\"', 'value=\"%x\" type=\"range\" min=\"-5\" max=\"50\"'].forEach(function (attrs) {\n (0, _testCase.moduleFor)('[GH#15675] Helpers test: {{input ' + attrs + '}}', function (_InputRenderingTest5) {\n (0, _emberBabel.inherits)(_class5, _InputRenderingTest5);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _InputRenderingTest5.apply(this, arguments));\n }\n\n _class5.prototype.renderInput = function renderInput() {\n var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 25;\n\n this.render('{{input ' + attrs.replace(\"%x\", value) + '}}');\n };\n\n _class5.prototype.assertValue = function assertValue(expected) {\n var type = this.$input().attr('type');\n\n if (type !== 'range') {\n this.assert.ok(true, 'IE9 does not support range items');\n return;\n }\n\n _InputRenderingTest5.prototype.assertValue.call(this, expected);\n };\n\n _class5.prototype['@test value over default max but below set max is kept'] = function testValueOverDefaultMaxButBelowSetMaxIsKept(assert) {\n this.renderInput(\"25\");\n this.assertValue(\"25\");\n };\n\n _class5.prototype['@test value below default min but above set min is kept'] = function testValueBelowDefaultMinButAboveSetMinIsKept(assert) {\n this.renderInput(\"-2\");\n this.assertValue(\"-2\");\n };\n\n _class5.prototype['@test in the valid default range is kept'] = function testInTheValidDefaultRangeIsKept(assert) {\n this.renderInput(\"5\");\n this.assertValue(\"5\");\n };\n\n _class5.prototype['@test value above max is reset to max'] = function testValueAboveMaxIsResetToMax(assert) {\n this.renderInput(\"55\");\n this.assertValue(\"50\");\n };\n\n _class5.prototype['@test value below min is reset to min'] = function testValueBelowMinIsResetToMin(assert) {\n this.renderInput(\"-10\");\n this.assertValue(\"-5\");\n };\n\n return _class5;\n }(InputRenderingTest));\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/input-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/input-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/loc-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember'], function (_emberBabel, _testCase, _emberMetal, _ember) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{loc}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.oldString = _ember.default.STRINGS;\n _ember.default.STRINGS = {\n 'Hello Friend': 'Hallo Freund',\n 'Hello': 'Hallo, %@'\n };\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n _RenderingTest.prototype.teardown.call(this);\n _ember.default.STRINGS = this.oldString;\n };\n\n _class.prototype['@test it lets the original value through by default'] = function testItLetsTheOriginalValueThroughByDefault() {\n var _this2 = this;\n\n this.render('{{loc \"Hiya buddy!\"}}');\n this.assertText('Hiya buddy!', 'the unlocalized string is correct');\n this.runTask(function () {\n return _this2.rerender();\n });\n this.assertText('Hiya buddy!', 'the unlocalized string is correct after rerender');\n };\n\n _class.prototype['@test it localizes a simple string'] = function testItLocalizesASimpleString() {\n var _this3 = this;\n\n this.render('{{loc \"Hello Friend\"}}');\n this.assertText('Hallo Freund', 'the localized string is correct');\n this.runTask(function () {\n return _this3.rerender();\n });\n this.assertText('Hallo Freund', 'the localized string is correct after rerender');\n };\n\n _class.prototype['@test it takes passed formats into an account'] = function testItTakesPassedFormatsIntoAnAccount() {\n var _this4 = this;\n\n this.render('{{loc \"%@, %@\" \"Hello\" \"Mr. Pitkin\"}}');\n this.assertText('Hello, Mr. Pitkin', 'the formatted string is correct');\n this.runTask(function () {\n return _this4.rerender();\n });\n this.assertText('Hello, Mr. Pitkin', 'the formatted string is correct after rerender');\n };\n\n _class.prototype['@test it updates when bound params change'] = function testItUpdatesWhenBoundParamsChange() {\n var _this5 = this;\n\n this.render('{{loc simple}} - {{loc personal \\'Mr. Pitkin\\'}}', {\n simple: 'Hello Friend',\n personal: 'Hello'\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after rerender');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'simple', 'G\\'day mate');\n });\n this.assertText('G\\'day mate - Hallo, Mr. Pitkin', 'the bound value is correct after update');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'simple', 'Hello Friend');\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after reset');\n };\n\n _class.prototype['@test it updates when nested bound params change'] = function testItUpdatesWhenNestedBoundParamsChange() {\n var _this6 = this;\n\n this.render('{{loc greetings.simple}} - {{loc greetings.personal \\'Mr. Pitkin\\'}}', {\n greetings: {\n simple: 'Hello Friend',\n personal: 'Hello'\n }\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after rerender');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'greetings.simple', 'G\\'day mate');\n });\n this.assertText('G\\'day mate - Hallo, Mr. Pitkin', 'the bound value is correct after interior mutation');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'greetings', {\n simple: 'Hello Friend',\n personal: 'Hello'\n });\n });\n this.assertText('Hallo Freund - Hallo, Mr. Pitkin', 'the bound value is correct after replacement');\n };\n\n _class.prototype['@test it can be overriden'] = function testItCanBeOverriden() {\n this.registerHelper('loc', function () {\n return 'Yup';\n });\n this.render('{{loc greeting}}', {\n greeting: 'Hello Friend'\n });\n this.assertText('Yup', 'the localized string is correct');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/loc-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/loc-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/log-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-console'], function (_emberBabel, _testCase, _emberConsole) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{log}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class(assert) {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.originalLog = _emberConsole.default.log;\n _this.logCalls = [];\n _emberConsole.default.log = function () {\n var _this$logCalls;\n\n (_this$logCalls = _this.logCalls).push.apply(_this$logCalls, arguments);\n };\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n _RenderingTest.prototype.teardown.call(this);\n _emberConsole.default.log = this.originalLog;\n };\n\n _class.prototype.assertLog = function assertLog(values) {\n this.assertText('');\n this.assert.strictEqual(this.logCalls.length, values.length);\n\n for (var i = 0, len = values.length; i < len; i++) {\n this.assert.strictEqual(this.logCalls[i], values[i]);\n }\n };\n\n _class.prototype['@test correctly logs primitives'] = function testCorrectlyLogsPrimitives() {\n this.render('{{log \"one\" 1 true}}');\n\n this.assertLog(['one', 1, true]);\n };\n\n _class.prototype['@test correctly logs a property'] = function testCorrectlyLogsAProperty() {\n this.render('{{log value}}', {\n value: 'one'\n });\n\n this.assertLog(['one']);\n };\n\n _class.prototype['@test correctly logs multiple arguments'] = function testCorrectlyLogsMultipleArguments() {\n this.render('{{log \"my variable:\" value}}', {\n value: 'one'\n });\n\n this.assertLog(['my variable:', 'one']);\n };\n\n _class.prototype['@test correctly logs `this`'] = function testCorrectlyLogsThis() {\n this.render('{{log this}}');\n\n this.assertLog([this.context]);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/log-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/log-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/mut-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal', 'ember-glimmer/tests/utils/test-helpers'], function (_emberBabel, _testCase, _helpers, _emberMetal, _testHelpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{mut}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test a simple mutable binding using `mut` propagates properly'] = function testASimpleMutableBindingUsingMutPropagatesProperly() {\n var _this2 = this;\n\n var bottom = void 0;\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{setMe}}'\n });\n\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut setMe=value}}'\n });\n\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n\n this.assertText('12', 'the data propagated downwards');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return bottom.attrs.setMe.update(13);\n });\n\n this.assertText('13', 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 13, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 13, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(bottom, 'setMe', 14);\n });\n\n this.assertText('14', 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 14, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 14, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'val', 12);\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test a simple mutable binding using `mut` inserts into the DOM'] = function testASimpleMutableBindingUsingMutInsertsIntoTheDOM() {\n var _this3 = this;\n\n var bottom = void 0,\n middle = void 0;\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{setMe}}'\n });\n\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n middle = this;\n }\n }),\n template: '{{bottom-mut setMe=(mut value)}}'\n });\n\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n\n this.assertText('12', 'the data propagated downwards');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return bottom.attrs.setMe.update(13);\n });\n\n this.assertText('13', 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 13, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(middle, 'value'), 13, 'the set propagated to middle\\'s prop');\n this.assert.strictEqual(middle.attrs.value.value, 13, 'the set propagated to middle\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 13, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(bottom, 'setMe', 14);\n });\n\n this.assertText('14', 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 14, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(middle, 'value'), 14, 'the set propagated to middle\\'s prop');\n this.assert.strictEqual(middle.attrs.value.value, 14, 'the set propagated to middle\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 14, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'val', 12);\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test passing a literal results in a assertion'] = function testPassingALiteralResultsInAAssertion() {\n var _this4 = this;\n\n this.registerComponent('bottom-mut', { template: '{{setMe}}' });\n\n expectAssertion(function () {\n _this4.render('{{bottom-mut setMe=(mut \"foo bar\")}}');\n }, 'You can only pass a path to mut');\n };\n\n _class.prototype['@test passing the result of a helper invocation results in an assertion'] = function testPassingTheResultOfAHelperInvocationResultsInAnAssertion() {\n var _this5 = this;\n\n this.registerComponent('bottom-mut', { template: '{{setMe}}' });\n\n expectAssertion(function () {\n _this5.render('{{bottom-mut setMe=(mut (concat \"foo\" \" \" \"bar\"))}}');\n }, 'You can only pass a path to mut');\n };\n\n _class.prototype['@test using a string value through middle tier does not trigger assertion (due to the auto-mut transform)'] = function testUsingAStringValueThroughMiddleTierDoesNotTriggerAssertionDueToTheAutoMutTransform() {\n var bottom = void 0;\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{stuff}}'\n });\n\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut stuff=value}}'\n });\n\n this.render('{{middle-mut value=\"foo\"}}');\n\n this.assert.equal((0, _emberMetal.get)(bottom, 'stuff'), 'foo', 'the data propagated');\n this.assertText('foo');\n\n this.assertStableRerender();\n\n // No U-R for this test\n };\n\n _class.prototype['@test {{readonly}} of a {{mut}} is converted into an immutable binding'] = function testReadonlyOfAMutIsConvertedIntoAnImmutableBinding() {\n var _this6 = this;\n\n var middle = void 0,\n bottom = void 0;\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{setMe}}'\n });\n\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n middle = this;\n }\n }),\n template: '{{bottom-mut setMe=(readonly value)}}'\n });\n\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return middle.attrs.value.update(13);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(middle, 'value'), 13, 'the set took effect on middle\\'s prop');\n this.assert.strictEqual(middle.attrs.value.value, 13, 'the set took effect on middle\\'s attr');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(middle, 'value', 14);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(middle, 'value'), 14, 'the set took effect on middle\\'s prop');\n this.assert.strictEqual(middle.attrs.value.value, 14, 'the set took effect on middle\\'s attr');\n this.assert.strictEqual(bottom.attrs.setMe, 14, 'the mutable binding has been converted to an immutable cell');\n this.assertText('14');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 14, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'val', 12);\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test mutable bindings work inside of yielded content'] = function testMutableBindingsWorkInsideOfYieldedContent() {\n var _this7 = this;\n\n this.registerComponent('bottom-mut', {\n template: '{{yield}}'\n });\n\n this.registerComponent('middle-mut', {\n template: '{{#bottom-mut}}{{model.name}}{{/bottom-mut}}'\n });\n\n this.render('{{middle-mut model=(mut model)}}', {\n model: { name: 'Matthew Beale' }\n });\n\n this.assertText('Matthew Beale');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'model.name', 'Joel Kang');\n });\n\n this.assertText('Joel Kang');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'model', { name: 'Matthew Beale' });\n });\n\n this.assertText('Matthew Beale');\n };\n\n _class.prototype['@test a simple mutable binding using {{mut}} is available in hooks'] = function testASimpleMutableBindingUsingMutIsAvailableInHooks() {\n var _this8 = this;\n\n var bottom = void 0;\n var willRender = [];\n var didInsert = [];\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n willRender: function () {\n willRender.push((0, _emberMetal.get)(this, 'setMe'));\n },\n didInsertElement: function () {\n didInsert.push((0, _emberMetal.get)(this, 'setMe'));\n bottom = this;\n }\n }),\n template: '{{setMe}}'\n });\n\n this.registerComponent('middle-mut', {\n template: '{{bottom-mut setMe=(mut value)}}'\n });\n\n this.render('{{middle-mut value=(mut val)}}', {\n val: 12\n });\n\n this.assert.deepEqual(willRender, [12], 'willReceive is [12]');\n this.assert.deepEqual(didInsert, [12], 'didInsert is [12]');\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.assert.deepEqual(willRender, [12], 'willReceive is [12]');\n this.assert.deepEqual(didInsert, [12], 'didInsert is [12]');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 12, 'the data propagated');\n\n this.runTask(function () {\n return bottom.attrs.setMe.update(13);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 13, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 13, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 13, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(bottom, 'setMe', 14);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'setMe'), 14, 'the set took effect on bottom\\'s prop');\n this.assert.strictEqual(bottom.attrs.setMe.value, 14, 'the set took effect on bottom\\'s attr');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'val'), 14, 'the set propagated back up');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'val', 12);\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test a mutable binding with a backing computed property and attribute present in the root of the component is updated when the upstream property invalidates #11023'] = function testAMutableBindingWithABackingComputedPropertyAndAttributePresentInTheRootOfTheComponentIsUpdatedWhenTheUpstreamPropertyInvalidates11023() {\n var bottom = void 0,\n middle = void 0;\n\n this.registerComponent('bottom-mut', {\n ComponentClass: _helpers.Component.extend({\n thingy: null,\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{thingy}}'\n });\n\n this.registerComponent('middle-mut', {\n ComponentClass: _helpers.Component.extend({\n baseValue: 12,\n val: (0, _emberMetal.computed)('baseValue', function () {\n return this.get('baseValue');\n }),\n didInsertElement: function () {\n middle = this;\n }\n }),\n template: '{{bottom-mut thingy=(mut val)}}'\n });\n\n this.render('{{middle-mut}}');\n\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'thingy'), 12, 'data propagated');\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(middle, 'baseValue', 13);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(middle, 'val'), 13, 'the set took effect');\n this.assert.strictEqual(bottom.attrs.thingy.value, 13, 'the set propagated down to bottom\\'s attrs');\n this.assert.strictEqual((0, _emberMetal.get)(bottom, 'thingy'), 13, 'the set propagated down to bottom\\'s prop');\n this.assertText('13');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(middle, 'baseValue', 12);\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test automatic mutable bindings exposes a mut cell in attrs'] = function testAutomaticMutableBindingsExposesAMutCellInAttrs() {\n var inner = void 0;\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n inner = this;\n }\n }),\n template: '{{foo}}'\n });\n\n this.registerComponent('x-outer', {\n template: '{{x-inner foo=bar}}'\n });\n\n this.render('{{x-outer bar=baz}}', { baz: 'foo' });\n\n this.assertText('foo');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return inner.attrs.foo.update('bar');\n });\n\n this.assert.equal(inner.attrs.foo.value, 'bar');\n this.assert.equal((0, _emberMetal.get)(inner, 'foo'), 'bar');\n this.assertText('bar');\n\n this.runTask(function () {\n return inner.attrs.foo.update('foo');\n });\n\n this.assertText('foo');\n };\n\n _class.prototype['@test automatic mutable bindings tolerate undefined non-stream inputs and attempts to set them'] = function testAutomaticMutableBindingsTolerateUndefinedNonStreamInputsAndAttemptsToSetThem() {\n var inner = void 0;\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n inner = this;\n }\n }),\n template: '{{model}}'\n });\n\n this.registerComponent('x-outer', {\n template: '{{x-inner model=nonexistent}}'\n });\n\n this.render('{{x-outer}}');\n\n this.assertText('');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return inner.attrs.model.update(42);\n });\n\n this.assert.equal(inner.attrs.model.value, 42);\n this.assert.equal((0, _emberMetal.get)(inner, 'model'), 42);\n this.assertText('42');\n\n this.runTask(function () {\n return inner.attrs.model.update(undefined);\n });\n\n this.assertText('');\n };\n\n _class.prototype['@test automatic mutable bindings tolerate constant non-stream inputs and attempts to set them'] = function testAutomaticMutableBindingsTolerateConstantNonStreamInputsAndAttemptsToSetThem() {\n var inner = void 0;\n\n this.registerComponent('x-inner', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n inner = this;\n }\n }),\n template: 'hello{{model}}'\n });\n\n this.registerComponent('x-outer', {\n template: '{{x-inner model=x}}'\n });\n\n this.render('{{x-outer x=\"foo\"}}');\n\n this.assertText('hellofoo');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return inner.attrs.model.update(42);\n });\n\n this.assert.equal(inner.attrs.model.value, 42);\n this.assert.equal((0, _emberMetal.get)(inner, 'model'), 42);\n this.assertText('hello42');\n\n this.runTask(function () {\n return inner.attrs.model.update('foo');\n });\n\n this.assertText('hellofoo');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('Mutable Bindings used in Computed Properties that are bound as attributeBindings', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test an attribute binding of a computed property of a 2-way bound attr recomputes when the attr changes'] = function testAnAttributeBindingOfAComputedPropertyOfA2WayBoundAttrRecomputesWhenTheAttrChanges() {\n var _this10 = this;\n\n var input = void 0,\n output = void 0;\n\n this.registerComponent('x-input', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n input = this;\n }\n })\n });\n\n this.registerComponent('x-output', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['style'],\n didInsertElement: function () {\n output = this;\n },\n\n style: (0, _emberMetal.computed)('height', function () {\n var height = this.get('height');\n return 'height: ' + height + 'px;';\n }),\n height: 20\n }),\n template: '{{height}}'\n });\n\n this.render('{{x-output height=height}}{{x-input height=(mut height)}}', {\n height: 60\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 60px;') }, content: '60' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return input.attrs.height.update(35);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(output, 'height'), 35, 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'height'), 35, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 35px;') }, content: '35' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(input, 'height', 36);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(output, 'height'), 36, 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'height'), 36, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 36px;') }, content: '36' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'height', 60);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 60px;') }, content: '60' });\n this.assert.strictEqual((0, _emberMetal.get)(input, 'height'), 60);\n };\n\n _class2.prototype['@test an attribute binding of a computed property with a setter of a 2-way bound attr recomputes when the attr changes'] = function testAnAttributeBindingOfAComputedPropertyWithASetterOfA2WayBoundAttrRecomputesWhenTheAttrChanges() {\n var _this11 = this;\n\n var input = void 0,\n output = void 0;\n\n this.registerComponent('x-input', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n input = this;\n }\n })\n });\n\n this.registerComponent('x-output', {\n ComponentClass: _helpers.Component.extend({\n attributeBindings: ['style'],\n didInsertElement: function () {\n output = this;\n },\n\n style: (0, _emberMetal.computed)('height', 'width', function () {\n var height = this.get('height');\n var width = this.get('width');\n return 'height: ' + height + 'px; width: ' + width + 'px;';\n }),\n height: 20,\n width: (0, _emberMetal.computed)('height', {\n get: function () {\n return this.get('height') * 2;\n },\n set: function (keyName, width) {\n this.set('height', width / 2);\n return width;\n }\n })\n }),\n template: '{{width}}x{{height}}'\n });\n\n this.render('{{x-output width=width}}{{x-input width=(mut width)}}', {\n width: 70\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 35px; width: 70px;') }, content: '70x35' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(input, 'width', 80);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(output, 'width'), 80, 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'width'), 80, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 40px; width: 80px;') }, content: '80x40' });\n\n this.runTask(function () {\n return input.attrs.width.update(90);\n });\n\n this.assert.strictEqual((0, _emberMetal.get)(output, 'width'), 90, 'the set took effect');\n this.assert.strictEqual((0, _emberMetal.get)(this.context, 'width'), 90, 'the set propagated back up');\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 45px; width: 90px;') }, content: '90x45' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'width', 70);\n });\n\n this.assertComponentElement(this.firstChild, { tagName: 'div', attrs: { style: (0, _testHelpers.styles)('height: 35px; width: 70px;') }, content: '70x35' });\n this.assert.strictEqual((0, _emberMetal.get)(input, 'width'), 70);\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/mut-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/mut-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/partial-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _testCase, _emberMetal, _emberRuntime, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each model.items as |item|}}\\n {{item}}: {{partial \\'show-item\\'}} |\\n {{/each}}'], ['\\n {{#each model.items as |item|}}\\n {{item}}: {{partial \\'show-item\\'}} |\\n {{/each}}']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with model as |item|}}\\n {{item.name}}: {{partial \\'show-id\\'}}\\n {{/with}}'], ['\\n {{#with model as |item|}}\\n {{item.name}}: {{partial \\'show-id\\'}}\\n {{/with}}']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each items as |item|}}\\n {{item.id}}: {{partial \\'show-item\\'}} |\\n {{/each}}'], ['\\n {{#each items as |item|}}\\n {{item.id}}: {{partial \\'show-item\\'}} |\\n {{/each}}']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each items as |item|}}\\n {{item}}: {{partial \\'show-item\\'}} |\\n {{/each}}'], ['\\n {{#each items as |item|}}\\n {{item}}: {{partial \\'show-item\\'}} |\\n {{/each}}']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n [outer: {{name}}] {{partial \\'inner-partial\\'}}\\n '], ['\\n [outer: {{name}}] {{partial \\'inner-partial\\'}}\\n ']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each names as |name i|}}\\n {{i}}: {{partial \\'outer-partial\\'}}\\n {{/each}}'], ['\\n {{#each names as |name i|}}\\n {{i}}: {{partial \\'outer-partial\\'}}\\n {{/each}}']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with \\'Ben\\' as |person2|}}\\n Hi {{person1}} (aged {{age}}) and {{person2}}. {{partial \\'person3-partial\\'}}\\n {{/with}}\\n '], ['\\n {{#with \\'Ben\\' as |person2|}}\\n Hi {{person1}} (aged {{age}}) and {{person2}}. {{partial \\'person3-partial\\'}}\\n {{/with}}\\n ']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with \\'Alex\\' as |person3|}}\\n Hi {{person1}} (aged {{age}}), {{person2}} and {{person3}}. {{partial \\'person4-partial\\'}}\\n {{/with}}\\n '], ['\\n {{#with \\'Alex\\' as |person3|}}\\n Hi {{person1}} (aged {{age}}), {{person2}} and {{person3}}. {{partial \\'person4-partial\\'}}\\n {{/with}}\\n ']),\n _templateObject9 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with \\'Sarah\\' as |person4|}}\\n Hi {{person1}} (aged {{age}}), {{person2}}, {{person3}} and {{person4}}.\\n {{/with}}\\n '], ['\\n {{#with \\'Sarah\\' as |person4|}}\\n Hi {{person1}} (aged {{age}}), {{person2}}, {{person3}} and {{person4}}.\\n {{/with}}\\n ']),\n _templateObject10 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with \\'Sophie\\' as |person1|}}\\n Hi {{person1}} (aged {{age}}). {{partial \\'person2-partial\\'}}\\n {{/with}}'], ['\\n {{#with \\'Sophie\\' as |person1|}}\\n Hi {{person1}} (aged {{age}}). {{partial \\'person2-partial\\'}}\\n {{/with}}']),\n _templateObject11 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each model.items as |template i|}}\\n {{model.type}}: {{partial template}}\\n {{/each}}'], ['\\n {{#each model.items as |template i|}}\\n {{model.type}}: {{partial template}}\\n {{/each}}']),\n _templateObject12 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with item.thing as |t|}}\\n {{partial t}}\\n {{else}}\\n Nothing!\\n {{/with}}'], ['\\n {{#with item.thing as |t|}}\\n {{partial t}}\\n {{else}}\\n Nothing!\\n {{/with}}']),\n _templateObject13 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#outer.inner as |inner|}}\\n inner.name: {{inner.name}}\\n {{/outer.inner}}\\n '], ['\\n {{#outer.inner as |inner|}}\\n inner.name: {{inner.name}}\\n {{/outer.inner}}\\n ']),\n _templateObject14 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#outer-component name=name as |outer|}}\\n {{partial \\'some-partial\\'}}\\n {{/outer-component}}'], ['\\n {{#outer-component name=name as |outer|}}\\n {{partial \\'some-partial\\'}}\\n {{/outer-component}}']);\n\n (0, _testCase.moduleFor)('Helpers test: {{partial}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test should render other templates registered with the container'] = function testShouldRenderOtherTemplatesRegisteredWithTheContainer() {\n this.registerPartial('_subTemplateFromContainer', 'sub-template');\n\n this.render('This {{partial \"subTemplateFromContainer\"}} is pretty great.');\n\n this.assertStableRerender();\n\n this.assertText('This sub-template is pretty great.');\n };\n\n _class.prototype['@test should render other slash-separated templates registered with the container'] = function testShouldRenderOtherSlashSeparatedTemplatesRegisteredWithTheContainer() {\n this.registerPartial('child/_subTemplateFromContainer', 'sub-template');\n\n this.render('This {{partial \"child/subTemplateFromContainer\"}} is pretty great.');\n\n this.assertStableRerender();\n\n this.assertText('This sub-template is pretty great.');\n };\n\n _class.prototype['@test should use the current context'] = function testShouldUseTheCurrentContext() {\n var _this2 = this;\n\n this.registerPartial('_person_name', '{{model.firstName}} {{model.lastName}}');\n\n this.render('Who is {{partial \"person_name\"}}?', {\n model: {\n firstName: 'Kris',\n lastName: 'Selden'\n }\n });\n\n this.assertStableRerender();\n\n this.assertText('Who is Kris Selden?');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model.firstName', 'Kelly');\n });\n\n this.assertText('Who is Kelly Selden?');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model', { firstName: 'Kris', lastName: 'Selden' });\n });\n\n this.assertText('Who is Kris Selden?');\n };\n\n _class.prototype['@test Quoteless parameters passed to {{partial}} perform a bound property lookup of the partial name'] = function testQuotelessParametersPassedToPartialPerformABoundPropertyLookupOfThePartialName() {\n var _this3 = this;\n\n this.registerPartial('_subTemplate', 'sub-template');\n this.registerPartial('_otherTemplate', 'other-template');\n\n this.render('This {{partial templates.partialName}} is pretty {{partial nonexistent}}great.', {\n templates: { partialName: 'subTemplate' }\n });\n\n this.assertStableRerender();\n\n this.assertText('This sub-template is pretty great.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'templates.partialName', 'otherTemplate');\n });\n\n this.assertText('This other-template is pretty great.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'templates.partialName', null);\n });\n\n this.assertText('This is pretty great.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'templates', { partialName: 'subTemplate' });\n });\n\n this.assertText('This sub-template is pretty great.');\n };\n\n _class.prototype['@test partial using data from {{#each}}'] = function testPartialUsingDataFromEach() {\n var _this4 = this;\n\n this.registerPartial('show-item', '{{item}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject), {\n model: {\n items: (0, _emberRuntime.A)(['apple', 'orange', 'banana'])\n }\n });\n\n this.assertStableRerender();\n\n this.assertText('apple: apple |orange: orange |banana: banana |');\n\n this.runTask(function () {\n return _this4.context.model.items.pushObject('strawberry');\n });\n\n this.assertText('apple: apple |orange: orange |banana: banana |strawberry: strawberry |');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model', {\n items: (0, _emberRuntime.A)(['apple', 'orange', 'banana'])\n });\n });\n\n this.assertText('apple: apple |orange: orange |banana: banana |');\n };\n\n _class.prototype['@test partial using `{{get` on data from {{#with}}'] = function testPartialUsingGetOnDataFromWith() {\n var _this5 = this;\n\n this.registerPartial('show-id', '{{get item \"id\"}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n model: { id: 1, name: 'foo' }\n });\n\n this.assertStableRerender();\n\n this.assertText('foo: 1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.id', 2);\n });\n\n this.assertText('foo: 2');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.name', 'bar');\n });\n\n this.assertText('bar: 2');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model', { id: 1, name: 'foo' });\n });\n\n this.assertText('foo: 1');\n };\n\n _class.prototype['@test partial using `{{get` on data from {{#each}}'] = function testPartialUsingGetOnDataFromEach() {\n var _this6 = this;\n\n this.registerPartial('show-item', '{{get item \"id\"}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject3), {\n items: (0, _emberRuntime.A)([{ id: 1 }, { id: 2 }, { id: 3 }])\n });\n\n this.assertStableRerender();\n\n this.assertText('1: 1 |2: 2 |3: 3 |');\n\n this.runTask(function () {\n return _this6.context.items.pushObject({ id: 4 });\n });\n\n this.assertText('1: 1 |2: 2 |3: 3 |4: 4 |');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'items', (0, _emberRuntime.A)([{ id: 1 }, { id: 2 }, { id: 3 }]));\n });\n\n this.assertText('1: 1 |2: 2 |3: 3 |');\n };\n\n _class.prototype['@test partial using conditional on data from {{#each}}'] = function testPartialUsingConditionalOnDataFromEach() {\n var _this7 = this;\n\n this.registerPartial('show-item', '{{#if item}}{{item}}{{/if}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject4), {\n items: (0, _emberRuntime.A)(['apple', null, 'orange', 'banana'])\n });\n\n this.assertStableRerender();\n\n this.assertText('apple: apple |: |orange: orange |banana: banana |');\n\n this.runTask(function () {\n return _this7.context.items.pushObject('strawberry');\n });\n\n this.assertText('apple: apple |: |orange: orange |banana: banana |strawberry: strawberry |');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'items', (0, _emberRuntime.A)(['apple', null, 'orange', 'banana']));\n });\n\n this.assertText('apple: apple |: |orange: orange |banana: banana |');\n };\n\n _class.prototype['@test nested partials using data from {{#each}}'] = function testNestedPartialsUsingDataFromEach() {\n var _this8 = this;\n\n this.registerPartial('_outer-partial', (0, _abstractTestCase.strip)(_templateObject5));\n\n this.registerPartial('inner-partial', '[inner: {{name}}]');\n\n this.render((0, _abstractTestCase.strip)(_templateObject6), {\n names: (0, _emberRuntime.A)(['Alex', 'Ben'])\n });\n\n this.assertStableRerender();\n\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]');\n\n this.runTask(function () {\n return _this8.context.names.pushObject('Sophie');\n });\n\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]2: [outer: Sophie] [inner: Sophie]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'names', (0, _emberRuntime.A)(['Alex', 'Ben']));\n });\n\n this.assertText('0: [outer: Alex] [inner: Alex]1: [outer: Ben] [inner: Ben]');\n };\n\n _class.prototype['@test nested partials within nested `{{#with}}` blocks'] = function testNestedPartialsWithinNestedWithBlocks() {\n var _this9 = this;\n\n this.registerPartial('_person2-partial', (0, _abstractTestCase.strip)(_templateObject7));\n\n this.registerPartial('_person3-partial', (0, _abstractTestCase.strip)(_templateObject8));\n\n this.registerPartial('_person4-partial', (0, _abstractTestCase.strip)(_templateObject9));\n\n this.render((0, _abstractTestCase.strip)(_templateObject10), { age: 0 });\n\n this.assertStableRerender();\n\n this.assertText('Hi Sophie (aged 0). Hi Sophie (aged 0) and Ben. Hi Sophie (aged 0), Ben and Alex. Hi Sophie (aged 0), Ben, Alex and Sarah.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'age', 1);\n });\n\n this.assertText('Hi Sophie (aged 1). Hi Sophie (aged 1) and Ben. Hi Sophie (aged 1), Ben and Alex. Hi Sophie (aged 1), Ben, Alex and Sarah.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'age', 0);\n });\n\n this.assertText('Hi Sophie (aged 0). Hi Sophie (aged 0) and Ben. Hi Sophie (aged 0), Ben and Alex. Hi Sophie (aged 0), Ben, Alex and Sarah.');\n };\n\n _class.prototype['@test dynamic partials in {{#each}}'] = function testDynamicPartialsInEach() {\n var _this10 = this;\n\n this.registerPartial('_odd', 'ODD{{i}}');\n this.registerPartial('_even', 'EVEN{{i}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject11), {\n model: {\n items: ['even', 'odd', 'even', 'odd'],\n type: 'number'\n }\n });\n\n this.assertStableRerender();\n\n this.assertText('number: EVEN0number: ODD1number: EVEN2number: ODD3');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'model.type', 'integer');\n });\n\n this.assertText('integer: EVEN0integer: ODD1integer: EVEN2integer: ODD3');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'model', {\n items: ['even', 'odd', 'even', 'odd'],\n type: 'number'\n });\n });\n\n this.assertText('number: EVEN0number: ODD1number: EVEN2number: ODD3');\n };\n\n _class.prototype['@test dynamic partials in {{#with}}'] = function testDynamicPartialsInWith() {\n var _this11 = this;\n\n this.registerPartial('_thing', '{{t}}');\n\n this.render((0, _abstractTestCase.strip)(_templateObject12), {\n item: { thing: false }\n });\n\n this.assertStableRerender();\n\n this.assertText('Nothing!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'item.thing', 'thing');\n });\n\n this.assertText('thing');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'item', { thing: false });\n });\n\n this.assertText('Nothing!');\n };\n\n _class.prototype['@test partials which contain contextual components'] = function testPartialsWhichContainContextualComponents() {\n var _this12 = this;\n\n this.registerComponent('outer-component', {\n template: '{{yield (hash inner=(component \"inner-component\" name=name))}}'\n });\n\n this.registerComponent('inner-component', {\n template: '{{yield (hash name=name)}}'\n });\n\n this.registerPartial('_some-partial', (0, _abstractTestCase.strip)(_templateObject13));\n\n this.render((0, _abstractTestCase.strip)(_templateObject14), { name: 'Sophie' });\n\n this.assertStableRerender();\n\n this.assertText('inner.name: Sophie');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'name', 'Ben');\n });\n\n this.assertText('inner.name: Ben');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'name', 'Sophie');\n });\n\n this.assertText('inner.name: Sophie');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/partial-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/partial-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/readonly-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-metal'], function (_emberBabel, _testCase, _helpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{readonly}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test {{readonly}} of a path should work'] = function testReadonlyOfAPathShouldWork() {\n var component = void 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n component = this;\n }\n }),\n template: '{{value}}'\n });\n\n this.render('{{foo-bar value=(readonly val)}}', {\n val: 12\n });\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'value', 13);\n });\n this.assert.notOk(component.attrs.value.update);\n\n this.assertText('13', 'local property is updated');\n this.assert.equal((0, _emberMetal.get)(this.context, 'val'), 12, 'upstream attribute is not updated');\n\n // No U-R\n };\n\n _class.prototype['@test {{readonly}} of a string renders correctly'] = function testReadonlyOfAStringRendersCorrectly() {\n var component = void 0;\n\n this.registerComponent('foo-bar', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n component = this;\n }\n }),\n template: '{{value}}'\n });\n\n this.render('{{foo-bar value=(readonly \"12\")}}');\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.assert.notOk(component.attrs.value.update);\n this.assert.strictEqual((0, _emberMetal.get)(component, 'value'), '12');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'value', '13');\n });\n\n this.assertText('13', 'local property is updated');\n this.assert.strictEqual((0, _emberMetal.get)(component, 'value'), '13');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(component, 'value', '12');\n });\n\n this.assertText('12');\n };\n\n _class.prototype['@test {{mut}} of a {{readonly}} mutates only the middle and bottom tiers'] = function testMutOfAReadonlyMutatesOnlyTheMiddleAndBottomTiers() {\n var _this2 = this;\n\n var middle = void 0,\n bottom = void 0;\n\n this.registerComponent('x-bottom', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n bottom = this;\n }\n }),\n template: '{{bar}}'\n });\n\n this.registerComponent('x-middle', {\n ComponentClass: _helpers.Component.extend({\n didInsertElement: function () {\n middle = this;\n }\n }),\n template: '{{foo}} {{x-bottom bar=(mut foo)}}'\n });\n\n this.render('{{x-middle foo=(readonly val)}}', {\n val: 12\n });\n\n this.assertText('12 12');\n\n this.assertStableRerender();\n\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), 12, 'bottom\\'s local bar received the value');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), 12, 'middle\\'s local foo received the value');\n\n this.runTask(function () {\n return bottom.attrs.bar.update(13);\n });\n\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), 13, 'bottom\\'s local bar was updated after set of bottom\\'s bar');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), 13, 'middle\\'s local foo was updated after set of bottom\\'s bar');\n this.assertText('13 13');\n this.assert.equal((0, _emberMetal.get)(this.context, 'val'), 12, 'But context val is not updated');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(bottom, 'bar', 14);\n });\n\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), 14, 'bottom\\'s local bar was updated after set of bottom\\'s bar');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), 14, 'middle\\'s local foo was updated after set of bottom\\'s bar');\n this.assertText('14 14');\n this.assert.equal((0, _emberMetal.get)(this.context, 'val'), 12, 'But context val is not updated');\n\n this.assert.notOk(middle.attrs.foo.update, 'middle\\'s foo attr is not a mutable cell');\n this.runTask(function () {\n return (0, _emberMetal.set)(middle, 'foo', 15);\n });\n\n this.assertText('15 15');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), 15, 'set of middle\\'s foo took effect');\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), 15, 'bottom\\'s local bar was updated after set of middle\\'s foo');\n this.assert.equal((0, _emberMetal.get)(this.context, 'val'), 12, 'Context val remains unchanged');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'val', 10);\n });\n\n this.assertText('10 10');\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), 10, 'bottom\\'s local bar was updated after set of context\\'s val');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), 10, 'middle\\'s local foo was updated after set of context\\'s val');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(bottom, 'bar', undefined);\n });\n\n this.assertText(' ');\n this.assert.equal((0, _emberMetal.get)(bottom, 'bar'), undefined, 'bottom\\'s local bar was updated to a falsy value');\n this.assert.equal((0, _emberMetal.get)(middle, 'foo'), undefined, 'middle\\'s local foo was updated to a falsy value');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'val', 12);\n });\n this.assertText('12 12', 'bottom and middle were both reset');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/readonly-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/readonly-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/render-test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/test-case', 'ember/features'], function (_emberBabel, _emberMetal, _emberRuntime, _testCase, _features) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{render}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test should render given template'] = function testShouldRenderGivenTemplate() {\n var _this2 = this;\n\n this.registerTemplate('home', '

BYE

');\n\n expectDeprecation(function () {\n _this2.render('

HI

{{render \\'home\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIBYE');\n };\n\n _class.prototype['@test uses `controller:basic` as the basis for a generated controller when none exists for specified name'] = function testUsesControllerBasicAsTheBasisForAGeneratedControllerWhenNoneExistsForSpecifiedName() {\n var _this3 = this;\n\n this.owner.register('controller:basic', _emberRuntime.Controller.extend({\n isBasicController: true\n }));\n this.registerTemplate('home', '{{isBasicController}}');\n\n expectDeprecation(function () {\n _this3.render('{{render \\'home\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('true');\n };\n\n _class.prototype['@test generates a controller if none exists'] = function testGeneratesAControllerIfNoneExists() {\n var _this4 = this;\n\n this.registerTemplate('home', '

{{this}}

');\n\n expectDeprecation(function () {\n _this4.render('

HI

{{render \\'home\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HI(generated home controller)');\n };\n\n _class.prototype['@test should use controller with the same name as template if present'] = function testShouldUseControllerWithTheSameNameAsTemplateIfPresent() {\n var _this5 = this;\n\n this.owner.register('controller:home', _emberRuntime.Controller.extend({ name: 'home' }));\n this.registerTemplate('home', '{{name}}

BYE

');\n\n expectDeprecation(function () {\n _this5.render('

HI

{{render \\'home\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIhomeBYE');\n };\n\n _class.prototype['@test should render nested helpers'] = function testShouldRenderNestedHelpers() {\n var _this6 = this;\n\n this.owner.register('controller:home', _emberRuntime.Controller.extend());\n this.owner.register('controller:foo', _emberRuntime.Controller.extend());\n this.owner.register('controller:bar', _emberRuntime.Controller.extend());\n this.owner.register('controller:baz', _emberRuntime.Controller.extend());\n\n this.registerTemplate('home', '

BYE

');\n this.registerTemplate('baz', '

BAZ

');\n\n expectDeprecation(function () {\n _this6.registerTemplate('foo', '

FOO

{{render \\'bar\\'}}');\n _this6.registerTemplate('bar', '

BAR

{{render \\'baz\\'}}');\n _this6.render('

HI

{{render \\'foo\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIFOOBARBAZ');\n };\n\n _class.prototype['@test should have assertion if the template does not exist'] = function testShouldHaveAssertionIfTheTemplateDoesNotExist() {\n var _this7 = this;\n\n this.owner.register('controller:oops', _emberRuntime.Controller.extend());\n\n expectDeprecation(function () {\n expectAssertion(function () {\n _this7.render('

HI

{{render \\'oops\\'}}');\n }, 'You used `{{render \\'oops\\'}}`, but \\'oops\\' can not be found as a template.');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n };\n\n _class.prototype['@test should render given template with the singleton controller as its context'] = function testShouldRenderGivenTemplateWithTheSingletonControllerAsItsContext() {\n var _this8 = this;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend({\n init: function () {\n this.set('title', 'It\\'s Simple Made Easy');\n }\n }));\n this.registerTemplate('post', '

{{title}}

');\n\n expectDeprecation(function () {\n _this8.render('

HI

{{render \\'post\\'}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIIt\\'s Simple Made Easy');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('HIIt\\'s Simple Made Easy');\n\n var controller = this.owner.lookup('controller:post');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(controller, 'title', 'Rails is omakase');\n });\n\n this.assertText('HIRails is omakase');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(controller, 'title', 'It\\'s Simple Made Easy');\n });\n\n this.assertText('HIIt\\'s Simple Made Easy');\n };\n\n _class.prototype['@test should not destroy the singleton controller on teardown'] = function testShouldNotDestroyTheSingletonControllerOnTeardown(assert) {\n var _this9 = this;\n\n var willDestroyFired = 0;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend({\n init: function () {\n this.set('title', 'It\\'s Simple Made Easy');\n },\n willDestroy: function () {\n this._super.apply(this, arguments);\n willDestroyFired++;\n }\n }));\n\n this.registerTemplate('post', '

{{title}}

');\n\n expectDeprecation(function () {\n _this9.render('{{#if showPost}}{{render \\'post\\'}}{{else}}Nothing here{{/if}}', { showPost: false });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'showPost', true);\n });\n\n this.assertText('It\\'s Simple Made Easy');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'showPost', false);\n });\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n };\n\n _class.prototype['@test should render given template with a supplied model'] = function testShouldRenderGivenTemplateWithASuppliedModel() {\n var _this10 = this;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend());\n this.registerTemplate('post', '

{{model.title}}

');\n\n expectDeprecation(function () {\n _this10.render('

HI

{{render \\'post\\' post}}', {\n post: {\n title: 'It\\'s Simple Made Easy'\n }\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIIt\\'s Simple Made Easy');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('HIIt\\'s Simple Made Easy');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'post.title', 'Rails is omakase');\n });\n\n this.assertText('HIRails is omakase');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'post', { title: 'It\\'s Simple Made Easy' });\n });\n\n this.assertText('HIIt\\'s Simple Made Easy');\n };\n\n _class.prototype['@test should destroy the non-singleton controllers on teardown'] = function testShouldDestroyTheNonSingletonControllersOnTeardown(assert) {\n var _this11 = this;\n\n var willDestroyFired = 0;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend({\n willDestroy: function () {\n this._super.apply(this, arguments);\n willDestroyFired++;\n }\n }));\n\n this.registerTemplate('post', '

{{model.title}}

');\n\n expectDeprecation(function () {\n _this11.render('{{#if showPost}}{{render \\'post\\' post}}{{else}}Nothing here{{/if}}', {\n showPost: false,\n post: {\n title: 'It\\'s Simple Made Easy'\n }\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'showPost', true);\n });\n\n this.assertText('It\\'s Simple Made Easy');\n\n assert.strictEqual(willDestroyFired, 0, 'it did not destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'showPost', false);\n });\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 1, 'it did destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'showPost', true);\n });\n\n this.assertText('It\\'s Simple Made Easy');\n\n assert.strictEqual(willDestroyFired, 1, 'it did not destroy the controller');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'showPost', false);\n });\n\n this.assertText('Nothing here');\n\n assert.strictEqual(willDestroyFired, 2, 'it did destroy the controller');\n };\n\n _class.prototype['@test with a supplied model should not fire observers on the controller'] = function testWithASuppliedModelShouldNotFireObserversOnTheController() {\n var _this12 = this;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend());\n this.registerTemplate('post', '

{{model.title}}

');\n\n var postDidChange = 0;\n expectDeprecation(function () {\n _this12.render('

HI

{{render \\'post\\' post}}', {\n postDidChange: (0, _emberMetal.observer)('post', function () {\n postDidChange++;\n }),\n post: {\n title: 'It\\'s Simple Made Easy'\n }\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HIIt\\'s Simple Made Easy');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('HIIt\\'s Simple Made Easy');\n };\n\n _class.prototype['@test should raise an error when a given controller name does not resolve to a controller'] = function testShouldRaiseAnErrorWhenAGivenControllerNameDoesNotResolveToAController() {\n var _this13 = this;\n\n this.registerTemplate('home', '

BYE

');\n this.owner.register('controller:posts', _emberRuntime.Controller.extend());\n\n expectDeprecation(function () {\n expectAssertion(function () {\n _this13.render('

HI

{{render \"home\" controller=\"postss\"}}');\n }, /The controller name you supplied \\'postss\\' did not resolve to a controller./);\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n };\n\n _class.prototype['@test should render with given controller'] = function testShouldRenderWithGivenController(assert) {\n var _this14 = this;\n\n this.registerTemplate('home', '{{uniqueId}}');\n\n var id = 0;\n var model = {};\n\n this.owner.register('controller:posts', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.uniqueId = id++;\n this.set('model', model);\n }\n }));\n\n expectDeprecation(function () {\n _this14.render('{{render \"home\" controller=\"posts\"}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n var renderedController = this.owner.lookup('controller:posts');\n var uniqueId = renderedController.get('uniqueId');\n var renderedModel = renderedController.get('model');\n\n assert.equal(uniqueId, 0);\n assert.equal(renderedModel, model);\n this.assertText('0');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n assert.equal(uniqueId, 0);\n assert.equal(renderedModel, model);\n this.assertText('0');\n };\n\n _class.prototype['@test should render templates with models multiple times'] = function testShouldRenderTemplatesWithModelsMultipleTimes(assert) {\n var _this15 = this;\n\n this.owner.register('controller:post', _emberRuntime.Controller.extend());\n\n this.registerTemplate('post', '

{{model.title}}

');\n expectDeprecation(function () {\n _this15.render('

HI

{{render \\'post\\' post1}} {{render \\'post\\' post2}}', {\n post1: {\n title: 'Me First'\n },\n post2: {\n title: 'Then me'\n }\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n this.assertText('HI Me First Then me');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertText('HI Me First Then me');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'post1.title', 'I am new');\n });\n\n this.assertText('HI I am new Then me');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'post1', { title: 'Me First' });\n });\n\n this.assertText('HI Me First Then me');\n };\n\n _class.prototype['@test should not treat invocations with falsy contexts as context-less'] = function testShouldNotTreatInvocationsWithFalsyContextsAsContextLess(assert) {\n var _this16 = this;\n\n this.registerTemplate('post', '

{{#unless model.zero}}NOTHING{{/unless}}

');\n this.owner.register('controller:post', _emberRuntime.Controller.extend());\n\n expectDeprecation(function () {\n _this16.render('

HI

{{render \\'post\\' zero}} {{render \\'post\\' nonexistent}}', {\n model: {\n zero: false\n }\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n assert.ok(this.$().text().match(/^HI ?NOTHING ?NOTHING$/));\n };\n\n _class.prototype['@test should render templates both with and without models'] = function testShouldRenderTemplatesBothWithAndWithoutModels(assert) {\n var _this17 = this;\n\n this.registerTemplate('post', '

Title:{{model.title}}

');\n this.owner.register('controller:post', _emberRuntime.Controller.extend());\n\n var post = {\n title: 'Rails is omakase'\n };\n expectDeprecation(function () {\n _this17.render('

HI

{{render \\'post\\'}} {{render \\'post\\' post}}', {\n post: post\n });\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n assert.ok(this.$().text().match(/^HI ?Title: ?Title:Rails is omakase$/));\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n assert.ok(this.$().text().match(/^HI ?Title: ?Title:Rails is omakase$/));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'post.title', 'Simple Made Easy');\n });\n\n assert.ok(this.$().text().match(/^HI ?Title: ?Title:Simple Made Easy$/));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'post', { title: 'Rails is omakase' });\n });\n\n assert.ok(this.$().text().match(/^HI ?Title: ?Title:Rails is omakase$/));\n };\n\n _class.prototype['@test works with dot notation'] = function testWorksWithDotNotation() {\n var _this18 = this;\n\n this.registerTemplate('blog.post', '{{uniqueId}}');\n\n var id = 0;\n this.owner.register('controller:blog.post', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.uniqueId = id++;\n }\n }));\n\n expectDeprecation(function () {\n _this18.render('{{render \"blog.post\"}}');\n }, /Please refactor [\\w\\.{\\}\"` ]+ to a component/);\n\n this.assertText('0');\n };\n\n _class.prototype['@test throws an assertion if called with an unquoted template name'] = function testThrowsAnAssertionIfCalledWithAnUnquotedTemplateName() {\n var _this19 = this;\n\n this.registerTemplate('home', '

BYE

');\n\n expectAssertion(function () {\n _this19.render('

HI

{{render home}}');\n }, 'The first argument of {{render}} must be quoted, e.g. {{render \"sidebar\"}}.');\n };\n\n _class.prototype['@test throws an assertion if called with a literal for a model'] = function testThrowsAnAssertionIfCalledWithALiteralForAModel() {\n var _this20 = this;\n\n this.registerTemplate('home', '

BYE

');\n expectAssertion(function () {\n _this20.render('

HI

{{render \"home\" \"model\"}}', {\n model: {\n title: 'Simple Made Easy'\n }\n });\n }, 'The second argument of {{render}} must be a path, e.g. {{render \"post\" post}}.');\n };\n\n _class.prototype['@test should set router as target when action not found on parentController is not found'] = function testShouldSetRouterAsTargetWhenActionNotFoundOnParentControllerIsNotFound(assert) {\n var _this21 = this;\n\n var postController = void 0;\n this.registerTemplate('post', 'post template');\n this.owner.register('controller:post', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n postController = this;\n }\n }));\n\n var routerStub = {\n send: function (actionName) {\n assert.equal(actionName, 'someAction');\n assert.ok(true, 'routerStub#send called');\n }\n };\n\n this.owner.register('router:main', routerStub, { instantiate: false });\n\n expectDeprecation(function () {\n _this21.render('{{render \\'post\\' post1}}');\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n postController.send('someAction');\n };\n\n _class.prototype['@test render helper emits useful backtracking re-render assertion message'] = function testRenderHelperEmitsUsefulBacktrackingReRenderAssertionMessage(assert) {\n var _this22 = this;\n\n this.owner.register('controller:outer', _emberRuntime.Controller.extend());\n this.owner.register('controller:inner', _emberRuntime.Controller.extend({\n propertyWithError: (0, _emberMetal.computed)(function () {\n this.set('model.name', 'this will cause a backtracking error');\n return 'foo';\n })\n }));\n\n var expectedBacktrackingMessage = /modified \"model\\.name\" twice on \\[object Object\\] in a single render\\. It was rendered in \"controller:outer \\(with the render helper\\)\" and modified in \"controller:inner \\(with the render helper\\)\"/;\n\n expectDeprecation(function () {\n var person = { name: 'Ben' };\n\n _this22.registerTemplate('outer', 'Hi {{model.name}} | {{render \\'inner\\' model}}');\n _this22.registerTemplate('inner', 'Hi {{propertyWithError}}');\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n _this22.render('{{render \\'outer\\' person}}', { person: person });\n } else {\n expectAssertion(function () {\n _this22.render('{{render \\'outer\\' person}}', { person: person });\n }, expectedBacktrackingMessage);\n }\n });\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/render-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/render-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/text-area-test', ['ember-babel', 'ember-utils', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/test-helpers', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _emberUtils, _emberMetal, _helpers, _testCase, _testHelpers, _abstractTestCase) {\n 'use strict';\n\n var TextAreaRenderingTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(TextAreaRenderingTest, _RenderingTest);\n\n function TextAreaRenderingTest() {\n (0, _emberBabel.classCallCheck)(this, TextAreaRenderingTest);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.registerComponent('-text-area', { ComponentClass: _helpers.TextArea });\n return _this;\n }\n\n TextAreaRenderingTest.prototype.assertTextArea = function assertTextArea() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n attrs = _ref.attrs,\n value = _ref.value;\n\n var mergedAttrs = (0, _emberUtils.assign)({ 'class': (0, _testHelpers.classes)('ember-view ember-text-area') }, attrs);\n this.assertComponentElement(this.firstChild, { tagName: 'textarea', attrs: mergedAttrs });\n\n if (value) {\n this.assert.strictEqual(value, this.firstChild.value);\n }\n };\n\n TextAreaRenderingTest.prototype.triggerEvent = function triggerEvent(type) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var event = document.createEvent('Events');\n event.initEvent(type, true, true);\n (0, _emberUtils.assign)(event, options);\n\n this.firstChild.dispatchEvent(event);\n };\n\n return TextAreaRenderingTest;\n }(_testCase.RenderingTest);\n\n var BoundTextAreaAttributes = function () {\n function BoundTextAreaAttributes(cases) {\n (0, _emberBabel.classCallCheck)(this, BoundTextAreaAttributes);\n\n this.cases = cases;\n }\n\n BoundTextAreaAttributes.prototype.generate = function generate(_ref2) {\n var _ref3;\n\n var attribute = _ref2.attribute,\n first = _ref2.first,\n second = _ref2.second;\n\n return _ref3 = {}, _ref3['@test ' + attribute] = function (assert) {\n var _attrs,\n _this2 = this,\n _attrs2,\n _attrs3;\n\n this.render('{{textarea ' + attribute + '=value}}', {\n value: first\n });\n this.assertTextArea({ attrs: (_attrs = {}, _attrs[attribute] = first, _attrs) });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'value', second);\n });\n this.assertTextArea({ attrs: (_attrs2 = {}, _attrs2[attribute] = second, _attrs2) });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'value', first);\n });\n this.assertTextArea({ attrs: (_attrs3 = {}, _attrs3[attribute] = first, _attrs3) });\n }, _ref3;\n };\n\n return BoundTextAreaAttributes;\n }();\n\n (0, _abstractTestCase.applyMixins)(TextAreaRenderingTest, new BoundTextAreaAttributes([{ attribute: 'placeholder', first: 'Stuff here', second: 'Other stuff' }, { attribute: 'name', first: 'Stuff here', second: 'Other stuff' }, { attribute: 'title', first: 'Stuff here', second: 'Other stuff' }, { attribute: 'maxlength', first: '1', second: '2' }, { attribute: 'rows', first: '1', second: '2' }, { attribute: 'cols', first: '1', second: '2' }, { attribute: 'tabindex', first: '1', second: '2' }]));\n\n (0, _testCase.moduleFor)('Helpers test: {{textarea}}', function (_TextAreaRenderingTes) {\n (0, _emberBabel.inherits)(_class, _TextAreaRenderingTes);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TextAreaRenderingTes.apply(this, arguments));\n }\n\n _class.prototype['@test Should insert a textarea'] = function testShouldInsertATextarea() {\n this.render('{{textarea}}');\n\n equal(this.$('textarea').length, 1);\n\n this.assertStableRerender();\n };\n\n _class.prototype['@test Should respect disabled'] = function testShouldRespectDisabled() {\n this.render('{{textarea disabled=disabled}}', {\n disabled: true\n });\n ok(this.$('textarea').is(':disabled'));\n };\n\n _class.prototype['@test Should respect disabled when false'] = function testShouldRespectDisabledWhenFalse() {\n this.render('{{textarea disabled=disabled}}', {\n disabled: false\n });\n ok(this.$('textarea').is(':not(:disabled)'));\n };\n\n _class.prototype['@test Should become disabled when the context changes'] = function testShouldBecomeDisabledWhenTheContextChanges() {\n var _this4 = this;\n\n this.render('{{textarea disabled=disabled}}');\n ok(this.$('textarea').is(':not(:disabled)'));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'disabled', true);\n });\n ok(this.$('textarea').is(':disabled'));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'disabled', false);\n });\n ok(this.$('textarea').is(':not(:disabled)'));\n };\n\n _class.prototype['@test Should bind its contents to the specified value'] = function testShouldBindItsContentsToTheSpecifiedValue() {\n var _this5 = this;\n\n this.render('{{textarea value=model.val}}', {\n model: { val: 'A beautiful day in Seattle' }\n });\n this.assertTextArea({ value: 'A beautiful day in Seattle' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.val', 'Auckland');\n });\n this.assertTextArea({ value: 'Auckland' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model', { val: 'A beautiful day in Seattle' });\n });\n this.assertTextArea({ value: 'A beautiful day in Seattle' });\n };\n\n _class.prototype['@test GH#14001 Should correctly handle an empty string bound value'] = function testGH14001ShouldCorrectlyHandleAnEmptyStringBoundValue() {\n var _this6 = this;\n\n this.render('{{textarea value=message}}', { message: '' });\n\n this.assert.strictEqual(this.firstChild.value, '');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'message', 'hello');\n });\n\n this.assert.strictEqual(this.firstChild.value, 'hello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'message', '');\n });\n\n this.assert.strictEqual(this.firstChild.value, '');\n };\n\n _class.prototype['@test should update the value for `cut` / `input` / `change` events'] = function testShouldUpdateTheValueForCutInputChangeEvents() {\n var _this7 = this;\n\n this.render('{{textarea value=model.val}}', {\n model: { val: 'A beautiful day in Seattle' }\n });\n this.assertTextArea({ value: 'A beautiful day in Seattle' });\n\n this.assertStableRerender();\n\n this.runTask(function () {\n _this7.firstChild.value = 'Auckland';\n _this7.triggerEvent('cut');\n });\n this.assertTextArea({ value: 'Auckland' });\n\n this.runTask(function () {\n _this7.firstChild.value = 'Hope';\n _this7.triggerEvent('paste');\n });\n this.assertTextArea({ value: 'Hope' });\n\n this.runTask(function () {\n _this7.firstChild.value = 'Boston';\n _this7.triggerEvent('input');\n });\n this.assertTextArea({ value: 'Boston' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'model', { val: 'A beautiful day in Seattle' });\n });\n this.assertTextArea({ value: 'A beautiful day in Seattle' });\n };\n\n return _class;\n }(TextAreaRenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/text-area-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/text-area-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/unbound-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-metal', 'ember-glimmer/tests/utils/helpers', 'ember-runtime'], function (_emberBabel, _testCase, _abstractTestCase, _emberMetal, _helpers, _emberRuntime) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n \\n '], ['\\n \\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{unbound (surround model.prefix model.value \"bar\")}} {{surround model.prefix model.value \"bar\"}} {{unbound (surround \"bar\" model.value model.suffix)}} {{surround \"bar\" model.value model.suffix}}'], ['\\n {{unbound (surround model.prefix model.value \"bar\")}} {{surround model.prefix model.value \"bar\"}} {{unbound (surround \"bar\" model.value model.suffix)}} {{surround \"bar\" model.value model.suffix}}']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if (unbound model.foo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/if}}\\n {{#unless (unbound model.notfoo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/unless}}'], ['\\n {{#if (unbound model.foo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/if}}\\n {{#unless (unbound model.notfoo)}}\\n {{#if model.bar}}true{{/if}}\\n {{#unless model.bar}}false{{/unless}}\\n {{/unless}}']);\n\n (0, _testCase.moduleFor)('Helpers test: {{unbound}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test should be able to output a property without binding'] = function testShouldBeAbleToOutputAPropertyWithoutBinding() {\n var _this2 = this;\n\n this.render('
{{unbound content.anUnboundString}}
', {\n content: {\n anUnboundString: 'No spans here, son.'\n }\n });\n\n this.assertText('No spans here, son.');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertText('No spans here, son.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'content.anUnboundString', 'HEY');\n });\n\n this.assertText('No spans here, son.');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'content', {\n anUnboundString: 'No spans here, son.'\n });\n });\n\n this.assertText('No spans here, son.');\n };\n\n _class.prototype['@test should be able to use unbound helper in #each helper'] = function testShouldBeAbleToUseUnboundHelperInEachHelper() {\n var _this3 = this;\n\n this.render('
    {{#each items as |item|}}
  • {{unbound item}}
  • {{/each}}
', {\n items: (0, _emberRuntime.A)(['a', 'b', 'c', 1, 2, 3])\n });\n\n this.assertText('abc123');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('abc123');\n };\n\n _class.prototype['@test should be able to use unbound helper in #each helper (with objects)'] = function testShouldBeAbleToUseUnboundHelperInEachHelperWithObjects() {\n var _this4 = this;\n\n this.render('
    {{#each items as |item|}}
  • {{unbound item.wham}}
  • {{/each}}
', {\n items: (0, _emberRuntime.A)([{ wham: 'bam' }, { wham: 1 }])\n });\n\n this.assertText('bam1');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('bam1');\n\n this.runTask(function () {\n return _this4.context.items.setEach('wham', 'HEY');\n });\n\n this.assertText('bam1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'items', (0, _emberRuntime.A)([{ wham: 'bam' }, { wham: 1 }]));\n });\n\n this.assertText('bam1');\n };\n\n _class.prototype['@test it should assert unbound cannot be called with multiple arguments'] = function testItShouldAssertUnboundCannotBeCalledWithMultipleArguments() {\n var _this5 = this;\n\n var willThrow = function () {\n _this5.render('{{unbound foo bar}}', {\n foo: 'BORK',\n bar: 'BLOOP'\n });\n };\n\n expectAssertion(willThrow, /unbound helper cannot be called with multiple params or hash params/);\n };\n\n _class.prototype['@test should render on attributes'] = function testShouldRenderOnAttributes() {\n var _this6 = this;\n\n this.render('', {\n model: { foo: 'BORK' }\n });\n\n this.assertHTML('');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertHTML('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'model.foo', 'OOF');\n });\n\n this.assertHTML('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'model', { foo: 'BORK' });\n });\n\n this.assertHTML('');\n };\n\n _class.prototype['@test should property escape unsafe hrefs'] = function testShouldPropertyEscapeUnsafeHrefs() {\n var _this7 = this;\n\n var unsafeUrls = (0, _emberRuntime.A)([{\n name: 'Bob',\n url: 'javascript:bob-is-cool' // jshint ignore:line\n }, {\n name: 'James',\n url: 'vbscript:james-is-cool' // jshint ignore:line\n }, {\n name: 'Richard',\n url: 'javascript:richard-is-cool' // jshint ignore:line\n }]);\n\n this.render('', {\n people: unsafeUrls\n });\n\n var escapedHtml = (0, _abstractTestCase.strip)(_templateObject);\n\n this.assertHTML(escapedHtml);\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertHTML(escapedHtml);\n\n this.runTask(function () {\n return _this7.context.people.setEach('url', 'http://google.com');\n });\n\n this.assertHTML(escapedHtml);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'people', unsafeUrls);\n });\n\n this.assertHTML(escapedHtml);\n };\n\n _class.prototype['@skip helper form updates on parent re-render'] = function skipHelperFormUpdatesOnParentReRender() {\n var _this8 = this;\n\n this.render('{{unbound foo}}', {\n foo: 'BORK'\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', 'OOF');\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('OOF');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', '');\n });\n\n this.assertText('OOF');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'foo', 'BORK');\n });\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('BORK');\n };\n\n _class.prototype['@test sexpr form does not update no matter what'] = function testSexprFormDoesNotUpdateNoMatterWhat() {\n var _this9 = this;\n\n this.registerHelper('capitalize', function (args) {\n return args[0].toUpperCase();\n });\n\n this.render('{{capitalize (unbound foo)}}', {\n foo: 'bork'\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'foo', 'oof');\n _this9.rerender();\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'foo', 'blip');\n });\n\n this.assertText('BORK');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'foo', 'bork');\n _this9.rerender();\n });\n\n this.assertText('BORK');\n };\n\n _class.prototype['@test sexpr in helper form does not update on parent re-render'] = function testSexprInHelperFormDoesNotUpdateOnParentReRender() {\n var _this10 = this;\n\n this.registerHelper('capitalize', function (params) {\n return params[0].toUpperCase();\n });\n\n this.registerHelper('doublize', function (params) {\n return params[0] + ' ' + params[0];\n });\n\n this.render('{{capitalize (unbound (doublize foo))}}', {\n foo: 'bork'\n });\n\n this.assertText('BORK BORK');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('BORK BORK');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this10.context, 'foo', 'oof');\n _this10.rerender();\n });\n\n this.assertText('BORK BORK');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'foo', 'blip');\n });\n\n this.assertText('BORK BORK');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this10.context, 'foo', 'bork');\n _this10.rerender();\n });\n\n this.assertText('BORK BORK');\n };\n\n _class.prototype['@test should be able to render an unbound helper invocation'] = function testShouldBeAbleToRenderAnUnboundHelperInvocation() {\n var _this11 = this;\n\n this.registerHelper('repeat', function (_ref, _ref2) {\n var value = _ref[0];\n var count = _ref2.count;\n\n var a = [];\n while (a.length < count) {\n a.push(value);\n }\n return a.join('');\n });\n\n this.render('{{unbound (repeat foo count=bar)}} {{repeat foo count=bar}} {{unbound (repeat foo count=2)}} {{repeat foo count=4}}', {\n foo: 'X',\n bar: 5\n });\n\n this.assertText('XXXXX XXXXX XX XXXX');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('XXXXX XXXXX XX XXXX');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'bar', 1);\n });\n\n this.assertText('XXXXX X XX XXXX');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'bar', 5);\n });\n\n this.assertText('XXXXX XXXXX XX XXXX');\n };\n\n _class.prototype['@test should be able to render an bound helper invocation mixed with static values'] = function testShouldBeAbleToRenderAnBoundHelperInvocationMixedWithStaticValues() {\n var _this12 = this;\n\n this.registerHelper('surround', function (_ref3) {\n var prefix = _ref3[0],\n value = _ref3[1],\n suffix = _ref3[2];\n return prefix + '-' + value + '-' + suffix;\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n model: {\n prefix: 'before',\n value: 'core',\n suffix: 'after'\n }\n });\n\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n\n this.runTask(function () {\n (0, _emberMetal.setProperties)(_this12.context.model, {\n prefix: 'beforeChanged',\n value: 'coreChanged',\n suffix: 'afterChanged'\n });\n });\n\n this.assertText('before-core-bar beforeChanged-coreChanged-bar bar-core-after bar-coreChanged-afterChanged');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this12.context, 'model', {\n prefix: 'before',\n value: 'core',\n suffix: 'after'\n });\n });\n\n this.assertText('before-core-bar before-core-bar bar-core-after bar-core-after');\n };\n\n _class.prototype['@test should be able to render unbound forms of multi-arg helpers'] = function testShouldBeAbleToRenderUnboundFormsOfMultiArgHelpers() {\n var _this13 = this;\n\n this.registerHelper('fauxconcat', function (params) {\n return params.join('');\n });\n\n this.render('{{fauxconcat model.foo model.bar model.bing}} {{unbound (fauxconcat model.foo model.bar model.bing)}}', {\n model: {\n foo: 'a',\n bar: 'b',\n bing: 'c'\n }\n });\n\n this.assertText('abc abc');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('abc abc');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'model.bar', 'X');\n });\n\n this.assertText('aXc abc');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'model', {\n foo: 'a',\n bar: 'b',\n bing: 'c'\n });\n });\n\n this.assertText('abc abc');\n };\n\n _class.prototype['@test should be able to render an unbound helper invocation for helpers with dependent keys'] = function testShouldBeAbleToRenderAnUnboundHelperInvocationForHelpersWithDependentKeys() {\n var _this14 = this;\n\n this.registerHelper('capitalizeName', {\n destroy: function () {\n this.removeObserver('value.firstName');\n this._super.apply(this, arguments);\n },\n compute: function (_ref4) {\n var value = _ref4[0];\n\n if (this.get('value')) {\n this.removeObserver('value.firstName');\n }\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n return value ? (0, _emberMetal.get)(value, 'firstName').toUpperCase() : '';\n }\n });\n\n this.registerHelper('concatNames', {\n destroy: function () {\n this.teardown();\n this._super.apply(this, arguments);\n },\n teardown: function () {\n this.removeObserver('value.firstName');\n this.removeObserver('value.lastName');\n },\n compute: function (_ref5) {\n var value = _ref5[0];\n\n if (this.get('value')) {\n this.teardown();\n }\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n this.addObserver('value.lastName', this, this.recompute);\n return (value ? (0, _emberMetal.get)(value, 'firstName') : '') + (value ? (0, _emberMetal.get)(value, 'lastName') : '');\n }\n });\n\n this.render('{{capitalizeName person}} {{unbound (capitalizeName person)}} {{concatNames person}} {{unbound (concatNames person)}}', {\n person: {\n firstName: 'shooby',\n lastName: 'taylor'\n }\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'person.firstName', 'sally');\n });\n\n this.assertText('SALLY SHOOBY sallytaylor shoobytaylor');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'person', {\n firstName: 'shooby',\n lastName: 'taylor'\n });\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n };\n\n _class.prototype['@test should be able to render an unbound helper invocation in #each helper'] = function testShouldBeAbleToRenderAnUnboundHelperInvocationInEachHelper() {\n var _this15 = this;\n\n this.registerHelper('capitalize', function (params) {\n return params[0].toUpperCase();\n });\n\n this.render('{{#each people as |person|}}{{capitalize person.firstName}} {{unbound (capitalize person.firstName)}}{{/each}}', {\n people: (0, _emberRuntime.A)([{\n firstName: 'shooby',\n lastName: 'taylor'\n }, {\n firstName: 'cindy',\n lastName: 'taylor'\n }])\n });\n\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n\n this.runTask(function () {\n return _this15.context.people.setEach('firstName', 'chad');\n });\n\n this.assertText('CHAD SHOOBYCHAD CINDY');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'people', (0, _emberRuntime.A)([{\n firstName: 'shooby',\n lastName: 'taylor'\n }, {\n firstName: 'cindy',\n lastName: 'taylor'\n }]));\n });\n\n this.assertText('SHOOBY SHOOBYCINDY CINDY');\n };\n\n _class.prototype['@test should be able to render an unbound helper invocation with bound hash options'] = function testShouldBeAbleToRenderAnUnboundHelperInvocationWithBoundHashOptions() {\n var _this16 = this;\n\n this.registerHelper('capitalizeName', {\n destroy: function () {\n this.removeObserver('value.firstName');\n this._super.apply(this, arguments);\n },\n compute: function (_ref6) {\n var value = _ref6[0];\n\n if (this.get('value')) {\n this.removeObserver('value.firstName');\n }\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n return value ? (0, _emberMetal.get)(value, 'firstName').toUpperCase() : '';\n }\n });\n\n this.registerHelper('concatNames', {\n destroy: function () {\n this.teardown();\n this._super.apply(this, arguments);\n },\n teardown: function () {\n this.removeObserver('value.firstName');\n this.removeObserver('value.lastName');\n },\n compute: function (_ref7) {\n var value = _ref7[0];\n\n if (this.get('value')) {\n this.teardown();\n }\n this.set('value', value);\n this.addObserver('value.firstName', this, this.recompute);\n this.addObserver('value.lastName', this, this.recompute);\n return (value ? (0, _emberMetal.get)(value, 'firstName') : '') + (value ? (0, _emberMetal.get)(value, 'lastName') : '');\n }\n });\n\n this.render('{{capitalizeName person}} {{unbound (capitalizeName person)}} {{concatNames person}} {{unbound (concatNames person)}}', {\n person: {\n firstName: 'shooby',\n lastName: 'taylor'\n }\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'person.firstName', 'sally');\n });\n\n this.assertText('SALLY SHOOBY sallytaylor shoobytaylor');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'person', {\n firstName: 'shooby',\n lastName: 'taylor'\n });\n });\n\n this.assertText('SHOOBY SHOOBY shoobytaylor shoobytaylor');\n };\n\n _class.prototype['@test should be able to render bound form of a helper inside unbound form of same helper'] = function testShouldBeAbleToRenderBoundFormOfAHelperInsideUnboundFormOfSameHelper() {\n var _this17 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject3), {\n model: {\n foo: true,\n notfoo: false,\n bar: true\n }\n });\n\n this.assertText('truetrue');\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertText('truetrue');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'model.bar', false);\n });\n\n this.assertText('falsefalse');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this17.context, 'model', {\n foo: true,\n notfoo: false,\n bar: true\n });\n });\n\n this.assertText('truetrue');\n };\n\n _class.prototype['@test yielding unbound does not update'] = function testYieldingUnboundDoesNotUpdate() {\n var _this18 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n fooBarInstance = this;\n },\n\n model: { foo: 'bork' }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{yield (unbound model.foo)}}'\n });\n\n this.render('{{#foo-bar as |value|}}{{value}}{{/foo-bar}}');\n\n this.assertText('bork');\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertText('bork');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model.foo', 'oof');\n });\n\n this.assertText('bork');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model', { foo: 'bork' });\n });\n\n this.assertText('bork');\n };\n\n _class.prototype['@test yielding unbound hash does not update'] = function testYieldingUnboundHashDoesNotUpdate() {\n var _this19 = this;\n\n var fooBarInstance = void 0;\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n fooBarInstance = this;\n },\n\n model: { foo: 'bork' }\n });\n\n this.registerComponent('foo-bar', {\n ComponentClass: FooBarComponent,\n template: '{{yield (unbound (hash foo=model.foo))}}'\n });\n\n this.render('{{#foo-bar as |value|}}{{value.foo}}{{/foo-bar}}');\n\n this.assertText('bork');\n\n this.runTask(function () {\n return _this19.rerender();\n });\n\n this.assertText('bork');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model.foo', 'oof');\n });\n\n this.assertText('bork');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(fooBarInstance, 'model', { foo: 'bork' });\n });\n\n this.assertText('bork');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/unbound-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/unbound-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/helpers/yield-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _testCase, _emberMetal, _helpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Helpers test: {{yield}} helper', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test can yield to block'] = function testCanYieldToBlock() {\n var _this2 = this;\n\n this.registerComponent('yield-comp', { template: '[In layout:] {{yield}}' });\n\n this.render('{{#yield-comp}}[In Block:] {{object.title}}{{/yield-comp}}', { object: { title: 'Seattle' } });\n this.assertText('[In layout:] [In Block:] Seattle');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'object.title', 'Vancouver');\n });\n this.assertText('[In layout:] [In Block:] Vancouver');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'object', { title: 'Seattle' });\n });\n this.assertText('[In layout:] [In Block:] Seattle');\n };\n\n _class.prototype['@test templates should yield to block inside a nested component'] = function testTemplatesShouldYieldToBlockInsideANestedComponent() {\n var _this3 = this;\n\n this.registerComponent('outer-comp', { template: '
[In layout:] {{yield}}
' });\n this.registerComponent('inner-comp', { template: '{{#outer-comp}}[In Block:] {{object.title}}{{/outer-comp}}' });\n\n this.render('{{inner-comp object=object}}', { object: { title: 'Seattle' } });\n this.assertText('[In layout:] [In Block:] Seattle');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'object.title', 'Vancouver');\n });\n this.assertText('[In layout:] [In Block:] Vancouver');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'object', { title: 'Seattle' });\n });\n this.assertText('[In layout:] [In Block:] Seattle');\n };\n\n _class.prototype['@test templates should yield to block, when the yield is embedded in a each helper'] = function testTemplatesShouldYieldToBlockWhenTheYieldIsEmbeddedInAEachHelper() {\n var _this4 = this;\n\n var list = [1, 2, 3];\n\n this.registerComponent('outer-comp', { template: '{{#each list as |item|}}{{yield}}{{/each}}' });\n\n this.render('{{#outer-comp list=list}}Hello{{/outer-comp}}', { list: list });\n this.assertText('HelloHelloHello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'list', [4, 5]);\n });\n this.assertText('HelloHello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'list', list);\n });\n this.assertText('HelloHelloHello');\n };\n\n _class.prototype['@test templates should yield to block, when the yield is embedded in a if helper'] = function testTemplatesShouldYieldToBlockWhenTheYieldIsEmbeddedInAIfHelper() {\n var _this5 = this;\n\n this.registerComponent('outer-comp', { template: '{{#if boolean}}{{yield}}{{/if}}' });\n\n this.render('{{#outer-comp boolean=boolean}}Hello{{/outer-comp}}', { boolean: true });\n this.assertText('Hello');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'boolean', false);\n });\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'boolean', true);\n });\n this.assertText('Hello');\n };\n\n _class.prototype['@test simple curlies inside of a yielded clock should work when the yield is nested inside of another view'] = function testSimpleCurliesInsideOfAYieldedClockShouldWorkWhenTheYieldIsNestedInsideOfAnotherView() {\n var _this6 = this;\n\n this.registerComponent('kiwi-comp', { template: '{{#if falsy}}{{else}}{{yield}}{{/if}}' });\n\n this.render('{{#kiwi-comp}}{{text}}{{/kiwi-comp}}', { text: 'ohai' });\n this.assertText('ohai');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'text', 'portland');\n });\n this.assertText('portland');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'text', 'ohai');\n });\n this.assertText('ohai');\n };\n\n _class.prototype['@test nested simple curlies inside of a yielded block should work when the yield is nested inside of another view'] = function testNestedSimpleCurliesInsideOfAYieldedBlockShouldWorkWhenTheYieldIsNestedInsideOfAnotherView() {\n var _this7 = this;\n\n this.registerComponent('parent-comp', { template: '{{#if falsy}}{{else}}{{yield}}{{/if}}' });\n this.registerComponent('child-comp', { template: '{{#if falsy}}{{else}}{{text}}{{/if}}' });\n\n this.render('{{#parent-comp}}{{child-comp text=text}}{{/parent-comp}}', { text: 'ohai' });\n this.assertText('ohai');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'text', 'portland');\n });\n this.assertText('portland');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'text', 'ohai');\n });\n this.assertText('ohai');\n };\n\n _class.prototype['@test yielding to a non-existent block is not an error'] = function testYieldingToANonExistentBlockIsNotAnError() {\n var _this8 = this;\n\n this.registerComponent('yielding-comp', { template: 'Hello:{{yield}}' });\n this.registerComponent('outer-comp', { template: '{{yielding-comp}} {{title}}' });\n\n this.render('{{outer-comp title=title}}', { title: 'Mr. Selden' });\n\n this.assertText('Hello: Mr. Selden');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'title', 'Mr. Chag');\n });\n this.assertText('Hello: Mr. Chag');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'title', 'Mr. Selden');\n });\n this.assertText('Hello: Mr. Selden');\n };\n\n _class.prototype['@test yield uses the original context'] = function testYieldUsesTheOriginalContext() {\n var _this9 = this;\n\n var KiwiCompComponent = _helpers.Component.extend({ boundText: 'Inner' });\n\n this.registerComponent('kiwi-comp', { ComponentClass: KiwiCompComponent, template: '

{{boundText}}

{{yield}}

' });\n\n this.render('{{#kiwi-comp}}{{boundText}}{{/kiwi-comp}}', { boundText: 'Original' });\n this.assertText('InnerOriginal');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'boundText', 'Otherworld');\n });\n this.assertText('InnerOtherworld');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'boundText', 'Original');\n });\n this.assertText('InnerOriginal');\n };\n\n _class.prototype['@test outer block param doesn\\'t mask inner component property'] = function testOuterBlockParamDoesnTMaskInnerComponentProperty() {\n var _this10 = this;\n\n var KiwiCompComponent = _helpers.Component.extend({ boundText: 'Inner' });\n\n this.registerComponent('kiwi-comp', { ComponentClass: KiwiCompComponent, template: '

{{boundText}}

{{yield}}

' });\n\n this.render('{{#with boundText as |item|}}{{#kiwi-comp}}{{item}}{{/kiwi-comp}}{{/with}}', { boundText: 'Outer' });\n this.assertText('InnerOuter');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'boundText', 'Otherworld');\n });\n this.assertText('InnerOtherworld');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'boundText', 'Outer');\n });\n this.assertText('InnerOuter');\n };\n\n _class.prototype['@test inner block param doesn\\'t mask yield property'] = function testInnerBlockParamDoesnTMaskYieldProperty() {\n var _this11 = this;\n\n var KiwiCompComponent = _helpers.Component.extend({ boundText: 'Inner' });\n\n this.registerComponent('kiwi-comp', { ComponentClass: KiwiCompComponent, template: '{{#with boundText as |item|}}

{{item}}

{{yield}}

{{/with}}' });\n\n this.render('{{#kiwi-comp}}{{item}}{{/kiwi-comp}}', { item: 'Outer' });\n this.assertText('InnerOuter');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'item', 'Otherworld');\n });\n this.assertText('InnerOtherworld');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'item', 'Outer');\n });\n this.assertText('InnerOuter');\n };\n\n _class.prototype['@test can bind a block param to a component and use it in yield'] = function testCanBindABlockParamToAComponentAndUseItInYield() {\n var _this12 = this;\n\n this.registerComponent('kiwi-comp', { template: '

{{content}}

{{yield}}

' });\n\n this.render('{{#with boundText as |item|}}{{#kiwi-comp content=item}}{{item}}{{/kiwi-comp}}{{/with}}', { boundText: 'Outer' });\n this.assertText('OuterOuter');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'boundText', 'Update');\n });\n this.assertText('UpdateUpdate');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'boundText', 'Outer');\n });\n this.assertText('OuterOuter');\n };\n\n _class.prototype['@test yield should not introduce a view'] = function testYieldShouldNotIntroduceAView() {\n var ParentCompComponent = _helpers.Component.extend({ isParentComponent: true });\n\n var ChildCompComponent = _helpers.Component.extend({\n didReceiveAttrs: function () {\n this._super();\n var parentView = this.get('parentView');\n\n ok(parentView.get('isParentComponent'));\n }\n });\n\n this.registerComponent('parent-comp', { ComponentClass: ParentCompComponent, template: '{{yield}}' });\n this.registerComponent('child-comp', { ComponentClass: ChildCompComponent });\n\n this.render('{{#parent-comp}}{{child-comp}}{{/parent-comp}}');\n };\n\n _class.prototype['@test yield with nested components (#3220)'] = function testYieldWithNestedComponents3220() {\n var _this13 = this;\n\n this.registerComponent('inner-component', { template: '{{yield}}' });\n this.registerComponent('outer-component', { template: '{{#inner-component}}{{yield}}{{/inner-component}}' });\n\n this.render('{{#outer-component}}Hello {{boundText}}{{/outer-component}}', { boundText: 'world' });\n this.assertText('Hello world');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'boundText', 'update');\n });\n this.assertText('Hello update');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this13.context, 'boundText', 'world');\n });\n this.assertText('Hello world');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/helpers/yield-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/helpers/yield-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/input-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal'], function (_emberBabel, _testCase, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Input element tests', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype.runAttributeTest = function runAttributeTest(attributeName, values) {\n var _this2 = this;\n\n var template = '';\n this.render(template, { value: values[0] });\n this.assertAttributeHasValue(attributeName, values[0], attributeName + ' is set on initial render');\n\n this.runTask(function () {\n return _this2.rerender();\n });\n this.assertAttributeHasValue(attributeName, values[0], attributeName + ' is set on noop rerender');\n\n this.setComponentValue(values[1]);\n this.assertAttributeHasValue(attributeName, values[1], attributeName + ' is set on rerender');\n\n this.setComponentValue(values[0]);\n this.assertAttributeHasValue(attributeName, values[0], attributeName + ' can be set back to the initial value');\n };\n\n _class.prototype.runPropertyTest = function runPropertyTest(propertyName, values) {\n var _this3 = this;\n\n var attributeName = propertyName;\n var template = '';\n this.render(template, { value: values[0] });\n this.assertPropertyHasValue(propertyName, values[0], propertyName + ' is set on initial render');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n this.assertPropertyHasValue(propertyName, values[0], propertyName + ' is set on noop rerender');\n\n this.setComponentValue(values[1]);\n this.assertPropertyHasValue(propertyName, values[1], propertyName + ' is set on rerender');\n\n this.setComponentValue(values[0]);\n this.assertPropertyHasValue(propertyName, values[0], propertyName + ' can be set back to the initial value');\n };\n\n _class.prototype.runFalsyValueProperty = function runFalsyValueProperty(values) {\n var _this4 = this;\n\n var value = 'value';\n var template = '';\n this.render(template, { value: values[0] });\n this.assertPropertyHasValue(value, '', value + ' is set on initial render');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n this.assertPropertyHasValue(value, '', value + ' is set on noop rerender');\n this.setComponentValue(values[1]);\n\n this.assertPropertyHasValue(value, values[1], value + ' is set on rerender');\n\n this.setComponentValue(values[0]);\n this.assertPropertyHasValue(value, '', value + ' can be set back to the initial value');\n };\n\n _class.prototype['@test input disabled attribute'] = function testInputDisabledAttribute() {\n var _this5 = this;\n\n var model = { model: { value: false } };\n\n this.render('', model);\n\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n\n this.runTask(function () {\n return _this5.context.set('model.value', true);\n });\n\n this.assert.equal(this.$inputElement().prop('disabled'), true);\n this.assertHTML(''); // Note the DOM output is \n\n this.runTask(function () {\n return _this5.context.set('model.value', 'wat');\n });\n\n this.assert.equal(this.$inputElement().prop('disabled'), true);\n this.assertHTML(''); // Note the DOM output is \n\n this.runTask(function () {\n return _this5.context.set('model', { value: false });\n });\n\n this.assert.equal(this.$inputElement().prop('disabled'), false);\n this.assertHTML('');\n };\n\n _class.prototype['@test input value attribute'] = function testInputValueAttribute() {\n this.runPropertyTest('value', ['foo', 'bar']);\n };\n\n _class.prototype['@test input placeholder attribute'] = function testInputPlaceholderAttribute() {\n this.runAttributeTest('placeholder', ['foo', 'bar']);\n };\n\n _class.prototype['@test input name attribute'] = function testInputNameAttribute() {\n this.runAttributeTest('name', ['nam', 'name']);\n };\n\n _class.prototype['@test input maxlength attribute'] = function testInputMaxlengthAttribute() {\n this.runAttributeTest('maxlength', [2, 3]);\n };\n\n _class.prototype['@test input size attribute'] = function testInputSizeAttribute() {\n this.runAttributeTest('size', [2, 3]);\n };\n\n _class.prototype['@test input tabindex attribute'] = function testInputTabindexAttribute() {\n this.runAttributeTest('tabindex', [2, 3]);\n };\n\n _class.prototype['@test null input value'] = function testNullInputValue() {\n this.runFalsyValueProperty([null, 'hello']);\n };\n\n _class.prototype['@test undefined input value'] = function testUndefinedInputValue() {\n this.runFalsyValueProperty([undefined, 'hello']);\n };\n\n _class.prototype['@test undefined `toString` method as input value'] = function testUndefinedToStringMethodAsInputValue() {\n this.runFalsyValueProperty([Object.create(null), 'hello']);\n };\n\n _class.prototype['@test cursor position is not lost when updating content'] = function testCursorPositionIsNotLostWhenUpdatingContent() {\n var template = '';\n this.render(template, { value: 'hola' });\n\n this.setDOMValue('hello');\n this.setSelectionRange(1, 3);\n\n this.setComponentValue('hello');\n\n this.assertSelectionRange(1, 3);\n\n // Note: We should eventually get around to testing reseting, however\n // browsers handle `selectionStart` and `selectionEnd` differently\n // when are synthetically testing movement of the cursor.\n };\n\n _class.prototype['@test input can be updated multiple times'] = function testInputCanBeUpdatedMultipleTimes() {\n var template = '';\n this.render(template, { value: 'hola' });\n\n this.assertValue('hola', 'Value is initialised');\n\n this.setComponentValue('');\n this.assertValue('', 'Value is set in the DOM');\n\n this.setDOMValue('hola');\n this.setComponentValue('hola');\n this.assertValue('hola', 'Value is updated the first time');\n\n this.setComponentValue('');\n this.assertValue('', 'Value is updated the second time');\n };\n\n _class.prototype['@test DOM is SSOT if value is set'] = function testDOMIsSSOTIfValueIsSet() {\n var template = '';\n this.render(template, { value: 'hola' });\n\n this.assertValue('hola', 'Value is initialised');\n\n this.setComponentValue('hello');\n\n this.assertValue('hello', 'Value is initialised');\n\n this.setDOMValue('hola');\n\n this.assertValue('hola', 'DOM is used');\n\n this.setComponentValue('bye');\n\n this.assertValue('bye', 'Value is used');\n\n // Simulates setting the input to the same value as it already is which won't cause a rerender\n\n this.setDOMValue('hola');\n\n this.assertValue('hola', 'DOM is used');\n\n this.setComponentValue('hola');\n\n this.assertValue('hola', 'Value is used');\n };\n\n _class.prototype.setDOMValue = function setDOMValue(value) {\n this.inputElement().value = value;\n };\n\n _class.prototype.setComponentValue = function setComponentValue(value) {\n var _this6 = this;\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'value', value);\n });\n };\n\n _class.prototype.setSelectionRange = function setSelectionRange(start, end) {\n this.inputElement().selectionStart = start;\n this.inputElement().selectionEnd = end;\n };\n\n _class.prototype.inputElement = function inputElement() {\n return this.$inputElement()[0];\n };\n\n _class.prototype.$inputElement = function $inputElement() {\n return this.$('input');\n };\n\n _class.prototype.assertValue = function assertValue(value, message) {\n this.assertPropertyHasValue('value', value, message);\n };\n\n _class.prototype.assertAttributeHasValue = function assertAttributeHasValue(attribute, value, message) {\n this.assert.equal(this.$inputElement().attr(attribute), value, attribute + ' ' + message);\n };\n\n _class.prototype.assertPropertyHasValue = function assertPropertyHasValue(property, value, message) {\n this.assert.equal(this.$inputElement().prop(property), value, property + ' ' + message);\n };\n\n _class.prototype.assertSelectionRange = function assertSelectionRange(start, end) {\n this.assert.equal(this.inputElement().selectionStart, start);\n this.assert.equal(this.inputElement().selectionEnd, end);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/input-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/input-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/mount-test', ['ember-babel', 'ember-utils', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers', 'ember-runtime', 'ember-metal', 'ember-application', 'ember/features'], function (_emberBabel, _emberUtils, _testCase, _helpers, _emberRuntime, _emberMetal, _emberApplication, _features) {\n 'use strict';\n\n if (_features.EMBER_ENGINES_MOUNT_PARAMS) {\n (0, _testCase.moduleFor)('{{mount}} single param assertion', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test it asserts that only a single param is passed'] = function testItAssertsThatOnlyASingleParamIsPassed() {\n var _this2 = this;\n\n expectAssertion(function () {\n _this2.render('{{mount \"chat\" \"foo\"}}');\n }, /You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}./i);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n } else {\n (0, _testCase.moduleFor)('{{mount}} single param assertion', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class2, _RenderingTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class2.prototype['@test it asserts that only a single param is passed'] = function testItAssertsThatOnlyASingleParamIsPassed() {\n var _this4 = this;\n\n expectAssertion(function () {\n _this4.render('{{mount \"chat\" \"foo\"}}');\n }, /You can only pass a single argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}./i);\n };\n\n return _class2;\n }(_testCase.RenderingTest));\n }\n\n (0, _testCase.moduleFor)('{{mount}} assertions', function (_RenderingTest3) {\n (0, _emberBabel.inherits)(_class3, _RenderingTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.apply(this, arguments));\n }\n\n _class3.prototype['@test it asserts when an invalid engine name is provided'] = function testItAssertsWhenAnInvalidEngineNameIsProvided() {\n var _this6 = this;\n\n expectAssertion(function () {\n _this6.render('{{mount engineName}}', { engineName: {} });\n }, /Invalid engine name '\\[object Object\\]' specified, engine name must be either a string, null or undefined./i);\n };\n\n _class3.prototype['@test it asserts that the specified engine is registered'] = function testItAssertsThatTheSpecifiedEngineIsRegistered() {\n var _this7 = this;\n\n expectAssertion(function () {\n _this7.render('{{mount \"chat\"}}');\n }, /You used `{{mount 'chat'}}`, but the engine 'chat' can not be found./i);\n };\n\n return _class3;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('{{mount}} test', function (_ApplicationTest) {\n (0, _emberBabel.inherits)(_class4, _ApplicationTest);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n\n var _this8 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest.call(this));\n\n var engineRegistrations = _this8.engineRegistrations = {};\n\n _this8.add('engine:chat', _emberApplication.Engine.extend({\n router: null,\n\n init: function () {\n var _this9 = this;\n\n this._super.apply(this, arguments);\n\n Object.keys(engineRegistrations).forEach(function (fullName) {\n _this9.register(fullName, engineRegistrations[fullName]);\n });\n }\n }));\n\n _this8.addTemplate('index', '{{mount \"chat\"}}');\n return _this8;\n }\n\n _class4.prototype['@test it boots an engine, instantiates its application controller, and renders its application template'] = function testItBootsAnEngineInstantiatesItsApplicationControllerAndRendersItsApplicationTemplate(assert) {\n var _this10 = this;\n\n this.engineRegistrations['template:application'] = (0, _helpers.compile)('

Chat here, {{username}}

', { moduleName: 'application' });\n\n var controller = void 0;\n\n this.engineRegistrations['controller:application'] = _emberRuntime.Controller.extend({\n username: 'dgeb',\n\n init: function () {\n this._super();\n controller = this;\n }\n });\n\n return this.visit('/').then(function () {\n assert.ok(controller, 'engine\\'s application controller has been instantiated');\n\n var engineInstance = (0, _emberUtils.getOwner)(controller);\n assert.strictEqual((0, _emberApplication.getEngineParent)(engineInstance), _this10.applicationInstance, 'engine instance has the application instance as its parent');\n\n _this10.assertComponentElement(_this10.firstChild, { content: '

Chat here, dgeb

' });\n\n _this10.runTask(function () {\n return (0, _emberMetal.set)(controller, 'username', 'chancancode');\n });\n\n _this10.assertComponentElement(_this10.firstChild, { content: '

Chat here, chancancode

' });\n\n _this10.runTask(function () {\n return (0, _emberMetal.set)(controller, 'username', 'dgeb');\n });\n\n _this10.assertComponentElement(_this10.firstChild, { content: '

Chat here, dgeb

' });\n });\n };\n\n _class4.prototype['@test it emits a useful backtracking re-render assertion message'] = function testItEmitsAUsefulBacktrackingReRenderAssertionMessage(assert) {\n var _this11 = this;\n\n this.router.map(function () {\n this.route('route-with-mount');\n });\n\n this.addTemplate('index', '');\n this.addTemplate('route-with-mount', '{{mount \"chat\"}}');\n\n this.engineRegistrations['template:application'] = (0, _helpers.compile)('hi {{person.name}} [{{component-with-backtracking-set person=person}}]', { moduleName: 'application' });\n this.engineRegistrations['controller:application'] = _emberRuntime.Controller.extend({\n person: { name: 'Alex' }\n });\n\n this.engineRegistrations['template:components/component-with-backtracking-set'] = (0, _helpers.compile)('[component {{person.name}}]', { moduleName: 'components/component-with-backtracking-set' });\n this.engineRegistrations['component:component-with-backtracking-set'] = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.set('person.name', 'Ben');\n }\n });\n\n var expectedBacktrackingMessage = /modified \"person\\.name\" twice on \\[object Object\\] in a single render\\. It was rendered in \"template:route-with-mount\" \\(in \"engine:chat\"\\) and modified in \"component:component-with-backtracking-set\" \\(in \"engine:chat\"\\)/;\n\n if (_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {\n expectDeprecation(expectedBacktrackingMessage);\n return this.visit('/route-with-mount');\n } else {\n return this.visit('/').then(function () {\n expectAssertion(function () {\n _this11.visit('/route-with-mount');\n }, expectedBacktrackingMessage);\n });\n }\n };\n\n _class4.prototype['@test it renders with a bound engine name'] = function testItRendersWithABoundEngineName() {\n var _this12 = this;\n\n this.router.map(function () {\n this.route('bound-engine-name');\n });\n var controller = void 0;\n this.add('controller:bound-engine-name', _emberRuntime.Controller.extend({\n engineName: null,\n init: function () {\n this._super();\n controller = this;\n }\n }));\n this.addTemplate('bound-engine-name', '{{mount engineName}}');\n\n this.add('engine:foo', _emberApplication.Engine.extend({\n router: null,\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('

Foo Engine

', { moduleName: 'application' }));\n }\n }));\n this.add('engine:bar', _emberApplication.Engine.extend({\n router: null,\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('

Bar Engine

', { moduleName: 'application' }));\n }\n }));\n\n return this.visit('/bound-engine-name').then(function () {\n _this12.assertComponentElement(_this12.firstChild, { content: '' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', 'foo');\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '

Foo Engine

' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', undefined);\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', 'foo');\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '

Foo Engine

' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', 'bar');\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '

Bar Engine

' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', 'foo');\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '

Foo Engine

' });\n\n _this12.runTask(function () {\n return (0, _emberMetal.set)(controller, 'engineName', null);\n });\n\n _this12.assertComponentElement(_this12.firstChild, { content: '' });\n });\n };\n\n _class4.prototype['@test it declares the event dispatcher as a singleton'] = function testItDeclaresTheEventDispatcherAsASingleton() {\n var _this13 = this;\n\n this.router.map(function () {\n this.route('engine-event-dispatcher-singleton');\n });\n\n var controller = void 0;\n var component = void 0;\n\n this.add('controller:engine-event-dispatcher-singleton', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n controller = this;\n }\n }));\n this.addTemplate('engine-event-dispatcher-singleton', '{{mount \"foo\"}}');\n\n this.add('engine:foo', _emberApplication.Engine.extend({\n router: null,\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('

Foo Engine: {{tagless-component}}

', { moduleName: 'application' }));\n this.register('component:tagless-component', _helpers.Component.extend({\n tagName: \"\",\n init: function () {\n this._super.apply(this, arguments);\n component = this;\n }\n }));\n this.register('template:components/tagless-component', (0, _helpers.compile)('Tagless Component', { moduleName: 'components/tagless-component' }));\n }\n }));\n\n return this.visit('/engine-event-dispatcher-singleton').then(function () {\n _this13.assertComponentElement(_this13.firstChild, { content: '

Foo Engine: Tagless Component

' });\n\n var controllerOwnerEventDispatcher = (0, _emberUtils.getOwner)(controller).lookup('event_dispatcher:main');\n var taglessComponentOwnerEventDispatcher = (0, _emberUtils.getOwner)(component).lookup('event_dispatcher:main');\n\n _this13.assert.strictEqual(controllerOwnerEventDispatcher, taglessComponentOwnerEventDispatcher);\n });\n };\n\n return _class4;\n }(_testCase.ApplicationTest));\n\n if (_features.EMBER_ENGINES_MOUNT_PARAMS) {\n (0, _testCase.moduleFor)('{{mount}} params tests', function (_ApplicationTest2) {\n (0, _emberBabel.inherits)(_class5, _ApplicationTest2);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n\n var _this14 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTest2.call(this));\n\n _this14.add('engine:paramEngine', _emberApplication.Engine.extend({\n router: null,\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('

Param Engine: {{model.foo}}

', { moduleName: 'application' }));\n }\n }));\n return _this14;\n }\n\n _class5.prototype['@test it renders with static parameters'] = function testItRendersWithStaticParameters(assert) {\n var _this15 = this;\n\n this.router.map(function () {\n this.route('engine-params-static');\n });\n this.addTemplate('engine-params-static', '{{mount \"paramEngine\" model=(hash foo=\"bar\")}}');\n\n return this.visit('/engine-params-static').then(function () {\n _this15.assertComponentElement(_this15.firstChild, { content: '

Param Engine: bar

' });\n });\n };\n\n _class5.prototype['@test it renders with bound parameters'] = function testItRendersWithBoundParameters(assert) {\n var _this16 = this;\n\n this.router.map(function () {\n this.route('engine-params-bound');\n });\n var controller = void 0;\n this.add('controller:engine-params-bound', _emberRuntime.Controller.extend({\n boundParamValue: null,\n init: function () {\n this._super();\n controller = this;\n }\n }));\n this.addTemplate('engine-params-bound', '{{mount \"paramEngine\" model=(hash foo=boundParamValue)}}');\n\n return this.visit('/engine-params-bound').then(function () {\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine:

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', 'bar');\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine: bar

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', undefined);\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine:

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', 'bar');\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine: bar

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', 'baz');\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine: baz

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', 'bar');\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine: bar

' });\n\n _this16.runTask(function () {\n return (0, _emberMetal.set)(controller, 'boundParamValue', null);\n });\n\n _this16.assertComponentElement(_this16.firstChild, { content: '

Param Engine:

' });\n });\n };\n\n _class5.prototype['@test it renders contextual components passed as parameter values'] = function testItRendersContextualComponentsPassedAsParameterValues(assert) {\n var _this17 = this;\n\n this.router.map(function () {\n this.route('engine-params-contextual-component');\n });\n\n this.addComponent(\"foo-component\", {\n template: 'foo-component rendered! - {{app-bar-component}}'\n });\n this.addComponent('app-bar-component', {\n ComponentClass: _helpers.Component.extend({ tagName: \"\" }),\n template: 'rendered app-bar-component from the app'\n });\n this.add('engine:componentParamEngine', _emberApplication.Engine.extend({\n router: null,\n init: function () {\n this._super.apply(this, arguments);\n this.register('template:application', (0, _helpers.compile)('{{model.foo}}', { moduleName: 'application' }));\n }\n }));\n this.addTemplate('engine-params-contextual-component', '{{mount \"componentParamEngine\" model=(hash foo=(component \"foo-component\"))}}');\n\n return this.visit('/engine-params-contextual-component').then(function () {\n _this17.assertComponentElement(_this17.firstChild.firstChild, { content: 'foo-component rendered! - rendered app-bar-component from the app' });\n });\n };\n\n return _class5;\n }(_testCase.ApplicationTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/mount-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/mount-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/outlet-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'internal-test-helpers', 'ember-metal'], function (_emberBabel, _testCase, _internalTestHelpers, _emberMetal) {\n 'use strict';\n\n (0, _testCase.moduleFor)('outlet view', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n\n var CoreOutlet = _this.owner.factoryFor('view:-outlet');\n\n _this.component = CoreOutlet.create();\n return _this;\n }\n\n _class.prototype['@test should not error when initial rendered template is undefined'] = function testShouldNotErrorWhenInitialRenderedTemplateIsUndefined() {\n var _this2 = this;\n\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: undefined,\n template: undefined\n },\n\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this2.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('');\n };\n\n _class.prototype['@test should render the outlet when set after DOM insertion'] = function testShouldRenderTheOutletWhenSetAfterDOMInsertion() {\n var _this3 = this;\n\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: undefined,\n template: undefined\n },\n\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this3.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('');\n\n this.registerTemplate('application', 'HI{{outlet}}');\n outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this3.component.setOutletState(outletState);\n });\n\n this.assertText('HI');\n\n this.assertStableRerender();\n\n this.registerTemplate('index', '

BYE

');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: {},\n template: this.owner.lookup('template:index')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this3.component.setOutletState(outletState);\n });\n\n this.assertText('HIBYE');\n };\n\n _class.prototype['@test should render the outlet when set before DOM insertion'] = function testShouldRenderTheOutletWhenSetBeforeDOMInsertion() {\n var _this4 = this;\n\n this.registerTemplate('application', 'HI{{outlet}}');\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this4.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('HI');\n\n this.assertStableRerender();\n\n this.registerTemplate('index', '

BYE

');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: {},\n template: this.owner.lookup('template:index')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this4.component.setOutletState(outletState);\n });\n\n this.assertText('HIBYE');\n };\n\n _class.prototype['@test should support an optional name'] = function testShouldSupportAnOptionalName() {\n var _this5 = this;\n\n this.registerTemplate('application', '

HI

{{outlet \"special\"}}');\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this5.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('HI');\n\n this.assertStableRerender();\n\n this.registerTemplate('special', '

BYE

');\n outletState.outlets.special = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'special',\n controller: {},\n template: this.owner.lookup('template:special')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this5.component.setOutletState(outletState);\n });\n\n this.assertText('HIBYE');\n };\n\n _class.prototype['@test does not default outlet name when positional argument is present'] = function testDoesNotDefaultOutletNameWhenPositionalArgumentIsPresent() {\n var _this6 = this;\n\n this.registerTemplate('application', '

HI

{{outlet someUndefinedThing}}');\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: {},\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this6.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('HI');\n\n this.assertStableRerender();\n\n this.registerTemplate('special', '

BYE

');\n outletState.outlets.main = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'special',\n controller: {},\n template: this.owner.lookup('template:special')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this6.component.setOutletState(outletState);\n });\n\n this.assertText('HI');\n };\n\n _class.prototype['@test should support bound outlet name'] = function testShouldSupportBoundOutletName() {\n var _this7 = this;\n\n var controller = { outletName: 'foo' };\n this.registerTemplate('application', '

HI

{{outlet outletName}}');\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: controller,\n template: this.owner.lookup('template:application')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this7.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('HI');\n\n this.assertStableRerender();\n\n this.registerTemplate('foo', '

FOO

');\n outletState.outlets.foo = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'foo',\n controller: {},\n template: this.owner.lookup('template:foo')\n },\n outlets: Object.create(null)\n };\n\n this.registerTemplate('bar', '

BAR

');\n outletState.outlets.bar = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'bar',\n controller: {},\n template: this.owner.lookup('template:bar')\n },\n outlets: Object.create(null)\n };\n\n this.runTask(function () {\n return _this7.component.setOutletState(outletState);\n });\n\n this.assertText('HIFOO');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(controller, 'outletName', 'bar');\n });\n\n this.assertText('HIBAR');\n };\n\n _class.prototype['@test outletState can pass through user code (liquid-fire initimate API) '] = function testOutletStateCanPassThroughUserCodeLiquidFireInitimateAPI() {\n var _this8 = this;\n\n this.registerTemplate('outer', 'A{{#-with-dynamic-vars outletState=(identity (-get-dynamic-var \"outletState\"))}}B{{outlet}}D{{/-with-dynamic-vars}}E');\n this.registerTemplate('inner', 'C');\n\n // This looks like it doesn't do anything, but its presence\n // guarantees that the outletState gets converted from a reference\n // to a value and then back to a reference. That is what we're\n // testing here.\n this.registerHelper('identity', function (_ref) {\n var a = _ref[0];\n return a;\n });\n\n var outletState = {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'outer',\n controller: {},\n template: this.owner.lookup('template:outer')\n },\n outlets: {\n main: {\n render: {\n owner: this.owner,\n into: undefined,\n outlet: 'main',\n name: 'inner',\n controller: {},\n template: this.owner.lookup('template:inner')\n },\n outlets: Object.create(null)\n }\n }\n };\n\n this.runTask(function () {\n return _this8.component.setOutletState(outletState);\n });\n\n (0, _internalTestHelpers.runAppend)(this.component);\n\n this.assertText('ABCDE');\n\n this.assertStableRerender();\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/outlet-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/outlet-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/refinements-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-metal'], function (_emberBabel, _testCase, _abstractTestCase, _emberMetal) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with var as |foo|}}\\n {{foo}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |render|}}\\n {{render}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |outlet|}}\\n {{outlet}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |mount|}}\\n {{mount}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |component|}}\\n {{component}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |input|}}\\n {{input}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-with-dynamic-vars|}}\\n {{-with-dynamic-vars}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-in-element|}}\\n {{-in-element}}\\n {{/with}}'], ['\\n {{#with var as |foo|}}\\n {{foo}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |render|}}\\n {{render}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |outlet|}}\\n {{outlet}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |mount|}}\\n {{mount}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |component|}}\\n {{component}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |input|}}\\n {{input}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-with-dynamic-vars|}}\\n {{-with-dynamic-vars}}\\n {{/with}}\\n\\n ---\\n\\n {{#with var as |-in-element|}}\\n {{-in-element}}\\n {{/with}}']);\n\n (0, _testCase.moduleFor)('syntax refinements', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test block params should not be refined'] = function testBlockParamsShouldNotBeRefined() {\n var _this2 = this;\n\n this.registerHelper('foo', function () {\n return 'bar helper';\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { var: 'var' });\n\n this.assertText('var---var---var---var---var---var---var---var');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'var', 'RARRR!!!');\n });\n\n this.assertText('RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!---RARRR!!!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'var', 'var');\n });\n\n this.assertText('var---var---var---var---var---var---var---var');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/refinements-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/refinements-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/svg-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _testCase, _emberMetal, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n \\n
\\n '], ['\\n
\\n \\n
\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n \\n
\\n '], ['\\n
\\n \\n
\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n \\n
\\n '], ['\\n
\\n \\n
\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n \\n
\\n '], ['\\n
\\n \\n
\\n ']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
\\n \\n
\\n '], ['\\n
\\n \\n
\\n ']);\n\n (0, _testCase.moduleFor)('SVG element tests', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test unquoted viewBox property is output'] = function testUnquotedViewBoxPropertyIsOutput(assert) {\n var _this2 = this;\n\n var viewBoxString = '0 0 100 100';\n\n this.render('
', {\n model: {\n viewBoxString: viewBoxString\n }\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n\n this.runTask(function () {\n return _this2.rerender();\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model.viewBoxString', null);\n });\n\n assert.equal(this.firstChild.getAttribute('svg'), null);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'model', { viewBoxString: viewBoxString });\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n };\n\n _class.prototype['@test quoted viewBox property is output'] = function testQuotedViewBoxPropertyIsOutput(assert) {\n var _this3 = this;\n\n var viewBoxString = '0 0 100 100';\n\n this.render('
', {\n model: {\n viewBoxString: viewBoxString\n }\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model.viewBoxString', null);\n });\n\n assert.equal(this.firstChild.getAttribute('svg'), null);\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'model', { viewBoxString: viewBoxString });\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject, viewBoxString));\n };\n\n _class.prototype['@test quoted viewBox property is concat'] = function testQuotedViewBoxPropertyIsConcat() {\n var _this4 = this;\n\n var viewBoxString = '100 100';\n\n this.render('
', {\n model: {\n viewBoxString: viewBoxString\n }\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject2, viewBoxString));\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject2, viewBoxString));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model.viewBoxString', '200 200');\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject3));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'model', { viewBoxString: viewBoxString });\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject2, viewBoxString));\n };\n\n _class.prototype['@test class is output'] = function testClassIsOutput() {\n var _this5 = this;\n\n this.render('
', {\n model: {\n color: 'blue'\n }\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject4));\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject4));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model.color', 'yellow');\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject5));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'model', { color: 'blue' });\n });\n\n this.assertInnerHTML((0, _abstractTestCase.strip)(_templateObject4));\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/svg-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/svg-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/each-in-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-runtime', 'ember-glimmer/tests/utils/shared-conditional-tests'], function (_emberBabel, _emberMetal, _abstractTestCase, _testCase, _emberRuntime, _sharedConditionalTests) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n {{#each-in categories as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n '], ['\\n
    \\n {{#each-in categories as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Smartphones: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
\\n '], ['\\n
    \\n
  • Smartphones: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Smartphones: 100
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Tweets: 443115
  • \\n
\\n '], ['\\n
    \\n
  • Smartphones: 100
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Tweets: 443115
  • \\n
\\n ']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n {{#each-in categories as |category data|}}\\n
  • {{category}}: {{data.reports.unitsSold}}
  • \\n {{/each-in}}\\n
\\n '], ['\\n
    \\n {{#each-in categories as |category data|}}\\n
  • {{category}}: {{data.reports.unitsSold}}
  • \\n {{/each-in}}\\n
\\n ']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n {{#each-in categories key=\\'@identity\\' as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n '], ['\\n
    \\n {{#each-in categories key=\\'@identity\\' as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n ']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Smartphones: 8203
  • \\n
  • Tablets: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Bugs: Infinity
  • \\n
\\n '], ['\\n
    \\n
  • Smartphones: 8203
  • \\n
  • Tablets: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Bugs: Infinity
  • \\n
\\n ']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Smartphones: 100
  • \\n
  • Tablets: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Bugs: Infinity
  • \\n
  • Tweets: 443115
  • \\n
\\n '], ['\\n
    \\n
  • Smartphones: 100
  • \\n
  • Tablets: 8203
  • \\n
  • JavaScript Frameworks: Infinity
  • \\n
  • Bugs: Infinity
  • \\n
  • Tweets: 443115
  • \\n
\\n ']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n {{#each-in (get collection type) as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n '], ['\\n
    \\n {{#each-in (get collection type) as |category count|}}\\n
  • {{category}}: {{count}}
  • \\n {{/each-in}}\\n
\\n ']),\n _templateObject9 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Emberinios: 533462
  • \\n
  • Tweets: 7323
  • \\n
\\n '], ['\\n
    \\n
  • Emberinios: 533462
  • \\n
  • Tweets: 7323
  • \\n
\\n ']),\n _templateObject10 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Televisions: 183
  • \\n
  • Alarm Clocks: 999
  • \\n
\\n '], ['\\n
    \\n
  • Televisions: 183
  • \\n
  • Alarm Clocks: 999
  • \\n
\\n ']),\n _templateObject11 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Televisions: 183
  • \\n
  • Alarm Clocks: 999
  • \\n
  • Tweets: 443115
  • \\n
\\n '], ['\\n
    \\n
  • Televisions: 183
  • \\n
  • Alarm Clocks: 999
  • \\n
  • Tweets: 443115
  • \\n
\\n ']),\n _templateObject12 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Emberinios: 123456
  • \\n
\\n '], ['\\n
    \\n
  • Emberinios: 123456
  • \\n
\\n ']),\n _templateObject13 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each-in foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/each-in}}'], ['\\n {{#each-in foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/each-in}}']),\n _templateObject14 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each-in arr as |key value|}}\\n [{{key}}:{{value}}]\\n {{/each-in}}'], ['\\n {{#each-in arr as |key value|}}\\n [{{key}}:{{value}}]\\n {{/each-in}}']),\n _templateObject15 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n
    \\n
  • Smartphones: 100
  • \\n
  • Tablets: 20
  • \\n
\\n '], ['\\n
    \\n
  • Smartphones: 100
  • \\n
  • Tablets: 20
  • \\n
\\n ']);\n\n var EachInTest = function (_TogglingSyntaxCondit) {\n (0, _emberBabel.inherits)(EachInTest, _TogglingSyntaxCondit);\n\n function EachInTest() {\n (0, _emberBabel.classCallCheck)(this, EachInTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingSyntaxCondit.apply(this, arguments));\n }\n\n EachInTest.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n return '{{#each-in ' + cond + ' as |key|}}' + truthy + '{{else}}' + falsy + '{{/each-in}}';\n };\n\n return EachInTest;\n }(_sharedConditionalTests.TogglingSyntaxConditionalsTest);\n\n function EmptyFunction() {}\n\n function NonEmptyFunction() {}\n NonEmptyFunction.foo = 'bar';\n\n var EmptyConstructor = function EmptyConstructor() {\n (0, _emberBabel.classCallCheck)(this, EmptyConstructor);\n };\n\n var NonEmptyConstructor = function NonEmptyConstructor() {\n (0, _emberBabel.classCallCheck)(this, NonEmptyConstructor);\n };\n\n NonEmptyConstructor.foo = 'bar';\n\n var BasicEachInTest = function (_EachInTest) {\n (0, _emberBabel.inherits)(BasicEachInTest, _EachInTest);\n\n function BasicEachInTest() {\n (0, _emberBabel.classCallCheck)(this, BasicEachInTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachInTest.apply(this, arguments));\n }\n\n return BasicEachInTest;\n }(EachInTest);\n\n (0, _abstractTestCase.applyMixins)(BasicEachInTest, new _sharedConditionalTests.TruthyGenerator([{ foo: 1 }, _emberRuntime.Object.create({ 'Not Empty': 1 }), [1], NonEmptyFunction, NonEmptyConstructor]), new _sharedConditionalTests.FalsyGenerator([null, undefined, false, '', 0, [], EmptyFunction, EmptyConstructor, {}, Object.create(null), Object.create({}), Object.create({ 'Not Empty': 1 }), _emberRuntime.Object.create()]));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each-in}}', function (_BasicEachInTest) {\n (0, _emberBabel.inherits)(_class, _BasicEachInTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicEachInTest.apply(this, arguments));\n }\n\n _class.prototype['@test it repeats the given block for each item in the hash'] = function () {\n var _this4 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject), {\n categories: {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n }\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this4.context, 'categories.Smartphones', 100);\n (0, _emberMetal.set)(_this4.context, 'categories.Tweets', 443115);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject3));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'categories', {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n };\n\n _class.prototype['@test it can render sub-paths of each item'] = function () {\n var _this5 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject4), {\n categories: {\n 'Smartphones': { reports: { unitsSold: 8203 } },\n 'JavaScript Frameworks': { reports: { unitsSold: Infinity } }\n }\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'categories.Smartphones.reports.unitsSold', 100);\n (0, _emberMetal.set)(_this5.context, 'categories.Tweets', { reports: { unitsSold: 443115 } });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject3));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'categories', {\n 'Smartphones': { reports: { unitsSold: 8203 } },\n 'JavaScript Frameworks': { reports: { unitsSold: Infinity } }\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n };\n\n _class.prototype['@test it can render duplicate items'] = function () {\n var _this6 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject5), {\n categories: {\n 'Smartphones': 8203,\n 'Tablets': 8203,\n 'JavaScript Frameworks': Infinity,\n 'Bugs': Infinity\n }\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject6));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'categories.Smartphones', 100);\n (0, _emberMetal.set)(_this6.context, 'categories.Tweets', 443115);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject7));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'categories', {\n 'Smartphones': 8203,\n 'Tablets': 8203,\n 'JavaScript Frameworks': Infinity,\n 'Bugs': Infinity\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject6));\n };\n\n _class.prototype['@test it repeats the given block when the hash is dynamic'] = function () {\n var _this7 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject8), {\n collection: {\n categories: {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n },\n otherCategories: {\n 'Emberinios': 533462,\n 'Tweets': 7323\n }\n },\n type: 'categories'\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this7.context, 'type', 'otherCategories');\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject9));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'type', 'categories');\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n };\n\n _class.prototype['@test it only iterates over an object\\'s own properties'] = function () {\n var _this8 = this;\n\n var protoCategories = {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n };\n\n var categories = Object.create(protoCategories);\n categories['Televisions'] = 183;\n categories['Alarm Clocks'] = 999;\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { categories: categories });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject10));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(protoCategories, 'Robots', 666);\n (0, _emberMetal.set)(categories, 'Tweets', 443115);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject11));\n\n categories = Object.create(protoCategories);\n categories['Televisions'] = 183;\n categories['Alarm Clocks'] = 999;\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'categories', categories);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject10));\n };\n\n _class.prototype['@test it does not observe direct property mutations (not going through set) on the object'] = function () {\n var _this9 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject), {\n categories: {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n }\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n var categories = (0, _emberMetal.get)(_this9.context, 'categories');\n delete categories.Smartphones;\n });\n\n this.assertInvariants();\n\n this.runTask(function () {\n var categories = (0, _emberMetal.get)(_this9.context, 'categories');\n categories['Emberinios'] = 123456;\n });\n\n this.assertInvariants();\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'categories', {\n Emberinios: 123456\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject12));\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this9.context, 'categories', {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n };\n\n _class.prototype['@test keying off of `undefined` does not render'] = function testKeyingOffOfUndefinedDoesNotRender(assert) {\n var _this10 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject13), { foo: {} });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'foo', { bar: { baz: { 'Here!': 1 } } });\n });\n\n this.assertText('Here!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this10.context, 'foo', {});\n });\n\n this.assertText('');\n };\n\n _class.prototype['@test it iterate over array with `in` instead of walking over elements'] = function testItIterateOverArrayWithInInsteadOfWalkingOverElements(assert) {\n var _this11 = this;\n\n var arr = [1, 2, 3];\n arr.foo = 'bar';\n\n this.render((0, _abstractTestCase.strip)(_templateObject14), { arr: arr });\n\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(arr, 'zomg', 'lol');\n });\n\n this.assertText('[0:1][1:2][2:3][foo:bar][zomg:lol]');\n\n arr = [1, 2, 3];\n arr.foo = 'bar';\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'arr', arr);\n });\n\n this.assertText('[0:1][1:2][2:3][foo:bar]');\n };\n\n _class.prototype['@test it skips holes in sparse arrays'] = function testItSkipsHolesInSparseArrays(assert) {\n var arr = [];\n arr[5] = 'foo';\n arr[6] = 'bar';\n\n this.render((0, _abstractTestCase.strip)(_templateObject14), { arr: arr });\n\n this.assertText('[5:foo][6:bar]');\n\n this.assertStableRerender();\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'truthyValue',\n get: function () {\n return { 'Not Empty': 1 };\n }\n }, {\n key: 'falsyValue',\n get: function () {\n return {};\n }\n }]);\n return _class;\n }(BasicEachInTest));\n\n var EachInEdgeCasesTest = function (_EachInTest2) {\n (0, _emberBabel.inherits)(EachInEdgeCasesTest, _EachInTest2);\n\n function EachInEdgeCasesTest() {\n (0, _emberBabel.classCallCheck)(this, EachInEdgeCasesTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachInTest2.apply(this, arguments));\n }\n\n return EachInEdgeCasesTest;\n }(EachInTest);\n\n (0, _abstractTestCase.applyMixins)(EachInEdgeCasesTest, new _sharedConditionalTests.FalsyGenerator([true, 1, 'hello']));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each-in}} edge cases', function (_EachInEdgeCasesTest) {\n (0, _emberBabel.inherits)(_class2, _EachInEdgeCasesTest);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachInEdgeCasesTest.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(_class2, [{\n key: 'truthyValue',\n get: function () {\n return { 'Not Empty': 1 };\n }\n }, {\n key: 'falsyValue',\n get: function () {\n return {};\n }\n }]);\n return _class2;\n }(EachInEdgeCasesTest));\n\n var EachInProxyTest = function (_EachInTest3) {\n (0, _emberBabel.inherits)(EachInProxyTest, _EachInTest3);\n\n function EachInProxyTest() {\n (0, _emberBabel.classCallCheck)(this, EachInProxyTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachInTest3.apply(this, arguments));\n }\n\n return EachInProxyTest;\n }(EachInTest);\n\n (0, _abstractTestCase.applyMixins)(EachInProxyTest, new _sharedConditionalTests.TruthyGenerator([_emberRuntime.ObjectProxy.create({ content: { 'Not empty': 1 } })]), new _sharedConditionalTests.FalsyGenerator([_emberRuntime.ObjectProxy.create(), _emberRuntime.ObjectProxy.create({ content: null }), _emberRuntime.ObjectProxy.create({ content: {} }), _emberRuntime.ObjectProxy.create({ content: Object.create(null) }), _emberRuntime.ObjectProxy.create({ content: Object.create({}) }), _emberRuntime.ObjectProxy.create({ content: Object.create({ 'Not Empty': 1 }) }), _emberRuntime.ObjectProxy.create({ content: _emberRuntime.Object.create() })]));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each-in}} with `ObjectProxy`', function (_EachInProxyTest) {\n (0, _emberBabel.inherits)(_class3, _EachInProxyTest);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachInProxyTest.apply(this, arguments));\n }\n\n _class3.prototype['@test it iterates over the content, not the proxy'] = function testItIteratesOverTheContentNotTheProxy() {\n var _this16 = this;\n\n var content = {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n };\n\n var proxy = _emberRuntime.ObjectProxy.create({\n content: content,\n foo: 'bar'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { categories: proxy });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.set)(proxy, 'content.Smartphones', 100);\n (0, _emberMetal.set)(proxy, 'content.Tweets', 443115);\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject3));\n\n this.runTask(function () {\n (0, _emberMetal.set)(proxy, 'content', {\n 'Smartphones': 100,\n 'Tablets': 20\n });\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject15));\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'categories', _emberRuntime.ObjectProxy.create({\n content: {\n 'Smartphones': 8203,\n 'JavaScript Frameworks': Infinity\n }\n }));\n });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject2));\n };\n\n (0, _emberBabel.createClass)(_class3, [{\n key: 'truthyValue',\n get: function () {\n return _emberRuntime.ObjectProxy.create({ content: { 'Not Empty': 1 } });\n }\n }, {\n key: 'falsyValue',\n get: function () {\n return _emberRuntime.ObjectProxy.create({ content: null });\n }\n }]);\n return _class3;\n }(EachInProxyTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/each-in-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/each-in-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/each-test', ['ember-babel', 'ember-metal', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-runtime', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/shared-conditional-tests'], function (_emberBabel, _emberMetal, _abstractTestCase, _testCase, _emberRuntime, _helpers, _sharedConditionalTests) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each list as |item|}}\\n
  • Prev
  • \\n {{foo-bar item=item}}\\n
  • Next
  • \\n {{/each}}\\n '], ['\\n {{#each list as |item|}}\\n
  • Prev
  • \\n {{foo-bar item=item}}\\n
  • Next
  • \\n {{/each}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each content as |value|}}\\n {{value}}-\\n {{#each options as |option|}}\\n {{option.value}}:{{option.label}}\\n {{/each}}\\n {{/each}}\\n '], ['\\n {{#each content as |value|}}\\n {{value}}-\\n {{#each options as |option|}}\\n {{option.value}}:{{option.label}}\\n {{/each}}\\n {{/each}}\\n ']),\n _templateObject3 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/each}}'], ['\\n {{#each foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/each}}']),\n _templateObject4 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#each list as |value key|}}\\n [{{key}}:{{value}}]\\n {{/each}}'], ['\\n {{#each list as |value key|}}\\n [{{key}}:{{value}}]\\n {{/each}}']),\n _templateObject5 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

    {{page.title}}

    \\n\\n
      \\n {{#each model as |post|}}\\n
    • {{post.title}}
    • \\n {{/each}}\\n
    \\n '], ['\\n

    {{page.title}}

    \\n\\n
      \\n {{#each model as |post|}}\\n
    • {{post.title}}
    • \\n {{/each}}\\n
    \\n ']),\n _templateObject6 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

    Blog Posts

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n '], ['\\n

    Blog Posts

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n ']),\n _templateObject7 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

    Essays

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n '], ['\\n

    Essays

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n ']),\n _templateObject8 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n

    Think Pieces\\u2122

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n '], ['\\n

    Think Pieces\\u2122

    \\n\\n
      \\n
    • Rails is omakase
    • \\n
    • Ember is omakase
    • \\n
    \\n ']);\n\n var ArrayLike = function () {\n function ArrayLike(content) {\n (0, _emberBabel.classCallCheck)(this, ArrayLike);\n\n this._array = content;\n }\n\n ArrayLike.prototype.forEach = function forEach(callback) {\n this._array.forEach(callback);\n };\n\n ArrayLike.prototype.objectAt = function objectAt(idx) {\n return this._array[idx];\n };\n\n ArrayLike.prototype.clear = function clear() {\n this._array.length = 0;\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.replace = function replace(idx, del, ins) {\n var _array;\n\n (_array = this._array).splice.apply(_array, [idx, del].concat(ins));\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.unshiftObject = function unshiftObject(obj) {\n this._array.unshift(obj);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.unshiftObjects = function unshiftObjects(arr) {\n var _array2;\n\n (_array2 = this._array).unshift.apply(_array2, arr);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.pushObject = function pushObject(obj) {\n this._array.push(obj);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.pushObjects = function pushObjects(arr) {\n var _array3;\n\n (_array3 = this._array).push.apply(_array3, arr);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.shiftObject = function shiftObject() {\n var obj = this._array.shift();\n this.arrayContentDidChange();\n return obj;\n };\n\n ArrayLike.prototype.popObject = function popObject() {\n var obj = this._array.pop();\n this.arrayContentDidChange();\n return obj;\n };\n\n ArrayLike.prototype.insertAt = function insertAt(idx, obj) {\n this._array.splice(idx, 0, obj);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.removeAt = function removeAt(idx) {\n var len = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n\n this._array.splice(idx, len);\n this.arrayContentDidChange();\n };\n\n ArrayLike.prototype.arrayContentDidChange = function arrayContentDidChange() {\n (0, _emberMetal.propertyDidChange)(this, '[]');\n (0, _emberMetal.propertyDidChange)(this, 'length');\n };\n\n (0, _emberBabel.createClass)(ArrayLike, [{\n key: 'length',\n get: function () {\n return this._array.length;\n }\n }]);\n return ArrayLike;\n }();\n\n var TogglingEachTest = function (_TogglingSyntaxCondit) {\n (0, _emberBabel.inherits)(TogglingEachTest, _TogglingSyntaxCondit);\n\n function TogglingEachTest() {\n (0, _emberBabel.classCallCheck)(this, TogglingEachTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingSyntaxCondit.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(TogglingEachTest, [{\n key: 'truthyValue',\n get: function () {\n return ['non-empty'];\n }\n }, {\n key: 'falsyValue',\n get: function () {\n return [];\n }\n }]);\n return TogglingEachTest;\n }(_sharedConditionalTests.TogglingSyntaxConditionalsTest);\n\n var BasicEachTest = function (_TogglingEachTest) {\n (0, _emberBabel.inherits)(BasicEachTest, _TogglingEachTest);\n\n function BasicEachTest() {\n (0, _emberBabel.classCallCheck)(this, BasicEachTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingEachTest.apply(this, arguments));\n }\n\n return BasicEachTest;\n }(TogglingEachTest);\n\n (0, _abstractTestCase.applyMixins)(BasicEachTest, new _sharedConditionalTests.TruthyGenerator([['hello'], (0, _emberRuntime.A)(['hello']), new ArrayLike(['hello']), _emberRuntime.ArrayProxy.create({ content: ['hello'] }), _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(['hello']) })]), new _sharedConditionalTests.FalsyGenerator([null, undefined, false, '', 0, []]), _sharedConditionalTests.ArrayTestCases);\n\n (0, _testCase.moduleFor)('Syntax test: toggling {{#each}}', function (_BasicEachTest) {\n (0, _emberBabel.inherits)(_class, _BasicEachTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicEachTest.apply(this, arguments));\n }\n\n _class.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n return '{{#each ' + cond + '}}' + truthy + '{{else}}' + falsy + '{{/each}}';\n };\n\n return _class;\n }(BasicEachTest));\n\n (0, _testCase.moduleFor)('Syntax test: toggling {{#each as}}', function (_BasicEachTest2) {\n (0, _emberBabel.inherits)(_class2, _BasicEachTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicEachTest2.apply(this, arguments));\n }\n\n _class2.prototype.templateFor = function templateFor(_ref2) {\n var cond = _ref2.cond,\n truthy = _ref2.truthy,\n falsy = _ref2.falsy;\n\n return '{{#each ' + cond + ' as |test|}}' + truthy + '{{else}}' + falsy + '{{/each}}';\n };\n\n return _class2;\n }(BasicEachTest));\n\n var EachEdgeCasesTest = function (_TogglingEachTest2) {\n (0, _emberBabel.inherits)(EachEdgeCasesTest, _TogglingEachTest2);\n\n function EachEdgeCasesTest() {\n (0, _emberBabel.classCallCheck)(this, EachEdgeCasesTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingEachTest2.apply(this, arguments));\n }\n\n return EachEdgeCasesTest;\n }(TogglingEachTest);\n\n (0, _abstractTestCase.applyMixins)(EachEdgeCasesTest, new _sharedConditionalTests.FalsyGenerator([true, 'hello', 1, Object, function () {}, {}, { foo: 'bar' }, Object.create(null), Object.create({}), Object.create({ foo: 'bar' })]));\n\n (0, _testCase.moduleFor)('Syntax test: toggling {{#each}}', function (_EachEdgeCasesTest) {\n (0, _emberBabel.inherits)(_class3, _EachEdgeCasesTest);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachEdgeCasesTest.apply(this, arguments));\n }\n\n _class3.prototype.templateFor = function templateFor(_ref3) {\n var cond = _ref3.cond,\n truthy = _ref3.truthy,\n falsy = _ref3.falsy;\n\n return '{{#each ' + cond + '}}' + truthy + '{{else}}' + falsy + '{{/each}}';\n };\n\n return _class3;\n }(EachEdgeCasesTest));\n\n (0, _testCase.moduleFor)('Syntax test: toggling {{#each as}}', function (_EachEdgeCasesTest2) {\n (0, _emberBabel.inherits)(_class4, _EachEdgeCasesTest2);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EachEdgeCasesTest2.apply(this, arguments));\n }\n\n _class4.prototype.templateFor = function templateFor(_ref4) {\n var cond = _ref4.cond,\n truthy = _ref4.truthy,\n falsy = _ref4.falsy;\n\n return '{{#each ' + cond + ' as |test|}}' + truthy + '{{else}}' + falsy + '{{/each}}';\n };\n\n return _class4;\n }(EachEdgeCasesTest));\n\n var AbstractEachTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(AbstractEachTest, _RenderingTest);\n\n function AbstractEachTest() {\n (0, _emberBabel.classCallCheck)(this, AbstractEachTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n AbstractEachTest.prototype.makeList = function makeList() {\n // this.list = this.delegate = ...;\n throw new Error('Not implemented: `makeList`');\n };\n\n AbstractEachTest.prototype.replaceList = function replaceList(list) {\n var _this9 = this;\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'list', _this9.makeList(list));\n });\n };\n\n AbstractEachTest.prototype.forEach = function forEach(callback) {\n return this.delegate.forEach(callback);\n };\n\n AbstractEachTest.prototype.objectAt = function objectAt(idx) {\n return this.delegate.objectAt(idx);\n };\n\n AbstractEachTest.prototype.clear = function clear() {\n return this.delegate.clear();\n };\n\n AbstractEachTest.prototype.replace = function replace(idx, del, ins) {\n return this.delegate.replace(idx, del, ins);\n };\n\n AbstractEachTest.prototype.unshiftObject = function unshiftObject(obj) {\n return this.delegate.unshiftObject(obj);\n };\n\n AbstractEachTest.prototype.unshiftObjects = function unshiftObjects(arr) {\n return this.delegate.unshiftObjects(arr);\n };\n\n AbstractEachTest.prototype.pushObject = function pushObject(obj) {\n return this.delegate.pushObject(obj);\n };\n\n AbstractEachTest.prototype.pushObjects = function pushObjects(arr) {\n return this.delegate.pushObjects(arr);\n };\n\n AbstractEachTest.prototype.shiftObject = function shiftObject() {\n return this.delegate.shiftObject();\n };\n\n AbstractEachTest.prototype.popObject = function popObject() {\n return this.delegate.popObject();\n };\n\n AbstractEachTest.prototype.insertAt = function insertAt(idx, obj) {\n return this.delegate.insertAt(idx, obj);\n };\n\n AbstractEachTest.prototype.removeAt = function removeAt(idx, len) {\n return this.delegate.removeAt(idx, len);\n };\n\n AbstractEachTest.prototype.render = function render(template) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n if (this.list === undefined) {\n throw new Error('Must call `this.makeList()` before calling this.render()');\n }\n\n context.list = this.list;\n\n return _RenderingTest.prototype.render.call(this, template, context);\n };\n\n return AbstractEachTest;\n }(_testCase.RenderingTest);\n\n var SingleEachTest = function (_AbstractEachTest) {\n (0, _emberBabel.inherits)(SingleEachTest, _AbstractEachTest);\n\n function SingleEachTest() {\n (0, _emberBabel.classCallCheck)(this, SingleEachTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractEachTest.apply(this, arguments));\n }\n\n SingleEachTest.prototype['@test it repeats the given block for each item in the array'] = function testItRepeatsTheGivenBlockForEachItemInTheArray() {\n var _this11 = this;\n\n this.makeList([{ text: 'hello' }]);\n\n this.render('{{#each list as |item|}}{{item.text}}{{else}}Empty{{/each}}');\n\n this.assertText('hello');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('hello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.objectAt(0), 'text', 'Hello');\n });\n\n this.assertText('Hello');\n\n this.runTask(function () {\n _this11.pushObject({ text: ' ' });\n _this11.pushObject({ text: 'World' });\n });\n\n this.assertText('Hello World');\n\n this.runTask(function () {\n _this11.pushObject({ text: 'Earth' });\n _this11.removeAt(1);\n _this11.insertAt(1, { text: 'Globe' });\n });\n\n this.assertText('HelloGlobeWorldEarth');\n\n this.runTask(function () {\n _this11.pushObject({ text: 'Planet' });\n _this11.removeAt(1);\n _this11.insertAt(1, { text: ' ' });\n _this11.pushObject({ text: ' ' });\n _this11.pushObject({ text: 'Earth' });\n _this11.removeAt(3);\n });\n\n this.assertText('Hello WorldPlanet Earth');\n\n this.runTask(function () {\n _this11.pushObject({ text: 'Globe' });\n _this11.removeAt(1);\n _this11.insertAt(1, { text: ' ' });\n _this11.pushObject({ text: ' ' });\n _this11.pushObject({ text: 'World' });\n _this11.removeAt(2);\n });\n\n this.assertText('Hello Planet EarthGlobe World');\n\n this.runTask(function () {\n return _this11.replace(2, 4, [{ text: 'my' }]);\n });\n\n this.assertText('Hello my World');\n\n this.runTask(function () {\n return _this11.clear();\n });\n\n this.assertText('Empty');\n\n this.replaceList([{ text: 'hello' }]);\n\n this.assertText('hello');\n };\n\n SingleEachTest.prototype['@test it receives the index as the second parameter'] = function testItReceivesTheIndexAsTheSecondParameter() {\n var _this12 = this;\n\n this.makeList([{ text: 'hello' }, { text: 'world' }]);\n\n this.render('{{#each list as |item index|}}[{{index}}. {{item.text}}]{{/each}}');\n\n this.assertText('[0. hello][1. world]');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this12.insertAt(1, { text: 'my' });\n });\n\n this.assertText('[0. hello][1. my][2. world]');\n\n this.replaceList([{ text: 'hello' }, { text: 'world' }]);\n\n this.assertText('[0. hello][1. world]');\n };\n\n SingleEachTest.prototype['@test it accepts a string key'] = function testItAcceptsAStringKey() {\n var _this13 = this;\n\n this.makeList([{ text: 'hello' }, { text: 'world' }]);\n\n this.render('{{#each list key=\\'text\\' as |item|}}{{item.text}}{{/each}}');\n\n this.assertText('helloworld');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this13.pushObject({ text: 'again' });\n });\n\n this.assertText('helloworldagain');\n\n this.replaceList([{ text: 'hello' }, { text: 'world' }]);\n\n this.assertText('helloworld');\n };\n\n SingleEachTest.prototype['@test it accepts a numeric key'] = function testItAcceptsANumericKey() {\n var _this14 = this;\n\n this.makeList([{ id: 1 }, { id: 2 }]);\n\n this.render('{{#each list key=\\'id\\' as |item|}}{{item.id}}{{/each}}');\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this14.pushObject({ id: 3 });\n });\n\n this.assertText('123');\n\n this.replaceList([{ id: 1 }, { id: 2 }]);\n\n this.assertText('12');\n };\n\n SingleEachTest.prototype['@test it can specify @index as the key'] = function testItCanSpecifyIndexAsTheKey() {\n var _this15 = this;\n\n this.makeList([{ id: 1 }, { id: 2 }]);\n\n this.render('{{#each list key=\\'@index\\' as |item|}}{{item.id}}{{/each}}');\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this15.pushObject({ id: 3 });\n });\n\n this.assertText('123');\n\n this.replaceList([{ id: 1 }, { id: 2 }]);\n\n this.assertText('12');\n };\n\n SingleEachTest.prototype['@test it can specify @identity as the key for arrays of primitives'] = function testItCanSpecifyIdentityAsTheKeyForArraysOfPrimitives() {\n var _this16 = this;\n\n this.makeList([1, 2]);\n\n this.render('{{#each list key=\\'@identity\\' as |item|}}{{item}}{{/each}}');\n\n this.assertText('12');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this16.pushObject(3);\n });\n\n this.assertText('123');\n\n this.replaceList([1, 2]);\n\n this.assertText('12');\n };\n\n SingleEachTest.prototype['@test it can specify @identity as the key for mixed arrays of objects and primitives'] = function testItCanSpecifyIdentityAsTheKeyForMixedArraysOfObjectsAndPrimitives() {\n var _this17 = this;\n\n this.makeList([1, { id: 2 }, 3]);\n\n this.render('{{#each list key=\\'@identity\\' as |item|}}{{if item.id item.id item}}{{/each}}');\n\n this.assertText('123');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this17.insertAt(2, { id: 4 });\n });\n\n this.assertText('1243');\n\n this.replaceList([1, { id: 2 }, 3]);\n\n this.assertText('123');\n };\n\n SingleEachTest.prototype['@test it can render duplicate primitive items'] = function testItCanRenderDuplicatePrimitiveItems() {\n var _this18 = this;\n\n this.makeList(['a', 'a', 'a']);\n\n this.render('{{#each list as |item|}}{{item}}{{/each}}');\n\n this.assertText('aaa');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this18.pushObject('a');\n });\n\n this.assertText('aaaa');\n\n this.runTask(function () {\n return _this18.pushObject('a');\n });\n\n this.assertText('aaaaa');\n\n this.replaceList(['a', 'a', 'a']);\n\n this.assertText('aaa');\n };\n\n SingleEachTest.prototype['@test updating and setting within #each'] = function (assert) {\n var _this19 = this;\n\n this.makeList([{ value: 1 }, { value: 2 }, { value: 3 }]);\n\n var FooBarComponent = _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.isEven = true;\n this.tagName = 'li';\n },\n _isEven: function () {\n this.set('isEven', this.get('item.value') % 2 === 0);\n },\n didUpdate: function () {\n this._isEven();\n }\n });\n\n this.registerComponent('foo-bar', { ComponentClass: FooBarComponent, template: '{{#if isEven}}{{item.value}}{{/if}}' });\n\n this.render((0, _abstractTestCase.strip)(_templateObject));\n\n this.assertText('Prev1NextPrev2NextPrev3Next');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this19.context.list.objectAt(0), 'value', 3);\n });\n\n this.assertText('PrevNextPrev2NextPrev3Next');\n\n this.replaceList([{ value: 1 }, { value: 2 }, { value: 3 }]);\n\n this.assertText('Prev1NextPrev2NextPrev3Next');\n };\n\n SingleEachTest.prototype['@test it can render duplicate objects'] = function testItCanRenderDuplicateObjects() {\n var _this20 = this;\n\n var duplicateItem = { text: 'foo' };\n\n this.makeList([duplicateItem, duplicateItem, { text: 'bar' }, { text: 'baz' }]);\n\n this.render('{{#each list as |item|}}{{item.text}}{{/each}}');\n\n this.assertText('foofoobarbaz');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this20.pushObject(duplicateItem);\n });\n\n this.assertText('foofoobarbazfoo');\n\n this.runTask(function () {\n return _this20.pushObject(duplicateItem);\n });\n\n this.assertText('foofoobarbazfoofoo');\n\n this.replaceList([duplicateItem, duplicateItem, { text: 'bar' }, { text: 'baz' }]);\n\n this.assertText('foofoobarbaz');\n };\n\n SingleEachTest.prototype['@test it maintains DOM stability when condition changes between objects with the same keys'] = function () {\n var _this21 = this;\n\n this.makeList([{ text: 'Hello' }, { text: ' ' }, { text: 'world' }]);\n\n this.render('{{#each list key=\"text\" as |item|}}{{item.text}}{{/each}}');\n\n this.assertText('Hello world');\n\n this.takeSnapshot();\n\n this.runTask(function () {\n _this21.popObject();\n _this21.popObject();\n _this21.pushObject({ text: ' ' });\n _this21.pushObject({ text: 'world' });\n });\n\n this.assertText('Hello world');\n\n this.assertInvariants();\n\n this.replaceList([{ text: 'Hello' }, { text: ' ' }, { text: 'world' }]);\n\n this.assertText('Hello world');\n\n this.assertInvariants();\n };\n\n SingleEachTest.prototype['@test it maintains DOM stability for stable keys when list is updated'] = function () {\n var _this22 = this;\n\n this.makeList([{ text: 'Hello' }, { text: ' ' }, { text: 'world' }]);\n\n this.render('{{#each list key=\"text\" as |item|}}{{item.text}}{{/each}}');\n\n this.assertText('Hello world');\n\n this.assertStableRerender();\n\n var oldSnapshot = this.takeSnapshot();\n\n this.runTask(function () {\n _this22.unshiftObject({ text: ', ' });\n _this22.unshiftObject({ text: 'Hi' });\n _this22.pushObject({ text: '!' });\n _this22.pushObject({ text: 'earth' });\n });\n\n this.assertText('Hi, Hello world!earth');\n\n this.assertPartialInvariants(2, 5);\n\n this.replaceList([{ text: 'Hello' }, { text: ' ' }, { text: 'world' }]);\n\n this.assertText('Hello world');\n\n this.assertInvariants(oldSnapshot, this.takeSnapshot());\n };\n\n SingleEachTest.prototype['@test it renders all items with duplicate key values'] = function () {\n var _this23 = this;\n\n this.makeList([{ text: 'Hello' }, { text: 'Hello' }, { text: 'Hello' }]);\n\n this.render('{{#each list key=\"text\" as |item|}}{{item.text}}{{/each}}');\n\n this.assertText('HelloHelloHello');\n\n this.runTask(function () {\n _this23.forEach(function (hash) {\n return (0, _emberMetal.set)(hash, 'text', 'Goodbye');\n });\n });\n\n this.assertText('GoodbyeGoodbyeGoodbye');\n\n this.replaceList([{ text: 'Hello' }, { text: 'Hello' }, { text: 'Hello' }]);\n\n this.assertText('HelloHelloHello');\n };\n\n SingleEachTest.prototype['@test context is not changed to the inner scope inside an {{#each as}} block'] = function testContextIsNotChangedToTheInnerScopeInsideAnEachAsBlock() {\n var _this24 = this;\n\n this.makeList([{ name: 'Chad' }, { name: 'Zack' }, { name: 'Asa' }]);\n\n this.render('{{name}}-{{#each list as |person|}}{{name}}{{/each}}-{{name}}', {\n name: 'Joel'\n });\n\n this.assertText('Joel-JoelJoelJoel-Joel');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return _this24.shiftObject();\n });\n\n this.assertText('Joel-JoelJoel-Joel');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this24.context, 'name', 'Godfrey');\n });\n\n this.assertText('Godfrey-GodfreyGodfrey-Godfrey');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this24.context, 'name', 'Joel');\n });\n this.replaceList([{ name: 'Chad' }, { name: 'Zack' }, { name: 'Asa' }]);\n\n this.assertText('Joel-JoelJoelJoel-Joel');\n };\n\n SingleEachTest.prototype['@test can access the item and the original scope'] = function testCanAccessTheItemAndTheOriginalScope() {\n var _this25 = this;\n\n this.makeList([{ name: 'Tom Dale' }, { name: 'Yehuda Katz' }, { name: 'Godfrey Chan' }]);\n\n this.render('{{#each list key=\"name\" as |person|}}[{{title}}: {{person.name}}]{{/each}}', {\n title: 'Señor Engineer'\n });\n\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n\n this.runTask(function () {\n return _this25.rerender();\n });\n\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this25.objectAt(1), 'name', 'Stefan Penner');\n _this25.removeAt(0);\n _this25.pushObject({ name: 'Tom Dale' });\n _this25.insertAt(1, { name: 'Chad Hietala' });\n (0, _emberMetal.set)(_this25.context, 'title', 'Principal Engineer');\n });\n\n this.assertText('[Principal Engineer: Stefan Penner][Principal Engineer: Chad Hietala][Principal Engineer: Godfrey Chan][Principal Engineer: Tom Dale]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this25.context, 'title', 'Señor Engineer');\n });\n this.replaceList([{ name: 'Tom Dale' }, { name: 'Yehuda Katz' }, { name: 'Godfrey Chan' }]);\n\n this.assertText('[Señor Engineer: Tom Dale][Señor Engineer: Yehuda Katz][Señor Engineer: Godfrey Chan]');\n };\n\n SingleEachTest.prototype['@test the scoped variable is not available outside the {{#each}} block.'] = function testTheScopedVariableIsNotAvailableOutsideTheEachBlock() {\n var _this26 = this;\n\n this.makeList(['Yehuda']);\n\n this.render('{{name}}-{{#each list as |name|}}{{name}}{{/each}}-{{name}}', {\n name: 'Stef'\n });\n\n this.assertText('Stef-Yehuda-Stef');\n\n this.runTask(function () {\n return _this26.rerender();\n });\n\n this.assertText('Stef-Yehuda-Stef');\n\n this.runTask(function () {\n return _this26.pushObjects([' ', 'Katz']);\n });\n\n this.assertText('Stef-Yehuda Katz-Stef');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this26.context, 'name', 'Tom');\n });\n\n this.assertText('Tom-Yehuda Katz-Tom');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this26.context, 'name', 'Stef');\n });\n this.replaceList(['Yehuda']);\n\n this.assertText('Stef-Yehuda-Stef');\n };\n\n SingleEachTest.prototype['@test inverse template is displayed with context'] = function testInverseTemplateIsDisplayedWithContext() {\n var _this27 = this;\n\n this.makeList([]);\n\n this.render('{{#each list as |thing|}}Has Thing{{else}}No Thing {{otherThing}}{{/each}}', {\n otherThing: 'bar'\n });\n\n this.assertText('No Thing bar');\n\n this.runTask(function () {\n return _this27.rerender();\n });\n\n this.assertText('No Thing bar');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this27.context, 'otherThing', 'biz');\n });\n\n this.assertText('No Thing biz');\n\n this.runTask(function () {\n return _this27.pushObject('non-empty');\n });\n\n this.assertText('Has Thing');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this27.context, 'otherThing', 'baz');\n });\n\n this.assertText('Has Thing');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this27.context, 'otherThing', 'bar');\n });\n this.replaceList([]);\n\n this.assertText('No Thing bar');\n };\n\n SingleEachTest.prototype['@test content that are not initially present updates correctly GH#13983'] = function testContentThatAreNotInitiallyPresentUpdatesCorrectlyGH13983() {\n var _this28 = this;\n\n // The root cause of this bug is that Glimmer did not call `didInitializeChildren`\n // on the inserted `TryOpcode`, causing that `TryOpcode` to have an uninitialized\n // tag. Currently the only way to observe this the \"JUMP-IF-NOT-MODIFIED\", i.e. by\n // wrapping it in an component.\n\n this.registerComponent('x-wrapper', { template: '{{yield}}' });\n\n this.makeList([]);\n\n this.render('{{#x-wrapper}}{{#each list as |obj|}}[{{obj.text}}]{{/each}}{{/x-wrapper}}');\n\n this.assertText('');\n\n this.runTask(function () {\n return _this28.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this28.pushObject({ text: 'foo' });\n });\n\n this.assertText('[foo]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.objectAt(0), 'text', 'FOO');\n });\n\n this.assertText('[FOO]');\n\n this.runTask(function () {\n return _this28.pushObject({ text: 'bar' });\n });\n\n this.assertText('[FOO][bar]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.objectAt(1), 'text', 'BAR');\n });\n\n this.assertText('[FOO][BAR]');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.objectAt(1), 'text', 'baz');\n });\n\n this.assertText('[FOO][baz]');\n\n this.runTask(function () {\n return _this28.replace(1, 1, [{ text: 'BAZ' }]);\n });\n\n this.assertText('[FOO][BAZ]');\n\n this.replaceList([]);\n\n this.assertText('');\n };\n\n return SingleEachTest;\n }(AbstractEachTest);\n\n (0, _testCase.moduleFor)('Syntax test: {{#each}} with arrays', function (_SingleEachTest) {\n (0, _emberBabel.inherits)(_class5, _SingleEachTest);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SingleEachTest.apply(this, arguments));\n }\n\n _class5.prototype.makeList = function makeList(list) {\n return this.list = this.delegate = (0, _emberRuntime.A)(list);\n };\n\n return _class5;\n }(SingleEachTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each}} with array-like objects', function (_SingleEachTest2) {\n (0, _emberBabel.inherits)(_class6, _SingleEachTest2);\n\n function _class6() {\n (0, _emberBabel.classCallCheck)(this, _class6);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SingleEachTest2.apply(this, arguments));\n }\n\n _class6.prototype.makeList = function makeList(list) {\n return this.list = this.delegate = new ArrayLike(list);\n };\n\n return _class6;\n }(SingleEachTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each}} with array proxies, modifying itself', function (_SingleEachTest3) {\n (0, _emberBabel.inherits)(_class7, _SingleEachTest3);\n\n function _class7() {\n (0, _emberBabel.classCallCheck)(this, _class7);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SingleEachTest3.apply(this, arguments));\n }\n\n _class7.prototype.makeList = function makeList(list) {\n return this.list = this.delegate = _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(list) });\n };\n\n return _class7;\n }(SingleEachTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each}} with array proxies, replacing its content', function (_SingleEachTest4) {\n (0, _emberBabel.inherits)(_class8, _SingleEachTest4);\n\n function _class8() {\n (0, _emberBabel.classCallCheck)(this, _class8);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SingleEachTest4.apply(this, arguments));\n }\n\n _class8.prototype.makeList = function makeList(list) {\n var content = this.delegate = (0, _emberRuntime.A)(list);\n return this.list = _emberRuntime.ArrayProxy.create({ content: content });\n };\n\n _class8.prototype.replaceList = function replaceList(list) {\n var _this33 = this;\n\n this.runTask(function () {\n return _this33.list.set('content', (0, _emberRuntime.A)(list));\n });\n };\n\n return _class8;\n }(SingleEachTest));\n\n // TODO: Refactor the following tests so we can run them against different kind of arrays\n\n (0, _testCase.moduleFor)('Syntax test: Multiple {{#each as}} helpers', function (_RenderingTest2) {\n (0, _emberBabel.inherits)(_class9, _RenderingTest2);\n\n function _class9() {\n (0, _emberBabel.classCallCheck)(this, _class9);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest2.apply(this, arguments));\n }\n\n _class9.prototype['@test re-using the same variable with different {{#each}} blocks does not override each other'] = function testReUsingTheSameVariableWithDifferentEachBlocksDoesNotOverrideEachOther() {\n var _this35 = this;\n\n this.render('Admin: {{#each admins key=\"name\" as |person|}}[{{person.name}}]{{/each}} User: {{#each users key=\"name\" as |person|}}[{{person.name}}]{{/each}}', {\n admins: (0, _emberRuntime.A)([{ name: 'Tom Dale' }]),\n users: (0, _emberRuntime.A)([{ name: 'Yehuda Katz' }])\n });\n\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n\n this.runTask(function () {\n return _this35.rerender();\n });\n\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n\n this.runTask(function () {\n (0, _emberMetal.get)(_this35.context, 'admins').pushObject({ name: 'Godfrey Chan' });\n (0, _emberMetal.set)((0, _emberMetal.get)(_this35.context, 'users').objectAt(0), 'name', 'Stefan Penner');\n });\n\n this.assertText('Admin: [Tom Dale][Godfrey Chan] User: [Stefan Penner]');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this35.context, 'admins', [{ name: 'Tom Dale' }]);\n (0, _emberMetal.set)(_this35.context, 'users', [{ name: 'Yehuda Katz' }]);\n });\n\n this.assertText('Admin: [Tom Dale] User: [Yehuda Katz]');\n };\n\n _class9.prototype['@test an outer {{#each}}\\'s scoped variable does not clobber an inner {{#each}}\\'s property if they share the same name - Issue #1315'] = function () {\n var _this36 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n content: (0, _emberRuntime.A)(['X', 'Y']),\n options: (0, _emberRuntime.A)([{ label: 'One', value: 1 }, { label: 'Two', value: 2 }])\n });\n\n this.assertText('X-1:One2:TwoY-1:One2:Two');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n (0, _emberMetal.get)(_this36.context, 'content').pushObject('Z');\n (0, _emberMetal.set)((0, _emberMetal.get)(_this36.context, 'options').objectAt(0), 'value', 0);\n });\n\n this.assertText('X-0:One2:TwoY-0:One2:TwoZ-0:One2:Two');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this36.context, 'content', ['X', 'Y']);\n (0, _emberMetal.set)(_this36.context, 'options', [{ label: 'One', value: 1 }, { label: 'Two', value: 2 }]);\n });\n\n this.assertText('X-1:One2:TwoY-1:One2:Two');\n };\n\n _class9.prototype['@test the scoped variable is not available outside the {{#each}} block'] = function testTheScopedVariableIsNotAvailableOutsideTheEachBlock() {\n var _this37 = this;\n\n this.render('{{ring}}-{{#each first as |ring|}}{{ring}}-{{#each fifth as |ring|}}{{ring}}-{{#each ninth as |ring|}}{{ring}}-{{/each}}{{ring}}-{{/each}}{{ring}}-{{/each}}{{ring}}', {\n ring: 'Greed',\n first: (0, _emberRuntime.A)(['Limbo']),\n fifth: (0, _emberRuntime.A)(['Wrath']),\n ninth: (0, _emberRuntime.A)(['Treachery'])\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n\n this.runTask(function () {\n return _this37.rerender();\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this37.context, 'ring', 'O');\n (0, _emberMetal.get)(_this37.context, 'fifth').insertAt(0, 'D');\n });\n\n this.assertText('O-Limbo-D-Treachery-D-Wrath-Treachery-Wrath-Limbo-O');\n\n this.runTask(function () {\n (0, _emberMetal.get)(_this37.context, 'first').pushObject('I');\n (0, _emberMetal.get)(_this37.context, 'ninth').replace(0, 1, ['K']);\n });\n\n this.assertText('O-Limbo-D-K-D-Wrath-K-Wrath-Limbo-I-D-K-D-Wrath-K-Wrath-I-O');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this37.context, 'ring', 'Greed');\n (0, _emberMetal.set)(_this37.context, 'first', ['Limbo']);\n (0, _emberMetal.set)(_this37.context, 'fifth', ['Wrath']);\n (0, _emberMetal.set)(_this37.context, 'ninth', ['Treachery']);\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n };\n\n _class9.prototype['@test it should support {{#each name as |foo|}}, then {{#each foo as |bar|}}'] = function testItShouldSupportEachNameAsFooThenEachFooAsBar() {\n var _this38 = this;\n\n this.render('{{#each name key=\"@index\" as |foo|}}{{#each foo as |bar|}}{{bar}}{{/each}}{{/each}}', {\n name: (0, _emberRuntime.A)([(0, _emberRuntime.A)(['caterpillar'])])\n });\n\n this.assertText('caterpillar');\n\n this.runTask(function () {\n return _this38.rerender();\n });\n\n this.assertText('caterpillar');\n\n this.runTask(function () {\n var name = (0, _emberMetal.get)(_this38.context, 'name');\n name.objectAt(0).replace(0, 1, ['lady']);\n name.pushObject(['bird']);\n });\n\n this.assertText('ladybird');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this38.context, 'name', [['caterpillar']]);\n });\n\n this.assertText('caterpillar');\n };\n\n return _class9;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each as}} undefined path', function (_RenderingTest3) {\n (0, _emberBabel.inherits)(_class10, _RenderingTest3);\n\n function _class10() {\n (0, _emberBabel.classCallCheck)(this, _class10);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest3.apply(this, arguments));\n }\n\n _class10.prototype['@test keying off of `undefined` does not render'] = function testKeyingOffOfUndefinedDoesNotRender(assert) {\n var _this40 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject3), { foo: {} });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this40.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this40.context, 'foo', { bar: { baz: ['Here!'] } });\n });\n\n this.assertText('Here!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this40.context, 'foo', {});\n });\n\n this.assertText('');\n };\n\n return _class10;\n }(_testCase.RenderingTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#each}} with sparse arrays', function (_RenderingTest4) {\n (0, _emberBabel.inherits)(_class11, _RenderingTest4);\n\n function _class11() {\n (0, _emberBabel.classCallCheck)(this, _class11);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest4.apply(this, arguments));\n }\n\n _class11.prototype['@test it should itterate over holes'] = function testItShouldItterateOverHoles(assert) {\n var _this42 = this;\n\n var sparseArray = [];\n sparseArray[3] = 'foo';\n sparseArray[4] = 'bar';\n\n this.render((0, _abstractTestCase.strip)(_templateObject4), { list: (0, _emberRuntime.A)(sparseArray) });\n\n this.assertText('[0:][1:][2:][3:foo][4:bar]');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n var list = (0, _emberMetal.get)(_this42.context, 'list');\n list.pushObject('baz');\n });\n\n this.assertText('[0:][1:][2:][3:foo][4:bar][5:baz]');\n };\n\n return _class11;\n }(_testCase.RenderingTest));\n\n /* globals MutationObserver: false */\n if (typeof MutationObserver === 'function') {\n (0, _testCase.moduleFor)('Syntax test: {{#each as}} DOM mutation test', function (_RenderingTest5) {\n (0, _emberBabel.inherits)(_class12, _RenderingTest5);\n\n function _class12() {\n (0, _emberBabel.classCallCheck)(this, _class12);\n\n var _this43 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest5.call(this));\n\n _this43.observer = null;\n return _this43;\n }\n\n _class12.prototype.observe = function observe(element) {\n var observer = this.observer = new MutationObserver(function () {});\n observer.observe(element, { childList: true, characterData: true });\n };\n\n _class12.prototype.teardown = function teardown() {\n if (this.observer) {\n this.observer.disconnect();\n }\n\n _RenderingTest5.prototype.teardown.call(this);\n };\n\n _class12.prototype.assertNoMutation = function assertNoMutation() {\n this.assert.deepEqual(this.observer.takeRecords(), [], 'Expected no mutations');\n };\n\n _class12.prototype.expectMutations = function expectMutations() {\n this.assert.ok(this.observer.takeRecords().length > 0, 'Expected some mutations');\n };\n\n _class12.prototype['@test {{#each}} should not mutate a subtree when the array has not changed [GH #14332]'] = function testEachShouldNotMutateASubtreeWhenTheArrayHasNotChangedGH14332(assert) {\n var _this44 = this;\n\n var page = { title: 'Blog Posts' };\n\n var model = [{ title: 'Rails is omakase' }, { title: 'Ember is omakase' }];\n\n this.render((0, _abstractTestCase.strip)(_templateObject5), { page: page, model: model });\n\n this.assertHTML((0, _abstractTestCase.strip)(_templateObject6));\n\n this.observe(this.$('#posts')[0]);\n\n // MutationObserver is async\n return _emberRuntime.RSVP.Promise.resolve(function () {\n _this44.assertStableRerender();\n }).then(function () {\n _this44.assertNoMutation();\n\n _this44.runTask(function () {\n return (0, _emberMetal.set)(_this44.context, 'page', { title: 'Essays' });\n });\n\n _this44.assertHTML((0, _abstractTestCase.strip)(_templateObject7));\n }).then(function () {\n _this44.assertNoMutation();\n\n _this44.runTask(function () {\n return (0, _emberMetal.set)(_this44.context.page, 'title', 'Think Pieces™');\n });\n\n _this44.assertHTML((0, _abstractTestCase.strip)(_templateObject8));\n }).then(function () {\n // The last set is localized to the `page` object, so we do not expect Glimmer\n // to re-iterate the list\n _this44.assertNoMutation();\n });\n };\n\n return _class12;\n }(_testCase.RenderingTest));\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/each-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/each-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/experimental-syntax-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer', '@glimmer/runtime'], function (_emberBabel, _testCase, _abstractTestCase, _emberGlimmer, _runtime) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#-let obj as |bar|}}\\n {{bar}}\\n {{/-let}}\\n '], ['\\n {{#-let obj as |bar|}}\\n {{bar}}\\n {{/-let}}\\n ']);\n\n (0, _testCase.moduleFor)('registerMacros', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var originalMacros = _emberGlimmer._experimentalMacros.slice();\n\n (0, _emberGlimmer._registerMacros)(function (blocks, inlines) {\n blocks.add('-let', function (params, hash, _default, inverse, builder) {\n (0, _runtime.compileExpression)(params[0], builder);\n builder.invokeStatic(_default, 1);\n });\n });\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n _this.originalMacros = originalMacros;\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n _emberGlimmer._experimentalMacros.length = 0;\n this.originalMacros.forEach(function (macro) {\n return _emberGlimmer._experimentalMacros.push(macro);\n });\n\n _RenderingTest.prototype.teardown.call(this);\n };\n\n _class.prototype['@test allows registering custom syntax via private API'] = function testAllowsRegisteringCustomSyntaxViaPrivateAPI(assert) {\n this.render((0, _abstractTestCase.strip)(_templateObject), { obj: 'hello world!' });\n\n this.assertText('hello world!');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/experimental-syntax-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/experimental-syntax-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/if-unless-test', ['ember-babel', 'ember-glimmer/tests/utils/helpers', 'ember-runtime', 'ember-metal', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/shared-conditional-tests'], function (_emberBabel, _helpers, _emberRuntime, _emberMetal, _abstractTestCase, _testCase, _sharedConditionalTests) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if cond}}\\n {{#each numbers as |number|}}\\n {{foo-bar number=number}}\\n {{/each}}\\n {{else}}\\n Nothing Here!\\n {{/if}}'], ['\\n {{#if cond}}\\n {{#each numbers as |number|}}\\n {{foo-bar number=number}}\\n {{/each}}\\n {{else}}\\n Nothing Here!\\n {{/if}}']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if foo.bar.baz}}\\n Here!\\n {{else}}\\n Nothing Here!\\n {{/if}}'], ['\\n {{#if foo.bar.baz}}\\n Here!\\n {{else}}\\n Nothing Here!\\n {{/if}}']);\n\n (0, _testCase.moduleFor)('Syntax test: {{#if}} with inverse', function (_IfUnlessWithSyntaxTe) {\n (0, _emberBabel.inherits)(_class, _IfUnlessWithSyntaxTe);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessWithSyntaxTe.apply(this, arguments));\n }\n\n _class.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n return '{{#if ' + cond + '}}' + truthy + '{{else}}' + falsy + '{{/if}}';\n };\n\n return _class;\n }(_sharedConditionalTests.IfUnlessWithSyntaxTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#unless}} with inverse', function (_IfUnlessWithSyntaxTe2) {\n (0, _emberBabel.inherits)(_class2, _IfUnlessWithSyntaxTe2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessWithSyntaxTe2.apply(this, arguments));\n }\n\n _class2.prototype.templateFor = function templateFor(_ref2) {\n var cond = _ref2.cond,\n truthy = _ref2.truthy,\n falsy = _ref2.falsy;\n\n return '{{#unless ' + cond + '}}' + falsy + '{{else}}' + truthy + '{{/unless}}';\n };\n\n return _class2;\n }(_sharedConditionalTests.IfUnlessWithSyntaxTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#if}} and {{#unless}} without inverse', function (_IfUnlessWithSyntaxTe3) {\n (0, _emberBabel.inherits)(_class3, _IfUnlessWithSyntaxTe3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessWithSyntaxTe3.apply(this, arguments));\n }\n\n _class3.prototype.templateFor = function templateFor(_ref3) {\n var cond = _ref3.cond,\n truthy = _ref3.truthy,\n falsy = _ref3.falsy;\n\n return '{{#if ' + cond + '}}' + truthy + '{{/if}}{{#unless ' + cond + '}}' + falsy + '{{/unless}}';\n };\n\n return _class3;\n }(_sharedConditionalTests.IfUnlessWithSyntaxTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#if}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class4, _RenderingTest);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class4.prototype['@test using `if` with an `{{each}}` destroys components when transitioning to and from inverse (GH #12267)'] = function testUsingIfWithAnEachDestroysComponentsWhenTransitioningToAndFromInverseGH12267(assert) {\n var _this5 = this;\n\n var destroyedChildrenCount = 0;\n\n this.registerComponent('foo-bar', {\n template: '{{number}}',\n ComponentClass: _helpers.Component.extend({\n willDestroy: function () {\n this._super();\n destroyedChildrenCount++;\n }\n })\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { cond: true, numbers: (0, _emberRuntime.A)([1, 2, 3]) });\n\n this.assertText('123');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('123');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'cond', false);\n });\n\n this.assertText('Nothing Here!');\n assert.equal(destroyedChildrenCount, 3, 'the children were properly destroyed');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'cond', true);\n });\n\n this.assertText('123');\n };\n\n _class4.prototype['@test looking up `undefined` property defaults to false'] = function testLookingUpUndefinedPropertyDefaultsToFalse(assert) {\n var _this6 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), { foo: {} });\n\n this.assertText('Nothing Here!');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('Nothing Here!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'foo', { bar: { baz: true } });\n });\n\n this.assertText('Here!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'foo', {});\n });\n\n this.assertText('Nothing Here!');\n };\n\n return _class4;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/if-unless-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/if-unless-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/in-element-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/test-helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/component', 'ember-metal'], function (_emberBabel, _testCase, _testHelpers, _abstractTestCase, _component, _emberMetal) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#-in-element someElement}}\\n {{text}}\\n {{/-in-element}}\\n '], ['\\n {{#-in-element someElement}}\\n {{text}}\\n {{/-in-element}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#if showModal}}\\n {{#-in-element someElement}}\\n {{modal-display text=text}}\\n {{/-in-element}}\\n {{/if}}\\n '], ['\\n {{#if showModal}}\\n {{#-in-element someElement}}\\n {{modal-display text=text}}\\n {{/-in-element}}\\n {{/if}}\\n ']);\n\n (0, _testCase.moduleFor)('{{-in-element}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test allows rendering into an external element'] = function testAllowsRenderingIntoAnExternalElement(assert) {\n var _this2 = this;\n\n var someElement = document.createElement('div');\n\n this.render((0, _abstractTestCase.strip)(_templateObject), {\n someElement: someElement,\n text: 'Whoop!'\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n (0, _testHelpers.equalTokens)(someElement, 'Whoop!');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'text', 'Huzzah!!');\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n (0, _testHelpers.equalTokens)(someElement, 'Huzzah!!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this2.context, 'text', 'Whoop!');\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n (0, _testHelpers.equalTokens)(someElement, 'Whoop!');\n };\n\n _class.prototype['@test components are cleaned up properly'] = function testComponentsAreCleanedUpProperly(assert) {\n var _this3 = this;\n\n var hooks = [];\n\n var someElement = document.createElement('div');\n\n this.registerComponent('modal-display', {\n ComponentClass: _component.default.extend({\n didInsertElement: function () {\n hooks.push('didInsertElement');\n },\n willDestroyElement: function () {\n hooks.push('willDestroyElement');\n }\n }),\n\n template: '{{text}}'\n });\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n someElement: someElement,\n text: 'Whoop!',\n showModal: false\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n (0, _testHelpers.equalTokens)(someElement, '');\n\n this.assertStableRerender();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'showModal', true);\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, { content: 'Whoop!' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'text', 'Huzzah!');\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, { content: 'Huzzah!' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'text', 'Whoop!');\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n this.assertComponentElement(someElement.firstChild, { content: 'Whoop!' });\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'showModal', false);\n });\n\n (0, _testHelpers.equalTokens)(this.element, '');\n (0, _testHelpers.equalTokens)(someElement, '');\n\n assert.deepEqual(hooks, ['didInsertElement', 'willDestroyElement']);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/in-element-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/in-element-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/with-dynamic-var-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _testCase, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#-with-dynamic-vars foo=\"bar\"}}\\n {{-get-dynamic-var \\'foo\\'}}\\n {{/-with-dynamic-vars}}\\n '], ['\\n {{#-with-dynamic-vars foo=\"bar\"}}\\n {{-get-dynamic-var \\'foo\\'}}\\n {{/-with-dynamic-vars}}\\n ']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#-with-dynamic-vars outletState=\"bar\"}}\\n {{-get-dynamic-var \\'outletState\\'}}\\n {{/-with-dynamic-vars}}\\n '], ['\\n {{#-with-dynamic-vars outletState=\"bar\"}}\\n {{-get-dynamic-var \\'outletState\\'}}\\n {{/-with-dynamic-vars}}\\n ']);\n\n (0, _testCase.moduleFor)('{{-with-dynamic-var}}', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test does not allow setting values other than outletState'] = function testDoesNotAllowSettingValuesOtherThanOutletState(assert) {\n var _this2 = this;\n\n expectAssertion(function () {\n _this2.render((0, _abstractTestCase.strip)(_templateObject));\n }, /Using `-with-dynamic-scope` is only supported for `outletState` \\(you used `foo`\\)./);\n };\n\n _class.prototype['@test allows setting/getting outletState'] = function testAllowsSettingGettingOutletState(assert) {\n // this is simply asserting that we can write and read outletState\n // the actual value being used here is not what is used in real life\n // feel free to change the value being set and asserted as needed\n this.render((0, _abstractTestCase.strip)(_templateObject2));\n\n this.assertText('bar');\n };\n\n _class.prototype['@test does not allow setting values other than outletState'] = function testDoesNotAllowSettingValuesOtherThanOutletState(assert) {\n var _this3 = this;\n\n expectAssertion(function () {\n _this3.render('{{-get-dynamic-var \\'foo\\'}}');\n }, /Using `-get-dynamic-scope` is only supported for `outletState` \\(you used `foo`\\)./);\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/with-dynamic-var-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/with-dynamic-var-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/integration/syntax/with-test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/shared-conditional-tests', 'ember-glimmer/tests/utils/abstract-test-case'], function (_emberBabel, _emberMetal, _emberRuntime, _testCase, _sharedConditionalTests, _abstractTestCase) {\n 'use strict';\n\n var _templateObject = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{#with foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/with}}'], ['\\n {{#with foo.bar.baz as |thing|}}\\n {{thing}}\\n {{/with}}']),\n _templateObject2 = (0, _emberBabel.taggedTemplateLiteralLoose)(['\\n {{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n '], ['\\n {{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n {{#with committer2.name as |name|}}\\n [{{name}}\\n {{#with committer1.name as |name|}}\\n [{{name}}]\\n {{/with}}\\n {{name}}]\\n {{/with}}\\n {{name}}\\n ']);\n\n (0, _testCase.moduleFor)('Syntax test: {{#with}}', function (_IfUnlessWithSyntaxTe) {\n (0, _emberBabel.inherits)(_class, _IfUnlessWithSyntaxTe);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessWithSyntaxTe.apply(this, arguments));\n }\n\n _class.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n return '{{#with ' + cond + '}}' + truthy + '{{else}}' + falsy + '{{/with}}';\n };\n\n return _class;\n }(_sharedConditionalTests.IfUnlessWithSyntaxTest));\n\n (0, _testCase.moduleFor)('Syntax test: {{#with as}}', function (_IfUnlessWithSyntaxTe2) {\n (0, _emberBabel.inherits)(_class2, _IfUnlessWithSyntaxTe2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _IfUnlessWithSyntaxTe2.apply(this, arguments));\n }\n\n _class2.prototype.templateFor = function templateFor(_ref2) {\n var cond = _ref2.cond,\n truthy = _ref2.truthy,\n falsy = _ref2.falsy;\n\n return '{{#with ' + cond + ' as |test|}}' + truthy + '{{else}}' + falsy + '{{/with}}';\n };\n\n _class2.prototype['@test keying off of `undefined` does not render'] = function testKeyingOffOfUndefinedDoesNotRender(assert) {\n var _this3 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject), { foo: {} });\n\n this.assertText('');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'foo', { bar: { baz: 'Here!' } });\n });\n\n this.assertText('Here!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'foo', {});\n });\n\n this.assertText('');\n };\n\n _class2.prototype['@test it renders and hides the given block based on the conditional'] = function testItRendersAndHidesTheGivenBlockBasedOnTheConditional() {\n var _this4 = this;\n\n this.render('{{#with cond1 as |cond|}}{{cond.greeting}}{{else}}False{{/with}}', {\n cond1: { greeting: 'Hello' }\n });\n\n this.assertText('Hello');\n\n this.runTask(function () {\n return _this4.rerender();\n });\n\n this.assertText('Hello');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'cond1.greeting', 'Hello world');\n });\n\n this.assertText('Hello world');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'cond1', false);\n });\n\n this.assertText('False');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this4.context, 'cond1', { greeting: 'Hello' });\n });\n\n this.assertText('Hello');\n };\n\n _class2.prototype['@test can access alias and original scope'] = function testCanAccessAliasAndOriginalScope() {\n var _this5 = this;\n\n this.render('{{#with person as |tom|}}{{title}}: {{tom.name}}{{/with}}', {\n title: 'Señor Engineer',\n person: { name: 'Tom Dale' }\n });\n\n this.assertText('Señor Engineer: Tom Dale');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('Señor Engineer: Tom Dale');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'person.name', 'Yehuda Katz');\n (0, _emberMetal.set)(_this5.context, 'title', 'Principal Engineer');\n });\n\n this.assertText('Principal Engineer: Yehuda Katz');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this5.context, 'person', { name: 'Tom Dale' });\n (0, _emberMetal.set)(_this5.context, 'title', 'Señor Engineer');\n });\n\n this.assertText('Señor Engineer: Tom Dale');\n };\n\n _class2.prototype['@test the scoped variable is not available outside the {{#with}} block.'] = function testTheScopedVariableIsNotAvailableOutsideTheWithBlock() {\n var _this6 = this;\n\n this.render('{{name}}-{{#with other as |name|}}{{name}}{{/with}}-{{name}}', {\n name: 'Stef',\n other: 'Yehuda'\n });\n\n this.assertText('Stef-Yehuda-Stef');\n\n this.runTask(function () {\n return _this6.rerender();\n });\n\n this.assertText('Stef-Yehuda-Stef');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'other', 'Chad');\n });\n\n this.assertText('Stef-Chad-Stef');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this6.context, 'name', 'Tom');\n });\n\n this.assertText('Tom-Chad-Tom');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this6.context, 'name', 'Stef');\n (0, _emberMetal.set)(_this6.context, 'other', 'Yehuda');\n });\n\n this.assertText('Stef-Yehuda-Stef');\n };\n\n _class2.prototype['@test inverse template is displayed with context'] = function testInverseTemplateIsDisplayedWithContext() {\n var _this7 = this;\n\n this.render('{{#with falsyThing as |thing|}}Has Thing{{else}}No Thing {{otherThing}}{{/with}}', {\n falsyThing: null,\n otherThing: 'bar'\n });\n\n this.assertText('No Thing bar');\n\n this.runTask(function () {\n return _this7.rerender();\n });\n\n this.assertText('No Thing bar');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'otherThing', 'biz');\n });\n\n this.assertText('No Thing biz');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'falsyThing', true);\n });\n\n this.assertText('Has Thing');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'otherThing', 'baz');\n });\n\n this.assertText('Has Thing');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this7.context, 'otherThing', 'bar');\n (0, _emberMetal.set)(_this7.context, 'falsyThing', null);\n });\n\n this.assertText('No Thing bar');\n };\n\n _class2.prototype['@test can access alias of a proxy'] = function testCanAccessAliasOfAProxy() {\n var _this8 = this;\n\n this.render('{{#with proxy as |person|}}{{person.name}}{{/with}}', {\n proxy: _emberRuntime.ObjectProxy.create({ content: { name: 'Tom Dale' } })\n });\n\n this.assertText('Tom Dale');\n\n this.runTask(function () {\n return _this8.rerender();\n });\n\n this.assertText('Tom Dale');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'proxy.name', 'Yehuda Katz');\n });\n\n this.assertText('Yehuda Katz');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'proxy.content', { name: 'Godfrey Chan' });\n });\n\n this.assertText('Godfrey Chan');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'proxy.content.name', 'Stefan Penner');\n });\n\n this.assertText('Stefan Penner');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'proxy.content', null);\n });\n\n this.assertText('');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this8.context, 'proxy', _emberRuntime.ObjectProxy.create({ content: { name: 'Tom Dale' } }));\n });\n\n this.assertText('Tom Dale');\n };\n\n _class2.prototype['@test can access alias of an array'] = function testCanAccessAliasOfAnArray() {\n var _this9 = this;\n\n this.render('{{#with arrayThing as |words|}}{{#each words as |word|}}{{word}}{{/each}}{{/with}}', {\n arrayThing: (0, _emberRuntime.A)(['Hello', ' ', 'world'])\n });\n\n this.assertText('Hello world');\n\n this.runTask(function () {\n return _this9.rerender();\n });\n\n this.assertText('Hello world');\n\n this.runTask(function () {\n var array = (0, _emberMetal.get)(_this9.context, 'arrayThing');\n array.replace(0, 1, ['Goodbye']);\n (0, _emberRuntime.removeAt)(array, 1);\n array.insertAt(1, ', ');\n array.pushObject('!');\n });\n\n this.assertText('Goodbye, world!');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'arrayThing', ['Hello', ' ', 'world']);\n });\n\n this.assertText('Hello world');\n };\n\n _class2.prototype['@test `attrs` can be used as a block param [GH#14678]'] = function testAttrsCanBeUsedAsABlockParamGH14678() {\n var _this10 = this;\n\n this.render('{{#with hash as |attrs|}}[{{hash.foo}}-{{attrs.foo}}]{{/with}}', {\n hash: { foo: 'foo' }\n });\n\n this.assertText('[foo-foo]');\n\n this.runTask(function () {\n return _this10.rerender();\n });\n\n this.assertText('[foo-foo]');\n\n this.runTask(function () {\n return _this10.context.set('hash.foo', 'FOO');\n });\n\n this.assertText('[FOO-FOO]');\n\n this.runTask(function () {\n return _this10.context.set('hash.foo', 'foo');\n });\n\n this.assertText('[foo-foo]');\n };\n\n return _class2;\n }(_sharedConditionalTests.IfUnlessWithSyntaxTest));\n\n (0, _testCase.moduleFor)('Syntax test: Multiple {{#with as}} helpers', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class3, _RenderingTest);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class3.prototype['@test re-using the same variable with different {{#with}} blocks does not override each other'] = function testReUsingTheSameVariableWithDifferentWithBlocksDoesNotOverrideEachOther() {\n var _this12 = this;\n\n this.render('Admin: {{#with admin as |person|}}{{person.name}}{{/with}} User: {{#with user as |person|}}{{person.name}}{{/with}}', {\n admin: { name: 'Tom Dale' },\n user: { name: 'Yehuda Katz' }\n });\n\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this12.context, 'admin.name', 'Godfrey Chan');\n (0, _emberMetal.set)(_this12.context, 'user.name', 'Stefan Penner');\n });\n\n this.assertText('Admin: Godfrey Chan User: Stefan Penner');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this12.context, 'admin', { name: 'Tom Dale' });\n (0, _emberMetal.set)(_this12.context, 'user', { name: 'Yehuda Katz' });\n });\n\n this.assertText('Admin: Tom Dale User: Yehuda Katz');\n };\n\n _class3.prototype['@test the scoped variable is not available outside the {{#with}} block'] = function testTheScopedVariableIsNotAvailableOutsideTheWithBlock() {\n var _this13 = this;\n\n this.render('{{ring}}-{{#with first as |ring|}}{{ring}}-{{#with fifth as |ring|}}{{ring}}-{{#with ninth as |ring|}}{{ring}}-{{/with}}{{ring}}-{{/with}}{{ring}}-{{/with}}{{ring}}', {\n ring: 'Greed',\n first: 'Limbo',\n fifth: 'Wrath',\n ninth: 'Treachery'\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n\n this.runTask(function () {\n return _this13.rerender();\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'ring', 'O');\n (0, _emberMetal.set)(_this13.context, 'fifth', 'D');\n });\n\n this.assertText('O-Limbo-D-Treachery-D-Limbo-O');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'first', 'I');\n (0, _emberMetal.set)(_this13.context, 'ninth', 'K');\n });\n\n this.assertText('O-I-D-K-D-I-O');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this13.context, 'ring', 'Greed');\n (0, _emberMetal.set)(_this13.context, 'first', 'Limbo');\n (0, _emberMetal.set)(_this13.context, 'fifth', 'Wrath');\n (0, _emberMetal.set)(_this13.context, 'ninth', 'Treachery');\n });\n\n this.assertText('Greed-Limbo-Wrath-Treachery-Wrath-Limbo-Greed');\n };\n\n _class3.prototype['@test it should support {{#with name as |foo|}}, then {{#with foo as |bar|}}'] = function testItShouldSupportWithNameAsFooThenWithFooAsBar() {\n var _this14 = this;\n\n this.render('{{#with name as |foo|}}{{#with foo as |bar|}}{{bar}}{{/with}}{{/with}}', {\n name: 'caterpillar'\n });\n\n this.assertText('caterpillar');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('caterpillar');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'name', 'butterfly');\n });\n\n this.assertText('butterfly');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'name', 'caterpillar');\n });\n\n this.assertText('caterpillar');\n };\n\n _class3.prototype['@test updating the context should update the alias'] = function testUpdatingTheContextShouldUpdateTheAlias() {\n var _this15 = this;\n\n this.render('{{#with this as |person|}}{{person.name}}{{/with}}', {\n name: 'Los Pivots'\n });\n\n this.assertText('Los Pivots');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertText('Los Pivots');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'name', 'l\\'Pivots');\n });\n\n this.assertText('l\\'Pivots');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this15.context, 'name', 'Los Pivots');\n });\n\n this.assertText('Los Pivots');\n };\n\n _class3.prototype['@test nested {{#with}} blocks should have access to root context'] = function testNestedWithBlocksShouldHaveAccessToRootContext() {\n var _this16 = this;\n\n this.render((0, _abstractTestCase.strip)(_templateObject2), {\n name: 'ebryn',\n committer1: { name: 'trek' },\n committer2: { name: 'machty' }\n });\n\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'name', 'chancancode');\n });\n\n this.assertText('chancancode[trek[machty]trek]chancancode[machty[trek]machty]chancancode');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this16.context, 'committer1', { name: 'krisselden' });\n });\n\n this.assertText('chancancode[krisselden[machty]krisselden]chancancode[machty[krisselden]machty]chancancode');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'committer1.name', 'wycats');\n (0, _emberMetal.set)(_this16.context, 'committer2', { name: 'rwjblue' });\n });\n\n this.assertText('chancancode[wycats[rwjblue]wycats]chancancode[rwjblue[wycats]rwjblue]chancancode');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'name', 'ebryn');\n (0, _emberMetal.set)(_this16.context, 'committer1', { name: 'trek' });\n (0, _emberMetal.set)(_this16.context, 'committer2', { name: 'machty' });\n });\n\n this.assertText('ebryn[trek[machty]trek]ebryn[machty[trek]machty]ebryn');\n };\n\n return _class3;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/integration/syntax/with-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/integration/syntax/with-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/unit/layout-cache-test', ['ember-babel', 'ember-glimmer/tests/utils/test-case', '@glimmer/runtime', 'ember-utils'], function (_emberBabel, _testCase, _runtime, _emberUtils) {\n 'use strict';\n\n var Counter = function () {\n function Counter() {\n (0, _emberBabel.classCallCheck)(this, Counter);\n\n this.reset();\n }\n\n Counter.prototype.increment = function increment(key) {\n this.total++;\n return this.counts[key] = (this.counts[key] || 0) + 1;\n };\n\n Counter.prototype.get = function get(key) {\n return this.counts[key] || 0;\n };\n\n Counter.prototype.reset = function reset() {\n this.total = 0;\n this.counts = Object.create(null);\n };\n\n return Counter;\n }();\n\n var COUNTER = new Counter();\n\n var BasicCompiler = function () {\n function BasicCompiler(template) {\n (0, _emberBabel.classCallCheck)(this, BasicCompiler);\n\n this.template = template;\n }\n\n BasicCompiler.prototype.compile = function compile(builder) {\n var template = this.template;\n\n COUNTER.increment(this.constructor.id + '+' + template.id);\n builder.wrapLayout(template);\n };\n\n return BasicCompiler;\n }();\n\n var TypeOneCompiler = function (_BasicCompiler) {\n (0, _emberBabel.inherits)(TypeOneCompiler, _BasicCompiler);\n\n function TypeOneCompiler() {\n (0, _emberBabel.classCallCheck)(this, TypeOneCompiler);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicCompiler.apply(this, arguments));\n }\n\n return TypeOneCompiler;\n }(BasicCompiler);\n\n var TypeTwoCompiler = function (_BasicCompiler2) {\n (0, _emberBabel.inherits)(TypeTwoCompiler, _BasicCompiler2);\n\n function TypeTwoCompiler() {\n (0, _emberBabel.classCallCheck)(this, TypeTwoCompiler);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicCompiler2.apply(this, arguments));\n }\n\n return TypeTwoCompiler;\n }(BasicCompiler);\n\n TypeOneCompiler.id = 'type-one';\n TypeTwoCompiler.id = 'type-two';\n\n (0, _testCase.moduleFor)('Layout cache test', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this3 = (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.call(this));\n\n COUNTER.reset();\n return _this3;\n }\n\n _class.prototype.templateFor = function templateFor(content) {\n var Factory = this.compile(content);\n return this.env.getTemplate(Factory, this.owner);\n };\n\n _class.prototype['@test each template is only compiled once'] = function testEachTemplateIsOnlyCompiledOnce(assert) {\n var env = this.env;\n\n\n var template1 = this.templateFor('Hello world!');\n var template2 = this.templateFor('{{foo}} {{bar}}');\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template1.id), 1);\n assert.strictEqual(COUNTER.get('type-one+' + template2.id), 0);\n assert.strictEqual(COUNTER.total, 1);\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template1.id), 1);\n assert.strictEqual(COUNTER.get('type-one+' + template2.id), 0);\n assert.strictEqual(COUNTER.total, 1);\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template2) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template1.id), 1);\n assert.strictEqual(COUNTER.get('type-one+' + template2.id), 1);\n assert.strictEqual(COUNTER.total, 2);\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template2) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template2) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template2) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n\n assert.strictEqual(COUNTER.get('type-one+' + template1.id), 1);\n assert.strictEqual(COUNTER.get('type-one+' + template2.id), 1);\n assert.strictEqual(COUNTER.total, 2);\n };\n\n _class.prototype['@test each template/compiler pair is treated as unique'] = function testEachTemplateCompilerPairIsTreatedAsUnique(assert) {\n var env = this.env;\n\n\n var template = this.templateFor('Hello world!');\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template.id), 1);\n assert.strictEqual(COUNTER.get('type-two+' + template.id), 0);\n assert.strictEqual(COUNTER.total, 1);\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template.id), 1);\n assert.strictEqual(COUNTER.get('type-two+' + template.id), 0);\n assert.strictEqual(COUNTER.total, 1);\n\n assert.ok(env.getCompiledBlock(TypeTwoCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.strictEqual(COUNTER.get('type-one+' + template.id), 1);\n assert.strictEqual(COUNTER.get('type-two+' + template.id), 1);\n assert.strictEqual(COUNTER.total, 2);\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeTwoCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeTwoCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeTwoCompiler, template) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n\n assert.strictEqual(COUNTER.get('type-one+' + template.id), 1);\n assert.strictEqual(COUNTER.get('type-two+' + template.id), 1);\n assert.strictEqual(COUNTER.total, 2);\n };\n\n _class.prototype['@test a template instance is returned (ensures templates can be injected into layout property)'] = function testATemplateInstanceIsReturnedEnsuresTemplatesCanBeInjectedIntoLayoutProperty(assert) {\n var _this4 = this;\n\n var owner = this.owner,\n env = this.env;\n\n\n var templateInstanceFor = function (content) {\n var _Factory$create;\n\n var Factory = _this4.compile(content);\n return Factory.create((_Factory$create = {}, _Factory$create[_emberUtils.OWNER] = owner, _Factory$create.env = env, _Factory$create));\n };\n\n var template1 = templateInstanceFor('Hello world!');\n var template2 = templateInstanceFor('{{foo}} {{bar}}');\n\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template1) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n assert.ok(env.getCompiledBlock(TypeOneCompiler, template2) instanceof _runtime.CompiledDynamicTemplate, 'should return a CompiledDynamicTemplate');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/unit/layout-cache-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/unit/layout-cache-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/unit/outlet-test', ['ember-glimmer/views/outlet', 'ember-metal'], function (_outlet, _emberMetal) {\n 'use strict';\n\n QUnit.module('Glimmer OutletView');\n\n QUnit.test('render in the render queue', function (assert) {\n var didAppendOutletView = 0;\n var expectedOutlet = '#foo.bar';\n\n var renderer = {\n appendOutletView: function (view, target) {\n didAppendOutletView++;\n assert.equal(view, outletView);\n assert.equal(target, expectedOutlet);\n }\n };\n\n var outletView = new _outlet.default({}, renderer);\n\n (0, _emberMetal.run)(function () {\n assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (before appendTo)');\n outletView.appendTo(expectedOutlet);\n assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (sync after appendTo)');\n\n _emberMetal.run.schedule('actions', function () {\n return assert.equal(didAppendOutletView, 0, 'appendOutletView should not yet have been called (in actions)');\n });\n _emberMetal.run.schedule('render', function () {\n return assert.equal(didAppendOutletView, 1, 'appendOutletView should be invoked in render');\n });\n });\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/unit/outlet-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/unit/outlet-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/unit/template-factory-test', ['ember-babel', 'ember-template-compiler', 'ember-glimmer/index', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/tests/utils/helpers'], function (_emberBabel, _emberTemplateCompiler, _index, _testCase, _helpers) {\n 'use strict';\n\n (0, _testCase.moduleFor)('Template factory test', function (_RenderingTest) {\n (0, _emberBabel.inherits)(_class, _RenderingTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n _class.prototype['@test the template factory returned from precompile is the same as compile'] = function testTheTemplateFactoryReturnedFromPrecompileIsTheSameAsCompile(assert) {\n var env = this.env;\n\n\n var templateStr = 'Hello {{name}}';\n var options = { moduleName: 'some-module' };\n\n var spec = (0, _emberTemplateCompiler.precompile)(templateStr, options);\n var body = 'exports.default = template(' + spec + ');';\n var module = new Function('exports', 'template', body);\n var exports = {};\n module(exports, _index.template);\n var Precompiled = exports['default'];\n\n var Compiled = (0, _emberTemplateCompiler.compile)(templateStr, options);\n\n assert.equal(typeof Precompiled.create, 'function', 'precompiled is a factory');\n assert.ok(Precompiled.id, 'precompiled has id');\n\n assert.equal(typeof Compiled.create, 'function', 'compiled is a factory');\n assert.ok(Compiled.id, 'compiled has id');\n\n assert.equal(env._templateCache.misses, 0, 'misses 0');\n assert.equal(env._templateCache.hits, 0, 'hits 0');\n\n var precompiled = env.getTemplate(Precompiled, env.owner);\n\n assert.equal(env._templateCache.misses, 1, 'misses 1');\n assert.equal(env._templateCache.hits, 0, 'hits 0');\n\n var compiled = env.getTemplate(Compiled, env.owner);\n\n assert.equal(env._templateCache.misses, 2, 'misses 2');\n assert.equal(env._templateCache.hits, 0, 'hits 0');\n\n assert.ok(typeof precompiled.spec !== 'string', 'Spec has been parsed');\n assert.ok(typeof compiled.spec !== 'string', 'Spec has been parsed');\n\n this.registerComponent('x-precompiled', {\n ComponentClass: _helpers.Component.extend({\n layout: Precompiled\n })\n });\n\n this.registerComponent('x-compiled', {\n ComponentClass: _helpers.Component.extend({\n layout: Compiled\n })\n });\n\n this.render('{{x-precompiled name=\"precompiled\"}} {{x-compiled name=\"compiled\"}}');\n\n assert.equal(env._templateCache.misses, 2, 'misses 2');\n assert.equal(env._templateCache.hits, 2, 'hits 2');\n\n this.assertText('Hello precompiled Hello compiled');\n };\n\n return _class;\n }(_testCase.RenderingTest));\n});","QUnit.module('ESLint | ember-glimmer/tests/unit/template-factory-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/unit/template-factory-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/unit/utils/debug-stack-test', ['ember-glimmer/utils/debug-stack'], function (_debugStack) {\n 'use strict';\n\n if (true) {\n QUnit.module('Glimmer DebugStack');\n\n QUnit.test('pushing and popping', function (assert) {\n var stack = new _debugStack.default();\n\n assert.equal(stack.peek(), undefined);\n\n stack.push('template:application');\n\n assert.equal(stack.peek(), '\"template:application\"');\n\n stack.push('component:top-level-component');\n\n assert.equal(stack.peek(), '\"component:top-level-component\"');\n\n stack.pushEngine('engine:my-engine');\n stack.push('component:component-in-engine');\n\n assert.equal(stack.peek(), '\"component:component-in-engine\" (in \"engine:my-engine\")');\n\n stack.pop();\n stack.pop();\n var item = stack.pop();\n\n assert.equal(item, 'component:top-level-component');\n assert.equal(stack.peek(), '\"template:application\"');\n });\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/unit/utils/debug-stack-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/unit/utils/debug-stack-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/unit/utils/iterable-test', ['ember-babel', 'ember', 'ember-glimmer/tests/utils/test-case', 'ember-glimmer/utils/iterable', 'ember-glimmer/utils/references', 'ember-glimmer/helpers/each-in', '@glimmer/runtime'], function (_emberBabel, _ember, _testCase, _iterable, _references, _eachIn, _runtime) {\n 'use strict';\n\n var ITERATOR_KEY_GUID = 'be277757-bbbe-4620-9fcb-213ef433cca2';\n\n (0, _testCase.moduleFor)('Iterable', function (_TestCase) {\n (0, _emberBabel.inherits)(_class, _TestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TestCase.apply(this, arguments));\n }\n\n _class.prototype['@test iterates over an array'] = function testIteratesOverAnArray() {\n var iterator = iteratorForArray(['foo', 'bar']);\n\n this.assert.deepEqual(iterator.next(), { key: 'foo', memo: 0, value: 'foo' });\n this.assert.deepEqual(iterator.next(), { key: 'bar', memo: 1, value: 'bar' });\n };\n\n _class.prototype['@test iterates over an `Ember.A`'] = function testIteratesOverAnEmberA() {\n var iterator = iteratorForArray(_ember.default.A(['foo', 'bar']));\n\n this.assert.deepEqual(iterator.next(), { key: 'foo', memo: 0, value: 'foo' });\n this.assert.deepEqual(iterator.next(), { key: 'bar', memo: 1, value: 'bar' });\n };\n\n _class.prototype['@test returns `null` when out of items'] = function testReturnsNullWhenOutOfItems() {\n var iterator = iteratorForArray(['foo']);\n\n this.assert.deepEqual(iterator.next(), { key: 'foo', memo: 0, value: 'foo' });\n this.assert.deepEqual(iterator.next(), null);\n };\n\n _class.prototype['@test iterates over an array with indices as keys'] = function testIteratesOverAnArrayWithIndicesAsKeys() {\n var iterator = iteratorForArray(['foo', 'bar'], '@index');\n\n this.assert.deepEqual(iterator.next(), { key: '0', memo: 0, value: 'foo' });\n this.assert.deepEqual(iterator.next(), { key: '1', memo: 1, value: 'bar' });\n };\n\n _class.prototype['@test iterates over an array with identities as keys'] = function testIteratesOverAnArrayWithIdentitiesAsKeys() {\n var iterator = iteratorForArray(['foo', 'bar'], '@identity');\n\n this.assert.deepEqual(iterator.next(), { key: 'foo', memo: 0, value: 'foo' });\n this.assert.deepEqual(iterator.next(), { key: 'bar', memo: 1, value: 'bar' });\n };\n\n _class.prototype['@test iterates over an array with arbitrary properties as keys'] = function testIteratesOverAnArrayWithArbitraryPropertiesAsKeys() {\n var iterator = iteratorForArray([{ k: 'first', v: 'foo' }, { k: 'second', v: 'bar' }], 'k');\n\n this.assert.deepEqual(iterator.next(), { key: 'first', memo: 0, value: { k: 'first', v: 'foo' } });\n this.assert.deepEqual(iterator.next(), { key: 'second', memo: 1, value: { k: 'second', v: 'bar' } });\n };\n\n _class.prototype['@test errors on `#next` with an undefined ref'] = function testErrorsOnNextWithAnUndefinedRef() {\n var iterator = iteratorForArray(undefined);\n\n this.assert.expect(1);\n\n try {\n iterator.next();\n } catch (_ref) {\n var message = _ref.message;\n\n this.assert.equal(message, 'Cannot call next() on an empty iterator');\n }\n };\n\n _class.prototype['@test errors on `#next` with a null ref'] = function testErrorsOnNextWithANullRef() {\n var iterator = iteratorForArray(null);\n\n this.assert.expect(1);\n\n try {\n iterator.next();\n } catch (_ref2) {\n var message = _ref2.message;\n\n this.assert.equal(message, 'Cannot call next() on an empty iterator');\n }\n };\n\n _class.prototype['@test errors on `#next` with an invalid ref type'] = function testErrorsOnNextWithAnInvalidRefType() {\n var iterator = iteratorForArray('string');\n\n this.assert.expect(1);\n\n try {\n iterator.next();\n } catch (_ref3) {\n var message = _ref3.message;\n\n this.assert.equal(message, 'Cannot call next() on an empty iterator');\n }\n };\n\n _class.prototype['@test errors on `#next` with an empty array'] = function testErrorsOnNextWithAnEmptyArray() {\n var iterator = iteratorForArray([]);\n\n this.assert.expect(1);\n\n try {\n iterator.next();\n } catch (_ref4) {\n var message = _ref4.message;\n\n this.assert.equal(message, 'Cannot call next() on an empty iterator');\n }\n };\n\n _class.prototype['@test ensures keys are unique'] = function testEnsuresKeysAreUnique() {\n var iterator = iteratorForArray([{ k: 'qux', v: 'foo' }, { k: 'qux', v: 'bar' }, { k: 'qux', v: 'baz' }], 'k');\n\n this.assert.deepEqual(iterator.next(), { key: 'qux', memo: 0, value: { k: 'qux', v: 'foo' } });\n this.assert.deepEqual(iterator.next(), { key: 'qux' + ITERATOR_KEY_GUID + '1', memo: 1, value: { k: 'qux', v: 'bar' } });\n this.assert.deepEqual(iterator.next(), { key: 'qux' + ITERATOR_KEY_GUID + '2', memo: 2, value: { k: 'qux', v: 'baz' } });\n };\n\n return _class;\n }(_testCase.TestCase));\n\n function iteratorForArray(arr, keyPath) {\n var ref = new _references.UpdatableReference(arr);\n var iterable = (0, _iterable.default)(ref, keyPath);\n\n return iterable.iterate();\n }\n});","QUnit.module('ESLint | ember-glimmer/tests/unit/utils/iterable-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/unit/utils/iterable-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/abstract-test-case', ['exports', 'internal-test-helpers'], function (exports, _internalTestHelpers) {\n 'use strict';\n\n Object.defineProperty(exports, 'TestCase', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.AbstractTestCase;\n }\n });\n Object.defineProperty(exports, 'applyMixins', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.applyMixins;\n }\n });\n Object.defineProperty(exports, 'strip', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.strip;\n }\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/abstract-test-case.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/abstract-test-case.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/helpers', ['exports', 'ember-template-compiler', 'ember-glimmer'], function (exports, _emberTemplateCompiler, _emberGlimmer) {\n 'use strict';\n\n Object.defineProperty(exports, 'compile', {\n enumerable: true,\n get: function () {\n return _emberTemplateCompiler.compile;\n }\n });\n Object.defineProperty(exports, 'precompile', {\n enumerable: true,\n get: function () {\n return _emberTemplateCompiler.precompile;\n }\n });\n Object.defineProperty(exports, 'INVOKE', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.INVOKE;\n }\n });\n Object.defineProperty(exports, 'Helper', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.Helper;\n }\n });\n Object.defineProperty(exports, 'helper', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.helper;\n }\n });\n Object.defineProperty(exports, 'Component', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.Component;\n }\n });\n Object.defineProperty(exports, 'TextArea', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.TextArea;\n }\n });\n Object.defineProperty(exports, 'LinkComponent', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.LinkComponent;\n }\n });\n Object.defineProperty(exports, 'TextField', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.TextField;\n }\n });\n Object.defineProperty(exports, 'InteractiveRender', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.InteractiveRender;\n }\n });\n Object.defineProperty(exports, 'InertRenderer', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.InertRenderer;\n }\n });\n Object.defineProperty(exports, 'htmlSafe', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.htmlSafe;\n }\n });\n Object.defineProperty(exports, 'SafeString', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.SafeString;\n }\n });\n Object.defineProperty(exports, 'DOMChanges', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.DOMChanges;\n }\n });\n Object.defineProperty(exports, 'isHTMLSafe', {\n enumerable: true,\n get: function () {\n return _emberGlimmer.isHTMLSafe;\n }\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/helpers.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/shared-conditional-tests', ['exports', 'ember-babel', 'ember-utils', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case', 'ember-metal', 'ember-runtime', 'ember-glimmer/tests/utils/helpers'], function (exports, _emberBabel, _emberUtils, _abstractTestCase, _testCase, _emberMetal, _emberRuntime, _helpers) {\n 'use strict';\n\n exports.IfUnlessWithSyntaxTest = exports.TogglingSyntaxConditionalsTest = exports.IfUnlessHelperTest = exports.TogglingHelperConditionalsTest = exports.TogglingConditionalsTest = exports.ArrayTestCases = exports.ObjectTestCases = exports.BasicConditionalsTest = exports.StableFalsyGenerator = exports.StableTruthyGenerator = exports.FalsyGenerator = exports.TruthyGenerator = undefined;\n\n var _ObjectTestCases, _ArrayTestCases;\n\n var AbstractConditionalsTest = function (_RenderingTest) {\n (0, _emberBabel.inherits)(AbstractConditionalsTest, _RenderingTest);\n\n function AbstractConditionalsTest() {\n (0, _emberBabel.classCallCheck)(this, AbstractConditionalsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RenderingTest.apply(this, arguments));\n }\n\n AbstractConditionalsTest.prototype.wrapperFor = function wrapperFor(templates) {\n return templates.join('');\n };\n\n AbstractConditionalsTest.prototype.wrappedTemplateFor = function wrappedTemplateFor(options) {\n return this.wrapperFor([this.templateFor(options)]);\n };\n\n AbstractConditionalsTest.prototype.templateFor = function templateFor(_ref) {\n var cond = _ref.cond,\n truthy = _ref.truthy,\n falsy = _ref.falsy;\n\n // e.g. `{{#if ${cond}}}${truthy}{{else}}${falsy}{{/if}}`\n throw new Error('Not implemented: `templateFor`');\n };\n\n AbstractConditionalsTest.prototype.renderValues = function renderValues() {\n throw new Error('Not implemented: `renderValues`');\n };\n\n (0, _emberBabel.createClass)(AbstractConditionalsTest, [{\n key: 'truthyValue',\n get: function () {\n return true;\n }\n }, {\n key: 'falsyValue',\n get: function () {\n return false;\n }\n }]);\n return AbstractConditionalsTest;\n }(_testCase.RenderingTest);\n\n var AbstractGenerator = function () {\n function AbstractGenerator(cases) {\n (0, _emberBabel.classCallCheck)(this, AbstractGenerator);\n\n this.cases = cases;\n }\n\n /* abstract */\n\n\n AbstractGenerator.prototype.generate = function generate(value, idx) {\n throw new Error('Not implemented: `generate`');\n };\n\n return AbstractGenerator;\n }();\n\n var TruthyGenerator = exports.TruthyGenerator = function (_AbstractGenerator) {\n (0, _emberBabel.inherits)(TruthyGenerator, _AbstractGenerator);\n\n function TruthyGenerator() {\n (0, _emberBabel.classCallCheck)(this, TruthyGenerator);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractGenerator.apply(this, arguments));\n }\n\n TruthyGenerator.prototype.generate = function generate(value, idx) {\n var _ref2;\n\n return _ref2 = {}, _ref2['@test it should consider ' + JSON.stringify(value) + ' truthy [' + idx + ']'] = function () {\n var _this3 = this;\n\n this.renderValues(value);\n\n this.assertText('T1');\n\n this.runTask(function () {\n return _this3.rerender();\n });\n\n this.assertText('T1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'cond1', _this3.falsyValue);\n });\n\n this.assertText('F1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this3.context, 'cond1', value);\n });\n\n this.assertText('T1');\n }, _ref2;\n };\n\n return TruthyGenerator;\n }(AbstractGenerator);\n\n var FalsyGenerator = exports.FalsyGenerator = function (_AbstractGenerator2) {\n (0, _emberBabel.inherits)(FalsyGenerator, _AbstractGenerator2);\n\n function FalsyGenerator() {\n (0, _emberBabel.classCallCheck)(this, FalsyGenerator);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractGenerator2.apply(this, arguments));\n }\n\n FalsyGenerator.prototype.generate = function generate(value, idx) {\n var _ref3;\n\n return _ref3 = {}, _ref3['@test it should consider ' + JSON.stringify(value) + ' falsy [' + idx + ']'] = function () {\n var _this5 = this;\n\n this.renderValues(value);\n\n this.assertText('F1');\n\n this.runTask(function () {\n return _this5.rerender();\n });\n\n this.assertText('F1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'cond1', _this5.truthyValue);\n });\n\n this.assertText('T1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this5.context, 'cond1', value);\n });\n\n this.assertText('F1');\n }, _ref3;\n };\n\n return FalsyGenerator;\n }(AbstractGenerator);\n\n var StableTruthyGenerator = exports.StableTruthyGenerator = function (_TruthyGenerator) {\n (0, _emberBabel.inherits)(StableTruthyGenerator, _TruthyGenerator);\n\n function StableTruthyGenerator() {\n (0, _emberBabel.classCallCheck)(this, StableTruthyGenerator);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TruthyGenerator.apply(this, arguments));\n }\n\n StableTruthyGenerator.prototype.generate = function generate(value, idx) {\n var _assign;\n\n return (0, _emberUtils.assign)(_TruthyGenerator.prototype.generate.call(this, value, idx), (_assign = {}, _assign['@test it maintains DOM stability when condition changes from ' + value + ' to another truthy value and back [' + idx + ']'] = function () {\n var _this7 = this;\n\n this.renderValues(value);\n\n this.assertText('T1');\n\n this.takeSnapshot();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'cond1', _this7.truthyValue);\n });\n\n this.assertText('T1');\n\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this7.context, 'cond1', value);\n });\n\n this.assertText('T1');\n\n this.assertInvariants();\n }, _assign));\n };\n\n return StableTruthyGenerator;\n }(TruthyGenerator);\n\n var StableFalsyGenerator = exports.StableFalsyGenerator = function (_FalsyGenerator) {\n (0, _emberBabel.inherits)(StableFalsyGenerator, _FalsyGenerator);\n\n function StableFalsyGenerator() {\n (0, _emberBabel.classCallCheck)(this, StableFalsyGenerator);\n return (0, _emberBabel.possibleConstructorReturn)(this, _FalsyGenerator.apply(this, arguments));\n }\n\n StableFalsyGenerator.prototype.generate = function generate(value, idx) {\n var _assign2;\n\n return (0, _emberUtils.assign)(_FalsyGenerator.prototype.generate.call(this, value), (_assign2 = {}, _assign2['@test it maintains DOM stability when condition changes from ' + value + ' to another falsy value and back [' + idx + ']'] = function () {\n var _this9 = this;\n\n this.renderValues(value);\n\n this.assertText('F1');\n\n this.takeSnapshot();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'cond1', _this9.falsyValue);\n });\n\n this.assertText('F1');\n\n this.assertInvariants();\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this9.context, 'cond1', value);\n });\n\n this.assertText('F1');\n\n this.assertInvariants();\n }, _assign2));\n };\n\n return StableFalsyGenerator;\n }(FalsyGenerator);\n\n var ObjectProxyGenerator = function (_AbstractGenerator3) {\n (0, _emberBabel.inherits)(ObjectProxyGenerator, _AbstractGenerator3);\n\n function ObjectProxyGenerator() {\n (0, _emberBabel.classCallCheck)(this, ObjectProxyGenerator);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractGenerator3.apply(this, arguments));\n }\n\n ObjectProxyGenerator.prototype.generate = function generate(value, idx) {\n // This is inconsistent with our usual to-bool policy, but the current proxy implementation\n // simply uses !!content to determine truthiness\n if (value) {\n var _ref4;\n\n return _ref4 = {}, _ref4['@test it should consider an object proxy with `' + JSON.stringify(value) + '` truthy [' + idx + ']'] = function () {\n var _this11 = this;\n\n this.renderValues(_emberRuntime.ObjectProxy.create({ content: value }));\n\n this.assertText('T1');\n\n this.runTask(function () {\n return _this11.rerender();\n });\n\n this.assertText('T1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'cond1.content', _this11.falsyValue);\n });\n\n this.assertText('F1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this11.context, 'cond1', _emberRuntime.ObjectProxy.create({ content: value }));\n });\n\n this.assertText('T1');\n }, _ref4;\n } else {\n var _ref5;\n\n return _ref5 = {}, _ref5['@test it should consider an object proxy with `' + JSON.stringify(value) + '` falsy [' + idx + ']'] = function () {\n var _this12 = this;\n\n this.renderValues(_emberRuntime.ObjectProxy.create({ content: value }));\n\n this.assertText('F1');\n\n this.runTask(function () {\n return _this12.rerender();\n });\n\n this.assertText('F1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'cond1.content', _this12.truthyValue);\n });\n\n this.assertText('T1');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this12.context, 'cond1', _emberRuntime.ObjectProxy.create({ content: value }));\n });\n\n this.assertText('F1');\n }, _ref5;\n }\n };\n\n return ObjectProxyGenerator;\n }(AbstractGenerator);\n\n var BasicConditionalsTest = exports.BasicConditionalsTest = function (_AbstractConditionals) {\n (0, _emberBabel.inherits)(BasicConditionalsTest, _AbstractConditionals);\n\n function BasicConditionalsTest() {\n (0, _emberBabel.classCallCheck)(this, BasicConditionalsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractConditionals.apply(this, arguments));\n }\n\n BasicConditionalsTest.prototype['@test it renders the corresponding block based on the conditional'] = function testItRendersTheCorrespondingBlockBasedOnTheConditional() {\n var _this14 = this;\n\n this.renderValues(this.truthyValue, this.falsyValue);\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this14.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this14.context, 'cond1', _this14.falsyValue);\n });\n\n this.assertText('F1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this14.context, 'cond1', _this14.truthyValue);\n (0, _emberMetal.set)(_this14.context, 'cond2', _this14.truthyValue);\n });\n\n this.assertText('T1T2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this14.context, 'cond1', _this14.truthyValue);\n (0, _emberMetal.set)(_this14.context, 'cond2', _this14.falsyValue);\n });\n\n this.assertText('T1F2');\n };\n\n return BasicConditionalsTest;\n }(AbstractConditionalsTest);\n\n // Testing behaviors related to ember objects, object proxies, etc\n var ObjectTestCases = exports.ObjectTestCases = (_ObjectTestCases = {}, _ObjectTestCases['@test it considers object proxies without content falsy'] = function () {\n var _this15 = this;\n\n this.renderValues(_emberRuntime.ObjectProxy.create({ content: {} }), _emberRuntime.ObjectProxy.create({ content: _emberRuntime.Object.create() }), _emberRuntime.ObjectProxy.create({ content: null }));\n\n this.assertText('T1T2F3');\n\n this.runTask(function () {\n return _this15.rerender();\n });\n\n this.assertText('T1T2F3');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this15.context, 'cond1.content', null);\n (0, _emberMetal.set)(_this15.context, 'cond2.content', null);\n });\n\n this.assertText('F1F2F3');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this15.context, 'cond1.content', _emberRuntime.Object.create());\n (0, _emberMetal.set)(_this15.context, 'cond2.content', {});\n (0, _emberMetal.set)(_this15.context, 'cond3.content', { foo: 'bar' });\n });\n\n this.assertText('T1T2T3');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this15.context, 'cond1', _emberRuntime.ObjectProxy.create({ content: {} }));\n (0, _emberMetal.set)(_this15.context, 'cond2', _emberRuntime.ObjectProxy.create({ content: _emberRuntime.Object.create() }));\n (0, _emberMetal.set)(_this15.context, 'cond3', _emberRuntime.ObjectProxy.create({ content: null }));\n });\n\n this.assertText('T1T2F3');\n }, _ObjectTestCases);\n\n // Testing behaviors related to arrays and array proxies\n var ArrayTestCases = exports.ArrayTestCases = (_ArrayTestCases = {}, _ArrayTestCases['@test it considers empty arrays falsy'] = function () {\n var _this16 = this;\n\n this.renderValues((0, _emberRuntime.A)(['hello']), (0, _emberRuntime.A)());\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this16.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return (0, _emberRuntime.removeAt)((0, _emberMetal.get)(_this16.context, 'cond1'), 0);\n });\n\n this.assertText('F1F2');\n\n this.runTask(function () {\n (0, _emberMetal.get)(_this16.context, 'cond1').pushObject('hello');\n (0, _emberMetal.get)(_this16.context, 'cond2').pushObjects([1]);\n });\n\n this.assertText('T1T2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this16.context, 'cond1', (0, _emberRuntime.A)(['hello']));\n (0, _emberMetal.set)(_this16.context, 'cond2', (0, _emberRuntime.A)());\n });\n\n this.assertText('T1F2');\n }, _ArrayTestCases['@test it considers array proxies without content falsy'] = function () {\n var _this17 = this;\n\n this.renderValues(_emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(['hello']) }), _emberRuntime.ArrayProxy.create({ content: null }));\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this17.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'cond1.content', null);\n (0, _emberMetal.set)(_this17.context, 'cond2.content', null);\n });\n\n this.assertText('F1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'cond1.content', (0, _emberRuntime.A)(['hello']));\n (0, _emberMetal.set)(_this17.context, 'cond2.content', (0, _emberRuntime.A)([1]));\n });\n\n this.assertText('T1T2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this17.context, 'cond1', _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(['hello']) }));\n (0, _emberMetal.set)(_this17.context, 'cond2', _emberRuntime.ArrayProxy.create({ content: null }));\n });\n\n this.assertText('T1F2');\n }, _ArrayTestCases['@test it considers array proxies with empty arrays falsy'] = function () {\n var _this18 = this;\n\n this.renderValues(_emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(['hello']) }), _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)() }));\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this18.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return (0, _emberRuntime.removeAt)((0, _emberMetal.get)(_this18.context, 'cond1.content'), 0);\n });\n\n this.assertText('F1F2');\n\n this.runTask(function () {\n (0, _emberMetal.get)(_this18.context, 'cond1.content').pushObject('hello');\n (0, _emberMetal.get)(_this18.context, 'cond2.content').pushObjects([1]);\n });\n\n this.assertText('T1T2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this18.context, 'cond1', _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)(['hello']) }));\n (0, _emberMetal.set)(_this18.context, 'cond2', _emberRuntime.ArrayProxy.create({ content: (0, _emberRuntime.A)() }));\n });\n\n this.assertText('T1F2');\n }, _ArrayTestCases);\n\n var IfUnlessWithTestCases = [new StableTruthyGenerator([true, ' ', 'hello', 'false', 'null', 'undefined', 1, ['hello'], (0, _emberRuntime.A)(['hello']), {}, { foo: 'bar' }, _emberRuntime.Object.create(), _emberRuntime.Object.create({ foo: 'bar' }), _emberRuntime.ObjectProxy.create({ content: true }), Object, function () {},\n /*jshint -W053 */\n new String('hello'), new String(''), new Boolean(true), new Boolean(false),\n /*jshint +W053 */\n new Date()]), new StableFalsyGenerator([false, null, undefined, '', 0, [], (0, _emberRuntime.A)(), _emberRuntime.ObjectProxy.create({ content: undefined })]), new ObjectProxyGenerator([true, ' ', 'hello', 'false', 'null', 'undefined', 1, ['hello'], (0, _emberRuntime.A)(['hello']), _emberRuntime.ArrayProxy.create({ content: ['hello'] }), _emberRuntime.ArrayProxy.create({ content: [] }), {}, { foo: 'bar' }, _emberRuntime.Object.create(), _emberRuntime.Object.create({ foo: 'bar' }), _emberRuntime.ObjectProxy.create({ content: true }), _emberRuntime.ObjectProxy.create({ content: undefined }),\n /*jshint -W053 */\n new String('hello'), new String(''), new Boolean(true), new Boolean(false),\n /*jshint +W053 */\n new Date(), false, null, undefined, '', 0, [], (0, _emberRuntime.A)()]), ObjectTestCases, ArrayTestCases];\n\n // Testing behaviors shared across the \"toggling\" conditionals, i.e. {{#if}},\n // {{#unless}}, {{#with}}, {{#each}}, {{#each-in}}, (if) and (unless)\n\n var TogglingConditionalsTest = exports.TogglingConditionalsTest = function (_BasicConditionalsTes) {\n (0, _emberBabel.inherits)(TogglingConditionalsTest, _BasicConditionalsTes);\n\n function TogglingConditionalsTest() {\n (0, _emberBabel.classCallCheck)(this, TogglingConditionalsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _BasicConditionalsTes.apply(this, arguments));\n }\n\n return TogglingConditionalsTest;\n }(BasicConditionalsTest);\n\n var TogglingHelperConditionalsTest = exports.TogglingHelperConditionalsTest = function (_TogglingConditionals) {\n (0, _emberBabel.inherits)(TogglingHelperConditionalsTest, _TogglingConditionals);\n\n function TogglingHelperConditionalsTest() {\n (0, _emberBabel.classCallCheck)(this, TogglingHelperConditionalsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingConditionals.apply(this, arguments));\n }\n\n TogglingHelperConditionalsTest.prototype.renderValues = function renderValues() {\n var templates = [];\n var context = {};\n\n for (var i = 1; i <= arguments.length; i++) {\n templates.push(this.templateFor({ cond: 'cond' + i, truthy: 't' + i, falsy: 'f' + i }));\n context['t' + i] = 'T' + i;\n context['f' + i] = 'F' + i;\n context['cond' + i] = arguments.length <= i - 1 ? undefined : arguments[i - 1];\n }\n\n var wrappedTemplate = this.wrapperFor(templates);\n this.render(wrappedTemplate, context);\n };\n\n TogglingHelperConditionalsTest.prototype['@test it has access to the outer scope from both templates'] = function testItHasAccessToTheOuterScopeFromBothTemplates() {\n var _this21 = this;\n\n var template = this.wrapperFor([this.templateFor({ cond: 'cond1', truthy: 'truthy', falsy: 'falsy' }), this.templateFor({ cond: 'cond2', truthy: 'truthy', falsy: 'falsy' })]);\n\n this.render(template, { cond1: this.truthyValue, cond2: this.falsyValue, truthy: 'YES', falsy: 'NO' });\n\n this.assertText('YESNO');\n\n this.runTask(function () {\n return _this21.rerender();\n });\n\n this.assertText('YESNO');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this21.context, 'truthy', 'YASS');\n (0, _emberMetal.set)(_this21.context, 'falsy', 'NOPE');\n });\n\n this.assertText('YASSNOPE');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this21.context, 'cond1', _this21.falsyValue);\n (0, _emberMetal.set)(_this21.context, 'cond2', _this21.truthyValue);\n });\n\n this.assertText('NOPEYASS');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this21.context, 'truthy', 'YES');\n (0, _emberMetal.set)(_this21.context, 'falsy', 'NO');\n (0, _emberMetal.set)(_this21.context, 'cond1', _this21.truthyValue);\n (0, _emberMetal.set)(_this21.context, 'cond2', _this21.falsyValue);\n });\n\n this.assertText('YESNO');\n };\n\n TogglingHelperConditionalsTest.prototype['@test it does not update when the unbound helper is used'] = function testItDoesNotUpdateWhenTheUnboundHelperIsUsed() {\n var _this22 = this;\n\n var template = this.wrapperFor([this.templateFor({ cond: '(unbound cond1)', truthy: '\"T1\"', falsy: '\"F1\"' }), this.templateFor({ cond: '(unbound cond2)', truthy: '\"T2\"', falsy: '\"F2\"' })]);\n\n this.render(template, { cond1: this.truthyValue, cond2: this.falsyValue });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this22.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this22.context, 'cond1', _this22.falsyValue);\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this22.context, 'cond1', _this22.truthyValue);\n (0, _emberMetal.set)(_this22.context, 'cond2', _this22.truthyValue);\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this22.context, 'cond1', _this22.truthyValue);\n (0, _emberMetal.set)(_this22.context, 'cond2', _this22.falsyValue);\n });\n\n this.assertText('T1F2');\n };\n\n TogglingHelperConditionalsTest.prototype['@test evaluation should be lazy'] = function testEvaluationShouldBeLazy(assert) {\n var _this23 = this;\n\n var truthyEvaluated = void 0;\n var falsyEvaluated = void 0;\n\n var withoutEvaluatingTruthy = function (callback) {\n truthyEvaluated = false;\n callback();\n assert.ok(!truthyEvaluated, 'x-truthy is not evaluated');\n };\n\n var withoutEvaluatingFalsy = function (callback) {\n falsyEvaluated = false;\n callback();\n assert.ok(!falsyEvaluated, 'x-falsy is not evaluated');\n };\n\n this.registerHelper('x-truthy', {\n compute: function () {\n truthyEvaluated = true;\n return 'T';\n }\n });\n\n this.registerHelper('x-falsy', {\n compute: function () {\n falsyEvaluated = true;\n return 'F';\n }\n });\n\n var template = this.wrappedTemplateFor({ cond: 'cond', truthy: '(x-truthy)', falsy: '(x-falsy)' });\n\n withoutEvaluatingFalsy(function () {\n return _this23.render(template, { cond: _this23.truthyValue });\n });\n\n this.assertText('T');\n\n withoutEvaluatingFalsy(function () {\n return _this23.runTask(function () {\n return _this23.rerender();\n });\n });\n\n this.assertText('T');\n\n withoutEvaluatingTruthy(function () {\n return _this23.runTask(function () {\n return (0, _emberMetal.set)(_this23.context, 'cond', _this23.falsyValue);\n });\n });\n\n this.assertText('F');\n\n withoutEvaluatingTruthy(function () {\n return _this23.runTask(function () {\n return _this23.rerender();\n });\n });\n\n this.assertText('F');\n\n withoutEvaluatingFalsy(function () {\n return _this23.runTask(function () {\n return (0, _emberMetal.set)(_this23.context, 'cond', _this23.truthyValue);\n });\n });\n\n this.assertText('T');\n };\n\n return TogglingHelperConditionalsTest;\n }(TogglingConditionalsTest);\n\n var IfUnlessHelperTest = exports.IfUnlessHelperTest = function (_TogglingHelperCondit) {\n (0, _emberBabel.inherits)(IfUnlessHelperTest, _TogglingHelperCondit);\n\n function IfUnlessHelperTest() {\n (0, _emberBabel.classCallCheck)(this, IfUnlessHelperTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingHelperCondit.apply(this, arguments));\n }\n\n return IfUnlessHelperTest;\n }(TogglingHelperConditionalsTest);\n\n _abstractTestCase.applyMixins.apply(undefined, [IfUnlessHelperTest].concat(IfUnlessWithTestCases));\n\n // Testing behaviors shared across the \"toggling\" syntatical constructs,\n // i.e. {{#if}}, {{#unless}}, {{#with}}, {{#each}} and {{#each-in}}\n\n var TogglingSyntaxConditionalsTest = exports.TogglingSyntaxConditionalsTest = function (_TogglingConditionals2) {\n (0, _emberBabel.inherits)(TogglingSyntaxConditionalsTest, _TogglingConditionals2);\n\n function TogglingSyntaxConditionalsTest() {\n (0, _emberBabel.classCallCheck)(this, TogglingSyntaxConditionalsTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingConditionals2.apply(this, arguments));\n }\n\n TogglingSyntaxConditionalsTest.prototype.renderValues = function renderValues() {\n var templates = [];\n var context = {};\n\n for (var i = 1; i <= arguments.length; i++) {\n templates.push(this.templateFor({ cond: 'cond' + i, truthy: '{{t}}' + i, falsy: '{{f}}' + i }));\n context['cond' + i] = arguments.length <= i - 1 ? undefined : arguments[i - 1];\n }\n\n var wrappedTemplate = this.wrapperFor(templates);\n this.render(wrappedTemplate, (0, _emberUtils.assign)({ t: 'T', f: 'F' }, context));\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test it does not update when the unbound helper is used'] = function testItDoesNotUpdateWhenTheUnboundHelperIsUsed() {\n var _this26 = this;\n\n var template = '' + this.templateFor({ cond: '(unbound cond1)', truthy: 'T1', falsy: 'F1' }) + this.templateFor({ cond: '(unbound cond2)', truthy: 'T2', falsy: 'F2' });\n\n this.render(template, { cond1: this.truthyValue, cond2: this.falsyValue });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return _this26.rerender();\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n return (0, _emberMetal.set)(_this26.context, 'cond1', _this26.falsyValue);\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this26.context, 'cond1', _this26.truthyValue);\n (0, _emberMetal.set)(_this26.context, 'cond2', _this26.truthyValue);\n });\n\n this.assertText('T1F2');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this26.context, 'cond1', _this26.truthyValue);\n (0, _emberMetal.set)(_this26.context, 'cond2', _this26.falsyValue);\n });\n\n this.assertText('T1F2');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test it has access to the outer scope from both templates'] = function testItHasAccessToTheOuterScopeFromBothTemplates() {\n var _this27 = this;\n\n var template = this.wrapperFor([this.templateFor({ cond: 'cond1', truthy: '{{truthy}}', falsy: '{{falsy}}' }), this.templateFor({ cond: 'cond2', truthy: '{{truthy}}', falsy: '{{falsy}}' })]);\n\n this.render(template, { cond1: this.truthyValue, cond2: this.falsyValue, truthy: 'YES', falsy: 'NO' });\n\n this.assertText('YESNO');\n\n this.runTask(function () {\n return _this27.rerender();\n });\n\n this.assertText('YESNO');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this27.context, 'truthy', 'YASS');\n (0, _emberMetal.set)(_this27.context, 'falsy', 'NOPE');\n });\n\n this.assertText('YASSNOPE');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this27.context, 'cond1', _this27.falsyValue);\n (0, _emberMetal.set)(_this27.context, 'cond2', _this27.truthyValue);\n });\n\n this.assertText('NOPEYASS');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this27.context, 'truthy', 'YES');\n (0, _emberMetal.set)(_this27.context, 'falsy', 'NO');\n (0, _emberMetal.set)(_this27.context, 'cond1', _this27.truthyValue);\n (0, _emberMetal.set)(_this27.context, 'cond2', _this27.falsyValue);\n });\n\n this.assertText('YESNO');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test it updates correctly when enclosing another conditional'] = function testItUpdatesCorrectlyWhenEnclosingAnotherConditional() {\n var _this28 = this;\n\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n var inner = this.templateFor({ cond: 'inner', truthy: 'T-inner', falsy: 'F-inner' });\n var template = this.wrappedTemplateFor({ cond: 'outer', truthy: inner, falsy: 'F-outer' });\n\n this.render(template, { outer: this.truthyValue, inner: this.truthyValue });\n\n this.assertText('T-inner');\n\n this.runTask(function () {\n return _this28.rerender();\n });\n\n this.assertText('T-inner');\n\n // Changes the inner bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.context, 'inner', _this28.falsyValue);\n });\n\n this.assertText('F-inner');\n\n // Now rerender the outer conditional, which require first clearing its bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this28.context, 'outer', _this28.falsyValue);\n });\n\n this.assertText('F-outer');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test it updates correctly when enclosing #each'] = function testItUpdatesCorrectlyWhenEnclosingEach() {\n var _this29 = this;\n\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n var template = this.wrappedTemplateFor({ cond: 'outer', truthy: '{{#each inner as |text|}}{{text}}{{/each}}', falsy: 'F-outer' });\n\n this.render(template, { outer: this.truthyValue, inner: ['inner', '-', 'before'] });\n\n this.assertText('inner-before');\n\n this.runTask(function () {\n return _this29.rerender();\n });\n\n this.assertText('inner-before');\n\n // Changes the inner bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'inner', ['inner-after']);\n });\n\n this.assertText('inner-after');\n\n // Now rerender the outer conditional, which require first clearing its bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'outer', _this29.falsyValue);\n });\n\n this.assertText('F-outer');\n\n // Reset\n this.runTask(function () {\n (0, _emberMetal.set)(_this29.context, 'inner', ['inner-again']);\n (0, _emberMetal.set)(_this29.context, 'outer', _this29.truthyValue);\n });\n\n this.assertText('inner-again');\n\n // Now clear the inner bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'inner', []);\n });\n\n this.assertText('');\n\n // Now rerender the outer conditional, which require first clearing its bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this29.context, 'outer', _this29.falsyValue);\n });\n\n this.assertText('F-outer');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test it updates correctly when enclosing triple-curlies'] = function testItUpdatesCorrectlyWhenEnclosingTripleCurlies() {\n var _this30 = this;\n\n // This tests whether the outer conditional tracks its bounds correctly as its inner bounds changes\n var template = this.wrappedTemplateFor({ cond: 'outer', truthy: '{{{inner}}}', falsy: 'F-outer' });\n\n this.render(template, { outer: this.truthyValue, inner: 'inner-before' });\n\n this.assertText('inner-before');\n\n this.runTask(function () {\n return _this30.rerender();\n });\n\n this.assertText('inner-before');\n\n // Changes the inner bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this30.context, 'inner', '

    inner-after

    ');\n });\n\n this.assertText('inner-after');\n\n // Now rerender the outer conditional, which require first clearing its bounds\n this.runTask(function () {\n return (0, _emberMetal.set)(_this30.context, 'outer', _this30.falsyValue);\n });\n\n this.assertText('F-outer');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test child conditional should not render children if parent conditional becomes false'] = function testChildConditionalShouldNotRenderChildrenIfParentConditionalBecomesFalse(assert) {\n var _this31 = this;\n\n var childCreated = false;\n\n this.registerComponent('foo-bar', {\n template: 'foo-bar',\n ComponentClass: _helpers.Component.extend({\n init: function () {\n this._super.apply(this, arguments);\n childCreated = true;\n }\n })\n });\n\n var innerTemplate = this.templateFor({ cond: 'cond2', truthy: '{{foo-bar}}', falsy: '' });\n var wrappedTemplate = this.wrappedTemplateFor({ cond: 'cond1', truthy: innerTemplate, falsy: '' });\n\n this.render(wrappedTemplate, { cond1: this.truthyValue, cond2: this.falsyValue });\n\n assert.ok(!childCreated);\n this.assertText('');\n\n this.runTask(function () {\n return _this31.rerender();\n });\n\n assert.ok(!childCreated);\n this.assertText('');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this31.context, 'cond2', _this31.truthyValue);\n (0, _emberMetal.set)(_this31.context, 'cond1', _this31.falsyValue);\n });\n\n assert.ok(!childCreated);\n this.assertText('');\n\n this.runTask(function () {\n (0, _emberMetal.set)(_this31.context, 'cond2', _this31.falsyValue);\n (0, _emberMetal.set)(_this31.context, 'cond1', _this31.truthyValue);\n });\n\n assert.ok(!childCreated);\n this.assertText('');\n };\n\n TogglingSyntaxConditionalsTest.prototype['@test evaluation should be lazy'] = function testEvaluationShouldBeLazy(assert) {\n var _this32 = this;\n\n var truthyEvaluated = void 0;\n var falsyEvaluated = void 0;\n\n var withoutEvaluatingTruthy = function (callback) {\n truthyEvaluated = false;\n callback();\n assert.ok(!truthyEvaluated, 'x-truthy is not evaluated');\n };\n\n var withoutEvaluatingFalsy = function (callback) {\n falsyEvaluated = false;\n callback();\n assert.ok(!falsyEvaluated, 'x-falsy is not evaluated');\n };\n\n this.registerHelper('x-truthy', {\n compute: function () {\n truthyEvaluated = true;\n return 'T';\n }\n });\n\n this.registerHelper('x-falsy', {\n compute: function () {\n falsyEvaluated = true;\n return 'F';\n }\n });\n\n var template = this.wrappedTemplateFor({ cond: 'cond', truthy: '{{x-truthy}}', falsy: '{{x-falsy}}' });\n\n withoutEvaluatingFalsy(function () {\n return _this32.render(template, { cond: _this32.truthyValue });\n });\n\n this.assertText('T');\n\n withoutEvaluatingFalsy(function () {\n return _this32.runTask(function () {\n return _this32.rerender();\n });\n });\n\n this.assertText('T');\n\n withoutEvaluatingTruthy(function () {\n return _this32.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'cond', _this32.falsyValue);\n });\n });\n\n this.assertText('F');\n\n withoutEvaluatingTruthy(function () {\n return _this32.runTask(function () {\n return _this32.rerender();\n });\n });\n\n this.assertText('F');\n\n withoutEvaluatingFalsy(function () {\n return _this32.runTask(function () {\n return (0, _emberMetal.set)(_this32.context, 'cond', _this32.truthyValue);\n });\n });\n\n this.assertText('T');\n };\n\n return TogglingSyntaxConditionalsTest;\n }(TogglingConditionalsTest);\n\n var IfUnlessWithSyntaxTest = exports.IfUnlessWithSyntaxTest = function (_TogglingSyntaxCondit) {\n (0, _emberBabel.inherits)(IfUnlessWithSyntaxTest, _TogglingSyntaxCondit);\n\n function IfUnlessWithSyntaxTest() {\n (0, _emberBabel.classCallCheck)(this, IfUnlessWithSyntaxTest);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TogglingSyntaxCondit.apply(this, arguments));\n }\n\n return IfUnlessWithSyntaxTest;\n }(TogglingSyntaxConditionalsTest);\n\n _abstractTestCase.applyMixins.apply(undefined, [IfUnlessWithSyntaxTest].concat(IfUnlessWithTestCases));\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/shared-conditional-tests.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/shared-conditional-tests.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/string-test', ['ember-babel', 'ember-glimmer/tests/utils/helpers', 'ember-glimmer/tests/utils/abstract-test-case', 'ember-glimmer/tests/utils/test-case'], function (_emberBabel, _helpers, _abstractTestCase, _testCase) {\n 'use strict';\n\n (0, _testCase.moduleFor)('SafeString', function (_TestCase) {\n (0, _emberBabel.inherits)(_class, _TestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TestCase.apply(this, arguments));\n }\n\n _class.prototype['@test htmlSafe should return an instance of SafeString'] = function testHtmlSafeShouldReturnAnInstanceOfSafeString() {\n var safeString = (0, _helpers.htmlSafe)('you need to be more bold');\n\n this.assert.ok(safeString instanceof _helpers.SafeString, 'should be a SafeString');\n };\n\n _class.prototype['@test htmlSafe should return an empty string for null'] = function testHtmlSafeShouldReturnAnEmptyStringForNull() {\n var safeString = (0, _helpers.htmlSafe)(null);\n\n this.assert.equal(safeString instanceof _helpers.SafeString, true, 'should be a SafeString');\n this.assert.equal(safeString.toString(), '', 'should return an empty string');\n };\n\n _class.prototype['@test htmlSafe should return an instance of SafeString'] = function testHtmlSafeShouldReturnAnInstanceOfSafeString() {\n var safeString = (0, _helpers.htmlSafe)();\n\n this.assert.equal(safeString instanceof _helpers.SafeString, true, 'should be a SafeString');\n this.assert.equal(safeString.toString(), '', 'should return an empty string');\n };\n\n return _class;\n }(_abstractTestCase.TestCase));\n\n (0, _testCase.moduleFor)('SafeString isHTMLSafe', function (_TestCase2) {\n (0, _emberBabel.inherits)(_class2, _TestCase2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TestCase2.apply(this, arguments));\n }\n\n _class2.prototype['@test isHTMLSafe should detect SafeString'] = function testIsHTMLSafeShouldDetectSafeString() {\n var safeString = (0, _helpers.htmlSafe)('Emphasize the important things.');\n\n this.assert.ok((0, _helpers.isHTMLSafe)(safeString));\n };\n\n _class2.prototype['@test isHTMLSafe should not detect SafeString on primatives'] = function testIsHTMLSafeShouldNotDetectSafeStringOnPrimatives() {\n this.assert.notOk((0, _helpers.isHTMLSafe)('Hello World'));\n this.assert.notOk((0, _helpers.isHTMLSafe)({}));\n this.assert.notOk((0, _helpers.isHTMLSafe)([]));\n this.assert.notOk((0, _helpers.isHTMLSafe)(10));\n this.assert.notOk((0, _helpers.isHTMLSafe)(null));\n };\n\n return _class2;\n }(_abstractTestCase.TestCase));\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/string-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/string-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/test-case', ['exports', 'internal-test-helpers'], function (exports, _internalTestHelpers) {\n 'use strict';\n\n Object.defineProperty(exports, 'TestCase', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.AbstractTestCase;\n }\n });\n Object.defineProperty(exports, 'ApplicationTest', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.ApplicationTestCase;\n }\n });\n Object.defineProperty(exports, 'RenderingTest', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.RenderingTestCase;\n }\n });\n Object.defineProperty(exports, 'moduleFor', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.moduleFor;\n }\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/test-case.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/test-case.js should pass ESLint\\n\\n');\n});\n","enifed('ember-glimmer/tests/utils/test-helpers', ['exports', 'internal-test-helpers'], function (exports, _internalTestHelpers) {\n 'use strict';\n\n Object.defineProperty(exports, 'styles', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.styles;\n }\n });\n Object.defineProperty(exports, 'classes', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.classes;\n }\n });\n Object.defineProperty(exports, 'equalTokens', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.equalTokens;\n }\n });\n Object.defineProperty(exports, 'equalsElement', {\n enumerable: true,\n get: function () {\n return _internalTestHelpers.equalsElement;\n }\n });\n});","QUnit.module('ESLint | ember-glimmer/tests/utils/test-helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-glimmer/tests/utils/test-helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/alias.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/alias.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/binding.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/binding.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/cache.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/cache.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/chains.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/chains.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/computed.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/computed.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/core.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/core.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/dependent_keys.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/dependent_keys.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/deprecate_property.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/deprecate_property.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/descriptor.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/descriptor.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/error_handler.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/error_handler.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/expand_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/expand_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/get_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/get_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/injected_property.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/injected_property.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/instrumentation.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/instrumentation.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/is_blank.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/is_blank.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/is_empty.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/is_empty.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/is_none.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/is_none.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/is_present.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/is_present.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/is_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/is_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/libraries.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/libraries.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/map.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/map.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/merge.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/merge.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/meta.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/meta.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/meta_listeners.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/meta_listeners.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/mixin.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/mixin.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/observer.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/observer.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/observer_set.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/observer_set.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/path_cache.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/path_cache.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/property_events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/property_events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/property_get.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/property_get.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/property_set.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/property_set.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/replace.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/replace.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/run_loop.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/run_loop.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/set_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/set_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/tags.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/tags.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/transaction.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/transaction.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/watch_key.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/watch_key.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/watch_path.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/watch_path.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/watching.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/watching.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-metal/lib/weak_map.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/lib/weak_map.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/get_path_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var obj = void 0;\n var moduleOpts = {\n setup: function () {\n obj = {\n foo: {\n bar: {\n baz: { biff: 'BIFF' }\n }\n },\n foothis: {\n bar: {\n baz: { biff: 'BIFF' }\n }\n },\n falseValue: false,\n emptyString: '',\n Wuz: {\n nar: 'foo'\n },\n nullValue: null\n };\n },\n teardown: function () {\n obj = undefined;\n }\n };\n\n QUnit.module('Ember.get with path', moduleOpts);\n\n // ..........................................................\n // LOCAL PATHS\n //\n\n QUnit.test('[obj, foo] -> obj.foo', function () {\n deepEqual((0, _emberMetal.get)(obj, 'foo'), obj.foo);\n });\n\n QUnit.test('[obj, foo.bar] -> obj.foo.bar', function () {\n deepEqual((0, _emberMetal.get)(obj, 'foo.bar'), obj.foo.bar);\n });\n\n QUnit.test('[obj, foothis.bar] -> obj.foothis.bar', function () {\n deepEqual((0, _emberMetal.get)(obj, 'foothis.bar'), obj.foothis.bar);\n });\n\n QUnit.test('[obj, falseValue.notDefined] -> (undefined)', function () {\n strictEqual((0, _emberMetal.get)(obj, 'falseValue.notDefined'), undefined);\n });\n\n QUnit.test('[obj, emptyString.length] -> 0', function () {\n strictEqual((0, _emberMetal.get)(obj, 'emptyString.length'), 0);\n });\n\n QUnit.test('[obj, nullValue.notDefined] -> (undefined)', function () {\n strictEqual((0, _emberMetal.get)(obj, 'nullValue.notDefined'), undefined);\n });\n\n // ..........................................................\n // GLOBAL PATHS TREATED LOCAL WITH GET\n //\n\n QUnit.test('[obj, Wuz] -> obj.Wuz', function () {\n deepEqual((0, _emberMetal.get)(obj, 'Wuz'), obj.Wuz);\n });\n\n QUnit.test('[obj, Wuz.nar] -> obj.Wuz.nar', function () {\n deepEqual((0, _emberMetal.get)(obj, 'Wuz.nar'), obj.Wuz.nar);\n });\n\n QUnit.test('[obj, Foo] -> (undefined)', function () {\n strictEqual((0, _emberMetal.get)(obj, 'Foo'), undefined);\n });\n\n QUnit.test('[obj, Foo.bar] -> (undefined)', function () {\n strictEqual((0, _emberMetal.get)(obj, 'Foo.bar'), undefined);\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/get_path_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/get_path_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/get_properties_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.getProperties');\n\n QUnit.test('can retrieve a hash of properties from an object via an argument list or array of property names', function () {\n var obj = {\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n };\n\n deepEqual((0, _emberMetal.getProperties)(obj, 'firstName', 'lastName'), { firstName: 'Steve', lastName: 'Jobs' });\n deepEqual((0, _emberMetal.getProperties)(obj, 'firstName', 'lastName'), { firstName: 'Steve', lastName: 'Jobs' });\n deepEqual((0, _emberMetal.getProperties)(obj, 'lastName'), { lastName: 'Jobs' });\n deepEqual((0, _emberMetal.getProperties)(obj), {});\n deepEqual((0, _emberMetal.getProperties)(obj, ['firstName', 'lastName']), { firstName: 'Steve', lastName: 'Jobs' });\n deepEqual((0, _emberMetal.getProperties)(obj, ['firstName']), { firstName: 'Steve' });\n deepEqual((0, _emberMetal.getProperties)(obj, []), {});\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/get_properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/get_properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/get_test', ['internal-test-helpers', 'ember-metal'], function (_internalTestHelpers, _emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.get');\n\n QUnit.test('should get arbitrary properties on an object', function () {\n var obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null\n };\n\n for (var key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n equal((0, _emberMetal.get)(obj, key), obj[key], key);\n }\n });\n\n QUnit.test('should not access a property more than once', function () {\n var count = 0;\n var obj = {\n get id() {\n return ++count;\n }\n };\n\n (0, _emberMetal.get)(obj, 'id');\n\n equal(count, 1);\n });\n\n (0, _internalTestHelpers.testBoth)('should call unknownProperty on watched values if the value is undefined', function (get, set) {\n var obj = {\n count: 0,\n unknownProperty: function (key) {\n equal(key, 'foo', 'should pass key');\n this.count++;\n return 'FOO';\n }\n };\n\n var count = 0;\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n count++;\n });\n\n equal(get(obj, 'foo'), 'FOO', 'should return value from unknown');\n });\n\n QUnit.test('warn on attempts to call get with no arguments', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)('aProperty');\n }, /Get must be called with two arguments;/i);\n });\n\n QUnit.test('warn on attempts to call get with only one argument', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)('aProperty');\n }, /Get must be called with two arguments;/i);\n });\n\n QUnit.test('warn on attempts to call get with more then two arguments', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)({}, 'aProperty', true);\n }, /Get must be called with two arguments;/i);\n });\n\n QUnit.test('warn on attempts to get a property of undefined', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)(undefined, 'aProperty');\n }, /Cannot call get with 'aProperty' on an undefined object/i);\n });\n\n QUnit.test('warn on attempts to get a property path of undefined', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)(undefined, 'aProperty.on.aPath');\n }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/);\n });\n\n QUnit.test('warn on attempts to get a property of null', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)(null, 'aProperty');\n }, /Cannot call get with 'aProperty' on an undefined object/);\n });\n\n QUnit.test('warn on attempts to get a property path of null', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)(null, 'aProperty.on.aPath');\n }, /Cannot call get with 'aProperty.on.aPath' on an undefined object/);\n });\n\n QUnit.test('warn on attempts to use get with an unsupported property path', function () {\n var obj = {};\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, null);\n }, /The key provided to get must be a string, you passed null/);\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, NaN);\n }, /The key provided to get must be a string, you passed NaN/);\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, undefined);\n }, /The key provided to get must be a string, you passed undefined/);\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, false);\n }, /The key provided to get must be a string, you passed false/);\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, 42);\n }, /The key provided to get must be a string, you passed 42/);\n expectAssertion(function () {\n return (0, _emberMetal.get)(obj, '');\n }, /Cannot call `Ember.get` with an empty string/);\n });\n\n // ..........................................................\n // BUGS\n //\n\n QUnit.test('(regression) watched properties on unmodified inherited objects should still return their original value', function () {\n var MyMixin = _emberMetal.Mixin.create({\n someProperty: 'foo',\n propertyDidChange: (0, _emberMetal.observer)('someProperty', function () {})\n });\n\n var baseObject = MyMixin.apply({});\n var theRealObject = Object.create(baseObject);\n\n equal((0, _emberMetal.get)(theRealObject, 'someProperty'), 'foo', 'should return the set value, not false');\n });\n\n QUnit.module('Ember.getWithDefault');\n\n QUnit.test('should get arbitrary properties on an object', function () {\n var obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null\n };\n\n for (var key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n equal((0, _emberMetal.getWithDefault)(obj, key, 'fail'), obj[key], key);\n }\n\n obj = {\n undef: undefined\n };\n\n equal((0, _emberMetal.getWithDefault)(obj, 'undef', 'default'), 'default', 'explicit undefined retrieves the default');\n equal((0, _emberMetal.getWithDefault)(obj, 'not-present', 'default'), 'default', 'non-present key retrieves the default');\n });\n\n QUnit.test('should call unknownProperty if defined and value is undefined', function () {\n var obj = {\n count: 0,\n unknownProperty: function (key) {\n equal(key, 'foo', 'should pass key');\n this.count++;\n return 'FOO';\n }\n };\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should return value from unknown');\n equal(obj.count, 1, 'should have invoked');\n });\n\n (0, _internalTestHelpers.testBoth)('if unknownProperty is present, it is called', function (get, set) {\n var obj = {\n count: 0,\n unknownProperty: function (key) {\n if (key === 'foo') {\n equal(key, 'foo', 'should pass key');\n this.count++;\n return 'FOO';\n }\n }\n };\n\n var count = 0;\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n return count++;\n });\n\n equal((0, _emberMetal.getWithDefault)(obj, 'foo', 'fail'), 'FOO', 'should return value from unknownProperty');\n equal((0, _emberMetal.getWithDefault)(obj, 'bar', 'default'), 'default', 'should convert undefined from unknownProperty into default');\n });\n\n // ..........................................................\n // BUGS\n //\n\n QUnit.test('(regression) watched properties on unmodified inherited objects should still return their original value', function () {\n var MyMixin = _emberMetal.Mixin.create({\n someProperty: 'foo',\n propertyDidChange: (0, _emberMetal.observer)('someProperty', function () {/* nothing to do */})\n });\n\n var baseObject = MyMixin.apply({});\n var theRealObject = Object.create(baseObject);\n\n equal((0, _emberMetal.getWithDefault)(theRealObject, 'someProperty', 'fail'), 'foo', 'should return the set value, not false');\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/get_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/get_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/is_global_path_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.isGlobalPath');\n\n QUnit.test('global path\\'s are recognized', function () {\n ok((0, _emberMetal.isGlobalPath)('App.myProperty'));\n ok((0, _emberMetal.isGlobalPath)('App.myProperty.subProperty'));\n });\n\n QUnit.test('if there is a \\'this\\' in the path, it\\'s not a global path', function () {\n ok(!(0, _emberMetal.isGlobalPath)('this.myProperty'));\n ok(!(0, _emberMetal.isGlobalPath)('this'));\n });\n\n QUnit.test('if the path starts with a lowercase character, it is not a global path', function () {\n ok(!(0, _emberMetal.isGlobalPath)('myObj'));\n ok(!(0, _emberMetal.isGlobalPath)('myObj.SecondProperty'));\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/is_global_path_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/is_global_path_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/mandatory_setters_test', ['ember/features', 'ember-metal'], function (_features, _emberMetal) {\n 'use strict';\n\n QUnit.module('mandatory-setters');\n\n function hasMandatorySetter(object, property) {\n try {\n return Object.getOwnPropertyDescriptor(object, property).set.isMandatorySetter === true;\n } catch (e) {\n return false;\n }\n }\n\n function hasMetaValue(object, property) {\n return (0, _emberMetal.meta)(object).peekValues(property) !== undefined;\n }\n\n if (_features.MANDATORY_SETTER) {\n QUnit.test('does not assert if property is not being watched', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n obj.someProp = 'blastix';\n equal((0, _emberMetal.get)(obj, 'someProp'), 'blastix');\n });\n\n QUnit.test('should not setup mandatory-setter if property is not writable', function () {\n expect(6);\n\n var obj = {};\n\n Object.defineProperty(obj, 'a', { value: true });\n Object.defineProperty(obj, 'b', { value: false });\n Object.defineProperty(obj, 'c', { value: undefined });\n Object.defineProperty(obj, 'd', { value: undefined, writable: false });\n Object.defineProperty(obj, 'e', { value: undefined, configurable: false });\n Object.defineProperty(obj, 'f', { value: undefined, configurable: true });\n\n (0, _emberMetal.watch)(obj, 'a');\n (0, _emberMetal.watch)(obj, 'b');\n (0, _emberMetal.watch)(obj, 'c');\n (0, _emberMetal.watch)(obj, 'd');\n (0, _emberMetal.watch)(obj, 'e');\n (0, _emberMetal.watch)(obj, 'f');\n\n ok(!hasMandatorySetter(obj, 'a'), 'mandatory-setter should not be installed');\n ok(!hasMandatorySetter(obj, 'b'), 'mandatory-setter should not be installed');\n ok(!hasMandatorySetter(obj, 'c'), 'mandatory-setter should not be installed');\n ok(!hasMandatorySetter(obj, 'd'), 'mandatory-setter should not be installed');\n ok(!hasMandatorySetter(obj, 'e'), 'mandatory-setter should not be installed');\n ok(!hasMandatorySetter(obj, 'f'), 'mandatory-setter should not be installed');\n });\n\n QUnit.test('should not teardown non mandatory-setter descriptor', function () {\n expect(1);\n\n var obj = { get a() {\n return 'hi';\n } };\n\n (0, _emberMetal.watch)(obj, 'a');\n (0, _emberMetal.unwatch)(obj, 'a');\n\n equal(obj.a, 'hi');\n });\n\n QUnit.test('should not confuse non descriptor watched gets', function () {\n expect(2);\n\n var obj = { get a() {\n return 'hi';\n } };\n\n (0, _emberMetal.watch)(obj, 'a');\n equal((0, _emberMetal.get)(obj, 'a'), 'hi');\n equal(obj.a, 'hi');\n });\n\n QUnit.test('should not setup mandatory-setter if setter is already setup on property', function () {\n expect(2);\n\n var obj = { someProp: null };\n\n Object.defineProperty(obj, 'someProp', {\n get: function () {\n return null;\n },\n set: function (value) {\n equal(value, 'foo-bar', 'custom setter was called');\n }\n });\n\n (0, _emberMetal.watch)(obj, 'someProp');\n ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n\n obj.someProp = 'foo-bar';\n });\n\n QUnit.test('watched ES5 setter should not be smashed by mandatory setter', function () {\n var value = void 0;\n var obj = {\n get foo() {},\n set foo(_value) {\n value = _value;\n }\n };\n\n (0, _emberMetal.watch)(obj, 'foo');\n\n (0, _emberMetal.set)(obj, 'foo', 2);\n equal(value, 2);\n });\n\n QUnit.test('should not setup mandatory-setter if setter is already setup on property in parent prototype', function () {\n expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get: function () {\n return null;\n },\n set: function (value) {\n equal(value, 'foo-bar', 'custom setter was called');\n }\n });\n\n var obj = new Foo();\n\n (0, _emberMetal.watch)(obj, 'someProp');\n ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n\n obj.someProp = 'foo-bar';\n });\n\n QUnit.test('should not setup mandatory-setter if setter is already setup on property in grandparent prototype', function () {\n expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get: function () {\n return null;\n },\n set: function (value) {\n equal(value, 'foo-bar', 'custom setter was called');\n }\n });\n\n function Bar() {}\n Bar.prototype = Object.create(Foo.prototype);\n Bar.prototype.constructor = Bar;\n\n var obj = new Bar();\n\n (0, _emberMetal.watch)(obj, 'someProp');\n ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n\n obj.someProp = 'foo-bar';\n });\n\n QUnit.test('should not setup mandatory-setter if setter is already setup on property in great grandparent prototype', function () {\n expect(2);\n\n function Foo() {}\n\n Object.defineProperty(Foo.prototype, 'someProp', {\n get: function () {\n return null;\n },\n set: function (value) {\n equal(value, 'foo-bar', 'custom setter was called');\n }\n });\n\n function Bar() {}\n Bar.prototype = Object.create(Foo.prototype);\n Bar.prototype.constructor = Bar;\n\n function Qux() {}\n Qux.prototype = Object.create(Bar.prototype);\n Qux.prototype.constructor = Qux;\n\n var obj = new Qux();\n\n (0, _emberMetal.watch)(obj, 'someProp');\n ok(!hasMandatorySetter(obj, 'someProp'), 'mandatory-setter should not be installed');\n\n obj.someProp = 'foo-bar';\n });\n\n QUnit.test('should assert if set without set when property is being watched', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n (0, _emberMetal.watch)(obj, 'someProp');\n\n expectAssertion(function () {\n obj.someProp = 'foo-bar';\n }, 'You must use set() to set the `someProp` property (of custom-object) to `foo-bar`.');\n });\n\n QUnit.test('should not assert if set with set when property is being watched', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n (0, _emberMetal.watch)(obj, 'someProp');\n (0, _emberMetal.set)(obj, 'someProp', 'foo-bar');\n\n equal((0, _emberMetal.get)(obj, 'someProp'), 'foo-bar');\n });\n\n QUnit.test('does not setup mandatory-setter if non-configurable', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n Object.defineProperty(obj, 'someProp', {\n configurable: false,\n enumerable: true,\n value: 'blastix'\n });\n\n (0, _emberMetal.watch)(obj, 'someProp');\n ok(!hasMandatorySetter(obj, 'someProp'), 'blastix');\n });\n\n QUnit.test('ensure after watch the property is restored (and the value is no-longer stored in meta) [non-enumerable]', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n Object.defineProperty(obj, 'someProp', {\n configurable: true,\n enumerable: false,\n value: 'blastix'\n });\n\n (0, _emberMetal.watch)(obj, 'someProp');\n equal(hasMandatorySetter(obj, 'someProp'), true, 'should have a mandatory setter');\n\n var descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(obj.someProp, 'blastix', 'expected value to be the getter');\n\n equal(descriptor.value, undefined, 'expected existing value to NOT remain');\n\n ok(hasMetaValue(obj, 'someProp'), 'someProp is stored in meta.values');\n\n (0, _emberMetal.unwatch)(obj, 'someProp');\n\n ok(!hasMetaValue(obj, 'someProp'), 'someProp is no longer stored in meta.values');\n\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(hasMandatorySetter(obj, 'someProp'), false, 'should no longer have a mandatory setter');\n\n equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(obj.someProp, 'blastix', 'expected value to be the getter');\n equal(descriptor.value, 'blastix', 'expected existing value to remain');\n\n obj.someProp = 'new value';\n\n // make sure the descriptor remains correct (nothing funky, like a redefined, happened in the setter);\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(descriptor.enumerable, false, 'property should remain non-enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(descriptor.value, 'new value', 'expected existing value to NOT remain');\n equal(obj.someProp, 'new value', 'expected value to be the getter');\n equal(obj.someProp, 'new value');\n });\n\n QUnit.test('ensure after watch the property is restored (and the value is no-longer stored in meta) [enumerable]', function () {\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n Object.defineProperty(obj, 'someProp', {\n configurable: true,\n enumerable: true,\n value: 'blastix'\n });\n\n (0, _emberMetal.watch)(obj, 'someProp');\n equal(hasMandatorySetter(obj, 'someProp'), true, 'should have a mandatory setter');\n\n var descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(descriptor.enumerable, true, 'property should remain enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(obj.someProp, 'blastix', 'expected value to be the getter');\n\n equal(descriptor.value, undefined, 'expected existing value to NOT remain');\n\n ok(hasMetaValue(obj, 'someProp'), 'someProp is stored in meta.values');\n\n (0, _emberMetal.unwatch)(obj, 'someProp');\n\n ok(!hasMetaValue(obj, 'someProp'), 'someProp is no longer stored in meta.values');\n\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(hasMandatorySetter(obj, 'someProp'), false, 'should no longer have a mandatory setter');\n\n equal(descriptor.enumerable, true, 'property should remain enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(obj.someProp, 'blastix', 'expected value to be the getter');\n equal(descriptor.value, 'blastix', 'expected existing value to remain');\n\n obj.someProp = 'new value';\n\n // make sure the descriptor remains correct (nothing funky, like a redefined, happened in the setter);\n descriptor = Object.getOwnPropertyDescriptor(obj, 'someProp');\n\n equal(descriptor.enumerable, true, 'property should remain enumerable');\n equal(descriptor.configurable, true, 'property should remain configurable');\n equal(descriptor.value, 'new value', 'expected existing value to NOT remain');\n equal(obj.someProp, 'new value');\n });\n\n QUnit.test('sets up mandatory-setter if property comes from prototype', function () {\n expect(2);\n\n var obj = {\n someProp: null,\n toString: function () {\n return 'custom-object';\n }\n };\n\n var obj2 = Object.create(obj);\n\n (0, _emberMetal.watch)(obj2, 'someProp');\n\n ok(hasMandatorySetter(obj2, 'someProp'), 'mandatory setter has been setup');\n\n expectAssertion(function () {\n obj2.someProp = 'foo-bar';\n }, 'You must use set() to set the `someProp` property (of custom-object) to `foo-bar`.');\n });\n\n QUnit.test('inheritance remains live', function () {\n function Parent() {}\n Parent.prototype.food = 'chips';\n\n var child = new Parent();\n\n equal(child.food, 'chips');\n\n (0, _emberMetal.watch)(child, 'food');\n\n equal(child.food, 'chips');\n\n Parent.prototype.food = 'icecreame';\n\n equal(child.food, 'icecreame');\n\n (0, _emberMetal.unwatch)(child, 'food');\n\n equal(child.food, 'icecreame');\n\n Parent.prototype.food = 'chips';\n\n equal(child.food, 'chips');\n });\n\n QUnit.test('inheritance remains live and preserves this', function () {\n function Parent(food) {\n this._food = food;\n }\n\n Object.defineProperty(Parent.prototype, 'food', {\n get: function () {\n return this._food;\n }\n });\n\n var child = new Parent('chips');\n\n equal(child.food, 'chips');\n\n (0, _emberMetal.watch)(child, 'food');\n\n equal(child.food, 'chips');\n\n child._food = 'icecreame';\n\n equal(child.food, 'icecreame');\n\n (0, _emberMetal.unwatch)(child, 'food');\n\n equal(child.food, 'icecreame');\n\n var foodDesc = Object.getOwnPropertyDescriptor(Parent.prototype, 'food');\n ok(!foodDesc.configurable, 'Parent.prototype.food desc should be non configable');\n ok(!foodDesc.enumerable, 'Parent.prototype.food desc should be non enumerable');\n\n equal(foodDesc.get.call({\n _food: 'hi'\n }), 'hi');\n equal(foodDesc.set, undefined);\n\n equal(child.food, 'icecreame');\n });\n }\n});","QUnit.module('ESLint | ember-metal/tests/accessors/mandatory_setters_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/mandatory_setters_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/set_path_test', ['ember-environment', 'ember-metal'], function (_emberEnvironment, _emberMetal) {\n 'use strict';\n\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n var obj = void 0;\n function commonSetup() {\n _emberEnvironment.context.lookup = lookup = {};\n obj = {\n foo: {\n bar: {\n baz: { biff: 'BIFF' }\n }\n }\n };\n }\n\n function commonTeardown() {\n _emberEnvironment.context.lookup = originalLookup;\n obj = null;\n }\n\n QUnit.module('set with path', {\n setup: commonSetup,\n teardown: commonTeardown\n });\n\n QUnit.test('[Foo, bar] -> Foo.bar', function () {\n lookup.Foo = {\n toString: function () {\n return 'Foo';\n }\n }; // Behave like an Ember.Namespace\n\n (0, _emberMetal.set)(lookup.Foo, 'bar', 'baz');\n equal((0, _emberMetal.get)(lookup.Foo, 'bar'), 'baz');\n });\n\n // ..........................................................\n //\n // LOCAL PATHS\n\n QUnit.test('[obj, foo] -> obj.foo', function () {\n (0, _emberMetal.set)(obj, 'foo', 'BAM');\n equal((0, _emberMetal.get)(obj, 'foo'), 'BAM');\n });\n\n QUnit.test('[obj, foo.bar] -> obj.foo.bar', function () {\n (0, _emberMetal.set)(obj, 'foo.bar', 'BAM');\n equal((0, _emberMetal.get)(obj, 'foo.bar'), 'BAM');\n });\n\n // ..........................................................\n // DEPRECATED\n //\n\n QUnit.module('set with path - deprecated', {\n setup: commonSetup,\n teardown: commonTeardown\n });\n\n QUnit.test('[obj, bla.bla] gives a proper exception message', function () {\n var exceptionMessage = 'Property set failed: object in path \\\"bla\\\" could not be found or was destroyed.';\n try {\n (0, _emberMetal.set)(obj, 'bla.bla', 'BAM');\n } catch (ex) {\n equal(ex.message, exceptionMessage);\n }\n });\n\n QUnit.test('[obj, foo.baz.bat] -> EXCEPTION', function () {\n throws(function () {\n return (0, _emberMetal.set)(obj, 'foo.baz.bat', 'BAM');\n });\n });\n\n QUnit.test('[obj, foo.baz.bat] -> EXCEPTION', function () {\n (0, _emberMetal.trySet)(obj, 'foo.baz.bat', 'BAM');\n ok(true, 'does not raise');\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/set_path_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/set_path_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/accessors/set_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('set', {\n teardown: function () {\n (0, _emberMetal.setHasViews)(function () {\n return false;\n });\n }\n });\n\n QUnit.test('should set arbitrary properties on an object', function () {\n var obj = {\n string: 'string',\n number: 23,\n boolTrue: true,\n boolFalse: false,\n nullValue: null,\n undefinedValue: undefined\n };\n\n var newObj = {\n undefinedValue: 'emberjs'\n };\n\n for (var key in obj) {\n if (!obj.hasOwnProperty(key)) {\n continue;\n }\n\n equal((0, _emberMetal.set)(newObj, key, obj[key]), obj[key], 'should return value');\n equal((0, _emberMetal.get)(newObj, key), obj[key], 'should set value');\n }\n });\n\n QUnit.test('should call setUnknownProperty if defined and value is undefined', function () {\n var obj = {\n count: 0,\n\n unknownProperty: function (key, value) {\n ok(false, 'should not invoke unknownProperty if setUnknownProperty is defined');\n },\n setUnknownProperty: function (key, value) {\n equal(key, 'foo', 'should pass key');\n equal(value, 'BAR', 'should pass key');\n this.count++;\n return 'FOO';\n }\n };\n\n equal((0, _emberMetal.set)(obj, 'foo', 'BAR'), 'BAR', 'should return set value');\n equal(obj.count, 1, 'should have invoked');\n });\n\n QUnit.test('warn on attempts to call set with undefined as object', function () {\n expectAssertion(function () {\n return (0, _emberMetal.set)(undefined, 'aProperty', 'BAM');\n }, /Cannot call set with 'aProperty' on an undefined object./);\n });\n\n QUnit.test('warn on attempts to call set with null as object', function () {\n expectAssertion(function () {\n return (0, _emberMetal.set)(null, 'aProperty', 'BAM');\n }, /Cannot call set with 'aProperty' on an undefined object./);\n });\n\n QUnit.test('warn on attempts to use set with an unsupported property path', function () {\n var obj = {};\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, null, 42);\n }, /The key provided to set must be a string, you passed null/);\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, NaN, 42);\n }, /The key provided to set must be a string, you passed NaN/);\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, undefined, 42);\n }, /The key provided to set must be a string, you passed undefined/);\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, false, 42);\n }, /The key provided to set must be a string, you passed false/);\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, 42, 42);\n }, /The key provided to set must be a string, you passed 42/);\n });\n\n QUnit.test('warn on attempts of calling set on a destroyed object', function () {\n var obj = { isDestroyed: true };\n\n expectAssertion(function () {\n return (0, _emberMetal.set)(obj, 'favoriteFood', 'hot dogs');\n }, 'calling set on destroyed object: [object Object].favoriteFood = hot dogs');\n });\n\n QUnit.test('does not trigger auto-run assertion for objects that have not been tagged', function (assert) {\n (0, _emberMetal.setHasViews)(function () {\n return true;\n });\n var obj = {};\n\n (0, _emberMetal.set)(obj, 'foo', 'bar');\n\n assert.equal(obj.foo, 'bar');\n });\n});","QUnit.module('ESLint | ember-metal/tests/accessors/set_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/accessors/set_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/alias_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var obj = void 0,\n count = void 0;\n\n QUnit.module('ember-metal/alias', {\n setup: function () {\n obj = { foo: { faz: 'FOO' } };\n count = 0;\n },\n teardown: function () {\n obj = null;\n }\n });\n\n function incrementCount() {\n count++;\n }\n\n QUnit.test('should proxy get to alt key', function () {\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('foo.faz'));\n equal((0, _emberMetal.get)(obj, 'bar'), 'FOO');\n });\n\n QUnit.test('should proxy set to alt key', function () {\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('foo.faz'));\n (0, _emberMetal.set)(obj, 'bar', 'BAR');\n equal((0, _emberMetal.get)(obj, 'foo.faz'), 'BAR');\n });\n\n QUnit.test('old dependent keys should not trigger property changes', function () {\n var obj1 = Object.create(null);\n (0, _emberMetal.defineProperty)(obj1, 'foo', null, null);\n (0, _emberMetal.defineProperty)(obj1, 'bar', (0, _emberMetal.alias)('foo'));\n (0, _emberMetal.defineProperty)(obj1, 'baz', (0, _emberMetal.alias)('foo'));\n (0, _emberMetal.defineProperty)(obj1, 'baz', (0, _emberMetal.alias)('bar')); // redefine baz\n (0, _emberMetal.addObserver)(obj1, 'baz', incrementCount);\n\n (0, _emberMetal.set)(obj1, 'foo', 'FOO');\n equal(count, 1);\n\n (0, _emberMetal.removeObserver)(obj1, 'baz', incrementCount);\n\n (0, _emberMetal.set)(obj1, 'foo', 'OOF');\n equal(count, 1);\n });\n\n QUnit.test('inheriting an observer of the alias from the prototype then\\n redefining the alias on the instance to another property dependent on same key\\n does not call the observer twice', function () {\n var obj1 = Object.create(null);\n\n (0, _emberMetal.meta)(obj1).proto = obj1;\n\n (0, _emberMetal.defineProperty)(obj1, 'foo', null, null);\n (0, _emberMetal.defineProperty)(obj1, 'bar', (0, _emberMetal.alias)('foo'));\n (0, _emberMetal.defineProperty)(obj1, 'baz', (0, _emberMetal.alias)('foo'));\n (0, _emberMetal.addObserver)(obj1, 'baz', incrementCount);\n\n var obj2 = Object.create(obj1);\n (0, _emberMetal.defineProperty)(obj2, 'baz', (0, _emberMetal.alias)('bar')); // override baz\n\n (0, _emberMetal.set)(obj2, 'foo', 'FOO');\n equal(count, 1);\n\n (0, _emberMetal.removeObserver)(obj2, 'baz', incrementCount);\n\n (0, _emberMetal.set)(obj2, 'foo', 'OOF');\n equal(count, 1);\n });\n\n QUnit.test('an observer of the alias works if added after defining the alias', function () {\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('foo.faz'));\n (0, _emberMetal.addObserver)(obj, 'bar', incrementCount);\n ok((0, _emberMetal.isWatching)(obj, 'foo.faz'));\n (0, _emberMetal.set)(obj, 'foo.faz', 'BAR');\n equal(count, 1);\n });\n\n QUnit.test('an observer of the alias works if added before defining the alias', function () {\n (0, _emberMetal.addObserver)(obj, 'bar', incrementCount);\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('foo.faz'));\n ok((0, _emberMetal.isWatching)(obj, 'foo.faz'));\n (0, _emberMetal.set)(obj, 'foo.faz', 'BAR');\n equal(count, 1);\n });\n\n QUnit.test('object with alias is dirtied if interior object of alias is set after consumption', function () {\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('foo.faz'));\n (0, _emberMetal.get)(obj, 'bar');\n assertDirty(obj, function () {\n return (0, _emberMetal.set)(obj, 'foo.faz', 'BAR');\n }, 'setting the aliased key should dirty the object');\n });\n\n QUnit.test('setting alias on self should fail assertion', function () {\n expectAssertion(function () {\n return (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.alias)('bar'));\n }, 'Setting alias \\'bar\\' on self');\n });\n\n function assertDirty(obj, callback, label) {\n var tag = (0, _emberMetal.tagFor)(obj);\n var tagValue = tag.value();\n callback();\n ok(!tag.validate(tagValue), label);\n }\n});","QUnit.module('ESLint | ember-metal/tests/alias_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/alias_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/binding/connect_test', ['ember-environment', 'internal-test-helpers', 'ember-metal'], function (_emberEnvironment, _internalTestHelpers, _emberMetal) {\n 'use strict';\n\n function performTest(binding, a, b, get, set, connect) {\n if (connect === undefined) {\n connect = function () {\n return binding.connect(a);\n };\n }\n\n ok(!_emberMetal.run.currentRunLoop, 'performTest should not have a currentRunLoop');\n\n equal(get(a, 'foo'), 'FOO', 'a should not have changed');\n equal(get(b, 'bar'), 'BAR', 'b should not have changed');\n\n connect();\n\n equal(get(a, 'foo'), 'BAR', 'a should have changed');\n equal(get(b, 'bar'), 'BAR', 'b should have changed');\n //\n // make sure changes sync both ways\n (0, _emberMetal.run)(function () {\n return set(b, 'bar', 'BAZZ');\n });\n equal(get(a, 'foo'), 'BAZZ', 'a should have changed');\n\n (0, _emberMetal.run)(function () {\n return set(a, 'foo', 'BARF');\n });\n equal(get(b, 'bar'), 'BARF', 'a should have changed');\n }\n\n var originalLookup = void 0,\n lookup = void 0,\n GlobalB = void 0;\n\n QUnit.module('Ember.Binding', {\n setup: function () {\n originalLookup = _emberEnvironment.context.lookup;\n _emberEnvironment.context.lookup = lookup = {};\n },\n teardown: function () {\n lookup = null;\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('Connecting a binding between two properties', function (get, set) {\n var a = { foo: 'FOO', bar: 'BAR' };\n\n // a.bar -> a.foo\n var binding = new _emberMetal.Binding('foo', 'bar');\n\n expectDeprecation(function () {\n performTest(binding, a, a, get, set);\n }, /`Ember\\.Binding` is deprecated./);\n });\n\n (0, _internalTestHelpers.testBoth)('Connecting a oneWay binding raises a deprecation', function (get, set) {\n var a = { foo: 'FOO', bar: 'BAR', toString: function () {\n return '';\n }\n };\n\n // a.bar -> a.foo\n var binding = new _emberMetal.Binding('foo', 'bar').oneWay();\n\n expectDeprecation(function () {\n binding.connect(a);\n }, /`Ember.Binding` is deprecated/);\n });\n\n (0, _internalTestHelpers.testBoth)('Connecting a binding between two objects', function (get, set) {\n var b = { bar: 'BAR' };\n var a = { foo: 'FOO', b: b };\n\n // b.bar -> a.foo\n var binding = new _emberMetal.Binding('foo', 'b.bar');\n\n expectDeprecation(function () {\n performTest(binding, a, b, get, set);\n }, /`Ember\\.Binding` is deprecated./);\n });\n\n (0, _internalTestHelpers.testBoth)('Connecting a binding to path', function (get, set) {\n var a = { foo: 'FOO' };\n lookup['GlobalB'] = GlobalB = {\n b: { bar: 'BAR' }\n };\n\n var b = get(GlobalB, 'b');\n\n // globalB.b.bar -> a.foo\n var binding = new _emberMetal.Binding('foo', 'GlobalB.b.bar');\n\n expectDeprecation(function () {\n performTest(binding, a, b, get, set);\n }, /`Ember\\.Binding` is deprecated./);\n\n // make sure modifications update\n b = { bar: 'BIFF' };\n\n (0, _emberMetal.run)(function () {\n return set(GlobalB, 'b', b);\n });\n\n equal(get(a, 'foo'), 'BIFF', 'a should have changed');\n });\n\n (0, _internalTestHelpers.testBoth)('Calling connect more than once', function (get, set) {\n var b = { bar: 'BAR' };\n var a = { foo: 'FOO', b: b };\n\n // b.bar -> a.foo\n var binding = new _emberMetal.Binding('foo', 'b.bar');\n\n expectDeprecation(function () {\n performTest(binding, a, b, get, set, function () {\n binding.connect(a);\n binding.connect(a);\n });\n }, /`Ember\\.Binding` is deprecated./);\n });\n\n QUnit.test('inherited bindings should sync on create', function () {\n var a = void 0;\n (0, _emberMetal.run)(function () {\n function A() {\n (0, _emberMetal.bind)(this, 'foo', 'bar.baz');\n }\n\n expectDeprecation(function () {\n return a = new A();\n }, /`Ember\\.Binding` is deprecated/);\n\n (0, _emberMetal.set)(a, 'bar', { baz: 'BAZ' });\n });\n\n equal((0, _emberMetal.get)(a, 'foo'), 'BAZ', 'should have synced binding on new obj');\n });\n});","QUnit.module('ESLint | ember-metal/tests/binding/connect_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/binding/connect_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/binding/sync_test', ['internal-test-helpers', 'ember-metal'], function (_internalTestHelpers, _emberMetal) {\n 'use strict';\n\n QUnit.module('system/binding/sync_test.js');\n\n (0, _internalTestHelpers.testBoth)('bindings should not sync twice in a single run loop', function (get, set) {\n var a = void 0,\n b = void 0,\n setValue = void 0;\n var setCalled = 0;\n var getCalled = 0;\n\n (0, _emberMetal.run)(function () {\n a = {};\n\n (0, _emberMetal.defineProperty)(a, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n getCalled++;\n return setValue;\n },\n set: function (key, value) {\n setCalled++;\n (0, _emberMetal.propertyWillChange)(this, key);\n setValue = value;\n (0, _emberMetal.propertyDidChange)(this, key);\n return value;\n }\n }).volatile());\n\n b = {\n a: a\n };\n\n expectDeprecation(function () {\n return (0, _emberMetal.bind)(b, 'foo', 'a.foo');\n }, /`Ember.Binding` is deprecated/);\n });\n\n // reset after initial binding synchronization\n getCalled = 0;\n\n (0, _emberMetal.run)(function () {\n set(a, 'foo', 'trollface');\n });\n\n equal(get(b, 'foo'), 'trollface', 'the binding should sync');\n equal(setCalled, 1, 'Set should only be called once');\n equal(getCalled, 1, 'Get should only be called once');\n });\n\n (0, _internalTestHelpers.testBoth)('bindings should not infinite loop if computed properties return objects', function (get, set) {\n var a = void 0,\n b = void 0;\n var getCalled = 0;\n\n (0, _emberMetal.run)(function () {\n a = {};\n\n (0, _emberMetal.defineProperty)(a, 'foo', (0, _emberMetal.computed)(function () {\n getCalled++;\n if (getCalled > 1000) {\n throw 'infinite loop detected';\n }\n return ['foo', 'bar'];\n }));\n\n b = {\n a: a\n };\n\n expectDeprecation(function () {\n return (0, _emberMetal.bind)(b, 'foo', 'a.foo');\n }, /`Ember.Binding` is deprecated/);\n });\n\n deepEqual(get(b, 'foo'), ['foo', 'bar'], 'the binding should sync');\n equal(getCalled, 1, 'Get should only be called once');\n });\n\n (0, _internalTestHelpers.testBoth)('bindings should do the right thing when observers trigger bindings in the opposite direction', function (get, set) {\n var a = void 0,\n b = void 0,\n c = void 0;\n\n (0, _emberMetal.run)(function () {\n a = {\n foo: 'trololol'\n };\n\n b = {\n a: a\n };\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n return (0, _emberMetal.bind)(b, 'foo', 'a.foo');\n }, deprecationMessage);\n\n c = {\n a: a\n };\n\n expectDeprecation(function () {\n (0, _emberMetal.bind)(c, 'foo', 'a.foo');\n }, deprecationMessage);\n });\n\n (0, _emberMetal.addObserver)(b, 'foo', function () {\n return set(c, 'foo', 'what is going on');\n });\n\n (0, _emberMetal.run)(function () {\n return set(a, 'foo', 'trollface');\n });\n\n equal(get(a, 'foo'), 'what is going on');\n });\n\n (0, _internalTestHelpers.testBoth)('bindings should not try to sync destroyed objects', function (get, set) {\n var a = void 0,\n b = void 0;\n\n (0, _emberMetal.run)(function () {\n a = {\n foo: 'trololol'\n };\n\n b = {\n a: a\n };\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n return (0, _emberMetal.bind)(b, 'foo', 'a.foo');\n }, deprecationMessage);\n });\n\n (0, _emberMetal.run)(function () {\n set(a, 'foo', 'trollface');\n set(b, 'isDestroyed', true);\n ok(true, 'should not raise');\n });\n\n (0, _emberMetal.run)(function () {\n a = {\n foo: 'trololol'\n };\n\n b = {\n a: a\n };\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n return (0, _emberMetal.bind)(b, 'foo', 'a.foo');\n }, deprecationMessage);\n });\n\n (0, _emberMetal.run)(function () {\n set(b, 'foo', 'trollface');\n set(a, 'isDestroyed', true);\n ok(true, 'should not raise');\n });\n });\n});","QUnit.module('ESLint | ember-metal/tests/binding/sync_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/binding/sync_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/cache_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Cache');\n\n QUnit.test('basic', function () {\n var cache = new _emberMetal.Cache(100, function (key) {\n return key.toUpperCase();\n });\n\n equal(cache.get('foo'), 'FOO');\n equal(cache.get('bar'), 'BAR');\n equal(cache.get('foo'), 'FOO');\n });\n\n QUnit.test('explicit sets', function () {\n var cache = new _emberMetal.Cache(100, function (key) {\n return key.toUpperCase();\n });\n\n equal(cache.get('foo'), 'FOO');\n\n equal(cache.set('foo', 'FOO!!!'), 'FOO!!!');\n\n equal(cache.get('foo'), 'FOO!!!');\n\n strictEqual(cache.set('foo', undefined), undefined);\n\n strictEqual(cache.get('foo'), undefined);\n });\n\n QUnit.test('caches computation correctly', function () {\n var count = 0;\n var cache = new _emberMetal.Cache(100, function (key) {\n count++;\n return key.toUpperCase();\n });\n\n equal(count, 0);\n cache.get('foo');\n equal(count, 1);\n cache.get('bar');\n equal(count, 2);\n cache.get('bar');\n equal(count, 2);\n cache.get('foo');\n equal(count, 2);\n });\n\n QUnit.test('caches computation correctly with custom cache keys', function () {\n var count = 0;\n var cache = new _emberMetal.Cache(100, function (obj) {\n count++;\n return obj.value.toUpperCase();\n }, function (obj) {\n return obj.key;\n });\n\n equal(count, 0);\n cache.get({ key: 'foo', value: 'foo' });\n equal(count, 1);\n cache.get({ key: 'bar', value: 'bar' });\n equal(count, 2);\n cache.get({ key: 'bar', value: 'bar' });\n equal(count, 2);\n cache.get({ key: 'foo', value: 'foo' });\n equal(count, 2);\n });\n\n QUnit.test('handles undefined value correctly', function () {\n var count = 0;\n var cache = new _emberMetal.Cache(100, function (key) {\n count++;\n });\n\n equal(count, 0);\n strictEqual(cache.get('foo'), undefined);\n equal(count, 1);\n strictEqual(cache.get('bar'), undefined);\n equal(count, 2);\n strictEqual(cache.get('bar'), undefined);\n equal(count, 2);\n strictEqual(cache.get('foo'), undefined);\n equal(count, 2);\n });\n\n QUnit.test('continues working after reaching cache limit', function () {\n var cache = new _emberMetal.Cache(3, function (key) {\n return key.toUpperCase();\n });\n\n cache.get('a');\n cache.get('b');\n cache.get('c');\n\n equal(cache.get('d'), 'D');\n equal(cache.get('a'), 'A');\n equal(cache.get('b'), 'B');\n equal(cache.get('c'), 'C');\n });\n});","QUnit.module('ESLint | ember-metal/tests/cache_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/cache_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/chains_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Chains');\n\n QUnit.test('finishChains should properly copy chains from prototypes to instances', function () {\n function didChange() {}\n\n var obj = {};\n (0, _emberMetal.addObserver)(obj, 'foo.bar', null, didChange);\n\n var childObj = Object.create(obj);\n\n var parentMeta = (0, _emberMetal.meta)(obj);\n var childMeta = (0, _emberMetal.meta)(childObj);\n\n (0, _emberMetal.finishChains)(childMeta);\n\n ok(parentMeta.readableChains() !== childMeta.readableChains(), 'The chains object is copied');\n });\n\n QUnit.test('does not observe primitive values', function (assert) {\n var obj = {\n foo: { bar: 'STRING' }\n };\n\n (0, _emberMetal.addObserver)(obj, 'foo.bar.baz', null, function () {});\n var meta = (0, _emberMetal.peekMeta)(obj);\n assert.notOk(meta._object);\n });\n\n QUnit.test('observer and CP chains', function () {\n var obj = {};\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)('qux.[]', function () {}));\n (0, _emberMetal.defineProperty)(obj, 'qux', (0, _emberMetal.computed)(function () {}));\n\n // create DK chains\n (0, _emberMetal.get)(obj, 'foo');\n\n // create observer chain\n (0, _emberMetal.addObserver)(obj, 'qux.length', function () {});\n\n /*\n +-----+\n | qux | root CP\n +-----+\n ^\n +------+-----+\n | |\n +--------+ +----+\n | length | | [] | chainWatchers\n +--------+ +----+\n observer CP(foo, 'qux.[]')\n */\n\n // invalidate qux\n (0, _emberMetal.propertyDidChange)(obj, 'qux');\n\n // CP chain is blown away\n\n /*\n +-----+\n | qux | root CP\n +-----+\n ^\n +------+xxxxxx\n | x\n +--------+ xxxxxx\n | length | x [] x chainWatchers\n +--------+ xxxxxx\n observer CP(foo, 'qux.[]')\n */\n\n (0, _emberMetal.get)(obj, 'qux'); // CP chain re-recreated\n ok(true, 'no crash');\n });\n\n QUnit.test('checks cache correctly', function (assert) {\n var obj = {};\n var parentChainNode = new _emberMetal.ChainNode(null, null, obj);\n var chainNode = new _emberMetal.ChainNode(parentChainNode, 'foo');\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return undefined;\n }));\n (0, _emberMetal.get)(obj, 'foo');\n\n assert.strictEqual(chainNode.value(), undefined);\n });\n});","QUnit.module('ESLint | ember-metal/tests/chains_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/chains_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/computed_test', ['ember-runtime', 'internal-test-helpers', 'ember-metal'], function (_emberRuntime, _internalTestHelpers, _emberMetal) {\n 'use strict';\n\n var obj = void 0,\n count = void 0;\n\n QUnit.module('computed');\n\n QUnit.test('computed property should be an instance of descriptor', function () {\n ok((0, _emberMetal.computed)(function () {}) instanceof _emberMetal.Descriptor);\n });\n\n QUnit.test('computed properties assert the presence of a getter or setter function', function () {\n expectAssertion(function () {\n (0, _emberMetal.computed)('nogetternorsetter', {});\n }, 'Computed properties must receive a getter or a setter, you passed none.');\n });\n\n QUnit.test('computed properties check for the presence of a function or configuration object', function () {\n expectAssertion(function () {\n (0, _emberMetal.computed)('nolastargument');\n }, 'computed expects a function or an object as last argument.');\n });\n\n QUnit.test('computed properties defined with an object only allow `get` and `set` keys', function () {\n expectAssertion(function () {\n (0, _emberMetal.computed)({\n get: function () {},\n set: function () {},\n other: function () {}\n });\n }, 'Config object passed to computed can only contain `get` or `set` keys.');\n });\n\n QUnit.test('defining computed property should invoke property on get', function () {\n var obj = {};\n var count = 0;\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function (key) {\n count++;\n return 'computed ' + key;\n }));\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'computed foo', 'should return value');\n equal(count, 1, 'should have invoked computed property');\n });\n\n QUnit.test('defining computed property should invoke property on set', function () {\n var obj = {};\n var count = 0;\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return this['__' + key];\n },\n set: function (key, value) {\n count++;\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n }));\n\n equal((0, _emberMetal.set)(obj, 'foo', 'bar'), 'bar', 'should return set value');\n equal(count, 1, 'should have invoked computed property');\n equal((0, _emberMetal.get)(obj, 'foo'), 'computed bar', 'should return new value');\n });\n\n QUnit.test('defining a computed property with a dependent key ending with @each is expanded to []', function () {\n var cp = (0, _emberMetal.computed)('blazo.@each', function () {});\n\n deepEqual(cp._dependentKeys, ['blazo.[]']);\n\n cp = (0, _emberMetal.computed)('qux', 'zoopa.@each', function () {});\n\n deepEqual(cp._dependentKeys, ['qux', 'zoopa.[]']);\n });\n\n QUnit.test('defining a computed property with a dependent key more than one level deep beyond @each is not supported', function () {\n expectNoWarning(function () {\n (0, _emberMetal.computed)('todos', function () {});\n });\n\n expectNoWarning(function () {\n (0, _emberMetal.computed)('todos.@each.owner', function () {});\n });\n\n expectWarning(function () {\n (0, _emberMetal.computed)('todos.@each.owner.name', function () {});\n }, /You used the key \"todos\\.@each\\.owner\\.name\" which is invalid\\. /);\n\n expectWarning(function () {\n (0, _emberMetal.computed)('todos.@each.owner.@each.name', function () {});\n }, /You used the key \"todos\\.@each\\.owner\\.@each\\.name\" which is invalid\\. /);\n });\n\n var objA = void 0,\n objB = void 0;\n QUnit.module('computed should inherit through prototype', {\n setup: function () {\n objA = { __foo: 'FOO' };\n (0, _emberMetal.defineProperty)(objA, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return this['__' + key];\n },\n set: function (key, value) {\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n }));\n\n objB = Object.create(objA);\n objB.__foo = 'FOO'; // make a copy;\n },\n teardown: function () {\n objA = objB = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('using get() and set()', function (get, set) {\n equal(get(objA, 'foo'), 'FOO', 'should get FOO from A');\n equal(get(objB, 'foo'), 'FOO', 'should get FOO from B');\n\n set(objA, 'foo', 'BIFF');\n equal(get(objA, 'foo'), 'computed BIFF', 'should change A');\n equal(get(objB, 'foo'), 'FOO', 'should NOT change B');\n\n set(objB, 'foo', 'bar');\n equal(get(objB, 'foo'), 'computed bar', 'should change B');\n equal(get(objA, 'foo'), 'computed BIFF', 'should NOT change A');\n\n set(objA, 'foo', 'BAZ');\n equal(get(objA, 'foo'), 'computed BAZ', 'should change A');\n equal(get(objB, 'foo'), 'computed bar', 'should NOT change B');\n });\n\n QUnit.module('redefining computed property to normal', {\n setup: function () {\n objA = { __foo: 'FOO' };\n (0, _emberMetal.defineProperty)(objA, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return this['__' + key];\n },\n set: function (key, value) {\n this['__' + key] = 'computed ' + value;\n return this['__' + key];\n }\n }));\n\n objB = Object.create(objA);\n (0, _emberMetal.defineProperty)(objB, 'foo'); // make this just a normal property.\n },\n teardown: function () {\n objA = objB = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('using get() and set()', function (get, set) {\n equal(get(objA, 'foo'), 'FOO', 'should get FOO from A');\n equal(get(objB, 'foo'), undefined, 'should get undefined from B');\n\n set(objA, 'foo', 'BIFF');\n equal(get(objA, 'foo'), 'computed BIFF', 'should change A');\n equal(get(objB, 'foo'), undefined, 'should NOT change B');\n\n set(objB, 'foo', 'bar');\n equal(get(objB, 'foo'), 'bar', 'should change B');\n equal(get(objA, 'foo'), 'computed BIFF', 'should NOT change A');\n\n set(objA, 'foo', 'BAZ');\n equal(get(objA, 'foo'), 'computed BAZ', 'should change A');\n equal(get(objB, 'foo'), 'bar', 'should NOT change B');\n });\n\n QUnit.module('redefining computed property to another property', {\n setup: function () {\n objA = { __foo: 'FOO' };\n (0, _emberMetal.defineProperty)(objA, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return this['__' + key];\n },\n set: function (key, value) {\n this['__' + key] = 'A ' + value;\n return this['__' + key];\n }\n }));\n\n objB = Object.create(objA);\n objB.__foo = 'FOO';\n (0, _emberMetal.defineProperty)(objB, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return this['__' + key];\n },\n set: function (key, value) {\n this['__' + key] = 'B ' + value;\n return this['__' + key];\n }\n }));\n },\n teardown: function () {\n objA = objB = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('using get() and set()', function (get, set) {\n equal(get(objA, 'foo'), 'FOO', 'should get FOO from A');\n equal(get(objB, 'foo'), 'FOO', 'should get FOO from B');\n\n set(objA, 'foo', 'BIFF');\n equal(get(objA, 'foo'), 'A BIFF', 'should change A');\n equal(get(objB, 'foo'), 'FOO', 'should NOT change B');\n\n set(objB, 'foo', 'bar');\n equal(get(objB, 'foo'), 'B bar', 'should change B');\n equal(get(objA, 'foo'), 'A BIFF', 'should NOT change A');\n\n set(objA, 'foo', 'BAZ');\n equal(get(objA, 'foo'), 'A BAZ', 'should change A');\n equal(get(objB, 'foo'), 'B bar', 'should NOT change B');\n });\n\n QUnit.module('computed - metadata');\n\n QUnit.test('can set metadata on a computed property', function () {\n var computedProperty = (0, _emberMetal.computed)(function () {});\n computedProperty.meta({ key: 'keyValue' });\n\n equal(computedProperty.meta().key, 'keyValue', 'saves passed meta hash to the _meta property');\n });\n\n QUnit.test('meta should return an empty hash if no meta is set', function () {\n var computedProperty = (0, _emberMetal.computed)(function () {});\n deepEqual(computedProperty.meta(), {}, 'returned value is an empty hash');\n });\n\n // ..........................................................\n // CACHEABLE\n //\n\n QUnit.module('computed - cacheable', {\n setup: function () {\n obj = {};\n count = 0;\n var func = function (key, value) {\n count++;\n return 'bar ' + count;\n };\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({ get: func, set: func }));\n },\n teardown: function () {\n obj = count = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('cacheable should cache', function (get, set) {\n equal(get(obj, 'foo'), 'bar 1', 'first get');\n equal(get(obj, 'foo'), 'bar 1', 'second get');\n equal(count, 1, 'should only invoke once');\n });\n\n (0, _internalTestHelpers.testBoth)('modifying a cacheable property should update cache', function (get, set) {\n equal(get(obj, 'foo'), 'bar 1', 'first get');\n equal(get(obj, 'foo'), 'bar 1', 'second get');\n\n equal(set(obj, 'foo', 'baz'), 'baz', 'setting');\n equal(get(obj, 'foo'), 'bar 2', 'third get');\n equal(count, 2, 'should not invoke again');\n });\n\n (0, _internalTestHelpers.testBoth)('inherited property should not pick up cache', function (get, set) {\n var objB = Object.create(obj);\n\n equal(get(obj, 'foo'), 'bar 1', 'obj first get');\n equal(get(objB, 'foo'), 'bar 2', 'objB first get');\n\n equal(get(obj, 'foo'), 'bar 1', 'obj second get');\n equal(get(objB, 'foo'), 'bar 2', 'objB second get');\n\n set(obj, 'foo', 'baz'); // modify A\n equal(get(obj, 'foo'), 'bar 3', 'obj third get');\n equal(get(objB, 'foo'), 'bar 2', 'objB third get');\n });\n\n (0, _internalTestHelpers.testBoth)('cacheFor should return the cached value', function (get, set) {\n equal((0, _emberMetal.cacheFor)(obj, 'foo'), undefined, 'should not yet be a cached value');\n\n get(obj, 'foo');\n\n equal((0, _emberMetal.cacheFor)(obj, 'foo'), 'bar 1', 'should retrieve cached value');\n });\n\n (0, _internalTestHelpers.testBoth)('cacheFor should return falsy cached values', function (get, set) {\n (0, _emberMetal.defineProperty)(obj, 'falsy', (0, _emberMetal.computed)(function () {\n return false;\n }));\n\n equal((0, _emberMetal.cacheFor)(obj, 'falsy'), undefined, 'should not yet be a cached value');\n\n get(obj, 'falsy');\n\n equal((0, _emberMetal.cacheFor)(obj, 'falsy'), false, 'should retrieve cached value');\n });\n\n (0, _internalTestHelpers.testBoth)('setting a cached computed property passes the old value as the third argument', function (get, set) {\n var obj = {\n foo: 0\n };\n\n var receivedOldValue = void 0;\n\n (0, _emberMetal.defineProperty)(obj, 'plusOne', (0, _emberMetal.computed)({\n get: function () {},\n set: function (key, value, oldValue) {\n receivedOldValue = oldValue;\n return value;\n }\n }).property('foo'));\n\n set(obj, 'plusOne', 1);\n strictEqual(receivedOldValue, undefined, 'oldValue should be undefined');\n\n set(obj, 'plusOne', 2);\n strictEqual(receivedOldValue, 1, 'oldValue should be 1');\n\n set(obj, 'plusOne', 3);\n strictEqual(receivedOldValue, 2, 'oldValue should be 2');\n });\n\n // ..........................................................\n // DEPENDENT KEYS\n //\n\n QUnit.module('computed - dependentkey', {\n setup: function () {\n obj = { bar: 'baz' };\n count = 0;\n var getterAndSetter = function (key, value) {\n count++;\n (0, _emberMetal.get)(this, 'bar');\n return 'bar ' + count;\n };\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: getterAndSetter,\n set: getterAndSetter\n }).property('bar'));\n },\n teardown: function () {\n obj = count = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('should lazily watch dependent keys on set', function (get, set) {\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n set(obj, 'foo', 'bar');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n });\n\n (0, _internalTestHelpers.testBoth)('should lazily watch dependent keys on get', function (get, set) {\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n get(obj, 'foo');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n });\n\n (0, _internalTestHelpers.testBoth)('local dependent key should invalidate cache', function (get, set) {\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n equal(get(obj, 'foo'), 'bar 1', 'get once');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n equal(get(obj, 'foo'), 'bar 1', 'cached retrieve');\n\n set(obj, 'bar', 'BIFF'); // should invalidate foo\n\n equal(get(obj, 'foo'), 'bar 2', 'should recache');\n equal(get(obj, 'foo'), 'bar 2', 'cached retrieve');\n });\n\n (0, _internalTestHelpers.testBoth)('should invalidate multiple nested dependent keys', function (get, set) {\n var count = 0;\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)(function () {\n count++;\n get(this, 'baz');\n return 'baz ' + count;\n }).property('baz'));\n\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n equal((0, _emberMetal.isWatching)(obj, 'baz'), false, 'precond not watching dependent key');\n equal(get(obj, 'foo'), 'bar 1', 'get once');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n equal((0, _emberMetal.isWatching)(obj, 'baz'), true, 'lazily setup watching dependent key');\n equal(get(obj, 'foo'), 'bar 1', 'cached retrieve');\n\n set(obj, 'baz', 'BIFF'); // should invalidate bar -> foo\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'should not be watching dependent key after cache cleared');\n equal((0, _emberMetal.isWatching)(obj, 'baz'), false, 'should not be watching dependent key after cache cleared');\n\n equal(get(obj, 'foo'), 'bar 2', 'should recache');\n equal(get(obj, 'foo'), 'bar 2', 'cached retrieve');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily setup watching dependent key');\n equal((0, _emberMetal.isWatching)(obj, 'baz'), true, 'lazily setup watching dependent key');\n });\n\n (0, _internalTestHelpers.testBoth)('circular keys should not blow up', function (get, set) {\n var func = function (key, value) {\n count++;\n return 'bar ' + count;\n };\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)({ get: func, set: func }).property('foo'));\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function (key) {\n count++;\n return 'foo ' + count;\n }).property('bar'));\n\n equal(get(obj, 'foo'), 'foo 1', 'get once');\n equal(get(obj, 'foo'), 'foo 1', 'cached retrieve');\n\n set(obj, 'bar', 'BIFF'); // should invalidate bar -> foo -> bar\n\n equal(get(obj, 'foo'), 'foo 3', 'should recache');\n equal(get(obj, 'foo'), 'foo 3', 'cached retrieve');\n });\n\n (0, _internalTestHelpers.testBoth)('redefining a property should undo old dependent keys', function (get, set) {\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n equal(get(obj, 'foo'), 'bar 1');\n equal((0, _emberMetal.isWatching)(obj, 'bar'), true, 'lazily watching dependent key');\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n count++;\n return 'baz ' + count;\n }).property('baz'));\n\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'after redefining should not be watching dependent key');\n\n equal(get(obj, 'foo'), 'baz 2');\n\n set(obj, 'bar', 'BIFF'); // should not kill cache\n equal(get(obj, 'foo'), 'baz 2');\n\n set(obj, 'baz', 'BOP');\n equal(get(obj, 'foo'), 'baz 3');\n });\n\n (0, _internalTestHelpers.testBoth)('can watch multiple dependent keys specified declaratively via brace expansion', function (get, set) {\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function (key) {\n count++;\n return 'foo ' + count;\n }).property('qux.{bar,baz}'));\n\n equal(get(obj, 'foo'), 'foo 1', 'get once');\n equal(get(obj, 'foo'), 'foo 1', 'cached retrieve');\n\n set(obj, 'qux', {});\n set(obj, 'qux.bar', 'bar'); // invalidate foo\n\n equal(get(obj, 'foo'), 'foo 2', 'foo invalidated from bar');\n\n set(obj, 'qux.baz', 'baz'); // invalidate foo\n\n equal(get(obj, 'foo'), 'foo 3', 'foo invalidated from baz');\n\n set(obj, 'qux.quux', 'quux'); // do not invalidate foo\n\n equal(get(obj, 'foo'), 'foo 3', 'foo not invalidated by quux');\n });\n\n (0, _internalTestHelpers.testBoth)('throws assertion if brace expansion notation has spaces', function (get, set) {\n expectAssertion(function () {\n (0, _emberMetal.defineProperty)(obj, 'roo', (0, _emberMetal.computed)(function (key) {\n count++;\n return 'roo ' + count;\n }).property('fee.{bar, baz,bop , }'));\n }, /cannot contain spaces/);\n });\n\n (0, _internalTestHelpers.testBoth)('throws an assertion if an uncached `get` is called after object is destroyed', function (get, set) {\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'precond not watching dependent key');\n\n var meta = (0, _emberMetal.meta)(obj);\n meta.destroy();\n\n obj.toString = function () {\n return '';\n };\n\n expectAssertion(function () {\n get(obj, 'foo', 'bar');\n }, 'Cannot modify dependent keys for `foo` on `` after it has been destroyed.');\n\n equal((0, _emberMetal.isWatching)(obj, 'bar'), false, 'deps were not updated');\n });\n\n // ..........................................................\n // CHAINED DEPENDENT KEYS\n //\n\n\n var func = void 0;\n var moduleOpts = {\n setup: function () {\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n };\n\n count = 0;\n func = function () {\n count++;\n return (0, _emberMetal.get)(obj, 'foo.bar.baz.biff') + ' ' + count;\n };\n },\n teardown: function () {\n obj = count = func = null;\n }\n };\n\n QUnit.module('computed - dependentkey with chained properties', moduleOpts);\n\n (0, _internalTestHelpers.testBoth)('depending on simple chain', function (get, set) {\n // assign computed property\n (0, _emberMetal.defineProperty)(obj, 'prop', (0, _emberMetal.computed)(func).property('foo.bar.baz.biff'));\n\n equal(get(obj, 'prop'), 'BIFF 1');\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(get(obj, 'prop'), 'BUZZ 2');\n equal(get(obj, 'prop'), 'BUZZ 2');\n\n set(get(obj, 'foo.bar'), 'baz', { biff: 'BLOB' });\n equal(get(obj, 'prop'), 'BLOB 3');\n equal(get(obj, 'prop'), 'BLOB 3');\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(get(obj, 'prop'), 'BUZZ 4');\n equal(get(obj, 'prop'), 'BUZZ 4');\n\n set(get(obj, 'foo'), 'bar', { baz: { biff: 'BOOM' } });\n equal(get(obj, 'prop'), 'BOOM 5');\n equal(get(obj, 'prop'), 'BOOM 5');\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(get(obj, 'prop'), 'BUZZ 6');\n equal(get(obj, 'prop'), 'BUZZ 6');\n\n set(obj, 'foo', { bar: { baz: { biff: 'BLARG' } } });\n equal(get(obj, 'prop'), 'BLARG 7');\n equal(get(obj, 'prop'), 'BLARG 7');\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(get(obj, 'prop'), 'BUZZ 8');\n equal(get(obj, 'prop'), 'BUZZ 8');\n\n (0, _emberMetal.defineProperty)(obj, 'prop');\n set(obj, 'prop', 'NONE');\n equal(get(obj, 'prop'), 'NONE');\n\n set(obj, 'foo', { bar: { baz: { biff: 'BLARG' } } });\n equal(get(obj, 'prop'), 'NONE'); // should do nothing\n equal(count, 8, 'should be not have invoked computed again');\n });\n\n (0, _internalTestHelpers.testBoth)('chained dependent keys should evaluate computed properties lazily', function (get, set) {\n (0, _emberMetal.defineProperty)(obj.foo.bar, 'b', (0, _emberMetal.computed)(func));\n (0, _emberMetal.defineProperty)(obj.foo, 'c', (0, _emberMetal.computed)(function () {}).property('bar.b'));\n equal(count, 0, 'b should not run');\n });\n\n // ..........................................................\n // improved-cp-syntax\n //\n\n QUnit.module('computed - improved cp syntax');\n\n QUnit.test('setter and getters are passed using an object', function () {\n var testObj = _emberRuntime.Object.extend({\n a: '1',\n b: '2',\n aInt: (0, _emberMetal.computed)('a', {\n get: function (keyName) {\n equal(keyName, 'aInt', 'getter receives the keyName');\n return parseInt(this.get('a'));\n },\n set: function (keyName, value, oldValue) {\n equal(keyName, 'aInt', 'setter receives the keyName');\n equal(value, 123, 'setter receives the new value');\n equal(oldValue, 1, 'setter receives the old value');\n this.set('a', '' + value); // side effect\n return parseInt(this.get('a'));\n }\n })\n }).create();\n\n ok(testObj.get('aInt') === 1, 'getter works');\n testObj.set('aInt', 123);\n ok(testObj.get('a') === '123', 'setter works');\n ok(testObj.get('aInt') === 123, 'cp has been updated too');\n });\n\n QUnit.test('setter can be omited', function () {\n var testObj = _emberRuntime.Object.extend({\n a: '1',\n b: '2',\n aInt: (0, _emberMetal.computed)('a', {\n get: function (keyName) {\n equal(keyName, 'aInt', 'getter receives the keyName');\n return parseInt(this.get('a'));\n }\n })\n }).create();\n\n ok(testObj.get('aInt') === 1, 'getter works');\n ok(testObj.get('a') === '1');\n testObj.set('aInt', '123');\n ok(testObj.get('aInt') === '123', 'cp has been updated too');\n });\n\n QUnit.test('the return value of the setter gets cached', function () {\n var testObj = _emberRuntime.Object.extend({\n a: '1',\n sampleCP: (0, _emberMetal.computed)('a', {\n get: function (keyName) {\n ok(false, 'The getter should not be invoked');\n return 'get-value';\n },\n set: function (keyName, value, oldValue) {\n return 'set-value';\n }\n })\n }).create();\n\n testObj.set('sampleCP', 'abcd');\n ok(testObj.get('sampleCP') === 'set-value', 'The return value of the CP was cached');\n });\n\n // ..........................................................\n // BUGS\n //\n\n QUnit.module('computed edge cases');\n\n QUnit.test('adding a computed property should show up in key iteration', function () {\n var obj = {};\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {}));\n\n var found = [];\n for (var key in obj) {\n found.push(key);\n }\n ok(found.indexOf('foo') >= 0, 'should find computed property in iteration found=' + found);\n ok('foo' in obj, 'foo in obj should pass');\n });\n\n (0, _internalTestHelpers.testBoth)('when setting a value after it had been retrieved empty don\\'t pass function UNDEFINED as oldValue', function (get, set) {\n var obj = {};\n var oldValueIsNoFunction = true;\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {},\n set: function (key, value, oldValue) {\n if (typeof oldValue === 'function') {\n oldValueIsNoFunction = false;\n }\n return undefined;\n }\n }));\n\n get(obj, 'foo');\n set(obj, 'foo', undefined);\n\n ok(oldValueIsNoFunction);\n });\n\n QUnit.module('computed - setter');\n\n (0, _internalTestHelpers.testBoth)('setting a watched computed property', function (get, set) {\n var obj = {\n firstName: 'Yehuda',\n lastName: 'Katz'\n };\n\n (0, _emberMetal.defineProperty)(obj, 'fullName', (0, _emberMetal.computed)({\n get: function () {\n return get(this, 'firstName') + ' ' + get(this, 'lastName');\n },\n set: function (key, value) {\n var values = value.split(' ');\n set(this, 'firstName', values[0]);\n set(this, 'lastName', values[1]);\n return value;\n }\n }).property('firstName', 'lastName'));\n\n var fullNameWillChange = 0;\n var fullNameDidChange = 0;\n var firstNameWillChange = 0;\n var firstNameDidChange = 0;\n var lastNameWillChange = 0;\n var lastNameDidChange = 0;\n (0, _emberMetal._addBeforeObserver)(obj, 'fullName', function () {\n fullNameWillChange++;\n });\n (0, _emberMetal.addObserver)(obj, 'fullName', function () {\n fullNameDidChange++;\n });\n (0, _emberMetal._addBeforeObserver)(obj, 'firstName', function () {\n firstNameWillChange++;\n });\n (0, _emberMetal.addObserver)(obj, 'firstName', function () {\n firstNameDidChange++;\n });\n (0, _emberMetal._addBeforeObserver)(obj, 'lastName', function () {\n lastNameWillChange++;\n });\n (0, _emberMetal.addObserver)(obj, 'lastName', function () {\n lastNameDidChange++;\n });\n\n equal(get(obj, 'fullName'), 'Yehuda Katz');\n\n set(obj, 'fullName', 'Yehuda Katz');\n\n set(obj, 'fullName', 'Kris Selden');\n\n equal(get(obj, 'fullName'), 'Kris Selden');\n equal(get(obj, 'firstName'), 'Kris');\n equal(get(obj, 'lastName'), 'Selden');\n\n equal(fullNameWillChange, 1);\n equal(fullNameDidChange, 1);\n equal(firstNameWillChange, 1);\n equal(firstNameDidChange, 1);\n equal(lastNameWillChange, 1);\n equal(lastNameDidChange, 1);\n });\n\n (0, _internalTestHelpers.testBoth)('setting a cached computed property that modifies the value you give it', function (get, set) {\n var obj = {\n foo: 0\n };\n\n (0, _emberMetal.defineProperty)(obj, 'plusOne', (0, _emberMetal.computed)({\n get: function (key) {\n return get(this, 'foo') + 1;\n },\n set: function (key, value) {\n set(this, 'foo', value);\n return value + 1;\n }\n }).property('foo'));\n\n var plusOneWillChange = 0;\n var plusOneDidChange = 0;\n (0, _emberMetal._addBeforeObserver)(obj, 'plusOne', function () {\n plusOneWillChange++;\n });\n (0, _emberMetal.addObserver)(obj, 'plusOne', function () {\n plusOneDidChange++;\n });\n\n equal(get(obj, 'plusOne'), 1);\n set(obj, 'plusOne', 1);\n equal(get(obj, 'plusOne'), 2);\n set(obj, 'plusOne', 1);\n equal(get(obj, 'plusOne'), 2);\n\n equal(plusOneWillChange, 1);\n equal(plusOneDidChange, 1);\n\n set(obj, 'foo', 5);\n equal(get(obj, 'plusOne'), 6);\n\n equal(plusOneWillChange, 2);\n equal(plusOneDidChange, 2);\n });\n\n QUnit.module('computed - default setter');\n\n (0, _internalTestHelpers.testBoth)('when setting a value on a computed property that doesn\\'t handle sets', function (get, set) {\n var obj = {};\n var observerFired = false;\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return 'foo';\n }));\n\n (0, _emberMetal.addObserver)(obj, 'foo', null, function () {\n return observerFired = true;\n });\n\n set(obj, 'foo', 'bar');\n\n equal(get(obj, 'foo'), 'bar', 'The set value is properly returned');\n ok(typeof obj.foo === 'string', 'The computed property was removed');\n ok(observerFired, 'The observer was still notified');\n });\n\n QUnit.module('computed - readOnly');\n\n QUnit.test('is chainable', function () {\n var cp = (0, _emberMetal.computed)(function () {}).readOnly();\n\n ok(cp instanceof _emberMetal.Descriptor);\n ok(cp instanceof _emberMetal.ComputedProperty);\n });\n\n QUnit.test('throws assertion if called over a CP with a setter defined with the new syntax', function () {\n expectAssertion(function () {\n (0, _emberMetal.computed)({\n get: function () {},\n set: function () {}\n }).readOnly();\n }, /Computed properties that define a setter using the new syntax cannot be read-only/);\n });\n\n (0, _internalTestHelpers.testBoth)('protects against setting', function (get, set) {\n var obj = {};\n\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)(function (key) {\n return 'barValue';\n }).readOnly());\n\n equal(get(obj, 'bar'), 'barValue');\n\n throws(function () {\n set(obj, 'bar', 'newBar');\n }, /Cannot set read\\-only property \"bar\" on object:/);\n\n equal(get(obj, 'bar'), 'barValue');\n });\n});","QUnit.module('ESLint | ember-metal/tests/computed_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/computed_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/descriptor_test', ['ember-babel', 'ember-runtime', 'ember-metal'], function (_emberBabel, _emberRuntime, _emberMetal) {\n 'use strict';\n\n // IE9 soft-fails when trying to delete a non-configurable property\n var hasCompliantDelete = function () {\n var obj = {};\n\n Object.defineProperty(obj, 'zomg', { configurable: false, value: 'zomg' });\n\n try {\n delete obj.zomg;\n } catch (e) {\n return true;\n }\n\n return false;\n }();\n\n // IE9 soft-fails when trying to assign to a non-writable property\n var hasCompliantAssign = function () {\n var obj = {};\n\n Object.defineProperty(obj, 'zomg', { writable: false, value: 'zomg' });\n\n try {\n obj.zomg = 'lol';\n } catch (e) {\n return true;\n }\n\n return false;\n }();\n\n var DescriptorTest = function () {\n DescriptorTest.test = function test(title, callback) {\n var _this = this;\n\n QUnit.test(title, function (assert) {\n callback(assert, new _this(assert));\n });\n };\n\n function DescriptorTest(assert) {\n (0, _emberBabel.classCallCheck)(this, DescriptorTest);\n\n this.assert = assert;\n }\n\n /* abstract install(key: string, desc: Descriptor); */\n\n /* abstract set(key: string, value: any); */\n\n /* abstract finalize(): Object; */\n\n\n return DescriptorTest;\n }();\n\n var classes = [function (_DescriptorTest) {\n (0, _emberBabel.inherits)(_class, _DescriptorTest);\n\n _class.module = function module(title) {\n QUnit.module(title + ': using defineProperty on an object directly');\n };\n\n function _class(assert) {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _DescriptorTest.call(this, assert));\n\n _this2.object = {};\n return _this2;\n }\n\n _class.prototype.install = function install(key, desc) {\n var object = this.object,\n assert = this.assert;\n\n\n (0, _emberMetal.defineProperty)(object, key, desc);\n\n assert.ok(object.hasOwnProperty(key));\n };\n\n _class.prototype.set = function set(key, value) {\n this.object[key] = value;\n };\n\n _class.prototype.finalize = function finalize() {\n return this.object;\n };\n\n _class.prototype.source = function source() {\n return this.object;\n };\n\n return _class;\n }(DescriptorTest), function (_DescriptorTest2) {\n (0, _emberBabel.inherits)(_class2, _DescriptorTest2);\n\n _class2.module = function module(title) {\n QUnit.module(title + ': using defineProperty on a prototype');\n };\n\n function _class2(assert) {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this3 = (0, _emberBabel.possibleConstructorReturn)(this, _DescriptorTest2.call(this, assert));\n\n _this3.proto = {};\n return _this3;\n }\n\n _class2.prototype.install = function install(key, desc) {\n var proto = this.proto,\n assert = this.assert;\n\n\n (0, _emberMetal.defineProperty)(proto, key, desc);\n\n assert.ok(proto.hasOwnProperty(key));\n };\n\n _class2.prototype.set = function set(key, value) {\n this.proto[key] = value;\n };\n\n _class2.prototype.finalize = function finalize() {\n return Object.create(this.proto);\n };\n\n _class2.prototype.source = function source() {\n return this.proto;\n };\n\n return _class2;\n }(DescriptorTest), function (_DescriptorTest3) {\n (0, _emberBabel.inherits)(_class3, _DescriptorTest3);\n\n _class3.module = function module(title) {\n QUnit.module(title + ': in EmberObject.extend()');\n };\n\n function _class3(assert) {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this4 = (0, _emberBabel.possibleConstructorReturn)(this, _DescriptorTest3.call(this, assert));\n\n _this4.klass = null;\n _this4.props = {};\n return _this4;\n }\n\n _class3.prototype.install = function install(key, desc) {\n this.props[key] = desc;\n };\n\n _class3.prototype.set = function set(key, value) {\n this.props[key] = value;\n };\n\n _class3.prototype.finalize = function finalize() {\n this.klass = _emberRuntime.Object.extend(this.props);\n return this.klass.create();\n };\n\n _class3.prototype.source = function source() {\n return this.klass.prototype;\n };\n\n return _class3;\n }(DescriptorTest), function (_DescriptorTest4) {\n (0, _emberBabel.inherits)(_class4, _DescriptorTest4);\n\n _class4.module = function module(title) {\n QUnit.module(title + ': in EmberObject.extend() through a mixin');\n };\n\n function _class4(assert) {\n (0, _emberBabel.classCallCheck)(this, _class4);\n\n var _this5 = (0, _emberBabel.possibleConstructorReturn)(this, _DescriptorTest4.call(this, assert));\n\n _this5.klass = null;\n _this5.props = {};\n return _this5;\n }\n\n _class4.prototype.install = function install(key, desc) {\n this.props[key] = desc;\n };\n\n _class4.prototype.set = function set(key, value) {\n this.props[key] = value;\n };\n\n _class4.prototype.finalize = function finalize() {\n this.klass = _emberRuntime.Object.extend(_emberMetal.Mixin.create(this.props));\n return this.klass.create();\n };\n\n _class4.prototype.source = function source() {\n return this.klass.prototype;\n };\n\n return _class4;\n }(DescriptorTest), function (_DescriptorTest5) {\n (0, _emberBabel.inherits)(_class5, _DescriptorTest5);\n\n _class5.module = function module(title) {\n QUnit.module(title + ': inherited from another EmberObject super class');\n };\n\n function _class5(assert) {\n (0, _emberBabel.classCallCheck)(this, _class5);\n\n var _this6 = (0, _emberBabel.possibleConstructorReturn)(this, _DescriptorTest5.call(this, assert));\n\n _this6.superklass = null;\n _this6.props = {};\n return _this6;\n }\n\n _class5.prototype.install = function install(key, desc) {\n this.props[key] = desc;\n };\n\n _class5.prototype.set = function set(key, value) {\n this.props[key] = value;\n };\n\n _class5.prototype.finalize = function finalize() {\n this.superklass = _emberRuntime.Object.extend(this.props);\n return this.superklass.extend().create();\n };\n\n _class5.prototype.source = function source() {\n return this.superklass.prototype;\n };\n\n return _class5;\n }(DescriptorTest)];\n\n classes.forEach(function (TestClass) {\n TestClass.module('ember-metal/descriptor');\n\n TestClass.test('defining a configurable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ configurable: true, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n delete source.foo;\n\n assert.strictEqual(obj.foo, undefined);\n\n Object.defineProperty(source, 'foo', { configurable: true, value: 'baz' });\n\n assert.equal(obj.foo, 'baz');\n });\n\n TestClass.test('defining a non-configurable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ configurable: false, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n if (hasCompliantDelete) {\n assert.throws(function () {\n return delete source.foo;\n }, TypeError);\n } else {\n delete source.foo;\n }\n\n assert.throws(function () {\n return Object.defineProperty(source, 'foo', { configurable: true, value: 'baz' });\n }, TypeError);\n\n assert.equal(obj.foo, 'bar');\n });\n\n TestClass.test('defining an enumerable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ enumerable: true, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n assert.ok(Object.keys(source).indexOf('foo') !== -1);\n });\n\n TestClass.test('defining a non-enumerable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ enumerable: false, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n assert.ok(Object.keys(source).indexOf('foo') === -1);\n });\n\n TestClass.test('defining a writable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ writable: true, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n source.foo = 'baz';\n\n assert.equal(obj.foo, 'baz');\n\n obj.foo = 'bat';\n\n assert.equal(obj.foo, 'bat');\n });\n\n TestClass.test('defining a non-writable property', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({ writable: false, value: 'bar' }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n var source = factory.source();\n\n if (hasCompliantAssign) {\n assert.throws(function () {\n return source.foo = 'baz';\n }, TypeError);\n assert.throws(function () {\n return obj.foo = 'baz';\n }, TypeError);\n } else {\n source.foo = 'baz';\n obj.foo = 'baz';\n }\n\n assert.equal(obj.foo, 'bar');\n });\n\n TestClass.test('defining a getter', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({\n get: function () {\n return this.__foo__;\n }\n }));\n\n factory.set('__foo__', 'bar');\n\n var obj = factory.finalize();\n\n assert.equal(obj.foo, 'bar');\n\n obj.__foo__ = 'baz';\n\n assert.equal(obj.foo, 'baz');\n });\n\n TestClass.test('defining a setter', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({\n set: function (value) {\n this.__foo__ = value;\n }\n }));\n\n factory.set('__foo__', 'bar');\n\n var obj = factory.finalize();\n\n assert.equal(obj.__foo__, 'bar');\n\n obj.foo = 'baz';\n\n assert.equal(obj.__foo__, 'baz');\n });\n\n TestClass.test('combining multiple setter and getters', function (assert, factory) {\n factory.install('foo', (0, _emberMetal.descriptor)({\n get: function () {\n return this.__foo__;\n },\n\n set: function (value) {\n this.__foo__ = value;\n }\n }));\n\n factory.set('__foo__', 'foo');\n\n factory.install('bar', (0, _emberMetal.descriptor)({\n get: function () {\n return this.__bar__;\n },\n\n set: function (value) {\n this.__bar__ = value;\n }\n }));\n\n factory.set('__bar__', 'bar');\n\n factory.install('fooBar', (0, _emberMetal.descriptor)({\n get: function () {\n return this.foo + '-' + this.bar;\n }\n }));\n\n var obj = factory.finalize();\n\n assert.equal(obj.fooBar, 'foo-bar');\n\n obj.foo = 'FOO';\n\n assert.equal(obj.fooBar, 'FOO-bar');\n\n obj.__bar__ = 'BAR';\n\n assert.equal(obj.fooBar, 'FOO-BAR');\n\n if (hasCompliantAssign) {\n assert.throws(function () {\n return obj.fooBar = 'foobar';\n }, TypeError);\n } else {\n obj.fooBar = 'foobar';\n }\n\n assert.equal(obj.fooBar, 'FOO-BAR');\n });\n });\n});","QUnit.module('ESLint | ember-metal/tests/descriptor_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/descriptor_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/events_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/props/events_test');\n\n QUnit.test('listener should receive event - removing should remove', function () {\n var obj = {};\n var count = 0;\n\n function F() {\n count++;\n }\n\n (0, _emberMetal.addListener)(obj, 'event!', F);\n equal(count, 0, 'nothing yet');\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(count, 1, 'received event');\n\n (0, _emberMetal.removeListener)(obj, 'event!', F);\n\n count = 0;\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(count, 0, 'received event');\n });\n\n QUnit.test('listeners should be inherited', function () {\n var obj = {};\n var count = 0;\n var F = function () {\n count++;\n };\n\n (0, _emberMetal.addListener)(obj, 'event!', F);\n\n var obj2 = Object.create(obj);\n\n equal(count, 0, 'nothing yet');\n\n (0, _emberMetal.sendEvent)(obj2, 'event!');\n equal(count, 1, 'received event');\n\n (0, _emberMetal.removeListener)(obj2, 'event!', F);\n\n count = 0;\n (0, _emberMetal.sendEvent)(obj2, 'event!');\n equal(count, 0, 'did not receive event');\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(count, 1, 'should still invoke on parent');\n });\n\n QUnit.test('adding a listener more than once should only invoke once', function () {\n var obj = {};\n var count = 0;\n function F() {\n count++;\n }\n (0, _emberMetal.addListener)(obj, 'event!', F);\n (0, _emberMetal.addListener)(obj, 'event!', F);\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(count, 1, 'should only invoke once');\n });\n\n QUnit.test('adding a listener with a target should invoke with target', function () {\n var obj = {};\n var target = void 0;\n\n target = {\n count: 0,\n method: function () {\n this.count++;\n }\n };\n\n (0, _emberMetal.addListener)(obj, 'event!', target, target.method);\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(target.count, 1, 'should invoke');\n });\n\n QUnit.test('suspending a listener should not invoke during callback', function () {\n var obj = {};\n var target = void 0,\n otherTarget = void 0;\n\n target = {\n count: 0,\n method: function () {\n this.count++;\n }\n };\n\n otherTarget = {\n count: 0,\n method: function () {\n this.count++;\n }\n };\n\n (0, _emberMetal.addListener)(obj, 'event!', target, target.method);\n (0, _emberMetal.addListener)(obj, 'event!', otherTarget, otherTarget.method);\n\n function callback() {\n /*jshint validthis:true */\n equal(this, target);\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n\n return 'result';\n }\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n\n equal((0, _emberMetal.suspendListener)(obj, 'event!', target, target.method, callback), 'result');\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n\n equal(target.count, 2, 'should invoke');\n equal(otherTarget.count, 3, 'should invoke');\n });\n\n QUnit.test('adding a listener with string method should lookup method on event delivery', function () {\n var obj = {};\n var target = void 0;\n\n target = {\n count: 0,\n method: function () {}\n };\n\n (0, _emberMetal.addListener)(obj, 'event!', target, 'method');\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(target.count, 0, 'should invoke but do nothing');\n\n target.method = function () {\n this.count++;\n };\n (0, _emberMetal.sendEvent)(obj, 'event!');\n equal(target.count, 1, 'should invoke now');\n });\n\n QUnit.test('calling sendEvent with extra params should be passed to listeners', function () {\n var obj = {};\n var params = null;\n (0, _emberMetal.addListener)(obj, 'event!', function () {\n params = Array.prototype.slice.call(arguments);\n });\n\n (0, _emberMetal.sendEvent)(obj, 'event!', ['foo', 'bar']);\n deepEqual(params, ['foo', 'bar'], 'params should be saved');\n });\n\n QUnit.test('hasListeners tells you if there are listeners for a given event', function () {\n var obj = {};\n\n function F() {}\n function F2() {}\n\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), false, 'no listeners at first');\n\n (0, _emberMetal.addListener)(obj, 'event!', F);\n (0, _emberMetal.addListener)(obj, 'event!', F2);\n\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), true, 'has listeners');\n\n (0, _emberMetal.removeListener)(obj, 'event!', F);\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), true, 'has listeners');\n\n (0, _emberMetal.removeListener)(obj, 'event!', F2);\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), false, 'has no more listeners');\n\n (0, _emberMetal.addListener)(obj, 'event!', F);\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), true, 'has listeners');\n });\n\n QUnit.test('calling removeListener without method should remove all listeners', function () {\n var obj = {};\n function F() {}\n function F2() {}\n\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), false, 'no listeners at first');\n\n (0, _emberMetal.addListener)(obj, 'event!', F);\n (0, _emberMetal.addListener)(obj, 'event!', F2);\n\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), true, 'has listeners');\n (0, _emberMetal.removeListener)(obj, 'event!');\n\n equal((0, _emberMetal.hasListeners)(obj, 'event!'), false, 'has no more listeners');\n });\n\n QUnit.test('while suspended, it should not be possible to add a duplicate listener', function () {\n var obj = {};\n var target = void 0;\n\n target = {\n count: 0,\n method: function () {\n this.count++;\n }\n };\n\n (0, _emberMetal.addListener)(obj, 'event!', target, target.method);\n\n function callback() {\n (0, _emberMetal.addListener)(obj, 'event!', target, target.method);\n }\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n\n (0, _emberMetal.suspendListener)(obj, 'event!', target, target.method, callback);\n\n equal(target.count, 1, 'should invoke');\n equal((0, _emberMetal.meta)(obj).matchingListeners('event!').length, 3, 'a duplicate listener wasn\\'t added');\n\n // now test suspendListeners...\n\n (0, _emberMetal.sendEvent)(obj, 'event!');\n\n (0, _emberMetal.suspendListeners)(obj, ['event!'], target, target.method, callback);\n\n equal(target.count, 2, 'should have invoked again');\n equal((0, _emberMetal.meta)(obj).matchingListeners('event!').length, 3, 'a duplicate listener wasn\\'t added');\n });\n\n QUnit.test('a listener can be added as part of a mixin', function () {\n var triggered = 0;\n var MyMixin = _emberMetal.Mixin.create({\n foo1: (0, _emberMetal.on)('bar', function () {\n triggered++;\n }),\n\n foo2: (0, _emberMetal.on)('bar', function () {\n triggered++;\n })\n });\n\n var obj = {};\n MyMixin.apply(obj);\n\n (0, _emberMetal.sendEvent)(obj, 'bar');\n equal(triggered, 2, 'should invoke listeners');\n });\n\n QUnit.test('Ember.on asserts for invalid arguments', function () {\n expectAssertion(function () {\n _emberMetal.Mixin.create({\n foo1: (0, _emberMetal.on)('bar')\n });\n }, 'on expects function as last argument');\n\n expectAssertion(function () {\n _emberMetal.Mixin.create({\n foo1: (0, _emberMetal.on)(function () {})\n });\n }, 'on called without valid event names');\n });\n\n QUnit.test('a listener added as part of a mixin may be overridden', function () {\n var triggered = 0;\n var FirstMixin = _emberMetal.Mixin.create({\n foo: (0, _emberMetal.on)('bar', function () {\n triggered++;\n })\n });\n var SecondMixin = _emberMetal.Mixin.create({\n foo: (0, _emberMetal.on)('baz', function () {\n triggered++;\n })\n });\n\n var obj = {};\n FirstMixin.apply(obj);\n SecondMixin.apply(obj);\n\n (0, _emberMetal.sendEvent)(obj, 'bar');\n equal(triggered, 0, 'should not invoke from overridden property');\n\n (0, _emberMetal.sendEvent)(obj, 'baz');\n equal(triggered, 1, 'should invoke from subclass property');\n });\n});","QUnit.module('ESLint | ember-metal/tests/events_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/events_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/expand_properties_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var foundProperties = [];\n\n function addProperty(property) {\n foundProperties.push(property);\n }\n\n QUnit.module('Property Brace Expansion Test', {\n setup: function () {\n foundProperties = [];\n }\n });\n\n QUnit.test('Properties without expansions are unaffected', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('a', addProperty);\n (0, _emberMetal.expandProperties)('a.b', addProperty);\n (0, _emberMetal.expandProperties)('a.b.[]', addProperty);\n (0, _emberMetal.expandProperties)('a.b.@each.c', addProperty);\n\n deepEqual(['a', 'a.b', 'a.b.[]', 'a.b.@each.c'].sort(), foundProperties.sort());\n });\n\n QUnit.test('A single expansion at the end expands properly', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('a.b.{c,d}', addProperty);\n\n deepEqual(['a.b.c', 'a.b.d'].sort(), foundProperties.sort());\n });\n\n QUnit.test('A property with only a brace expansion expands correctly', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('{a,b,c}', addProperty);\n\n var expected = ['a', 'b', 'c'];\n deepEqual(expected.sort(), foundProperties.sort());\n });\n\n QUnit.test('Expansions with single properties only expand once', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('a.b.{c}.d.{e}', addProperty);\n\n deepEqual(['a.b.c.d.e'], foundProperties);\n });\n\n QUnit.test('A single brace expansion expands correctly', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('a.{b,c,d}.e', addProperty);\n\n var expected = ['a.b.e', 'a.c.e', 'a.d.e'];\n deepEqual(expected.sort(), foundProperties.sort());\n });\n\n QUnit.test('Multiple brace expansions work correctly', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('{a,b,c}.d.{e,f}.g', addProperty);\n\n var expected = ['a.d.e.g', 'a.d.f.g', 'b.d.e.g', 'b.d.f.g', 'c.d.e.g', 'c.d.f.g'];\n deepEqual(expected.sort(), foundProperties.sort());\n });\n\n QUnit.test('A property with only brace expansions expands correctly', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('{a,b,c}.{d}.{e,f}', addProperty);\n\n var expected = ['a.d.e', 'a.d.f', 'b.d.e', 'b.d.f', 'c.d.e', 'c.d.f'];\n deepEqual(expected.sort(), foundProperties.sort());\n });\n\n QUnit.test('Nested brace expansions are not allowed', function () {\n var nestedBraceProperties = ['a.{b.{c,d}}', 'a.{{b}.c}', 'a.{b,c}.{d.{e,f}.g', 'a.{b.{c}', 'a.{b,c}}', 'model.{bar,baz'];\n\n nestedBraceProperties.forEach(function (invalidProperties) {\n expectAssertion(function () {\n return (0, _emberMetal.expandProperties)(invalidProperties, addProperty);\n });\n }, /Brace expanded properties have to be balanced and cannot be nested/);\n });\n\n QUnit.test('A property with no braces does not expand', function () {\n expect(1);\n\n (0, _emberMetal.expandProperties)('a,b,c.d.e,f', addProperty);\n\n deepEqual(foundProperties, ['a,b,c.d.e,f']);\n });\n\n QUnit.test('A pattern must be a string', function () {\n expect(1);\n\n expectAssertion(function () {\n (0, _emberMetal.expandProperties)([1, 2], addProperty);\n }, /A computed property key must be a string/);\n });\n\n QUnit.test('A pattern must not contain a space', function () {\n expect(1);\n\n expectAssertion(function () {\n (0, _emberMetal.expandProperties)('{a, b}', addProperty);\n }, /Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"/);\n });\n});","QUnit.module('ESLint | ember-metal/tests/expand_properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/expand_properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/injected_property_test', ['ember-utils', 'ember-metal'], function (_emberUtils, _emberMetal) {\n 'use strict';\n\n QUnit.module('InjectedProperty');\n\n QUnit.test('injected properties should be descriptors', function () {\n ok(new _emberMetal.InjectedProperty() instanceof _emberMetal.Descriptor);\n });\n\n QUnit.test('injected properties should be overridable', function () {\n var obj = {};\n (0, _emberMetal.defineProperty)(obj, 'foo', new _emberMetal.InjectedProperty());\n\n (0, _emberMetal.set)(obj, 'foo', 'bar');\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'bar', 'should return the overridden value');\n });\n\n QUnit.test('getting on an object without an owner or container should fail assertion', function () {\n var obj = {};\n (0, _emberMetal.defineProperty)(obj, 'foo', new _emberMetal.InjectedProperty('type', 'name'));\n\n expectAssertion(function () {\n (0, _emberMetal.get)(obj, 'foo');\n }, /Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container./);\n });\n\n QUnit.test('getting on an object without an owner but with a container should not fail', function () {\n var obj = {\n container: {\n lookup: function (key) {\n ok(true, 'should call container.lookup');\n return key;\n }\n }\n };\n\n (0, _emberMetal.defineProperty)(obj, 'foo', new _emberMetal.InjectedProperty('type', 'name'));\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'type:name', 'should return the value of container.lookup');\n });\n\n QUnit.test('getting should return a lookup on the container', function () {\n expect(2);\n\n var obj = {};\n\n (0, _emberUtils.setOwner)(obj, {\n lookup: function (key) {\n ok(true, 'should call container.lookup');\n return key;\n }\n });\n\n (0, _emberMetal.defineProperty)(obj, 'foo', new _emberMetal.InjectedProperty('type', 'name'));\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'type:name', 'should return the value of container.lookup');\n });\n\n QUnit.test('omitting the lookup name should default to the property name', function () {\n var obj = {};\n\n (0, _emberUtils.setOwner)(obj, {\n lookup: function (key) {\n return key;\n }\n });\n\n (0, _emberMetal.defineProperty)(obj, 'foo', new _emberMetal.InjectedProperty('type'));\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'type:foo', 'should lookup the type using the property name');\n });\n});","QUnit.module('ESLint | ember-metal/tests/injected_property_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/injected_property_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/instrumentation_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember Instrumentation', {\n teardown: function () {\n (0, _emberMetal.instrumentationReset)();\n }\n });\n\n QUnit.test('execute block even if no listeners', function () {\n var result = (0, _emberMetal.instrument)('render', {}, function () {\n return 'hello';\n });\n equal(result, 'hello', 'called block');\n });\n\n QUnit.test('subscribing to a simple path receives the listener', function () {\n expect(12);\n\n var sentPayload = {};\n var count = 0;\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n if (count === 0) {\n strictEqual(name, 'render');\n } else {\n strictEqual(name, 'render.handlebars');\n }\n\n ok(typeof timestamp === 'number');\n strictEqual(payload, sentPayload);\n },\n after: function (name, timestamp, payload) {\n if (count === 0) {\n strictEqual(name, 'render');\n } else {\n strictEqual(name, 'render.handlebars');\n }\n\n ok(typeof timestamp === 'number');\n strictEqual(payload, sentPayload);\n\n count++;\n }\n });\n\n (0, _emberMetal.instrument)('render', sentPayload, function () {});\n\n (0, _emberMetal.instrument)('render.handlebars', sentPayload, function () {});\n });\n\n QUnit.test('returning a value from the before callback passes it to the after callback', function () {\n expect(2);\n\n var passthru1 = {};\n var passthru2 = {};\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n return passthru1;\n },\n after: function (name, timestamp, payload, beforeValue) {\n strictEqual(beforeValue, passthru1);\n }\n });\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n return passthru2;\n },\n after: function (name, timestamp, payload, beforeValue) {\n strictEqual(beforeValue, passthru2);\n }\n });\n\n (0, _emberMetal.instrument)('render', null, function () {});\n });\n\n QUnit.test('instrument with 2 args (name, callback) no payload', function () {\n expect(1);\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n deepEqual(payload, {});\n },\n after: function () {}\n });\n\n (0, _emberMetal.instrument)('render', function () {});\n });\n\n QUnit.test('instrument with 3 args (name, callback, binding) no payload', function () {\n expect(2);\n\n var binding = {};\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n deepEqual(payload, {});\n },\n after: function () {}\n });\n\n (0, _emberMetal.instrument)('render', function () {\n deepEqual(this, binding);\n }, binding);\n });\n\n QUnit.test('instrument with 3 args (name, payload, callback) with payload', function () {\n expect(1);\n\n var expectedPayload = { hi: 1 };\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n deepEqual(payload, expectedPayload);\n },\n after: function () {}\n });\n\n (0, _emberMetal.instrument)('render', expectedPayload, function () {});\n });\n\n QUnit.test('instrument with 4 args (name, payload, callback, binding) with payload', function () {\n expect(2);\n\n var expectedPayload = { hi: 1 };\n var binding = {};\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function (name, timestamp, payload) {\n deepEqual(payload, expectedPayload);\n },\n after: function () {}\n });\n\n (0, _emberMetal.instrument)('render', expectedPayload, function () {\n deepEqual(this, binding);\n }, binding);\n });\n\n QUnit.test('raising an exception in the instrumentation attaches it to the payload', function () {\n expect(2);\n\n var error = new Error('Instrumentation');\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function () {},\n after: function (name, timestamp, payload) {\n strictEqual(payload.exception, error);\n }\n });\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function () {},\n after: function (name, timestamp, payload) {\n strictEqual(payload.exception, error);\n }\n });\n\n (0, _emberMetal.instrument)('render.handlebars', null, function () {\n throw error;\n });\n });\n\n QUnit.test('it is possible to add a new subscriber after the first instrument', function () {\n (0, _emberMetal.instrument)('render.handlebars', null, function () {});\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function () {\n ok(true, 'Before callback was called');\n },\n after: function () {\n ok(true, 'After callback was called');\n }\n });\n\n (0, _emberMetal.instrument)('render.handlebars', null, function () {});\n });\n\n QUnit.test('it is possible to remove a subscriber', function () {\n expect(4);\n\n var count = 0;\n\n var subscriber = (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function () {\n equal(count, 0);\n ok(true, 'Before callback was called');\n },\n after: function () {\n equal(count, 0);\n ok(true, 'After callback was called');\n count++;\n }\n });\n\n (0, _emberMetal.instrument)('render.handlebars', null, function () {});\n\n (0, _emberMetal.instrumentationUnsubscribe)(subscriber);\n\n (0, _emberMetal.instrument)('render.handlebars', null, function () {});\n });\n});","QUnit.module('ESLint | ember-metal/tests/instrumentation_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/instrumentation_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/is_blank_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.isBlank');\n\n QUnit.test('Ember.isBlank', function () {\n var string = 'string';\n var fn = function () {};\n var object = { length: 0 };\n\n equal(true, (0, _emberMetal.isBlank)(null), 'for null');\n equal(true, (0, _emberMetal.isBlank)(undefined), 'for undefined');\n equal(true, (0, _emberMetal.isBlank)(''), 'for an empty String');\n equal(true, (0, _emberMetal.isBlank)(' '), 'for a whitespace String');\n equal(true, (0, _emberMetal.isBlank)('\\n\\t'), 'for another whitespace String');\n equal(false, (0, _emberMetal.isBlank)('\\n\\t Hi'), 'for a String with whitespaces');\n equal(false, (0, _emberMetal.isBlank)(true), 'for true');\n equal(false, (0, _emberMetal.isBlank)(false), 'for false');\n equal(false, (0, _emberMetal.isBlank)(string), 'for a String');\n equal(false, (0, _emberMetal.isBlank)(fn), 'for a Function');\n equal(false, (0, _emberMetal.isBlank)(0), 'for 0');\n equal(true, (0, _emberMetal.isBlank)([]), 'for an empty Array');\n equal(false, (0, _emberMetal.isBlank)({}), 'for an empty Object');\n equal(true, (0, _emberMetal.isBlank)(object), 'for an Object that has zero \\'length\\'');\n equal(false, (0, _emberMetal.isBlank)([1, 2, 3]), 'for a non-empty array');\n });\n});","QUnit.module('ESLint | ember-metal/tests/is_blank_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/is_blank_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/is_empty_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.isEmpty');\n\n QUnit.test('Ember.isEmpty', function () {\n var string = 'string';\n var fn = function () {};\n var object = { length: 0 };\n\n equal(true, (0, _emberMetal.isEmpty)(null), 'for null');\n equal(true, (0, _emberMetal.isEmpty)(undefined), 'for undefined');\n equal(true, (0, _emberMetal.isEmpty)(''), 'for an empty String');\n equal(false, (0, _emberMetal.isEmpty)(' '), 'for a whitespace String');\n equal(false, (0, _emberMetal.isEmpty)('\\n\\t'), 'for another whitespace String');\n equal(false, (0, _emberMetal.isEmpty)(true), 'for true');\n equal(false, (0, _emberMetal.isEmpty)(false), 'for false');\n equal(false, (0, _emberMetal.isEmpty)(string), 'for a String');\n equal(false, (0, _emberMetal.isEmpty)(fn), 'for a Function');\n equal(false, (0, _emberMetal.isEmpty)(0), 'for 0');\n equal(true, (0, _emberMetal.isEmpty)([]), 'for an empty Array');\n equal(false, (0, _emberMetal.isEmpty)({}), 'for an empty Object');\n equal(true, (0, _emberMetal.isEmpty)(object), 'for an Object that has zero \\'length\\'');\n });\n\n QUnit.test('Ember.isEmpty Ember.Map', function () {\n var map = new _emberMetal.Map();\n equal(true, (0, _emberMetal.isEmpty)(map), 'Empty map is empty');\n map.set('foo', 'bar');\n equal(false, (0, _emberMetal.isEmpty)(map), 'Map is not empty');\n });\n\n QUnit.test('Ember.isEmpty Ember.OrderedSet', function () {\n var orderedSet = new _emberMetal.OrderedSet();\n equal(true, (0, _emberMetal.isEmpty)(orderedSet), 'Empty ordered set is empty');\n orderedSet.add('foo');\n equal(false, (0, _emberMetal.isEmpty)(orderedSet), 'Ordered set is not empty');\n });\n});","QUnit.module('ESLint | ember-metal/tests/is_empty_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/is_empty_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/is_none_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.isNone');\n\n QUnit.test('Ember.isNone', function () {\n var string = 'string';\n var fn = function () {};\n\n equal(true, (0, _emberMetal.isNone)(null), 'for null');\n equal(true, (0, _emberMetal.isNone)(undefined), 'for undefined');\n equal(false, (0, _emberMetal.isNone)(''), 'for an empty String');\n equal(false, (0, _emberMetal.isNone)(true), 'for true');\n equal(false, (0, _emberMetal.isNone)(false), 'for false');\n equal(false, (0, _emberMetal.isNone)(string), 'for a String');\n equal(false, (0, _emberMetal.isNone)(fn), 'for a Function');\n equal(false, (0, _emberMetal.isNone)(0), 'for 0');\n equal(false, (0, _emberMetal.isNone)([]), 'for an empty Array');\n equal(false, (0, _emberMetal.isNone)({}), 'for an empty Object');\n });\n});","QUnit.module('ESLint | ember-metal/tests/is_none_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/is_none_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/is_present_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.isPresent');\n\n QUnit.test('Ember.isPresent', function () {\n var string = 'string';\n var fn = function () {};\n var object = { length: 0 };\n\n equal(false, (0, _emberMetal.isPresent)(), 'for no params');\n equal(false, (0, _emberMetal.isPresent)(null), 'for null');\n equal(false, (0, _emberMetal.isPresent)(undefined), 'for undefined');\n equal(false, (0, _emberMetal.isPresent)(''), 'for an empty String');\n equal(false, (0, _emberMetal.isPresent)(' '), 'for a whitespace String');\n equal(false, (0, _emberMetal.isPresent)('\\n\\t'), 'for another whitespace String');\n equal(true, (0, _emberMetal.isPresent)('\\n\\t Hi'), 'for a String with whitespaces');\n equal(true, (0, _emberMetal.isPresent)(true), 'for true');\n equal(true, (0, _emberMetal.isPresent)(false), 'for false');\n equal(true, (0, _emberMetal.isPresent)(string), 'for a String');\n equal(true, (0, _emberMetal.isPresent)(fn), 'for a Function');\n equal(true, (0, _emberMetal.isPresent)(0), 'for 0');\n equal(false, (0, _emberMetal.isPresent)([]), 'for an empty Array');\n equal(true, (0, _emberMetal.isPresent)({}), 'for an empty Object');\n equal(false, (0, _emberMetal.isPresent)(object), 'for an Object that has zero \\'length\\'');\n equal(true, (0, _emberMetal.isPresent)([1, 2, 3]), 'for a non-empty array');\n });\n});","QUnit.module('ESLint | ember-metal/tests/is_present_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/is_present_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/libraries_test', ['ember-debug', 'ember-metal', 'ember/features'], function (_emberDebug, _emberMetal, _features) {\n 'use strict';\n\n var libs = void 0,\n registry = void 0; /* globals EmberDev */\n\n var originalWarn = (0, _emberDebug.getDebugFunction)('warn');\n\n QUnit.module('Libraries registry', {\n setup: function () {\n libs = new _emberMetal.Libraries();\n registry = libs._registry;\n },\n teardown: function () {\n libs = null;\n registry = null;\n\n (0, _emberDebug.setDebugFunction)('warn', originalWarn);\n }\n });\n\n QUnit.test('core libraries come before other libraries', function () {\n expect(2);\n\n libs.register('my-lib', '2.0.0a');\n libs.registerCoreLibrary('DS', '1.0.0-beta.2');\n\n equal(registry[0].name, 'DS');\n equal(registry[1].name, 'my-lib');\n });\n\n QUnit.test('only the first registration of a library is stored', function () {\n expect(3);\n\n libs.register('magic', 1.23);\n libs.register('magic', 2.23);\n\n equal(registry[0].name, 'magic');\n equal(registry[0].version, 1.23);\n equal(registry.length, 1);\n });\n\n if (_features.EMBER_LIBRARIES_ISREGISTERED) {\n QUnit.test('isRegistered returns correct value', function () {\n expect(3);\n\n equal(libs.isRegistered('magic'), false);\n\n libs.register('magic', 1.23);\n equal(libs.isRegistered('magic'), true);\n\n libs.deRegister('magic');\n equal(libs.isRegistered('magic'), false);\n });\n }\n\n QUnit.test('attempting to register a library that is already registered warns you', function () {\n if (EmberDev && EmberDev.runningProdBuild) {\n ok(true, 'Logging does not occur in production builds');\n return;\n }\n\n expect(1);\n\n libs.register('magic', 1.23);\n\n (0, _emberDebug.setDebugFunction)('warn', function (msg, test) {\n if (!test) {\n equal(msg, 'Library \"magic\" is already registered with Ember.');\n }\n });\n\n // Should warn us\n libs.register('magic', 2.23);\n });\n\n QUnit.test('libraries can be de-registered', function () {\n expect(2);\n\n libs.register('lib1', '1.0.0b');\n libs.register('lib2', '1.0.0b');\n libs.register('lib3', '1.0.0b');\n\n libs.deRegister('lib1');\n libs.deRegister('lib3');\n\n equal(registry[0].name, 'lib2');\n equal(registry.length, 1);\n });\n});","QUnit.module('ESLint | ember-metal/tests/libraries_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/libraries_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/main_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n // testing reexports\n\n // From sindresourhus/semver-regex https://github.com/sindresorhus/semver-regex/blob/795b05628d96597ebcbe6d31ef4a432858365582/index.js#L3\n var SEMVER_REGEX = /^\\bv?(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)(?:-[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\\.[\\da-z\\-]+)*)?\\b$/;\n\n QUnit.module('ember-metal/core/main');\n\n QUnit.test('Ember registers itself', function () {\n var lib = _emberMetal.default.libraries._registry[0];\n\n equal(lib.name, 'Ember');\n equal(lib.version, _emberMetal.default.VERSION);\n });\n\n QUnit.test('Ember.VERSION is in alignment with SemVer v2.0.0', function () {\n ok(SEMVER_REGEX.test(_emberMetal.default.VERSION), 'Ember.VERSION (' + _emberMetal.default.VERSION + ')is valid SemVer v2.0.0');\n });\n\n QUnit.test('SEMVER_REGEX properly validates and invalidates version numbers', function () {\n function validateVersionString(versionString, expectedResult) {\n equal(SEMVER_REGEX.test(versionString), expectedResult);\n }\n\n // Positive test cases\n validateVersionString('1.11.3', true);\n validateVersionString('1.0.0-beta.16.1', true);\n validateVersionString('1.12.1+canary.aba1412', true);\n validateVersionString('2.0.0-beta.1+canary.bb344775', true);\n\n // Negative test cases\n validateVersionString('1.11.3.aba18a', false);\n validateVersionString('1.11', false);\n });\n\n QUnit.test('Ember.K is deprecated', function (assert) {\n expectDeprecation(function () {\n var obj = {\n noop: _emberMetal.default.K\n };\n\n assert.equal(obj, obj.noop());\n }, 'Ember.K is deprecated in favor of defining a function inline.');\n });\n});","QUnit.module('ESLint | ember-metal/tests/main_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/main_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/map_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var object = void 0,\n number = void 0,\n string = void 0,\n map = void 0,\n variety = void 0;\n var varieties = [['Map', _emberMetal.Map], ['MapWithDefault', _emberMetal.MapWithDefault]];\n\n function testMap(nameAndFunc) {\n variety = nameAndFunc[0];\n\n QUnit.module('Ember.' + variety + ' (forEach and get are implicitly tested)', {\n setup: function () {\n object = {};\n number = 42;\n string = 'foo';\n\n map = nameAndFunc[1].create();\n }\n });\n\n var mapHasLength = function (expected, theMap) {\n theMap = theMap || map;\n\n var length = 0;\n theMap.forEach(function () {\n length++;\n });\n\n equal(length, expected, 'map should contain ' + expected + ' items');\n };\n\n var mapHasEntries = function (entries, theMap) {\n theMap = theMap || map;\n\n for (var i = 0; i < entries.length; i++) {\n equal(theMap.get(entries[i][0]), entries[i][1]);\n equal(theMap.has(entries[i][0]), true);\n }\n\n mapHasLength(entries.length, theMap);\n };\n\n var unboundThis = void 0;\n\n (function () {\n unboundThis = this;\n })();\n\n QUnit.test('set', function () {\n map.set(object, 'winning');\n map.set(number, 'winning');\n map.set(string, 'winning');\n\n mapHasEntries([[object, 'winning'], [number, 'winning'], [string, 'winning']]);\n\n map.set(object, 'losing');\n map.set(number, 'losing');\n map.set(string, 'losing');\n\n mapHasEntries([[object, 'losing'], [number, 'losing'], [string, 'losing']]);\n\n equal(map.has('nope'), false, 'expected the key `nope` to not be present');\n equal(map.has({}), false, 'expected they key `{}` to not be present');\n });\n\n QUnit.test('set chaining', function () {\n map.set(object, 'winning').set(number, 'winning').set(string, 'winning');\n\n mapHasEntries([[object, 'winning'], [number, 'winning'], [string, 'winning']]);\n\n map.set(object, 'losing').set(number, 'losing').set(string, 'losing');\n\n mapHasEntries([[object, 'losing'], [number, 'losing'], [string, 'losing']]);\n\n equal(map.has('nope'), false, 'expected the key `nope` to not be present');\n equal(map.has({}), false, 'expected they key `{}` to not be present');\n });\n\n QUnit.test('with key with undefined value', function () {\n map.set('foo', undefined);\n\n map.forEach(function (value, key) {\n equal(value, undefined);\n equal(key, 'foo');\n });\n\n ok(map.has('foo'), 'has key foo, even with undefined value');\n\n equal(map.size, 1);\n });\n\n QUnit.test('arity of forEach is 1 – es6 23.1.3.5', function () {\n equal(map.forEach.length, 1, 'expected arity for map.forEach is 1');\n });\n\n QUnit.test('forEach throws without a callback as the first argument', function () {\n equal(map.forEach.length, 1, 'expected arity for map.forEach is 1');\n });\n\n QUnit.test('has empty collection', function () {\n equal(map.has('foo'), false);\n equal(map.has(), false);\n });\n\n QUnit.test('delete', function () {\n expectNoDeprecation();\n\n map.set(object, 'winning');\n map.set(number, 'winning');\n map.set(string, 'winning');\n\n map.delete(object);\n map.delete(number);\n map.delete(string);\n\n // doesn't explode\n map.delete({});\n\n mapHasEntries([]);\n });\n\n QUnit.test('copy and then update', function () {\n map.set(object, 'winning');\n map.set(number, 'winning');\n map.set(string, 'winning');\n\n var map2 = map.copy();\n\n map2.set(object, 'losing');\n map2.set(number, 'losing');\n map2.set(string, 'losing');\n\n mapHasEntries([[object, 'winning'], [number, 'winning'], [string, 'winning']]);\n\n mapHasEntries([[object, 'losing'], [number, 'losing'], [string, 'losing']], map2);\n });\n\n QUnit.test('copy and then delete', function () {\n map.set(object, 'winning');\n map.set(number, 'winning');\n map.set(string, 'winning');\n\n var map2 = map.copy();\n\n map2.delete(object);\n map2.delete(number);\n map2.delete(string);\n\n mapHasEntries([[object, 'winning'], [number, 'winning'], [string, 'winning']]);\n\n mapHasEntries([], map2);\n });\n\n QUnit.test('size', function () {\n //Add a key twice\n equal(map.size, 0);\n map.set(string, 'a string');\n equal(map.size, 1);\n map.set(string, 'the same string');\n equal(map.size, 1);\n\n //Add another\n map.set(number, 'a number');\n equal(map.size, 2);\n\n //Remove one that doesn't exist\n map.delete('does not exist');\n equal(map.size, 2);\n\n //Check copy\n var copy = map.copy();\n equal(copy.size, 2);\n\n //Remove a key twice\n map.delete(number);\n equal(map.size, 1);\n map.delete(number);\n equal(map.size, 1);\n\n //Remove the last key\n map.delete(string);\n equal(map.size, 0);\n map.delete(string);\n equal(map.size, 0);\n });\n\n QUnit.test('forEach without proper callback', function () {\n expectAssertion(function () {\n map.forEach();\n }, '[object Undefined] is not a function');\n\n expectAssertion(function () {\n map.forEach(undefined);\n }, '[object Undefined] is not a function');\n\n expectAssertion(function () {\n map.forEach(1);\n }, '[object Number] is not a function');\n\n expectAssertion(function () {\n map.forEach({});\n }, '[object Object] is not a function');\n\n map.forEach(function (value, key) {\n map.delete(key);\n });\n // ensure the error happens even if no data is present\n equal(map.size, 0);\n expectAssertion(function () {\n map.forEach({});\n }, '[object Object] is not a function');\n });\n\n QUnit.test('forEach basic', function () {\n map.set('a', 1);\n map.set('b', 2);\n map.set('c', 3);\n\n var iteration = 0;\n\n var expectations = [{ value: 1, key: 'a', context: unboundThis }, { value: 2, key: 'b', context: unboundThis }, { value: 3, key: 'c', context: unboundThis }];\n\n map.forEach(function (value, key, theMap) {\n var expectation = expectations[iteration];\n\n equal(value, expectation.value, 'value should be correct');\n equal(key, expectation.key, 'key should be correct');\n equal(this, expectation.context, 'context should be as if it was unbound');\n equal(map, theMap, 'map being iterated over should be passed in');\n\n iteration++;\n });\n\n equal(iteration, 3, 'expected 3 iterations');\n });\n\n QUnit.test('forEach basic /w context', function () {\n map.set('a', 1);\n map.set('b', 2);\n map.set('c', 3);\n\n var iteration = 0;\n var context = {};\n var expectations = [{ value: 1, key: 'a', context: context }, { value: 2, key: 'b', context: context }, { value: 3, key: 'c', context: context }];\n\n map.forEach(function (value, key, theMap) {\n var expectation = expectations[iteration];\n\n equal(value, expectation.value, 'value should be correct');\n equal(key, expectation.key, 'key should be correct');\n equal(this, expectation.context, 'context should be as if it was unbound');\n equal(map, theMap, 'map being iterated over should be passed in');\n\n iteration++;\n }, context);\n\n equal(iteration, 3, 'expected 3 iterations');\n });\n\n QUnit.test('forEach basic /w deletion while enumerating', function () {\n map.set('a', 1);\n map.set('b', 2);\n map.set('c', 3);\n\n var iteration = 0;\n\n var expectations = [{ value: 1, key: 'a', context: unboundThis }, { value: 2, key: 'b', context: unboundThis }];\n\n map.forEach(function (value, key, theMap) {\n if (iteration === 0) {\n map.delete('c');\n }\n\n var expectation = expectations[iteration];\n\n equal(value, expectation.value, 'value should be correct');\n equal(key, expectation.key, 'key should be correct');\n equal(this, expectation.context, 'context should be as if it was unbound');\n equal(map, theMap, 'map being iterated over should be passed in');\n\n iteration++;\n });\n\n equal(iteration, 2, 'expected 3 iterations');\n });\n\n QUnit.test('forEach basic /w addition while enumerating', function () {\n map.set('a', 1);\n map.set('b', 2);\n map.set('c', 3);\n\n var iteration = 0;\n\n var expectations = [{ value: 1, key: 'a', context: unboundThis }, { value: 2, key: 'b', context: unboundThis }, { value: 3, key: 'c', context: unboundThis }, { value: 4, key: 'd', context: unboundThis }];\n\n map.forEach(function (value, key, theMap) {\n if (iteration === 0) {\n map.set('d', 4);\n }\n\n var expectation = expectations[iteration];\n\n equal(value, expectation.value, 'value should be correct');\n equal(key, expectation.key, 'key should be correct');\n equal(this, expectation.context, 'context should be as if it was unbound');\n equal(map, theMap, 'map being iterated over should be passed in');\n\n iteration++;\n });\n\n equal(iteration, 4, 'expected 3 iterations');\n });\n\n QUnit.test('clear', function () {\n var iterations = 0;\n\n map.set('a', 1);\n map.set('b', 2);\n map.set('c', 3);\n map.set('d', 4);\n\n equal(map.size, 4);\n\n map.forEach(function () {\n iterations++;\n });\n equal(iterations, 4);\n\n map.clear();\n equal(map.size, 0);\n iterations = 0;\n map.forEach(function () {\n iterations++;\n });\n equal(iterations, 0);\n });\n\n QUnit.test('-0', function () {\n equal(map.has(-0), false);\n equal(map.has(0), false);\n\n map.set(-0, 'zero');\n\n equal(map.has(-0), true);\n equal(map.has(0), true);\n\n equal(map.get(0), 'zero');\n equal(map.get(-0), 'zero');\n\n map.forEach(function (value, key) {\n equal(1 / key, Infinity, 'spec says key should be positive zero');\n });\n });\n\n QUnit.test('NaN', function () {\n equal(map.has(NaN), false);\n\n map.set(NaN, 'not-a-number');\n\n equal(map.has(NaN), true);\n\n equal(map.get(NaN), 'not-a-number');\n });\n\n QUnit.test('NaN Boxed', function () {\n //jshint -W053\n var boxed = new Number(NaN);\n equal(map.has(boxed), false);\n\n map.set(boxed, 'not-a-number');\n\n equal(map.has(boxed), true);\n equal(map.has(NaN), false);\n\n equal(map.get(NaN), undefined);\n equal(map.get(boxed), 'not-a-number');\n });\n\n QUnit.test('0 value', function () {\n var obj = {};\n equal(map.has(obj), false);\n\n equal(map.size, 0);\n map.set(obj, 0);\n equal(map.size, 1);\n\n equal(map.has(obj), true);\n equal(map.get(obj), 0);\n\n map.delete(obj);\n equal(map.has(obj), false);\n equal(map.get(obj), undefined);\n equal(map.size, 0);\n });\n }\n\n for (var i = 0; i < varieties.length; i++) {\n testMap(varieties[i]);\n }\n\n QUnit.module('MapWithDefault - default values');\n\n QUnit.test('Retrieving a value that has not been set returns and sets a default value', function () {\n var map = _emberMetal.MapWithDefault.create({\n defaultValue: function (key) {\n return [key];\n }\n });\n\n var value = map.get('ohai');\n deepEqual(value, ['ohai']);\n\n strictEqual(value, map.get('ohai'));\n });\n\n QUnit.test('Map.prototype.constructor', function () {\n var map = new _emberMetal.Map();\n equal(map.constructor, _emberMetal.Map);\n });\n\n QUnit.test('MapWithDefault.prototype.constructor', function () {\n var map = new _emberMetal.MapWithDefault({\n defaultValue: function (key) {\n return key;\n }\n });\n equal(map.constructor, _emberMetal.MapWithDefault);\n });\n\n QUnit.test('Copying a MapWithDefault copies the default value', function () {\n var map = _emberMetal.MapWithDefault.create({\n defaultValue: function (key) {\n return [key];\n }\n });\n\n map.set('ohai', 1);\n map.get('bai');\n\n var map2 = map.copy();\n\n equal(map2.get('ohai'), 1);\n deepEqual(map2.get('bai'), ['bai']);\n\n map2.set('kthx', 3);\n\n deepEqual(map.get('kthx'), ['kthx']);\n equal(map2.get('kthx'), 3);\n\n deepEqual(map2.get('default'), ['default']);\n\n map2.defaultValue = function (key) {\n return ['tom is on', key];\n };\n\n deepEqual(map2.get('drugs'), ['tom is on', 'drugs']);\n });\n\n QUnit.module('OrderedSet', {\n setup: function () {\n object = {};\n number = 42;\n string = 'foo';\n\n map = _emberMetal.OrderedSet.create();\n }\n });\n\n QUnit.test('add returns the set', function () {\n var obj = {};\n equal(map.add(obj), map);\n equal(map.add(obj), map, 'when it is already in the set');\n });\n});","QUnit.module('ESLint | ember-metal/tests/map_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/map_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/meta_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.meta');\n\n QUnit.test('should return the same hash for an object', function () {\n var obj = {};\n\n (0, _emberMetal.meta)(obj).foo = 'bar';\n\n equal((0, _emberMetal.meta)(obj).foo, 'bar', 'returns same hash with multiple calls to Ember.meta()');\n });\n\n QUnit.test('meta is not enumerable', function () {\n var proto = void 0,\n obj = void 0,\n props = void 0,\n prop = void 0;\n proto = { foo: 'bar' };\n (0, _emberMetal.meta)(proto);\n obj = Object.create(proto);\n (0, _emberMetal.meta)(obj);\n obj.bar = 'baz';\n props = [];\n for (prop in obj) {\n props.push(prop);\n }\n deepEqual(props.sort(), ['bar', 'foo']);\n if (typeof JSON !== 'undefined' && 'stringify' in JSON) {\n try {\n JSON.stringify(obj);\n } catch (e) {\n ok(false, 'meta should not fail JSON.stringify');\n }\n }\n });\n\n QUnit.test('meta.listeners basics', function (assert) {\n var t = {};\n var m = (0, _emberMetal.meta)({});\n m.addToListeners('hello', t, 'm', 0);\n var matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t);\n m.removeFromListeners('hello', t, 'm');\n matching = m.matchingListeners('hello');\n assert.equal(matching, undefined);\n });\n\n QUnit.test('meta.listeners inheritance', function (assert) {\n var target = {};\n var parent = {};\n var parentMeta = (0, _emberMetal.meta)(parent);\n parentMeta.addToListeners('hello', target, 'm', 0);\n\n var child = Object.create(parent);\n var m = (0, _emberMetal.meta)(child);\n\n var matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], target);\n assert.equal(matching[1], 'm');\n assert.equal(matching[2], 0);\n m.removeFromListeners('hello', target, 'm');\n matching = m.matchingListeners('hello');\n assert.equal(matching, undefined);\n matching = parentMeta.matchingListeners('hello');\n assert.equal(matching.length, 3);\n });\n\n QUnit.test('meta.listeners deduplication', function (assert) {\n var t = {};\n var m = (0, _emberMetal.meta)({});\n m.addToListeners('hello', t, 'm', 0);\n m.addToListeners('hello', t, 'm', 0);\n var matching = m.matchingListeners('hello');\n assert.equal(matching.length, 3);\n assert.equal(matching[0], t);\n });\n\n QUnit.test('meta.writeWatching issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writeWatching('hello', 1);\n }, 'Cannot update watchers for `hello` on `` after it has been destroyed.');\n });\n\n QUnit.test('meta.writableTag issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writableTag(function () {});\n }, 'Cannot create a new tag for `` after it has been destroyed.');\n });\n\n QUnit.test('meta.writableChainWatchers issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writableChainWatchers(function () {});\n }, 'Cannot create a new chain watcher for `` after it has been destroyed.');\n });\n\n QUnit.test('meta.writableChains issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writableChains(function () {});\n }, 'Cannot create a new chains for `` after it has been destroyed.');\n });\n\n QUnit.test('meta.writeValues issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writeValues('derp', 'ohai');\n }, 'Cannot set the value of `derp` on `` after it has been destroyed.');\n });\n\n QUnit.test('meta.writeDeps issues useful error after destroy', function (assert) {\n var target = {\n toString: function () {\n return '';\n }\n };\n var targetMeta = (0, _emberMetal.meta)(target);\n\n targetMeta.destroy();\n\n expectAssertion(function () {\n targetMeta.writeDeps('derp', 'ohai', 1);\n }, 'Cannot modify dependent keys for `ohai` on `` after it has been destroyed.');\n });\n});","QUnit.module('ESLint | ember-metal/tests/meta_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/meta_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/alias_method_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('aliasMethod');\n\n function validateAliasMethod(obj) {\n equal(obj.fooMethod(), 'FOO', 'obj.fooMethod()');\n equal(obj.barMethod(), 'FOO', 'obj.barMethod should be a copy of foo');\n }\n\n QUnit.test('methods of another name are aliased when the mixin is applied', function () {\n var MyMixin = _emberMetal.Mixin.create({\n fooMethod: function () {\n return 'FOO';\n },\n\n barMethod: (0, _emberMetal.aliasMethod)('fooMethod')\n });\n\n var obj = MyMixin.apply({});\n validateAliasMethod(obj);\n });\n\n QUnit.test('should follow aliasMethods all the way down', function () {\n var MyMixin = _emberMetal.Mixin.create({\n bar: (0, _emberMetal.aliasMethod)('foo'), baz: function () {\n return 'baz';\n },\n\n foo: (0, _emberMetal.aliasMethod)('baz')\n });\n\n var obj = MyMixin.apply({});\n equal((0, _emberMetal.get)(obj, 'bar')(), 'baz', 'should have followed aliasMethods');\n });\n\n QUnit.test('should alias methods from other dependent mixins', function () {\n var BaseMixin = _emberMetal.Mixin.create({\n fooMethod: function () {\n return 'FOO';\n }\n });\n\n var MyMixin = _emberMetal.Mixin.create(BaseMixin, {\n barMethod: (0, _emberMetal.aliasMethod)('fooMethod')\n });\n\n var obj = MyMixin.apply({});\n validateAliasMethod(obj);\n });\n\n QUnit.test('should alias methods from other mixins applied at same time', function () {\n var BaseMixin = _emberMetal.Mixin.create({\n fooMethod: function () {\n return 'FOO';\n }\n });\n\n var MyMixin = _emberMetal.Mixin.create({\n barMethod: (0, _emberMetal.aliasMethod)('fooMethod')\n });\n\n var obj = (0, _emberMetal.mixin)({}, BaseMixin, MyMixin);\n validateAliasMethod(obj);\n });\n\n QUnit.test('should alias methods from mixins already applied on object', function () {\n var BaseMixin = _emberMetal.Mixin.create({\n quxMethod: function () {\n return 'qux';\n }\n });\n\n var MyMixin = _emberMetal.Mixin.create({\n bar: (0, _emberMetal.aliasMethod)('foo'),\n barMethod: (0, _emberMetal.aliasMethod)('fooMethod')\n });\n\n var obj = {\n fooMethod: function () {\n return 'FOO';\n }\n };\n\n BaseMixin.apply(obj);\n MyMixin.apply(obj);\n\n validateAliasMethod(obj);\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/alias_method_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/alias_method_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/apply_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.Mixin.apply');\n\n function K() {}\n\n QUnit.test('using apply() should apply properties', function () {\n var MixinA = _emberMetal.Mixin.create({ foo: 'FOO', baz: K });\n var obj = {};\n (0, _emberMetal.mixin)(obj, MixinA);\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should apply foo');\n equal((0, _emberMetal.get)(obj, 'baz'), K, 'should apply foo');\n });\n\n QUnit.test('applying anonymous properties', function () {\n var obj = {};\n (0, _emberMetal.mixin)(obj, {\n foo: 'FOO',\n baz: K\n });\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should apply foo');\n equal((0, _emberMetal.get)(obj, 'baz'), K, 'should apply foo');\n });\n\n QUnit.test('applying null values', function () {\n expectAssertion(function () {\n return (0, _emberMetal.mixin)({}, null);\n });\n });\n\n QUnit.test('applying a property with an undefined value', function () {\n var obj = { tagName: '' };\n (0, _emberMetal.mixin)(obj, { tagName: undefined });\n\n strictEqual((0, _emberMetal.get)(obj, 'tagName'), '');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/apply_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/apply_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/computed_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n function K() {\n return this;\n }\n\n QUnit.module('Mixin Computed Properties');\n\n QUnit.test('overriding computed properties', function () {\n var MixinA = void 0,\n MixinB = void 0,\n MixinC = void 0,\n MixinD = void 0;\n var obj = void 0;\n\n MixinA = _emberMetal.Mixin.create({\n aProp: (0, _emberMetal.computed)(function () {\n return 'A';\n })\n });\n\n MixinB = _emberMetal.Mixin.create(MixinA, {\n aProp: (0, _emberMetal.computed)(function () {\n return this._super.apply(this, arguments) + 'B';\n })\n });\n\n MixinC = _emberMetal.Mixin.create(MixinA, {\n aProp: (0, _emberMetal.computed)(function () {\n return this._super.apply(this, arguments) + 'C';\n })\n });\n\n MixinD = _emberMetal.Mixin.create({\n aProp: (0, _emberMetal.computed)(function () {\n return this._super.apply(this, arguments) + 'D';\n })\n });\n\n obj = {};\n MixinB.apply(obj);\n equal((0, _emberMetal.get)(obj, 'aProp'), 'AB', 'should expose super for B');\n\n obj = {};\n MixinC.apply(obj);\n equal((0, _emberMetal.get)(obj, 'aProp'), 'AC', 'should expose super for C');\n\n obj = {};\n\n MixinA.apply(obj);\n MixinD.apply(obj);\n equal((0, _emberMetal.get)(obj, 'aProp'), 'AD', 'should define super for D');\n\n obj = {};\n (0, _emberMetal.defineProperty)(obj, 'aProp', (0, _emberMetal.computed)(function (key) {\n return 'obj';\n }));\n MixinD.apply(obj);\n equal((0, _emberMetal.get)(obj, 'aProp'), 'objD', 'should preserve original computed property');\n });\n\n QUnit.test('calling set on overridden computed properties', function () {\n var SuperMixin = void 0,\n SubMixin = void 0;\n var obj = void 0;\n\n var superGetOccurred = false;\n var superSetOccurred = false;\n\n SuperMixin = _emberMetal.Mixin.create({\n aProp: (0, _emberMetal.computed)({\n get: function (key) {\n superGetOccurred = true;\n },\n set: function (key, value) {\n superSetOccurred = true;\n }\n })\n });\n\n SubMixin = _emberMetal.Mixin.create(SuperMixin, {\n aProp: (0, _emberMetal.computed)({\n get: function (key) {\n return this._super.apply(this, arguments);\n },\n set: function (key, value) {\n return this._super.apply(this, arguments);\n }\n })\n });\n\n obj = {};\n SubMixin.apply(obj);\n\n (0, _emberMetal.set)(obj, 'aProp', 'set thyself');\n ok(superSetOccurred, 'should pass set to _super');\n\n superSetOccurred = false; // reset the set assertion\n\n obj = {};\n SubMixin.apply(obj);\n\n (0, _emberMetal.get)(obj, 'aProp');\n ok(superGetOccurred, 'should pass get to _super');\n\n (0, _emberMetal.set)(obj, 'aProp', 'set thyself');\n ok(superSetOccurred, 'should pass set to _super after getting');\n });\n\n QUnit.test('setter behavior works properly when overriding computed properties', function () {\n var obj = {};\n\n var MixinA = _emberMetal.Mixin.create({\n cpWithSetter2: (0, _emberMetal.computed)(K),\n cpWithSetter3: (0, _emberMetal.computed)(K),\n cpWithoutSetter: (0, _emberMetal.computed)(K)\n });\n\n var cpWasCalled = false;\n\n var MixinB = _emberMetal.Mixin.create({\n cpWithSetter2: (0, _emberMetal.computed)({\n get: K,\n set: function (k, v) {\n cpWasCalled = true;\n }\n }),\n\n cpWithSetter3: (0, _emberMetal.computed)({\n get: K,\n set: function (k, v) {\n cpWasCalled = true;\n }\n }),\n\n cpWithoutSetter: (0, _emberMetal.computed)(function (k) {\n cpWasCalled = true;\n })\n });\n\n MixinA.apply(obj);\n MixinB.apply(obj);\n\n (0, _emberMetal.set)(obj, 'cpWithSetter2', 'test');\n ok(cpWasCalled, 'The computed property setter was called when defined with two args');\n cpWasCalled = false;\n\n (0, _emberMetal.set)(obj, 'cpWithSetter3', 'test');\n ok(cpWasCalled, 'The computed property setter was called when defined with three args');\n cpWasCalled = false;\n\n (0, _emberMetal.set)(obj, 'cpWithoutSetter', 'test');\n equal((0, _emberMetal.get)(obj, 'cpWithoutSetter'), 'test', 'The default setter was called, the value is correct');\n ok(!cpWasCalled, 'The default setter was called, not the CP itself');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/computed_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/computed_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/concatenated_properties_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Mixin concatenatedProperties');\n\n QUnit.test('defining concatenated properties should concat future version', function () {\n var MixinA = _emberMetal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: ['a', 'b', 'c']\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: ['d', 'e', 'f']\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), ['a', 'b', 'c', 'd', 'e', 'f']);\n });\n\n QUnit.test('defining concatenated properties should concat future version', function () {\n var MixinA = _emberMetal.Mixin.create({\n concatenatedProperties: null\n });\n\n var MixinB = _emberMetal.Mixin.create({\n concatenatedProperties: null\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n\n deepEqual(obj.concatenatedProperties, []);\n });\n\n QUnit.test('concatenatedProperties should be concatenated', function () {\n var MixinA = _emberMetal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: ['a', 'b', 'c']\n });\n\n var MixinB = _emberMetal.Mixin.create({\n concatenatedProperties: 'bar',\n foo: ['d', 'e', 'f'],\n bar: [1, 2, 3]\n });\n\n var MixinC = _emberMetal.Mixin.create({\n bar: [4, 5, 6]\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB, MixinC);\n deepEqual((0, _emberMetal.get)(obj, 'concatenatedProperties'), ['foo', 'bar'], 'get concatenatedProperties');\n deepEqual((0, _emberMetal.get)(obj, 'foo'), ['a', 'b', 'c', 'd', 'e', 'f'], 'get foo');\n deepEqual((0, _emberMetal.get)(obj, 'bar'), [1, 2, 3, 4, 5, 6], 'get bar');\n });\n\n QUnit.test('adding a prop that is not an array should make array', function () {\n var MixinA = _emberMetal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: [1, 2, 3]\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: 4\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), [1, 2, 3, 4]);\n });\n\n QUnit.test('adding a prop that is not an array should make array', function () {\n var MixinA = _emberMetal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: 'bar'\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), ['bar']);\n });\n\n QUnit.test('adding a non-concatenable property that already has a defined value should result in an array with both values', function () {\n var mixinA = _emberMetal.Mixin.create({\n foo: 1\n });\n\n var mixinB = _emberMetal.Mixin.create({\n concatenatedProperties: ['foo'],\n foo: 2\n });\n\n var obj = (0, _emberMetal.mixin)({}, mixinA, mixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), [1, 2]);\n });\n\n QUnit.test('adding a concatenable property that already has a defined value should result in a concatenated value', function () {\n var mixinA = _emberMetal.Mixin.create({\n foobar: 'foo'\n });\n\n var mixinB = _emberMetal.Mixin.create({\n concatenatedProperties: ['foobar'],\n foobar: 'bar'\n });\n\n var obj = (0, _emberMetal.mixin)({}, mixinA, mixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foobar'), ['foo', 'bar']);\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/concatenated_properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/concatenated_properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/detect_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Mixin.detect');\n\n QUnit.test('detect() finds a directly applied mixin', function () {\n var MixinA = _emberMetal.Mixin.create();\n var obj = {};\n\n equal(MixinA.detect(obj), false, 'MixinA.detect(obj) before apply()');\n\n MixinA.apply(obj);\n equal(MixinA.detect(obj), true, 'MixinA.detect(obj) after apply()');\n });\n\n QUnit.test('detect() finds nested mixins', function () {\n var MixinA = _emberMetal.Mixin.create({});\n var MixinB = _emberMetal.Mixin.create(MixinA);\n var obj = {};\n\n equal(MixinA.detect(obj), false, 'MixinA.detect(obj) before apply()');\n\n MixinB.apply(obj);\n equal(MixinA.detect(obj), true, 'MixinA.detect(obj) after apply()');\n });\n\n QUnit.test('detect() finds mixins on other mixins', function () {\n var MixinA = _emberMetal.Mixin.create({});\n var MixinB = _emberMetal.Mixin.create(MixinA);\n equal(MixinA.detect(MixinB), true, 'MixinA is part of MixinB');\n equal(MixinB.detect(MixinA), false, 'MixinB is not part of MixinA');\n });\n\n QUnit.test('detect handles null values', function () {\n var MixinA = _emberMetal.Mixin.create();\n equal(MixinA.detect(null), false);\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/detect_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/detect_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/introspection_test', ['ember-utils', 'ember-metal'], function (_emberUtils, _emberMetal) {\n 'use strict';\n\n // NOTE: A previous iteration differentiated between public and private props\n // as well as methods vs props. We are just keeping these for testing; the\n // current impl doesn't care about the differences as much...\n\n var PrivateProperty = _emberMetal.Mixin.create({\n _foo: '_FOO'\n });\n var PublicProperty = _emberMetal.Mixin.create({\n foo: 'FOO'\n });\n var PrivateMethod = _emberMetal.Mixin.create({\n _fooMethod: function () {}\n });\n var PublicMethod = _emberMetal.Mixin.create({\n fooMethod: function () {}\n });\n var BarProperties = _emberMetal.Mixin.create({\n _bar: '_BAR',\n bar: 'bar'\n });\n var BarMethods = _emberMetal.Mixin.create({\n _barMethod: function () {},\n barMethod: function () {}\n });\n\n var Combined = _emberMetal.Mixin.create(BarProperties, BarMethods);\n\n var obj = void 0;\n\n QUnit.module('Basic introspection', {\n setup: function () {\n obj = {};\n (0, _emberMetal.mixin)(obj, PrivateProperty, PublicProperty, PrivateMethod, PublicMethod, Combined);\n }\n });\n\n QUnit.test('Ember.mixins()', function () {\n function mapGuids(ary) {\n return ary.map(function (x) {\n return (0, _emberUtils.guidFor)(x);\n });\n }\n\n deepEqual(mapGuids(_emberMetal.Mixin.mixins(obj)), mapGuids([PrivateProperty, PublicProperty, PrivateMethod, PublicMethod, Combined, BarProperties, BarMethods]), 'should return included mixins');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/introspection_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/introspection_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/merged_properties_test', ['ember-runtime', 'ember-metal'], function (_emberRuntime, _emberMetal) {\n 'use strict';\n\n QUnit.module('Mixin mergedProperties');\n\n QUnit.test('defining mergedProperties should merge future version', function () {\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: { a: true, b: true, c: true }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: { d: true, e: true, f: true }\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), { a: true, b: true, c: true, d: true, e: true, f: true });\n });\n\n QUnit.test('defining mergedProperties on future mixin should merged into past', function () {\n var MixinA = _emberMetal.Mixin.create({\n foo: { a: true, b: true, c: true }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: { d: true, e: true, f: true }\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), { a: true, b: true, c: true, d: true, e: true, f: true });\n });\n\n QUnit.test('defining mergedProperties with null properties should keep properties null', function () {\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: null\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: null\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n equal((0, _emberMetal.get)(obj, 'foo'), null);\n });\n\n QUnit.test('mergedProperties\\' properties can get overwritten', function () {\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: { a: 1 }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: { a: 2 }\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB);\n deepEqual((0, _emberMetal.get)(obj, 'foo'), { a: 2 });\n });\n\n QUnit.test('mergedProperties should be concatenated', function () {\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: { a: true, b: true, c: true }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n mergedProperties: 'bar',\n foo: { d: true, e: true, f: true },\n bar: { a: true, l: true }\n });\n\n var MixinC = _emberMetal.Mixin.create({\n bar: { e: true, x: true }\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB, MixinC);\n deepEqual((0, _emberMetal.get)(obj, 'mergedProperties'), ['foo', 'bar'], 'get mergedProperties');\n deepEqual((0, _emberMetal.get)(obj, 'foo'), { a: true, b: true, c: true, d: true, e: true, f: true }, 'get foo');\n deepEqual((0, _emberMetal.get)(obj, 'bar'), { a: true, l: true, e: true, x: true }, 'get bar');\n });\n\n QUnit.test('mergedProperties should exist even if not explicitly set on create', function () {\n var AnObj = _emberRuntime.Object.extend({\n mergedProperties: ['options'],\n options: {\n a: 'a',\n b: {\n c: 'ccc'\n }\n }\n });\n\n var obj = AnObj.create({\n options: {\n a: 'A'\n }\n });\n\n equal((0, _emberMetal.get)(obj, 'options').a, 'A');\n equal((0, _emberMetal.get)(obj, 'options').b.c, 'ccc');\n });\n\n QUnit.test('defining mergedProperties at create time should not modify the prototype', function () {\n var AnObj = _emberRuntime.Object.extend({\n mergedProperties: ['options'],\n options: {\n a: 1\n }\n });\n\n var objA = AnObj.create({\n options: {\n a: 2\n }\n });\n var objB = AnObj.create({\n options: {\n a: 3\n }\n });\n\n equal((0, _emberMetal.get)(objA, 'options').a, 2);\n equal((0, _emberMetal.get)(objB, 'options').a, 3);\n });\n\n QUnit.test('mergedProperties\\' overwriting methods can call _super', function () {\n expect(4);\n\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: {\n meth: function (a) {\n equal(a, 'WOOT', '_super successfully called MixinA\\'s `foo.meth` method');\n return 'WAT';\n }\n }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: {\n meth: function (a) {\n ok(true, 'MixinB\\'s `foo.meth` method called');\n return this._super.apply(this, arguments);\n }\n }\n });\n\n var MixinC = _emberMetal.Mixin.create({\n foo: {\n meth: function (a) {\n ok(true, 'MixinC\\'s `foo.meth` method called');\n return this._super(a);\n }\n }\n });\n\n var obj = (0, _emberMetal.mixin)({}, MixinA, MixinB, MixinC);\n equal(obj.foo.meth('WOOT'), 'WAT');\n });\n\n QUnit.test('Merging an Array should raise an error', function () {\n expect(1);\n\n var MixinA = _emberMetal.Mixin.create({\n mergedProperties: ['foo'],\n foo: { a: true, b: true, c: true }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: ['a']\n });\n\n expectAssertion(function () {\n (0, _emberMetal.mixin)({}, MixinA, MixinB);\n }, 'You passed in `[\"a\"]` as the value for `foo` but `foo` cannot be an Array');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/merged_properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/merged_properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/method_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Mixin Methods');\n\n QUnit.test('defining simple methods', function () {\n var MixinA = void 0,\n obj = void 0,\n props = void 0;\n\n props = {\n publicMethod: function () {\n return 'publicMethod';\n },\n _privateMethod: function () {\n return 'privateMethod';\n }\n };\n\n MixinA = _emberMetal.Mixin.create(props);\n obj = {};\n MixinA.apply(obj);\n\n // but should be defined\n equal(props.publicMethod(), 'publicMethod', 'publicMethod is func');\n equal(props._privateMethod(), 'privateMethod', 'privateMethod is func');\n });\n\n QUnit.test('overriding public methods', function () {\n var MixinA = void 0,\n MixinB = void 0,\n MixinD = void 0,\n MixinF = void 0,\n obj = void 0;\n\n MixinA = _emberMetal.Mixin.create({\n publicMethod: function () {\n return 'A';\n }\n });\n\n MixinB = _emberMetal.Mixin.create(MixinA, {\n publicMethod: function () {\n return this._super.apply(this, arguments) + 'B';\n }\n });\n\n MixinD = _emberMetal.Mixin.create(MixinA, {\n publicMethod: function () {\n return this._super.apply(this, arguments) + 'D';\n }\n });\n\n MixinF = _emberMetal.Mixin.create({\n publicMethod: function () {\n return this._super.apply(this, arguments) + 'F';\n }\n });\n\n obj = {};\n MixinB.apply(obj);\n equal(obj.publicMethod(), 'AB', 'should define super for A and B');\n\n obj = {};\n MixinD.apply(obj);\n equal(obj.publicMethod(), 'AD', 'should define super for A and B');\n\n obj = {};\n MixinA.apply(obj);\n MixinF.apply(obj);\n equal(obj.publicMethod(), 'AF', 'should define super for A and F');\n\n obj = {\n publicMethod: function () {\n return 'obj';\n }\n };\n MixinF.apply(obj);\n equal(obj.publicMethod(), 'objF', 'should define super for F');\n });\n\n QUnit.test('overriding inherited objects', function () {\n var cnt = 0;\n var MixinA = _emberMetal.Mixin.create({\n foo: function () {\n cnt++;\n }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: function () {\n this._super.apply(this, arguments);\n cnt++;\n }\n });\n\n var objA = {};\n MixinA.apply(objA);\n\n var objB = Object.create(objA);\n MixinB.apply(objB);\n\n cnt = 0;\n objB.foo();\n equal(cnt, 2, 'should invoke both methods');\n\n cnt = 0;\n objA.foo();\n equal(cnt, 1, 'should not screw w/ parent obj');\n });\n\n QUnit.test('Including the same mixin more than once will only run once', function () {\n var cnt = 0;\n var MixinA = _emberMetal.Mixin.create({\n foo: function () {\n cnt++;\n }\n });\n\n var MixinB = _emberMetal.Mixin.create(MixinA, {\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n\n var MixinC = _emberMetal.Mixin.create(MixinA, {\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n\n var MixinD = _emberMetal.Mixin.create(MixinB, MixinC, MixinA, {\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n\n var obj = {};\n MixinD.apply(obj);\n MixinA.apply(obj); // try to apply again..\n\n cnt = 0;\n obj.foo();\n\n equal(cnt, 1, 'should invoke MixinA.foo one time');\n });\n\n QUnit.test('_super from a single mixin with no superclass does not error', function () {\n var MixinA = _emberMetal.Mixin.create({\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n\n var obj = {};\n MixinA.apply(obj);\n\n obj.foo();\n ok(true);\n });\n\n QUnit.test('_super from a first-of-two mixins with no superclass function does not error', function () {\n // _super was previously calling itself in the second assertion.\n // Use remaining count of calls to ensure it doesn't loop indefinitely.\n var remaining = 3;\n var MixinA = _emberMetal.Mixin.create({\n foo: function () {\n if (remaining-- > 0) {\n this._super.apply(this, arguments);\n }\n }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n\n var obj = {};\n MixinA.apply(obj);\n MixinB.apply(obj);\n\n obj.foo();\n ok(true);\n });\n\n // ..........................................................\n // CONFLICTS\n //\n\n QUnit.module('Method Conflicts');\n\n QUnit.test('overriding toString', function () {\n var MixinA = _emberMetal.Mixin.create({\n toString: function () {\n return 'FOO';\n }\n });\n\n var obj = {};\n MixinA.apply(obj);\n equal(obj.toString(), 'FOO', 'should override toString w/o error');\n\n obj = {};\n (0, _emberMetal.mixin)(obj, {\n toString: function () {\n return 'FOO';\n }\n });\n equal(obj.toString(), 'FOO', 'should override toString w/o error');\n });\n\n // ..........................................................\n // BUGS\n //\n\n QUnit.module('system/mixin/method_test BUGS');\n\n QUnit.test('applying several mixins at once with sup already defined causes infinite loop', function () {\n var cnt = 0;\n var MixinA = _emberMetal.Mixin.create({\n foo: function () {\n cnt++;\n }\n });\n\n var MixinB = _emberMetal.Mixin.create({\n foo: function () {\n this._super.apply(this, arguments);\n cnt++;\n }\n });\n\n var MixinC = _emberMetal.Mixin.create({\n foo: function () {\n this._super.apply(this, arguments);\n cnt++;\n }\n });\n\n var obj = {};\n (0, _emberMetal.mixin)(obj, MixinA); // sup already exists\n (0, _emberMetal.mixin)(obj, MixinB, MixinC); // must be more than one mixin\n\n cnt = 0;\n obj.foo();\n equal(cnt, 3, 'should invoke all 3 methods');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/method_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/method_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/observer_test', ['internal-test-helpers', 'ember-metal'], function (_internalTestHelpers, _emberMetal) {\n 'use strict';\n\n QUnit.module('Mixin observer');\n\n (0, _internalTestHelpers.testBoth)('global observer helper', function (get, set) {\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('global observer helper takes multiple params', function (get, set) {\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', 'baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n set(obj, 'baz', 'BAZ');\n equal(get(obj, 'count'), 2, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('replacing observer should remove old observer', function (get, set) {\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n\n });\n\n var Mixin2 = _emberMetal.Mixin.create({\n foo: (0, _emberMetal.observer)('baz', function () {\n set(this, 'count', get(this, 'count') + 10);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin, Mixin2);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 0, 'should not invoke observer after change');\n\n set(obj, 'baz', 'BAZ');\n equal(get(obj, 'count'), 10, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with property before', function (get, set) {\n var obj2 = { baz: 'baz' };\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n bar: obj2,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with property after', function (get, set) {\n var obj2 = { baz: 'baz' };\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n }),\n bar: obj2\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with property in mixin applied later', function (get, set) {\n var obj2 = { baz: 'baz' };\n\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var MyMixin2 = _emberMetal.Mixin.create({ bar: obj2 });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n MyMixin2.apply(obj);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with existing property', function (get, set) {\n var obj2 = { baz: 'baz' };\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({ bar: obj2 }, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with property in mixin before', function (get, set) {\n var obj2 = { baz: 'baz' };\n var MyMixin2 = _emberMetal.Mixin.create({ bar: obj2 });\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin2, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with property in mixin after', function (get, set) {\n var obj2 = { baz: 'baz' };\n var MyMixin2 = _emberMetal.Mixin.create({ bar: obj2 });\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin, MyMixin2);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observing chain with overridden property', function (get, set) {\n var obj2 = { baz: 'baz' };\n var obj3 = { baz: 'foo' };\n\n var MyMixin2 = _emberMetal.Mixin.create({ bar: obj3 });\n\n var MyMixin = _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = (0, _emberMetal.mixin)({ bar: obj2 }, MyMixin, MyMixin2);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n equal((0, _emberMetal.isWatching)(obj2, 'baz'), false, 'should not be watching baz');\n equal((0, _emberMetal.isWatching)(obj3, 'baz'), true, 'should be watching baz');\n\n set(obj2, 'baz', 'BAZ');\n equal(get(obj, 'count'), 0, 'should not invoke observer after change');\n\n set(obj3, 'baz', 'BEAR');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('providing the arguments in reverse order is deprecated', function (get, set) {\n expectDeprecation(/Passing the dependentKeys after the callback function in observer is deprecated. Ensure the callback function is the last argument/);\n\n _emberMetal.Mixin.create({\n count: 0,\n foo: (0, _emberMetal.observer)(function () {\n set(this, 'count', get(this, 'count') + 1);\n }, 'bar.baz')\n });\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/observer_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/observer_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/reopen_test', ['ember-runtime', 'ember-metal'], function (_emberRuntime, _emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.Mixin#reopen');\n\n QUnit.test('using reopen() to add more properties to a simple', function () {\n var MixinA = _emberMetal.Mixin.create({ foo: 'FOO', baz: 'BAZ' });\n MixinA.reopen({ bar: 'BAR', foo: 'FOO2' });\n var obj = {};\n MixinA.apply(obj);\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO2', 'mixin() should override');\n equal((0, _emberMetal.get)(obj, 'baz'), 'BAZ', 'preserve MixinA props');\n equal((0, _emberMetal.get)(obj, 'bar'), 'BAR', 'include MixinB props');\n });\n\n QUnit.test('using reopen() and calling _super where there is not a super function does not cause infinite recursion', function () {\n var Taco = _emberRuntime.Object.extend({\n createBreakfast: function () {\n // There is no original createBreakfast function.\n // Calling the wrapped _super function here\n // used to end in an infinite call loop\n this._super.apply(this, arguments);\n return 'Breakfast!';\n }\n });\n\n Taco.reopen({\n createBreakfast: function () {\n return this._super.apply(this, arguments);\n }\n });\n\n var taco = Taco.create();\n\n var result = void 0;\n (0, _emberMetal.run)(function () {\n try {\n result = taco.createBreakfast();\n } catch (e) {\n result = 'Your breakfast was interrupted by an infinite stack error.';\n }\n });\n\n equal(result, 'Breakfast!');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/reopen_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/reopen_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/required_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var PartialMixin = void 0,\n FinalMixin = void 0,\n obj = void 0;\n\n QUnit.module('Module.required', {\n setup: function () {\n expectDeprecation(function () {\n PartialMixin = _emberMetal.Mixin.create({\n foo: (0, _emberMetal.required)(),\n bar: 'BAR'\n });\n }, 'Ember.required is deprecated as its behavior is inconsistent and unreliable.');\n\n FinalMixin = _emberMetal.Mixin.create({\n foo: 'FOO'\n });\n\n obj = {};\n },\n teardown: function () {\n PartialMixin = FinalMixin = obj = null;\n }\n });\n\n QUnit.test('applying a mixin to meet requirement', function () {\n FinalMixin.apply(obj);\n PartialMixin.apply(obj);\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should now be defined');\n });\n\n QUnit.test('combined mixins to meet requirement', function () {\n _emberMetal.Mixin.create(PartialMixin, FinalMixin).apply(obj);\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should now be defined');\n });\n\n QUnit.test('merged mixin', function () {\n _emberMetal.Mixin.create(PartialMixin, { foo: 'FOO' }).apply(obj);\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should now be defined');\n });\n\n QUnit.test('define property on source object', function () {\n obj.foo = 'FOO';\n PartialMixin.apply(obj);\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should now be defined');\n });\n\n QUnit.test('using apply', function () {\n (0, _emberMetal.mixin)(obj, PartialMixin, { foo: 'FOO' });\n equal((0, _emberMetal.get)(obj, 'foo'), 'FOO', 'should now be defined');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/required_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/required_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/mixin/without_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.test('without should create a new mixin excluding named properties', function () {\n var MixinA = _emberMetal.Mixin.create({\n foo: 'FOO',\n bar: 'BAR'\n });\n\n var MixinB = MixinA.without('bar');\n\n var obj = {};\n MixinB.apply(obj);\n\n equal(obj.foo, 'FOO', 'should defined foo');\n equal(obj.bar, undefined, 'should not define bar');\n });\n});","QUnit.module('ESLint | ember-metal/tests/mixin/without_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/mixin/without_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/observer_test', ['ember-environment', 'internal-test-helpers', 'ember-metal'], function (_emberEnvironment, _internalTestHelpers, _emberMetal) {\n 'use strict';\n\n function K() {}\n\n // ..........................................................\n // ADD OBSERVER\n //\n\n QUnit.module('addObserver');\n\n (0, _internalTestHelpers.testBoth)('observer should assert to invalid input', function (get, set) {\n expectAssertion(function () {\n (0, _emberMetal.observer)(function () {});\n }, 'observer called without valid path');\n\n expectDeprecation('Passing the dependentKeys after the callback function in observer is deprecated. Ensure the callback function is the last argument.');\n\n expectAssertion(function () {\n (0, _emberMetal.observer)(null);\n }, 'observer called without a function');\n });\n\n (0, _internalTestHelpers.testBoth)('observer should fire when property is modified', function (get, set) {\n var obj = {};\n var count = 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n equal(get(obj, 'foo'), 'bar', 'should invoke AFTER value changed');\n count++;\n });\n\n set(obj, 'foo', 'bar');\n equal(count, 1, 'should have invoked observer');\n });\n\n (0, _internalTestHelpers.testBoth)('observer should fire when dependent property is modified', function (get, set) {\n var obj = { bar: 'bar' };\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return get(this, 'bar').toUpperCase();\n }).property('bar'));\n\n get(obj, 'foo');\n\n var count = 0;\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n equal(get(obj, 'foo'), 'BAZ', 'should have invoked after prop change');\n count++;\n });\n\n set(obj, 'bar', 'baz');\n equal(count, 1, 'should have invoked observer');\n });\n\n (0, _internalTestHelpers.testBoth)('observer should continue to fire after dependent properties are accessed', function (get, set) {\n var observerCount = 0;\n var obj = {};\n\n (0, _emberMetal.defineProperty)(obj, 'prop', (0, _emberMetal.computed)(function () {\n return Math.random();\n }));\n (0, _emberMetal.defineProperty)(obj, 'anotherProp', (0, _emberMetal.computed)('prop', function () {\n return get(this, 'prop') + Math.random();\n }));\n\n (0, _emberMetal.addObserver)(obj, 'prop', function () {\n observerCount++;\n });\n\n get(obj, 'anotherProp');\n\n for (var i = 0; i < 10; i++) {\n (0, _emberMetal.propertyWillChange)(obj, 'prop');\n (0, _emberMetal.propertyDidChange)(obj, 'prop');\n }\n\n equal(observerCount, 10, 'should continue to fire indefinitely');\n });\n\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n (0, _internalTestHelpers.testBoth)('observer added declaratively via brace expansion should fire when property changes', function (get, set) {\n var obj = {};\n var count = 0;\n\n (0, _emberMetal.mixin)(obj, {\n observeFooAndBar: function () {\n count++;\n }.observes('{foo,bar}')\n });\n\n set(obj, 'foo', 'foo');\n equal(count, 1, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'bar', 'bar');\n equal(count, 2, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'baz', 'baz');\n equal(count, 2, 'observer not invoked on unspecified property');\n });\n\n (0, _internalTestHelpers.testBoth)('observer specified declaratively via brace expansion should fire when dependent property changes', function (get, set) {\n var obj = { baz: 'Initial' };\n var count = 0;\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return get(this, 'bar').toLowerCase();\n }).property('bar'));\n\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)(function () {\n return get(this, 'baz').toUpperCase();\n }).property('baz'));\n\n (0, _emberMetal.mixin)(obj, {\n fooAndBarWatcher: function () {\n count++;\n }.observes('{foo,bar}')\n });\n\n get(obj, 'foo');\n set(obj, 'baz', 'Baz');\n // fire once for foo, once for bar\n equal(count, 2, 'observer specified via brace expansion invoked on dependent property change');\n\n set(obj, 'quux', 'Quux');\n equal(count, 2, 'observer not fired on unspecified property');\n });\n }\n\n (0, _internalTestHelpers.testBoth)('observers watching multiple properties via brace expansion should fire when the properties change', function (get, set) {\n var obj = {};\n var count = 0;\n\n (0, _emberMetal.mixin)(obj, {\n observeFooAndBar: (0, _emberMetal.observer)('{foo,bar}', function () {\n count++;\n })\n });\n\n set(obj, 'foo', 'foo');\n equal(count, 1, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'bar', 'bar');\n equal(count, 2, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'baz', 'baz');\n equal(count, 2, 'observer not invoked on unspecified property');\n });\n\n (0, _internalTestHelpers.testBoth)('observers watching multiple properties via brace expansion should fire when dependent properties change', function (get, set) {\n var obj = { baz: 'Initial' };\n var count = 0;\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return get(this, 'bar').toLowerCase();\n }).property('bar'));\n\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)(function () {\n return get(this, 'baz').toUpperCase();\n }).property('baz'));\n\n (0, _emberMetal.mixin)(obj, {\n fooAndBarWatcher: (0, _emberMetal.observer)('{foo,bar}', function () {\n count++;\n })\n });\n\n get(obj, 'foo');\n set(obj, 'baz', 'Baz');\n // fire once for foo, once for bar\n equal(count, 2, 'observer specified via brace expansion invoked on dependent property change');\n\n set(obj, 'quux', 'Quux');\n equal(count, 2, 'observer not fired on unspecified property');\n });\n\n (0, _internalTestHelpers.testBoth)('nested observers should fire in order', function (get, set) {\n var obj = { foo: 'foo', bar: 'bar' };\n var fooCount = 0;\n var barCount = 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n (0, _emberMetal.addObserver)(obj, 'bar', function () {\n set(obj, 'foo', 'BAZ');\n equal(fooCount, 1, 'fooCount should have fired already');\n barCount++;\n });\n\n set(obj, 'bar', 'BIFF');\n equal(barCount, 1, 'barCount should have fired');\n equal(fooCount, 1, 'foo should have fired');\n });\n\n (0, _internalTestHelpers.testBoth)('removing an chain observer on change should not fail', function (get, set) {\n var foo = { bar: 'bar' };\n var obj1 = { foo: foo };\n var obj2 = { foo: foo };\n var obj3 = { foo: foo };\n var obj4 = { foo: foo };\n var count1 = 0;\n var count2 = 0;\n var count3 = 0;\n var count4 = 0;\n\n function observer1() {\n count1++;\n }\n function observer2() {\n count2++;\n }\n function observer3() {\n count3++;\n (0, _emberMetal.removeObserver)(obj1, 'foo.bar', observer1);\n (0, _emberMetal.removeObserver)(obj2, 'foo.bar', observer2);\n (0, _emberMetal.removeObserver)(obj4, 'foo.bar', observer4);\n }\n function observer4() {\n count4++;\n }\n\n (0, _emberMetal.addObserver)(obj1, 'foo.bar', observer1);\n (0, _emberMetal.addObserver)(obj2, 'foo.bar', observer2);\n (0, _emberMetal.addObserver)(obj3, 'foo.bar', observer3);\n (0, _emberMetal.addObserver)(obj4, 'foo.bar', observer4);\n\n set(foo, 'bar', 'baz');\n\n equal(count1, 1, 'observer1 fired');\n equal(count2, 1, 'observer2 fired');\n equal(count3, 1, 'observer3 fired');\n equal(count4, 0, 'observer4 did not fire');\n });\n\n (0, _internalTestHelpers.testBoth)('removing an chain before observer on change should not fail', function (get, set) {\n var foo = { bar: 'bar' };\n var obj1 = { foo: foo };\n var obj2 = { foo: foo };\n var obj3 = { foo: foo };\n var obj4 = { foo: foo };\n var count1 = 0;\n var count2 = 0;\n var count3 = 0;\n var count4 = 0;\n\n function observer1() {\n count1++;\n }\n function observer2() {\n count2++;\n }\n function observer3() {\n count3++;\n (0, _emberMetal._removeBeforeObserver)(obj1, 'foo.bar', observer1);\n (0, _emberMetal._removeBeforeObserver)(obj2, 'foo.bar', observer2);\n (0, _emberMetal._removeBeforeObserver)(obj4, 'foo.bar', observer4);\n }\n function observer4() {\n count4++;\n }\n\n (0, _emberMetal._addBeforeObserver)(obj1, 'foo.bar', observer1);\n (0, _emberMetal._addBeforeObserver)(obj2, 'foo.bar', observer2);\n (0, _emberMetal._addBeforeObserver)(obj3, 'foo.bar', observer3);\n (0, _emberMetal._addBeforeObserver)(obj4, 'foo.bar', observer4);\n\n set(foo, 'bar', 'baz');\n\n equal(count1, 1, 'observer1 fired');\n equal(count2, 1, 'observer2 fired');\n equal(count3, 1, 'observer3 fired');\n equal(count4, 0, 'observer4 did not fire');\n });\n\n (0, _internalTestHelpers.testBoth)('suspending an observer should not fire during callback', function (get, set) {\n var obj = {};\n var target = void 0,\n otherTarget = void 0;\n\n target = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n otherTarget = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n (0, _emberMetal.addObserver)(obj, 'foo', target, target.method);\n (0, _emberMetal.addObserver)(obj, 'foo', otherTarget, otherTarget.method);\n\n function callback() {\n /*jshint validthis:true */\n equal(this, target);\n\n set(obj, 'foo', '2');\n\n return 'result';\n }\n\n set(obj, 'foo', '1');\n\n equal((0, _emberMetal._suspendObserver)(obj, 'foo', target, target.method, callback), 'result');\n\n set(obj, 'foo', '3');\n\n deepEqual(target.values, ['1', '3'], 'should invoke');\n deepEqual(otherTarget.values, ['1', '2', '3'], 'should invoke');\n });\n\n (0, _internalTestHelpers.testBoth)('suspending an observer should not defer change notifications during callback', function (get, set) {\n var obj = {};\n var target = void 0,\n otherTarget = void 0;\n\n target = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n otherTarget = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n (0, _emberMetal.addObserver)(obj, 'foo', target, target.method);\n (0, _emberMetal.addObserver)(obj, 'foo', otherTarget, otherTarget.method);\n\n function callback() {\n /*jshint validthis:true */\n equal(this, target);\n\n set(obj, 'foo', '2');\n\n return 'result';\n }\n\n set(obj, 'foo', '1');\n\n (0, _emberMetal.beginPropertyChanges)();\n equal((0, _emberMetal._suspendObserver)(obj, 'foo', target, target.method, callback), 'result');\n (0, _emberMetal.endPropertyChanges)();\n\n set(obj, 'foo', '3');\n\n deepEqual(target.values, ['1', '3'], 'should invoke');\n deepEqual(otherTarget.values, ['1', '2', '3'], 'should invoke');\n });\n\n (0, _internalTestHelpers.testBoth)('suspending observers should not fire during callback', function (get, set) {\n var obj = {};\n var target = void 0,\n otherTarget = void 0;\n\n target = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n otherTarget = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n (0, _emberMetal.addObserver)(obj, 'foo', target, target.method);\n (0, _emberMetal.addObserver)(obj, 'foo', otherTarget, otherTarget.method);\n\n function callback() {\n /*jshint validthis:true */\n equal(this, target);\n\n set(obj, 'foo', '2');\n\n return 'result';\n }\n\n set(obj, 'foo', '1');\n\n equal((0, _emberMetal._suspendObservers)(obj, ['foo'], target, target.method, callback), 'result');\n\n set(obj, 'foo', '3');\n\n deepEqual(target.values, ['1', '3'], 'should invoke');\n deepEqual(otherTarget.values, ['1', '2', '3'], 'should invoke');\n });\n\n (0, _internalTestHelpers.testBoth)('suspending observers should not defer change notifications during callback', function (get, set) {\n var obj = {};\n var target = void 0,\n otherTarget = void 0;\n\n target = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n otherTarget = {\n values: [],\n method: function () {\n this.values.push(get(obj, 'foo'));\n }\n };\n\n (0, _emberMetal.addObserver)(obj, 'foo', target, target.method);\n (0, _emberMetal.addObserver)(obj, 'foo', otherTarget, otherTarget.method);\n\n function callback() {\n /*jshint validthis:true */\n equal(this, target);\n\n set(obj, 'foo', '2');\n\n return 'result';\n }\n\n set(obj, 'foo', '1');\n\n (0, _emberMetal.beginPropertyChanges)();\n equal((0, _emberMetal._suspendObservers)(obj, ['foo'], target, target.method, callback), 'result');\n (0, _emberMetal.endPropertyChanges)();\n\n set(obj, 'foo', '3');\n\n deepEqual(target.values, ['1', '3'], 'should invoke');\n deepEqual(otherTarget.values, ['1', '2', '3'], 'should invoke');\n });\n\n (0, _internalTestHelpers.testBoth)('deferring property change notifications', function (get, set) {\n var obj = { foo: 'foo' };\n var fooCount = 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n\n (0, _emberMetal.beginPropertyChanges)(obj);\n set(obj, 'foo', 'BIFF');\n set(obj, 'foo', 'BAZ');\n (0, _emberMetal.endPropertyChanges)(obj);\n\n equal(fooCount, 1, 'foo should have fired once');\n });\n\n (0, _internalTestHelpers.testBoth)('deferring property change notifications safely despite exceptions', function (get, set) {\n var obj = { foo: 'foo' };\n var fooCount = 0;\n var exc = new Error('Something unexpected happened!');\n\n expect(2);\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n fooCount++;\n });\n\n try {\n (0, _emberMetal.changeProperties)(function () {\n set(obj, 'foo', 'BIFF');\n set(obj, 'foo', 'BAZ');\n throw exc;\n });\n } catch (err) {\n if (err !== exc) {\n throw err;\n }\n }\n\n equal(fooCount, 1, 'foo should have fired once');\n\n (0, _emberMetal.changeProperties)(function () {\n set(obj, 'foo', 'BIFF2');\n set(obj, 'foo', 'BAZ2');\n });\n\n equal(fooCount, 2, 'foo should have fired again once');\n });\n\n (0, _internalTestHelpers.testBoth)('deferring property change notifications will not defer before observers', function (get, set) {\n var obj = { foo: 'foo' };\n var fooCount = 0;\n\n (0, _emberMetal._addBeforeObserver)(obj, 'foo', function () {\n fooCount++;\n });\n\n (0, _emberMetal.beginPropertyChanges)(obj);\n set(obj, 'foo', 'BIFF');\n equal(fooCount, 1, 'should fire before observer immediately');\n set(obj, 'foo', 'BAZ');\n (0, _emberMetal.endPropertyChanges)(obj);\n\n equal(fooCount, 1, 'should not fire before observer twice');\n });\n\n (0, _internalTestHelpers.testBoth)('addObserver should propagate through prototype', function (get, set) {\n var obj = { foo: 'foo', count: 0 };\n var obj2 = void 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n this.count++;\n });\n obj2 = Object.create(obj);\n\n set(obj2, 'foo', 'bar');\n\n equal(obj2.count, 1, 'should have invoked observer on inherited');\n equal(obj.count, 0, 'should not have invoked observer on parent');\n\n obj2.count = 0;\n set(obj, 'foo', 'baz');\n equal(obj.count, 1, 'should have invoked observer on parent');\n equal(obj2.count, 0, 'should not have invoked observer on inherited');\n });\n\n (0, _internalTestHelpers.testBoth)('addObserver should respect targets with methods', function (get, set) {\n var observed = { foo: 'foo' };\n\n var target1 = {\n count: 0,\n\n didChange: function (obj, keyName) {\n var value = get(obj, keyName);\n equal(this, target1, 'should invoke with this');\n equal(obj, observed, 'param1 should be observed object');\n equal(keyName, 'foo', 'param2 should be keyName');\n equal(value, 'BAZ', 'param3 should new value');\n this.count++;\n }\n };\n\n var target2 = {\n count: 0,\n\n didChange: function (obj, keyName) {\n var value = get(obj, keyName);\n equal(this, target2, 'should invoke with this');\n equal(obj, observed, 'param1 should be observed object');\n equal(keyName, 'foo', 'param2 should be keyName');\n equal(value, 'BAZ', 'param3 should new value');\n this.count++;\n }\n };\n\n (0, _emberMetal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _emberMetal.addObserver)(observed, 'foo', target2, target2.didChange);\n\n set(observed, 'foo', 'BAZ');\n equal(target1.count, 1, 'target1 observer should have fired');\n equal(target2.count, 1, 'target2 observer should have fired');\n });\n\n (0, _internalTestHelpers.testBoth)('addObserver should allow multiple objects to observe a property', function (get, set) {\n var observed = { foo: 'foo' };\n\n var target1 = {\n count: 0,\n\n didChange: function (obj, keyName, value) {\n this.count++;\n }\n };\n\n var target2 = {\n count: 0,\n\n didChange: function (obj, keyName, value) {\n this.count++;\n }\n };\n\n (0, _emberMetal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _emberMetal.addObserver)(observed, 'foo', target2, 'didChange');\n\n set(observed, 'foo', 'BAZ');\n equal(target1.count, 1, 'target1 observer should have fired');\n equal(target2.count, 1, 'target2 observer should have fired');\n });\n\n // ..........................................................\n // REMOVE OBSERVER\n //\n\n QUnit.module('removeObserver');\n\n (0, _internalTestHelpers.testBoth)('removing observer should stop firing', function (get, set) {\n var obj = {};\n var count = 0;\n function F() {\n count++;\n }\n (0, _emberMetal.addObserver)(obj, 'foo', F);\n\n set(obj, 'foo', 'bar');\n equal(count, 1, 'should have invoked observer');\n\n (0, _emberMetal.removeObserver)(obj, 'foo', F);\n\n set(obj, 'foo', 'baz');\n equal(count, 1, 'removed observer shouldn\\'t fire');\n });\n\n (0, _internalTestHelpers.testBoth)('local observers can be removed', function (get, set) {\n var barObserved = 0;\n\n var MyMixin = _emberMetal.Mixin.create({\n foo1: (0, _emberMetal.observer)('bar', function () {\n barObserved++;\n }),\n\n foo2: (0, _emberMetal.observer)('bar', function () {\n barObserved++;\n })\n });\n\n var obj = {};\n MyMixin.apply(obj);\n\n set(obj, 'bar', 'HI!');\n equal(barObserved, 2, 'precond - observers should be fired');\n\n (0, _emberMetal.removeObserver)(obj, 'bar', null, 'foo1');\n\n barObserved = 0;\n set(obj, 'bar', 'HI AGAIN!');\n\n equal(barObserved, 1, 'removed observers should not be called');\n });\n\n (0, _internalTestHelpers.testBoth)('removeObserver should respect targets with methods', function (get, set) {\n var observed = { foo: 'foo' };\n\n var target1 = {\n count: 0,\n\n didChange: function () {\n this.count++;\n }\n };\n\n var target2 = {\n count: 0,\n\n didChange: function () {\n this.count++;\n }\n };\n\n (0, _emberMetal.addObserver)(observed, 'foo', target1, 'didChange');\n (0, _emberMetal.addObserver)(observed, 'foo', target2, target2.didChange);\n\n set(observed, 'foo', 'BAZ');\n equal(target1.count, 1, 'target1 observer should have fired');\n equal(target2.count, 1, 'target2 observer should have fired');\n\n (0, _emberMetal.removeObserver)(observed, 'foo', target1, 'didChange');\n (0, _emberMetal.removeObserver)(observed, 'foo', target2, target2.didChange);\n\n target1.count = target2.count = 0;\n set(observed, 'foo', 'BAZ');\n equal(target1.count, 0, 'target1 observer should not fire again');\n equal(target2.count, 0, 'target2 observer should not fire again');\n });\n\n // ..........................................................\n // BEFORE OBSERVER\n //\n\n QUnit.module('_addBeforeObserver');\n\n (0, _internalTestHelpers.testBoth)('observer should fire before a property is modified', function (get, set) {\n var obj = { foo: 'foo' };\n var count = 0;\n\n (0, _emberMetal._addBeforeObserver)(obj, 'foo', function () {\n equal(get(obj, 'foo'), 'foo', 'should invoke before value changed');\n count++;\n });\n\n set(obj, 'foo', 'bar');\n equal(count, 1, 'should have invoked observer');\n });\n\n (0, _internalTestHelpers.testBoth)('observer should fire before dependent property is modified', function (get, set) {\n var obj = { bar: 'bar' };\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return get(this, 'bar').toUpperCase();\n }).property('bar'));\n\n get(obj, 'foo');\n\n var count = 0;\n (0, _emberMetal._addBeforeObserver)(obj, 'foo', function () {\n equal(get(obj, 'foo'), 'BAR', 'should have invoked after prop change');\n count++;\n });\n\n set(obj, 'bar', 'baz');\n equal(count, 1, 'should have invoked observer');\n });\n\n (0, _internalTestHelpers.testBoth)('before observer watching multiple properties via brace expansion should fire when properties change', function (get, set) {\n var obj = {};\n var count = 0;\n\n (0, _emberMetal.mixin)(obj, {\n fooAndBarWatcher: (0, _emberMetal._beforeObserver)('{foo,bar}', function () {\n count++;\n })\n });\n\n set(obj, 'foo', 'foo');\n equal(count, 1, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'bar', 'bar');\n equal(count, 2, 'observer specified via brace expansion invoked on property change');\n\n set(obj, 'baz', 'baz');\n equal(count, 2, 'observer not invoked on unspecified property');\n });\n\n (0, _internalTestHelpers.testBoth)('before observer watching multiple properties via brace expansion should fire when dependent property changes', function (get, set) {\n var obj = { baz: 'Initial' };\n var count = 0;\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)(function () {\n return get(this, 'bar').toLowerCase();\n }).property('bar'));\n\n (0, _emberMetal.defineProperty)(obj, 'bar', (0, _emberMetal.computed)(function () {\n return get(this, 'baz').toUpperCase();\n }).property('baz'));\n\n (0, _emberMetal.mixin)(obj, {\n fooAndBarWatcher: (0, _emberMetal._beforeObserver)('{foo,bar}', function () {\n count++;\n })\n });\n\n get(obj, 'foo');\n set(obj, 'baz', 'Baz');\n // fire once for foo, once for bar\n equal(count, 2, 'observer specified via brace expansion invoked on dependent property change');\n\n set(obj, 'quux', 'Quux');\n equal(count, 2, 'observer not fired on unspecified property');\n });\n\n (0, _internalTestHelpers.testBoth)('_addBeforeObserver should propagate through prototype', function (get, set) {\n var obj = { foo: 'foo', count: 0 };\n var obj2 = void 0;\n\n (0, _emberMetal._addBeforeObserver)(obj, 'foo', function () {\n this.count++;\n });\n obj2 = Object.create(obj);\n\n set(obj2, 'foo', 'bar');\n equal(obj2.count, 1, 'should have invoked observer on inherited');\n equal(obj.count, 0, 'should not have invoked observer on parent');\n\n obj2.count = 0;\n set(obj, 'foo', 'baz');\n equal(obj.count, 1, 'should have invoked observer on parent');\n equal(obj2.count, 0, 'should not have invoked observer on inherited');\n });\n\n (0, _internalTestHelpers.testBoth)('_addBeforeObserver should respect targets with methods', function (get, set) {\n var observed = { foo: 'foo' };\n\n var target1 = {\n count: 0,\n\n willChange: function (obj, keyName) {\n var value = get(obj, keyName);\n equal(this, target1, 'should invoke with this');\n equal(obj, observed, 'param1 should be observed object');\n equal(keyName, 'foo', 'param2 should be keyName');\n equal(value, 'foo', 'param3 should old value');\n this.count++;\n }\n };\n\n var target2 = {\n count: 0,\n\n willChange: function (obj, keyName) {\n var value = get(obj, keyName);\n equal(this, target2, 'should invoke with this');\n equal(obj, observed, 'param1 should be observed object');\n equal(keyName, 'foo', 'param2 should be keyName');\n equal(value, 'foo', 'param3 should old value');\n this.count++;\n }\n };\n\n (0, _emberMetal._addBeforeObserver)(observed, 'foo', target1, 'willChange');\n (0, _emberMetal._addBeforeObserver)(observed, 'foo', target2, target2.willChange);\n\n set(observed, 'foo', 'BAZ');\n equal(target1.count, 1, 'target1 observer should have fired');\n equal(target2.count, 1, 'target2 observer should have fired');\n });\n\n // ..........................................................\n // CHAINED OBSERVERS\n //\n\n var obj = void 0,\n count = void 0;\n\n QUnit.module('addObserver - dependentkey with chained properties', {\n setup: function () {\n obj = {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n },\n Capital: {\n foo: {\n bar: {\n baz: {\n biff: 'BIFF'\n }\n }\n }\n }\n };\n\n count = 0;\n },\n teardown: function () {\n obj = count = null;\n }\n });\n\n (0, _internalTestHelpers.testBoth)('depending on a chain with a computed property', function (get, set) {\n (0, _emberMetal.defineProperty)(obj, 'computed', (0, _emberMetal.computed)(function () {\n return { foo: 'bar' };\n }));\n\n var changed = 0;\n (0, _emberMetal.addObserver)(obj, 'computed.foo', function () {\n changed++;\n });\n\n equal((0, _emberMetal.cacheFor)(obj, 'computed'), undefined, 'addObserver should not compute CP');\n\n set(obj, 'computed.foo', 'baz');\n\n equal(changed, 1, 'should fire observer');\n });\n\n (0, _internalTestHelpers.testBoth)('depending on a simple chain', function (get, set) {\n var val = void 0;\n (0, _emberMetal.addObserver)(obj, 'foo.bar.baz.biff', function (target, key) {\n val = get(target, key);\n count++;\n });\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(val, 'BUZZ');\n equal(count, 1);\n\n set(get(obj, 'foo.bar'), 'baz', { biff: 'BLARG' });\n equal(val, 'BLARG');\n equal(count, 2);\n\n set(get(obj, 'foo'), 'bar', { baz: { biff: 'BOOM' } });\n equal(val, 'BOOM');\n equal(count, 3);\n\n set(obj, 'foo', { bar: { baz: { biff: 'BLARG' } } });\n equal(val, 'BLARG');\n equal(count, 4);\n\n set(get(obj, 'foo.bar.baz'), 'biff', 'BUZZ');\n equal(val, 'BUZZ');\n equal(count, 5);\n\n var foo = get(obj, 'foo');\n\n set(obj, 'foo', 'BOO');\n equal(val, undefined);\n equal(count, 6);\n\n set(foo.bar.baz, 'biff', 'BOOM');\n equal(count, 6, 'should be not have invoked observer');\n });\n\n (0, _internalTestHelpers.testBoth)('depending on a chain with a capitalized first key', function (get, set) {\n var val = void 0;\n\n (0, _emberMetal.addObserver)(obj, 'Capital.foo.bar.baz.biff', function (target, key) {\n val = get(obj, key);\n count++;\n });\n\n set(get(obj, 'Capital.foo.bar.baz'), 'biff', 'BUZZ');\n equal(val, 'BUZZ');\n equal(count, 1);\n\n set(get(obj, 'Capital.foo.bar'), 'baz', { biff: 'BLARG' });\n equal(val, 'BLARG');\n equal(count, 2);\n\n set(get(obj, 'Capital.foo'), 'bar', { baz: { biff: 'BOOM' } });\n equal(val, 'BOOM');\n equal(count, 3);\n\n set(obj, 'Capital.foo', { bar: { baz: { biff: 'BLARG' } } });\n equal(val, 'BLARG');\n equal(count, 4);\n\n set(get(obj, 'Capital.foo.bar.baz'), 'biff', 'BUZZ');\n equal(val, 'BUZZ');\n equal(count, 5);\n\n var foo = get(obj, 'foo');\n\n set(obj, 'Capital.foo', 'BOO');\n equal(val, undefined);\n equal(count, 6);\n\n set(foo.bar.baz, 'biff', 'BOOM');\n equal(count, 6, 'should be not have invoked observer');\n });\n\n QUnit.module('_removeBeforeObserver');\n\n // ..........................................................\n // SETTING IDENTICAL VALUES\n //\n\n QUnit.module('props/observer_test - setting identical values');\n\n (0, _internalTestHelpers.testBoth)('setting simple prop should not trigger', function (get, set) {\n var obj = { foo: 'bar' };\n var count = 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n count++;\n });\n\n set(obj, 'foo', 'bar');\n equal(count, 0, 'should not trigger observer');\n\n set(obj, 'foo', 'baz');\n equal(count, 1, 'should trigger observer');\n\n set(obj, 'foo', 'baz');\n equal(count, 1, 'should not trigger observer again');\n });\n\n // The issue here is when a computed property is directly set with a value, then has a\n // dependent key change (which triggers a cache expiration and recomputation), observers will\n // not be fired if the CP setter is called with the last set value.\n (0, _internalTestHelpers.testBoth)('setting a cached computed property whose value has changed should trigger', function (get, set) {\n var obj = {};\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {\n return get(this, 'baz');\n },\n set: function (key, value) {\n return value;\n }\n }).property('baz'));\n\n var count = 0;\n\n (0, _emberMetal.addObserver)(obj, 'foo', function () {\n count++;\n });\n\n set(obj, 'foo', 'bar');\n equal(count, 1);\n equal(get(obj, 'foo'), 'bar');\n\n set(obj, 'baz', 'qux');\n equal(count, 2);\n equal(get(obj, 'foo'), 'qux');\n\n get(obj, 'foo');\n set(obj, 'foo', 'bar');\n equal(count, 3);\n equal(get(obj, 'foo'), 'bar');\n });\n\n QUnit.module('Ember.immediateObserver (Deprecated)');\n\n (0, _internalTestHelpers.testBoth)('immediate observers should fire synchronously', function (get, set) {\n expectDeprecation(/Usage of `Ember.immediateObserver` is deprecated, use `observer` instead./);\n var obj = {};\n var observerCalled = 0;\n var mixin = void 0;\n\n // explicitly create a run loop so we do not inadvertently\n // trigger deferred behavior\n (0, _emberMetal.run)(function () {\n mixin = _emberMetal.Mixin.create({\n fooDidChange: (0, _emberMetal._immediateObserver)('foo', function () {\n observerCalled++;\n equal(get(this, 'foo'), 'barbaz', 'newly set value is immediately available');\n })\n });\n\n mixin.apply(obj);\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {\n return 'yes hello this is foo';\n },\n set: function (key, value) {\n return value;\n }\n }));\n\n equal(get(obj, 'foo'), 'yes hello this is foo', 'precond - computed property returns a value');\n equal(observerCalled, 0, 'observer has not yet been called');\n\n set(obj, 'foo', 'barbaz');\n\n equal(observerCalled, 1, 'observer was called once');\n });\n });\n\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n (0, _internalTestHelpers.testBoth)('immediate observers added declaratively via brace expansion fire synchronously', function (get, set) {\n var obj = {};\n var observerCalled = 0;\n var mixin = void 0;\n\n // explicitly create a run loop so we do not inadvertently\n // trigger deferred behavior\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n mixin = _emberMetal.Mixin.create({\n fooDidChange: function () {\n observerCalled++;\n equal(get(this, 'foo'), 'barbaz', 'newly set value is immediately available');\n }.observesImmediately('{foo,bar}')\n });\n }, /Function#observesImmediately is deprecated. Use Function#observes instead/);\n\n mixin.apply(obj);\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function (key) {\n return 'yes hello this is foo';\n },\n set: function (key, value) {\n return value;\n }\n }));\n\n equal(get(obj, 'foo'), 'yes hello this is foo', 'precond - computed property returns a value');\n equal(observerCalled, 0, 'observer has not yet been called');\n\n set(obj, 'foo', 'barbaz');\n\n equal(observerCalled, 1, 'observer was called once');\n });\n });\n }\n\n (0, _internalTestHelpers.testBoth)('immediate observers watching multiple properties via brace expansion fire synchronously', function (get, set) {\n expectDeprecation(/Usage of `Ember.immediateObserver` is deprecated, use `observer` instead./);\n var obj = {};\n var observerCalled = 0;\n var mixin = void 0;\n\n // explicitly create a run loop so we do not inadvertently\n // trigger deferred behavior\n (0, _emberMetal.run)(function () {\n mixin = _emberMetal.Mixin.create({\n fooDidChange: (0, _emberMetal._immediateObserver)('{foo,bar}', function () {\n observerCalled++;\n equal(get(this, 'foo'), 'barbaz', 'newly set value is immediately available');\n })\n });\n\n mixin.apply(obj);\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {\n return 'yes hello this is foo';\n },\n set: function (key, value) {\n return value;\n }\n }));\n\n equal(get(obj, 'foo'), 'yes hello this is foo', 'precond - computed property returns a value');\n equal(observerCalled, 0, 'observer has not yet been called');\n\n set(obj, 'foo', 'barbaz');\n\n equal(observerCalled, 1, 'observer was called once');\n });\n });\n\n (0, _internalTestHelpers.testBoth)('immediate observers are for internal properties only', function (get, set) {\n expectDeprecation(/Usage of `Ember.immediateObserver` is deprecated, use `observer` instead./);\n expectAssertion(function () {\n (0, _emberMetal._immediateObserver)('foo.bar', function () {\n return this;\n });\n }, 'Immediate observers must observe internal properties only, not properties on other objects.');\n });\n\n QUnit.module('changeProperties');\n\n (0, _internalTestHelpers.testBoth)('observers added/removed during changeProperties should do the right thing.', function (get, set) {\n var obj = {\n foo: 0\n };\n function Observer() {\n this.willChangeCount = 0;\n this.didChangeCount = 0;\n }\n Observer.prototype = {\n add: function () {\n (0, _emberMetal._addBeforeObserver)(obj, 'foo', this, 'willChange');\n (0, _emberMetal.addObserver)(obj, 'foo', this, 'didChange');\n },\n remove: function () {\n (0, _emberMetal._removeBeforeObserver)(obj, 'foo', this, 'willChange');\n (0, _emberMetal.removeObserver)(obj, 'foo', this, 'didChange');\n },\n willChange: function () {\n this.willChangeCount++;\n },\n didChange: function () {\n this.didChangeCount++;\n }\n };\n var addedBeforeFirstChangeObserver = new Observer();\n var addedAfterFirstChangeObserver = new Observer();\n var addedAfterLastChangeObserver = new Observer();\n var removedBeforeFirstChangeObserver = new Observer();\n var removedBeforeLastChangeObserver = new Observer();\n var removedAfterLastChangeObserver = new Observer();\n removedBeforeFirstChangeObserver.add();\n removedBeforeLastChangeObserver.add();\n removedAfterLastChangeObserver.add();\n (0, _emberMetal.changeProperties)(function () {\n removedBeforeFirstChangeObserver.remove();\n addedBeforeFirstChangeObserver.add();\n\n set(obj, 'foo', 1);\n\n equal(addedBeforeFirstChangeObserver.willChangeCount, 1, '_addBeforeObserver called before the first change invoked immediately');\n equal(addedBeforeFirstChangeObserver.didChangeCount, 0, 'addObserver called before the first change is deferred');\n\n addedAfterFirstChangeObserver.add();\n removedBeforeLastChangeObserver.remove();\n\n set(obj, 'foo', 2);\n\n equal(addedAfterFirstChangeObserver.willChangeCount, 1, '_addBeforeObserver called after the first change invoked immediately');\n equal(addedAfterFirstChangeObserver.didChangeCount, 0, 'addObserver called after the first change is deferred');\n\n addedAfterLastChangeObserver.add();\n removedAfterLastChangeObserver.remove();\n });\n\n equal(removedBeforeFirstChangeObserver.willChangeCount, 0, '_removeBeforeObserver called before the first change sees none');\n equal(removedBeforeFirstChangeObserver.didChangeCount, 0, 'removeObserver called before the first change sees none');\n equal(addedBeforeFirstChangeObserver.willChangeCount, 1, '_addBeforeObserver called before the first change sees only 1');\n equal(addedBeforeFirstChangeObserver.didChangeCount, 1, 'addObserver called before the first change sees only 1');\n equal(addedAfterFirstChangeObserver.willChangeCount, 1, '_addBeforeObserver called after the first change sees 1');\n equal(addedAfterFirstChangeObserver.didChangeCount, 1, 'addObserver called after the first change sees 1');\n equal(addedAfterLastChangeObserver.willChangeCount, 0, '_addBeforeObserver called after the last change sees none');\n equal(addedAfterLastChangeObserver.didChangeCount, 0, 'addObserver called after the last change sees none');\n equal(removedBeforeLastChangeObserver.willChangeCount, 1, '_removeBeforeObserver called before the last change still sees 1');\n equal(removedBeforeLastChangeObserver.didChangeCount, 1, 'removeObserver called before the last change still sees 1');\n equal(removedAfterLastChangeObserver.willChangeCount, 1, '_removeBeforeObserver called after the last change still sees 1');\n equal(removedAfterLastChangeObserver.didChangeCount, 1, 'removeObserver called after the last change still sees 1');\n });\n\n QUnit.module('Keys behavior with observers');\n\n (0, _internalTestHelpers.testBoth)('should not leak properties on the prototype', function () {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n\n (0, _emberMetal.addObserver)(beer, 'type', K);\n deepEqual(Object.keys(beer), []);\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n });\n\n (0, _internalTestHelpers.testBoth)('observing a non existent property', function (get, set) {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n\n (0, _emberMetal.addObserver)(beer, 'brand', K);\n\n deepEqual(Object.keys(beer), []);\n\n set(beer, 'brand', 'Corona');\n deepEqual(Object.keys(beer), ['brand']);\n\n (0, _emberMetal.removeObserver)(beer, 'brand', K);\n });\n\n (0, _internalTestHelpers.testBoth)('with observers switched on and off', function (get, set) {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n\n (0, _emberMetal.addObserver)(beer, 'type', K);\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n\n deepEqual(Object.keys(beer), []);\n });\n\n (0, _internalTestHelpers.testBoth)('observers switched on and off with setter in between', function (get, set) {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n\n (0, _emberMetal.addObserver)(beer, 'type', K);\n set(beer, 'type', 'ale');\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n\n deepEqual(Object.keys(beer), ['type']);\n });\n\n (0, _internalTestHelpers.testBoth)('observer switched on and off and then setter', function (get, set) {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n\n (0, _emberMetal.addObserver)(beer, 'type', K);\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n set(beer, 'type', 'ale');\n\n deepEqual(Object.keys(beer), ['type']);\n });\n\n (0, _internalTestHelpers.testBoth)('observers switched on and off with setter in between (observed property is not shadowing)', function (get, set) {\n function Beer() {}\n\n var beer = new Beer();\n set(beer, 'type', 'ale');\n deepEqual(Object.keys(beer), ['type'], 'only set');\n\n var otherBeer = new Beer();\n (0, _emberMetal.addObserver)(otherBeer, 'type', K);\n set(otherBeer, 'type', 'ale');\n deepEqual(Object.keys(otherBeer), ['type'], 'addObserver -> set');\n\n var yetAnotherBeer = new Beer();\n (0, _emberMetal.addObserver)(yetAnotherBeer, 'type', K);\n set(yetAnotherBeer, 'type', 'ale');\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n deepEqual(Object.keys(yetAnotherBeer), ['type'], 'addObserver -> set -> removeObserver');\n\n var itsMyLastBeer = new Beer();\n set(itsMyLastBeer, 'type', 'ale');\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n deepEqual(Object.keys(itsMyLastBeer), ['type'], 'set -> removeObserver');\n });\n\n (0, _internalTestHelpers.testBoth)('observers switched on and off with setter in between (observed property is shadowing one on the prototype)', function (get, set) {\n function Beer() {}\n Beer.prototype.type = 'ipa';\n\n var beer = new Beer();\n set(beer, 'type', 'ale');\n deepEqual(Object.keys(beer), ['type'], 'after set');\n\n var otherBeer = new Beer();\n (0, _emberMetal.addObserver)(otherBeer, 'type', K);\n set(otherBeer, 'type', 'ale');\n deepEqual(Object.keys(otherBeer), ['type'], 'addObserver -> set');\n\n var yetAnotherBeer = new Beer();\n (0, _emberMetal.addObserver)(yetAnotherBeer, 'type', K);\n set(yetAnotherBeer, 'type', 'ale');\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n deepEqual(Object.keys(yetAnotherBeer), ['type'], 'addObserver -> set -> removeObserver');\n\n var itsMyLastBeer = new Beer();\n set(itsMyLastBeer, 'type', 'ale');\n (0, _emberMetal.removeObserver)(beer, 'type', K);\n deepEqual(Object.keys(itsMyLastBeer), ['type'], 'set -> removeObserver');\n });\n});","QUnit.module('ESLint | ember-metal/tests/observer_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/observer_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/performance_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n /*\n This test file is designed to capture performance regressions related to\n deferred computation. Things like run loops, computed properties, and bindings\n should run the minimum amount of times to achieve best performance, so any\n bugs that cause them to get evaluated more than necessary should be put here.\n */\n\n QUnit.module('Computed Properties - Number of times evaluated');\n\n QUnit.test('computed properties that depend on multiple properties should run only once per run loop', function () {\n var obj = { a: 'a', b: 'b', c: 'c' };\n var cpCount = 0;\n var obsCount = 0;\n\n (0, _emberMetal.defineProperty)(obj, 'abc', (0, _emberMetal.computed)(function (key) {\n cpCount++;\n return 'computed ' + key;\n }).property('a', 'b', 'c'));\n\n (0, _emberMetal.get)(obj, 'abc');\n\n cpCount = 0;\n\n (0, _emberMetal.addObserver)(obj, 'abc', function () {\n obsCount++;\n });\n\n (0, _emberMetal.beginPropertyChanges)();\n (0, _emberMetal.set)(obj, 'a', 'aa');\n (0, _emberMetal.set)(obj, 'b', 'bb');\n (0, _emberMetal.set)(obj, 'c', 'cc');\n (0, _emberMetal.endPropertyChanges)();\n\n (0, _emberMetal.get)(obj, 'abc');\n\n equal(cpCount, 1, 'The computed property is only invoked once');\n equal(obsCount, 1, 'The observer is only invoked once');\n });\n\n QUnit.test('computed properties are not executed if they are the last segment of an observer chain pain', function () {\n var foo = { bar: { baz: {} } };\n\n var count = 0;\n\n (0, _emberMetal.defineProperty)(foo.bar.baz, 'bam', (0, _emberMetal.computed)(function () {\n count++;\n }));\n\n (0, _emberMetal.addObserver)(foo, 'bar.baz.bam', function () {});\n\n (0, _emberMetal.propertyDidChange)((0, _emberMetal.get)(foo, 'bar.baz'), 'bam');\n\n equal(count, 0, 'should not have recomputed property');\n });\n});","QUnit.module('ESLint | ember-metal/tests/performance_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/performance_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/properties_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.defineProperty');\n\n QUnit.test('toString', function () {\n var obj = {};\n (0, _emberMetal.defineProperty)(obj, 'toString', undefined, function () {\n return 'FOO';\n });\n equal(obj.toString(), 'FOO', 'should replace toString');\n });\n\n QUnit.test('for data properties, didDefineProperty hook should be called if implemented', function () {\n expect(2);\n\n var obj = {\n didDefineProperty: function (obj, keyName, value) {\n equal(keyName, 'foo', 'key name should be foo');\n equal(value, 'bar', 'value should be bar');\n }\n };\n\n (0, _emberMetal.defineProperty)(obj, 'foo', undefined, 'bar');\n });\n\n QUnit.test('for computed properties, didDefineProperty hook should be called if implemented', function () {\n expect(2);\n\n var computedProperty = (0, _emberMetal.computed)(function () {\n return this;\n });\n\n var obj = {\n didDefineProperty: function (obj, keyName, value) {\n equal(keyName, 'foo', 'key name should be foo');\n strictEqual(value, computedProperty, 'value should be passed as computed property');\n }\n };\n\n (0, _emberMetal.defineProperty)(obj, 'foo', computedProperty);\n });\n\n QUnit.test('for descriptor properties, didDefineProperty hook should be called if implemented', function () {\n expect(2);\n\n var descriptor = {\n writable: true,\n configurable: false,\n enumerable: true,\n value: 42\n };\n\n var obj = {\n didDefineProperty: function (obj, keyName, value) {\n equal(keyName, 'answer', 'key name should be answer');\n strictEqual(value, descriptor, 'value should be passed as descriptor');\n }\n };\n\n (0, _emberMetal.defineProperty)(obj, 'answer', descriptor);\n });\n\n QUnit.module('Ember.deprecateProperty');\n\n QUnit.test('enables access to deprecated property and returns the value of the new property', function () {\n expect(3);\n var obj = { foo: 'bar' };\n\n (0, _emberMetal.deprecateProperty)(obj, 'baz', 'foo');\n\n expectDeprecation();\n equal(obj.baz, obj.foo, 'baz and foo are equal');\n\n obj.foo = 'blammo';\n equal(obj.baz, obj.foo, 'baz and foo are equal');\n });\n\n QUnit.test('deprecatedKey is not enumerable', function () {\n expect(2);\n var obj = { foo: 'bar', blammo: 'whammy' };\n\n (0, _emberMetal.deprecateProperty)(obj, 'baz', 'foo');\n\n for (var prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n notEqual(prop, 'baz');\n }\n }\n });\n\n QUnit.test('enables setter to deprecated property and updates the value of the new property', function () {\n expect(3);\n var obj = { foo: 'bar' };\n\n (0, _emberMetal.deprecateProperty)(obj, 'baz', 'foo');\n\n expectDeprecation();\n obj.baz = 'bloop';\n equal(obj.foo, 'bloop', 'updating baz updates foo');\n equal(obj.baz, obj.foo, 'baz and foo are equal');\n });\n});","QUnit.module('ESLint | ember-metal/tests/properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/property_did_change_hook', ['internal-test-helpers', 'ember-metal'], function (_internalTestHelpers, _emberMetal) {\n 'use strict';\n\n QUnit.module('PROPERTY_DID_CHANGE');\n\n (0, _internalTestHelpers.testBoth)('alias and cp', function (get, set) {\n var _obj;\n\n var counts = {};\n var obj = (_obj = {\n child: {}\n }, _obj[_emberMetal.PROPERTY_DID_CHANGE] = function (keyName) {\n counts[keyName] = (counts[keyName] || 0) + 1;\n }, _obj);\n\n (0, _emberMetal.defineProperty)(obj, 'cost', (0, _emberMetal.alias)('child.cost'));\n (0, _emberMetal.defineProperty)(obj, 'tax', (0, _emberMetal.alias)('child.tax'));\n\n (0, _emberMetal.defineProperty)(obj, 'total', (0, _emberMetal.computed)('cost', 'tax', {\n get: function () {\n return get(this, 'cost') + get(this, 'tax');\n }\n }));\n\n ok(!(0, _emberMetal.isWatching)(obj, 'child.cost'), 'precond alias target `child.cost` is not watched');\n equal(get(obj, 'cost'), undefined);\n // this is how PROPERTY_DID_CHANGE will get notified\n ok((0, _emberMetal.isWatching)(obj, 'child.cost'), 'alias target `child.cost` is watched after consumption');\n\n ok(!(0, _emberMetal.isWatching)(obj, 'child.tax'), 'precond alias target `child.tax` is not watched');\n equal(get(obj, 'tax'), undefined);\n // this is how PROPERTY_DID_CHANGE will get notified\n ok((0, _emberMetal.isWatching)(obj, 'child.tax'), 'alias target `child.cost` is watched after consumption');\n\n // increments the watching count on the alias itself to 1\n ok(isNaN(get(obj, 'total')), 'total is initialized');\n\n // decrements the watching count on the alias itself to 0\n set(obj, 'child', {\n cost: 399.00,\n tax: 32.93\n });\n\n // this should have called PROPERTY_DID_CHANGE for all of them\n equal(counts['cost'], 1, 'PROPERTY_DID_CHANGE called with cost');\n equal(counts['tax'], 1, 'PROPERTY_DID_CHANGE called with tax');\n equal(counts['total'], 1, 'PROPERTY_DID_CHANGE called with total');\n\n // we should still have a dependency installed\n ok((0, _emberMetal.isWatching)(obj, 'child.cost'), 'watching child.cost');\n ok((0, _emberMetal.isWatching)(obj, 'child.tax'), 'watching child.tax');\n\n set(obj, 'child', {\n cost: 100.00,\n tax: 10.00\n });\n\n equal(counts['cost'], 2, 'PROPERTY_DID_CHANGE called with cost');\n equal(counts['tax'], 2, 'PROPERTY_DID_CHANGE called with tax');\n equal(counts['total'], 1, 'PROPERTY_DID_CHANGE called with total');\n });\n});","QUnit.module('ESLint | ember-metal/tests/property_did_change_hook.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/property_did_change_hook.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/add_queue_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var originalQueues = _emberMetal.run.queues;\n var queues = void 0;\n\n QUnit.module('system/run_loop/add_queue_test', {\n setup: function () {\n _emberMetal.run.queues = queues = ['blork', 'bleep'];\n },\n teardown: function () {\n _emberMetal.run.queues = originalQueues;\n }\n });\n\n QUnit.test('adds a queue after a specified one', function () {\n _emberMetal.run._addQueue('testeroo', 'blork');\n\n equal(queues.indexOf('testeroo'), 1, 'new queue was added after specified queue');\n });\n\n QUnit.test('does not add the queue if it already exists', function () {\n _emberMetal.run._addQueue('testeroo', 'blork');\n _emberMetal.run._addQueue('testeroo', 'blork');\n\n equal(queues.length, 3, 'queue was not added twice');\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/add_queue_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/add_queue_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/debounce_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n var originalDebounce = _emberMetal.run.backburner.debounce;\n var wasCalled = false;\n\n QUnit.module('Ember.run.debounce', {\n setup: function () {\n _emberMetal.run.backburner.debounce = function () {\n wasCalled = true;\n };\n },\n teardown: function () {\n _emberMetal.run.backburner.debounce = originalDebounce;\n }\n });\n\n QUnit.test('Ember.run.debounce uses Backburner.debounce', function () {\n _emberMetal.run.debounce(function () {});\n ok(wasCalled, 'Ember.run.debounce used');\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/debounce_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/debounce_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/later_test', ['ember-utils', 'ember-metal'], function (_emberUtils, _emberMetal) {\n 'use strict';\n\n var originalSetTimeout = window.setTimeout;\n var originalDateValueOf = Date.prototype.valueOf;\n var originalPlatform = _emberMetal.run.backburner._platform;\n\n function wait(callback, maxWaitCount) {\n maxWaitCount = (0, _emberMetal.isNone)(maxWaitCount) ? 100 : maxWaitCount;\n\n originalSetTimeout(function () {\n if (maxWaitCount > 0 && (_emberMetal.run.hasScheduledTimers() || _emberMetal.run.currentRunLoop)) {\n wait(callback, maxWaitCount - 1);\n\n return;\n }\n\n callback();\n }, 10);\n }\n\n // Synchronous \"sleep\". This simulates work being done\n // after run.later was called but before the run loop\n // has flushed. In previous versions, this would have\n // caused the run.later callback to have run from\n // within the run loop flush, since by the time the\n // run loop has to flush, it would have considered\n // the timer already expired.\n function pauseUntil(time) {\n while (+new Date() < time) {/* do nothing - sleeping */}\n }\n\n QUnit.module('run.later', {\n teardown: function () {\n _emberMetal.run.backburner._platform = originalPlatform;\n window.setTimeout = originalSetTimeout;\n Date.prototype.valueOf = originalDateValueOf;\n }\n });\n\n asyncTest('should invoke after specified period of time - function only', function () {\n var invoked = false;\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.later(function () {\n return invoked = true;\n }, 100);\n });\n\n wait(function () {\n QUnit.start();\n equal(invoked, true, 'should have invoked later item');\n });\n });\n\n asyncTest('should invoke after specified period of time - target/method', function () {\n var obj = { invoked: false };\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.later(obj, function () {\n this.invoked = true;\n }, 100);\n });\n\n wait(function () {\n QUnit.start();\n equal(obj.invoked, true, 'should have invoked later item');\n });\n });\n\n asyncTest('should invoke after specified period of time - target/method/args', function () {\n var obj = { invoked: 0 };\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.later(obj, function (amt) {\n this.invoked += amt;\n }, 10, 100);\n });\n\n wait(function () {\n QUnit.start();\n equal(obj.invoked, 10, 'should have invoked later item');\n });\n });\n\n asyncTest('should always invoke within a separate runloop', function () {\n var obj = { invoked: 0 };\n var firstRunLoop = void 0,\n secondRunLoop = void 0;\n\n (0, _emberMetal.run)(function () {\n firstRunLoop = _emberMetal.run.currentRunLoop;\n\n _emberMetal.run.later(obj, function (amt) {\n this.invoked += amt;\n secondRunLoop = _emberMetal.run.currentRunLoop;\n }, 10, 1);\n\n pauseUntil(+new Date() + 100);\n });\n\n ok(firstRunLoop, 'first run loop captured');\n ok(!_emberMetal.run.currentRunLoop, 'shouldn\\'t be in a run loop after flush');\n equal(obj.invoked, 0, 'shouldn\\'t have invoked later item yet');\n\n wait(function () {\n QUnit.start();\n equal(obj.invoked, 10, 'should have invoked later item');\n ok(secondRunLoop, 'second run loop took place');\n ok(secondRunLoop !== firstRunLoop, 'two different run loops took place');\n });\n });\n\n // Our current implementation doesn't allow us to correctly enforce this ordering.\n // We should probably implement a queue to provide this guarantee.\n // See https://github.com/emberjs/ember.js/issues/3526 for more information.\n\n // asyncTest('callback order', function() {\n // let array = [];\n // function fn(val) { array.push(val); }\n\n // run(function() {\n // run.later(this, fn, 4, 5);\n // run.later(this, fn, 1, 1);\n // run.later(this, fn, 5, 10);\n // run.later(this, fn, 2, 3);\n // run.later(this, fn, 3, 3);\n // });\n\n // deepEqual(array, []);\n\n // wait(function() {\n // QUnit.start();\n // deepEqual(array, [1,2,3,4,5], 'callbacks were called in expected order');\n // });\n // });\n\n\n // Out current implementation doesn't allow us to properly enforce what is tested here.\n // We should probably fix it, but it's not technically a bug right now.\n // See https://github.com/emberjs/ember.js/issues/3522 for more information.\n\n // asyncTest('callbacks coalesce into same run loop if expiring at the same time', function() {\n // let array = [];\n // function fn(val) { array.push(run.currentRunLoop); }\n\n // run(function() {\n\n // // Force +new Date to return the same result while scheduling\n // // run.later timers. Otherwise: non-determinism!\n // let now = +new Date();\n // Date.prototype.valueOf = function() { return now; };\n\n // run.later(this, fn, 10);\n // run.later(this, fn, 200);\n // run.later(this, fn, 200);\n\n // Date.prototype.valueOf = originalDateValueOf;\n // });\n\n // deepEqual(array, []);\n\n // wait(function() {\n // QUnit.start();\n // equal(array.length, 3, 'all callbacks called');\n // ok(array[0] !== array[1], 'first two callbacks have different run loops');\n // ok(array[0], 'first runloop present');\n // ok(array[1], 'second runloop present');\n // equal(array[1], array[2], 'last two callbacks got the same run loop');\n // });\n // });\n\n asyncTest('inception calls to run.later should run callbacks in separate run loops', function () {\n var runLoop = void 0,\n finished = void 0;\n\n (0, _emberMetal.run)(function () {\n runLoop = _emberMetal.run.currentRunLoop;\n ok(runLoop);\n\n _emberMetal.run.later(function () {\n ok(_emberMetal.run.currentRunLoop && _emberMetal.run.currentRunLoop !== runLoop, 'first later callback has own run loop');\n runLoop = _emberMetal.run.currentRunLoop;\n\n _emberMetal.run.later(function () {\n ok(_emberMetal.run.currentRunLoop && _emberMetal.run.currentRunLoop !== runLoop, 'second later callback has own run loop');\n finished = true;\n }, 40);\n }, 40);\n });\n\n wait(function () {\n QUnit.start();\n ok(finished, 'all .later callbacks run');\n });\n });\n\n asyncTest('setTimeout should never run with a negative wait', function () {\n // Rationale: The old run loop code was susceptible to an occasional\n // bug where invokeLaterTimers would be scheduled with a setTimeout\n // with a negative wait. Modern browsers normalize this to 0, but\n // older browsers (IE <= 8) break with a negative wait, which\n // happens when an expired timer callback takes a while to run,\n // which is what we simulate here.\n var newSetTimeoutUsed = void 0;\n _emberMetal.run.backburner._platform = (0, _emberUtils.assign)({}, originalPlatform, {\n setTimeout: function () {\n var wait = arguments[arguments.length - 1];\n newSetTimeoutUsed = true;\n ok(!isNaN(wait) && wait >= 0, 'wait is a non-negative number');\n\n return originalPlatform.setTimeout.apply(originalPlatform, arguments);\n }\n });\n\n var count = 0;\n (0, _emberMetal.run)(function () {\n _emberMetal.run.later(function () {\n count++;\n\n // This will get run first. Waste some time.\n // This is intended to break invokeLaterTimers code by taking a\n // long enough time that other timers should technically expire. It's\n // fine that they're not called in this run loop; just need to\n // make sure that invokeLaterTimers doesn't end up scheduling\n // a negative setTimeout.\n pauseUntil(+new Date() + 60);\n }, 1);\n\n _emberMetal.run.later(function () {\n equal(count, 1, 'callbacks called in order');\n }, 50);\n });\n\n wait(function () {\n QUnit.start();\n ok(newSetTimeoutUsed, 'stub setTimeout was used');\n });\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/later_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/later_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/next_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('run.next');\n\n asyncTest('should invoke immediately on next timeout', function () {\n var invoked = false;\n\n (0, _emberMetal.run)(function () {\n return _emberMetal.run.next(function () {\n return invoked = true;\n });\n });\n\n equal(invoked, false, 'should not have invoked yet');\n\n setTimeout(function () {\n QUnit.start();\n equal(invoked, true, 'should have invoked later item');\n }, 20);\n });\n\n asyncTest('callback should be called from within separate loop', function () {\n var firstRunLoop = void 0,\n secondRunLoop = void 0;\n (0, _emberMetal.run)(function () {\n firstRunLoop = _emberMetal.run.currentRunLoop;\n _emberMetal.run.next(function () {\n return secondRunLoop = _emberMetal.run.currentRunLoop;\n });\n });\n\n setTimeout(function () {\n QUnit.start();\n ok(secondRunLoop, 'callback was called from within run loop');\n ok(firstRunLoop && secondRunLoop !== firstRunLoop, 'two separate run loops were invoked');\n }, 20);\n });\n\n asyncTest('multiple calls to run.next share coalesce callbacks into same run loop', function () {\n var secondRunLoop = void 0,\n thirdRunLoop = void 0;\n (0, _emberMetal.run)(function () {\n _emberMetal.run.next(function () {\n return secondRunLoop = _emberMetal.run.currentRunLoop;\n });\n _emberMetal.run.next(function () {\n return thirdRunLoop = _emberMetal.run.currentRunLoop;\n });\n });\n\n setTimeout(function () {\n QUnit.start();\n ok(secondRunLoop && secondRunLoop === thirdRunLoop, 'callbacks coalesced into same run loop');\n }, 20);\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/next_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/next_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/once_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/run_loop/once_test');\n\n QUnit.test('calling invokeOnce more than once invokes only once', function () {\n var count = 0;\n (0, _emberMetal.run)(function () {\n function F() {\n count++;\n }\n _emberMetal.run.once(F);\n _emberMetal.run.once(F);\n _emberMetal.run.once(F);\n });\n\n equal(count, 1, 'should have invoked once');\n });\n\n QUnit.test('should differentiate based on target', function () {\n var A = { count: 0 };\n var B = { count: 0 };\n (0, _emberMetal.run)(function () {\n function F() {\n this.count++;\n }\n _emberMetal.run.once(A, F);\n _emberMetal.run.once(B, F);\n _emberMetal.run.once(A, F);\n _emberMetal.run.once(B, F);\n });\n\n equal(A.count, 1, 'should have invoked once on A');\n equal(B.count, 1, 'should have invoked once on B');\n });\n\n QUnit.test('should ignore other arguments - replacing previous ones', function () {\n var A = { count: 0 };\n var B = { count: 0 };\n\n (0, _emberMetal.run)(function () {\n function F(amt) {\n this.count += amt;\n }\n _emberMetal.run.once(A, F, 10);\n _emberMetal.run.once(B, F, 20);\n _emberMetal.run.once(A, F, 30);\n _emberMetal.run.once(B, F, 40);\n });\n\n equal(A.count, 30, 'should have invoked once on A');\n equal(B.count, 40, 'should have invoked once on B');\n });\n\n QUnit.test('should be inside of a runloop when running', function () {\n (0, _emberMetal.run)(function () {\n _emberMetal.run.once(function () {\n return ok(!!_emberMetal.run.currentRunLoop, 'should have a runloop');\n });\n });\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/once_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/once_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/onerror_test', ['ember-metal', 'ember-debug'], function (_emberMetal, _emberDebug) {\n 'use strict';\n\n QUnit.module('system/run_loop/onerror_test');\n\n QUnit.test('With Ember.onerror undefined, errors in Ember.run are thrown', function () {\n var thrown = new Error('Boom!');\n var original = (0, _emberMetal.getOnerror)();\n\n var caught = void 0;\n (0, _emberMetal.setOnerror)(undefined);\n try {\n (0, _emberMetal.run)(function () {\n throw thrown;\n });\n } catch (error) {\n caught = error;\n } finally {\n (0, _emberMetal.setOnerror)(original);\n }\n\n deepEqual(caught, thrown);\n });\n\n QUnit.test('With Ember.onerror set, errors in Ember.run are caught', function () {\n var thrown = new Error('Boom!');\n var original = (0, _emberMetal.getOnerror)();\n var originalDispatchOverride = (0, _emberMetal.getDispatchOverride)();\n var originalIsTesting = (0, _emberDebug.isTesting)();\n\n var caught = void 0;\n (0, _emberMetal.setOnerror)(function (error) {\n caught = error;\n });\n (0, _emberMetal.setDispatchOverride)(null);\n (0, _emberDebug.setTesting)(false);\n\n try {\n (0, _emberMetal.run)(function () {\n throw thrown;\n });\n } finally {\n (0, _emberMetal.setOnerror)(original);\n (0, _emberMetal.setDispatchOverride)(originalDispatchOverride);\n (0, _emberDebug.setTesting)(originalIsTesting);\n }\n\n deepEqual(caught, thrown);\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/onerror_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/onerror_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/run_bind_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/run_loop/run_bind_test');\n\n QUnit.test('Ember.run.bind builds a run-loop wrapped callback handler', function () {\n expect(3);\n\n var obj = {\n value: 0,\n increment: function (increment) {\n ok(_emberMetal.run.currentRunLoop, 'expected a run-loop');\n return this.value += increment;\n }\n };\n\n var proxiedFunction = _emberMetal.run.bind(obj, obj.increment, 1);\n equal(proxiedFunction(), 1);\n equal(obj.value, 1);\n });\n\n QUnit.test('Ember.run.bind keeps the async callback arguments', function () {\n expect(4);\n\n function asyncCallback(increment, increment2, increment3) {\n ok(_emberMetal.run.currentRunLoop, 'expected a run-loop');\n equal(increment, 1);\n equal(increment2, 2);\n equal(increment3, 3);\n }\n\n function asyncFunction(fn) {\n fn(2, 3);\n }\n\n asyncFunction(_emberMetal.run.bind(asyncCallback, asyncCallback, 1));\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/run_bind_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/run_bind_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/run_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/run_loop/run_test');\n\n QUnit.test('Ember.run invokes passed function, returning value', function () {\n var obj = {\n foo: function () {\n return [this.bar, 'FOO'];\n },\n\n bar: 'BAR',\n checkArgs: function (arg1, arg2) {\n return [arg1, this.bar, arg2];\n }\n };\n\n equal((0, _emberMetal.run)(function () {\n return 'FOO';\n }), 'FOO', 'pass function only');\n deepEqual((0, _emberMetal.run)(obj, obj.foo), ['BAR', 'FOO'], 'pass obj and obj.method');\n deepEqual((0, _emberMetal.run)(obj, 'foo'), ['BAR', 'FOO'], 'pass obj and \"method\"');\n deepEqual((0, _emberMetal.run)(obj, obj.checkArgs, 'hello', 'world'), ['hello', 'BAR', 'world'], 'pass obj, obj.method, and extra arguments');\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/run_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/run_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/schedule_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/run_loop/schedule_test');\n\n QUnit.test('scheduling item in queue should defer until finished', function () {\n var cnt = 0;\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.schedule('actions', function () {\n return cnt++;\n });\n _emberMetal.run.schedule('actions', function () {\n return cnt++;\n });\n equal(cnt, 0, 'should not run action yet');\n });\n\n equal(cnt, 2, 'should flush actions now');\n });\n\n QUnit.test('a scheduled item can be canceled', function (assert) {\n var hasRan = false;\n\n (0, _emberMetal.run)(function () {\n var cancelId = _emberMetal.run.schedule('actions', function () {\n return hasRan = true;\n });\n _emberMetal.run.cancel(cancelId);\n });\n\n assert.notOk(hasRan, 'should not have ran callback run');\n });\n\n QUnit.test('nested runs should queue each phase independently', function () {\n var cnt = 0;\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.schedule('actions', function () {\n return cnt++;\n });\n equal(cnt, 0, 'should not run action yet');\n\n (0, _emberMetal.run)(function () {\n _emberMetal.run.schedule('actions', function () {\n return cnt++;\n });\n });\n equal(cnt, 1, 'should not run action yet');\n });\n\n equal(cnt, 2, 'should flush actions now');\n });\n\n QUnit.test('prior queues should be flushed before moving on to next queue', function () {\n var order = [];\n\n (0, _emberMetal.run)(function () {\n var runLoop = _emberMetal.run.currentRunLoop;\n ok(runLoop, 'run loop present');\n\n _emberMetal.run.schedule('sync', function () {\n order.push('sync');\n equal(runLoop, _emberMetal.run.currentRunLoop, 'same run loop used');\n });\n\n _emberMetal.run.schedule('actions', function () {\n order.push('actions');\n equal(runLoop, _emberMetal.run.currentRunLoop, 'same run loop used');\n\n _emberMetal.run.schedule('actions', function () {\n order.push('actions');\n equal(runLoop, _emberMetal.run.currentRunLoop, 'same run loop used');\n });\n\n _emberMetal.run.schedule('sync', function () {\n order.push('sync');\n equal(runLoop, _emberMetal.run.currentRunLoop, 'same run loop used');\n });\n });\n\n _emberMetal.run.schedule('destroy', function () {\n order.push('destroy');\n equal(runLoop, _emberMetal.run.currentRunLoop, 'same run loop used');\n });\n });\n\n deepEqual(order, ['sync', 'actions', 'sync', 'actions', 'destroy']);\n });\n\n QUnit.test('makes sure it does not trigger an autorun during testing', function () {\n expectAssertion(function () {\n return _emberMetal.run.schedule('actions', function () {});\n }, /wrap any code with asynchronous side-effects in a run/);\n\n // make sure not just the first violation is asserted.\n expectAssertion(function () {\n return _emberMetal.run.schedule('actions', function () {});\n }, /wrap any code with asynchronous side-effects in a run/);\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/schedule_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/schedule_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/sync_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/run_loop/sync_test');\n\n QUnit.test('sync() will immediately flush the sync queue only', function () {\n var cnt = 0;\n\n (0, _emberMetal.run)(function () {\n function cntup() {\n cnt++;\n }\n\n function syncfunc() {\n if (++cnt < 5) {\n _emberMetal.run.schedule('sync', syncfunc);\n }\n _emberMetal.run.schedule('actions', cntup);\n }\n\n syncfunc();\n\n equal(cnt, 1, 'should not run action yet');\n _emberMetal.run.sync();\n\n equal(cnt, 5, 'should have run sync queue continuously');\n });\n\n equal(cnt, 10, 'should flush actions now too');\n });\n\n QUnit.test('calling sync() outside a run loop does not cause an error', function () {\n expect(0);\n\n _emberMetal.run.sync();\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/sync_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/sync_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/run_loop/unwind_test', ['ember-metal', 'ember-debug'], function (_emberMetal, _emberDebug) {\n 'use strict';\n\n QUnit.module('system/run_loop/unwind_test');\n\n QUnit.test('RunLoop unwinds despite unhandled exception', function () {\n var initialRunLoop = _emberMetal.run.currentRunLoop;\n\n throws(function () {\n (0, _emberMetal.run)(function () {\n _emberMetal.run.schedule('actions', function () {\n throw new _emberDebug.Error('boom!');\n });\n });\n }, Error, 'boom!');\n\n // The real danger at this point is that calls to autorun will stick\n // tasks into the already-dead runloop, which will never get\n // flushed. I can't easily demonstrate this in a unit test because\n // autorun explicitly doesn't work in test mode. - ef4\n equal(_emberMetal.run.currentRunLoop, initialRunLoop, 'Previous run loop should be cleaned up despite exception');\n\n // Prevent a failure in this test from breaking subsequent tests.\n _emberMetal.run.currentRunLoop = initialRunLoop;\n });\n\n QUnit.test('run unwinds despite unhandled exception', function () {\n var initialRunLoop = _emberMetal.run.currentRunLoop;\n\n throws(function () {\n (0, _emberMetal.run)(function () {\n throw new _emberDebug.Error('boom!');\n });\n }, _emberDebug.Error, 'boom!');\n\n equal(_emberMetal.run.currentRunLoop, initialRunLoop, 'Previous run loop should be cleaned up despite exception');\n\n // Prevent a failure in this test from breaking subsequent tests.\n _emberMetal.run.currentRunLoop = initialRunLoop;\n });\n});","QUnit.module('ESLint | ember-metal/tests/run_loop/unwind_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/run_loop/unwind_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/set_properties_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.setProperties');\n\n QUnit.test('supports setting multiple attributes at once', function () {\n deepEqual((0, _emberMetal.setProperties)(null, null), null, 'noop for null properties and null object');\n deepEqual((0, _emberMetal.setProperties)(undefined, undefined), undefined, 'noop for undefined properties and undefined object');\n\n deepEqual((0, _emberMetal.setProperties)({}), undefined, 'noop for no properties');\n deepEqual((0, _emberMetal.setProperties)({}, undefined), undefined, 'noop for undefined');\n deepEqual((0, _emberMetal.setProperties)({}, null), null, 'noop for null');\n deepEqual((0, _emberMetal.setProperties)({}, NaN), NaN, 'noop for NaN');\n deepEqual((0, _emberMetal.setProperties)({}, {}), {}, 'meh');\n\n deepEqual((0, _emberMetal.setProperties)({}, { foo: 1 }), { foo: 1 }, 'Set a single property');\n\n deepEqual((0, _emberMetal.setProperties)({}, { foo: 1, bar: 1 }), { foo: 1, bar: 1 }, 'Set multiple properties');\n\n deepEqual((0, _emberMetal.setProperties)({ foo: 2, baz: 2 }, { foo: 1 }), { foo: 1 }, 'Set one of multiple properties');\n\n deepEqual((0, _emberMetal.setProperties)({ foo: 2, baz: 2 }, { bar: 2 }), {\n bar: 2\n }, 'Set an additional, previously unset property');\n });\n});","QUnit.module('ESLint | ember-metal/tests/set_properties_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/set_properties_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/watching/is_watching_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('isWatching');\n\n function testObserver(setup, teardown) {\n var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'key';\n\n var obj = {};\n function fn() {}\n\n equal((0, _emberMetal.isWatching)(obj, key), false, 'precond - isWatching is false by default');\n setup(obj, key, fn);\n equal((0, _emberMetal.isWatching)(obj, key), true, 'isWatching is true when observers are added');\n teardown(obj, key, fn);\n equal((0, _emberMetal.isWatching)(obj, key), false, 'isWatching is false after observers are removed');\n }\n\n QUnit.test('isWatching is true for regular local observers', function () {\n testObserver(function (obj, key, fn) {\n _emberMetal.Mixin.create({\n didChange: (0, _emberMetal.observer)(key, fn)\n }).apply(obj);\n }, function (obj, key, fn) {\n return (0, _emberMetal.removeObserver)(obj, key, obj, fn);\n });\n });\n\n QUnit.test('isWatching is true for nonlocal observers', function () {\n testObserver(function (obj, key, fn) {\n (0, _emberMetal.addObserver)(obj, key, obj, fn);\n }, function (obj, key, fn) {\n return (0, _emberMetal.removeObserver)(obj, key, obj, fn);\n });\n });\n\n QUnit.test('isWatching is true for chained observers', function () {\n testObserver(function (obj, key, fn) {\n (0, _emberMetal.addObserver)(obj, key + '.bar', obj, fn);\n }, function (obj, key, fn) {\n (0, _emberMetal.removeObserver)(obj, key + '.bar', obj, fn);\n });\n });\n\n QUnit.test('isWatching is true for computed properties', function () {\n testObserver(function (obj, key, fn) {\n (0, _emberMetal.defineProperty)(obj, 'computed', (0, _emberMetal.computed)(fn).property(key));\n (0, _emberMetal.get)(obj, 'computed');\n }, function (obj, key, fn) {\n return (0, _emberMetal.defineProperty)(obj, 'computed', null);\n });\n });\n\n QUnit.test('isWatching is true for chained computed properties', function () {\n testObserver(function (obj, key, fn) {\n (0, _emberMetal.defineProperty)(obj, 'computed', (0, _emberMetal.computed)(fn).property(key + '.bar'));\n (0, _emberMetal.get)(obj, 'computed');\n }, function (obj, key, fn) {\n return (0, _emberMetal.defineProperty)(obj, 'computed', null);\n });\n });\n\n // can't watch length on Array - it is special...\n // But you should be able to watch a length property of an object\n QUnit.test('isWatching is true for \\'length\\' property on object', function () {\n testObserver(function (obj, key, fn) {\n (0, _emberMetal.defineProperty)(obj, 'length', null, '26.2 miles');\n (0, _emberMetal.addObserver)(obj, 'length', obj, fn);\n }, function (obj, key, fn) {\n return (0, _emberMetal.removeObserver)(obj, 'length', obj, fn);\n }, 'length');\n });\n});","QUnit.module('ESLint | ember-metal/tests/watching/is_watching_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/watching/is_watching_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/watching/unwatch_test', ['internal-test-helpers', 'ember-metal'], function (_internalTestHelpers, _emberMetal) {\n 'use strict';\n\n var willCount = void 0,\n didCount = void 0;\n\n QUnit.module('unwatch', {\n setup: function () {\n willCount = didCount = 0;\n }\n });\n\n function addListeners(obj, keyPath) {\n (0, _emberMetal.addListener)(obj, keyPath + ':before', function () {\n return willCount++;\n });\n (0, _emberMetal.addListener)(obj, keyPath + ':change', function () {\n return didCount++;\n });\n }\n\n (0, _internalTestHelpers.testBoth)('unwatching a computed property - regular get/set', function (get, set) {\n var obj = {};\n\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {\n return this.__foo;\n },\n set: function (keyName, value) {\n this.__foo = value;\n return this.__foo;\n }\n }));\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n set(obj, 'foo', 'bar');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n (0, _emberMetal.unwatch)(obj, 'foo');\n willCount = didCount = 0;\n set(obj, 'foo', 'BAZ');\n equal(willCount, 0, 'should NOT have invoked willCount');\n equal(didCount, 0, 'should NOT have invoked didCount');\n });\n\n (0, _internalTestHelpers.testBoth)('unwatching a regular property - regular get/set', function (get, set) {\n var obj = { foo: 'BIFF' };\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n set(obj, 'foo', 'bar');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n (0, _emberMetal.unwatch)(obj, 'foo');\n willCount = didCount = 0;\n set(obj, 'foo', 'BAZ');\n equal(willCount, 0, 'should NOT have invoked willCount');\n equal(didCount, 0, 'should NOT have invoked didCount');\n });\n\n QUnit.test('unwatching should be nested', function () {\n var obj = { foo: 'BIFF' };\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n (0, _emberMetal.watch)(obj, 'foo');\n (0, _emberMetal.set)(obj, 'foo', 'bar');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n (0, _emberMetal.unwatch)(obj, 'foo');\n willCount = didCount = 0;\n (0, _emberMetal.set)(obj, 'foo', 'BAZ');\n equal(willCount, 1, 'should NOT have invoked willCount');\n equal(didCount, 1, 'should NOT have invoked didCount');\n\n (0, _emberMetal.unwatch)(obj, 'foo');\n willCount = didCount = 0;\n (0, _emberMetal.set)(obj, 'foo', 'BAZ');\n equal(willCount, 0, 'should NOT have invoked willCount');\n equal(didCount, 0, 'should NOT have invoked didCount');\n });\n\n (0, _internalTestHelpers.testBoth)('unwatching \"length\" property on an object', function (get, set) {\n var obj = { foo: 'RUN' };\n addListeners(obj, 'length');\n\n // Can watch length when it is undefined\n (0, _emberMetal.watch)(obj, 'length');\n set(obj, 'length', '10k');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n // Should stop watching despite length now being defined (making object 'array-like')\n (0, _emberMetal.unwatch)(obj, 'length');\n willCount = didCount = 0;\n set(obj, 'length', '5k');\n equal(willCount, 0, 'should NOT have invoked willCount');\n equal(didCount, 0, 'should NOT have invoked didCount');\n });\n\n (0, _internalTestHelpers.testBoth)('unwatching should not destroy non MANDATORY_SETTER descriptor', function (get, set) {\n var obj = { get foo() {\n return 'RUN';\n } };\n\n equal(obj.foo, 'RUN', 'obj.foo');\n (0, _emberMetal.watch)(obj, 'foo');\n equal(obj.foo, 'RUN', 'obj.foo after watch');\n (0, _emberMetal.unwatch)(obj, 'foo');\n equal(obj.foo, 'RUN', 'obj.foo after unwatch');\n });\n});","QUnit.module('ESLint | ember-metal/tests/watching/unwatch_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/watching/unwatch_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/watching/watch_test', ['ember-environment', 'ember-metal', 'internal-test-helpers'], function (_emberEnvironment, _emberMetal, _internalTestHelpers) {\n 'use strict';\n\n var willCount = void 0,\n didCount = void 0,\n willKeys = void 0,\n didKeys = void 0,\n originalLookup = void 0;\n\n QUnit.module('watch', {\n setup: function () {\n willCount = didCount = 0;\n willKeys = [];\n didKeys = [];\n\n originalLookup = _emberEnvironment.context.lookup;\n _emberEnvironment.context.lookup = {};\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n function addListeners(obj, keyPath) {\n (0, _emberMetal.addListener)(obj, keyPath + ':before', function () {\n willCount++;\n willKeys.push(keyPath);\n });\n (0, _emberMetal.addListener)(obj, keyPath + ':change', function () {\n didCount++;\n didKeys.push(keyPath);\n });\n }\n\n (0, _internalTestHelpers.testBoth)('watching a computed property', function (get, set) {\n var obj = {};\n (0, _emberMetal.defineProperty)(obj, 'foo', (0, _emberMetal.computed)({\n get: function () {\n return this.__foo;\n },\n set: function (keyName, value) {\n if (value !== undefined) {\n this.__foo = value;\n }\n return this.__foo;\n }\n }));\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n set(obj, 'foo', 'bar');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n });\n\n (0, _internalTestHelpers.testBoth)('watching a regular defined property', function (get, set) {\n var obj = { foo: 'baz' };\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n equal(get(obj, 'foo'), 'baz', 'should have original prop');\n\n set(obj, 'foo', 'bar');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n equal(get(obj, 'foo'), 'bar', 'should get new value');\n equal(obj.foo, 'bar', 'property should be accessible on obj');\n });\n\n (0, _internalTestHelpers.testBoth)('watching a regular undefined property', function (get, set) {\n var obj = {};\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n\n equal('foo' in obj, false, 'precond undefined');\n\n set(obj, 'foo', 'bar');\n\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n equal(get(obj, 'foo'), 'bar', 'should get new value');\n equal(obj.foo, 'bar', 'property should be accessible on obj');\n });\n\n (0, _internalTestHelpers.testBoth)('watches should inherit', function (get, set) {\n var obj = { foo: 'baz' };\n var objB = Object.create(obj);\n\n addListeners(obj, 'foo');\n (0, _emberMetal.watch)(obj, 'foo');\n equal(get(obj, 'foo'), 'baz', 'should have original prop');\n\n set(obj, 'foo', 'bar');\n set(objB, 'foo', 'baz');\n equal(willCount, 2, 'should have invoked willCount once only');\n equal(didCount, 2, 'should have invoked didCount once only');\n });\n\n QUnit.test('watching an object THEN defining it should work also', function () {\n var obj = {};\n addListeners(obj, 'foo');\n\n (0, _emberMetal.watch)(obj, 'foo');\n\n (0, _emberMetal.defineProperty)(obj, 'foo');\n (0, _emberMetal.set)(obj, 'foo', 'bar');\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'bar', 'should have set');\n equal(willCount, 1, 'should have invoked willChange once');\n equal(didCount, 1, 'should have invoked didChange once');\n });\n\n QUnit.test('watching a chain then defining the property', function () {\n var obj = {};\n var foo = { bar: 'bar' };\n addListeners(obj, 'foo.bar');\n addListeners(foo, 'bar');\n\n (0, _emberMetal.watch)(obj, 'foo.bar');\n\n (0, _emberMetal.defineProperty)(obj, 'foo', undefined, foo);\n (0, _emberMetal.set)(foo, 'bar', 'baz');\n\n deepEqual(willKeys, ['foo.bar', 'bar'], 'should have invoked willChange with bar, foo.bar');\n deepEqual(didKeys, ['foo.bar', 'bar'], 'should have invoked didChange with bar, foo.bar');\n equal(willCount, 2, 'should have invoked willChange twice');\n equal(didCount, 2, 'should have invoked didChange twice');\n });\n\n QUnit.test('watching a chain then defining the nested property', function () {\n var bar = {};\n var obj = { foo: bar };\n var baz = { baz: 'baz' };\n addListeners(obj, 'foo.bar.baz');\n addListeners(baz, 'baz');\n\n (0, _emberMetal.watch)(obj, 'foo.bar.baz');\n\n (0, _emberMetal.defineProperty)(bar, 'bar', undefined, baz);\n (0, _emberMetal.set)(baz, 'baz', 'BOO');\n\n deepEqual(willKeys, ['foo.bar.baz', 'baz'], 'should have invoked willChange with bar, foo.bar');\n deepEqual(didKeys, ['foo.bar.baz', 'baz'], 'should have invoked didChange with bar, foo.bar');\n equal(willCount, 2, 'should have invoked willChange twice');\n equal(didCount, 2, 'should have invoked didChange twice');\n });\n\n (0, _internalTestHelpers.testBoth)('watching an object value then unwatching should restore old value', function (get, set) {\n var obj = { foo: { bar: { baz: { biff: 'BIFF' } } } };\n addListeners(obj, 'foo.bar.baz.biff');\n\n (0, _emberMetal.watch)(obj, 'foo.bar.baz.biff');\n\n var foo = get(obj, 'foo');\n equal(get(get(get(foo, 'bar'), 'baz'), 'biff'), 'BIFF', 'biff should exist');\n\n (0, _emberMetal.unwatch)(obj, 'foo.bar.baz.biff');\n equal(get(get(get(foo, 'bar'), 'baz'), 'biff'), 'BIFF', 'biff should exist');\n });\n\n QUnit.test('when watching another object, destroy should remove chain watchers from the other object', function () {\n var objA = {};\n var objB = { foo: 'bar' };\n objA.b = objB;\n addListeners(objA, 'b.foo');\n\n (0, _emberMetal.watch)(objA, 'b.foo');\n\n var meta_objB = (0, _emberMetal.meta)(objB);\n var chainNode = (0, _emberMetal.meta)(objA).readableChains()._chains.b._chains.foo;\n\n equal(meta_objB.peekWatching('foo'), 1, 'should be watching foo');\n equal(meta_objB.readableChainWatchers().has('foo', chainNode), true, 'should have chain watcher');\n\n (0, _emberMetal.deleteMeta)(objA);\n\n equal(meta_objB.peekWatching('foo'), 0, 'should not be watching foo');\n equal(meta_objB.readableChainWatchers().has('foo', chainNode), false, 'should not have chain watcher');\n });\n\n // TESTS for length property\n\n (0, _internalTestHelpers.testBoth)('watching \"length\" property on an object', function (get, set) {\n var obj = { length: '26.2 miles' };\n addListeners(obj, 'length');\n\n (0, _emberMetal.watch)(obj, 'length');\n equal(get(obj, 'length'), '26.2 miles', 'should have original prop');\n\n set(obj, 'length', '10k');\n equal(willCount, 1, 'should have invoked willCount');\n equal(didCount, 1, 'should have invoked didCount');\n\n equal(get(obj, 'length'), '10k', 'should get new value');\n equal(obj.length, '10k', 'property should be accessible on obj');\n });\n\n (0, _internalTestHelpers.testBoth)('watching \"length\" property on an array', function (get, set) {\n var arr = [];\n addListeners(arr, 'length');\n\n (0, _emberMetal.watch)(arr, 'length');\n equal(get(arr, 'length'), 0, 'should have original prop');\n\n set(arr, 'length', '10');\n equal(willCount, 1, 'should NOT have invoked willCount');\n equal(didCount, 1, 'should NOT have invoked didCount');\n\n equal(get(arr, 'length'), 10, 'should get new value');\n equal(arr.length, 10, 'property should be accessible on arr');\n });\n\n (0, _internalTestHelpers.testBoth)('watch + ES5 getter', function (get) {\n var parent = { b: 1 };\n var child = {\n get b() {\n return parent.b;\n }\n };\n\n equal(parent.b, 1, 'parent.b should be 1');\n equal(child.b, 1, 'child.b should be 1');\n equal(get(child, 'b'), 1, 'Ember.get(child, \"b\") should be 1');\n\n (0, _emberMetal.watch)(child, 'b');\n\n equal(parent.b, 1, 'parent.b should be 1 (after watch)');\n equal(child.b, 1, 'child.b should be 1 (after watch)');\n\n equal(get(child, 'b'), 1, 'Ember.get(child, \"b\") should be 1 (after watch)');\n });\n\n (0, _internalTestHelpers.testBoth)('watch + Ember.set + no-descriptor', function (get, set) {\n var child = {};\n\n equal(child.b, undefined, 'child.b ');\n equal(get(child, 'b'), undefined, 'Ember.get(child, \"b\")');\n\n (0, _emberMetal.watch)(child, 'b');\n set(child, 'b', 1);\n\n equal(child.b, 1, 'child.b (after watch)');\n equal(get(child, 'b'), 1, 'Ember.get(child, \"b\") (after watch)');\n });\n});","QUnit.module('ESLint | ember-metal/tests/watching/watch_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/watching/watch_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-metal/tests/weak_map_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.WeakMap');\n\n QUnit.test('has weakMap like qualities', function (assert) {\n var map = new _emberMetal.WeakMapPolyfill();\n var map2 = new _emberMetal.WeakMapPolyfill();\n\n var a = {};\n var b = {};\n var c = {};\n\n assert.strictEqual(map.get(a), undefined);\n assert.strictEqual(map.get(b), undefined);\n assert.strictEqual(map.get(c), undefined);\n\n assert.strictEqual(map2.get(a), undefined);\n assert.strictEqual(map2.get(b), undefined);\n assert.strictEqual(map2.get(c), undefined);\n\n assert.strictEqual(map.set(a, 1), map, 'map.set should return itself');\n assert.strictEqual(map.get(a), 1);\n assert.strictEqual(map.set(b, undefined), map);\n assert.strictEqual(map.set(a, 2), map);\n assert.strictEqual(map.get(a), 2);\n assert.strictEqual(map.set(b, undefined), map);\n\n assert.strictEqual(map2.get(a), undefined);\n assert.strictEqual(map2.get(b), undefined);\n assert.strictEqual(map2.get(c), undefined);\n\n assert.strictEqual(map.set(c, 1), map);\n assert.strictEqual(map.get(c), 1);\n assert.strictEqual(map.get(a), 2);\n assert.strictEqual(map.get(b), undefined);\n\n assert.strictEqual(map2.set(a, 3), map2);\n assert.strictEqual(map2.set(b, 4), map2);\n assert.strictEqual(map2.set(c, 5), map2);\n\n assert.strictEqual(map2.get(a), 3);\n assert.strictEqual(map2.get(b), 4);\n assert.strictEqual(map2.get(c), 5);\n\n assert.strictEqual(map.get(c), 1);\n assert.strictEqual(map.get(a), 2);\n assert.strictEqual(map.get(b), undefined);\n });\n\n QUnit.test('constructing a WeakMap with an invalid iterator throws an error', function (assert) {\n var expectedError = new TypeError('The weak map constructor polyfill only supports an array argument');\n\n assert.throws(function () {\n new _emberMetal.WeakMapPolyfill({ a: 1 });\n }, expectedError);\n });\n\n QUnit.test('constructing a WeakMap with a valid iterator inserts the entries', function (assert) {\n var a = {};\n var b = {};\n var c = {};\n\n var map = new _emberMetal.WeakMapPolyfill([[a, 1], [b, 2], [c, 3]]);\n\n assert.strictEqual(map.get(a), 1);\n assert.strictEqual(map.get(b), 2);\n assert.strictEqual(map.get(c), 3);\n });\n\n QUnit.test('that error is thrown when using a primitive key', function (assert) {\n var expectedError = new TypeError('Invalid value used as weak map key');\n var map = new _emberMetal.WeakMapPolyfill();\n\n assert.throws(function () {\n return map.set('a', 1);\n }, expectedError);\n assert.throws(function () {\n return map.set(1, 1);\n }, expectedError);\n assert.throws(function () {\n return map.set(true, 1);\n }, expectedError);\n assert.throws(function () {\n return map.set(null, 1);\n }, expectedError);\n assert.throws(function () {\n return map.set(undefined, 1);\n }, expectedError);\n });\n\n QUnit.test('that .has and .delete work as expected', function (assert) {\n var map = new _emberMetal.WeakMapPolyfill();\n var a = {};\n var b = {};\n var foo = { id: 1, name: 'My file', progress: 0 };\n\n assert.strictEqual(map.set(a, foo), map);\n assert.strictEqual(map.get(a), foo);\n assert.strictEqual(map.has(a), true);\n assert.strictEqual(map.has(b), false);\n assert.strictEqual(map.delete(a), true);\n assert.strictEqual(map.has(a), false);\n assert.strictEqual(map.delete(a), false);\n assert.strictEqual(map.set(a, undefined), map);\n assert.strictEqual(map.has(a), true);\n assert.strictEqual(map.delete(a), true);\n assert.strictEqual(map.delete(a), false);\n assert.strictEqual(map.has(a), false);\n });\n\n QUnit.test('that .toString works as expected', function (assert) {\n var map = new _emberMetal.WeakMapPolyfill();\n\n assert.strictEqual(map.toString(), '[object WeakMap]');\n });\n});","QUnit.module('ESLint | ember-metal/tests/weak_map_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-metal/tests/weak_map_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/ext/controller.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/ext/controller.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/ext/run_loop.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/ext/run_loop.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/api.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/api.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/auto_location.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/auto_location.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/hash_location.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/hash_location.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/history_location.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/history_location.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/none_location.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/none_location.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/location/util.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/location/util.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/services/router.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/services/router.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/services/routing.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/services/routing.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/cache.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/cache.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/controller_for.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/controller_for.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/dsl.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/dsl.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/generate_controller.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/generate_controller.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/query_params.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/query_params.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/route.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/route.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/router.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/router.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/system/router_state.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/system/router_state.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-routing/lib/utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/lib/utils.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/ext/controller_test', ['ember-utils', 'internal-test-helpers', 'ember-runtime'], function (_emberUtils, _internalTestHelpers, _emberRuntime) {\n 'use strict';\n\n QUnit.module('ember-routing/ext/controller');\n\n QUnit.test('transitionToRoute considers an engine\\'s mountPoint', function () {\n expect(4);\n\n var router = {\n transitionTo: function (route) {\n return route;\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n var controller = _emberRuntime.Controller.create({ target: router });\n (0, _emberUtils.setOwner)(controller, engineInstance);\n\n strictEqual(controller.transitionToRoute('application'), 'foo.bar.application', 'properly prefixes application route');\n strictEqual(controller.transitionToRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n throws(function () {\n return controller.transitionToRoute('/posts');\n }, 'throws when trying to use a url');\n\n var queryParams = {};\n strictEqual(controller.transitionToRoute(queryParams), queryParams, 'passes query param only transitions through');\n });\n\n QUnit.test('replaceRoute considers an engine\\'s mountPoint', function () {\n expect(4);\n\n var router = {\n replaceWith: function (route) {\n return route;\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n var controller = _emberRuntime.Controller.create({ target: router });\n (0, _emberUtils.setOwner)(controller, engineInstance);\n\n strictEqual(controller.replaceRoute('application'), 'foo.bar.application', 'properly prefixes application route');\n strictEqual(controller.replaceRoute('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n throws(function () {\n return controller.replaceRoute('/posts');\n }, 'throws when trying to use a url');\n\n var queryParams = {};\n strictEqual(controller.replaceRoute(queryParams), queryParams, 'passes query param only transitions through');\n });\n});","QUnit.module('ESLint | ember-routing/tests/ext/controller_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/ext/controller_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/location/auto_location_test', ['ember-utils', 'ember-environment', 'ember-metal', 'ember-routing/location/auto_location', 'ember-routing/location/history_location', 'ember-routing/location/hash_location', 'ember-routing/location/none_location', 'internal-test-helpers'], function (_emberUtils, _emberEnvironment, _emberMetal, _auto_location, _history_location, _hash_location, _none_location, _internalTestHelpers) {\n 'use strict';\n\n function mockBrowserLocation(overrides) {\n return (0, _emberUtils.assign)({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n replace: function () {\n ok(false, 'location.replace should not be called during testing');\n }\n }, overrides);\n }\n\n function mockBrowserHistory(overrides) {\n return (0, _emberUtils.assign)({\n pushState: function () {\n ok(false, 'history.pushState should not be called during testing');\n },\n replaceState: function () {\n ok(false, 'history.replaceState should not be called during testing');\n }\n }, overrides);\n }\n\n function createLocation(location, history) {\n var _AutoLocation$create;\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n owner.register('location:history', _history_location.default);\n owner.register('location:hash', _hash_location.default);\n owner.register('location:none', _none_location.default);\n\n var autolocation = _auto_location.default.create((_AutoLocation$create = {}, _AutoLocation$create[_emberUtils.OWNER] = owner, _AutoLocation$create.location = location, _AutoLocation$create.history = history, _AutoLocation$create.global = {}, _AutoLocation$create));\n\n return autolocation;\n }\n\n var location = void 0;\n\n QUnit.module('Ember.AutoLocation', {\n teardown: function () {\n if (location) {\n (0, _emberMetal.run)(location, 'destroy');\n }\n }\n });\n\n QUnit.test('AutoLocation should have the `global`', function (assert) {\n var location = _auto_location.default.create();\n\n assert.ok(location.global, 'has a global defined');\n assert.strictEqual(location.global, _emberEnvironment.environment.window, 'has the environments window global');\n });\n\n QUnit.test('AutoLocation should return concrete implementation\\'s value for `getURL`', function () {\n expect(1);\n\n var browserLocation = mockBrowserLocation();\n var browserHistory = mockBrowserHistory();\n\n location = createLocation(browserLocation, browserHistory);\n location.detect();\n\n var concreteImplementation = (0, _emberMetal.get)(location, 'concreteImplementation');\n\n concreteImplementation.getURL = function () {\n return '/lincoln/park';\n };\n\n equal(location.getURL(), '/lincoln/park');\n });\n\n QUnit.test('AutoLocation should use a HistoryLocation instance when pushStates is supported', function () {\n expect(1);\n\n var browserLocation = mockBrowserLocation();\n var browserHistory = mockBrowserHistory();\n\n location = createLocation(browserLocation, browserHistory);\n location.detect();\n\n ok((0, _emberMetal.get)(location, 'concreteImplementation') instanceof _history_location.default);\n });\n\n QUnit.test('AutoLocation should use a HashLocation instance when pushStates are not supported, but hashchange events are and the URL is already in the HashLocation format', function () {\n expect(1);\n\n var browserLocation = mockBrowserLocation({\n hash: '#/testd'\n });\n\n location = createLocation(browserLocation);\n location.global = {\n onhashchange: function () {}\n };\n\n location.detect();\n ok((0, _emberMetal.get)(location, 'concreteImplementation') instanceof _hash_location.default);\n });\n\n QUnit.test('AutoLocation should use a NoneLocation instance when neither history nor hashchange are supported.', function () {\n expect(1);\n\n location = createLocation(mockBrowserLocation());\n location.detect();\n\n ok((0, _emberMetal.get)(location, 'concreteImplementation') instanceof _none_location.default);\n });\n\n QUnit.test('AutoLocation should use an index path (i.e. \\'/\\') without any location.hash as OK for HashLocation', function () {\n expect(1);\n\n var browserLocation = mockBrowserLocation({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n replace: function (path) {\n ok(false, 'location.replace should not be called');\n }\n });\n\n location = createLocation(browserLocation);\n location.global = {\n onhashchange: function () {}\n };\n\n location.detect();\n\n ok((0, _emberMetal.get)(location, 'concreteImplementation') instanceof _hash_location.default, 'uses a HashLocation');\n });\n\n QUnit.test('AutoLocation should transform the URL for hashchange-only browsers viewing a HistoryLocation-formatted path', function () {\n expect(3);\n\n var browserLocation = mockBrowserLocation({\n hash: '',\n hostname: 'test.com',\n href: 'http://test.com/test',\n pathname: '/test',\n protocol: 'http:',\n port: '',\n search: '',\n\n replace: function (path) {\n equal(path, 'http://test.com/#/test', 'location.replace should be called with normalized HashLocation path');\n }\n });\n\n var location = createLocation(browserLocation);\n location.global = {\n onhashchange: function () {}\n };\n\n location.detect();\n\n ok((0, _emberMetal.get)(location, 'concreteImplementation') instanceof _none_location.default, 'NoneLocation should be used while we attempt to location.replace()');\n equal((0, _emberMetal.get)(location, 'cancelRouterSetup'), true, 'cancelRouterSetup should be set so the router knows.');\n });\n\n QUnit.test('AutoLocation should replace the URL for pushState-supported browsers viewing a HashLocation-formatted url', function () {\n expect(2);\n\n var browserLocation = mockBrowserLocation({\n hash: '#/test',\n hostname: 'test.com',\n href: 'http://test.com/#/test',\n pathname: '/',\n protocol: 'http:',\n port: '',\n search: ''\n });\n\n var browserHistory = mockBrowserHistory({\n replaceState: function (state, title, path) {\n equal(path, '/test', 'history.replaceState should be called with normalized HistoryLocation url');\n }\n });\n\n var location = createLocation(browserLocation, browserHistory);\n location.detect();\n\n ok((0, _emberMetal.get)(location, 'concreteImplementation'), _history_location.default);\n });\n\n QUnit.test('AutoLocation requires any rootURL given to end in a trailing forward slash', function () {\n expect(3);\n var browserLocation = mockBrowserLocation();\n var expectedMsg = /rootURL must end with a trailing forward slash e.g. \"\\/app\\/\"/;\n\n location = createLocation(browserLocation);\n location.rootURL = 'app';\n\n expectAssertion(function () {\n location.detect();\n }, expectedMsg);\n\n location.rootURL = '/app';\n expectAssertion(function () {\n location.detect();\n }, expectedMsg);\n\n // Note the trailing whitespace\n location.rootURL = '/app/ ';\n expectAssertion(function () {\n location.detect();\n }, expectedMsg);\n });\n\n QUnit.test('AutoLocation provides its rootURL to the concreteImplementation', function () {\n expect(1);\n var browserLocation = mockBrowserLocation({\n pathname: '/some/subdir/derp'\n });\n var browserHistory = mockBrowserHistory();\n\n location = createLocation(browserLocation, browserHistory);\n location.rootURL = '/some/subdir/';\n\n location.detect();\n\n var concreteLocation = (0, _emberMetal.get)(location, 'concreteImplementation');\n equal(location.rootURL, concreteLocation.rootURL);\n });\n\n QUnit.test('getHistoryPath() should return a normalized, HistoryLocation-supported path', function () {\n expect(3);\n\n var browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/about?foo=bar#foo',\n pathname: '/app/about',\n search: '?foo=bar',\n hash: '#foo'\n });\n\n equal((0, _auto_location.getHistoryPath)('/app/', browserLocation), '/app/about?foo=bar#foo', 'URLs already in HistoryLocation form should come out the same');\n\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#/about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#/about?foo=bar#foo'\n });\n equal((0, _auto_location.getHistoryPath)('/app/', browserLocation), '/app/about?foo=bar#foo', 'HashLocation formed URLs should be normalized');\n\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#about?foo=bar#foo'\n });\n equal((0, _auto_location.getHistoryPath)('/app', browserLocation), '/app/#about?foo=bar#foo', 'URLs with a hash not following #/ convention shouldn\\'t be normalized as a route');\n });\n\n QUnit.test('getHashPath() should return a normalized, HashLocation-supported path', function () {\n expect(3);\n\n var browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#/about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#/about?foo=bar#foo'\n });\n equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/about?foo=bar#foo', 'URLs already in HistoryLocation form should come out the same');\n\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/about?foo=bar#foo',\n pathname: '/app/about',\n search: '?foo=bar',\n hash: '#foo'\n });\n equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/about?foo=bar#foo', 'HistoryLocation formed URLs should be normalized');\n\n browserLocation = mockBrowserLocation({\n href: 'http://test.com/app/#about?foo=bar#foo',\n pathname: '/app/',\n search: '',\n hash: '#about?foo=bar#foo'\n });\n\n equal((0, _auto_location.getHashPath)('/app/', browserLocation), '/app/#/#about?foo=bar#foo', 'URLs with a hash not following #/ convention shouldn\\'t be normalized as a route');\n });\n});","QUnit.module('ESLint | ember-routing/tests/location/auto_location_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/location/auto_location_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/location/hash_location_test', ['ember-metal', 'ember-routing/location/hash_location'], function (_emberMetal, _hash_location) {\n 'use strict';\n\n var HashTestLocation = void 0,\n location = void 0;\n\n function createLocation(options) {\n if (!options) {\n options = {};\n }\n location = HashTestLocation.create(options);\n }\n\n function mockBrowserLocation(path) {\n // This is a neat trick to auto-magically extract the hostname from any\n // url by letting the browser do the work ;)\n var tmp = document.createElement('a');\n tmp.href = path;\n\n var protocol = !tmp.protocol || tmp.protocol === ':' ? 'http' : tmp.protocol;\n var pathname = tmp.pathname.match(/^\\//) ? tmp.pathname : '/' + tmp.pathname;\n\n return {\n hash: tmp.hash,\n host: tmp.host || 'localhost',\n hostname: tmp.hostname || 'localhost',\n href: tmp.href,\n pathname: pathname,\n port: tmp.port || '',\n protocol: protocol,\n search: tmp.search\n };\n }\n\n function triggerHashchange() {\n var event = document.createEvent('HTMLEvents');\n event.initEvent('hashchange', true, false);\n window.dispatchEvent(event);\n }\n\n QUnit.module('Ember.HashLocation', {\n setup: function () {\n HashTestLocation = _hash_location.default.extend({\n _location: {\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n replace: function () {\n ok(false, 'location.replace should not be called during testing');\n }\n }\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n if (location) {\n location.destroy();\n }\n });\n }\n });\n\n QUnit.test('HashLocation.getURL() returns the current url', function () {\n expect(1);\n\n createLocation({\n _location: mockBrowserLocation('/#/foo/bar')\n });\n\n equal(location.getURL(), '/foo/bar');\n });\n\n QUnit.test('HashLocation.getURL() includes extra hashes', function () {\n expect(1);\n\n createLocation({\n _location: mockBrowserLocation('/#/foo#bar#car')\n });\n\n equal(location.getURL(), '/foo#bar#car');\n });\n\n QUnit.test('HashLocation.getURL() assumes location.hash without #/ prefix is not a route path', function () {\n expect(1);\n\n createLocation({\n _location: mockBrowserLocation('/#foo#bar')\n });\n\n equal(location.getURL(), '/#foo#bar');\n });\n\n QUnit.test('HashLocation.getURL() returns a normal forward slash when there is no location.hash', function () {\n expect(1);\n\n createLocation({\n _location: mockBrowserLocation('/')\n });\n\n equal(location.getURL(), '/');\n });\n\n QUnit.test('HashLocation.setURL() correctly sets the url', function () {\n expect(2);\n\n createLocation();\n\n location.setURL('/bar');\n\n equal((0, _emberMetal.get)(location, 'location.hash'), '/bar');\n equal((0, _emberMetal.get)(location, 'lastSetURL'), '/bar');\n });\n\n QUnit.test('HashLocation.replaceURL() correctly replaces to the path with a page reload', function () {\n expect(2);\n\n createLocation({\n _location: {\n replace: function (path) {\n equal(path, '#/foo');\n }\n }\n });\n\n location.replaceURL('/foo');\n\n equal((0, _emberMetal.get)(location, 'lastSetURL'), '/foo');\n });\n\n QUnit.test('HashLocation.onUpdateURL callback executes as expected', function () {\n expect(1);\n\n createLocation({\n _location: mockBrowserLocation('/#/foo/bar')\n });\n\n var callback = function (param) {\n equal(param, '/foo/bar', 'path is passed as param');\n };\n\n location.onUpdateURL(callback);\n\n triggerHashchange();\n });\n\n QUnit.test('HashLocation.onUpdateURL doesn\\'t execute callback if lastSetURL === path', function () {\n expect(0);\n\n createLocation({\n _location: {\n href: '/#/foo/bar'\n },\n lastSetURL: '/foo/bar'\n });\n\n var callback = function (param) {\n ok(false, 'callback should not be called');\n };\n\n location.onUpdateURL(callback);\n\n triggerHashchange();\n });\n\n QUnit.test('HashLocation.formatURL() prepends a # to the provided string', function () {\n expect(1);\n\n createLocation();\n\n equal(location.formatURL('/foo#bar'), '#/foo#bar');\n });\n\n QUnit.test('HashLocation.willDestroy() cleans up hashchange event listener', function () {\n expect(1);\n\n createLocation();\n\n var callback = function (param) {\n ok(true, 'should invoke callback once');\n };\n\n location.onUpdateURL(callback);\n\n triggerHashchange();\n\n (0, _emberMetal.run)(location, 'destroy');\n location = null;\n\n triggerHashchange();\n });\n});","QUnit.module('ESLint | ember-routing/tests/location/hash_location_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/location/hash_location_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/location/history_location_test', ['ember-metal', 'ember-routing/location/history_location'], function (_emberMetal, _history_location) {\n 'use strict';\n\n var FakeHistory = void 0,\n HistoryTestLocation = void 0,\n location = void 0;\n\n function createLocation(options) {\n if (!options) {\n options = {};\n }\n location = HistoryTestLocation.create(options);\n }\n\n function mockBrowserLocation(path) {\n // This is a neat trick to auto-magically extract the hostname from any\n // url by letting the browser do the work ;)\n var tmp = document.createElement('a');\n tmp.href = path;\n\n var protocol = !tmp.protocol || tmp.protocol === ':' ? 'http' : tmp.protocol;\n var pathname = tmp.pathname.match(/^\\//) ? tmp.pathname : '/' + tmp.pathname;\n\n return {\n hash: tmp.hash,\n host: tmp.host || 'localhost',\n hostname: tmp.hostname || 'localhost',\n href: tmp.href,\n pathname: pathname,\n port: tmp.port || '',\n protocol: protocol,\n search: tmp.search\n };\n }\n\n QUnit.module('Ember.HistoryLocation', {\n setup: function () {\n FakeHistory = {\n state: null,\n _states: [],\n replaceState: function (state, title, url) {\n this.state = state;\n this._states[0] = state;\n },\n pushState: function (state, title, url) {\n this.state = state;\n this._states.unshift(state);\n }\n };\n\n HistoryTestLocation = _history_location.default.extend({\n history: FakeHistory\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n if (location) {\n location.destroy();\n }\n });\n }\n });\n\n QUnit.test('HistoryLocation initState does not get fired on init', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n ok(true, 'init was called');\n this._super.apply(this, arguments);\n },\n initState: function () {\n ok(false, 'initState() should not be called automatically');\n }\n });\n\n createLocation();\n });\n\n QUnit.test('webkit doesn\\'t fire popstate on page load', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n initState: function () {\n this._super.apply(this, arguments);\n // these two should be equal to be able\n // to successfully detect webkit initial popstate\n equal(this._previousURL, this.getURL());\n }\n });\n\n createLocation();\n location.initState();\n });\n\n QUnit.test('base URL is removed when retrieving the current pathname', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _emberMetal.set)(this, 'baseURL', '/base/');\n },\n initState: function () {\n this._super.apply(this, arguments);\n\n equal(this.getURL(), '/foo/bar');\n }\n });\n\n createLocation();\n location.initState();\n });\n\n QUnit.test('base URL is preserved when moving around', function () {\n expect(2);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _emberMetal.set)(this, 'baseURL', '/base/');\n }\n });\n\n createLocation();\n location.initState();\n location.setURL('/one/two');\n\n equal(location._historyState.path, '/base/one/two');\n ok(location._historyState.uuid);\n });\n\n QUnit.test('setURL continues to set even with a null state (iframes may set this)', function () {\n expect(2);\n\n createLocation();\n location.initState();\n\n FakeHistory.pushState(null);\n location.setURL('/three/four');\n\n equal(location._historyState.path, '/three/four');\n ok(location._historyState.uuid);\n });\n\n QUnit.test('replaceURL continues to set even with a null state (iframes may set this)', function () {\n expect(2);\n\n createLocation();\n location.initState();\n\n FakeHistory.pushState(null);\n location.replaceURL('/three/four');\n\n equal(location._historyState.path, '/three/four');\n ok(location._historyState.uuid);\n });\n\n QUnit.test('HistoryLocation.getURL() returns the current url, excluding both rootURL and baseURL', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/base/foo/bar'));\n (0, _emberMetal.set)(this, 'rootURL', '/app/');\n (0, _emberMetal.set)(this, 'baseURL', '/base/');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar');\n });\n\n QUnit.test('HistoryLocation.getURL() returns the current url, does not remove rootURL if its not at start of url', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/foo/bar/baz'));\n (0, _emberMetal.set)(this, 'rootURL', '/bar/');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar/baz');\n });\n\n QUnit.test('HistoryLocation.getURL() will not remove the rootURL when only a partial match', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/bars/baz'));\n (0, _emberMetal.set)(this, 'rootURL', '/bar/');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/bars/baz');\n });\n\n QUnit.test('HistoryLocation.getURL() returns the current url, does not remove baseURL if its not at start of url', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/foo/bar/baz'));\n (0, _emberMetal.set)(this, 'baseURL', '/bar/');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar/baz');\n });\n\n QUnit.test('HistoryLocation.getURL() will not remove the baseURL when only a partial match', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/bars/baz'));\n (0, _emberMetal.set)(this, 'baseURL', '/bar/');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/bars/baz');\n });\n\n QUnit.test('HistoryLocation.getURL() includes location.search', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/foo/bar?time=morphin'));\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar?time=morphin');\n });\n\n QUnit.test('HistoryLocation.getURL() includes location.hash', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/foo/bar#pink-power-ranger'));\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar#pink-power-ranger');\n });\n\n QUnit.test('HistoryLocation.getURL() includes location.hash and location.search', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'location', mockBrowserLocation('/foo/bar?time=morphin#pink-power-ranger'));\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar?time=morphin#pink-power-ranger');\n });\n\n QUnit.test('HistoryLocation.getURL() drops duplicate slashes', function () {\n expect(1);\n\n HistoryTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n var location = mockBrowserLocation('//');\n location.pathname = '//'; // mockBrowserLocation does not allow for `//`, so force it\n (0, _emberMetal.set)(this, 'location', location);\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/');\n });\n});","QUnit.module('ESLint | ember-routing/tests/location/history_location_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/location/history_location_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/location/none_location_test', ['ember-metal', 'ember-routing/location/none_location'], function (_emberMetal, _none_location) {\n 'use strict';\n\n var NoneTestLocation = void 0,\n location = void 0;\n\n function createLocation(options) {\n if (!options) {\n options = {};\n }\n location = NoneTestLocation.create(options);\n }\n\n QUnit.module('Ember.NoneLocation', {\n setup: function () {\n NoneTestLocation = _none_location.default.extend({});\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n if (location) {\n location.destroy();\n }\n });\n }\n });\n\n QUnit.test('NoneLocation.formatURL() returns the current url always appending rootURL', function () {\n expect(1);\n\n NoneTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'rootURL', '/en/');\n }\n });\n\n createLocation();\n\n equal(location.formatURL('/foo/bar'), '/en/foo/bar');\n });\n\n QUnit.test('NoneLocation.getURL() returns the current path minus rootURL', function () {\n expect(1);\n\n NoneTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'rootURL', '/foo/');\n (0, _emberMetal.set)(this, 'path', '/foo/bar');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/bar');\n });\n\n QUnit.test('NoneLocation.getURL() will remove the rootURL only from the beginning of a url', function () {\n expect(1);\n\n NoneTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'rootURL', '/bar/');\n (0, _emberMetal.set)(this, 'path', '/foo/bar/baz');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/foo/bar/baz');\n });\n\n QUnit.test('NoneLocation.getURL() will not remove the rootURL when only a partial match', function () {\n expect(1);\n\n NoneTestLocation.reopen({\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'rootURL', '/bar/');\n (0, _emberMetal.set)(this, 'path', '/bars/baz');\n }\n });\n\n createLocation();\n\n equal(location.getURL(), '/bars/baz');\n });\n});","QUnit.module('ESLint | ember-routing/tests/location/none_location_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/location/none_location_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/location/util_test', ['ember-utils', 'ember-routing/location/util'], function (_emberUtils, _util) {\n 'use strict';\n\n function mockBrowserLocation(overrides) {\n return (0, _emberUtils.assign)({\n href: 'http://test.com/',\n pathname: '/',\n hash: '',\n search: '',\n replace: function () {\n ok(false, 'location.replace should not be called during testing');\n }\n }, overrides);\n }\n\n QUnit.module('Location Utilities');\n\n QUnit.test('replacePath cannot be used to redirect to a different origin', function () {\n expect(1);\n\n var expectedURL = void 0;\n\n var location = {\n protocol: 'http:',\n hostname: 'emberjs.com',\n port: '1337',\n\n replace: function (url) {\n equal(url, expectedURL);\n }\n };\n\n expectedURL = 'http://emberjs.com:1337//google.com';\n (0, _util.replacePath)(location, '//google.com');\n });\n\n QUnit.test('getPath() should normalize location.pathname, making sure it always returns a leading slash', function () {\n expect(2);\n\n var location = mockBrowserLocation({ pathname: 'test' });\n equal((0, _util.getPath)(location), '/test', 'When there is no leading slash, one is added.');\n\n location = mockBrowserLocation({ pathname: '/test' });\n equal((0, _util.getPath)(location), '/test', 'When a leading slash is already there, it isn\\'t added again');\n });\n\n QUnit.test('getQuery() should return location.search as-is', function () {\n expect(1);\n\n var location = mockBrowserLocation({ search: '?foo=bar' });\n equal((0, _util.getQuery)(location), '?foo=bar');\n });\n\n QUnit.test('getFullPath() should return full pathname including query and hash', function () {\n expect(1);\n\n var location = mockBrowserLocation({\n href: 'http://test.com/about?foo=bar#foo',\n pathname: '/about',\n search: '?foo=bar',\n hash: '#foo'\n });\n\n equal((0, _util.getFullPath)(location), '/about?foo=bar#foo');\n });\n\n QUnit.test('Feature-Detecting onhashchange', function () {\n equal((0, _util.supportsHashChange)(undefined, {\n onhashchange: function () {}\n }), true, 'When not in IE, use onhashchange existence as evidence of the feature');\n equal((0, _util.supportsHashChange)(undefined, {}), false, 'When not in IE, use onhashchange absence as evidence of the feature absence');\n equal((0, _util.supportsHashChange)(7, {\n onhashchange: function () {}\n }), false, 'When in IE7 compatibility mode, never report existence of the feature');\n equal((0, _util.supportsHashChange)(8, {\n onhashchange: function () {}\n }), true, 'When in IE8+, use onhashchange existence as evidence of the feature');\n });\n\n QUnit.test(\"Feature-detecting the history API\", function () {\n equal((0, _util.supportsHistory)(\"\", { pushState: true }), true, \"returns true if not Android Gingerbread and history.pushState exists\");\n equal((0, _util.supportsHistory)(\"\", {}), false, \"returns false if history.pushState doesn't exist\");\n equal((0, _util.supportsHistory)(\"\", undefined), false, \"returns false if history doesn't exist\");\n\n equal((0, _util.supportsHistory)(\"Mozilla/5.0 (Linux; U; Android 2.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1\", { pushState: true }), false, \"returns false if Android 2.x stock browser (not Chrome) claiming to support pushState\");\n\n equal((0, _util.supportsHistory)(\"Mozilla/5.0 (Linux; U; Android 4.0.3; nl-nl; GT-N7000 Build/IML74K) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30\", { pushState: true }), false, \"returns false for Android 4.0.x stock browser (not Chrome) claiming to support pushState\");\n\n equal((0, _util.supportsHistory)(\"Mozilla/5.0 (Linux; U; Android 20.3.5; en-us; HTC Vision Build/GRI40) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1\", { pushState: true }), true, \"returns true if Android version begins with 2, but is greater than 2\");\n\n equal((0, _util.supportsHistory)(\"Mozilla/5.0 (Linux; Android 4.0.4; Galaxy Nexus Build/IMM76B) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.133 Mobile Safari/535.19\", { pushState: true }), true, \"returns true for Chrome (not stock browser) on Android 4.0.x\");\n\n // Windows Phone UA and History API: https://github.com/Modernizr/Modernizr/issues/1471\n equal((0, _util.supportsHistory)(\"Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; Microsoft; Virtual) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537\", { pushState: true }), true, \"returns true for Windows Phone 8.1 with misleading user agent string\");\n });\n});","QUnit.module('ESLint | ember-routing/tests/location/util_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/location/util_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/system/cache_test', ['ember-routing/system/cache'], function (_cache) {\n 'use strict';\n\n QUnit.module('BucketCache', {\n setup: function () {\n this.cache = _cache.default.create();\n }\n });\n\n QUnit.test('has - returns false when bucket is not in cache', function (assert) {\n assert.strictEqual(this.cache.has('foo'), false);\n assert.strictEqual(this.cache.has('constructor'), false);\n });\n\n QUnit.test('has - returns true when bucket is in cache', function (assert) {\n var token = {};\n\n this.cache.stash('foo', 'bar', token);\n this.cache.stash('constructor', 'bar', token);\n\n assert.strictEqual(this.cache.has('foo'), true);\n assert.strictEqual(this.cache.has('constructor'), true);\n });\n\n QUnit.test('lookup - returns stashed value if key does exist in bucket', function (assert) {\n var token = {};\n var defaultValue = {};\n\n this.cache.stash('foo', 'bar', token);\n\n assert.strictEqual(this.cache.lookup('foo', 'bar', defaultValue), token);\n });\n\n QUnit.test('lookup - returns default value if key does not exist in bucket', function (assert) {\n var token = {};\n var defaultValue = {};\n\n this.cache.stash('foo', 'bar', token);\n\n assert.strictEqual(this.cache.lookup('foo', 'boo', defaultValue), defaultValue);\n assert.strictEqual(this.cache.lookup('foo', 'constructor', defaultValue), defaultValue);\n });\n\n QUnit.test('lookup - returns default value if bucket does not exist', function (assert) {\n var defaultValue = {};\n\n assert.strictEqual(this.cache.lookup('boo', 'bar', defaultValue), defaultValue);\n assert.strictEqual(this.cache.lookup('constructor', 'bar', defaultValue), defaultValue);\n });\n});","QUnit.module('ESLint | ember-routing/tests/system/cache_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/system/cache_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/system/controller_for_test', ['ember-babel', 'ember-runtime', 'ember-routing/system/controller_for', 'ember-routing/system/generate_controller', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _controller_for, _generate_controller, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Ember.controllerFor', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test controllerFor should lookup for registered controllers'] = function testControllerForShouldLookupForRegisteredControllers(assert) {\n var _this2 = this;\n\n this.add('controller:app', _emberRuntime.Controller.extend());\n\n return this.visit('/').then(function () {\n var appInstance = _this2.applicationInstance;\n var appController = appInstance.lookup('controller:app');\n var controller = (0, _controller_for.default)(appInstance, 'app');\n assert.equal(appController, controller, 'should find app controller');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Ember.generateController', function (_ApplicationTestCase2) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTestCase2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase2.apply(this, arguments));\n }\n\n _class2.prototype['@test generateController should return Ember.Controller'] = function testGenerateControllerShouldReturnEmberController(assert) {\n var _this4 = this;\n\n return this.visit('/').then(function () {\n var controller = (0, _generate_controller.default)(_this4.applicationInstance, 'home');\n assert.ok(controller instanceof _emberRuntime.Controller, 'should return controller');\n });\n };\n\n _class2.prototype['@test generateController should return controller:basic if resolved'] = function testGenerateControllerShouldReturnControllerBasicIfResolved(assert) {\n var _this5 = this;\n\n var BasicController = _emberRuntime.Controller.extend();\n this.add('controller:basic', BasicController);\n\n return this.visit('/').then(function () {\n var controller = (0, _generate_controller.default)(_this5.applicationInstance, 'home');\n assert.ok(controller instanceof BasicController, 'should return controller');\n });\n };\n\n _class2.prototype['@test generateController should return controller:basic if registered'] = function testGenerateControllerShouldReturnControllerBasicIfRegistered(assert) {\n var _this6 = this;\n\n var BasicController = _emberRuntime.Controller.extend();\n this.application.register('controller:basic', BasicController);\n\n return this.visit('/').then(function () {\n var controller = (0, _generate_controller.default)(_this6.applicationInstance, 'home');\n\n assert.ok(controller instanceof BasicController, 'should return base class of controller');\n });\n };\n\n return _class2;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember-routing/tests/system/controller_for_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/system/controller_for_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/system/dsl_test', ['ember-utils', 'ember-routing/system/router', 'internal-test-helpers'], function (_emberUtils, _router, _internalTestHelpers) {\n 'use strict';\n\n var Router = void 0;\n\n function setup() {\n Router = _router.default.extend();\n }\n\n function teardown() {\n Router = null;\n }\n\n QUnit.module('Ember Router DSL', {\n setup: setup,\n teardown: teardown\n });\n\n QUnit.test('should fail when using a reserved route name', function () {\n expectDeprecation('this.resource() is deprecated. Use this.route(\\'name\\', { resetNamespace: true }, function () {}) instead.');\n var reservedNames = ['array', 'basic', 'object', 'application'];\n\n expect(reservedNames.length * 2 + 1);\n\n reservedNames.forEach(function (reservedName) {\n expectAssertion(function () {\n Router = _router.default.extend();\n\n Router.map(function () {\n this.route(reservedName);\n });\n\n var router = Router.create();\n router._initRouterJs();\n }, '\\'' + reservedName + '\\' cannot be used as a route name.');\n\n expectAssertion(function () {\n Router = _router.default.extend();\n\n Router.map(function () {\n this.resource(reservedName);\n });\n\n var router = Router.create();\n router._initRouterJs();\n }, '\\'' + reservedName + '\\' cannot be used as a route name.');\n });\n });\n\n QUnit.test('should reset namespace if nested with resource', function () {\n expectDeprecation('this.resource() is deprecated. Use this.route(\\'name\\', { resetNamespace: true }, function () {}) instead.');\n\n Router = Router.map(function () {\n this.resource('bleep', function () {\n this.resource('bloop', function () {\n this.resource('blork');\n });\n });\n });\n\n var router = Router.create();\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['bleep'], 'nested resources do not contain parent name');\n ok(router._routerMicrolib.recognizer.names['bloop'], 'nested resources do not contain parent name');\n ok(router._routerMicrolib.recognizer.names['blork'], 'nested resources do not contain parent name');\n });\n\n QUnit.test('should retain resource namespace if nested with routes', function () {\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.route('blork');\n });\n });\n });\n\n var router = Router.create();\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['bleep'], 'parent name was used as base of nested routes');\n ok(router._routerMicrolib.recognizer.names['bleep.bloop'], 'parent name was used as base of nested routes');\n ok(router._routerMicrolib.recognizer.names['bleep.bloop.blork'], 'parent name was used as base of nested routes');\n });\n\n QUnit.test('should add loading and error routes if _isRouterMapResult is true', function () {\n Router.map(function () {\n this.route('blork');\n });\n\n var router = Router.create({\n _hasModuleBasedResolver: function () {\n return true;\n }\n });\n\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['blork'], 'main route was created');\n ok(router._routerMicrolib.recognizer.names['blork_loading'], 'loading route was added');\n ok(router._routerMicrolib.recognizer.names['blork_error'], 'error route was added');\n });\n\n QUnit.test('should not add loading and error routes if _isRouterMapResult is false', function () {\n Router.map(function () {\n this.route('blork');\n });\n\n var router = Router.create();\n router._initRouterJs(false);\n\n ok(router._routerMicrolib.recognizer.names['blork'], 'main route was created');\n ok(!router._routerMicrolib.recognizer.names['blork_loading'], 'loading route was not added');\n ok(!router._routerMicrolib.recognizer.names['blork_error'], 'error route was not added');\n });\n\n QUnit.test('should reset namespace of loading and error routes for routes with resetNamespace', function () {\n Router.map(function () {\n this.route('blork', function () {\n this.route('blorp');\n this.route('bleep', { resetNamespace: true });\n });\n });\n\n var router = Router.create({\n _hasModuleBasedResolver: function () {\n return true;\n }\n });\n\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['blork.blorp'], 'nested route was created');\n ok(router._routerMicrolib.recognizer.names['blork.blorp_loading'], 'nested loading route was added');\n ok(router._routerMicrolib.recognizer.names['blork.blorp_error'], 'nested error route was added');\n\n ok(router._routerMicrolib.recognizer.names['bleep'], 'reset route was created');\n ok(router._routerMicrolib.recognizer.names['bleep_loading'], 'reset loading route was added');\n ok(router._routerMicrolib.recognizer.names['bleep_error'], 'reset error route was added');\n\n ok(!router._routerMicrolib.recognizer.names['blork.bleep'], 'nested reset route was not created');\n ok(!router._routerMicrolib.recognizer.names['blork.bleep_loading'], 'nested reset loading route was not added');\n ok(!router._routerMicrolib.recognizer.names['blork.bleep_error'], 'nested reset error route was not added');\n });\n\n QUnit.test('should throw an error when defining a route serializer outside an engine', function () {\n Router.map(function () {\n var _this = this;\n\n throws(function () {\n _this.route('posts', { serialize: function () {} });\n }, /Defining a route serializer on route 'posts' outside an Engine is not allowed/);\n });\n\n Router.create()._initRouterJs();\n });\n\n QUnit.module('Ember Router DSL with engines', {\n setup: setup,\n teardown: teardown\n });\n\n QUnit.test('should allow mounting of engines', function (assert) {\n assert.expect(3);\n\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat');\n });\n });\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create();\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n assert.ok(router._routerMicrolib.recognizer.names['bleep'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop'], 'parent name was used as base of nested routes');\n assert.ok(router._routerMicrolib.recognizer.names['bleep.bloop.chat'], 'parent name was used as base of mounted engine');\n });\n\n QUnit.test('should allow mounting of engines at a custom path', function (assert) {\n assert.expect(1);\n\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat', { path: 'custom-chat' });\n });\n });\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create();\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n assert.deepEqual(router._routerMicrolib.recognizer.names['bleep.bloop.chat'].segments.slice(1, 4).map(function (s) {\n return s.value;\n }), ['bleep', 'bloop', 'custom-chat'], 'segments are properly associated with mounted engine');\n });\n\n QUnit.test('should allow aliasing of engine names with `as`', function (assert) {\n assert.expect(1);\n\n Router = Router.map(function () {\n this.route('bleep', function () {\n this.route('bloop', function () {\n this.mount('chat', { as: 'blork' });\n });\n });\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create();\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n assert.deepEqual(router._routerMicrolib.recognizer.names['bleep.bloop.blork'].segments.slice(1, 4).map(function (s) {\n return s.value;\n }), ['bleep', 'bloop', 'blork'], 'segments are properly associated with mounted engine with aliased name');\n });\n\n QUnit.test('should add loading and error routes to a mount if _isRouterMapResult is true', function () {\n Router.map(function () {\n this.mount('chat');\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create({\n _hasModuleBasedResolver: function () {\n return true;\n }\n });\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['chat'], 'main route was created');\n ok(router._routerMicrolib.recognizer.names['chat_loading'], 'loading route was added');\n ok(router._routerMicrolib.recognizer.names['chat_error'], 'error route was added');\n });\n\n QUnit.test('should add loading and error routes to a mount alias if _isRouterMapResult is true', function () {\n Router.map(function () {\n this.mount('chat', { as: 'shoutbox' });\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create({\n _hasModuleBasedResolver: function () {\n return true;\n }\n });\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['shoutbox'], 'main route was created');\n ok(router._routerMicrolib.recognizer.names['shoutbox_loading'], 'loading route was added');\n ok(router._routerMicrolib.recognizer.names['shoutbox_error'], 'error route was added');\n });\n\n QUnit.test('should not add loading and error routes to a mount if _isRouterMapResult is false', function () {\n Router.map(function () {\n this.mount('chat');\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create();\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs(false);\n\n ok(router._routerMicrolib.recognizer.names['chat'], 'main route was created');\n ok(!router._routerMicrolib.recognizer.names['chat_loading'], 'loading route was not added');\n ok(!router._routerMicrolib.recognizer.names['chat_error'], 'error route was not added');\n });\n\n QUnit.test('should reset namespace of loading and error routes for mounts with resetNamespace', function () {\n Router.map(function () {\n this.route('news', function () {\n this.mount('chat');\n this.mount('blog', { resetNamespace: true });\n });\n });\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: { routable: true }\n });\n\n var router = Router.create({\n _hasModuleBasedResolver: function () {\n return true;\n }\n });\n (0, _emberUtils.setOwner)(router, engineInstance);\n router._initRouterJs();\n\n ok(router._routerMicrolib.recognizer.names['news.chat'], 'nested route was created');\n ok(router._routerMicrolib.recognizer.names['news.chat_loading'], 'nested loading route was added');\n ok(router._routerMicrolib.recognizer.names['news.chat_error'], 'nested error route was added');\n\n ok(router._routerMicrolib.recognizer.names['blog'], 'reset route was created');\n ok(router._routerMicrolib.recognizer.names['blog_loading'], 'reset loading route was added');\n ok(router._routerMicrolib.recognizer.names['blog_error'], 'reset error route was added');\n\n ok(!router._routerMicrolib.recognizer.names['news.blog'], 'nested reset route was not created');\n ok(!router._routerMicrolib.recognizer.names['news.blog_loading'], 'nested reset loading route was not added');\n ok(!router._routerMicrolib.recognizer.names['news.blog_error'], 'nested reset error route was not added');\n });\n});","QUnit.module('ESLint | ember-routing/tests/system/dsl_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/system/dsl_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/system/route_test', ['ember-utils', 'internal-test-helpers', 'ember-runtime', 'ember-routing/system/route'], function (_emberUtils, _internalTestHelpers, _emberRuntime, _route) {\n 'use strict';\n\n var route = void 0,\n routeOne = void 0,\n routeTwo = void 0,\n lookupHash = void 0;\n\n function setup() {\n route = _route.default.create();\n }\n\n function teardown() {\n (0, _internalTestHelpers.runDestroy)(route);\n }\n\n QUnit.module('Ember.Route', {\n setup: setup,\n teardown: teardown\n });\n\n QUnit.test('default store utilizes the container to acquire the model factory', function () {\n expect(4);\n\n var Post = _emberRuntime.Object.extend();\n var post = {};\n\n Post.reopenClass({\n find: function (id) {\n return post;\n }\n });\n\n var ownerOptions = {\n ownerOptions: {\n hasRegistration: function () {\n return true;\n },\n factoryFor: function (fullName) {\n equal(fullName, 'model:post', 'correct factory was looked up');\n\n return {\n class: Post,\n create: function () {\n return Post.create();\n }\n };\n }\n }\n };\n\n (0, _emberUtils.setOwner)(route, (0, _internalTestHelpers.buildOwner)(ownerOptions));\n\n route.set('_qp', null);\n\n equal(route.model({ post_id: 1 }), post);\n equal(route.findModel('post', 1), post, '#findModel returns the correct post');\n });\n\n QUnit.test('\\'store\\' can be injected by data persistence frameworks', function () {\n expect(8);\n (0, _internalTestHelpers.runDestroy)(route);\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n var post = {\n id: 1\n };\n\n var Store = _emberRuntime.Object.extend({\n find: function (type, value) {\n ok(true, 'injected model was called');\n equal(type, 'post', 'correct type was called');\n equal(value, 1, 'correct value was called');\n return post;\n }\n });\n\n owner.register('route:index', _route.default);\n owner.register('store:main', Store);\n\n owner.inject('route', 'store', 'store:main');\n\n route = owner.lookup('route:index');\n\n equal(route.model({ post_id: 1 }), post, '#model returns the correct post');\n equal(route.findModel('post', 1), post, '#findModel returns the correct post');\n });\n\n QUnit.test('assert if \\'store.find\\' method is not found', function () {\n expect(1);\n (0, _internalTestHelpers.runDestroy)(route);\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n var Post = _emberRuntime.Object.extend();\n\n owner.register('route:index', _route.default);\n owner.register('model:post', Post);\n\n route = owner.lookup('route:index');\n\n expectAssertion(function () {\n route.findModel('post', 1);\n }, 'Post has no method `find`.');\n });\n\n QUnit.test('asserts if model class is not found', function () {\n expect(1);\n (0, _internalTestHelpers.runDestroy)(route);\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('route:index', _route.default);\n\n route = owner.lookup('route:index');\n\n expectAssertion(function () {\n route.model({ post_id: 1 });\n }, /You used the dynamic segment post_id in your route undefined, but .Post did not exist and you did not override your route\\'s `model` hook./);\n });\n\n QUnit.test('\\'store\\' does not need to be injected', function () {\n expect(1);\n\n (0, _internalTestHelpers.runDestroy)(route);\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n owner.register('route:index', _route.default);\n\n route = owner.lookup('route:index');\n\n ignoreAssertion(function () {\n route.model({ post_id: 1 });\n });\n\n ok(true, 'no error was raised');\n });\n\n QUnit.test('modelFor doesn\\'t require the router', function () {\n expect(1);\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n (0, _emberUtils.setOwner)(route, owner);\n\n var foo = { name: 'foo' };\n\n var FooRoute = _route.default.extend({\n currentModel: foo\n });\n\n owner.register('route:foo', FooRoute);\n\n strictEqual(route.modelFor('foo'), foo);\n });\n\n QUnit.test('.send just calls an action if the router is absent', function () {\n expect(7);\n var route = _route.default.extend({\n actions: {\n returnsTrue: function (foo, bar) {\n equal(foo, 1);\n equal(bar, 2);\n equal(this, route);\n return true;\n },\n returnsFalse: function () {\n ok(true, 'returnsFalse was called');\n return false;\n }\n }\n }).create();\n\n equal(true, route.send('returnsTrue', 1, 2));\n equal(false, route.send('returnsFalse'));\n equal(undefined, route.send('nonexistent', 1, 2, 3));\n });\n\n QUnit.test('.send just calls an action if the routers internal router property is absent', function () {\n expect(7);\n var route = _route.default.extend({\n router: {},\n actions: {\n returnsTrue: function (foo, bar) {\n equal(foo, 1);\n equal(bar, 2);\n equal(this, route);\n return true;\n },\n returnsFalse: function () {\n ok(true, 'returnsFalse was called');\n return false;\n }\n }\n }).create();\n\n equal(true, route.send('returnsTrue', 1, 2));\n equal(false, route.send('returnsFalse'));\n equal(undefined, route.send('nonexistent', 1, 2, 3));\n });\n\n QUnit.test('can access `actions` hash via `_actions` [DEPRECATED]', function () {\n expect(2);\n\n var route = _route.default.extend({\n actions: {\n foo: function () {\n ok(true, 'called foo action');\n }\n }\n }).create();\n\n expectDeprecation(function () {\n route._actions.foo();\n }, 'Usage of `_actions` is deprecated, use `actions` instead.');\n });\n\n QUnit.test('actions in both `_actions` and `actions` results in an assertion', function () {\n expectAssertion(function () {\n _route.default.extend({\n _actions: {},\n actions: {}\n }).create();\n }, 'Specifying `_actions` and `actions` in the same mixin is not supported.');\n });\n\n QUnit.test('actions added via `_actions` can be used [DEPRECATED]', function () {\n expect(3);\n\n var route = void 0;\n expectDeprecation(function () {\n route = _route.default.extend({\n _actions: {\n bar: function () {\n ok(true, 'called bar action');\n }\n }\n }, {\n actions: {\n foo: function () {\n ok(true, 'called foo action');\n }\n }\n }).create();\n }, 'Specifying actions in `_actions` is deprecated, please use `actions` instead.');\n\n route.send('foo');\n route.send('bar');\n });\n\n QUnit.module('Ember.Route serialize', {\n setup: setup,\n teardown: teardown\n });\n\n QUnit.test('returns the models properties if params does not include *_id', function () {\n var model = { id: 2, firstName: 'Ned', lastName: 'Ryerson' };\n\n deepEqual(route.serialize(model, ['firstName', 'lastName']), { firstName: 'Ned', lastName: 'Ryerson' }, 'serialized correctly');\n });\n\n QUnit.test('returns model.id if params include *_id', function () {\n var model = { id: 2 };\n\n deepEqual(route.serialize(model, ['post_id']), { post_id: 2 }, 'serialized correctly');\n });\n\n QUnit.test('returns checks for existence of model.post_id before trying model.id', function () {\n var model = { post_id: 3 };\n\n deepEqual(route.serialize(model, ['post_id']), { post_id: 3 }, 'serialized correctly');\n });\n\n QUnit.test('returns undefined if model is not set', function () {\n equal(route.serialize(undefined, ['post_id']), undefined, 'serialized correctly');\n });\n\n QUnit.module('Ember.Route interaction', {\n setup: function () {\n var owner = {\n lookup: function (fullName) {\n return lookupHash[fullName];\n }\n };\n\n routeOne = _route.default.create({ routeName: 'one' });\n routeTwo = _route.default.create({ routeName: 'two' });\n\n (0, _emberUtils.setOwner)(routeOne, owner);\n (0, _emberUtils.setOwner)(routeTwo, owner);\n\n lookupHash = {\n 'route:one': routeOne,\n 'route:two': routeTwo\n };\n },\n teardown: function () {\n (0, _internalTestHelpers.runDestroy)(routeOne);\n (0, _internalTestHelpers.runDestroy)(routeTwo);\n }\n });\n\n QUnit.test('route._qp does not crash if the controller has no QP, or setProperties', function () {\n lookupHash['controller:test'] = {};\n\n routeOne.controllerName = 'test';\n var qp = routeOne.get('_qp');\n\n deepEqual(qp.map, {}, 'map should be empty');\n deepEqual(qp.propertyNames, [], 'property names should be empty');\n deepEqual(qp.qps, [], 'qps is should be empty');\n });\n\n QUnit.test('controllerFor uses route\\'s controllerName if specified', function () {\n var testController = {};\n lookupHash['controller:test'] = testController;\n\n routeOne.controllerName = 'test';\n\n equal(routeTwo.controllerFor('one'), testController);\n });\n\n QUnit.module('Route injected properties');\n\n QUnit.test('services can be injected into routes', function () {\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n owner.register('route:application', _route.default.extend({\n authService: _emberRuntime.inject.service('auth')\n }));\n\n owner.register('service:auth', _emberRuntime.Service.extend());\n\n var appRoute = owner.lookup('route:application');\n var authService = owner.lookup('service:auth');\n\n equal(authService, appRoute.get('authService'), 'service.auth is injected');\n });\n\n QUnit.module('Ember.Route with engines');\n\n QUnit.test('paramsFor considers an engine\\'s mountPoint', function (assert) {\n expect(2);\n\n var router = {\n _deserializeQueryParams: function () {},\n\n _routerMicrolib: {\n state: {\n handlerInfos: [{ name: 'posts' }],\n params: {\n 'foo.bar': { a: 'b' },\n 'foo.bar.posts': { c: 'd' }\n }\n }\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n\n mountPoint: 'foo.bar',\n\n lookup: function (name) {\n if (name === 'route:posts') {\n return postsRoute;\n } else if (name === 'route:application') {\n return applicationRoute;\n }\n }\n }\n });\n\n var applicationRoute = _route.default.create({ router: router, routeName: 'application', fullRouteName: 'foo.bar' });\n var postsRoute = _route.default.create({ router: router, routeName: 'posts', fullRouteName: 'foo.bar.posts' });\n var route = _route.default.create({ router: router });\n\n (0, _emberUtils.setOwner)(applicationRoute, engineInstance);\n (0, _emberUtils.setOwner)(postsRoute, engineInstance);\n (0, _emberUtils.setOwner)(route, engineInstance);\n\n assert.deepEqual(route.paramsFor('application'), { a: 'b' }, 'params match for root `application` route in engine');\n assert.deepEqual(route.paramsFor('posts'), { c: 'd' }, 'params match for `posts` route in engine');\n });\n\n QUnit.test('modelFor considers an engine\\'s mountPoint', function () {\n expect(2);\n\n var applicationModel = { id: '1' };\n var postsModel = { id: '2' };\n\n var router = {\n _routerMicrolib: {\n activeTransition: {\n resolvedModels: {\n 'foo.bar': applicationModel,\n 'foo.bar.posts': postsModel\n }\n }\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n\n mountPoint: 'foo.bar',\n\n lookup: function (name) {\n if (name === 'route:posts') {\n return postsRoute;\n } else if (name === 'route:application') {\n return applicationRoute;\n }\n }\n }\n });\n\n var applicationRoute = _route.default.create({ router: router, routeName: 'application' });\n var postsRoute = _route.default.create({ router: router, routeName: 'posts' });\n var route = _route.default.create({ router: router });\n\n (0, _emberUtils.setOwner)(applicationRoute, engineInstance);\n (0, _emberUtils.setOwner)(postsRoute, engineInstance);\n (0, _emberUtils.setOwner)(route, engineInstance);\n\n strictEqual(route.modelFor('application'), applicationModel);\n strictEqual(route.modelFor('posts'), postsModel);\n });\n\n QUnit.test('transitionTo considers an engine\\'s mountPoint', function () {\n expect(4);\n\n var router = {\n transitionTo: function (route) {\n return route;\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n var route = _route.default.create({ router: router });\n (0, _emberUtils.setOwner)(route, engineInstance);\n\n strictEqual(route.transitionTo('application'), 'foo.bar.application', 'properly prefixes application route');\n strictEqual(route.transitionTo('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n throws(function () {\n return route.transitionTo('/posts');\n }, 'throws when trying to use a url');\n\n var queryParams = {};\n strictEqual(route.transitionTo(queryParams), queryParams, 'passes query param only transitions through');\n });\n\n QUnit.test('intermediateTransitionTo considers an engine\\'s mountPoint', function () {\n expect(4);\n\n var lastRoute = void 0;\n var router = {\n intermediateTransitionTo: function (route) {\n lastRoute = route;\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n var route = _route.default.create({ router: router });\n (0, _emberUtils.setOwner)(route, engineInstance);\n\n route.intermediateTransitionTo('application');\n strictEqual(lastRoute, 'foo.bar.application', 'properly prefixes application route');\n\n route.intermediateTransitionTo('posts');\n strictEqual(lastRoute, 'foo.bar.posts', 'properly prefixes child routes');\n\n throws(function () {\n return route.intermediateTransitionTo('/posts');\n }, 'throws when trying to use a url');\n\n var queryParams = {};\n route.intermediateTransitionTo(queryParams);\n strictEqual(lastRoute, queryParams, 'passes query param only transitions through');\n });\n\n QUnit.test('replaceWith considers an engine\\'s mountPoint', function () {\n expect(4);\n\n var router = {\n replaceWith: function (route) {\n return route;\n }\n };\n\n var engineInstance = (0, _internalTestHelpers.buildOwner)({\n ownerOptions: {\n routable: true,\n mountPoint: 'foo.bar'\n }\n });\n\n var route = _route.default.create({ router: router });\n (0, _emberUtils.setOwner)(route, engineInstance);\n\n strictEqual(route.replaceWith('application'), 'foo.bar.application', 'properly prefixes application route');\n strictEqual(route.replaceWith('posts'), 'foo.bar.posts', 'properly prefixes child routes');\n throws(function () {\n return route.replaceWith('/posts');\n }, 'throws when trying to use a url');\n\n var queryParams = {};\n strictEqual(route.replaceWith(queryParams), queryParams, 'passes query param only transitions through');\n });\n});","QUnit.module('ESLint | ember-routing/tests/system/route_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/system/route_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/system/router_test', ['ember-utils', 'ember-routing/location/hash_location', 'ember-routing/location/history_location', 'ember-routing/location/auto_location', 'ember-routing/location/none_location', 'ember-routing/system/router', 'internal-test-helpers'], function (_emberUtils, _hash_location, _history_location, _auto_location, _none_location, _router, _internalTestHelpers) {\n 'use strict';\n\n var owner = void 0;\n\n function createRouter(settings) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var CustomRouter = _router.default.extend();\n var router = CustomRouter.create(settings);\n\n if (!options.skipOwner) {\n (0, _emberUtils.setOwner)(router, owner);\n }\n\n if (!options.disableSetup) {\n router.setupRouter();\n }\n\n return router;\n }\n\n QUnit.module('Ember Router', {\n setup: function () {\n owner = (0, _internalTestHelpers.buildOwner)();\n\n //register the HashLocation (the default)\n owner.register('location:hash', _hash_location.default);\n owner.register('location:history', _history_location.default);\n owner.register('location:auto', _auto_location.default);\n owner.register('location:none', _none_location.default);\n },\n teardown: function () {\n (0, _internalTestHelpers.runDestroy)(owner);\n owner = null;\n }\n });\n\n QUnit.test('can create a router without an owner', function () {\n createRouter(null, { disableSetup: true, skipOwner: true });\n\n ok(true, 'no errors were thrown when creating without a container');\n });\n\n QUnit.test('[GH#15237] EmberError is imported correctly', function () {\n // If we get the right message it means Error is being imported correctly.\n throws(function () {\n (0, _router.triggerEvent)(null, false, []);\n }, /because your app hasn't finished transitioning/);\n });\n\n QUnit.test('should not create a router.js instance upon init', function () {\n var router = createRouter(null, { disableSetup: true });\n\n ok(!router._routerMicrolib);\n });\n\n QUnit.test('should not reify location until setupRouter is called', function () {\n var router = createRouter(null, { disableSetup: true });\n equal(typeof router.location, 'string', 'location is specified as a string');\n\n router.setupRouter();\n\n equal(typeof router.location, 'object', 'location is reified into an object');\n });\n\n QUnit.test('should destroy its location upon destroying the routers owner.', function () {\n var router = createRouter();\n var location = router.get('location');\n\n (0, _internalTestHelpers.runDestroy)(owner);\n\n ok(location.isDestroyed, 'location should be destroyed');\n });\n\n QUnit.test('should instantiate its location with its `rootURL`', function () {\n var router = createRouter({\n rootURL: '/rootdir/'\n });\n var location = router.get('location');\n\n equal(location.get('rootURL'), '/rootdir/');\n });\n\n QUnit.test('replacePath should be called with the right path', function () {\n expect(1);\n\n var location = owner.lookup('location:auto');\n\n var browserLocation = {\n href: 'http://test.com/rootdir/welcome',\n origin: 'http://test.com',\n pathname: '/rootdir/welcome',\n hash: '',\n search: '',\n replace: function (url) {\n equal(url, 'http://test.com/rootdir/#/welcome');\n }\n };\n\n location.location = browserLocation;\n location.global = {\n onhashchange: function () {}\n };\n location.history = null;\n\n createRouter({\n location: 'auto',\n rootURL: '/rootdir/'\n });\n });\n\n QUnit.test('Ember.Router._routePath should consume identical prefixes', function () {\n createRouter();\n\n expect(8);\n\n function routePath(s1, s2, s3) {\n var handlerInfos = Array.prototype.slice.call(arguments).map(function (s) {\n return { name: s };\n });\n handlerInfos.unshift({ name: 'ignored' });\n\n return _router.default._routePath(handlerInfos);\n }\n\n equal(routePath('foo'), 'foo');\n equal(routePath('foo', 'bar', 'baz'), 'foo.bar.baz');\n equal(routePath('foo', 'foo.bar'), 'foo.bar');\n equal(routePath('foo', 'foo.bar', 'foo.bar.baz'), 'foo.bar.baz');\n equal(routePath('foo', 'foo.bar', 'foo.bar.baz.wow'), 'foo.bar.baz.wow');\n equal(routePath('foo', 'foo.bar.baz.wow'), 'foo.bar.baz.wow');\n equal(routePath('foo.bar', 'bar.baz.wow'), 'foo.bar.baz.wow');\n\n // This makes no sense, not trying to handle it, just\n // making sure it doesn't go boom.\n equal(routePath('foo.bar.baz', 'foo'), 'foo.bar.baz.foo');\n });\n\n QUnit.test('Router should cancel routing setup when the Location class says so via cancelRouterSetup', function () {\n expect(0);\n\n var router = void 0;\n var FakeLocation = {\n cancelRouterSetup: true,\n create: function () {\n return this;\n }\n };\n\n owner.register('location:fake', FakeLocation);\n\n router = createRouter({\n location: 'fake',\n\n _setupRouter: function () {\n ok(false, '_setupRouter should not be called');\n }\n });\n\n router.startRouting();\n });\n\n QUnit.test('AutoLocation should replace the url when it\\'s not in the preferred format', function () {\n expect(1);\n\n var location = owner.lookup('location:auto');\n\n location.location = {\n href: 'http://test.com/rootdir/welcome',\n origin: 'http://test.com',\n pathname: '/rootdir/welcome',\n hash: '',\n search: '',\n replace: function (url) {\n equal(url, 'http://test.com/rootdir/#/welcome');\n }\n };\n location.history = null;\n location.global = {\n onhashchange: function () {}\n };\n\n createRouter({\n location: 'auto',\n rootURL: '/rootdir/'\n });\n });\n\n QUnit.test('Router#handleURL should remove any #hashes before doing URL transition', function () {\n expect(2);\n\n var router = createRouter({\n _doURLTransition: function (routerJsMethod, url) {\n equal(routerJsMethod, 'handleURL');\n equal(url, '/foo/bar?time=morphin');\n }\n });\n\n router.handleURL('/foo/bar?time=morphin#pink-power-ranger');\n });\n\n QUnit.test('Router#triggerEvent allows actions to bubble when returning true', function (assert) {\n assert.expect(2);\n\n var handlerInfos = [{\n name: 'application',\n handler: {\n actions: {\n loading: function () {\n assert.ok(false, 'loading not handled by application route');\n }\n }\n }\n }, {\n name: 'about',\n handler: {\n actions: {\n loading: function () {\n assert.ok(true, 'loading handled by about route');\n return false;\n }\n }\n }\n }, {\n name: 'about.me',\n handler: {\n actions: {\n loading: function () {\n assert.ok(true, 'loading handled by about.me route');\n return true;\n }\n }\n }\n }];\n\n (0, _router.triggerEvent)(handlerInfos, false, ['loading']);\n });\n\n QUnit.test('Router#triggerEvent ignores handlers that have not loaded yet', function (assert) {\n assert.expect(1);\n\n var handlerInfos = [{\n name: 'about',\n handler: {\n actions: {\n loading: function () {\n assert.ok(true, 'loading handled by about route');\n }\n }\n }\n }, {\n name: 'about.me',\n handler: undefined\n }];\n\n (0, _router.triggerEvent)(handlerInfos, false, ['loading']);\n });\n});","QUnit.module('ESLint | ember-routing/tests/system/router_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/system/router_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-routing/tests/utils_test', ['ember-routing/utils'], function (_utils) {\n 'use strict';\n\n QUnit.module('Routing query parameter utils - normalizeControllerQueryParams');\n\n QUnit.test('converts array style into verbose object style', function (assert) {\n var paramName = 'foo';\n var params = [paramName];\n var normalized = (0, _utils.normalizeControllerQueryParams)(params);\n\n ok(normalized[paramName], 'turns the query param name into key');\n equal(normalized[paramName].as, null, 'includes a blank alias in \\'as\\' key');\n equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n });\n\n QUnit.test('converts object style [{foo: \\'an_alias\\'}]', function (assert) {\n var paramName = 'foo';\n var params = [{ 'foo': 'an_alias' }];\n var normalized = (0, _utils.normalizeControllerQueryParams)(params);\n\n ok(normalized[paramName], 'retains the query param name as key');\n equal(normalized[paramName].as, 'an_alias', 'includes the provided alias in \\'as\\' key');\n equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n });\n\n QUnit.test('retains maximally verbose object style [{foo: {as: \\'foo\\'}}]', function (assert) {\n var paramName = 'foo';\n var params = [{ 'foo': { as: 'an_alias' } }];\n var normalized = (0, _utils.normalizeControllerQueryParams)(params);\n\n ok(normalized[paramName], 'retains the query param name as key');\n equal(normalized[paramName].as, 'an_alias', 'includes the provided alias in \\'as\\' key');\n equal(normalized[paramName].scope, 'model', 'defaults scope to model');\n });\n});","QUnit.module('ESLint | ember-routing/tests/utils_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-routing/tests/utils_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/compare.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/compare.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/computed/computed_macros.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/computed/computed_macros.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/computed/reduce_computed_macros.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/computed/reduce_computed_macros.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/controllers/controller.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/controllers/controller.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/copy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/copy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/ext/function.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/ext/function.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/ext/rsvp.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/ext/rsvp.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/ext/string.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/ext/string.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/inject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/inject.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/is-equal.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/is-equal.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/-proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/-proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/action_handler.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/action_handler.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/array.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/comparable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/comparable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/container_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/container_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/controller.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/controller.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/copyable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/copyable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/enumerable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/enumerable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/evented.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/evented.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/freezable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/freezable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/mutable_array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/mutable_array.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/mutable_enumerable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/mutable_enumerable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/observable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/observable.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/promise_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/promise_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/registry_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/registry_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/mixins/target_action_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/mixins/target_action_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/string_registry.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/string_registry.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/array_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/array_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/core_object.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/core_object.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/lazy_load.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/lazy_load.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/namespace.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/namespace.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/native_array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/native_array.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/object.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/object.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/object_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/object_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/service.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/service.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/system/string.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/system/string.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-runtime/lib/utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/lib/utils.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/computed/computed_macros_test', ['ember-metal', 'ember-runtime/computed/computed_macros', 'internal-test-helpers', 'ember-runtime/system/object', 'ember-runtime/system/native_array'], function (_emberMetal, _computed_macros, _internalTestHelpers, _object, _native_array) {\n 'use strict';\n\n QUnit.module('CP macros');\n\n (0, _internalTestHelpers.testBoth)('Ember.computed.empty', function (get, set) {\n var obj = _object.default.extend({\n bestLannister: null,\n lannisters: null,\n\n bestLannisterUnspecified: (0, _computed_macros.empty)('bestLannister'),\n noLannistersKnown: (0, _computed_macros.empty)('lannisters')\n }).create({\n lannisters: (0, _native_array.A)()\n });\n\n equal(get(obj, 'bestLannisterUnspecified'), true, 'bestLannister initially empty');\n equal(get(obj, 'noLannistersKnown'), true, 'lannisters initially empty');\n\n get(obj, 'lannisters').pushObject('Tyrion');\n set(obj, 'bestLannister', 'Tyrion');\n\n equal(get(obj, 'bestLannisterUnspecified'), false, 'empty respects strings');\n equal(get(obj, 'noLannistersKnown'), false, 'empty respects array mutations');\n });\n\n (0, _internalTestHelpers.testBoth)('Ember.computed.notEmpty', function (get, set) {\n var obj = _object.default.extend({\n bestLannister: null,\n lannisters: null,\n\n bestLannisterSpecified: (0, _computed_macros.notEmpty)('bestLannister'),\n LannistersKnown: (0, _computed_macros.notEmpty)('lannisters')\n }).create({\n lannisters: (0, _native_array.A)()\n });\n\n equal(get(obj, 'bestLannisterSpecified'), false, 'bestLannister initially empty');\n equal(get(obj, 'LannistersKnown'), false, 'lannisters initially empty');\n\n get(obj, 'lannisters').pushObject('Tyrion');\n set(obj, 'bestLannister', 'Tyrion');\n\n equal(get(obj, 'bestLannisterSpecified'), true, 'empty respects strings');\n equal(get(obj, 'LannistersKnown'), true, 'empty respects array mutations');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.not', function (get, set) {\n var obj = { foo: true };\n (0, _emberMetal.defineProperty)(obj, 'notFoo', (0, _computed_macros.not)('foo'));\n equal(get(obj, 'notFoo'), false);\n\n obj = { foo: { bar: true } };\n (0, _emberMetal.defineProperty)(obj, 'notFoo', (0, _computed_macros.not)('foo.bar'));\n equal(get(obj, 'notFoo'), false);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.empty', function (get, set) {\n var obj = { foo: [], bar: undefined, baz: null, quz: '' };\n (0, _emberMetal.defineProperty)(obj, 'fooEmpty', (0, _computed_macros.empty)('foo'));\n (0, _emberMetal.defineProperty)(obj, 'barEmpty', (0, _computed_macros.empty)('bar'));\n (0, _emberMetal.defineProperty)(obj, 'bazEmpty', (0, _computed_macros.empty)('baz'));\n (0, _emberMetal.defineProperty)(obj, 'quzEmpty', (0, _computed_macros.empty)('quz'));\n\n equal(get(obj, 'fooEmpty'), true);\n set(obj, 'foo', [1]);\n equal(get(obj, 'fooEmpty'), false);\n equal(get(obj, 'barEmpty'), true);\n equal(get(obj, 'bazEmpty'), true);\n equal(get(obj, 'quzEmpty'), true);\n set(obj, 'quz', 'asdf');\n equal(get(obj, 'quzEmpty'), false);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.bool', function (get, set) {\n var obj = {\n foo: function () {},\n bar: 'asdf', baz: null, quz: false };\n (0, _emberMetal.defineProperty)(obj, 'fooBool', (0, _computed_macros.bool)('foo'));\n (0, _emberMetal.defineProperty)(obj, 'barBool', (0, _computed_macros.bool)('bar'));\n (0, _emberMetal.defineProperty)(obj, 'bazBool', (0, _computed_macros.bool)('baz'));\n (0, _emberMetal.defineProperty)(obj, 'quzBool', (0, _computed_macros.bool)('quz'));\n equal(get(obj, 'fooBool'), true);\n equal(get(obj, 'barBool'), true);\n equal(get(obj, 'bazBool'), false);\n equal(get(obj, 'quzBool'), false);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.alias', function (get, set) {\n var obj = { bar: 'asdf', baz: null, quz: false };\n (0, _emberMetal.defineProperty)(obj, 'bay', (0, _emberMetal.computed)(function (key) {\n return 'apple';\n }));\n\n (0, _emberMetal.defineProperty)(obj, 'barAlias', (0, _emberMetal.alias)('bar'));\n (0, _emberMetal.defineProperty)(obj, 'bazAlias', (0, _emberMetal.alias)('baz'));\n (0, _emberMetal.defineProperty)(obj, 'quzAlias', (0, _emberMetal.alias)('quz'));\n (0, _emberMetal.defineProperty)(obj, 'bayAlias', (0, _emberMetal.alias)('bay'));\n\n equal(get(obj, 'barAlias'), 'asdf');\n equal(get(obj, 'bazAlias'), null);\n equal(get(obj, 'quzAlias'), false);\n equal(get(obj, 'bayAlias'), 'apple');\n\n set(obj, 'barAlias', 'newBar');\n set(obj, 'bazAlias', 'newBaz');\n set(obj, 'quzAlias', null);\n\n equal(get(obj, 'barAlias'), 'newBar');\n equal(get(obj, 'bazAlias'), 'newBaz');\n equal(get(obj, 'quzAlias'), null);\n\n equal(get(obj, 'bar'), 'newBar');\n equal(get(obj, 'baz'), 'newBaz');\n equal(get(obj, 'quz'), null);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.alias set', function (get, set) {\n var obj = {};\n var constantValue = 'always `a`';\n\n (0, _emberMetal.defineProperty)(obj, 'original', (0, _emberMetal.computed)({\n get: function (key) {\n return constantValue;\n },\n set: function (key, value) {\n return constantValue;\n }\n }));\n (0, _emberMetal.defineProperty)(obj, 'aliased', (0, _emberMetal.alias)('original'));\n\n equal(get(obj, 'original'), constantValue);\n equal(get(obj, 'aliased'), constantValue);\n\n set(obj, 'aliased', 'should not set to this value');\n\n equal(get(obj, 'original'), constantValue);\n equal(get(obj, 'aliased'), constantValue);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.match', function (get, set) {\n var obj = { name: 'Paul' };\n (0, _emberMetal.defineProperty)(obj, 'isPaul', (0, _computed_macros.match)('name', /Paul/));\n\n equal(get(obj, 'isPaul'), true, 'is Paul');\n\n set(obj, 'name', 'Pierre');\n\n equal(get(obj, 'isPaul'), false, 'is not Paul anymore');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.notEmpty', function (get, set) {\n var obj = { items: [1] };\n (0, _emberMetal.defineProperty)(obj, 'hasItems', (0, _computed_macros.notEmpty)('items'));\n\n equal(get(obj, 'hasItems'), true, 'is not empty');\n\n set(obj, 'items', []);\n\n equal(get(obj, 'hasItems'), false, 'is empty');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.equal', function (get, set) {\n var obj = { name: 'Paul' };\n (0, _emberMetal.defineProperty)(obj, 'isPaul', (0, _computed_macros.equal)('name', 'Paul'));\n\n equal(get(obj, 'isPaul'), true, 'is Paul');\n\n set(obj, 'name', 'Pierre');\n\n equal(get(obj, 'isPaul'), false, 'is not Paul anymore');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.gt', function (get, set) {\n var obj = { number: 2 };\n (0, _emberMetal.defineProperty)(obj, 'isGreaterThenOne', (0, _computed_macros.gt)('number', 1));\n\n equal(get(obj, 'isGreaterThenOne'), true, 'is gt');\n\n set(obj, 'number', 1);\n\n equal(get(obj, 'isGreaterThenOne'), false, 'is not gt');\n\n set(obj, 'number', 0);\n\n equal(get(obj, 'isGreaterThenOne'), false, 'is not gt');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.gte', function (get, set) {\n var obj = { number: 2 };\n (0, _emberMetal.defineProperty)(obj, 'isGreaterOrEqualThenOne', (0, _computed_macros.gte)('number', 1));\n\n equal(get(obj, 'isGreaterOrEqualThenOne'), true, 'is gte');\n\n set(obj, 'number', 1);\n\n equal(get(obj, 'isGreaterOrEqualThenOne'), true, 'is gte');\n\n set(obj, 'number', 0);\n\n equal(get(obj, 'isGreaterOrEqualThenOne'), false, 'is not gte');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.lt', function (get, set) {\n var obj = { number: 0 };\n (0, _emberMetal.defineProperty)(obj, 'isLesserThenOne', (0, _computed_macros.lt)('number', 1));\n\n equal(get(obj, 'isLesserThenOne'), true, 'is lt');\n\n set(obj, 'number', 1);\n\n equal(get(obj, 'isLesserThenOne'), false, 'is not lt');\n\n set(obj, 'number', 2);\n\n equal(get(obj, 'isLesserThenOne'), false, 'is not lt');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.lte', function (get, set) {\n var obj = { number: 0 };\n (0, _emberMetal.defineProperty)(obj, 'isLesserOrEqualThenOne', (0, _computed_macros.lte)('number', 1));\n\n equal(get(obj, 'isLesserOrEqualThenOne'), true, 'is lte');\n\n set(obj, 'number', 1);\n\n equal(get(obj, 'isLesserOrEqualThenOne'), true, 'is lte');\n\n set(obj, 'number', 2);\n\n equal(get(obj, 'isLesserOrEqualThenOne'), false, 'is not lte');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.and two properties', function (get, set) {\n var obj = { one: true, two: true };\n (0, _emberMetal.defineProperty)(obj, 'oneAndTwo', (0, _computed_macros.and)('one', 'two'));\n\n equal(get(obj, 'oneAndTwo'), true, 'one and two');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneAndTwo'), false, 'one and not two');\n\n set(obj, 'one', null);\n set(obj, 'two', 'Yes');\n\n equal(get(obj, 'oneAndTwo'), null, 'returns falsy value as in &&');\n\n set(obj, 'one', true);\n set(obj, 'two', 2);\n\n equal(get(obj, 'oneAndTwo'), 2, 'returns truthy value as in &&');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.and three properties', function (get, set) {\n var obj = { one: true, two: true, three: true };\n (0, _emberMetal.defineProperty)(obj, 'oneTwoThree', (0, _computed_macros.and)('one', 'two', 'three'));\n\n equal(get(obj, 'oneTwoThree'), true, 'one and two and three');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneTwoThree'), false, 'one and not two and not three');\n\n set(obj, 'one', true);\n set(obj, 'two', 2);\n set(obj, 'three', 3);\n\n equal(get(obj, 'oneTwoThree'), 3, 'returns truthy value as in &&');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.and expand properties', function (get, set) {\n var obj = { one: true, two: true, three: true };\n (0, _emberMetal.defineProperty)(obj, 'oneTwoThree', (0, _computed_macros.and)('{one,two,three}'));\n\n equal(get(obj, 'oneTwoThree'), true, 'one and two and three');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneTwoThree'), false, 'one and not two and not three');\n\n set(obj, 'one', true);\n set(obj, 'two', 2);\n set(obj, 'three', 3);\n\n equal(get(obj, 'oneTwoThree'), 3, 'returns truthy value as in &&');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.or two properties', function (get, set) {\n var obj = { one: true, two: true };\n (0, _emberMetal.defineProperty)(obj, 'oneOrTwo', (0, _computed_macros.or)('one', 'two'));\n\n equal(get(obj, 'oneOrTwo'), true, 'one or two');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneOrTwo'), true, 'one or two');\n\n set(obj, 'two', false);\n\n equal(get(obj, 'oneOrTwo'), false, 'nor one nor two');\n\n set(obj, 'two', null);\n\n equal(get(obj, 'oneOrTwo'), null, 'returns last falsy value as in ||');\n\n set(obj, 'two', true);\n\n equal(get(obj, 'oneOrTwo'), true, 'one or two');\n\n set(obj, 'one', 1);\n\n equal(get(obj, 'oneOrTwo'), 1, 'returns truthy value as in ||');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.or three properties', function (get, set) {\n var obj = { one: true, two: true, three: true };\n (0, _emberMetal.defineProperty)(obj, 'oneTwoThree', (0, _computed_macros.or)('one', 'two', 'three'));\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'two', false);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'three', false);\n\n equal(get(obj, 'oneTwoThree'), false, 'one or two or three');\n\n set(obj, 'three', null);\n\n equal(get(obj, 'oneTwoThree'), null, 'returns last falsy value as in ||');\n\n set(obj, 'two', true);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'one', 1);\n\n equal(get(obj, 'oneTwoThree'), 1, 'returns truthy value as in ||');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.or expand properties', function (get, set) {\n var obj = { one: true, two: true, three: true };\n (0, _emberMetal.defineProperty)(obj, 'oneTwoThree', (0, _computed_macros.or)('{one,two,three}'));\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'one', false);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'two', false);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'three', false);\n\n equal(get(obj, 'oneTwoThree'), false, 'one or two or three');\n\n set(obj, 'three', null);\n\n equal(get(obj, 'oneTwoThree'), null, 'returns last falsy value as in ||');\n\n set(obj, 'two', true);\n\n equal(get(obj, 'oneTwoThree'), true, 'one or two or three');\n\n set(obj, 'one', 1);\n\n equal(get(obj, 'oneTwoThree'), 1, 'returns truthy value as in ||');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.or and computed.and warn about dependent keys with spaces', function (get, set) {\n var obj = { one: true, two: true };\n expectAssertion(function () {\n (0, _emberMetal.defineProperty)(obj, 'oneOrTwo', (0, _computed_macros.or)('one', 'two three'));\n }, /Dependent keys passed to Ember\\.computed\\.or\\(\\) can't have spaces\\./);\n\n expectAssertion(function () {\n (0, _emberMetal.defineProperty)(obj, 'oneAndTwo', (0, _computed_macros.and)('one', 'two three'));\n }, /Dependent keys passed to Ember\\.computed\\.and\\(\\) can't have spaces\\./);\n });\n\n (0, _internalTestHelpers.testBoth)('computed.oneWay', function (get, set) {\n var obj = {\n firstName: 'Teddy',\n lastName: 'Zeenny'\n };\n\n (0, _emberMetal.defineProperty)(obj, 'nickName', (0, _computed_macros.oneWay)('firstName'));\n\n equal(get(obj, 'firstName'), 'Teddy');\n equal(get(obj, 'lastName'), 'Zeenny');\n equal(get(obj, 'nickName'), 'Teddy');\n\n set(obj, 'nickName', 'TeddyBear');\n\n equal(get(obj, 'firstName'), 'Teddy');\n equal(get(obj, 'lastName'), 'Zeenny');\n\n equal(get(obj, 'nickName'), 'TeddyBear');\n\n set(obj, 'firstName', 'TEDDDDDDDDYYY');\n\n equal(get(obj, 'nickName'), 'TeddyBear');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.readOnly', function (get, set) {\n var obj = {\n firstName: 'Teddy',\n lastName: 'Zeenny'\n };\n\n (0, _emberMetal.defineProperty)(obj, 'nickName', (0, _computed_macros.readOnly)('firstName'));\n\n equal(get(obj, 'firstName'), 'Teddy');\n equal(get(obj, 'lastName'), 'Zeenny');\n equal(get(obj, 'nickName'), 'Teddy');\n\n throws(function () {\n set(obj, 'nickName', 'TeddyBear');\n }, / /);\n\n equal(get(obj, 'firstName'), 'Teddy');\n equal(get(obj, 'lastName'), 'Zeenny');\n\n equal(get(obj, 'nickName'), 'Teddy');\n\n set(obj, 'firstName', 'TEDDDDDDDDYYY');\n\n equal(get(obj, 'nickName'), 'TEDDDDDDDDYYY');\n });\n\n (0, _internalTestHelpers.testBoth)('computed.deprecatingAlias', function (get, set) {\n var obj = { bar: 'asdf', baz: null, quz: false };\n (0, _emberMetal.defineProperty)(obj, 'bay', (0, _emberMetal.computed)(function (key) {\n return 'apple';\n }));\n\n (0, _emberMetal.defineProperty)(obj, 'barAlias', (0, _computed_macros.deprecatingAlias)('bar'));\n (0, _emberMetal.defineProperty)(obj, 'bazAlias', (0, _computed_macros.deprecatingAlias)('baz'));\n (0, _emberMetal.defineProperty)(obj, 'quzAlias', (0, _computed_macros.deprecatingAlias)('quz'));\n (0, _emberMetal.defineProperty)(obj, 'bayAlias', (0, _computed_macros.deprecatingAlias)('bay'));\n\n expectDeprecation(function () {\n equal(get(obj, 'barAlias'), 'asdf');\n }, 'Usage of `barAlias` is deprecated, use `bar` instead.');\n\n expectDeprecation(function () {\n equal(get(obj, 'bazAlias'), null);\n }, 'Usage of `bazAlias` is deprecated, use `baz` instead.');\n\n expectDeprecation(function () {\n equal(get(obj, 'quzAlias'), false);\n }, 'Usage of `quzAlias` is deprecated, use `quz` instead.');\n\n expectDeprecation(function () {\n equal(get(obj, 'bayAlias'), 'apple');\n }, 'Usage of `bayAlias` is deprecated, use `bay` instead.');\n\n expectDeprecation(function () {\n set(obj, 'barAlias', 'newBar');\n }, 'Usage of `barAlias` is deprecated, use `bar` instead.');\n\n expectDeprecation(function () {\n set(obj, 'bazAlias', 'newBaz');\n }, 'Usage of `bazAlias` is deprecated, use `baz` instead.');\n\n expectDeprecation(function () {\n set(obj, 'quzAlias', null);\n }, 'Usage of `quzAlias` is deprecated, use `quz` instead.');\n\n equal(get(obj, 'barAlias'), 'newBar');\n equal(get(obj, 'bazAlias'), 'newBaz');\n equal(get(obj, 'quzAlias'), null);\n\n equal(get(obj, 'bar'), 'newBar');\n equal(get(obj, 'baz'), 'newBaz');\n equal(get(obj, 'quz'), null);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/computed/computed_macros_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/computed/computed_macros_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/computed/reduce_computed_macros_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object', 'ember-runtime/system/object_proxy', 'ember-runtime/computed/reduce_computed_macros', 'ember-runtime/utils', 'ember-runtime/system/native_array', 'ember-runtime/mixins/mutable_array'], function (_emberMetal, _internalTestHelpers, _object, _object_proxy, _reduce_computed_macros, _utils, _native_array, _mutable_array) {\n 'use strict';\n\n var obj = void 0;\n QUnit.module('map', {\n setup: function () {\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.map)('array.@each.v', function (item) {\n return item.v;\n }),\n mappedObjects: (0, _reduce_computed_macros.map)('arrayObjects.@each.v', function (item) {\n return { name: item.v.name };\n })\n }).create({\n arrayObjects: (0, _native_array.A)([{ v: { name: 'Robert' } }, { v: { name: 'Leanna' } }]),\n\n array: (0, _native_array.A)([{ v: 1 }, { v: 3 }, { v: 2 }, { v: 1 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('map is readOnly', function () {\n QUnit.throws(function () {\n obj.set('mapped', 1);\n }, /Cannot set read-only property \"mapped\" on object:/);\n });\n\n QUnit.test('it maps simple properties', function () {\n deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n\n obj.get('array').pushObject({ v: 5 });\n\n deepEqual(obj.get('mapped'), [1, 3, 2, 1, 5]);\n\n (0, _mutable_array.removeAt)(obj.get('array'), 3);\n\n deepEqual(obj.get('mapped'), [1, 3, 2, 5]);\n });\n\n QUnit.test('it maps simple unshifted properties', function () {\n var array = (0, _native_array.A)();\n\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.map)('array', function (item) {\n return item.toUpperCase();\n })\n }).create({\n array: array\n });\n\n array.unshiftObject('c');\n array.unshiftObject('b');\n array.unshiftObject('a');\n\n array.popObject();\n\n deepEqual(obj.get('mapped'), ['A', 'B'], 'properties unshifted in sequence are mapped correctly');\n });\n\n QUnit.test('it has the correct `this`', function () {\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.map)('array', function (item) {\n equal(this, obj, 'should have correct context');\n return this.upperCase(item);\n }),\n upperCase: function (string) {\n return string.toUpperCase();\n }\n }).create({\n array: ['a', 'b', 'c']\n });\n\n deepEqual(obj.get('mapped'), ['A', 'B', 'C'], 'properties unshifted in sequence are mapped correctly');\n });\n\n QUnit.test('it passes the index to the callback', function () {\n var array = ['a', 'b', 'c'];\n\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.map)('array', function (item, index) {\n return index;\n })\n }).create({\n array: array\n });\n\n deepEqual(obj.get('mapped'), [0, 1, 2], 'index is passed to callback correctly');\n });\n\n QUnit.test('it maps objects', function () {\n deepEqual(obj.get('mappedObjects'), [{ name: 'Robert' }, { name: 'Leanna' }]);\n\n obj.get('arrayObjects').pushObject({\n v: { name: 'Eddard' }\n });\n\n deepEqual(obj.get('mappedObjects'), [{ name: 'Robert' }, { name: 'Leanna' }, { name: 'Eddard' }]);\n\n (0, _mutable_array.removeAt)(obj.get('arrayObjects'), 1);\n\n deepEqual(obj.get('mappedObjects'), [{ name: 'Robert' }, { name: 'Eddard' }]);\n\n (0, _emberMetal.set)(obj.get('arrayObjects')[0], 'v', { name: 'Stannis' });\n\n deepEqual(obj.get('mappedObjects'), [{ name: 'Stannis' }, { name: 'Eddard' }]);\n });\n\n QUnit.test('it maps unshifted objects with property observers', function () {\n var array = (0, _native_array.A)();\n var cObj = { v: 'c' };\n\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.map)('array.@each.v', function (item) {\n return (0, _emberMetal.get)(item, 'v').toUpperCase();\n })\n }).create({\n array: array\n });\n\n array.unshiftObject(cObj);\n array.unshiftObject({ v: 'b' });\n array.unshiftObject({ v: 'a' });\n\n (0, _emberMetal.set)(cObj, 'v', 'd');\n\n deepEqual(array.mapBy('v'), ['a', 'b', 'd'], 'precond - unmapped array is correct');\n deepEqual(obj.get('mapped'), ['A', 'B', 'D'], 'properties unshifted in sequence are mapped correctly');\n });\n\n QUnit.module('mapBy', {\n setup: function () {\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.mapBy)('array', 'v')\n }).create({\n array: (0, _native_array.A)([{ v: 1 }, { v: 3 }, { v: 2 }, { v: 1 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('mapBy is readOnly', function () {\n QUnit.throws(function () {\n obj.set('mapped', 1);\n }, /Cannot set read-only property \"mapped\" on object:/);\n });\n\n QUnit.test('it maps properties', function () {\n deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n\n obj.get('array').pushObject({ v: 5 });\n\n deepEqual(obj.get('mapped'), [1, 3, 2, 1, 5]);\n\n (0, _mutable_array.removeAt)(obj.get('array'), 3);\n\n deepEqual(obj.get('mapped'), [1, 3, 2, 5]);\n });\n\n QUnit.test('it is observable', function () {\n var calls = 0;\n\n deepEqual(obj.get('mapped'), [1, 3, 2, 1]);\n\n (0, _emberMetal.addObserver)(obj, 'mapped.@each', function () {\n return calls++;\n });\n\n obj.get('array').pushObject({ v: 5 });\n\n equal(calls, 1, 'mapBy is observable');\n });\n\n QUnit.module('filter', {\n setup: function () {\n obj = _object.default.extend({\n filtered: (0, _reduce_computed_macros.filter)('array', function (item) {\n return item % 2 === 0;\n })\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6, 7, 8])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('filter is readOnly', function () {\n QUnit.throws(function () {\n obj.set('filtered', 1);\n }, /Cannot set read-only property \"filtered\" on object:/);\n });\n\n QUnit.test('it filters according to the specified filter function', function () {\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'filter filters by the specified function');\n });\n\n QUnit.test('it passes the index to the callback', function () {\n obj = _object.default.extend({\n filtered: (0, _reduce_computed_macros.filter)('array', function (item, index) {\n return index === 1;\n })\n }).create({\n array: ['a', 'b', 'c']\n });\n\n deepEqual((0, _emberMetal.get)(obj, 'filtered'), ['b'], 'index is passed to callback correctly');\n });\n\n QUnit.test('it has the correct `this`', function () {\n obj = _object.default.extend({\n filtered: (0, _reduce_computed_macros.filter)('array', function (item, index) {\n equal(this, obj);\n return this.isOne(index);\n }),\n isOne: function (value) {\n return value === 1;\n }\n }).create({\n array: ['a', 'b', 'c']\n });\n\n deepEqual((0, _emberMetal.get)(obj, 'filtered'), ['b'], 'index is passed to callback correctly');\n });\n\n QUnit.test('it passes the array to the callback', function () {\n obj = _object.default.extend({\n filtered: (0, _reduce_computed_macros.filter)('array', function (item, index, array) {\n return index === (0, _emberMetal.get)(array, 'length') - 2;\n })\n }).create({\n array: (0, _native_array.A)(['a', 'b', 'c'])\n });\n\n deepEqual(obj.get('filtered'), ['b'], 'array is passed to callback correctly');\n });\n\n QUnit.test('it caches properly', function () {\n var array = obj.get('array');\n\n var filtered = obj.get('filtered');\n ok(filtered === obj.get('filtered'));\n\n array.addObject(11);\n var newFiltered = obj.get('filtered');\n\n ok(filtered !== newFiltered);\n\n ok(obj.get('filtered') === newFiltered);\n });\n\n QUnit.test('it updates as the array is modified', function () {\n var array = obj.get('array');\n\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n\n array.addObject(11);\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'objects not passing the filter are not added');\n\n array.addObject(12);\n deepEqual(obj.get('filtered'), [2, 4, 6, 8, 12], 'objects passing the filter are added');\n\n array.removeObject(3);\n array.removeObject(4);\n\n deepEqual(obj.get('filtered'), [2, 6, 8, 12], 'objects removed from the dependent array are removed from the computed array');\n });\n\n QUnit.test('the dependent array can be cleared one at a time', function () {\n var array = (0, _emberMetal.get)(obj, 'array');\n\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n\n // clear 1-8 but in a random order\n array.removeObject(3);\n array.removeObject(1);\n array.removeObject(2);\n array.removeObject(4);\n array.removeObject(8);\n array.removeObject(6);\n array.removeObject(5);\n array.removeObject(7);\n\n deepEqual(obj.get('filtered'), [], 'filtered array cleared correctly');\n });\n\n QUnit.test('the dependent array can be `clear`ed directly (#3272)', function () {\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n\n obj.get('array').clear();\n\n deepEqual(obj.get('filtered'), [], 'filtered array cleared correctly');\n });\n\n QUnit.test('it updates as the array is replaced', function () {\n deepEqual(obj.get('filtered'), [2, 4, 6, 8], 'precond - filtered array is initially correct');\n\n obj.set('array', [20, 21, 22, 23, 24]);\n\n deepEqual(obj.get('filtered'), [20, 22, 24], 'computed array is updated when array is changed');\n });\n\n QUnit.test('it updates properly on @each with {} dependencies', function () {\n var item = _object.default.create({ prop: true });\n\n obj = _object.default.extend({\n filtered: (0, _reduce_computed_macros.filter)('items.@each.{prop}', function (item, index) {\n return item.get('prop') === true;\n })\n }).create({\n items: (0, _native_array.A)([item])\n });\n\n deepEqual(obj.get('filtered'), [item]);\n\n item.set('prop', false);\n\n deepEqual(obj.get('filtered'), []);\n });\n\n QUnit.module('filterBy', {\n setup: function () {\n obj = _object.default.extend({\n a1s: (0, _reduce_computed_macros.filterBy)('array', 'a', 1),\n as: (0, _reduce_computed_macros.filterBy)('array', 'a'),\n bs: (0, _reduce_computed_macros.filterBy)('array', 'b')\n }).create({\n array: (0, _native_array.A)([{ name: 'one', a: 1, b: false }, { name: 'two', a: 2, b: false }, { name: 'three', a: 1, b: true }, { name: 'four', b: true }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('filterBy is readOnly', function () {\n QUnit.throws(function () {\n obj.set('as', 1);\n }, /Cannot set read-only property \"as\" on object:/);\n });\n\n QUnit.test('properties can be filtered by truthiness', function () {\n deepEqual(obj.get('as').mapBy('name'), ['one', 'two', 'three'], 'properties can be filtered by existence');\n deepEqual(obj.get('bs').mapBy('name'), ['three', 'four'], 'booleans can be filtered');\n\n (0, _emberMetal.set)(obj.get('array')[0], 'a', undefined);\n (0, _emberMetal.set)(obj.get('array')[3], 'a', true);\n\n (0, _emberMetal.set)(obj.get('array')[0], 'b', true);\n (0, _emberMetal.set)(obj.get('array')[3], 'b', false);\n\n deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four'], 'arrays computed by filter property respond to property changes');\n deepEqual(obj.get('bs').mapBy('name'), ['one', 'three'], 'arrays computed by filtered property respond to property changes');\n\n obj.get('array').pushObject({ name: 'five', a: 6, b: true });\n\n deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four', 'five'], 'arrays computed by filter property respond to added objects');\n deepEqual(obj.get('bs').mapBy('name'), ['one', 'three', 'five'], 'arrays computed by filtered property respond to added objects');\n\n obj.get('array').popObject();\n\n deepEqual(obj.get('as').mapBy('name'), ['two', 'three', 'four'], 'arrays computed by filter property respond to removed objects');\n deepEqual(obj.get('bs').mapBy('name'), ['one', 'three'], 'arrays computed by filtered property respond to removed objects');\n\n obj.set('array', [{ name: 'six', a: 12, b: true }]);\n\n deepEqual(obj.get('as').mapBy('name'), ['six'], 'arrays computed by filter property respond to array changes');\n deepEqual(obj.get('bs').mapBy('name'), ['six'], 'arrays computed by filtered property respond to array changes');\n });\n\n QUnit.test('properties can be filtered by values', function () {\n deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three'], 'properties can be filtered by matching value');\n\n obj.get('array').pushObject({ name: 'five', a: 1 });\n\n deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three', 'five'], 'arrays computed by matching value respond to added objects');\n\n obj.get('array').popObject();\n\n deepEqual(obj.get('a1s').mapBy('name'), ['one', 'three'], 'arrays computed by matching value respond to removed objects');\n\n (0, _emberMetal.set)(obj.get('array')[1], 'a', 1);\n (0, _emberMetal.set)(obj.get('array')[2], 'a', 2);\n\n deepEqual(obj.get('a1s').mapBy('name'), ['one', 'two'], 'arrays computed by matching value respond to modified properties');\n });\n\n QUnit.test('properties values can be replaced', function () {\n obj = _object.default.extend({\n a1s: (0, _reduce_computed_macros.filterBy)('array', 'a', 1),\n a1bs: (0, _reduce_computed_macros.filterBy)('a1s', 'b')\n }).create({\n array: []\n });\n\n deepEqual(obj.get('a1bs').mapBy('name'), [], 'properties can be filtered by matching value');\n\n (0, _emberMetal.set)(obj, 'array', [{ name: 'item1', a: 1, b: true }]);\n\n deepEqual(obj.get('a1bs').mapBy('name'), ['item1'], 'properties can be filtered by matching value');\n });\n\n [['uniq', _reduce_computed_macros.uniq], ['union', _reduce_computed_macros.union]].forEach(function (tuple) {\n var name = tuple[0],\n macro = tuple[1];\n\n\n QUnit.module('computed.' + name, {\n setup: function () {\n obj = _object.default.extend({\n union: macro('array', 'array2', 'array3')\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6]),\n array2: (0, _native_array.A)([4, 5, 6, 7, 8, 9, 4, 5, 6, 7, 8, 9]),\n array3: (0, _native_array.A)([1, 8, 10])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test(name + ' is readOnly', function () {\n QUnit.throws(function () {\n obj.set('union', 1);\n }, /Cannot set read-only property \"union\" on object:/);\n });\n\n QUnit.test('does not include duplicates', function () {\n var array = obj.get('array');\n var array2 = obj.get('array2');\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' does not include duplicates');\n\n array.pushObject(8);\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' does not add existing items');\n\n array.pushObject(11);\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], name + ' adds new items');\n\n (0, _mutable_array.removeAt)(array2, 6); // remove 7\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], name + ' does not remove items that are still in the dependent array');\n\n array2.removeObject(7);\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 8, 9, 10, 11], name + ' removes items when their last instance is gone');\n });\n\n QUnit.test('has set-union semantics', function () {\n var array = obj.get('array');\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], name + ' is initially correct');\n\n array.removeObject(6);\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], 'objects are not removed if they exist in other dependent arrays');\n\n array.clear();\n\n deepEqual(obj.get('union').sort(function (x, y) {\n return x - y;\n }), [1, 4, 5, 6, 7, 8, 9, 10], 'objects are removed when they are no longer in any dependent array');\n });\n });\n\n QUnit.module('computed.uniqBy', {\n setup: function () {\n obj = _object.default.extend({\n list: null,\n uniqueById: (0, _reduce_computed_macros.uniqBy)('list', 'id')\n }).create({\n list: (0, _native_array.A)([{ id: 1, value: 'one' }, { id: 2, value: 'two' }, { id: 1, value: 'one' }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('uniqBy is readOnly', function () {\n QUnit.throws(function () {\n obj.set('uniqueById', 1);\n }, /Cannot set read-only property \"uniqueById\" on object:/);\n });\n QUnit.test('does not include duplicates', function () {\n deepEqual(obj.get('uniqueById'), [{ id: 1, value: 'one' }, { id: 2, value: 'two' }]);\n });\n\n QUnit.test('it does not share state among instances', function () {\n var MyObject = _object.default.extend({\n list: [],\n uniqueByName: (0, _reduce_computed_macros.uniqBy)('list', 'name')\n });\n var a = MyObject.create({ list: [{ name: 'bob' }, { name: 'mitch' }, { name: 'mitch' }] });\n var b = MyObject.create({ list: [{ name: 'warren' }, { name: 'mitch' }] });\n\n deepEqual(a.get('uniqueByName'), [{ name: 'bob' }, { name: 'mitch' }]);\n // Making sure that 'mitch' appears\n deepEqual(b.get('uniqueByName'), [{ name: 'warren' }, { name: 'mitch' }]);\n });\n\n QUnit.test('it handles changes to the dependent array', function () {\n obj.get('list').pushObject({ id: 3, value: 'three' });\n\n deepEqual(obj.get('uniqueById'), [{ id: 1, value: 'one' }, { id: 2, value: 'two' }, { id: 3, value: 'three' }], 'The list includes three');\n\n obj.get('list').pushObject({ id: 3, value: 'three' });\n\n deepEqual(obj.get('uniqueById'), [{ id: 1, value: 'one' }, { id: 2, value: 'two' }, { id: 3, value: 'three' }], 'The list does not include a duplicate three');\n });\n\n QUnit.test('it returns an empty array when computed on a non-array', function () {\n var MyObject = _object.default.extend({\n list: null,\n uniq: (0, _reduce_computed_macros.uniqBy)('list', 'name')\n });\n var a = MyObject.create({ list: 'not an array' });\n\n deepEqual(a.get('uniq'), []);\n });\n\n QUnit.module('computed.intersect', {\n setup: function () {\n obj = _object.default.extend({\n intersection: (0, _reduce_computed_macros.intersect)('array', 'array2', 'array3')\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6]),\n array2: (0, _native_array.A)([3, 3, 3, 4, 5]),\n array3: (0, _native_array.A)([3, 5, 6, 7, 8])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('intersect is readOnly', function () {\n QUnit.throws(function () {\n obj.set('intersection', 1);\n }, /Cannot set read-only property \"intersection\" on object:/);\n });\n\n QUnit.test('it has set-intersection semantics', function () {\n var array2 = obj.get('array2');\n var array3 = obj.get('array3');\n\n deepEqual(obj.get('intersection').sort(function (x, y) {\n return x - y;\n }), [3, 5], 'intersection is initially correct');\n\n array2.shiftObject();\n\n deepEqual(obj.get('intersection').sort(function (x, y) {\n return x - y;\n }), [3, 5], 'objects are not removed when they are still in all dependent arrays');\n\n array2.shiftObject();\n\n deepEqual(obj.get('intersection').sort(function (x, y) {\n return x - y;\n }), [3, 5], 'objects are not removed when they are still in all dependent arrays');\n\n array2.shiftObject();\n\n deepEqual(obj.get('intersection'), [5], 'objects are removed once they are gone from all dependent arrays');\n\n array2.pushObject(1);\n\n deepEqual(obj.get('intersection'), [5], 'objects are not added as long as they are missing from any dependent array');\n\n array3.pushObject(1);\n\n deepEqual(obj.get('intersection').sort(function (x, y) {\n return x - y;\n }), [1, 5], 'objects added once they belong to all dependent arrays');\n });\n\n QUnit.module('setDiff', {\n setup: function () {\n obj = _object.default.extend({\n diff: (0, _reduce_computed_macros.setDiff)('array', 'array2')\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _native_array.A)([3, 4, 5, 10])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('setDiff is readOnly', function () {\n QUnit.throws(function () {\n obj.set('diff', 1);\n }, /Cannot set read-only property \"diff\" on object:/);\n });\n\n QUnit.test('it asserts if given fewer or more than two dependent properties', function () {\n expectAssertion(function () {\n _object.default.extend({\n diff: (0, _reduce_computed_macros.setDiff)('array')\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _native_array.A)([3, 4, 5])\n });\n }, /\\`Ember\\.computed\\.setDiff\\` requires exactly two dependent arrays/, 'setDiff requires two dependent arrays');\n\n expectAssertion(function () {\n _object.default.extend({\n diff: (0, _reduce_computed_macros.setDiff)('array', 'array2', 'array3')\n }).create({\n array: (0, _native_array.A)([1, 2, 3, 4, 5, 6, 7]),\n array2: (0, _native_array.A)([3, 4, 5]),\n array3: (0, _native_array.A)([7])\n });\n }, /\\`Ember\\.computed\\.setDiff\\` requires exactly two dependent arrays/, 'setDiff requires two dependent arrays');\n });\n\n QUnit.test('it has set-diff semantics', function () {\n var array1 = obj.get('array');\n var array2 = obj.get('array2');\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 6, 7], 'set-diff is initially correct');\n\n array2.popObject();\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 6, 7], 'removing objects from the remove set has no effect if the object is not in the keep set');\n\n array2.shiftObject();\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 3, 6, 7], 'removing objects from the remove set adds them if they\\'re in the keep set');\n\n array1.removeObject(3);\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 6, 7], 'removing objects from the keep array removes them from the computed array');\n\n array1.pushObject(5);\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 6, 7], 'objects added to the keep array that are in the remove array are not added to the computed array');\n\n array1.pushObject(22);\n\n deepEqual(obj.get('diff').sort(function (x, y) {\n return x - y;\n }), [1, 2, 6, 7, 22], 'objects added to the keep array not in the remove array are added to the computed array');\n });\n\n function commonSortTests() {\n QUnit.test('arrays are initially sorted', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n });\n\n QUnit.test('default sort order is correct', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'array is initially sorted');\n });\n\n QUnit.test('changing the dependent array updates the sorted array', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.set('items', [{ fname: 'Roose', lname: 'Bolton' }, { fname: 'Theon', lname: 'Greyjoy' }, { fname: 'Ramsey', lname: 'Bolton' }, { fname: 'Stannis', lname: 'Baratheon' }]);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Stannis', 'Ramsey', 'Roose', 'Theon'], 'changing dependent array updates sorted array');\n });\n\n QUnit.test('adding to the dependent array updates the sorted array', function () {\n var items = obj.get('items');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n items.pushObject({\n fname: 'Tyrion',\n lname: 'Lannister'\n });\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb'], 'Adding to the dependent array updates the sorted array');\n });\n\n QUnit.test('removing from the dependent array updates the sorted array', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.get('items').popObject();\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Robb'], 'Removing from the dependent array updates the sorted array');\n });\n\n QUnit.test('distinct items may be sort-equal, although their relative order will not be guaranteed', function () {\n // We recreate jaime and \"Cersei\" here only for test stability: we want\n // their guid-ordering to be deterministic\n var jaimeInDisguise = {\n fname: 'Cersei',\n lname: 'Lannister',\n age: 34\n };\n\n var jaime = {\n fname: 'Jaime',\n lname: 'Lannister',\n age: 34\n };\n\n var items = obj.get('items');\n\n items.replace(0, 1, [jaime]);\n items.replace(1, 1, [jaimeInDisguise]);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(jaimeInDisguise, 'fname', 'Jaime');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n\n (0, _emberMetal.set)(jaimeInDisguise, 'fname', 'Cersei');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'sorted array is updated');\n });\n\n QUnit.test('guid sort-order fallback with a search proxy is not confused by non-search ObjectProxys', function () {\n var tyrion = {\n fname: 'Tyrion',\n lname: 'Lannister'\n };\n\n var tyrionInDisguise = _object_proxy.default.create({\n fname: 'Yollo',\n lname: '',\n content: tyrion\n });\n\n var items = obj.get('items');\n\n items.pushObject(tyrion);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n\n items.pushObject(tyrionInDisguise);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Yollo', 'Cersei', 'Jaime', 'Tyrion', 'Bran', 'Robb']);\n });\n }\n\n QUnit.module('sort - sortProperties', {\n setup: function () {\n obj = _object.default.extend({\n sortedItems: (0, _reduce_computed_macros.sort)('items', 'itemSorting')\n }).create({\n itemSorting: (0, _native_array.A)(['lname', 'fname']),\n items: (0, _native_array.A)([{ fname: 'Jaime', lname: 'Lannister', age: 34 }, { fname: 'Cersei', lname: 'Lannister', age: 34 }, { fname: 'Robb', lname: 'Stark', age: 16 }, { fname: 'Bran', lname: 'Stark', age: 8 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('sort is readOnly', function () {\n QUnit.throws(function () {\n obj.set('sortedItems', 1);\n }, /Cannot set read-only property \"sortedItems\" on object:/);\n });\n\n commonSortTests();\n\n QUnit.test('updating sort properties detaches observers for old sort properties', function () {\n var objectToRemove = obj.get('items')[3];\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.set('itemSorting', (0, _native_array.A)(['fname:desc']));\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Robb', 'Jaime', 'Cersei', 'Bran'], 'after updating sort properties array is updated');\n\n obj.get('items').removeObject(objectToRemove);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Robb', 'Jaime', 'Cersei'], 'after removing item array is updated');\n\n (0, _emberMetal.set)(objectToRemove, 'lname', 'Updated-Stark');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Robb', 'Jaime', 'Cersei'], 'after changing removed item array is not updated');\n });\n\n QUnit.test('sort works if array property is null (non array value) on first evaluation of computed prop', function () {\n obj.set('items', null);\n deepEqual(obj.get('sortedItems'), []);\n obj.set('items', (0, _native_array.A)([{ fname: 'Cersei', lname: 'Lanister' }]));\n deepEqual(obj.get('sortedItems'), [{ fname: 'Cersei', lname: 'Lanister' }]);\n });\n\n QUnit.test('updating sort properties updates the sorted array', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.set('itemSorting', (0, _native_array.A)(['fname:desc']));\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Robb', 'Jaime', 'Cersei', 'Bran'], 'after updating sort properties array is updated');\n });\n\n QUnit.test('updating sort properties invalidates the sorted array', function () {\n var sortProps = obj.get('itemSorting');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n sortProps.clear();\n sortProps.pushObject('fname');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Bran', 'Cersei', 'Jaime', 'Robb'], 'after updating sort properties array is updated');\n });\n\n QUnit.test('updating new sort properties invalidates the sorted array', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.set('itemSorting', (0, _native_array.A)(['age:desc', 'fname:asc']));\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Robb', 'Bran'], 'precond - array is correct after item sorting is changed');\n\n (0, _emberMetal.set)(obj.get('items')[1], 'age', 29);\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Cersei', 'Robb', 'Bran'], 'after updating sort properties array is updated');\n });\n\n QUnit.test('sort direction defaults to ascending', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb']);\n });\n\n QUnit.test('sort direction defaults to ascending (with sort property change)', function () {\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n obj.set('itemSorting', (0, _native_array.A)(['fname']));\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Bran', 'Cersei', 'Jaime', 'Robb'], 'sort direction defaults to ascending');\n });\n\n QUnit.test('updating an item\\'s sort properties updates the sorted array', function () {\n var tyrionInDisguise = obj.get('items')[1];\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(tyrionInDisguise, 'fname', 'Tyrion');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Tyrion', 'Bran', 'Robb'], 'updating an item\\'s sort properties updates the sorted array');\n });\n\n QUnit.test('updating several of an item\\'s sort properties updated the sorted array', function () {\n var sansaInDisguise = obj.get('items')[1];\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n (0, _emberMetal.setProperties)(sansaInDisguise, {\n fname: 'Sansa',\n lname: 'Stark'\n });\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Bran', 'Robb', 'Sansa'], 'updating an item\\'s sort properties updates the sorted array');\n });\n\n QUnit.test('updating an item\\'s sort properties does not error when binary search does a self compare (#3273)', function () {\n var jaime = {\n name: 'Jaime',\n status: 1\n };\n\n var cersei = {\n name: 'Cersei',\n status: 2\n };\n\n var obj = _object.default.extend({\n sortProps: ['status'],\n sortedPeople: (0, _reduce_computed_macros.sort)('people', 'sortProps')\n }).create({\n people: [jaime, cersei]\n });\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(cersei, 'status', 3);\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei], 'array is sorted correctly');\n\n (0, _emberMetal.set)(cersei, 'status', 2);\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei], 'array is sorted correctly');\n });\n\n QUnit.test('array observers do not leak', function () {\n var daria = { name: 'Daria' };\n var jane = { name: 'Jane' };\n\n var sisters = [jane, daria];\n\n var sortProps = (0, _native_array.A)(['name']);\n var jaime = _object.default.extend({\n sortedPeople: (0, _reduce_computed_macros.sort)('sisters', 'sortProps'),\n sortProps: sortProps\n }).create({\n sisters: sisters\n });\n\n jaime.get('sortedPeople');\n (0, _emberMetal.run)(jaime, 'destroy');\n\n try {\n sortProps.pushObject({\n name: 'Anna'\n });\n ok(true);\n } catch (e) {\n ok(false, e);\n }\n });\n\n QUnit.test('property paths in sort properties update the sorted array', function () {\n var jaime = {\n relatedObj: { status: 1, firstName: 'Jaime', lastName: 'Lannister' }\n };\n\n var cersei = {\n relatedObj: { status: 2, firstName: 'Cersei', lastName: 'Lannister' }\n };\n\n var sansa = _object.default.create({\n relatedObj: { status: 3, firstName: 'Sansa', lastName: 'Stark' }\n });\n\n var obj = _object.default.extend({\n sortProps: ['relatedObj.status'],\n sortedPeople: (0, _reduce_computed_macros.sort)('people', 'sortProps')\n }).create({\n people: [jaime, cersei, sansa]\n });\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei, sansa], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(cersei, 'status', 3);\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei, sansa], 'array is sorted correctly');\n\n (0, _emberMetal.set)(cersei, 'status', 1);\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei, sansa], 'array is sorted correctly');\n\n sansa.set('status', 1);\n\n deepEqual(obj.get('sortedPeople'), [jaime, cersei, sansa], 'array is sorted correctly');\n\n obj.set('sortProps', ['relatedObj.firstName']);\n\n deepEqual(obj.get('sortedPeople'), [cersei, jaime, sansa], 'array is sorted correctly');\n });\n\n QUnit.test('if the dependentKey is neither an array nor object, it will return an empty array', function () {\n (0, _emberMetal.set)(obj, 'items', null);\n ok((0, _utils.isArray)(obj.get('sortedItems')), 'returns an empty arrays');\n\n (0, _emberMetal.set)(obj, 'array', undefined);\n ok((0, _utils.isArray)(obj.get('sortedItems')), 'returns an empty arrays');\n\n (0, _emberMetal.set)(obj, 'array', 'not an array');\n ok((0, _utils.isArray)(obj.get('sortedItems')), 'returns an empty arrays');\n });\n\n function sortByLnameFname(a, b) {\n var lna = (0, _emberMetal.get)(a, 'lname');\n var lnb = (0, _emberMetal.get)(b, 'lname');\n\n if (lna !== lnb) {\n return lna > lnb ? 1 : -1;\n }\n\n return sortByFnameAsc(a, b);\n }\n\n function sortByFnameAsc(a, b) {\n var fna = (0, _emberMetal.get)(a, 'fname');\n var fnb = (0, _emberMetal.get)(b, 'fname');\n\n if (fna === fnb) {\n return 0;\n }\n return fna > fnb ? 1 : -1;\n }\n\n QUnit.module('sort - sort function', {\n setup: function () {\n obj = _object.default.extend({\n sortedItems: (0, _reduce_computed_macros.sort)('items.@each.fname', sortByLnameFname)\n }).create({\n items: (0, _native_array.A)([{ fname: 'Jaime', lname: 'Lannister', age: 34 }, { fname: 'Cersei', lname: 'Lannister', age: 34 }, { fname: 'Robb', lname: 'Stark', age: 16 }, { fname: 'Bran', lname: 'Stark', age: 8 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('sort has correct `this`', function () {\n var obj = _object.default.extend({\n sortedItems: (0, _reduce_computed_macros.sort)('items.@each.fname', function (a, b) {\n equal(this, obj, 'expected the object to be `this`');\n return this.sortByLastName(a, b);\n }),\n sortByLastName: function (a, b) {\n return sortByFnameAsc(a, b);\n }\n }).create({\n items: (0, _native_array.A)([{ fname: 'Jaime', lname: 'Lannister', age: 34 }, { fname: 'Cersei', lname: 'Lannister', age: 34 }, { fname: 'Robb', lname: 'Stark', age: 16 }, { fname: 'Bran', lname: 'Stark', age: 8 }])\n });\n\n obj.get('sortedItems');\n });\n\n QUnit.test('sort (with function) is readOnly', function () {\n QUnit.throws(function () {\n obj.set('sortedItems', 1);\n }, /Cannot set read-only property \"sortedItems\" on object:/);\n });\n\n commonSortTests();\n\n QUnit.test('changing item properties specified via @each triggers a resort of the modified item', function () {\n var items = (0, _emberMetal.get)(obj, 'items');\n\n var tyrionInDisguise = items[1];\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(tyrionInDisguise, 'fname', 'Tyrion');\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Jaime', 'Tyrion', 'Bran', 'Robb'], 'updating a specified property on an item resorts it');\n });\n\n QUnit.test('changing item properties not specified via @each does not trigger a resort', function () {\n var items = obj.get('items');\n var cersei = items[1];\n\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'precond - array is initially sorted');\n\n (0, _emberMetal.set)(cersei, 'lname', 'Stark'); // plot twist! (possibly not canon)\n\n // The array has become unsorted. If your sort function is sensitive to\n // properties, they *must* be specified as dependent item property keys or\n // we'll be doing binary searches on unsorted arrays.\n deepEqual(obj.get('sortedItems').mapBy('fname'), ['Cersei', 'Jaime', 'Bran', 'Robb'], 'updating an unspecified property on an item does not resort it');\n });\n\n QUnit.module('sort - stability', {\n setup: function () {\n obj = _object.default.extend({\n sortProps: ['count', 'name'],\n sortedItems: (0, _reduce_computed_macros.sort)('items', 'sortProps')\n }).create({\n items: [{ name: 'A', count: 1, thing: 4 }, { name: 'B', count: 1, thing: 3 }, { name: 'C', count: 1, thing: 2 }, { name: 'D', count: 1, thing: 4 }]\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('sorts correctly as only one property changes', function () {\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n\n (0, _emberMetal.set)(obj.get('items')[3], 'count', 2);\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'final');\n });\n\n var klass = void 0;\n QUnit.module('sort - concurrency', {\n setup: function () {\n klass = _object.default.extend({\n sortProps: ['count'],\n sortedItems: (0, _reduce_computed_macros.sort)('items', 'sortProps'),\n customSortedItems: (0, _reduce_computed_macros.sort)('items.@each.count', function (a, b) {\n return a.count - b.count;\n })\n });\n obj = klass.create({\n items: (0, _native_array.A)([{ name: 'A', count: 1, thing: 4, id: 1 }, { name: 'B', count: 2, thing: 3, id: 2 }, { name: 'C', count: 3, thing: 2, id: 3 }, { name: 'D', count: 4, thing: 1, id: 4 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('sorts correctly after mutation to the sort properties', function () {\n var sorted = obj.get('sortedItems');\n deepEqual(sorted.mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n\n (0, _emberMetal.set)(obj.get('items')[1], 'count', 5);\n (0, _emberMetal.set)(obj.get('items')[2], 'count', 6);\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n });\n\n QUnit.test('sort correctly after mutation to the sort', function () {\n deepEqual(obj.get('customSortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n\n (0, _emberMetal.set)(obj.get('items')[1], 'count', 5);\n (0, _emberMetal.set)(obj.get('items')[2], 'count', 6);\n\n deepEqual(obj.get('customSortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n });\n\n QUnit.test('sort correctly on multiple instances of the same class', function () {\n var obj2 = klass.create({\n items: (0, _native_array.A)([{ name: 'W', count: 23, thing: 4 }, { name: 'X', count: 24, thing: 3 }, { name: 'Y', count: 25, thing: 2 }, { name: 'Z', count: 26, thing: 1 }])\n });\n\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['W', 'X', 'Y', 'Z'], 'initial');\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'initial');\n\n (0, _emberMetal.set)(obj.get('items')[1], 'count', 5);\n (0, _emberMetal.set)(obj.get('items')[2], 'count', 6);\n (0, _emberMetal.set)(obj2.get('items')[1], 'count', 27);\n (0, _emberMetal.set)(obj2.get('items')[2], 'count', 28);\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'final');\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['W', 'Z', 'X', 'Y'], 'final');\n\n obj.set('sortProps', ['thing']);\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['D', 'C', 'B', 'A'], 'final');\n\n obj2.notifyPropertyChange('sortedItems'); // invalidate to flush, to get DK refreshed\n obj2.get('sortedItems'); // flush to get updated DK\n\n obj2.set('items.firstObject.count', 9999);\n\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['Z', 'X', 'Y', 'W'], 'final');\n });\n\n QUnit.test('sort correctly when multiple sorts are chained on the same instance of a class', function () {\n var obj2 = klass.extend({\n items: (0, _emberMetal.computed)('sibling.sortedItems.[]', function () {\n return this.get('sibling.sortedItems');\n }),\n asdf: (0, _emberMetal.observer)('sibling.sortedItems.[]', function () {\n this.get('sibling.sortedItems');\n })\n }).create({\n sibling: obj\n });\n\n /*\n ┌───────────┐ ┌────────────┐\n │sortedProps│ │sortedProps2│\n └───────────┘ └────────────┘\n ▲ ▲\n │ ╔═══════════╗ │\n │─ ─ ─ ─ ─ ─ ─ ▶║ CP (sort) ║◀─ ─ ─ ─ ─ ─ ─ ┤\n │ ╚═══════════╝ │\n │ │\n ┌───────────┐ ┏━━━━━━━━━━━┓ ┏━━━━━━━━━━━━┓\n │ │ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃ ┌ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃\n │ items │◀── items.@each.count │◀──┃sortedItems┃◀─── items.@each.count │◀───┃sortedItems2┃\n │ │ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃ └ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ┃ ┃\n └───────────┘ ┗━━━━━━━━━━━┛ ┗━━━━━━━━━━━━┛\n */\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'obj.sortedItems.name should be sorted alpha');\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'obj2.sortedItems.name should be sorted alpha');\n\n (0, _emberMetal.set)(obj.get('items')[1], 'count', 5);\n (0, _emberMetal.set)(obj.get('items')[2], 'count', 6);\n\n deepEqual(obj.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'obj.sortedItems.name should now have changed');\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'D', 'B', 'C'], 'obj2.sortedItems.name should still mirror sortedItems2');\n\n obj.set('sortProps', ['thing']);\n obj2.set('sortProps', ['id']);\n\n deepEqual(obj2.get('sortedItems').mapBy('name'), ['A', 'B', 'C', 'D'], 'we now sort obj2 by id, so we expect a b c d');\n deepEqual(obj.get('sortedItems').mapBy('name'), ['D', 'C', 'B', 'A'], 'we now sort obj by thing');\n });\n\n QUnit.module('max', {\n setup: function () {\n obj = _object.default.extend({\n max: (0, _reduce_computed_macros.max)('items')\n }).create({\n items: (0, _native_array.A)([1, 2, 3])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('max is readOnly', function () {\n QUnit.throws(function () {\n obj.set('max', 1);\n }, /Cannot set read-only property \"max\" on object:/);\n });\n\n QUnit.test('max tracks the max number as objects are added', function () {\n equal(obj.get('max'), 3, 'precond - max is initially correct');\n\n var items = obj.get('items');\n\n items.pushObject(5);\n\n equal(obj.get('max'), 5, 'max updates when a larger number is added');\n\n items.pushObject(2);\n\n equal(obj.get('max'), 5, 'max does not update when a smaller number is added');\n });\n\n QUnit.test('max recomputes when the current max is removed', function () {\n equal(obj.get('max'), 3, 'precond - max is initially correct');\n\n obj.get('items').removeObject(2);\n\n equal(obj.get('max'), 3, 'max is unchanged when a non-max item is removed');\n\n obj.get('items').removeObject(3);\n\n equal(obj.get('max'), 1, 'max is recomputed when the current max is removed');\n });\n\n QUnit.module('min', {\n setup: function () {\n obj = _object.default.extend({\n min: (0, _reduce_computed_macros.min)('items')\n }).create({\n items: (0, _native_array.A)([1, 2, 3])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('min is readOnly', function () {\n QUnit.throws(function () {\n obj.set('min', 1);\n }, /Cannot set read-only property \"min\" on object:/);\n });\n\n QUnit.test('min tracks the min number as objects are added', function () {\n equal(obj.get('min'), 1, 'precond - min is initially correct');\n\n obj.get('items').pushObject(-2);\n\n equal(obj.get('min'), -2, 'min updates when a smaller number is added');\n\n obj.get('items').pushObject(2);\n\n equal(obj.get('min'), -2, 'min does not update when a larger number is added');\n });\n\n QUnit.test('min recomputes when the current min is removed', function () {\n var items = obj.get('items');\n\n equal(obj.get('min'), 1, 'precond - min is initially correct');\n\n items.removeObject(2);\n\n equal(obj.get('min'), 1, 'min is unchanged when a non-min item is removed');\n\n items.removeObject(1);\n\n equal(obj.get('min'), 3, 'min is recomputed when the current min is removed');\n });\n\n QUnit.module('Ember.arrayComputed - mixed sugar', {\n setup: function () {\n obj = _object.default.extend({\n lannisters: (0, _reduce_computed_macros.filterBy)('items', 'lname', 'Lannister'),\n lannisterSorting: (0, _native_array.A)(['fname']),\n sortedLannisters: (0, _reduce_computed_macros.sort)('lannisters', 'lannisterSorting'),\n\n starks: (0, _reduce_computed_macros.filterBy)('items', 'lname', 'Stark'),\n starkAges: (0, _reduce_computed_macros.mapBy)('starks', 'age'),\n oldestStarkAge: (0, _reduce_computed_macros.max)('starkAges')\n }).create({\n items: (0, _native_array.A)([{ fname: 'Jaime', lname: 'Lannister', age: 34 }, { fname: 'Cersei', lname: 'Lannister', age: 34 }, { fname: 'Robb', lname: 'Stark', age: 16 }, { fname: 'Bran', lname: 'Stark', age: 8 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('filtering and sorting can be combined', function () {\n var items = obj.get('items');\n\n deepEqual(obj.get('sortedLannisters').mapBy('fname'), ['Cersei', 'Jaime'], 'precond - array is initially filtered and sorted');\n\n items.pushObject({ fname: 'Tywin', lname: 'Lannister' });\n items.pushObject({ fname: 'Lyanna', lname: 'Stark' });\n items.pushObject({ fname: 'Gerion', lname: 'Lannister' });\n\n deepEqual(obj.get('sortedLannisters').mapBy('fname'), ['Cersei', 'Gerion', 'Jaime', 'Tywin'], 'updates propagate to array');\n });\n\n QUnit.test('filtering, sorting and reduce (max) can be combined', function () {\n var items = obj.get('items');\n\n equal(16, obj.get('oldestStarkAge'), 'precond - end of chain is initially correct');\n\n items.pushObject({ fname: 'Rickon', lname: 'Stark', age: 5 });\n\n equal(16, obj.get('oldestStarkAge'), 'chain is updated correctly');\n\n items.pushObject({ fname: 'Eddard', lname: 'Stark', age: 35 });\n\n equal(35, obj.get('oldestStarkAge'), 'chain is updated correctly');\n });\n\n function todo(name, priority) {\n return _object.default.create({ name: name, priority: priority });\n }\n\n function priorityComparator(todoA, todoB) {\n var pa = parseInt((0, _emberMetal.get)(todoA, 'priority'), 10);\n var pb = parseInt((0, _emberMetal.get)(todoB, 'priority'), 10);\n\n return pa - pb;\n }\n\n function evenPriorities(todo) {\n var p = parseInt((0, _emberMetal.get)(todo, 'priority'), 10);\n\n return p % 2 === 0;\n }\n\n QUnit.module('Ember.arrayComputed - chains', {\n setup: function () {\n obj = _object.default.extend({\n sorted: (0, _reduce_computed_macros.sort)('todos.@each.priority', priorityComparator),\n filtered: (0, _reduce_computed_macros.filter)('sorted.@each.priority', evenPriorities)\n }).create({\n todos: (0, _native_array.A)([todo('E', 4), todo('D', 3), todo('C', 2), todo('B', 1), todo('A', 0)])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('it can filter and sort when both depend on the same item property', function () {\n deepEqual(obj.get('todos').mapBy('name'), ['E', 'D', 'C', 'B', 'A'], 'precond - todos initially correct');\n deepEqual(obj.get('sorted').mapBy('name'), ['A', 'B', 'C', 'D', 'E'], 'precond - sorted initially correct');\n deepEqual(obj.get('filtered').mapBy('name'), ['A', 'C', 'E'], 'precond - filtered initially correct');\n\n (0, _emberMetal.set)(obj.get('todos')[1], 'priority', 6);\n\n deepEqual(obj.get('todos').mapBy('name'), ['E', 'D', 'C', 'B', 'A'], 'precond - todos remain correct');\n deepEqual(obj.get('sorted').mapBy('name'), ['A', 'B', 'C', 'E', 'D'], 'precond - sorted updated correctly');\n deepEqual(obj.get('filtered').mapBy('name'), ['A', 'C', 'E', 'D'], 'filtered updated correctly');\n });\n\n var userFnCalls = void 0;\n QUnit.module('Chaining array and reduced CPs', {\n setup: function () {\n userFnCalls = 0;\n obj = _object.default.extend({\n mapped: (0, _reduce_computed_macros.mapBy)('array', 'v'),\n max: (0, _reduce_computed_macros.max)('mapped'),\n maxDidChange: (0, _emberMetal.observer)('max', function () {\n return userFnCalls++;\n })\n }).create({\n array: (0, _native_array.A)([{ v: 1 }, { v: 3 }, { v: 2 }, { v: 1 }])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('it computes interdependent array computed properties', function () {\n equal(obj.get('max'), 3, 'sanity - it properly computes the maximum value');\n\n var calls = 0;\n\n (0, _emberMetal.addObserver)(obj, 'max', function () {\n return calls++;\n });\n\n obj.get('array').pushObject({ v: 5 });\n\n equal(obj.get('max'), 5, 'maximum value is updated correctly');\n equal(userFnCalls, 1, 'object defined observers fire');\n equal(calls, 1, 'runtime created observers fire');\n });\n\n QUnit.module('sum', {\n setup: function () {\n obj = _object.default.extend({\n total: (0, _reduce_computed_macros.sum)('array')\n }).create({\n array: (0, _native_array.A)([1, 2, 3])\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(obj, 'destroy');\n }\n });\n\n QUnit.test('sum is readOnly', function () {\n QUnit.throws(function () {\n obj.set('total', 1);\n }, /Cannot set read-only property \"total\" on object:/);\n });\n QUnit.test('sums the values in the dependentKey', function () {\n equal(obj.get('total'), 6, 'sums the values');\n });\n\n QUnit.test('if the dependentKey is neither an array nor object, it will return `0`', function () {\n (0, _emberMetal.set)(obj, 'array', null);\n equal((0, _emberMetal.get)(obj, 'total'), 0, 'returns 0');\n\n (0, _emberMetal.set)(obj, 'array', undefined);\n equal((0, _emberMetal.get)(obj, 'total'), 0, 'returns 0');\n\n (0, _emberMetal.set)(obj, 'array', 'not an array');\n equal((0, _emberMetal.get)(obj, 'total'), 0, 'returns 0');\n });\n\n QUnit.test('updates when array is modified', function () {\n obj.get('array').pushObject(1);\n\n equal(obj.get('total'), 7, 'recomputed when elements are added');\n\n obj.get('array').popObject();\n\n equal(obj.get('total'), 6, 'recomputes when elements are removed');\n });\n\n QUnit.module('collect');\n\n (0, _internalTestHelpers.testBoth)('works', function (get, set) {\n var obj = { one: 'foo', two: 'bar', three: null };\n (0, _emberMetal.defineProperty)(obj, 'all', (0, _reduce_computed_macros.collect)('one', 'two', 'three', 'four'));\n\n deepEqual(get(obj, 'all'), ['foo', 'bar', null, null], 'have all of them');\n\n set(obj, 'four', true);\n\n deepEqual(get(obj, 'all'), ['foo', 'bar', null, true], 'have all of them');\n\n var a = [];\n set(obj, 'one', 0);\n set(obj, 'three', a);\n\n deepEqual(get(obj, 'all'), [0, 'bar', a, true], 'have all of them');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/computed/reduce_computed_macros_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/computed/reduce_computed_macros_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/controllers/controller_test', ['ember-runtime/controllers/controller', 'ember-runtime/system/service', 'ember-metal', 'ember-runtime/system/object', 'ember-runtime/inject', 'internal-test-helpers'], function (_controller, _service, _emberMetal, _object, _inject, _internalTestHelpers) {\n 'use strict';\n\n /* global EmberDev */\n\n QUnit.module('Controller event handling');\n\n QUnit.test('can access `actions` hash via `_actions` [DEPRECATED]', function () {\n expect(2);\n\n var controller = _controller.default.extend({\n actions: {\n foo: function () {\n ok(true, 'called foo action');\n }\n }\n }).create();\n\n expectDeprecation(function () {\n controller._actions.foo();\n }, 'Usage of `_actions` is deprecated, use `actions` instead.');\n });\n\n QUnit.test('Action can be handled by a function on actions object', function () {\n expect(1);\n var TestController = _controller.default.extend({\n actions: {\n poke: function () {\n ok(true, 'poked');\n }\n }\n });\n var controller = TestController.create();\n controller.send('poke');\n });\n\n QUnit.test('A handled action can be bubbled to the target for continued processing', function () {\n expect(2);\n var TestController = _controller.default.extend({\n actions: {\n poke: function () {\n ok(true, 'poked 1');\n return true;\n }\n }\n });\n\n var controller = TestController.create({\n target: _controller.default.extend({\n actions: {\n poke: function () {\n ok(true, 'poked 2');\n }\n }\n }).create()\n });\n controller.send('poke');\n });\n\n QUnit.test('Action can be handled by a superclass\\' actions object', function () {\n expect(4);\n\n var SuperController = _controller.default.extend({\n actions: {\n foo: function () {\n ok(true, 'foo');\n },\n bar: function (msg) {\n equal(msg, 'HELLO');\n }\n }\n });\n\n var BarControllerMixin = _emberMetal.Mixin.create({\n actions: {\n bar: function (msg) {\n equal(msg, 'HELLO');\n this._super(msg);\n }\n }\n });\n\n var IndexController = SuperController.extend(BarControllerMixin, {\n actions: {\n baz: function () {\n ok(true, 'baz');\n }\n }\n });\n\n var controller = IndexController.create({});\n controller.send('foo');\n controller.send('bar', 'HELLO');\n controller.send('baz');\n });\n\n QUnit.module('Controller deprecations');\n\n QUnit.module('Controller Content -> Model Alias');\n\n QUnit.test('`content` is a deprecated alias of `model`', function () {\n expect(2);\n var controller = _controller.default.extend({\n model: 'foo-bar'\n }).create();\n\n expectDeprecation(function () {\n equal(controller.get('content'), 'foo-bar', 'content is an alias of model');\n });\n });\n\n QUnit.test('`content` is not moved to `model` when `model` is unset', function () {\n expect(2);\n var controller = void 0;\n\n ignoreDeprecation(function () {\n controller = _controller.default.extend({\n content: 'foo-bar'\n }).create();\n });\n\n notEqual(controller.get('model'), 'foo-bar', 'model is set properly');\n equal(controller.get('content'), 'foo-bar', 'content is not set properly');\n });\n\n QUnit.test('specifying `content` (without `model` specified) does not result in deprecation', function () {\n expect(2);\n expectNoDeprecation();\n\n var controller = _controller.default.extend({\n content: 'foo-bar'\n }).create();\n\n equal((0, _emberMetal.get)(controller, 'content'), 'foo-bar');\n });\n\n QUnit.test('specifying `content` (with `model` specified) does not result in deprecation', function () {\n expect(3);\n expectNoDeprecation();\n\n var controller = _controller.default.extend({\n content: 'foo-bar',\n model: 'blammo'\n }).create();\n\n equal((0, _emberMetal.get)(controller, 'content'), 'foo-bar');\n equal((0, _emberMetal.get)(controller, 'model'), 'blammo');\n });\n\n QUnit.module('Controller injected properties');\n\n if (!EmberDev.runningProdBuild) {\n QUnit.test('defining a controller on a non-controller should fail assertion', function () {\n expectAssertion(function () {\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n var AnObject = _object.default.extend({\n foo: _inject.default.controller('bar')\n });\n\n owner.register('controller:bar', _object.default.extend());\n owner.register('foo:main', AnObject);\n\n owner.lookup('foo:main');\n }, /Defining an injected controller property on a non-controller is not allowed./);\n });\n }\n\n QUnit.test('controllers can be injected into controllers', function () {\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n owner.register('controller:post', _controller.default.extend({\n postsController: _inject.default.controller('posts')\n }));\n\n owner.register('controller:posts', _controller.default.extend());\n\n var postController = owner.lookup('controller:post');\n var postsController = owner.lookup('controller:posts');\n\n equal(postsController, postController.get('postsController'), 'controller.posts is injected');\n });\n\n QUnit.test('services can be injected into controllers', function () {\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n owner.register('controller:application', _controller.default.extend({\n authService: _inject.default.service('auth')\n }));\n\n owner.register('service:auth', _service.default.extend());\n\n var appController = owner.lookup('controller:application');\n var authService = owner.lookup('service:auth');\n\n equal(authService, appController.get('authService'), 'service.auth is injected');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/controllers/controller_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/controllers/controller_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/compare_test', ['ember-runtime/utils', 'ember-runtime/system/object', 'ember-runtime/compare', 'ember-runtime/mixins/comparable'], function (_utils, _object, _compare, _comparable) {\n 'use strict';\n\n var data = [];\n var Comp = _object.default.extend(_comparable.default);\n\n Comp.reopenClass({\n compare: function (obj) {\n return obj.get('val');\n }\n });\n\n QUnit.module('Ember.compare()', {\n setup: function () {\n data[0] = null;\n data[1] = false;\n data[2] = true;\n data[3] = -12;\n data[4] = 3.5;\n data[5] = 'a string';\n data[6] = 'another string';\n data[7] = 'last string';\n data[8] = [1, 2];\n data[9] = [1, 2, 3];\n data[10] = [1, 3];\n data[11] = { a: 'hash' };\n data[12] = _object.default.create();\n data[13] = function (a) {\n return a;\n };\n data[14] = new Date('2012/01/01');\n data[15] = new Date('2012/06/06');\n }\n });\n\n QUnit.test('ordering should work', function () {\n var suspect = void 0,\n comparable = void 0,\n failureMessage = void 0,\n suspectIndex = void 0,\n comparableIndex = void 0;\n\n for (suspectIndex = 0; suspectIndex < data.length; suspectIndex++) {\n suspect = data[suspectIndex];\n\n equal((0, _compare.default)(suspect, suspect), 0, suspectIndex + ' should equal itself');\n\n for (comparableIndex = suspectIndex + 1; comparableIndex < data.length; comparableIndex++) {\n comparable = data[comparableIndex];\n\n failureMessage = 'data[' + suspectIndex + '] (' + (0, _utils.typeOf)(suspect) + ') should be smaller than data[' + comparableIndex + '] (' + (0, _utils.typeOf)(comparable) + ')';\n\n equal((0, _compare.default)(suspect, comparable), -1, failureMessage);\n }\n }\n });\n\n QUnit.test('comparables should return values in the range of -1, 0, 1', function () {\n var negOne = Comp.create({\n val: -1\n });\n\n var zero = Comp.create({\n val: 0\n });\n\n var one = Comp.create({\n val: 1\n });\n\n equal((0, _compare.default)(negOne, 'a'), -1, 'First item comparable - returns -1 (not negated)');\n equal((0, _compare.default)(zero, 'b'), 0, 'First item comparable - returns 0 (not negated)');\n equal((0, _compare.default)(one, 'c'), 1, 'First item comparable - returns 1 (not negated)');\n\n equal((0, _compare.default)('a', negOne), 1, 'Second item comparable - returns -1 (negated)');\n equal((0, _compare.default)('b', zero), 0, 'Second item comparable - returns 0 (negated)');\n equal((0, _compare.default)('c', one), -1, 'Second item comparable - returns 1 (negated)');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/core/compare_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/compare_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/copy_test', ['ember-runtime/copy'], function (_copy) {\n 'use strict';\n\n QUnit.module('Ember Copy Method');\n\n QUnit.test('Ember.copy null', function () {\n var obj = { field: null };\n\n equal((0, _copy.default)(obj, true).field, null, 'null should still be null');\n });\n\n QUnit.test('Ember.copy date', function () {\n var date = new Date(2014, 7, 22);\n var dateCopy = (0, _copy.default)(date);\n\n equal(date.getTime(), dateCopy.getTime(), 'dates should be equivalent');\n });\n\n QUnit.test('Ember.copy null prototype object', function () {\n var obj = Object.create(null);\n\n obj.foo = 'bar';\n\n equal((0, _copy.default)(obj).foo, 'bar', 'bar should still be bar');\n });\n\n QUnit.test('Ember.copy Array', function () {\n var array = [1, null, new Date(2015, 9, 9), 'four'];\n var arrayCopy = (0, _copy.default)(array);\n\n deepEqual(array, arrayCopy, 'array content cloned successfully in new array');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/core/copy_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/copy_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/isEqual_test', ['ember-runtime/is-equal'], function (_isEqual) {\n 'use strict';\n\n QUnit.module('isEqual');\n\n QUnit.test('undefined and null', function () {\n ok((0, _isEqual.default)(undefined, undefined), 'undefined is equal to undefined');\n ok(!(0, _isEqual.default)(undefined, null), 'undefined is not equal to null');\n ok((0, _isEqual.default)(null, null), 'null is equal to null');\n ok(!(0, _isEqual.default)(null, undefined), 'null is not equal to undefined');\n });\n\n QUnit.test('strings should be equal', function () {\n ok(!(0, _isEqual.default)('Hello', 'Hi'), 'different Strings are unequal');\n ok((0, _isEqual.default)('Hello', 'Hello'), 'same Strings are equal');\n });\n\n QUnit.test('numericals should be equal', function () {\n ok((0, _isEqual.default)(24, 24), 'same numbers are equal');\n ok(!(0, _isEqual.default)(24, 21), 'different numbers are inequal');\n });\n\n QUnit.test('dates should be equal', function () {\n ok((0, _isEqual.default)(new Date(1985, 7, 22), new Date(1985, 7, 22)), 'same dates are equal');\n ok(!(0, _isEqual.default)(new Date(2014, 7, 22), new Date(1985, 7, 22)), 'different dates are not equal');\n });\n\n QUnit.test('array should be equal', function () {\n // NOTE: We don't test for array contents -- that would be too expensive.\n ok(!(0, _isEqual.default)([1, 2], [1, 2]), 'two array instances with the same values should not be equal');\n ok(!(0, _isEqual.default)([1, 2], [1]), 'two array instances with different values should not be equal');\n });\n\n QUnit.test('first object implements isEqual should use it', function () {\n ok((0, _isEqual.default)({\n isEqual: function () {\n return true;\n }\n }, null), 'should return true always');\n\n var obj = {\n isEqual: function () {\n return false;\n }\n };\n equal((0, _isEqual.default)(obj, obj), false, 'should return false because isEqual returns false');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/core/isEqual_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/isEqual_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/is_array_test', ['ember-runtime/utils', 'ember-runtime/system/native_array', 'ember-runtime/system/array_proxy', 'ember-environment'], function (_utils, _native_array, _array_proxy, _emberEnvironment) {\n 'use strict';\n\n QUnit.module('Ember Type Checking');\n\n var global = undefined;\n\n QUnit.test('Ember.isArray', function () {\n var numarray = [1, 2, 3];\n var number = 23;\n var strarray = ['Hello', 'Hi'];\n var string = 'Hello';\n var object = {};\n var length = { length: 12 };\n var strangeLength = { length: 'yes' };\n var fn = function () {};\n var arrayProxy = _array_proxy.default.create({ content: (0, _native_array.A)() });\n\n equal((0, _utils.isArray)(numarray), true, '[1,2,3]');\n equal((0, _utils.isArray)(number), false, '23');\n equal((0, _utils.isArray)(strarray), true, '[\"Hello\", \"Hi\"]');\n equal((0, _utils.isArray)(string), false, '\"Hello\"');\n equal((0, _utils.isArray)(object), false, '{}');\n equal((0, _utils.isArray)(length), true, '{ length: 12 }');\n equal((0, _utils.isArray)(strangeLength), false, '{ length: \"yes\" }');\n equal((0, _utils.isArray)(global), false, 'global');\n equal((0, _utils.isArray)(fn), false, 'function() {}');\n equal((0, _utils.isArray)(arrayProxy), true, '[]');\n });\n\n if (_emberEnvironment.environment.window && typeof _emberEnvironment.environment.window.FileList === 'function') {\n QUnit.test('Ember.isArray(fileList)', function () {\n var fileListElement = document.createElement('input');\n fileListElement.type = 'file';\n var fileList = fileListElement.files;\n equal((0, _utils.isArray)(fileList), false, 'fileList');\n });\n }\n});","QUnit.module('ESLint | ember-runtime/tests/core/is_array_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/is_array_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/is_empty_test', ['ember-metal', 'ember-runtime/system/array_proxy', 'ember-runtime/system/native_array'], function (_emberMetal, _array_proxy, _native_array) {\n 'use strict';\n\n QUnit.module('Ember.isEmpty');\n\n QUnit.test('Ember.isEmpty', function () {\n var arrayProxy = _array_proxy.default.create({ content: (0, _native_array.A)() });\n\n equal(true, (0, _emberMetal.isEmpty)(arrayProxy), 'for an ArrayProxy that has empty content');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/core/is_empty_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/is_empty_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/core/type_of_test', ['ember-runtime/utils', 'ember-runtime/system/object', 'ember-environment'], function (_utils, _object, _emberEnvironment) {\n 'use strict';\n\n QUnit.module('Ember Type Checking');\n\n QUnit.test('Ember.typeOf', function () {\n var MockedDate = function () {};\n MockedDate.prototype = new Date();\n\n var mockedDate = new MockedDate();\n var date = new Date();\n var error = new Error('boum');\n var object = { a: 'b' };\n var a = null;\n var arr = [1, 2, 3];\n var obj = {};\n var instance = _object.default.create({\n method: function () {}\n });\n\n equal((0, _utils.typeOf)(), 'undefined', 'undefined');\n equal((0, _utils.typeOf)(null), 'null', 'null');\n equal((0, _utils.typeOf)('Cyril'), 'string', 'Cyril');\n equal((0, _utils.typeOf)(101), 'number', '101');\n equal((0, _utils.typeOf)(true), 'boolean', 'true');\n equal((0, _utils.typeOf)([1, 2, 90]), 'array', '[1,2,90]');\n equal((0, _utils.typeOf)(/abc/), 'regexp', '/abc/');\n equal((0, _utils.typeOf)(date), 'date', 'new Date()');\n equal((0, _utils.typeOf)(mockedDate), 'date', 'mocked date');\n equal((0, _utils.typeOf)(error), 'error', 'error');\n equal((0, _utils.typeOf)(object), 'object', 'object');\n equal((0, _utils.typeOf)(undefined), 'undefined', 'item of type undefined');\n equal((0, _utils.typeOf)(a), 'null', 'item of type null');\n equal((0, _utils.typeOf)(arr), 'array', 'item of type array');\n equal((0, _utils.typeOf)(obj), 'object', 'item of type object');\n equal((0, _utils.typeOf)(instance), 'instance', 'item of type instance');\n equal((0, _utils.typeOf)(instance.method), 'function', 'item of type function');\n equal((0, _utils.typeOf)(_object.default.extend()), 'class', 'item of type class');\n equal((0, _utils.typeOf)(new Error()), 'error', 'item of type error');\n });\n\n if (_emberEnvironment.environment.window && typeof _emberEnvironment.environment.window.FileList === 'function') {\n QUnit.test('Ember.typeOf(fileList)', function () {\n var fileListElement = document.createElement('input');\n fileListElement.type = 'file';\n var fileList = fileListElement.files;\n equal((0, _utils.typeOf)(fileList), 'filelist', 'item of type filelist');\n });\n }\n});","QUnit.module('ESLint | ember-runtime/tests/core/type_of_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/core/type_of_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/ext/function_test', ['ember-environment', 'ember-metal', 'internal-test-helpers', 'ember-runtime/system/object', 'ember-runtime/mixins/evented'], function (_emberEnvironment, _emberMetal, _internalTestHelpers, _object, _evented) {\n 'use strict';\n\n QUnit.module('Function.prototype.observes() helper');\n\n (0, _internalTestHelpers.testBoth)('global observer helper takes multiple params', function (get, set) {\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n ok('undefined' === typeof Function.prototype.observes, 'Function.prototype helper disabled');\n return;\n }\n\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n\n foo: function () {\n set(this, 'count', get(this, 'count') + 1);\n }.observes('bar', 'baz')\n\n });\n\n var obj = (0, _emberMetal.mixin)({}, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n set(obj, 'baz', 'BAZ');\n equal(get(obj, 'count'), 2, 'should invoke observer after change');\n });\n\n QUnit.module('Function.prototype.on() helper');\n\n (0, _internalTestHelpers.testBoth)('sets up an event listener, and can trigger the function on multiple events', function (get, set) {\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n ok('undefined' === typeof Function.prototype.on, 'Function.prototype helper disabled');\n return;\n }\n\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n\n foo: function () {\n set(this, 'count', get(this, 'count') + 1);\n }.on('bar', 'baz')\n\n });\n\n var obj = (0, _emberMetal.mixin)({}, _evented.default, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke listener immediately');\n\n obj.trigger('bar');\n obj.trigger('baz');\n equal(get(obj, 'count'), 2, 'should invoke listeners when events trigger');\n });\n\n (0, _internalTestHelpers.testBoth)('can be chained with observes', function (get, set) {\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n ok('Function.prototype helper disabled');\n return;\n }\n\n var MyMixin = _emberMetal.Mixin.create({\n\n count: 0,\n bay: 'bay',\n foo: function () {\n set(this, 'count', get(this, 'count') + 1);\n }.observes('bay').on('bar')\n });\n\n var obj = (0, _emberMetal.mixin)({}, _evented.default, MyMixin);\n equal(get(obj, 'count'), 0, 'should not invoke listener immediately');\n\n set(obj, 'bay', 'BAY');\n obj.trigger('bar');\n equal(get(obj, 'count'), 2, 'should invoke observer and listener');\n });\n\n QUnit.module('Function.prototype.property() helper');\n\n (0, _internalTestHelpers.testBoth)('sets up a ComputedProperty', function (get, set) {\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.Function) {\n ok('undefined' === typeof Function.prototype.property, 'Function.prototype helper disabled');\n return;\n }\n\n var MyClass = _object.default.extend({\n firstName: null,\n lastName: null,\n fullName: function () {\n return get(this, 'firstName') + ' ' + get(this, 'lastName');\n }.property('firstName', 'lastName')\n });\n\n var obj = MyClass.create({ firstName: 'Fred', lastName: 'Flinstone' });\n equal(get(obj, 'fullName'), 'Fred Flinstone', 'should return the computed value');\n\n set(obj, 'firstName', 'Wilma');\n equal(get(obj, 'fullName'), 'Wilma Flinstone', 'should return the new computed value');\n\n set(obj, 'lastName', '');\n equal(get(obj, 'fullName'), 'Wilma ', 'should return the new computed value');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/ext/function_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/ext/function_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/ext/mixin_test', ['ember-metal'], function (_emberMetal) {\n 'use strict';\n\n QUnit.module('system/mixin/binding_test');\n\n QUnit.test('Defining a property ending in Binding should setup binding when applied', function () {\n var MyMixin = _emberMetal.Mixin.create({\n fooBinding: 'bar.baz'\n });\n\n var obj = { bar: { baz: 'BIFF' } };\n\n (0, _emberMetal.run)(function () {\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n MyMixin.apply(obj);\n }, deprecationMessage);\n });\n\n ok((0, _emberMetal.get)(obj, 'fooBinding') instanceof _emberMetal.Binding, 'should be a binding object');\n equal((0, _emberMetal.get)(obj, 'foo'), 'BIFF', 'binding should be created and synced');\n });\n\n QUnit.test('Defining a property ending in Binding should apply to prototype children', function () {\n var MyMixin = (0, _emberMetal.run)(function () {\n return _emberMetal.Mixin.create({\n fooBinding: 'bar.baz'\n });\n });\n\n var obj = { bar: { baz: 'BIFF' } };\n\n (0, _emberMetal.run)(function () {\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n MyMixin.apply(obj);\n }, deprecationMessage);\n });\n\n var obj2 = Object.create(obj);\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)((0, _emberMetal.get)(obj2, 'bar'), 'baz', 'BARG');\n });\n\n ok((0, _emberMetal.get)(obj2, 'fooBinding') instanceof _emberMetal.Binding, 'should be a binding object');\n equal((0, _emberMetal.get)(obj2, 'foo'), 'BARG', 'binding should be created and synced');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/ext/mixin_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/ext/mixin_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/ext/rsvp_test', ['ember-metal', 'ember-runtime/ext/rsvp', 'ember-debug'], function (_emberMetal, _rsvp, _emberDebug) {\n 'use strict';\n\n var ORIGINAL_ONERROR = (0, _emberMetal.getOnerror)();\n\n QUnit.module('Ember.RSVP', {\n teardown: function () {\n (0, _emberMetal.setOnerror)(ORIGINAL_ONERROR);\n }\n });\n\n QUnit.test('Ensure that errors thrown from within a promise are sent to the console', function () {\n var error = new Error('Error thrown in a promise for testing purposes.');\n\n try {\n (0, _emberMetal.run)(function () {\n new _rsvp.default.Promise(function (resolve, reject) {\n throw error;\n });\n });\n ok(false, 'expected assertion to be thrown');\n } catch (e) {\n equal(e, error, 'error was re-thrown');\n }\n });\n\n QUnit.test('TransitionAborted errors are not re-thrown', function () {\n expect(1);\n var fakeTransitionAbort = { name: 'TransitionAborted' };\n\n (0, _emberMetal.run)(_rsvp.default, 'reject', fakeTransitionAbort);\n\n ok(true, 'did not throw an error when dealing with TransitionAborted');\n });\n\n QUnit.test('Can reject with non-Error object', function (assert) {\n var wasEmberTesting = (0, _emberDebug.isTesting)();\n (0, _emberDebug.setTesting)(false);\n expect(1);\n\n try {\n (0, _emberMetal.run)(_rsvp.default, 'reject', 'foo');\n } catch (e) {\n equal(e, 'foo', 'should throw with rejection message');\n } finally {\n (0, _emberDebug.setTesting)(wasEmberTesting);\n }\n });\n\n QUnit.test('Can reject with no arguments', function (assert) {\n var wasEmberTesting = (0, _emberDebug.isTesting)();\n (0, _emberDebug.setTesting)(false);\n expect(1);\n\n try {\n (0, _emberMetal.run)(_rsvp.default, 'reject');\n } catch (e) {\n ok(false, 'should not throw');\n } finally {\n (0, _emberDebug.setTesting)(wasEmberTesting);\n }\n\n ok(true);\n });\n\n QUnit.test('rejections like jqXHR which have errorThrown property work', function () {\n expect(2);\n\n var wasEmberTesting = (0, _emberDebug.isTesting)();\n var wasOnError = (0, _emberMetal.getOnerror)();\n\n try {\n (0, _emberDebug.setTesting)(false);\n (0, _emberMetal.setOnerror)(function (error) {\n equal(error, actualError, 'expected the real error on the jqXHR');\n equal(error.__reason_with_error_thrown__, jqXHR, 'also retains a helpful reference to the rejection reason');\n });\n\n var actualError = new Error('OMG what really happened');\n var jqXHR = {\n errorThrown: actualError\n };\n\n (0, _emberMetal.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _emberMetal.setOnerror)(wasOnError);\n (0, _emberDebug.setTesting)(wasEmberTesting);\n }\n });\n\n QUnit.test('rejections where the errorThrown is a string should wrap the sting in an error object', function () {\n expect(2);\n\n var wasEmberTesting = (0, _emberDebug.isTesting)();\n var wasOnError = (0, _emberMetal.getOnerror)();\n\n try {\n (0, _emberDebug.setTesting)(false);\n (0, _emberMetal.setOnerror)(function (error) {\n equal(error.message, actualError, 'expected the real error on the jqXHR');\n equal(error.__reason_with_error_thrown__, jqXHR, 'also retains a helpful reference to the rejection reason');\n });\n\n var actualError = 'OMG what really happened';\n var jqXHR = {\n errorThrown: actualError\n };\n\n (0, _emberMetal.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _emberMetal.setOnerror)(wasOnError);\n (0, _emberDebug.setTesting)(wasEmberTesting);\n }\n });\n\n QUnit.test('rejections can be serialized to JSON', function (assert) {\n expect(2);\n\n var wasEmberTesting = (0, _emberDebug.isTesting)();\n var wasOnError = (0, _emberMetal.getOnerror)();\n\n try {\n (0, _emberDebug.setTesting)(false);\n (0, _emberMetal.setOnerror)(function (error) {\n assert.equal(error.message, 'a fail');\n assert.ok(JSON.stringify(error), 'Error can be serialized');\n });\n\n var jqXHR = {\n errorThrown: new Error('a fail')\n };\n\n (0, _emberMetal.run)(_rsvp.default, 'reject', jqXHR);\n } finally {\n (0, _emberMetal.setOnerror)(wasOnError);\n (0, _emberDebug.setTesting)(wasEmberTesting);\n }\n });\n\n var reason = 'i failed';\n QUnit.module('Ember.test: rejection assertions');\n\n function ajax(something) {\n return _rsvp.default.Promise(function (resolve) {\n QUnit.stop();\n setTimeout(function () {\n QUnit.start();\n resolve();\n }, 0); // fake true / foreign async\n });\n }\n\n QUnit.test('unambigiously unhandled rejection', function () {\n QUnit.throws(function () {\n (0, _emberMetal.run)(function () {\n _rsvp.default.Promise.reject(reason);\n }); // something is funky, we should likely assert\n }, reason);\n });\n\n QUnit.test('sync handled', function () {\n (0, _emberMetal.run)(function () {\n _rsvp.default.Promise.reject(reason).catch(function () {});\n }); // handled, we shouldn't need to assert.\n ok(true, 'reached end of test');\n });\n\n QUnit.test('handled within the same micro-task (via Ember.RVP.Promise)', function () {\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n _rsvp.default.Promise.resolve(1).then(function () {\n return rejection.catch(function () {});\n });\n }); // handled, we shouldn't need to assert.\n ok(true, 'reached end of test');\n });\n\n QUnit.test('handled within the same micro-task (via direct run-loop)', function () {\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n _emberMetal.run.schedule('afterRender', function () {\n return rejection.catch(function () {});\n });\n }); // handled, we shouldn't need to assert.\n ok(true, 'reached end of test');\n });\n\n QUnit.test('handled in the next microTask queue flush (run.next)', function () {\n expect(2);\n\n QUnit.throws(function () {\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n\n QUnit.stop();\n _emberMetal.run.next(function () {\n QUnit.start();\n rejection.catch(function () {});\n ok(true, 'reached end of test');\n });\n });\n }, reason);\n\n // a promise rejection survived a full flush of the run-loop without being handled\n // this is very likely an issue.\n });\n\n QUnit.test('handled in the same microTask Queue flush do to data locality', function () {\n // an ambiguous scenario, this may or may not assert\n // it depends on the locality of `user#1`\n var store = {\n find: function () {\n return _rsvp.default.Promise.resolve(1);\n }\n };\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n store.find('user', 1).then(function () {\n return rejection.catch(function () {});\n });\n });\n\n ok(true, 'reached end of test');\n });\n\n QUnit.test('handled in a different microTask Queue flush do to data locality', function () {\n // an ambiguous scenario, this may or may not assert\n // it depends on the locality of `user#1`\n var store = {\n find: function () {\n return ajax();\n }\n };\n QUnit.throws(function () {\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n store.find('user', 1).then(function () {\n rejection.catch(function () {});\n ok(true, 'reached end of test');\n });\n });\n }, reason);\n });\n\n QUnit.test('handled in the next microTask queue flush (ajax example)', function () {\n QUnit.throws(function () {\n (0, _emberMetal.run)(function () {\n var rejection = _rsvp.default.Promise.reject(reason);\n ajax('/something/').then(function () {\n rejection.catch(function () {});\n ok(true, 'reached end of test');\n });\n });\n }, reason);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/ext/rsvp_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/ext/rsvp_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/inject_test', ['ember-metal', 'ember-runtime/inject', 'ember-runtime/system/object', 'internal-test-helpers'], function (_emberMetal, _inject, _object, _internalTestHelpers) {\n 'use strict';\n\n QUnit.module('inject'); /* global EmberDev */\n\n QUnit.test('calling `inject` directly should error', function () {\n expectAssertion(function () {\n (0, _inject.default)('foo');\n }, /Injected properties must be created through helpers/);\n });\n\n if (!EmberDev.runningProdBuild) {\n // this check is done via an assertion which is stripped from\n // production builds\n QUnit.test('injection type validation is run when first looked up', function () {\n (0, _inject.createInjectionHelper)('foo', function () {\n ok(true, 'should call validation method');\n });\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n\n var AnObject = _object.default.extend({\n bar: _inject.default.foo(),\n baz: _inject.default.foo()\n });\n\n owner.register('foo:main', AnObject);\n owner.register('foo:bar', _object.default.extend());\n owner.register('foo:baz', _object.default.extend());\n\n expect(1);\n owner.lookup('foo:main');\n });\n\n QUnit.test('attempting to inject a nonexistent container key should error', function () {\n var owner = (0, _internalTestHelpers.buildOwner)();\n var AnObject = _object.default.extend({\n foo: new _emberMetal.InjectedProperty('bar', 'baz')\n });\n\n owner.register('foo:main', AnObject);\n\n throws(function () {\n owner.lookup('foo:main');\n }, /Attempting to inject an unknown injection: 'bar:baz'/);\n });\n }\n\n if (true) {\n QUnit.test('factories should return a list of lazy injection full names', function () {\n var AnObject = _object.default.extend({\n foo: new _emberMetal.InjectedProperty('foo', 'bar'),\n bar: new _emberMetal.InjectedProperty('quux')\n });\n\n deepEqual(AnObject._lazyInjections(), { 'foo': 'foo:bar', 'bar': 'quux:bar' }, 'should return injected container keys');\n });\n }\n});","QUnit.module('ESLint | ember-runtime/tests/inject_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/inject_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/mixins/observable/chained_test', ['ember-metal', 'ember-runtime/system/object', 'ember-runtime/system/native_array'], function (_emberMetal, _object, _native_array) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * changed obj.set() and obj.get() to Ember.set() and Ember.get()\n * changed obj.addObserver() to addObserver()\n */\n\n QUnit.module('Ember.Observable - Observing with @each');\n\n QUnit.test('chained observers on enumerable properties are triggered when the observed property of any item changes', function () {\n var family = _object.default.create({ momma: null });\n var momma = _object.default.create({ children: [] });\n\n var child1 = _object.default.create({ name: 'Bartholomew' });\n var child2 = _object.default.create({ name: 'Agnes' });\n var child3 = _object.default.create({ name: 'Dan' });\n var child4 = _object.default.create({ name: 'Nancy' });\n\n (0, _emberMetal.set)(family, 'momma', momma);\n (0, _emberMetal.set)(momma, 'children', (0, _native_array.A)([child1, child2, child3]));\n\n var observerFiredCount = 0;\n (0, _emberMetal.addObserver)(family, 'momma.children.@each.name', this, function () {\n observerFiredCount++;\n });\n\n observerFiredCount = 0;\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.get)(momma, 'children').setEach('name', 'Juan');\n });\n equal(observerFiredCount, 3, 'observer fired after changing child names');\n\n observerFiredCount = 0;\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.get)(momma, 'children').pushObject(child4);\n });\n equal(observerFiredCount, 1, 'observer fired after adding a new item');\n\n observerFiredCount = 0;\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(child4, 'name', 'Herbert');\n });\n equal(observerFiredCount, 1, 'observer fired after changing property on new object');\n\n (0, _emberMetal.set)(momma, 'children', []);\n\n observerFiredCount = 0;\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(child1, 'name', 'Hanna');\n });\n equal(observerFiredCount, 0, 'observer did not fire after removing changing property on a removed object');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/mixins/observable/chained_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/mixins/observable/chained_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/mixins/observable/observable_test', ['ember-environment', 'ember-metal', 'ember-runtime/system/string', 'ember-runtime/system/object', 'ember-runtime/mixins/observable', 'ember-runtime/system/native_array'], function (_emberEnvironment, _emberMetal, _string, _object, _observable, _native_array) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Added ObservableObject which applies the Ember.Observable mixin.\n * Changed reference to Ember.T_FUNCTION to 'function'\n * Changed all references to sc_super to this._super(...arguments)\n * Changed Ember.objectForPropertyPath() to Ember.getPath()\n * Removed allPropertiesDidChange test - no longer supported\n * Changed test that uses 'ObjectE' as path to 'objectE' to reflect new\n rule on using capital letters for property paths.\n * Removed test passing context to addObserver. context param is no longer\n supported.\n * Changed calls to Ember.Binding.flushPendingChanges() -> run.sync()\n * removed test in observer around line 862 that expected key/value to be\n the last item in the chained path. Should be root and chained path\n \n */\n\n // ========================================================================\n // Ember.Observable Tests\n // ========================================================================\n\n var object, ObjectC, ObjectD, objectA, objectB, lookup;\n\n var ObservableObject = _object.default.extend(_observable.default);\n var originalLookup = _emberEnvironment.context.lookup;\n\n // ..........................................................\n // GET()\n //\n\n QUnit.module('object.get()', {\n setup: function () {\n object = ObservableObject.extend(_observable.default, {\n computed: (0, _emberMetal.computed)(function () {\n return 'value';\n }).volatile(),\n method: function () {\n return 'value';\n },\n unknownProperty: function (key, value) {\n this.lastUnknownProperty = key;\n return 'unknown';\n }\n }).create({\n normal: 'value',\n numberVal: 24,\n toggleVal: true,\n nullProperty: null\n });\n }\n });\n\n QUnit.test('should get normal properties', function () {\n equal(object.get('normal'), 'value');\n });\n\n QUnit.test('should call computed properties and return their result', function () {\n equal(object.get('computed'), 'value');\n });\n\n QUnit.test('should return the function for a non-computed property', function () {\n var value = object.get('method');\n equal(typeof value, 'function');\n });\n\n QUnit.test('should return null when property value is null', function () {\n equal(object.get('nullProperty'), null);\n });\n\n QUnit.test('should call unknownProperty when value is undefined', function () {\n equal(object.get('unknown'), 'unknown');\n equal(object.lastUnknownProperty, 'unknown');\n });\n\n // ..........................................................\n // Ember.GET()\n //\n QUnit.module('Ember.get()', {\n setup: function () {\n objectA = ObservableObject.extend({\n computed: (0, _emberMetal.computed)(function () {\n return 'value';\n }).volatile(),\n method: function () {\n return 'value';\n },\n unknownProperty: function (key, value) {\n this.lastUnknownProperty = key;\n return 'unknown';\n }\n }).create({\n normal: 'value',\n numberVal: 24,\n toggleVal: true,\n nullProperty: null\n });\n\n objectB = {\n normal: 'value',\n nullProperty: null\n };\n }\n });\n\n QUnit.test('should get normal properties on Ember.Observable', function () {\n equal((0, _emberMetal.get)(objectA, 'normal'), 'value');\n });\n\n QUnit.test('should call computed properties on Ember.Observable and return their result', function () {\n equal((0, _emberMetal.get)(objectA, 'computed'), 'value');\n });\n\n QUnit.test('should return the function for a non-computed property on Ember.Observable', function () {\n var value = (0, _emberMetal.get)(objectA, 'method');\n equal(typeof value, 'function');\n });\n\n QUnit.test('should return null when property value is null on Ember.Observable', function () {\n equal((0, _emberMetal.get)(objectA, 'nullProperty'), null);\n });\n\n QUnit.test('should call unknownProperty when value is undefined on Ember.Observable', function () {\n equal((0, _emberMetal.get)(objectA, 'unknown'), 'unknown');\n equal(objectA.lastUnknownProperty, 'unknown');\n });\n\n QUnit.test('should get normal properties on standard objects', function () {\n equal((0, _emberMetal.get)(objectB, 'normal'), 'value');\n });\n\n QUnit.test('should return null when property is null on standard objects', function () {\n equal((0, _emberMetal.get)(objectB, 'nullProperty'), null);\n });\n\n /*\n QUnit.test(\"raise if the provided object is null\", function() {\n throws(function() {\n get(null, 'key');\n });\n });\n */\n\n QUnit.test('raise if the provided object is undefined', function () {\n expectAssertion(function () {\n (0, _emberMetal.get)(undefined, 'key');\n }, /Cannot call get with 'key' on an undefined object/i);\n });\n\n QUnit.module('Ember.get() with paths');\n\n QUnit.test('should return a property at a given path relative to the passed object', function () {\n var foo = ObservableObject.create({\n bar: ObservableObject.extend({\n baz: (0, _emberMetal.computed)(function () {\n return 'blargh';\n }).volatile()\n }).create()\n });\n\n equal((0, _emberMetal.get)(foo, 'bar.baz'), 'blargh');\n });\n\n QUnit.test('should return a property at a given path relative to the passed object - JavaScript hash', function () {\n var foo = {\n bar: {\n baz: 'blargh'\n }\n };\n\n equal((0, _emberMetal.get)(foo, 'bar.baz'), 'blargh');\n });\n\n // ..........................................................\n // SET()\n //\n\n QUnit.module('object.set()', {\n setup: function () {\n object = ObservableObject.extend({\n computed: (0, _emberMetal.computed)({\n get: function (key) {\n return this._computed;\n },\n set: function (key, value) {\n this._computed = value;\n return this._computed;\n }\n }).volatile(),\n\n method: function (key, value) {\n if (value !== undefined) {\n this._method = value;\n }\n return this._method;\n },\n unknownProperty: function (key) {\n return this._unknown;\n },\n setUnknownProperty: function (key, value) {\n this._unknown = value;\n return this._unknown;\n },\n\n\n // normal property\n normal: 'value',\n\n // computed property\n _computed: 'computed',\n // method, but not a property\n _method: 'method',\n // null property\n nullProperty: null,\n\n // unknown property\n _unknown: 'unknown'\n }).create();\n }\n });\n\n QUnit.test('should change normal properties and return the value', function () {\n var ret = object.set('normal', 'changed');\n equal(object.get('normal'), 'changed');\n equal(ret, 'changed');\n });\n\n QUnit.test('should call computed properties passing value and return the value', function () {\n var ret = object.set('computed', 'changed');\n equal(object.get('_computed'), 'changed');\n equal(ret, 'changed');\n });\n\n QUnit.test('should change normal properties when passing undefined', function () {\n var ret = object.set('normal', undefined);\n equal(object.get('normal'), undefined);\n equal(ret, undefined);\n });\n\n QUnit.test('should replace the function for a non-computed property and return the value', function () {\n var ret = object.set('method', 'changed');\n equal(object.get('_method'), 'method'); // make sure this was NOT run\n ok(typeof object.get('method') !== 'function');\n equal(ret, 'changed');\n });\n\n QUnit.test('should replace prover when property value is null', function () {\n var ret = object.set('nullProperty', 'changed');\n equal(object.get('nullProperty'), 'changed');\n equal(ret, 'changed');\n });\n\n QUnit.test('should call unknownProperty with value when property is undefined', function () {\n var ret = object.set('unknown', 'changed');\n equal(object.get('_unknown'), 'changed');\n equal(ret, 'changed');\n });\n\n // ..........................................................\n // COMPUTED PROPERTIES\n //\n\n QUnit.module('Computed properties', {\n setup: function () {\n lookup = _emberEnvironment.context.lookup = {};\n\n object = ObservableObject.extend({\n computed: (0, _emberMetal.computed)({\n get: function () {\n this.computedCalls.push('getter-called');\n return 'computed';\n },\n set: function (key, value) {\n this.computedCalls.push(value);\n }\n }).volatile(),\n\n computedCached: (0, _emberMetal.computed)({\n get: function () {\n this.computedCachedCalls.push('getter-called');\n return 'computedCached';\n },\n\n set: function (key, value) {\n this.computedCachedCalls.push(value);\n }\n }),\n\n dependent: (0, _emberMetal.computed)({\n get: function () {\n this.dependentCalls.push('getter-called');\n return 'dependent';\n },\n set: function (key, value) {\n this.dependentCalls.push(value);\n }\n }).property('changer').volatile(),\n dependentFront: (0, _emberMetal.computed)('changer', {\n get: function () {\n this.dependentFrontCalls.push('getter-called');\n return 'dependentFront';\n },\n set: function (key, value) {\n this.dependentFrontCalls.push(value);\n }\n }).volatile(),\n dependentCached: (0, _emberMetal.computed)({\n get: function () {\n this.dependentCachedCalls.push('getter-called!');\n return 'dependentCached';\n },\n set: function (key, value) {\n this.dependentCachedCalls.push(value);\n }\n }).property('changer'),\n\n inc: (0, _emberMetal.computed)('changer', function () {\n return this.incCallCount++;\n }),\n\n nestedInc: (0, _emberMetal.computed)(function (key) {\n (0, _emberMetal.get)(this, 'inc');\n return this.nestedIncCallCount++;\n }).property('inc'),\n\n isOn: (0, _emberMetal.computed)({\n get: function () {\n return this.get('state') === 'on';\n },\n set: function (key, value) {\n this.set('state', 'on');\n return this.get('state') === 'on';\n }\n }).property('state').volatile(),\n\n isOff: (0, _emberMetal.computed)({\n get: function () {\n return this.get('state') === 'off';\n },\n set: function (key, value) {\n this.set('state', 'off');\n return this.get('state') === 'off';\n }\n }).property('state').volatile()\n\n }).create({\n computedCalls: [],\n computedCachedCalls: [],\n changer: 'foo',\n dependentCalls: [],\n dependentFrontCalls: [],\n dependentCachedCalls: [],\n incCallCount: 0,\n nestedIncCallCount: 0,\n state: 'on'\n });\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('getting values should call function return value', function () {\n // get each property twice. Verify return.\n var keys = (0, _string.w)('computed computedCached dependent dependentFront dependentCached');\n\n keys.forEach(function (key) {\n equal(object.get(key), key, 'Try #1: object.get(' + key + ') should run function');\n equal(object.get(key), key, 'Try #2: object.get(' + key + ') should run function');\n });\n\n // verify each call count. cached should only be called once\n (0, _string.w)('computedCalls dependentFrontCalls dependentCalls').forEach(function (key) {\n equal(object[key].length, 2, 'non-cached property ' + key + ' should be called 2x');\n });\n\n (0, _string.w)('computedCachedCalls dependentCachedCalls').forEach(function (key) {\n equal(object[key].length, 1, 'non-cached property ' + key + ' should be called 1x');\n });\n });\n\n QUnit.test('setting values should call function return value', function () {\n // get each property twice. Verify return.\n var keys = (0, _string.w)('computed dependent dependentFront computedCached dependentCached');\n var values = (0, _string.w)('value1 value2');\n\n keys.forEach(function (key) {\n equal(object.set(key, values[0]), values[0], 'Try #1: object.set(' + key + ', ' + values[0] + ') should run function');\n\n equal(object.set(key, values[1]), values[1], 'Try #2: object.set(' + key + ', ' + values[1] + ') should run function');\n\n equal(object.set(key, values[1]), values[1], 'Try #3: object.set(' + key + ', ' + values[1] + ') should not run function since it is setting same value as before');\n });\n\n // verify each call count. cached should only be called once\n keys.forEach(function (key) {\n var calls = object[key + 'Calls'];\n var idx, expectedLength;\n\n // Cached properties first check their cached value before setting the\n // property. Other properties blindly call set.\n expectedLength = 3;\n equal(calls.length, expectedLength, 'set(' + key + ') should be called the right amount of times');\n for (idx = 0; idx < 2; idx++) {\n equal(calls[idx], values[idx], 'call #' + (idx + 1) + ' to set(' + key + ') should have passed value ' + values[idx]);\n }\n });\n });\n\n QUnit.test('notify change should clear cache', function () {\n // call get several times to collect call count\n object.get('computedCached'); // should run func\n object.get('computedCached'); // should not run func\n\n object.propertyWillChange('computedCached').propertyDidChange('computedCached');\n\n object.get('computedCached'); // should run again\n equal(object.computedCachedCalls.length, 2, 'should have invoked method 2x');\n });\n\n QUnit.test('change dependent should clear cache', function () {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n equal(object.get('inc'), ret1, 'multiple calls should not run cached prop');\n\n object.set('changer', 'bar');\n\n equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n });\n\n QUnit.test('just notifying change of dependent should clear cache', function () {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n equal(object.get('inc'), ret1, 'multiple calls should not run cached prop');\n\n object.notifyPropertyChange('changer');\n\n equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n });\n\n QUnit.test('changing dependent should clear nested cache', function () {\n // call get several times to collect call count\n var ret1 = object.get('nestedInc'); // should run func\n equal(object.get('nestedInc'), ret1, 'multiple calls should not run cached prop');\n\n object.set('changer', 'bar');\n\n equal(object.get('nestedInc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n });\n\n QUnit.test('just notifying change of dependent should clear nested cache', function () {\n // call get several times to collect call count\n var ret1 = object.get('nestedInc'); // should run func\n equal(object.get('nestedInc'), ret1, 'multiple calls should not run cached prop');\n\n object.notifyPropertyChange('changer');\n\n equal(object.get('nestedInc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n });\n\n // This verifies a specific bug encountered where observers for computed\n // properties would fire before their prop caches were cleared.\n QUnit.test('change dependent should clear cache when observers of dependent are called', function () {\n // call get several times to collect call count\n var ret1 = object.get('inc'); // should run func\n equal(object.get('inc'), ret1, 'multiple calls should not run cached prop');\n\n // add observer to verify change...\n object.addObserver('inc', this, function () {\n equal(object.get('inc'), ret1 + 1, 'should increment after dependent key changes'); // should run again\n });\n\n // now run\n object.set('changer', 'bar');\n });\n\n QUnit.test('setting one of two computed properties that depend on a third property should clear the kvo cache', function () {\n // we have to call set twice to fill up the cache\n object.set('isOff', true);\n object.set('isOn', true);\n\n // setting isOff to true should clear the kvo cache\n object.set('isOff', true);\n equal(object.get('isOff'), true, 'object.isOff should be true');\n equal(object.get('isOn'), false, 'object.isOn should be false');\n });\n\n QUnit.test('dependent keys should be able to be specified as property paths', function () {\n var depObj = ObservableObject.extend({\n menuPrice: (0, _emberMetal.computed)(function () {\n return this.get('menu.price');\n }).property('menu.price')\n }).create({\n menu: ObservableObject.create({\n price: 5\n })\n });\n\n equal(depObj.get('menuPrice'), 5, 'precond - initial value returns 5');\n\n depObj.set('menu.price', 6);\n\n equal(depObj.get('menuPrice'), 6, 'cache is properly invalidated after nested property changes');\n });\n\n QUnit.test('nested dependent keys should propagate after they update', function () {\n var bindObj;\n (0, _emberMetal.run)(function () {\n lookup.DepObj = ObservableObject.extend({\n price: (0, _emberMetal.computed)(function () {\n return this.get('restaurant.menu.price');\n }).property('restaurant.menu.price')\n }).create({\n restaurant: ObservableObject.create({\n menu: ObservableObject.create({\n price: 5\n })\n })\n });\n\n expectDeprecation(function () {\n bindObj = ObservableObject.extend({\n priceBinding: 'DepObj.price'\n }).create();\n }, /`Ember.Binding` is deprecated/);\n });\n\n equal(bindObj.get('price'), 5, 'precond - binding propagates');\n\n (0, _emberMetal.run)(function () {\n lookup.DepObj.set('restaurant.menu.price', 10);\n });\n\n equal(bindObj.get('price'), 10, 'binding propagates after a nested dependent keys updates');\n\n (0, _emberMetal.run)(function () {\n lookup.DepObj.set('restaurant.menu', ObservableObject.create({\n price: 15\n }));\n });\n\n equal(bindObj.get('price'), 15, 'binding propagates after a middle dependent keys updates');\n });\n\n QUnit.test('cacheable nested dependent keys should clear after their dependencies update', function () {\n ok(true);\n\n var DepObj;\n\n (0, _emberMetal.run)(function () {\n lookup.DepObj = DepObj = ObservableObject.extend({\n price: (0, _emberMetal.computed)('restaurant.menu.price', function () {\n return this.get('restaurant.menu.price');\n })\n }).create({\n restaurant: ObservableObject.create({\n menu: ObservableObject.create({\n price: 5\n })\n })\n });\n });\n\n equal(DepObj.get('price'), 5, 'precond - computed property is correct');\n\n (0, _emberMetal.run)(function () {\n DepObj.set('restaurant.menu.price', 10);\n });\n equal(DepObj.get('price'), 10, 'cacheable computed properties are invalidated even if no run loop occurred');\n\n (0, _emberMetal.run)(function () {\n DepObj.set('restaurant.menu.price', 20);\n });\n equal(DepObj.get('price'), 20, 'cacheable computed properties are invalidated after a second get before a run loop');\n equal(DepObj.get('price'), 20, 'precond - computed properties remain correct after a run loop');\n\n (0, _emberMetal.run)(function () {\n DepObj.set('restaurant.menu', ObservableObject.create({\n price: 15\n }));\n });\n\n equal(DepObj.get('price'), 15, 'cacheable computed properties are invalidated after a middle property changes');\n\n (0, _emberMetal.run)(function () {\n DepObj.set('restaurant.menu', ObservableObject.create({\n price: 25\n }));\n });\n\n equal(DepObj.get('price'), 25, 'cacheable computed properties are invalidated after a middle property changes again, before a run loop');\n });\n\n // ..........................................................\n // OBSERVABLE OBJECTS\n //\n\n QUnit.module('Observable objects & object properties ', {\n setup: function () {\n object = ObservableObject.extend({\n getEach: function () {\n var keys = ['normal', 'abnormal'];\n var ret = [];\n for (var idx = 0; idx < keys.length; idx++) {\n ret[ret.length] = this.get(keys[idx]);\n }\n return ret;\n },\n newObserver: function () {\n this.abnormal = 'changedValueObserved';\n },\n\n\n testObserver: (0, _emberMetal.observer)('normal', function () {\n this.abnormal = 'removedObserver';\n }),\n\n testArrayObserver: (0, _emberMetal.observer)('normalArray.[]', function () {\n this.abnormal = 'notifiedObserver';\n })\n }).create({\n normal: 'value',\n abnormal: 'zeroValue',\n numberVal: 24,\n toggleVal: true,\n observedProperty: 'beingWatched',\n testRemove: 'observerToBeRemoved',\n normalArray: (0, _native_array.A)([1, 2, 3, 4, 5])\n });\n }\n });\n\n QUnit.test('incrementProperty and decrementProperty', function () {\n var newValue = object.incrementProperty('numberVal');\n\n equal(25, newValue, 'numerical value incremented');\n object.numberVal = 24;\n newValue = object.decrementProperty('numberVal');\n equal(23, newValue, 'numerical value decremented');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', 5);\n equal(30, newValue, 'numerical value incremented by specified increment');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', -5);\n equal(20, newValue, 'minus numerical value incremented by specified increment');\n object.numberVal = 25;\n newValue = object.incrementProperty('numberVal', 0);\n equal(25, newValue, 'zero numerical value incremented by specified increment');\n\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 0 - void 0); // Increment by NaN\n }, /Must pass a numeric value to incrementProperty/i);\n\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 'Ember'); // Increment by non-numeric String\n }, /Must pass a numeric value to incrementProperty/i);\n\n expectAssertion(function () {\n newValue = object.incrementProperty('numberVal', 1 / 0); // Increment by Infinity\n }, /Must pass a numeric value to incrementProperty/i);\n\n equal(25, newValue, 'Attempting to increment by non-numeric values should not increment value');\n\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', 5);\n equal(20, newValue, 'numerical value decremented by specified increment');\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', -5);\n equal(30, newValue, 'minus numerical value decremented by specified increment');\n object.numberVal = 25;\n newValue = object.decrementProperty('numberVal', 0);\n equal(25, newValue, 'zero numerical value decremented by specified increment');\n\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 0 - void 0); // Decrement by NaN\n }, /Must pass a numeric value to decrementProperty/i);\n\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 'Ember'); // Decrement by non-numeric String\n }, /Must pass a numeric value to decrementProperty/i);\n\n expectAssertion(function () {\n newValue = object.decrementProperty('numberVal', 1 / 0); // Decrement by Infinity\n }, /Must pass a numeric value to decrementProperty/i);\n\n equal(25, newValue, 'Attempting to decrement by non-numeric values should not decrement value');\n });\n\n QUnit.test('toggle function, should be boolean', function () {\n equal(object.toggleProperty('toggleVal', true, false), object.get('toggleVal'));\n equal(object.toggleProperty('toggleVal', true, false), object.get('toggleVal'));\n equal(object.toggleProperty('toggleVal', undefined, undefined), object.get('toggleVal'));\n });\n\n QUnit.test('should notify array observer when array changes', function () {\n (0, _emberMetal.get)(object, 'normalArray').replace(0, 0, [6]);\n equal(object.abnormal, 'notifiedObserver', 'observer should be notified');\n });\n\n QUnit.module('object.addObserver()', {\n setup: function () {\n ObjectC = ObservableObject.create({\n objectE: ObservableObject.create({\n propertyVal: 'chainedProperty'\n }),\n\n normal: 'value',\n normal1: 'zeroValue',\n normal2: 'dependentValue',\n incrementor: 10,\n\n action: function () {\n this.normal1 = 'newZeroValue';\n },\n observeOnceAction: function () {\n this.incrementor = this.incrementor + 1;\n },\n chainedObserver: function () {\n this.normal2 = 'chainedPropertyObserved';\n }\n });\n }\n });\n\n QUnit.test('should register an observer for a property', function () {\n ObjectC.addObserver('normal', ObjectC, 'action');\n ObjectC.set('normal', 'newValue');\n equal(ObjectC.normal1, 'newZeroValue');\n });\n\n QUnit.test('should register an observer for a property - Special case of chained property', function () {\n ObjectC.addObserver('objectE.propertyVal', ObjectC, 'chainedObserver');\n ObjectC.objectE.set('propertyVal', 'chainedPropertyValue');\n equal('chainedPropertyObserved', ObjectC.normal2);\n ObjectC.normal2 = 'dependentValue';\n ObjectC.set('objectE', '');\n equal('chainedPropertyObserved', ObjectC.normal2);\n });\n\n QUnit.module('object.removeObserver()', {\n setup: function () {\n ObjectD = ObservableObject.create({\n objectF: ObservableObject.create({\n propertyVal: 'chainedProperty'\n }),\n\n normal: 'value',\n normal1: 'zeroValue',\n normal2: 'dependentValue',\n ArrayKeys: ['normal', 'normal1'],\n\n addAction: function () {\n this.normal1 = 'newZeroValue';\n },\n removeAction: function () {\n this.normal2 = 'newDependentValue';\n },\n removeChainedObserver: function () {\n this.normal2 = 'chainedPropertyObserved';\n },\n\n\n observableValue: 'hello world',\n\n observer1: function () {\n // Just an observer\n },\n observer2: function () {\n this.removeObserver('observableValue', null, 'observer1');\n this.removeObserver('observableValue', null, 'observer2');\n this.hasObserverFor('observableValue'); // Tickle 'getMembers()'\n this.removeObserver('observableValue', null, 'observer3');\n },\n observer3: function () {\n // Just an observer\n }\n });\n }\n });\n\n QUnit.test('should unregister an observer for a property', function () {\n ObjectD.addObserver('normal', ObjectD, 'addAction');\n ObjectD.set('normal', 'newValue');\n equal(ObjectD.normal1, 'newZeroValue');\n\n ObjectD.set('normal1', 'zeroValue');\n\n ObjectD.removeObserver('normal', ObjectD, 'addAction');\n ObjectD.set('normal', 'newValue');\n equal(ObjectD.normal1, 'zeroValue');\n });\n\n QUnit.test('should unregister an observer for a property - special case when key has a \\'.\\' in it.', function () {\n ObjectD.addObserver('objectF.propertyVal', ObjectD, 'removeChainedObserver');\n ObjectD.objectF.set('propertyVal', 'chainedPropertyValue');\n ObjectD.removeObserver('objectF.propertyVal', ObjectD, 'removeChainedObserver');\n ObjectD.normal2 = 'dependentValue';\n ObjectD.objectF.set('propertyVal', 'removedPropertyValue');\n equal('dependentValue', ObjectD.normal2);\n ObjectD.set('objectF', '');\n equal('dependentValue', ObjectD.normal2);\n });\n\n QUnit.test('removing an observer inside of an observer shouldn’t cause any problems', function () {\n // The observable system should be protected against clients removing\n // observers in the middle of observer notification.\n var encounteredError = false;\n try {\n ObjectD.addObserver('observableValue', null, 'observer1');\n ObjectD.addObserver('observableValue', null, 'observer2');\n ObjectD.addObserver('observableValue', null, 'observer3');\n (0, _emberMetal.run)(function () {\n ObjectD.set('observableValue', 'hi world');\n });\n } catch (e) {\n encounteredError = true;\n }\n equal(encounteredError, false);\n });\n\n QUnit.module('Bind function', {\n setup: function () {\n objectA = ObservableObject.create({\n name: 'Sproutcore',\n location: 'Timbaktu'\n });\n\n objectB = ObservableObject.create({\n normal: 'value',\n computed: function () {\n this.normal = 'newValue';\n }\n });\n\n lookup = _emberEnvironment.context.lookup = {\n 'Namespace': {\n objectA: objectA,\n objectB: objectB\n }\n };\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('should bind property with method parameter as undefined', function () {\n // creating binding\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n objectA.bind('name', 'Namespace.objectB.normal', undefined);\n }, /`Ember.Binding` is deprecated/);\n });\n\n // now make a change to see if the binding triggers.\n (0, _emberMetal.run)(function () {\n objectB.set('normal', 'changedValue');\n });\n\n // support new-style bindings if available\n equal('changedValue', objectA.get('name'), 'objectA.name is bound');\n });\n\n // ..........................................................\n // SPECIAL CASES\n //\n\n QUnit.test('changing chained observer object to null should not raise exception', function () {\n var obj = ObservableObject.create({\n foo: ObservableObject.create({\n bar: ObservableObject.create({ bat: 'BAT' })\n })\n });\n\n var callCount = 0;\n obj.foo.addObserver('bar.bat', obj, function (target, key, value) {\n callCount++;\n });\n\n (0, _emberMetal.run)(function () {\n obj.foo.set('bar', null);\n });\n\n equal(callCount, 1, 'changing bar should trigger observer');\n expect(1);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/mixins/observable/observable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/mixins/observable/observable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test', ['ember-metal', 'ember-runtime/system/object', 'ember-runtime/mixins/observable'], function (_emberMetal, _object, _observable) {\n 'use strict';\n\n var ObservableObject = _object.default.extend(_observable.default);\n\n // ..........................................................\n // GET()\n //\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Create ObservableObject which includes Ember.Observable\n */\n\n // ========================================================================\n // Ember.Observable Tests\n // ========================================================================\n\n QUnit.module('object.observesForKey()');\n\n QUnit.test('should get observers', function () {\n var o1 = ObservableObject.create({ foo: 100 });\n var o2 = ObservableObject.create({\n func: function () {}\n });\n var o3 = ObservableObject.create({\n func: function () {}\n });\n var observers = null;\n\n equal((0, _emberMetal.get)(o1.observersForKey('foo'), 'length'), 0, 'o1.observersForKey should return empty array');\n\n o1.addObserver('foo', o2, o2.func);\n o1.addObserver('foo', o3, o3.func);\n\n observers = o1.observersForKey('foo');\n\n equal((0, _emberMetal.get)(observers, 'length'), 2, 'o2.observersForKey should return an array with length 2');\n equal(observers[0][0], o2, 'first item in observers array should be o2');\n equal(observers[1][0], o3, 'second item in observers array should be o3');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/mixins/observable/observersForKey_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/mixins/observable/propertyChanges_test', ['ember-runtime/system/object', 'ember-runtime/mixins/observable', 'ember-metal'], function (_object, _observable, _emberMetal) {\n 'use strict';\n\n var ObservableObject = _object.default.extend(_observable.default); /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Create ObservableObject which includes Ember.Observable\n * Remove test that tests internal _kvo_changeLevel property. This is an\n implementation detail.\n * Remove test for allPropertiesDidChange\n * Removed star observer test. no longer supported\n * Removed property revision test. no longer supported\n */\n\n // ========================================================================\n // Ember.Observable Tests\n // ========================================================================\n\n var ObjectA = void 0;\n\n QUnit.module('object.propertyChanges', {\n setup: function () {\n ObjectA = ObservableObject.extend({\n action: (0, _emberMetal.observer)('foo', function () {\n this.set('prop', 'changedPropValue');\n }),\n notifyAction: (0, _emberMetal.observer)('newFoo', function () {\n this.set('newProp', 'changedNewPropValue');\n }),\n\n notifyAllAction: (0, _emberMetal.observer)('prop', function () {\n this.set('newFoo', 'changedNewFooValue');\n }),\n\n starObserver: function (target, key, value, rev) {\n this.starProp = key;\n }\n }).create({\n starProp: null,\n\n foo: 'fooValue',\n prop: 'propValue',\n\n newFoo: 'newFooValue',\n newProp: 'newPropValue'\n });\n }\n });\n\n QUnit.test('should observe the changes within the nested begin / end property changes', function () {\n //start the outer nest\n ObjectA.beginPropertyChanges();\n\n // Inner nest\n ObjectA.beginPropertyChanges();\n ObjectA.set('foo', 'changeFooValue');\n\n equal(ObjectA.prop, 'propValue');\n ObjectA.endPropertyChanges();\n\n //end inner nest\n ObjectA.set('prop', 'changePropValue');\n equal(ObjectA.newFoo, 'newFooValue');\n\n //close the outer nest\n ObjectA.endPropertyChanges();\n\n equal(ObjectA.prop, 'changedPropValue');\n equal(ObjectA.newFoo, 'changedNewFooValue');\n });\n\n QUnit.test('should observe the changes within the begin and end property changes', function () {\n ObjectA.beginPropertyChanges();\n ObjectA.set('foo', 'changeFooValue');\n\n equal(ObjectA.prop, 'propValue');\n ObjectA.endPropertyChanges();\n\n equal(ObjectA.prop, 'changedPropValue');\n });\n\n QUnit.test('should indicate that the property of an object has just changed', function () {\n // indicate that property of foo will change to its subscribers\n ObjectA.propertyWillChange('foo');\n\n //Value of the prop is unchanged yet as this will be changed when foo changes\n equal(ObjectA.prop, 'propValue');\n\n //change the value of foo.\n ObjectA.set('foo', 'changeFooValue');\n\n // Indicate the subscribers of foo that the value has just changed\n ObjectA.propertyDidChange('foo', null);\n\n // Values of prop has just changed\n equal(ObjectA.prop, 'changedPropValue');\n });\n\n QUnit.test('should notify that the property of an object has changed', function () {\n // Notify to its subscriber that the values of 'newFoo' will be changed. In this\n // case the observer is \"newProp\". Therefore this will call the notifyAction function\n // and value of \"newProp\" will be changed.\n ObjectA.notifyPropertyChange('newFoo', 'fooValue');\n\n //value of newProp changed.\n equal(ObjectA.newProp, 'changedNewPropValue');\n });\n\n QUnit.test('should invalidate function property cache when notifyPropertyChange is called', function () {\n var a = ObservableObject.extend({\n b: (0, _emberMetal.computed)({\n get: function () {\n return this._b;\n },\n set: function (key, value) {\n this._b = value;\n return this;\n }\n }).volatile()\n }).create({\n _b: null\n });\n\n a.set('b', 'foo');\n equal(a.get('b'), 'foo', 'should have set the correct value for property b');\n\n a._b = 'bar';\n a.notifyPropertyChange('b');\n a.set('b', 'foo');\n equal(a.get('b'), 'foo', 'should have invalidated the cache so that the newly set value is actually set');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/mixins/observable/propertyChanges_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/mixins/observable/propertyChanges_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/system/binding_test', ['ember-environment', 'ember-metal', 'ember-runtime/system/object'], function (_emberEnvironment, _emberMetal, _object) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * All calls to run.sync() were changed to\n run.sync()\n \n * Bindings no longer accept a root object as their second param. Instead\n our test binding objects were put under a single object they could\n originate from.\n \n * tests that inspected internal properties were removed.\n \n * converted foo.get/foo.set to use get/Ember.set\n \n * Removed tests for Binding.isConnected. Since binding instances are now\n shared this property no longer makes sense.\n \n * Changed call calls for obj.bind(...) to bind(obj, ...);\n \n * Changed all calls to sc_super() to this._super(...arguments)\n \n * Changed all calls to disconnect() to pass the root object.\n \n * removed calls to Binding.destroy() as that method is no longer useful\n (or defined)\n \n * changed use of T_STRING to 'string'\n */\n\n // ========================================================================\n // Binding Tests\n // ========================================================================\n\n var TestNamespace = void 0,\n fromObject = void 0,\n toObject = void 0,\n binding = void 0,\n Bon1 = void 0,\n bon2 = void 0,\n root = void 0; // global variables\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n QUnit.module('basic object binding', {\n setup: function () {\n fromObject = _object.default.create({ value: 'start' });\n toObject = _object.default.create({ value: 'end' });\n root = { fromObject: fromObject, toObject: toObject };\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n binding = (0, _emberMetal.bind)(root, 'toObject.value', 'fromObject.value');\n }, /`Ember\\.Binding` is deprecated./);\n });\n }\n });\n\n QUnit.test('binding should have synced on connect', function () {\n equal((0, _emberMetal.get)(toObject, 'value'), 'start', 'toObject.value should match fromObject.value');\n });\n\n QUnit.test('fromObject change should propagate to toObject only after flush', function () {\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.set)(fromObject, 'value', 'change');\n equal((0, _emberMetal.get)(toObject, 'value'), 'start');\n });\n equal((0, _emberMetal.get)(toObject, 'value'), 'change');\n });\n\n QUnit.test('toObject change should propagate to fromObject only after flush', function () {\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.set)(toObject, 'value', 'change');\n equal((0, _emberMetal.get)(fromObject, 'value'), 'start');\n });\n equal((0, _emberMetal.get)(fromObject, 'value'), 'change');\n });\n\n QUnit.test('deferred observing during bindings', function () {\n // setup special binding\n fromObject = _object.default.create({\n value1: 'value1',\n value2: 'value2'\n });\n\n toObject = _object.default.extend({\n observer: (0, _emberMetal.observer)('value1', 'value2', function () {\n equal((0, _emberMetal.get)(this, 'value1'), 'CHANGED', 'value1 when observer fires');\n equal((0, _emberMetal.get)(this, 'value2'), 'CHANGED', 'value2 when observer fires');\n this.callCount++;\n })\n }).create({\n value1: 'value1',\n value2: 'value2',\n\n callCount: 0\n });\n\n var root = { fromObject: fromObject, toObject: toObject };\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n (0, _emberMetal.bind)(root, 'toObject.value1', 'fromObject.value1');\n }, /`Ember\\.Binding` is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberMetal.bind)(root, 'toObject.value2', 'fromObject.value2');\n }, /`Ember\\.Binding` is deprecated./);\n\n // change both value1 + value2, then flush bindings. observer should only\n // fire after bindings are done flushing.\n (0, _emberMetal.set)(fromObject, 'value1', 'CHANGED');\n (0, _emberMetal.set)(fromObject, 'value2', 'CHANGED');\n });\n\n equal(toObject.callCount, 2, 'should call observer twice');\n });\n\n QUnit.test('binding disconnection actually works', function () {\n binding.disconnect(root);\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.set)(fromObject, 'value', 'change');\n });\n equal((0, _emberMetal.get)(toObject, 'value'), 'start');\n });\n\n var first = void 0,\n second = void 0,\n third = void 0; // global variables\n\n // ..........................................................\n // chained binding\n //\n\n QUnit.module('chained binding', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n first = _object.default.create({ output: 'first' });\n\n second = _object.default.extend({\n inputDidChange: (0, _emberMetal.observer)('input', function () {\n (0, _emberMetal.set)(this, 'output', (0, _emberMetal.get)(this, 'input'));\n })\n }).create({\n input: 'second',\n output: 'second'\n });\n\n third = _object.default.create({ input: 'third' });\n\n root = { first: first, second: second, third: third };\n\n expectDeprecation(function () {\n (0, _emberMetal.bind)(root, 'second.input', 'first.output');\n }, /`Ember\\.Binding` is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberMetal.bind)(root, 'second.output', 'third.input');\n }, /`Ember\\.Binding` is deprecated./);\n });\n },\n teardown: function () {\n _emberMetal.run.cancelTimers();\n }\n });\n\n QUnit.test('changing first output should propagate to third after flush', function () {\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.set)(first, 'output', 'change');\n equal('change', (0, _emberMetal.get)(first, 'output'), 'first.output');\n ok('change' !== (0, _emberMetal.get)(third, 'input'), 'third.input');\n });\n\n equal('change', (0, _emberMetal.get)(first, 'output'), 'first.output');\n equal('change', (0, _emberMetal.get)(second, 'input'), 'second.input');\n equal('change', (0, _emberMetal.get)(second, 'output'), 'second.output');\n equal('change', (0, _emberMetal.get)(third, 'input'), 'third.input');\n });\n\n // ..........................................................\n // Custom Binding\n //\n\n QUnit.module('Custom Binding', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n\n Bon1 = _object.default.extend({\n value1: 'hi',\n value2: 83,\n array1: []\n });\n\n bon2 = _object.default.create({\n val1: 'hello',\n val2: 25,\n arr: [1, 2, 3, 4]\n });\n\n _emberEnvironment.context.lookup['TestNamespace'] = TestNamespace = {\n bon2: bon2,\n Bon1: Bon1\n };\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n Bon1 = bon2 = TestNamespace = null;\n _emberMetal.run.cancelTimers();\n }\n });\n\n QUnit.test('two bindings to the same value should sync in the order they are initialized', function () {\n _emberMetal.run.begin();\n\n var a = _object.default.create({\n foo: 'bar'\n });\n\n var b = _object.default.extend({\n C: _object.default.extend({\n foo: 'bee',\n fooBinding: 'owner.foo'\n }),\n\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'c', this.C.create({ owner: this }));\n }\n });\n\n expectDeprecation(function () {\n b = b.create({\n foo: 'baz',\n fooBinding: 'a.foo',\n a: a\n });\n }, /`Ember\\.Binding` is deprecated./);\n\n _emberMetal.run.end();\n\n equal((0, _emberMetal.get)(a, 'foo'), 'bar', 'a.foo should not change');\n equal((0, _emberMetal.get)(b, 'foo'), 'bar', 'a.foo should propagate up to b.foo');\n equal((0, _emberMetal.get)(b.c, 'foo'), 'bar', 'a.foo should propagate up to b.c.foo');\n });\n\n // ..........................................................\n // propertyNameBinding with longhand\n //\n\n QUnit.module('propertyNameBinding with longhand', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n\n lookup['TestNamespace'] = TestNamespace = {};\n (0, _emberMetal.run)(function () {\n TestNamespace.fromObject = _object.default.create({\n value: 'originalValue'\n });\n\n expectDeprecation(function () {\n TestNamespace.toObject = _object.default.extend({\n valueBinding: _emberMetal.Binding.from('TestNamespace.fromObject.value'),\n relativeBinding: _emberMetal.Binding.from('localValue')\n }).create({\n localValue: 'originalLocal'\n });\n }, /`Ember\\.Binding` is deprecated./);\n });\n },\n teardown: function () {\n TestNamespace = undefined;\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('works with full path', function () {\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(TestNamespace.fromObject, 'value', 'updatedValue');\n });\n\n equal((0, _emberMetal.get)(TestNamespace.toObject, 'value'), 'updatedValue');\n\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(TestNamespace.fromObject, 'value', 'newerValue');\n });\n\n equal((0, _emberMetal.get)(TestNamespace.toObject, 'value'), 'newerValue');\n });\n\n QUnit.test('works with local path', function () {\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(TestNamespace.toObject, 'localValue', 'updatedValue');\n });\n\n equal((0, _emberMetal.get)(TestNamespace.toObject, 'relative'), 'updatedValue');\n\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(TestNamespace.toObject, 'localValue', 'newerValue');\n });\n\n equal((0, _emberMetal.get)(TestNamespace.toObject, 'relative'), 'newerValue');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/system/binding_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/system/binding_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/system/object/base_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Changed get(obj, ) and set(obj, ) to Ember.get() and Ember.set()\n * Removed obj.instanceOf() and obj.kindOf() tests. use obj instanceof Foo\n instead\n * Removed respondsTo() and tryToPerform() tests. Can be brought back in a\n utils package.\n * Removed destroy() test. You can impl yourself but not built in\n * Changed Class.subclassOf() test to Class.detect()\n * Remove broken test for 'superclass' property.\n * Removed obj.didChangeFor()\n */\n\n // ========================================================================\n // EmberObject Base Tests\n // ========================================================================\n\n var obj = void 0,\n obj1 = void 0; // global variables\n\n QUnit.module('A new EmberObject instance', {\n setup: function () {\n obj = _object.default.create({\n foo: 'bar',\n total: 12345,\n aMethodThatExists: function () {},\n aMethodThatReturnsTrue: function () {\n return true;\n },\n aMethodThatReturnsFoobar: function () {\n return 'Foobar';\n },\n aMethodThatReturnsFalse: function () {\n return false;\n }\n });\n },\n teardown: function () {\n obj = undefined;\n }\n });\n\n QUnit.test('Should return its properties when requested using EmberObject#get', function () {\n equal((0, _emberMetal.get)(obj, 'foo'), 'bar');\n equal((0, _emberMetal.get)(obj, 'total'), 12345);\n });\n\n QUnit.test('Should allow changing of those properties by calling EmberObject#set', function () {\n equal((0, _emberMetal.get)(obj, 'foo'), 'bar');\n equal((0, _emberMetal.get)(obj, 'total'), 12345);\n\n (0, _emberMetal.set)(obj, 'foo', 'Chunky Bacon');\n (0, _emberMetal.set)(obj, 'total', 12);\n\n equal((0, _emberMetal.get)(obj, 'foo'), 'Chunky Bacon');\n equal((0, _emberMetal.get)(obj, 'total'), 12);\n });\n\n QUnit.module('EmberObject superclass and subclasses', {\n setup: function () {\n obj = _object.default.extend({\n method1: function () {\n return 'hello';\n }\n });\n obj1 = obj.extend();\n },\n teardown: function () {\n obj = undefined;\n obj1 = undefined;\n }\n });\n\n QUnit.test('Checking the detect() function on an object and its subclass', function () {\n equal(obj.detect(obj1), true);\n equal(obj1.detect(obj), false);\n });\n\n QUnit.test('Checking the detectInstance() function on an object and its subclass', function () {\n ok(_object.default.detectInstance(obj.create()));\n ok(obj.detectInstance(obj.create()));\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/system/object/base_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/system/object/base_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/system/object/bindings_test', ['ember-environment', 'ember-metal', 'ember-runtime/system/object'], function (_emberEnvironment, _emberMetal, _object) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * changed Ember.Bending.flushPendingChanges() -> run.sync();\n * changes obj.set() and obj.get() to Ember.set() and Ember.get()\n * Fixed an actual bug in unit tests around line 133\n * fixed 'bindings should disconnect on destroy' test to use destroy.\n */\n\n // ========================================================================\n // EmberObject bindings Tests\n // ========================================================================\n\n var originalLookup = _emberEnvironment.context.lookup;\n var testObject = void 0,\n fromObject = void 0,\n TestObject = void 0;\n var TestNamespace = void 0,\n lookup = void 0;\n\n QUnit.module('bind() method', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n\n testObject = _object.default.create({\n foo: 'bar',\n bar: 'foo',\n extraObject: null\n });\n\n fromObject = _object.default.create({\n bar: 'foo',\n extraObject: null\n });\n\n lookup['TestNamespace'] = TestNamespace = {\n fromObject: fromObject,\n testObject: testObject\n };\n },\n teardown: function () {\n testObject = fromObject = null;\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('bind(TestNamespace.fromObject.bar) should follow absolute path', function () {\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n // create binding\n testObject.bind('foo', 'TestNamespace.fromObject.bar');\n }, /`Ember.Binding` is deprecated/);\n\n // now make a change to see if the binding triggers.\n (0, _emberMetal.set)(fromObject, 'bar', 'changedValue');\n });\n\n equal('changedValue', (0, _emberMetal.get)(testObject, 'foo'), 'testObject.foo');\n });\n\n QUnit.test('bind(.bar) should bind to relative path', function () {\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n // create binding\n testObject.bind('foo', 'bar');\n }, /`Ember.Binding` is deprecated/);\n\n // now make a change to see if the binding triggers.\n (0, _emberMetal.set)(testObject, 'bar', 'changedValue');\n });\n\n equal('changedValue', (0, _emberMetal.get)(testObject, 'foo'), 'testObject.foo');\n });\n\n QUnit.module('fooBinding method', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n\n TestObject = _object.default.extend({\n foo: 'bar',\n bar: 'foo',\n extraObject: null\n });\n\n fromObject = _object.default.create({\n bar: 'foo',\n extraObject: null\n });\n\n lookup['TestNamespace'] = TestNamespace = {\n fromObject: fromObject,\n testObject: TestObject\n };\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n TestObject = fromObject = null;\n // delete TestNamespace;\n }\n });\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n QUnit.test('fooBinding: TestNamespace.fromObject.bar should follow absolute path', function () {\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n // create binding\n testObject = TestObject.extend({\n fooBinding: 'TestNamespace.fromObject.bar'\n }).create();\n }, deprecationMessage);\n\n // now make a change to see if the binding triggers.\n (0, _emberMetal.set)(fromObject, 'bar', 'changedValue');\n });\n\n equal('changedValue', (0, _emberMetal.get)(testObject, 'foo'), 'testObject.foo');\n });\n\n QUnit.test('fooBinding: .bar should bind to relative path', function () {\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n // create binding\n testObject = TestObject.extend({\n fooBinding: 'bar'\n }).create();\n }, deprecationMessage);\n\n // now make a change to see if the binding triggers.\n (0, _emberMetal.set)(testObject, 'bar', 'changedValue');\n });\n\n equal('changedValue', (0, _emberMetal.get)(testObject, 'foo'), 'testObject.foo');\n });\n\n QUnit.test('fooBinding: should disconnect bindings when destroyed', function () {\n (0, _emberMetal.run)(function () {\n expectDeprecation(function () {\n // create binding\n testObject = TestObject.extend({\n fooBinding: 'TestNamespace.fromObject.bar'\n }).create();\n }, deprecationMessage);\n\n (0, _emberMetal.set)(TestNamespace.fromObject, 'bar', 'BAZ');\n });\n\n equal((0, _emberMetal.get)(testObject, 'foo'), 'BAZ', 'binding should have synced');\n\n (0, _emberMetal.run)(function () {\n return testObject.destroy();\n });\n\n (0, _emberMetal.run)(function () {\n return (0, _emberMetal.set)(TestNamespace.fromObject, 'bar', 'BIFF');\n });\n\n ok((0, _emberMetal.get)(testObject, 'foo') !== 'bar', 'binding should not have synced');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/system/object/bindings_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/system/object/bindings_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/system/object/concatenated_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * changed get(obj, ) and set(obj, ) to Ember.get() and Ember.set()\n * converted uses of obj.isEqual() to use deepEqual() test since isEqual is not\n always defined\n */\n\n function K() {\n return this;\n }\n\n var klass = void 0;\n\n QUnit.module('EmberObject Concatenated Properties', {\n setup: function () {\n klass = _object.default.extend({\n concatenatedProperties: ['values', 'functions'],\n values: ['a', 'b', 'c'],\n functions: [K]\n });\n }\n });\n\n QUnit.test('concatenates instances', function () {\n var obj = klass.create({\n values: ['d', 'e', 'f']\n });\n\n var values = (0, _emberMetal.get)(obj, 'values');\n var expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n\n deepEqual(values, expected, 'should concatenate values property (expected: ' + expected + ', got: ' + values + ')');\n });\n\n QUnit.test('concatenates subclasses', function () {\n var subKlass = klass.extend({\n values: ['d', 'e', 'f']\n });\n var obj = subKlass.create();\n\n var values = (0, _emberMetal.get)(obj, 'values');\n var expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n\n deepEqual(values, expected, 'should concatenate values property (expected: ' + expected + ', got: ' + values + ')');\n });\n\n QUnit.test('concatenates reopen', function () {\n klass.reopen({\n values: ['d', 'e', 'f']\n });\n var obj = klass.create();\n\n var values = (0, _emberMetal.get)(obj, 'values');\n var expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n\n deepEqual(values, expected, 'should concatenate values property (expected: ' + expected + ', got: ' + values + ')');\n });\n\n QUnit.test('concatenates mixin', function () {\n var mixin = {\n values: ['d', 'e']\n };\n var subKlass = klass.extend(mixin, {\n values: ['f']\n });\n var obj = subKlass.create();\n\n var values = (0, _emberMetal.get)(obj, 'values');\n var expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n\n deepEqual(values, expected, 'should concatenate values property (expected: ' + expected + ', got: ' + values + ')');\n });\n\n QUnit.test('concatenates reopen, subclass, and instance', function () {\n klass.reopen({ values: ['d'] });\n var subKlass = klass.extend({ values: ['e'] });\n var obj = subKlass.create({ values: ['f'] });\n\n var values = (0, _emberMetal.get)(obj, 'values');\n var expected = ['a', 'b', 'c', 'd', 'e', 'f'];\n\n deepEqual(values, expected, 'should concatenate values property (expected: ' + expected + ', got: ' + values + ')');\n });\n\n QUnit.test('concatenates subclasses when the values are functions', function () {\n var subKlass = klass.extend({\n functions: K\n });\n var obj = subKlass.create();\n\n var values = (0, _emberMetal.get)(obj, 'functions');\n var expected = [K, K];\n\n deepEqual(values, expected, 'should concatenate functions property (expected: ' + expected + ', got: ' + values + ')');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/system/object/concatenated_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/system/object/concatenated_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/legacy_1x/system/run_loop_test', ['ember-metal', 'ember-runtime/mixins/observable', 'ember-runtime/system/object'], function (_emberMetal, _observable, _object) {\n 'use strict';\n\n /*\n NOTE: This test is adapted from the 1.x series of unit tests. The tests\n are the same except for places where we intend to break the API we instead\n validate that we warn the developer appropriately.\n \n CHANGES FROM 1.6:\n \n * Updated the API usage for setting up and syncing Binding since these\n are not the APIs this file is testing.\n \n * Disabled a call to invokeOnce() around line 127 because it appeared to be\n broken anyway. I don't think it ever even worked.\n */\n\n var MyApp = void 0;\n\n QUnit.module('System:run_loop() - chained binding', {\n setup: function () {\n MyApp = {};\n MyApp.first = _object.default.extend(_observable.default).create({\n output: 'MyApp.first'\n });\n\n MyApp.second = _object.default.extend(_observable.default, {\n inputDidChange: (0, _emberMetal.observer)('input', function () {\n this.set('output', this.get('input'));\n })\n }).create({\n input: 'MyApp.second',\n output: 'MyApp.second'\n });\n\n MyApp.third = _object.default.extend(_observable.default).create({\n input: 'MyApp.third'\n });\n }\n });\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n QUnit.test('Should propagate bindings after the RunLoop completes (using Ember.RunLoop)', function () {\n (0, _emberMetal.run)(function () {\n //Binding of output of MyApp.first object to input of MyApp.second object\n expectDeprecation(function () {\n _emberMetal.Binding.from('first.output').to('second.input').connect(MyApp);\n }, deprecationMessage);\n\n //Binding of output of MyApp.second object to input of MyApp.third object\n expectDeprecation(function () {\n _emberMetal.Binding.from('second.output').to('third.input').connect(MyApp);\n }, deprecationMessage);\n });\n\n (0, _emberMetal.run)(function () {\n // Based on the above binding if you change the output of MyApp.first\n // object it should change the all the variable of\n // MyApp.first,MyApp.second and MyApp.third object\n MyApp.first.set('output', 'change');\n\n //Changes the output of the MyApp.first object\n equal(MyApp.first.get('output'), 'change');\n\n //since binding has not taken into effect the value still remains as change.\n equal(MyApp.second.get('output'), 'MyApp.first');\n }); // allows bindings to trigger...\n\n //Value of the output variable changed to 'change'\n equal(MyApp.first.get('output'), 'change');\n\n //Since binding triggered after the end loop the value changed to 'change'.\n equal(MyApp.second.get('output'), 'change');\n });\n\n QUnit.test('Should propagate bindings after the RunLoop completes', function () {\n (0, _emberMetal.run)(function () {\n //Binding of output of MyApp.first object to input of MyApp.second object\n expectDeprecation(function () {\n _emberMetal.Binding.from('first.output').to('second.input').connect(MyApp);\n }, deprecationMessage);\n\n //Binding of output of MyApp.second object to input of MyApp.third object\n expectDeprecation(function () {\n _emberMetal.Binding.from('second.output').to('third.input').connect(MyApp);\n }, deprecationMessage);\n });\n\n (0, _emberMetal.run)(function () {\n //Based on the above binding if you change the output of MyApp.first object it should\n //change the all the variable of MyApp.first,MyApp.second and MyApp.third object\n MyApp.first.set('output', 'change');\n\n //Changes the output of the MyApp.first object\n equal(MyApp.first.get('output'), 'change');\n\n //since binding has not taken into effect the value still remains as change.\n equal(MyApp.second.get('output'), 'MyApp.first');\n });\n\n //Value of the output variable changed to 'change'\n equal(MyApp.first.get('output'), 'change');\n\n //Since binding triggered after the end loop the value changed to 'change'.\n equal(MyApp.second.get('output'), 'change');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/legacy_1x/system/run_loop_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/legacy_1x/system/run_loop_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/main_test', ['ember-runtime/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-runtime/main');\n\n QUnit.test('Ember.computed.collect', function () {\n var MyObj = _index.Object.extend({\n props: (0, _index.collect)('foo', 'bar', 'baz')\n });\n\n var myObj = MyObj.create({\n foo: 3,\n bar: 5,\n baz: 'asdf'\n });\n\n var propsValue = myObj.get('props');\n\n deepEqual(propsValue, [3, 5, 'asdf']);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/main_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/main_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/array_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/tests/suites/array', 'ember-runtime/system/object', 'ember-runtime/mixins/array', 'ember-runtime/system/native_array'], function (_emberMetal, _internalTestHelpers, _array, _object, _array2, _native_array) {\n 'use strict';\n\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n var TestArray = _object.default.extend(_array2.default, {\n _content: null,\n\n init: function () {\n var ary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n this._content = ary;\n },\n addObject: function (obj) {\n var idx = this._content.length;\n (0, _array2.arrayContentWillChange)(this, idx, 0, 1);\n this._content.push(obj);\n (0, _array2.arrayContentDidChange)(this, idx, 0, 1);\n },\n removeFirst: function (idx) {\n (0, _array2.arrayContentWillChange)(this, 0, 1, 0);\n this._content.shift();\n (0, _array2.arrayContentDidChange)(this, 0, 1, 0);\n },\n objectAt: function (idx) {\n return this._content[idx];\n },\n\n\n length: (0, _emberMetal.computed)(function () {\n return this._content.length;\n })\n });\n\n _array.ArrayTests.extend({\n\n name: 'Basic Mutable Array',\n\n newObject: function (ary) {\n ary = ary ? ary.slice() : this.newFixture(3);\n return new TestArray(ary);\n },\n mutate: function (obj) {\n obj.addObject(this.getFixture(1)[0]);\n },\n toArray: function (obj) {\n return obj.slice();\n }\n }).run();\n\n QUnit.test('the return value of slice has Ember.Array applied', function () {\n var x = _object.default.extend(_array2.default).create({\n length: 0\n });\n var y = x.slice(1);\n equal(_array2.default.detect(y), true, 'mixin should be applied');\n });\n\n QUnit.test('slice supports negative index arguments', function () {\n var testArray = new TestArray([1, 2, 3, 4]);\n\n deepEqual(testArray.slice(-2), [3, 4], 'slice(-2)');\n deepEqual(testArray.slice(-2, -1), [3], 'slice(-2, -1');\n deepEqual(testArray.slice(-2, -2), [], 'slice(-2, -2)');\n deepEqual(testArray.slice(-1, -2), [], 'slice(-1, -2)');\n\n deepEqual(testArray.slice(-4, 1), [1], 'slice(-4, 1)');\n deepEqual(testArray.slice(-4, 5), [1, 2, 3, 4], 'slice(-4, 5)');\n deepEqual(testArray.slice(-4), [1, 2, 3, 4], 'slice(-4)');\n\n deepEqual(testArray.slice(0, -1), [1, 2, 3], 'slice(0, -1)');\n deepEqual(testArray.slice(0, -4), [], 'slice(0, -4)');\n deepEqual(testArray.slice(0, -3), [1], 'slice(0, -3)');\n });\n\n // ..........................................................\n // CONTENT DID CHANGE\n //\n\n var DummyArray = _object.default.extend(_array2.default, {\n nextObject: function () {},\n\n length: 0,\n objectAt: function (idx) {\n return 'ITEM-' + idx;\n }\n });\n\n var obj = void 0,\n observer = void 0;\n\n // ..........................................................\n // NOTIFY ARRAY OBSERVERS\n //\n\n QUnit.module('mixins/array/arrayContent[Will|Did]Change');\n\n QUnit.test('should notify observers of []', function () {\n obj = DummyArray.extend({\n enumerablePropertyDidChange: (0, _emberMetal.observer)('[]', function () {\n this._count++;\n })\n }).create({\n _count: 0\n });\n\n equal(obj._count, 0, 'should not have invoked yet');\n\n (0, _array2.arrayContentWillChange)(obj, 0, 1, 1);\n (0, _array2.arrayContentDidChange)(obj, 0, 1, 1);\n\n equal(obj._count, 1, 'should have invoked');\n });\n\n // ..........................................................\n // NOTIFY CHANGES TO LENGTH\n //\n\n QUnit.module('notify observers of length', {\n setup: function () {\n obj = DummyArray.extend({\n lengthDidChange: (0, _emberMetal.observer)('length', function () {\n this._after++;\n })\n }).create({\n _after: 0\n });\n\n equal(obj._after, 0, 'should not have fired yet');\n },\n teardown: function () {\n obj = null;\n }\n });\n\n QUnit.test('should notify observers when call with no params', function () {\n (0, _array2.arrayContentWillChange)(obj);\n equal(obj._after, 0);\n\n (0, _array2.arrayContentDidChange)(obj);\n equal(obj._after, 1);\n });\n\n // API variation that included items only\n QUnit.test('should not notify when passed lengths are same', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 1, 1);\n equal(obj._after, 0);\n\n (0, _array2.arrayContentDidChange)(obj, 0, 1, 1);\n equal(obj._after, 0);\n });\n\n QUnit.test('should notify when passed lengths are different', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 1, 2);\n equal(obj._after, 0);\n\n (0, _array2.arrayContentDidChange)(obj, 0, 1, 2);\n equal(obj._after, 1);\n });\n\n // ..........................................................\n // NOTIFY ARRAY OBSERVER\n //\n\n QUnit.module('notify array observers', {\n setup: function () {\n obj = DummyArray.create();\n\n observer = _object.default.extend({\n arrayWillChange: function () {\n equal(this._before, null); // should only call once\n this._before = Array.prototype.slice.call(arguments);\n },\n arrayDidChange: function () {\n equal(this._after, null); // should only call once\n this._after = Array.prototype.slice.call(arguments);\n }\n }).create({\n _before: null,\n _after: null\n });\n\n (0, _array2.addArrayObserver)(obj, observer);\n },\n teardown: function () {\n obj = observer = null;\n }\n });\n\n QUnit.test('should notify enumerable observers when called with no params', function () {\n (0, _array2.arrayContentWillChange)(obj);\n deepEqual(observer._before, [obj, 0, -1, -1]);\n\n (0, _array2.arrayContentDidChange)(obj);\n deepEqual(observer._after, [obj, 0, -1, -1]);\n });\n\n // API variation that included items only\n QUnit.test('should notify when called with same length items', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 1, 1);\n deepEqual(observer._before, [obj, 0, 1, 1]);\n\n (0, _array2.arrayContentDidChange)(obj, 0, 1, 1);\n deepEqual(observer._after, [obj, 0, 1, 1]);\n });\n\n QUnit.test('should notify when called with diff length items', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 2, 1);\n deepEqual(observer._before, [obj, 0, 2, 1]);\n\n (0, _array2.arrayContentDidChange)(obj, 0, 2, 1);\n deepEqual(observer._after, [obj, 0, 2, 1]);\n });\n\n QUnit.test('removing enumerable observer should disable', function () {\n (0, _array2.removeArrayObserver)(obj, observer);\n (0, _array2.arrayContentWillChange)(obj);\n deepEqual(observer._before, null);\n\n (0, _array2.arrayContentDidChange)(obj);\n deepEqual(observer._after, null);\n });\n\n // ..........................................................\n // NOTIFY ENUMERABLE OBSERVER\n //\n\n QUnit.module('notify enumerable observers as well', {\n setup: function () {\n obj = DummyArray.create();\n\n observer = _object.default.extend({\n enumerableWillChange: function () {\n equal(this._before, null); // should only call once\n this._before = Array.prototype.slice.call(arguments);\n },\n enumerableDidChange: function () {\n equal(this._after, null); // should only call once\n this._after = Array.prototype.slice.call(arguments);\n }\n }).create({\n _before: null,\n _after: null\n });\n\n obj.addEnumerableObserver(observer);\n },\n teardown: function () {\n obj = observer = null;\n }\n });\n\n QUnit.test('should notify enumerable observers when called with no params', function () {\n (0, _array2.arrayContentWillChange)(obj);\n deepEqual(observer._before, [obj, null, null], 'before');\n\n (0, _array2.arrayContentDidChange)(obj);\n deepEqual(observer._after, [obj, null, null], 'after');\n });\n\n // API variation that included items only\n QUnit.test('should notify when called with same length items', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 1, 1);\n deepEqual(observer._before, [obj, ['ITEM-0'], 1], 'before');\n\n (0, _array2.arrayContentDidChange)(obj, 0, 1, 1);\n deepEqual(observer._after, [obj, 1, ['ITEM-0']], 'after');\n });\n\n QUnit.test('should notify when called with diff length items', function () {\n (0, _array2.arrayContentWillChange)(obj, 0, 2, 1);\n deepEqual(observer._before, [obj, ['ITEM-0', 'ITEM-1'], 1], 'before');\n\n (0, _array2.arrayContentDidChange)(obj, 0, 2, 1);\n deepEqual(observer._after, [obj, 2, ['ITEM-0']], 'after');\n });\n\n QUnit.test('removing enumerable observer should disable', function () {\n obj.removeEnumerableObserver(observer);\n (0, _array2.arrayContentWillChange)(obj);\n deepEqual(observer._before, null, 'before');\n\n (0, _array2.arrayContentDidChange)(obj);\n deepEqual(observer._after, null, 'after');\n });\n\n // ..........................................................\n // @each\n //\n\n var ary = void 0;\n\n QUnit.module('EmberArray.@each support', {\n setup: function () {\n ary = new TestArray([{ isDone: true, desc: 'Todo 1' }, { isDone: false, desc: 'Todo 2' }, { isDone: true, desc: 'Todo 3' }, { isDone: false, desc: 'Todo 4' }]);\n },\n teardown: function () {\n ary = null;\n }\n });\n\n QUnit.test('adding an object should notify (@each.isDone)', function () {\n var called = 0;\n\n var observerObject = _object.default.create({\n wasCalled: function () {\n called++;\n }\n });\n\n (0, _emberMetal.addObserver)(ary, '@each.isDone', observerObject, 'wasCalled');\n\n ary.addObject(_object.default.create({\n desc: 'foo',\n isDone: false\n }));\n\n equal(called, 1, 'calls observer when object is pushed');\n });\n\n QUnit.test('@each is readOnly', function () {\n expect(1);\n\n throws(function () {\n (0, _emberMetal.set)(ary, '@each', 'foo');\n }, /Cannot set read-only property \"@each\"/);\n });\n\n QUnit.test('using @each to observe arrays that does not return objects raise error', function () {\n var called = 0;\n\n var observerObject = _object.default.create({\n wasCalled: function () {\n called++;\n }\n });\n\n ary = TestArray.create({\n objectAt: function (idx) {\n return (0, _emberMetal.get)(this._content[idx], 'desc');\n }\n });\n\n (0, _emberMetal.addObserver)(ary, '@each.isDone', observerObject, 'wasCalled');\n\n expectAssertion(function () {\n ary.addObject(_object.default.create({\n desc: 'foo',\n isDone: false\n }));\n }, /When using @each to observe the array/);\n\n equal(called, 0, 'not calls observer when object is pushed');\n });\n\n QUnit.test('modifying the array should also indicate the isDone prop itself has changed', function () {\n // NOTE: we never actually get the '@each.isDone' property here. This is\n // important because it tests the case where we don't have an isDone\n // EachArray materialized but just want to know when the property has\n // changed.\n\n var each = (0, _emberMetal.get)(ary, '@each');\n var count = 0;\n\n (0, _emberMetal.addObserver)(each, 'isDone', function () {\n return count++;\n });\n\n count = 0;\n var item = (0, _array2.objectAt)(ary, 2);\n (0, _emberMetal.set)(item, 'isDone', !(0, _emberMetal.get)(item, 'isDone'));\n equal(count, 1, '@each.isDone should have notified');\n });\n\n QUnit.test('`objectAt` returns correct object', function () {\n var arr = ['first', 'second', 'third', 'fourth'];\n equal((0, _array2.objectAt)(arr, 2), 'third');\n equal((0, _array2.objectAt)(arr, 4), undefined);\n });\n\n (0, _internalTestHelpers.testBoth)('should be clear caches for computed properties that have dependent keys on arrays that are changed after object initialization', function (get, set) {\n var obj = _object.default.extend({\n init: function () {\n this._super.apply(this, arguments);\n set(this, 'resources', (0, _native_array.A)());\n },\n\n\n common: (0, _emberMetal.computed)('resources.@each.common', function () {\n return get((0, _array2.objectAt)(get(this, 'resources'), 0), 'common');\n })\n }).create();\n\n get(obj, 'resources').pushObject(_object.default.create({ common: 'HI!' }));\n equal('HI!', get(obj, 'common'));\n\n set((0, _array2.objectAt)(get(obj, 'resources'), 0), 'common', 'BYE!');\n equal('BYE!', get(obj, 'common'));\n });\n\n (0, _internalTestHelpers.testBoth)('observers that contain @each in the path should fire only once the first time they are accessed', function (get, set) {\n var count = 0;\n\n var obj = _object.default.extend({\n init: function () {\n this._super.apply(this, arguments);\n // Observer does not fire on init\n set(this, 'resources', (0, _native_array.A)());\n },\n\n\n commonDidChange: (0, _emberMetal.observer)('resources.@each.common', function () {\n return count++;\n })\n }).create();\n\n // Observer fires second time when new object is added\n get(obj, 'resources').pushObject(_object.default.create({ common: 'HI!' }));\n // Observer fires third time when property on an object is changed\n set((0, _array2.objectAt)(get(obj, 'resources'), 0), 'common', 'BYE!');\n\n equal(count, 2, 'observers should only be called once');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/array_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/array_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/comparable_test', ['ember-metal', 'ember-runtime/system/object', 'ember-runtime/compare', 'ember-runtime/mixins/comparable'], function (_emberMetal, _object, _compare, _comparable) {\n 'use strict';\n\n var Rectangle = _object.default.extend(_comparable.default, {\n length: 0,\n width: 0,\n\n area: function () {\n return (0, _emberMetal.get)(this, 'length') * (0, _emberMetal.get)(this, 'width');\n },\n compare: function (a, b) {\n return (0, _compare.default)(a.area(), b.area());\n }\n });\n\n var r1 = void 0,\n r2 = void 0;\n\n QUnit.module('Comparable', {\n setup: function () {\n r1 = Rectangle.create({ length: 6, width: 12 });\n r2 = Rectangle.create({ length: 6, width: 13 });\n }\n });\n\n QUnit.test('should be comparable and return the correct result', function () {\n equal(_comparable.default.detect(r1), true);\n equal((0, _compare.default)(r1, r1), 0);\n equal((0, _compare.default)(r1, r2), -1);\n equal((0, _compare.default)(r2, r1), 1);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/comparable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/comparable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/container_proxy_test', ['ember-utils', 'container', 'ember-runtime/mixins/container_proxy', 'ember-runtime/system/object'], function (_emberUtils, _container, _container_proxy, _object) {\n 'use strict';\n\n QUnit.module('ember-runtime/mixins/container_proxy', {\n setup: function () {\n this.Owner = _object.default.extend(_container_proxy.default);\n this.instance = this.Owner.create();\n\n var registry = new _container.Registry();\n\n this.instance.__container__ = new _container.Container(registry, {\n owner: this.instance\n });\n }\n });\n\n QUnit.test('provides ownerInjection helper method', function (assert) {\n var result = this.instance.ownerInjection();\n\n assert.equal(result[_emberUtils.OWNER], this.instance, 'returns an object with the OWNER symbol');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/container_proxy_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/container_proxy_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/copyable_test', ['ember-utils', 'ember-runtime/tests/suites/copyable', 'ember-runtime/mixins/copyable', 'ember-runtime/mixins/freezable', 'ember-runtime/system/object', 'ember-metal'], function (_emberUtils, _copyable, _copyable2, _freezable, _object, _emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.Copyable.frozenCopy');\n\n QUnit.test('should be deprecated', function () {\n expectDeprecation('`frozenCopy` is deprecated, use `Object.freeze` instead.');\n\n var Obj = _object.default.extend(_freezable.Freezable, _copyable2.default, {\n copy: function () {\n return Obj.create();\n }\n });\n\n Obj.create().frozenCopy();\n });\n\n var CopyableObject = _object.default.extend(_copyable2.default, {\n id: null,\n\n init: function () {\n this._super.apply(this, arguments);\n (0, _emberMetal.set)(this, 'id', (0, _emberUtils.generateGuid)());\n },\n copy: function () {\n var ret = new CopyableObject();\n (0, _emberMetal.set)(ret, 'id', (0, _emberMetal.get)(this, 'id'));\n return ret;\n }\n });\n\n _copyable.default.extend({\n\n name: 'Copyable Basic Test',\n\n newObject: function () {\n return new CopyableObject();\n },\n isEqual: function (a, b) {\n if (!(a instanceof CopyableObject) || !(b instanceof CopyableObject)) {\n return false;\n }\n\n return (0, _emberMetal.get)(a, 'id') === (0, _emberMetal.get)(b, 'id');\n }\n }).run();\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/copyable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/copyable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/enumerable_test', ['ember-runtime/tests/suites/enumerable', 'ember-runtime/system/object', 'ember-runtime/mixins/enumerable', 'ember-runtime/mixins/array', 'ember-runtime/system/native_array', 'ember-metal'], function (_enumerable, _object, _enumerable2, _array, _native_array, _emberMetal) {\n 'use strict';\n\n function K() {\n return this;\n }\n\n /*\n Implement a basic fake enumerable. This validates that any non-native\n enumerable can impl this API.\n */\n var TestEnumerable = _object.default.extend(_enumerable2.default, {\n _content: null,\n\n init: function () {\n var ary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n this._content = ary;\n },\n addObject: function (obj) {\n if (this._content.indexOf(obj) >= 0) {\n return this;\n }\n\n this._content.push(obj);\n this.enumerableContentDidChange();\n },\n nextObject: function (idx) {\n return idx >= (0, _emberMetal.get)(this, 'length') ? undefined : this._content[idx];\n },\n\n\n length: (0, _emberMetal.computed)(function () {\n return this._content.length;\n }),\n\n slice: function () {\n return this._content.slice();\n }\n });\n\n _enumerable.default.extend({\n name: 'Basic Enumerable',\n\n newObject: function (ary) {\n ary = ary ? ary.slice() : this.newFixture(3);\n return new TestEnumerable(ary);\n },\n mutate: function (obj) {\n obj.addObject(obj._content.length + 1);\n },\n toArray: function (obj) {\n return obj.slice();\n }\n }).run();\n\n QUnit.module('Ember.Enumerable');\n\n QUnit.test('should apply Ember.Array to return value of map', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n var y = x.map(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('should apply Ember.Array to return value of filter', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n var y = x.filter(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('should apply Ember.Array to return value of invoke', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n var y = x.invoke(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('should apply Ember.Array to return value of toArray', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n var y = x.toArray(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('should apply Ember.Array to return value of without', function () {\n var X = _object.default.extend(_enumerable2.default, {\n contains: function () {\n return true;\n },\n includes: function () {\n return true;\n }\n });\n\n var x = X.create();\n var y = x.without(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('should apply Ember.Array to return value of uniq', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n var y = x.uniq(K);\n equal(_array.default.detect(y), true, 'should have mixin applied');\n });\n\n QUnit.test('any', function () {\n var kittens = (0, _native_array.A)([{\n color: 'white'\n }, {\n color: 'black'\n }, {\n color: 'white'\n }]);\n var foundWhite = kittens.any(function (kitten) {\n return kitten.color === 'white';\n });\n var foundWhite2 = kittens.isAny('color', 'white');\n\n equal(foundWhite, true);\n equal(foundWhite2, true);\n });\n\n QUnit.test('any with NaN', function () {\n var numbers = (0, _native_array.A)([1, 2, NaN, 4]);\n\n var hasNaN = numbers.any(function (n) {\n return isNaN(n);\n });\n\n equal(hasNaN, true, 'works when matching NaN');\n });\n\n QUnit.test('every', function () {\n var allColorsKittens = (0, _native_array.A)([{\n color: 'white'\n }, {\n color: 'black'\n }, {\n color: 'white'\n }]);\n var allWhiteKittens = (0, _native_array.A)([{\n color: 'white'\n }, {\n color: 'white'\n }, {\n color: 'white'\n }]);\n var allWhite = false;\n var whiteKittenPredicate = function (kitten) {\n return kitten.color === 'white';\n };\n\n allWhite = allColorsKittens.every(whiteKittenPredicate);\n equal(allWhite, false);\n\n allWhite = allWhiteKittens.every(whiteKittenPredicate);\n equal(allWhite, true);\n\n allWhite = allColorsKittens.isEvery('color', 'white');\n equal(allWhite, false);\n\n allWhite = allWhiteKittens.isEvery('color', 'white');\n equal(allWhite, true);\n });\n\n QUnit.test('should throw an error passing a second argument to includes', function () {\n var x = _object.default.extend(_enumerable2.default).create();\n\n equal(x.includes('any'), false);\n expectAssertion(function () {\n x.includes('any', 1);\n }, /Enumerable#includes cannot accept a second argument \"startAt\" as enumerable items are unordered./);\n });\n\n // ..........................................................\n // CONTENT DID CHANGE\n //\n\n var DummyEnum = _object.default.extend(_enumerable2.default, {\n nextObject: function () {},\n\n length: 0\n });\n\n var obj = void 0,\n observer = void 0;\n\n // ..........................................................\n // NOTIFY ENUMERABLE PROPERTY\n //\n\n QUnit.module('mixins/enumerable/enumerableContentDidChange');\n\n QUnit.test('should notify observers of []', function () {\n var obj = _object.default.extend(_enumerable2.default, {\n nextObject: function () {},\n // avoid exceptions\n\n enumerablePropertyDidChange: (0, _emberMetal.observer)('[]', function () {\n this._count++;\n })\n }).create({\n _count: 0\n });\n\n equal(obj._count, 0, 'should not have invoked yet');\n obj.enumerableContentWillChange();\n obj.enumerableContentDidChange();\n equal(obj._count, 1, 'should have invoked');\n });\n\n // ..........................................................\n // NOTIFY CHANGES TO LENGTH\n //\n\n QUnit.module('notify observers of length', {\n setup: function () {\n obj = DummyEnum.extend({\n lengthDidChange: (0, _emberMetal.observer)('length', function () {\n this._after++;\n })\n }).create({\n _after: 0\n });\n\n equal(obj._after, 0, 'should not have fired yet');\n },\n teardown: function () {\n obj = null;\n }\n });\n\n QUnit.test('should notify observers when call with no params', function () {\n obj.enumerableContentWillChange();\n equal(obj._after, 0);\n\n obj.enumerableContentDidChange();\n equal(obj._after, 1);\n });\n\n // API variation that included items only\n QUnit.test('should not notify when passed arrays of same length', function () {\n var added = ['foo'];\n var removed = ['bar'];\n\n obj.enumerableContentWillChange(removed, added);\n equal(obj._after, 0);\n\n obj.enumerableContentDidChange(removed, added);\n equal(obj._after, 0);\n });\n\n QUnit.test('should notify when passed arrays of different length', function () {\n var added = ['foo'];\n var removed = ['bar', 'baz'];\n\n obj.enumerableContentWillChange(removed, added);\n equal(obj._after, 0);\n\n obj.enumerableContentDidChange(removed, added);\n equal(obj._after, 1);\n });\n\n // API variation passes indexes only\n QUnit.test('should not notify when passed with indexes', function () {\n obj.enumerableContentWillChange(1, 1);\n equal(obj._after, 0);\n\n obj.enumerableContentDidChange(1, 1);\n equal(obj._after, 0);\n });\n\n QUnit.test('should notify when passed old index API with delta', function () {\n obj.enumerableContentWillChange(1, 2);\n equal(obj._after, 0);\n\n obj.enumerableContentDidChange(1, 2);\n equal(obj._after, 1);\n });\n\n // ..........................................................\n // NOTIFY ENUMERABLE OBSERVER\n //\n\n QUnit.module('notify enumerable observers', {\n setup: function () {\n obj = DummyEnum.create();\n\n observer = _object.default.extend({\n enumerableWillChange: function () {\n equal(this._before, null); // should only call once\n this._before = Array.prototype.slice.call(arguments);\n },\n enumerableDidChange: function () {\n equal(this._after, null); // should only call once\n this._after = Array.prototype.slice.call(arguments);\n }\n }).create({\n _before: null,\n _after: null\n });\n\n obj.addEnumerableObserver(observer);\n },\n teardown: function () {\n obj = observer = null;\n }\n });\n\n QUnit.test('should notify enumerable observers when called with no params', function () {\n obj.enumerableContentWillChange();\n deepEqual(observer._before, [obj, null, null]);\n\n obj.enumerableContentDidChange();\n deepEqual(observer._after, [obj, null, null]);\n });\n\n // API variation that included items only\n QUnit.test('should notify when called with same length items', function () {\n var added = ['foo'];\n var removed = ['bar'];\n\n obj.enumerableContentWillChange(removed, added);\n deepEqual(observer._before, [obj, removed, added]);\n\n obj.enumerableContentDidChange(removed, added);\n deepEqual(observer._after, [obj, removed, added]);\n });\n\n QUnit.test('should notify when called with diff length items', function () {\n var added = ['foo', 'baz'];\n var removed = ['bar'];\n\n obj.enumerableContentWillChange(removed, added);\n deepEqual(observer._before, [obj, removed, added]);\n\n obj.enumerableContentDidChange(removed, added);\n deepEqual(observer._after, [obj, removed, added]);\n });\n\n QUnit.test('should not notify when passed with indexes only', function () {\n obj.enumerableContentWillChange(1, 2);\n deepEqual(observer._before, [obj, 1, 2]);\n\n obj.enumerableContentDidChange(1, 2);\n deepEqual(observer._after, [obj, 1, 2]);\n });\n\n QUnit.test('removing enumerable observer should disable', function () {\n obj.removeEnumerableObserver(observer);\n obj.enumerableContentWillChange();\n deepEqual(observer._before, null);\n\n obj.enumerableContentDidChange();\n deepEqual(observer._after, null);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/enumerable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/enumerable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/freezable_test', ['ember-runtime/system/object', 'ember-runtime/mixins/freezable'], function (_object, _freezable) {\n 'use strict';\n\n QUnit.module('Ember.Freezable');\n\n QUnit.test('should be deprecated', function () {\n expectDeprecation('`Ember.Freezable` is deprecated, use `Object.freeze` instead.');\n _object.default.extend(_freezable.Freezable).create();\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/freezable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/freezable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/mutable_array_test', ['ember-metal', 'ember-runtime/tests/suites/mutable_array', 'ember-runtime/mixins/mutable_array', 'ember-runtime/system/object', 'ember-runtime/system/native_array', 'ember-runtime/mixins/array'], function (_emberMetal, _mutable_array, _mutable_array2, _object, _native_array, _array) {\n 'use strict';\n\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n var TestMutableArray = _object.default.extend(_mutable_array2.default, {\n\n _content: null,\n\n init: function () {\n var ary = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n\n this._content = (0, _native_array.A)(ary);\n },\n replace: function (idx, amt, objects) {\n var args = objects ? objects.slice() : [];\n var removeAmt = amt;\n var addAmt = args.length;\n\n (0, _array.arrayContentWillChange)(this, idx, removeAmt, addAmt);\n\n args.unshift(amt);\n args.unshift(idx);\n this._content.splice.apply(this._content, args);\n (0, _array.arrayContentDidChange)(this, idx, removeAmt, addAmt);\n return this;\n },\n objectAt: function (idx) {\n return this._content[idx];\n },\n\n\n length: (0, _emberMetal.computed)(function () {\n return this._content.length;\n }),\n\n slice: function () {\n return this._content.slice();\n }\n });\n\n _mutable_array.default.extend({\n\n name: 'Basic Mutable Array',\n\n newObject: function (ary) {\n ary = ary ? ary.slice() : this.newFixture(3);\n return new TestMutableArray(ary);\n },\n mutate: function (obj) {\n obj.addObject(this.getFixture(1)[0]);\n },\n toArray: function (obj) {\n return obj.slice();\n }\n }).run();\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/mutable_array_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/mutable_array_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/mutable_enumerable_test', ['ember-runtime/tests/suites/mutable_enumerable', 'ember-runtime/mixins/mutable_enumerable', 'ember-runtime/system/object', 'ember-metal'], function (_mutable_enumerable, _mutable_enumerable2, _object, _emberMetal) {\n 'use strict';\n\n /*\n Implement a basic fake mutable array. This validates that any non-native\n enumerable can impl this API.\n */\n var TestMutableEnumerable = _object.default.extend(_mutable_enumerable2.default, {\n _content: null,\n\n addObject: function (obj) {\n if (this._content.indexOf(obj) >= 0) {\n return this;\n }\n\n this.enumerableContentWillChange(null, [obj]);\n this._content.push(obj);\n this.enumerableContentDidChange(null, [obj]);\n },\n removeObject: function (obj) {\n var idx = this._content.indexOf(obj);\n if (idx < 0) {\n return this;\n }\n\n this.enumerableContentWillChange([obj], null);\n this._content.splice(idx, 1);\n this.enumerableContentDidChange([obj], null);\n return this;\n },\n init: function (ary) {\n this._content = ary || [];\n },\n nextObject: function (idx) {\n return idx >= (0, _emberMetal.get)(this, 'length') ? undefined : this._content[idx];\n },\n\n\n length: (0, _emberMetal.computed)(function () {\n return this._content.length;\n }),\n\n slice: function () {\n return this._content.slice();\n }\n });\n\n _mutable_enumerable.default.extend({\n name: 'Basic Mutable Array',\n\n newObject: function (ary) {\n ary = ary ? ary.slice() : this.newFixture(3);\n return new TestMutableEnumerable(ary);\n },\n mutate: function (obj) {\n obj.addObject(this.getFixture(1)[0]);\n },\n toArray: function (obj) {\n return obj.slice();\n }\n }).run();\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/mutable_enumerable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/mutable_enumerable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/observable_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object'], function (_emberMetal, _internalTestHelpers, _object) {\n 'use strict';\n\n QUnit.module('mixins/observable');\n\n QUnit.test('should be able to use getProperties to get a POJO of provided keys', function () {\n var obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n var pojo = obj.getProperties('firstName', 'lastName');\n equal('Steve', pojo.firstName);\n equal('Jobs', pojo.lastName);\n });\n\n QUnit.test('should be able to use getProperties with array parameter to get a POJO of provided keys', function () {\n var obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n var pojo = obj.getProperties(['firstName', 'lastName']);\n equal('Steve', pojo.firstName);\n equal('Jobs', pojo.lastName);\n });\n\n QUnit.test('should be able to use setProperties to set multiple properties at once', function () {\n var obj = _object.default.create({\n firstName: 'Steve',\n lastName: 'Jobs',\n companyName: 'Apple, Inc.'\n });\n\n obj.setProperties({ firstName: 'Tim', lastName: 'Cook' });\n equal('Tim', obj.get('firstName'));\n equal('Cook', obj.get('lastName'));\n });\n\n (0, _internalTestHelpers.testBoth)('calling setProperties completes safely despite exceptions', function (get, set) {\n var exc = new Error('Something unexpected happened!');\n var obj = _object.default.extend({\n companyName: (0, _emberMetal.computed)({\n get: function () {\n return 'Apple, Inc.';\n },\n set: function (key, value) {\n throw exc;\n }\n })\n }).create({\n firstName: 'Steve',\n lastName: 'Jobs'\n });\n\n var firstNameChangedCount = 0;\n\n (0, _emberMetal.addObserver)(obj, 'firstName', function () {\n return firstNameChangedCount++;\n });\n\n try {\n obj.setProperties({\n firstName: 'Tim',\n lastName: 'Cook',\n companyName: 'Fruit Co., Inc.'\n });\n } catch (err) {\n if (err !== exc) {\n throw err;\n }\n }\n\n equal(firstNameChangedCount, 1, 'firstName should have fired once');\n });\n\n (0, _internalTestHelpers.testBoth)('should be able to retrieve cached values of computed properties without invoking the computed property', function (get) {\n var obj = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'foo';\n })\n }).create({\n bar: 'bar'\n });\n\n equal(obj.cacheFor('foo'), undefined, 'should return undefined if no value has been cached');\n get(obj, 'foo');\n\n equal(get(obj, 'foo'), 'foo', 'precond - should cache the value');\n equal(obj.cacheFor('foo'), 'foo', 'should return the cached value after it is invoked');\n\n equal(obj.cacheFor('bar'), undefined, 'returns undefined if the value is not a computed property');\n });\n\n QUnit.test('incrementProperty should work even if value is number in string', function () {\n var obj = _object.default.create({\n age: '24'\n });\n obj.incrementProperty('age');\n equal(25, obj.get('age'));\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/observable_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/observable_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/promise_proxy_test', ['ember-metal', 'ember-runtime/system/object_proxy', 'ember-runtime/mixins/promise_proxy', 'ember-runtime/ext/rsvp', 'rsvp'], function (_emberMetal, _object_proxy, _promise_proxy, _rsvp, _rsvp2) {\n 'use strict';\n\n var ObjectPromiseProxy = void 0;\n\n QUnit.test('present on ember namespace', function () {\n ok(_promise_proxy.default, 'expected PromiseProxyMixin to exist');\n });\n\n QUnit.module('Ember.PromiseProxy - ObjectProxy', {\n setup: function () {\n ObjectPromiseProxy = _object_proxy.default.extend(_promise_proxy.default);\n },\n teardown: function () {\n _rsvp2.on('error', _rsvp.onerrorDefault);\n }\n });\n\n QUnit.test('no promise, invoking then should raise', function () {\n var proxy = ObjectPromiseProxy.create();\n\n throws(function () {\n proxy.then(function () {\n return this;\n }, function () {\n return this;\n });\n }, new RegExp('PromiseProxy\\'s promise must be set'));\n });\n\n QUnit.test('fulfillment', function () {\n var value = {\n firstName: 'stef',\n lastName: 'penner'\n };\n\n var deferred = _rsvp2.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n var didFulfillCount = 0;\n var didRejectCount = 0;\n\n proxy.then(function () {\n return didFulfillCount++;\n }, function () {\n return didRejectCount++;\n });\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n equal(didRejectCount, 0, 'should not yet have been rejected');\n\n (0, _emberMetal.run)(deferred, 'resolve', value);\n\n equal(didFulfillCount, 1, 'should have been fulfilled');\n equal(didRejectCount, 0, 'should not have been rejected');\n\n equal((0, _emberMetal.get)(proxy, 'content'), value, 'expects the proxy to have content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy to still have no reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled');\n\n (0, _emberMetal.run)(deferred, 'resolve', value);\n\n equal(didFulfillCount, 1, 'should still have been only fulfilled once');\n equal(didRejectCount, 0, 'should still not have been rejected');\n\n (0, _emberMetal.run)(deferred, 'reject', value);\n\n equal(didFulfillCount, 1, 'should still have been only fulfilled once');\n equal(didRejectCount, 0, 'should still not have been rejected');\n\n equal((0, _emberMetal.get)(proxy, 'content'), value, 'expects the proxy to have still have same content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy still to have no reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled');\n\n // rest of the promise semantics are tested in directly in RSVP\n });\n\n QUnit.test('rejection', function () {\n var reason = new Error('failure');\n var deferred = _rsvp2.defer();\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n var didFulfillCount = 0;\n var didRejectCount = 0;\n\n proxy.then(function () {\n return didFulfillCount++;\n }, function () {\n return didRejectCount++;\n });\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n equal(didRejectCount, 0, 'should not yet have been rejected');\n\n (0, _emberMetal.run)(deferred, 'reject', reason);\n\n equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n equal(didRejectCount, 1, 'should have been rejected');\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), reason, 'expects the proxy to have a reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n (0, _emberMetal.run)(deferred, 'reject', reason);\n\n equal(didFulfillCount, 0, 'should stll not yet have been fulfilled');\n equal(didRejectCount, 1, 'should still remain rejected');\n\n (0, _emberMetal.run)(deferred, 'resolve', 1);\n\n equal(didFulfillCount, 0, 'should stll not yet have been fulfilled');\n equal(didRejectCount, 1, 'should still remain rejected');\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), reason, 'expects the proxy to have a reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n });\n\n // https://github.com/emberjs/ember.js/issues/15694\n QUnit.test('rejection without specifying reason', function () {\n var reason = new Error('failure');\n var deferred = _rsvp2.defer();\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n var didFulfillCount = 0;\n var didRejectCount = 0;\n\n proxy.then(function () {\n return didFulfillCount++;\n }, function () {\n return didRejectCount++;\n });\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy to have no reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n equal(didRejectCount, 0, 'should not yet have been rejected');\n\n (0, _emberMetal.run)(deferred, 'reject');\n\n equal(didFulfillCount, 0, 'should not yet have been fulfilled');\n equal(didRejectCount, 1, 'should have been rejected');\n\n equal((0, _emberMetal.get)(proxy, 'content'), undefined, 'expects the proxy to have no content');\n equal((0, _emberMetal.get)(proxy, 'reason'), undefined, 'expects the proxy to have a reason');\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n });\n\n QUnit.test('unhandled rejects still propagate to RSVP.on(\\'error\\', ...) ', function () {\n expect(1);\n\n _rsvp2.on('error', onerror);\n _rsvp2.off('error', _rsvp.onerrorDefault);\n\n var expectedReason = new Error('failure');\n var deferred = _rsvp2.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.get('promise');\n\n function onerror(reason) {\n equal(reason, expectedReason, 'expected reason');\n }\n\n _rsvp2.on('error', onerror);\n _rsvp2.off('error', _rsvp.onerrorDefault);\n\n (0, _emberMetal.run)(deferred, 'reject', expectedReason);\n\n _rsvp2.on('error', _rsvp.onerrorDefault);\n _rsvp2.off('error', onerror);\n\n (0, _emberMetal.run)(deferred, 'reject', expectedReason);\n\n _rsvp2.on('error', _rsvp.onerrorDefault);\n _rsvp2.off('error', onerror);\n });\n\n QUnit.test('should work with promise inheritance', function () {\n function PromiseSubclass() {\n _rsvp2.Promise.apply(this, arguments);\n }\n\n PromiseSubclass.prototype = Object.create(_rsvp2.Promise.prototype);\n PromiseSubclass.prototype.constructor = PromiseSubclass;\n\n var proxy = ObjectPromiseProxy.create({\n promise: new PromiseSubclass(function () {})\n });\n\n ok(proxy.then() instanceof PromiseSubclass, 'promise proxy respected inheritance');\n });\n\n QUnit.test('should reset isFulfilled and isRejected when promise is reset', function () {\n var deferred = _rsvp.default.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n equal((0, _emberMetal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n (0, _emberMetal.run)(deferred, 'resolve');\n\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is no longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), true, 'expects the proxy to indicate that it is fulfilled');\n\n var anotherDeferred = _rsvp.default.defer();\n proxy.set('promise', anotherDeferred.promise);\n\n equal((0, _emberMetal.get)(proxy, 'isPending'), true, 'expects the proxy to indicate that it is loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), false, 'expects the proxy to indicate that it is not settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), false, 'expects the proxy to indicate that it is not rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n\n (0, _emberMetal.run)(anotherDeferred, 'reject');\n\n equal((0, _emberMetal.get)(proxy, 'isPending'), false, 'expects the proxy to indicate that it is not longer loading');\n equal((0, _emberMetal.get)(proxy, 'isSettled'), true, 'expects the proxy to indicate that it is settled');\n equal((0, _emberMetal.get)(proxy, 'isRejected'), true, 'expects the proxy to indicate that it is rejected');\n equal((0, _emberMetal.get)(proxy, 'isFulfilled'), false, 'expects the proxy to indicate that it is not fulfilled');\n });\n\n QUnit.test('should have content when isFulfilled is set', function () {\n var deferred = _rsvp.default.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.addObserver('isFulfilled', function () {\n return equal((0, _emberMetal.get)(proxy, 'content'), true);\n });\n\n (0, _emberMetal.run)(deferred, 'resolve', true);\n });\n\n QUnit.test('should have reason when isRejected is set', function () {\n var error = new Error('Y U REJECT?!?');\n var deferred = _rsvp.default.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.addObserver('isRejected', function () {\n return equal((0, _emberMetal.get)(proxy, 'reason'), error);\n });\n\n try {\n (0, _emberMetal.run)(deferred, 'reject', error);\n } catch (e) {\n equal(e, error);\n }\n });\n\n QUnit.test('should not error if promise is resolved after proxy has been destroyed', function () {\n var deferred = _rsvp.default.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.then(function () {}, function () {});\n\n (0, _emberMetal.run)(proxy, 'destroy');\n\n (0, _emberMetal.run)(deferred, 'resolve', true);\n\n ok(true, 'resolving the promise after the proxy has been destroyed does not raise an error');\n });\n\n QUnit.test('should not error if promise is rejected after proxy has been destroyed', function () {\n var deferred = _rsvp.default.defer();\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.then(function () {}, function () {});\n\n (0, _emberMetal.run)(proxy, 'destroy');\n\n (0, _emberMetal.run)(deferred, 'reject', 'some reason');\n\n ok(true, 'rejecting the promise after the proxy has been destroyed does not raise an error');\n });\n\n QUnit.test('promise chain is not broken if promised is resolved after proxy has been destroyed', function () {\n var deferred = _rsvp.default.defer();\n var expectedValue = {};\n var receivedValue = void 0;\n var didResolveCount = 0;\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.then(function (value) {\n receivedValue = value;\n didResolveCount++;\n }, function () {});\n\n (0, _emberMetal.run)(proxy, 'destroy');\n\n (0, _emberMetal.run)(deferred, 'resolve', expectedValue);\n\n equal(didResolveCount, 1, 'callback called');\n equal(receivedValue, expectedValue, 'passed value is the value the promise was resolved with');\n });\n\n QUnit.test('promise chain is not broken if promised is rejected after proxy has been destroyed', function () {\n var deferred = _rsvp.default.defer();\n var expectedReason = 'some reason';\n var receivedReason = void 0;\n var didRejectCount = 0;\n\n var proxy = ObjectPromiseProxy.create({\n promise: deferred.promise\n });\n\n proxy.then(function () {}, function (reason) {\n receivedReason = reason;\n didRejectCount++;\n });\n\n (0, _emberMetal.run)(proxy, 'destroy');\n\n (0, _emberMetal.run)(deferred, 'reject', expectedReason);\n\n equal(didRejectCount, 1, 'callback called');\n equal(receivedReason, expectedReason, 'passed reason is the reason the promise was rejected for');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/promise_proxy_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/promise_proxy_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/mixins/target_action_support_test', ['ember-environment', 'ember-runtime/system/object', 'ember-runtime/mixins/target_action_support'], function (_emberEnvironment, _object, _target_action_support) {\n 'use strict';\n\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n QUnit.module('TargetActionSupport', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('it should return false if no target or action are specified', function () {\n expect(1);\n\n var obj = _object.default.extend(_target_action_support.default).create();\n\n ok(false === obj.triggerAction(), 'no target or action was specified');\n });\n\n QUnit.test('it should support actions specified as strings', function () {\n expect(2);\n\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent: function () {\n ok(true, 'anEvent method was called');\n }\n }),\n\n action: 'anEvent'\n });\n\n ok(true === obj.triggerAction(), 'a valid target and action were specified');\n });\n\n QUnit.test('it should invoke the send() method on objects that implement it', function () {\n expect(3);\n\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n send: function (evt, context) {\n equal(evt, 'anEvent', 'send() method was invoked with correct event name');\n equal(context, obj, 'send() method was invoked with correct context');\n }\n }),\n\n action: 'anEvent'\n });\n\n ok(true === obj.triggerAction(), 'a valid target and action were specified');\n });\n\n QUnit.test('it should find targets specified using a property path', function () {\n expect(2);\n\n var Test = {};\n lookup.Test = Test;\n\n Test.targetObj = _object.default.create({\n anEvent: function () {\n ok(true, 'anEvent method was called on global object');\n }\n });\n\n var myObj = _object.default.extend(_target_action_support.default).create({\n target: 'Test.targetObj',\n action: 'anEvent'\n });\n\n ok(true === myObj.triggerAction(), 'a valid target and action were specified');\n });\n\n QUnit.test('it should use an actionContext object specified as a property on the object', function () {\n expect(2);\n var obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent',\n actionContext: {},\n target: _object.default.create({\n anEvent: function (ctx) {\n ok(obj.actionContext === ctx, 'anEvent method was called with the expected context');\n }\n })\n });\n ok(true === obj.triggerAction(), 'a valid target and action were specified');\n });\n\n QUnit.test('it should raise a deprecation warning when targetObject is specified and used', function () {\n expect(4);\n var obj = void 0;\n expectDeprecation(function () {\n obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent',\n actionContext: {},\n targetObject: _object.default.create({\n anEvent: function (ctx) {\n ok(obj.actionContext === ctx, 'anEvent method was called with the expected context');\n }\n })\n });\n }, /Usage of `targetObject` is deprecated. Please use `target` instead./);\n ok(true === obj.triggerAction(), 'a valid targetObject and action were specified');\n expectDeprecation(function () {\n return obj.get('targetObject');\n }, /Usage of `targetObject` is deprecated. Please use `target` instead./);\n });\n\n QUnit.test('it should find an actionContext specified as a property path', function () {\n expect(2);\n\n var Test = {};\n lookup.Test = Test;\n Test.aContext = {};\n\n var obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent',\n actionContext: 'Test.aContext',\n target: _object.default.create({\n anEvent: function (ctx) {\n ok(Test.aContext === ctx, 'anEvent method was called with the expected context');\n }\n })\n });\n\n ok(true === obj.triggerAction(), 'a valid target and action were specified');\n });\n\n QUnit.test('it should use the target specified in the argument', function () {\n expect(2);\n var targetObj = _object.default.create({\n anEvent: function () {\n ok(true, 'anEvent method was called');\n }\n });\n var obj = _object.default.extend(_target_action_support.default).create({\n action: 'anEvent'\n });\n\n ok(true === obj.triggerAction({ target: targetObj }), 'a valid target and action were specified');\n });\n\n QUnit.test('it should use the action specified in the argument', function () {\n expect(2);\n\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent: function () {\n ok(true, 'anEvent method was called');\n }\n })\n });\n ok(true === obj.triggerAction({ action: 'anEvent' }), 'a valid target and action were specified');\n });\n\n QUnit.test('it should use the actionContext specified in the argument', function () {\n expect(2);\n var context = {};\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent: function (ctx) {\n ok(context === ctx, 'anEvent method was called with the expected context');\n }\n }),\n action: 'anEvent'\n });\n\n ok(true === obj.triggerAction({ actionContext: context }), 'a valid target and action were specified');\n });\n\n QUnit.test('it should allow multiple arguments from actionContext', function () {\n expect(3);\n var param1 = 'someParam';\n var param2 = 'someOtherParam';\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent: function (first, second) {\n ok(first === param1, 'anEvent method was called with the expected first argument');\n ok(second === param2, 'anEvent method was called with the expected second argument');\n }\n }),\n action: 'anEvent'\n });\n\n ok(true === obj.triggerAction({ actionContext: [param1, param2] }), 'a valid target and action were specified');\n });\n\n QUnit.test('it should use a null value specified in the actionContext argument', function () {\n expect(2);\n var obj = _object.default.extend(_target_action_support.default).create({\n target: _object.default.create({\n anEvent: function (ctx) {\n ok(null === ctx, 'anEvent method was called with the expected context (null)');\n }\n }),\n action: 'anEvent'\n });\n ok(true === obj.triggerAction({ actionContext: null }), 'a valid target and action were specified');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/mixins/target_action_support_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/mixins/target_action_support_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/array', ['exports', 'ember-runtime/tests/suites/enumerable', 'ember-runtime/tests/suites/array/indexOf', 'ember-runtime/tests/suites/array/lastIndexOf', 'ember-runtime/tests/suites/array/objectAt', 'ember-runtime/tests/suites/array/includes', 'ember-runtime/mixins/array'], function (exports, _enumerable, _indexOf, _lastIndexOf, _objectAt, _includes, _array) {\n 'use strict';\n\n exports.ObserverClass = exports.ArrayTests = undefined;\n\n\n var ObserverClass = _enumerable.ObserverClass.extend({\n observeArray: function (obj) {\n (0, _array.addArrayObserver)(obj, this);\n return this;\n },\n stopObserveArray: function (obj) {\n (0, _array.removeArrayObserver)(obj, this);\n return this;\n },\n arrayWillChange: function () {\n equal(this._before, null, 'should only call once');\n this._before = Array.prototype.slice.call(arguments);\n },\n arrayDidChange: function () {\n equal(this._after, null, 'should only call once');\n this._after = Array.prototype.slice.call(arguments);\n }\n });\n\n var ArrayTests = _enumerable.EnumerableTests.extend({\n observerClass: ObserverClass\n });\n\n ArrayTests.ObserverClass = ObserverClass;\n\n ArrayTests.importModuleTests(_indexOf.default);\n ArrayTests.importModuleTests(_lastIndexOf.default);\n ArrayTests.importModuleTests(_objectAt.default);\n\n ArrayTests.importModuleTests(_includes.default);\n\n exports.ArrayTests = ArrayTests;\n exports.ObserverClass = ObserverClass;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/array.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/array/includes', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('includes');\n\n suite.test('includes returns correct value if startAt is positive', function () {\n var data = this.newFixture(3);\n var obj = this.newObject(data);\n\n equal(obj.includes(data[1], 1), true, 'should return true if included');\n equal(obj.includes(data[0], 1), false, 'should return false if not included');\n });\n\n suite.test('includes returns correct value if startAt is negative', function () {\n var data = this.newFixture(3);\n var obj = this.newObject(data);\n\n equal(obj.includes(data[1], -2), true, 'should return true if included');\n equal(obj.includes(data[0], -2), false, 'should return false if not included');\n });\n\n suite.test('includes returns true if startAt + length is still negative', function () {\n var data = this.newFixture(1);\n var obj = this.newObject(data);\n\n equal(obj.includes(data[0], -2), true, 'should return true if included');\n equal(obj.includes(this.newFixture(1), -2), false, 'should return false if not included');\n });\n\n suite.test('includes returns false if startAt out of bounds', function () {\n var data = this.newFixture(1);\n var obj = this.newObject(data);\n\n equal(obj.includes(data[0], 2), false, 'should return false if startAt >= length');\n equal(obj.includes(this.newFixture(1), 2), false, 'should return false if startAt >= length');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/array/includes.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/array/includes.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/array/indexOf', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('indexOf');\n\n suite.test('should return index of object', function () {\n var expected = this.newFixture(3);\n var obj = this.newObject(expected);\n var len = 3;\n\n for (var idx = 0; idx < len; idx++) {\n equal(obj.indexOf(expected[idx]), idx, 'obj.indexOf(' + expected[idx] + ') should match idx');\n }\n });\n\n suite.test('should return -1 when requesting object not in index', function () {\n var obj = this.newObject(this.newFixture(3));\n var foo = {};\n\n equal(obj.indexOf(foo), -1, 'obj.indexOf(foo) should be < 0');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/array/indexOf.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/array/indexOf.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/array/lastIndexOf', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('lastIndexOf');\n\n suite.test('should return index of object\\'s last occurrence', function () {\n var expected = this.newFixture(3);\n var obj = this.newObject(expected);\n var len = 3;\n\n for (var idx = 0; idx < len; idx++) {\n equal(obj.lastIndexOf(expected[idx]), idx, 'obj.lastIndexOf(' + expected[idx] + ') should match idx');\n }\n });\n\n suite.test('should return index of object\\'s last occurrence even startAt search location is equal to length', function () {\n var expected = this.newFixture(3);\n var obj = this.newObject(expected);\n var len = 3;\n\n for (var idx = 0; idx < len; idx++) {\n equal(obj.lastIndexOf(expected[idx], len), idx, 'obj.lastIndexOfs(' + expected[idx] + ') should match idx');\n }\n });\n\n suite.test('should return index of object\\'s last occurrence even startAt search location is greater than length', function () {\n var expected = this.newFixture(3);\n var obj = this.newObject(expected);\n var len = 3;\n\n for (var idx = 0; idx < len; idx++) {\n equal(obj.lastIndexOf(expected[idx], len + 1), idx, 'obj.lastIndexOf(' + expected[idx] + ') should match idx');\n }\n });\n\n suite.test('should return -1 when no match is found', function () {\n var obj = this.newObject(this.newFixture(3));\n var foo = {};\n\n equal(obj.lastIndexOf(foo), -1, 'obj.lastIndexOf(foo) should be -1');\n });\n\n suite.test('should return -1 when no match is found even startAt search location is equal to length', function () {\n var obj = this.newObject(this.newFixture(3));\n var foo = {};\n\n equal(obj.lastIndexOf(foo, obj.length), -1, 'obj.lastIndexOf(foo) should be -1');\n });\n\n suite.test('should return -1 when no match is found even startAt search location is greater than length', function () {\n var obj = this.newObject(this.newFixture(3));\n var foo = {};\n\n equal(obj.lastIndexOf(foo, obj.length + 1), -1, 'obj.lastIndexOf(foo) should be -1');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/array/lastIndexOf.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/array/lastIndexOf.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/array/objectAt', ['exports', 'ember-runtime/tests/suites/suite', 'ember-runtime/mixins/array'], function (exports, _suite, _array) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('objectAt');\n\n suite.test('should return object at specified index', function () {\n var expected = this.newFixture(3);\n var obj = this.newObject(expected);\n var len = expected.length;\n\n for (var idx = 0; idx < len; idx++) {\n equal((0, _array.objectAt)(obj, idx), expected[idx], 'obj.objectAt(' + idx + ') should match');\n }\n });\n\n suite.test('should return undefined when requesting objects beyond index', function () {\n var obj = void 0;\n\n obj = this.newObject(this.newFixture(3));\n equal((0, _array.objectAt)(obj, 5), undefined, 'should return undefined for obj.objectAt(5) when len = 3');\n\n obj = this.newObject([]);\n equal((0, _array.objectAt)(obj, 0), undefined, 'should return undefined for obj.objectAt(0) when len = 0');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/array/objectAt.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/array/objectAt.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/copyable', ['exports', 'ember-runtime/tests/suites/suite', 'ember-runtime/tests/suites/copyable/copy', 'ember-runtime/tests/suites/copyable/frozenCopy'], function (exports, _suite, _copy, _frozenCopy) {\n 'use strict';\n\n var CopyableTests = _suite.Suite.extend({\n\n /*\n __Required.__ You must implement this method to apply this mixin.\n Must be able to create a new object for testing.\n @returns {Object} object\n */\n newObject: null,\n\n /*\n __Required.__ You must implement this method to apply this mixin.\n Compares the two passed in objects. Returns true if the two objects\n are logically equivalent.\n @param {Object} a\n First object\n @param {Object} b\n Second object\n @returns {Boolean}\n */\n isEqual: null,\n\n /*\n Set this to true if you expect the objects you test to be freezable.\n The suite will verify that your objects actually match this. (i.e. if\n you say you can't test freezable it will verify that your objects really\n aren't freezable.)\n @type Boolean\n */\n shouldBeFreezable: false\n\n });\n\n CopyableTests.importModuleTests(_copy.default);\n CopyableTests.importModuleTests(_frozenCopy.default);\n\n exports.default = CopyableTests;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/copyable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/copyable.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/copyable/copy', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('copy');\n\n suite.test('should return an equivalent copy', function () {\n var obj = this.newObject();\n var copy = obj.copy();\n ok(this.isEqual(obj, copy), 'old object and new object should be equivalent');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/copyable/copy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/copyable/copy.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/copyable/frozenCopy', ['exports', 'ember-runtime/tests/suites/suite', 'ember-runtime/mixins/freezable', 'ember-metal'], function (exports, _suite, _freezable, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('frozenCopy');\n\n suite.test('frozen objects should return same instance', function () {\n var obj = void 0,\n copy = void 0;\n\n obj = this.newObject();\n if ((0, _emberMetal.get)(this, 'shouldBeFreezable')) {\n expectDeprecation('`frozenCopy` is deprecated, use Object.freeze instead.');\n\n ok(!_freezable.Freezable || _freezable.Freezable.detect(obj), 'object should be freezable');\n\n copy = obj.frozenCopy();\n ok(this.isEqual(obj, copy), 'new copy should be equal');\n ok((0, _emberMetal.get)(copy, 'isFrozen'), 'returned value should be frozen');\n\n copy = obj.freeze().frozenCopy();\n equal(copy, obj, 'returns frozen object should be same');\n ok((0, _emberMetal.get)(copy, 'isFrozen'), 'returned object should be frozen');\n } else {\n ok(!_freezable.Freezable || !_freezable.Freezable.detect(obj), 'object should not be freezable');\n }\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/copyable/frozenCopy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/copyable/frozenCopy.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable', ['exports', 'ember-utils', 'ember-runtime/tests/suites/suite', 'ember-runtime/system/object', 'ember-metal', 'ember-runtime/tests/suites/enumerable/any', 'ember-runtime/tests/suites/enumerable/is_any', 'ember-runtime/tests/suites/enumerable/compact', 'ember-runtime/tests/suites/enumerable/contains', 'ember-runtime/tests/suites/enumerable/includes', 'ember-runtime/tests/suites/enumerable/every', 'ember-runtime/tests/suites/enumerable/filter', 'ember-runtime/tests/suites/enumerable/find', 'ember-runtime/tests/suites/enumerable/firstObject', 'ember-runtime/tests/suites/enumerable/forEach', 'ember-runtime/tests/suites/enumerable/mapBy', 'ember-runtime/tests/suites/enumerable/invoke', 'ember-runtime/tests/suites/enumerable/lastObject', 'ember-runtime/tests/suites/enumerable/map', 'ember-runtime/tests/suites/enumerable/reduce', 'ember-runtime/tests/suites/enumerable/reject', 'ember-runtime/tests/suites/enumerable/sortBy', 'ember-runtime/tests/suites/enumerable/toArray', 'ember-runtime/tests/suites/enumerable/uniq', 'ember-runtime/tests/suites/enumerable/uniqBy', 'ember-runtime/tests/suites/enumerable/without'], function (exports, _emberUtils, _suite, _object, _emberMetal, _any, _is_any, _compact, _contains, _includes, _every, _filter, _find, _firstObject, _forEach, _mapBy, _invoke, _lastObject, _map, _reduce, _reject, _sortBy, _toArray, _uniq, _uniqBy, _without) {\n 'use strict';\n\n exports.ObserverClass = exports.EnumerableTests = undefined;\n\n\n var ObserverClass = _object.default.extend({\n _keysBefore: null,\n _keys: null,\n _values: null,\n _before: null,\n _after: null,\n\n isEnabled: true,\n\n init: function () {\n this._super.apply(this, arguments);\n this.reset();\n },\n propertyWillChange: function (target, key) {\n if (this._keysBefore[key] === undefined) {\n this._keysBefore[key] = 0;\n }\n this._keysBefore[key]++;\n },\n propertyDidChange: function (target, key, value) {\n if (this._keys[key] === undefined) {\n this._keys[key] = 0;\n }\n this._keys[key]++;\n this._values[key] = value;\n },\n reset: function () {\n this._keysBefore = {};\n this._keys = {};\n this._values = {};\n this._before = null;\n this._after = null;\n return this;\n },\n observeBefore: function (obj) {\n var keys = Array.prototype.slice.call(arguments, 1);\n var loc = keys.length;\n while (--loc >= 0) {\n (0, _emberMetal._addBeforeObserver)(obj, keys[loc], this, 'propertyWillChange');\n }\n\n return this;\n },\n observe: function (obj) {\n if (obj.addObserver) {\n var keys = Array.prototype.slice.call(arguments, 1);\n var loc = keys.length;\n\n while (--loc >= 0) {\n obj.addObserver(keys[loc], this, 'propertyDidChange');\n }\n } else {\n this.isEnabled = false;\n }\n return this;\n },\n validate: function (key, value) {\n if (!this.isEnabled) {\n return true;\n }\n\n if (!this._keys[key]) {\n return false;\n }\n\n if (arguments.length > 1) {\n return this._values[key] === value;\n } else {\n return true;\n }\n },\n timesCalledBefore: function (key) {\n return this._keysBefore[key] || 0;\n },\n timesCalled: function (key) {\n return this._keys[key] || 0;\n },\n observeEnumerable: function (obj) {\n obj.addEnumerableObserver(this);\n return this;\n },\n stopObserveEnumerable: function (obj) {\n obj.removeEnumerableObserver(this);\n return this;\n },\n enumerableWillChange: function () {\n equal(this._before, null, 'should only call once');\n this._before = Array.prototype.slice.call(arguments);\n },\n enumerableDidChange: function () {\n equal(this._after, null, 'should only call once');\n this._after = Array.prototype.slice.call(arguments);\n }\n });\n\n var EnumerableTests = _suite.Suite.extend({\n /*\n __Required.__ You must implement this method to apply this mixin.\n Implement to return a new enumerable object for testing. Should accept\n either no parameters, a single number (indicating the desired length of\n the collection) or an array of objects.\n @param {Array} content\n An array of items to include in the enumerable optionally.\n @returns {Ember.Enumerable} a new enumerable\n */\n newObject: null,\n\n newFixture: function (cnt) {\n var ret = [];\n while (--cnt >= 0) {\n ret.push((0, _emberUtils.generateGuid)());\n }\n\n return ret;\n },\n newObjectsFixture: function (cnt) {\n var ret = [];\n var item = void 0;\n while (--cnt >= 0) {\n item = {};\n (0, _emberUtils.guidFor)(item);\n ret.push(item);\n }\n return ret;\n },\n\n\n /*\n __Required.__ You must implement this method to apply this mixin.\n Implement accept an instance of the enumerable and return an array\n containing the objects in the enumerable. This is used only for testing\n so performance is not important.\n @param {Ember.Enumerable} enumerable\n The enumerable to convert.\n @returns {Array} array of items\n */\n toArray: null,\n\n mutate: function () {},\n\n\n /*\n Becomes true when you define a new mutate() method, indicating that\n mutation tests should run. This is calculated automatically.\n @type Boolean\n */\n canTestMutation: (0, _emberMetal.computed)(function () {\n return this.mutate !== EnumerableTests.prototype.mutate;\n }),\n\n run: function () {},\n newObserver: function (obj) {\n var ret = (0, _emberMetal.get)(this, 'observerClass').create();\n if (arguments.length > 0) {\n ret.observeBefore.apply(ret, arguments);\n }\n\n if (arguments.length > 0) {\n ret.observe.apply(ret, arguments);\n }\n\n return ret;\n },\n\n\n observerClass: ObserverClass\n });\n\n EnumerableTests.importModuleTests(_any.default);\n EnumerableTests.importModuleTests(_is_any.default);\n EnumerableTests.importModuleTests(_compact.default);\n EnumerableTests.importModuleTests(_contains.default);\n EnumerableTests.importModuleTests(_every.default);\n EnumerableTests.importModuleTests(_filter.default);\n EnumerableTests.importModuleTests(_find.default);\n EnumerableTests.importModuleTests(_firstObject.default);\n EnumerableTests.importModuleTests(_forEach.default);\n EnumerableTests.importModuleTests(_mapBy.default);\n EnumerableTests.importModuleTests(_invoke.default);\n EnumerableTests.importModuleTests(_lastObject.default);\n EnumerableTests.importModuleTests(_map.default);\n EnumerableTests.importModuleTests(_reduce.default);\n EnumerableTests.importModuleTests(_reject.default);\n EnumerableTests.importModuleTests(_sortBy.default);\n EnumerableTests.importModuleTests(_toArray.default);\n EnumerableTests.importModuleTests(_uniq.default);\n\n EnumerableTests.importModuleTests(_uniqBy.default);\n\n EnumerableTests.importModuleTests(_includes.default);\n\n EnumerableTests.importModuleTests(_without.default);\n\n exports.default = EnumerableTests;\n exports.EnumerableTests = EnumerableTests;\n exports.ObserverClass = ObserverClass;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/any', ['exports', 'ember-runtime/tests/suites/suite', 'ember-runtime/system/native_array'], function (exports, _suite, _native_array) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n // ..........................................................\n // any()\n //\n\n suite.module('any');\n\n suite.test('any should should invoke callback on each item as long as you return false', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var found = [];\n var result = void 0;\n\n result = obj.any(function (i) {\n found.push(i);\n return false;\n });\n equal(result, false, 'return value of obj.any');\n deepEqual(found, ary, 'items passed during any() should match');\n });\n\n suite.test('any should stop invoking when you return true', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var cnt = ary.length - 2;\n var exp = cnt;\n var found = [];\n var result = void 0;\n\n result = obj.any(function (i) {\n found.push(i);\n return --cnt <= 0;\n });\n equal(result, true, 'return value of obj.any');\n equal(found.length, exp, 'should invoke proper number of times');\n deepEqual(found, ary.slice(0, -2), 'items passed during any() should match');\n });\n\n suite.test('any should return true if any object matches the callback', function () {\n var obj = (0, _native_array.A)([0, 1, 2]);\n var result = void 0;\n\n result = obj.any(function (i) {\n return !!i;\n });\n equal(result, true, 'return value of obj.any');\n });\n\n suite.test('any should return false if no object matches the callback', function () {\n var obj = (0, _native_array.A)([0, null, false]);\n var result = void 0;\n\n result = obj.any(function (i) {\n return !!i;\n });\n equal(result, false, 'return value of obj.any');\n });\n\n suite.test('any should produce correct results even if the matching element is undefined', function () {\n var obj = (0, _native_array.A)([undefined]);\n var result = void 0;\n\n result = obj.any(function (i) {\n return true;\n });\n equal(result, true, 'return value of obj.any');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/any.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/any.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/compact', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('compact');\n\n suite.test('removes null and undefined values from enumerable', function () {\n var obj = this.newObject([null, 1, false, '', undefined, 0, null]);\n var ary = obj.compact();\n deepEqual(ary, [1, false, '', 0]);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/compact.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/compact.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/contains', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('contains');\n\n suite.test('contains returns true if item is in enumerable', function () {\n var data = this.newFixture(3);\n var obj = this.newObject(data);\n\n expectDeprecation('`Enumerable#contains` is deprecated, use `Enumerable#includes` instead.');\n equal(obj.contains(data[1]), true, 'should return true if contained');\n });\n\n suite.test('contains returns false if item is not in enumerable', function () {\n var data = this.newFixture(1);\n var obj = this.newObject(this.newFixture(3));\n\n expectDeprecation('`Enumerable#contains` is deprecated, use `Enumerable#includes` instead.');\n equal(obj.contains(data[0]), false, 'should return false if not contained');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/contains.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/contains.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/every', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n // ..........................................................\n // every()\n //\n\n suite.module('every');\n\n suite.test('every should should invoke callback on each item as long as you return true', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var found = [];\n var result = void 0;\n\n result = obj.every(function (i) {\n found.push(i);\n return true;\n });\n equal(result, true, 'return value of obj.every');\n deepEqual(found, ary, 'items passed during every() should match');\n });\n\n suite.test('every should stop invoking when you return false', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var cnt = ary.length - 2;\n var exp = cnt;\n var found = [];\n var result = void 0;\n\n result = obj.every(function (i) {\n found.push(i);\n return --cnt > 0;\n });\n equal(result, false, 'return value of obj.every');\n equal(found.length, exp, 'should invoke proper number of times');\n deepEqual(found, ary.slice(0, -2), 'items passed during every() should match');\n });\n\n // ..........................................................\n // isEvery()\n //\n\n suite.module('isEvery');\n\n suite.test('should return true of every property matches', function () {\n var obj = this.newObject([{ foo: 'foo', bar: 'BAZ' }, _object.default.create({ foo: 'foo', bar: 'bar' })]);\n\n equal(obj.isEvery('foo', 'foo'), true, 'isEvery(foo)');\n equal(obj.isEvery('bar', 'bar'), false, 'isEvery(bar)');\n });\n\n suite.test('should return true of every property is true', function () {\n var obj = this.newObject([{ foo: 'foo', bar: true }, _object.default.create({ foo: 'bar', bar: false })]);\n\n // different values - all eval to true\n equal(obj.isEvery('foo'), true, 'isEvery(foo)');\n equal(obj.isEvery('bar'), false, 'isEvery(bar)');\n });\n\n suite.test('should return true if every property matches null', function () {\n var obj = this.newObject([{ foo: null, bar: 'BAZ' }, _object.default.create({ foo: null, bar: null })]);\n\n equal(obj.isEvery('foo', null), true, 'isEvery(\\'foo\\', null)');\n equal(obj.isEvery('bar', null), false, 'isEvery(\\'bar\\', null)');\n });\n\n suite.test('should return true if every property is undefined', function () {\n var obj = this.newObject([{ foo: undefined, bar: 'BAZ' }, _object.default.create({ bar: undefined })]);\n\n equal(obj.isEvery('foo', undefined), true, 'isEvery(\\'foo\\', undefined)');\n equal(obj.isEvery('bar', undefined), false, 'isEvery(\\'bar\\', undefined)');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/every.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/every.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/filter', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n // ..........................................................\n // filter()\n //\n\n suite.module('filter');\n\n suite.test('filter should invoke on each item', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var cnt = ary.length - 2;\n var found = [];\n var result = void 0;\n\n // return true on all but the last two\n result = obj.filter(function (i) {\n found.push(i);\n return --cnt >= 0;\n });\n deepEqual(found, ary, 'should have invoked on each item');\n deepEqual(result, ary.slice(0, -2), 'filtered array should exclude items');\n });\n\n // ..........................................................\n // filterBy()\n //\n\n suite.module('filterBy');\n\n suite.test('should filter based on object', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ foo: 'foo', bar: 'BAZ' }, _object.default.create({ foo: 'foo', bar: 'bar' })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo', 'foo'), ary, 'filterBy(foo)');\n deepEqual(obj.filterBy('bar', 'bar'), [ary[1]], 'filterBy(bar)');\n });\n\n suite.test('should include in result if property is true', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ foo: 'foo', bar: true }, _object.default.create({ foo: 'bar', bar: false })];\n\n obj = this.newObject(ary);\n\n // different values - all eval to true\n deepEqual(obj.filterBy('foo'), ary, 'filterBy(foo)');\n deepEqual(obj.filterBy('bar'), [ary[0]], 'filterBy(bar)');\n });\n\n suite.test('should filter on second argument if provided', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 2 }), { name: 'obj3', foo: 2 }, _object.default.create({ name: 'obj4', foo: 3 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo', 3), [ary[0], ary[3]], 'filterBy(\\'foo\\', 3)\\')');\n });\n\n suite.test('should correctly filter null second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: null }), { name: 'obj3', foo: null }, _object.default.create({ name: 'obj4', foo: 3 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo', null), [ary[1], ary[2]], 'filterBy(\\'foo\\', 3)\\')');\n });\n\n suite.test('should not return all objects on undefined second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 2 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo', undefined), [], 'filterBy(\\'foo\\', 3)\\')');\n });\n\n suite.test('should correctly filter explicit undefined second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 3 }), { name: 'obj3', foo: undefined }, _object.default.create({ name: 'obj4', foo: undefined }), { name: 'obj5' }, _object.default.create({ name: 'obj6' })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo', undefined), ary.slice(2), 'filterBy(\\'foo\\', 3)\\')');\n });\n\n suite.test('should not match undefined properties without second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 3 }), { name: 'obj3', foo: undefined }, _object.default.create({ name: 'obj4', foo: undefined }), { name: 'obj5' }, _object.default.create({ name: 'obj6' })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.filterBy('foo'), ary.slice(0, 2), 'filterBy(\\'foo\\', 3)\\')');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/filter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/filter.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/find', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n // ..........................................................\n // find()\n //\n\n suite.module('find');\n\n suite.test('find should invoke callback on each item as long as you return false', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var found = [];\n var result = void 0;\n\n result = obj.find(function (i) {\n found.push(i);\n return false;\n });\n equal(result, undefined, 'return value of obj.find');\n deepEqual(found, ary, 'items passed during find() should match');\n });\n\n suite.test('every should stop invoking when you return true', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var cnt = ary.length - 2;\n var exp = cnt;\n var found = [];\n var result = void 0;\n\n result = obj.find(function (i) {\n found.push(i);\n return --cnt >= 0;\n });\n equal(result, ary[exp - 1], 'return value of obj.find');\n equal(found.length, exp, 'should invoke proper number of times');\n deepEqual(found, ary.slice(0, -2), 'items passed during find() should match');\n });\n\n // ..........................................................\n // findBy()\n //\n\n suite.module('findBy');\n\n suite.test('should return first object of property matches', function () {\n var ary = void 0,\n obj = void 0;\n\n ary = [{ foo: 'foo', bar: 'BAZ' }, _object.default.create({ foo: 'foo', bar: 'bar' })];\n\n obj = this.newObject(ary);\n\n equal(obj.findBy('foo', 'foo'), ary[0], 'findBy(foo)');\n equal(obj.findBy('bar', 'bar'), ary[1], 'findBy(bar)');\n });\n\n suite.test('should return first object with truthy prop', function () {\n var ary = void 0,\n obj = void 0;\n\n ary = [{ foo: 'foo', bar: false }, _object.default.create({ foo: 'bar', bar: true })];\n\n obj = this.newObject(ary);\n\n // different values - all eval to true\n equal(obj.findBy('foo'), ary[0], 'findBy(foo)');\n equal(obj.findBy('bar'), ary[1], 'findBy(bar)');\n });\n\n suite.test('should return first null property match', function () {\n var ary = void 0,\n obj = void 0;\n\n ary = [{ foo: null, bar: 'BAZ' }, _object.default.create({ foo: null, bar: null })];\n\n obj = this.newObject(ary);\n\n equal(obj.findBy('foo', null), ary[0], 'findBy(\\'foo\\', null)');\n equal(obj.findBy('bar', null), ary[1], 'findBy(\\'bar\\', null)');\n });\n\n suite.test('should return first undefined property match', function () {\n var ary = void 0,\n obj = void 0;\n\n ary = [{ foo: undefined, bar: 'BAZ' }, _object.default.create({})];\n\n obj = this.newObject(ary);\n\n equal(obj.findBy('foo', undefined), ary[0], 'findBy(\\'foo\\', undefined)');\n equal(obj.findBy('bar', undefined), ary[1], 'findBy(\\'bar\\', undefined)');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/find.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/find.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/firstObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('firstObject');\n\n suite.test('returns first item in enumerable', function () {\n var obj = this.newObject();\n equal((0, _emberMetal.get)(obj, 'firstObject'), this.toArray(obj)[0]);\n });\n\n suite.test('returns undefined if enumerable is empty', function () {\n var obj = this.newObject([]);\n equal((0, _emberMetal.get)(obj, 'firstObject'), undefined);\n });\n\n suite.test('can not be set', function () {\n var obj = this.newObject([]);\n\n equal((0, _emberMetal.get)(obj, 'firstObject'), this.toArray(obj)[0]);\n\n throws(function () {\n (0, _emberMetal.set)(obj, 'firstObject', 'foo!');\n }, /Cannot set read-only property \"firstObject\" on object/);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/firstObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/firstObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/forEach', ['exports', 'ember-utils', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _emberUtils, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('forEach');\n\n suite.test('forEach should iterate over list', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var found = [];\n\n obj.forEach(function (i) {\n return found.push(i);\n });\n deepEqual(found, ary, 'items passed during forEach should match');\n });\n\n suite.test('forEach should iterate over list after mutation', function () {\n if ((0, _emberMetal.get)(this, 'canTestMutation')) {\n expect(0);\n return;\n }\n\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var found = [];\n\n obj.forEach(function (i) {\n return found.push(i);\n });\n deepEqual(found, ary, 'items passed during forEach should match');\n\n this.mutate(obj);\n ary = this.toArray(obj);\n found = [];\n\n obj.forEach(function (i) {\n return found.push(i);\n });\n deepEqual(found, ary, 'items passed during forEach should match');\n });\n\n suite.test('2nd target parameter', function () {\n var _this = this;\n\n var obj = this.newObject();\n var target = this;\n\n obj.forEach(function () {\n // ES6TODO: When transpiled we will end up with \"use strict\" which disables automatically binding to the global context.\n // Therefore, the following test can never pass in strict mode unless we modify the `map` function implementation to\n // use `Ember.lookup` if target is not specified.\n //\n // equal(guidFor(this), guidFor(global), 'should pass the global object as this if no context');\n });\n\n obj.forEach(function () {\n equal((0, _emberUtils.guidFor)(_this), (0, _emberUtils.guidFor)(target), 'should pass target as this if context');\n }, target);\n });\n\n suite.test('callback params', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var loc = 0;\n\n obj.forEach(function (item, idx, enumerable) {\n equal(item, ary[loc], 'item param');\n equal(idx, loc, 'idx param');\n equal((0, _emberUtils.guidFor)(enumerable), (0, _emberUtils.guidFor)(obj), 'enumerable param');\n loc++;\n });\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/forEach.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/forEach.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/includes', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('includes');\n\n suite.test('includes returns true if item is in enumerable', function () {\n var data = this.newFixture(1);\n var obj = this.newObject([].concat(data, [NaN, undefined, null]));\n\n equal(obj.includes(data[0]), true, 'should return true if included');\n equal(obj.includes(NaN), true, 'should return true if NaN included');\n equal(obj.includes(undefined), true, 'should return true if undefined included');\n equal(obj.includes(null), true, 'should return true if null included');\n });\n\n suite.test('includes returns false if item is not in enumerable', function () {\n var data = this.newFixture(1);\n var obj = this.newObject([].concat(this.newFixture(3), [null]));\n\n equal(obj.includes(data[0]), false, 'should return false if not included');\n equal(obj.includes(undefined), false, 'should return false if undefined not included but null is included');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/includes.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/includes.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/invoke', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('invoke');\n\n suite.test('invoke should call on each object that implements', function () {\n var cnt = void 0,\n ary = void 0,\n obj = void 0;\n\n function F(amt) {\n cnt += amt === undefined ? 1 : amt;\n }\n cnt = 0;\n ary = [{ foo: F }, _object.default.create({ foo: F }),\n\n // NOTE: does not impl foo - invoke should just skip\n _object.default.create({ bar: F }), { foo: F }];\n\n obj = this.newObject(ary);\n obj.invoke('foo');\n equal(cnt, 3, 'should have invoked 3 times');\n\n cnt = 0;\n obj.invoke('foo', 2);\n equal(cnt, 6, 'should have invoked 3 times, passing param');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/invoke.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/invoke.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/is_any', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n // ..........................................................\n // isAny()\n //\n\n suite.module('isAny');\n\n suite.test('should return true of any property matches', function () {\n var obj = this.newObject([{ foo: 'foo', bar: 'BAZ' }, _object.default.create({ foo: 'foo', bar: 'bar' })]);\n\n equal(obj.isAny('foo', 'foo'), true, 'isAny(foo)');\n equal(obj.isAny('bar', 'bar'), true, 'isAny(bar)');\n equal(obj.isAny('bar', 'BIFF'), false, 'isAny(BIFF)');\n });\n\n suite.test('should return true of any property is true', function () {\n var obj = this.newObject([{ foo: 'foo', bar: true }, _object.default.create({ foo: 'bar', bar: false })]);\n\n // different values - all eval to true\n equal(obj.isAny('foo'), true, 'isAny(foo)');\n equal(obj.isAny('bar'), true, 'isAny(bar)');\n equal(obj.isAny('BIFF'), false, 'isAny(biff)');\n });\n\n suite.test('should return true if any property matches null', function () {\n var obj = this.newObject([{ foo: null, bar: 'bar' }, _object.default.create({ foo: 'foo', bar: null })]);\n\n equal(obj.isAny('foo', null), true, 'isAny(\\'foo\\', null)');\n equal(obj.isAny('bar', null), true, 'isAny(\\'bar\\', null)');\n });\n\n suite.test('should return true if any property is undefined', function () {\n var obj = this.newObject([{ foo: undefined, bar: 'bar' }, _object.default.create({ foo: 'foo' })]);\n\n equal(obj.isAny('foo', undefined), true, 'isAny(\\'foo\\', undefined)');\n equal(obj.isAny('bar', undefined), true, 'isAny(\\'bar\\', undefined)');\n });\n\n suite.test('should not match undefined properties without second argument', function () {\n var obj = this.newObject([{ foo: undefined }, _object.default.create({})]);\n\n equal(obj.isAny('foo'), false, 'isAny(\\'foo\\', undefined)');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/is_any.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/is_any.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/lastObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('lastObject');\n\n suite.test('returns last item in enumerable', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n\n equal((0, _emberMetal.get)(obj, 'lastObject'), ary[ary.length - 1]);\n });\n\n suite.test('returns undefined if enumerable is empty', function () {\n var obj = this.newObject([]);\n\n equal((0, _emberMetal.get)(obj, 'lastObject'), undefined);\n });\n\n suite.test('can not be set', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n\n equal((0, _emberMetal.get)(obj, 'lastObject'), ary[ary.length - 1]);\n\n throws(function () {\n (0, _emberMetal.set)(obj, 'lastObject', 'foo!');\n }, /Cannot set read-only property \"lastObject\" on object/);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/lastObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/lastObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/map', ['exports', 'ember-utils', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _emberUtils, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('map');\n\n var mapFunc = function (item) {\n return item ? item.toString() : null;\n };\n\n suite.test('map should iterate over list', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj).map(mapFunc);\n var found = [];\n\n found = obj.map(mapFunc);\n deepEqual(found, ary, 'mapped arrays should match');\n });\n\n suite.test('map should iterate over list after mutation', function () {\n if ((0, _emberMetal.get)(this, 'canTestMutation')) {\n expect(0);\n return;\n }\n\n var obj = this.newObject();\n var ary = this.toArray(obj).map(mapFunc);\n var found = void 0;\n\n found = obj.map(mapFunc);\n deepEqual(found, ary, 'items passed during forEach should match');\n\n this.mutate(obj);\n ary = this.toArray(obj).map(mapFunc);\n found = obj.map(mapFunc);\n deepEqual(found, ary, 'items passed during forEach should match');\n });\n\n suite.test('2nd target parameter', function () {\n var _this = this;\n\n var obj = this.newObject();\n var target = this;\n\n obj.map(function () {\n // ES6TODO: When transpiled we will end up with \"use strict\" which disables automatically binding to the global context.\n // Therefore, the following test can never pass in strict mode unless we modify the `map` function implementation to\n // use `Ember.lookup` if target is not specified.\n //\n // equal(guidFor(this), guidFor(global), 'should pass the global object as this if no context');\n });\n\n obj.map(function () {\n equal((0, _emberUtils.guidFor)(_this), (0, _emberUtils.guidFor)(target), 'should pass target as this if context');\n }, target);\n });\n\n suite.test('callback params', function () {\n var obj = this.newObject();\n var ary = this.toArray(obj);\n var loc = 0;\n\n obj.map(function (item, idx, enumerable) {\n equal(item, ary[loc], 'item param');\n equal(idx, loc, 'idx param');\n equal((0, _emberUtils.guidFor)(enumerable), (0, _emberUtils.guidFor)(obj), 'enumerable param');\n loc++;\n });\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/map.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/map.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/mapBy', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('mapBy');\n\n suite.test('get value of each property', function () {\n var obj = this.newObject([{ a: 1 }, { a: 2 }]);\n equal(obj.mapBy('a').join(''), '12');\n });\n\n suite.test('should work also through getEach alias', function () {\n var obj = this.newObject([{ a: 1 }, { a: 2 }]);\n equal(obj.getEach('a').join(''), '12');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/mapBy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/mapBy.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/reduce', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('reduce');\n\n suite.test('collects a summary value from an enumeration', function () {\n var obj = this.newObject([1, 2, 3]);\n var res = obj.reduce(function (previousValue, item, index, enumerable) {\n return previousValue + item;\n }, 0);\n equal(res, 6);\n });\n\n suite.test('passes index of item to callback', function () {\n var obj = this.newObject([1, 2, 3]);\n var res = obj.reduce(function (previousValue, item, index, enumerable) {\n return previousValue + index;\n }, 0);\n equal(res, 3);\n });\n\n suite.test('passes enumerable object to callback', function () {\n var obj = this.newObject([1, 2, 3]);\n var res = obj.reduce(function (previousValue, item, index, enumerable) {\n return enumerable;\n }, 0);\n equal(res, obj);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/reduce.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/reduce.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/reject', ['exports', 'ember-runtime/system/object', 'ember-runtime/tests/suites/suite'], function (exports, _object, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n // ..........................................................\n // reject()\n //\n\n suite.module('reject');\n\n suite.test('should reject any item that does not meet the condition', function () {\n var obj = this.newObject([1, 2, 3, 4]);\n var result = void 0;\n\n result = obj.reject(function (i) {\n return i < 3;\n });\n deepEqual(result, [3, 4], 'reject the correct items');\n });\n\n suite.test('should be the inverse of filter', function () {\n var obj = this.newObject([1, 2, 3, 4]);\n var isEven = function (i) {\n return i % 2 === 0;\n };\n var filtered = void 0,\n rejected = void 0;\n\n filtered = obj.filter(isEven);\n rejected = obj.reject(isEven);\n\n deepEqual(filtered, [2, 4], 'filtered evens');\n deepEqual(rejected, [1, 3], 'rejected evens');\n });\n\n // ..........................................................\n // rejectBy()\n //\n\n suite.module('rejectBy');\n\n suite.test('should reject based on object', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ foo: 'foo', bar: 'BAZ' }, _object.default.create({ foo: 'foo', bar: 'bar' })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo', 'foo'), [], 'rejectBy(foo)');\n deepEqual(obj.rejectBy('bar', 'bar'), [ary[0]], 'rejectBy(bar)');\n });\n\n suite.test('should include in result if property is false', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ foo: false, bar: true }, _object.default.create({ foo: false, bar: false })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo'), ary, 'rejectBy(foo)');\n deepEqual(obj.rejectBy('bar'), [ary[1]], 'rejectBy(bar)');\n });\n\n suite.test('should reject on second argument if provided', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 2 }), { name: 'obj3', foo: 2 }, _object.default.create({ name: 'obj4', foo: 3 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo', 3), [ary[1], ary[2]], 'rejectBy(\\'foo\\', 3)\\')');\n });\n\n suite.test('should correctly reject null second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: null }), { name: 'obj3', foo: null }, _object.default.create({ name: 'obj4', foo: 3 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo', null), [ary[0], ary[3]], 'rejectBy(\\'foo\\', null)\\')');\n });\n\n suite.test('should correctly reject undefined second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 2 })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('bar', undefined), [], 'rejectBy(\\'bar\\', undefined)\\')');\n });\n\n suite.test('should correctly reject explicit undefined second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 3 }), { name: 'obj3', foo: undefined }, _object.default.create({ name: 'obj4', foo: undefined }), { name: 'obj5' }, _object.default.create({ name: 'obj6' })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo', undefined), ary.slice(0, 2), 'rejectBy(\\'foo\\', undefined)\\')');\n });\n\n suite.test('should match undefined, null, or false properties without second argument', function () {\n var obj = void 0,\n ary = void 0;\n\n ary = [{ name: 'obj1', foo: 3 }, _object.default.create({ name: 'obj2', foo: 3 }), { name: 'obj3', foo: undefined }, _object.default.create({ name: 'obj4', foo: undefined }), { name: 'obj5' }, _object.default.create({ name: 'obj6' }), { name: 'obj7', foo: null }, _object.default.create({ name: 'obj8', foo: null }), { name: 'obj9', foo: false }, _object.default.create({ name: 'obj10', foo: false })];\n\n obj = this.newObject(ary);\n\n deepEqual(obj.rejectBy('foo'), ary.slice(2), 'rejectBy(\\'foo\\')\\')');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/reject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/reject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/sortBy', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('sortBy');\n\n suite.test('sort by value of property', function () {\n var obj = this.newObject([{ a: 2 }, { a: 1 }]);\n var sorted = obj.sortBy('a');\n\n equal((0, _emberMetal.get)(sorted[0], 'a'), 1);\n equal((0, _emberMetal.get)(sorted[1], 'a'), 2);\n });\n\n suite.test('supports multiple propertyNames', function () {\n var obj = this.newObject([{ a: 1, b: 2 }, { a: 1, b: 1 }]);\n var sorted = obj.sortBy('a', 'b');\n\n equal((0, _emberMetal.get)(sorted[0], 'b'), 1);\n equal((0, _emberMetal.get)(sorted[1], 'b'), 2);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/sortBy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/sortBy.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/toArray', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('toArray');\n\n suite.test('toArray should convert to an array', function () {\n var obj = this.newObject();\n deepEqual(obj.toArray(), this.toArray(obj));\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/toArray.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/toArray.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/uniq', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('uniq');\n\n suite.test('should return new instance with duplicates removed', function () {\n var before = void 0,\n after = void 0,\n obj = void 0,\n ret = void 0;\n\n after = this.newFixture(3);\n before = [after[0], after[1], after[2], after[1], after[0]];\n obj = this.newObject(before);\n before = obj.toArray(); // in case of set before will be different...\n\n ret = obj.uniq();\n deepEqual(this.toArray(ret), after, 'should have removed item');\n deepEqual(this.toArray(obj), before, 'should not have changed original');\n });\n\n suite.test('should return duplicate of same content if no duplicates found', function () {\n var item = void 0,\n obj = void 0,\n ret = void 0;\n obj = this.newObject(this.newFixture(3));\n ret = obj.uniq(item);\n ok(ret !== obj, 'should not be same object');\n deepEqual(this.toArray(ret), this.toArray(obj), 'should be the same content');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/uniq.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/uniq.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/uniqBy', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('uniqBy');\n\n suite.test('should return new instance with duplicates removed', function () {\n var numbers = this.newObject([{ id: 1, value: 'one' }, { id: 2, value: 'two' }, { id: 1, value: 'one' }]);\n deepEqual(numbers.uniqBy('id'), [{ id: 1, value: 'one' }, { id: 2, value: 'two' }]);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/uniqBy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/uniqBy.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/enumerable/without', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('without');\n\n suite.test('should return new instance with item removed', function () {\n var before = void 0,\n after = void 0,\n obj = void 0,\n ret = void 0;\n\n before = this.newFixture(3);\n after = [before[0], before[2]];\n obj = this.newObject(before);\n\n ret = obj.without(before[1]);\n deepEqual(this.toArray(ret), after, 'should have removed item');\n deepEqual(this.toArray(obj), before, 'should not have changed original');\n });\n\n suite.test('should remove NaN value', function () {\n var before = void 0,\n after = void 0,\n obj = void 0,\n ret = void 0;\n\n before = [].concat(this.newFixture(2), [NaN]);\n after = [before[0], before[1]];\n obj = this.newObject(before);\n\n ret = obj.without(NaN);\n deepEqual(this.toArray(ret), after, 'should have removed item');\n });\n\n suite.test('should return same instance if object not found', function () {\n var item = void 0,\n obj = void 0,\n ret = void 0;\n\n item = this.newFixture(1)[0];\n obj = this.newObject(this.newFixture(3));\n\n ret = obj.without(item);\n equal(ret, obj, 'should be same instance');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/enumerable/without.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/enumerable/without.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array', ['exports', 'ember-runtime/tests/suites/array', 'ember-runtime/tests/suites/mutable_array/insertAt', 'ember-runtime/tests/suites/mutable_array/popObject', 'ember-runtime/tests/suites/mutable_array/pushObject', 'ember-runtime/tests/suites/mutable_array/pushObjects', 'ember-runtime/tests/suites/mutable_array/removeAt', 'ember-runtime/tests/suites/mutable_array/replace', 'ember-runtime/tests/suites/mutable_array/shiftObject', 'ember-runtime/tests/suites/mutable_array/unshiftObject', 'ember-runtime/tests/suites/mutable_array/reverseObjects'], function (exports, _array, _insertAt, _popObject, _pushObject, _pushObjects, _removeAt, _replace, _shiftObject, _unshiftObject, _reverseObjects) {\n 'use strict';\n\n var MutableArrayTests = _array.ArrayTests.extend();\n MutableArrayTests.importModuleTests(_insertAt.default);\n MutableArrayTests.importModuleTests(_popObject.default);\n MutableArrayTests.importModuleTests(_pushObject.default);\n MutableArrayTests.importModuleTests(_pushObjects.default);\n MutableArrayTests.importModuleTests(_removeAt.default);\n MutableArrayTests.importModuleTests(_replace.default);\n MutableArrayTests.importModuleTests(_shiftObject.default);\n MutableArrayTests.importModuleTests(_unshiftObject.default);\n MutableArrayTests.importModuleTests(_reverseObjects.default);\n\n exports.default = MutableArrayTests;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/addObject', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite'], function (exports, _emberMetal, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('addObject');\n\n suite.test('should return receiver', function () {\n var before = this.newFixture(3);\n var obj = this.newObject(before);\n equal(obj.addObject(before[1]), obj, 'should return receiver');\n });\n\n suite.test('[A,B].addObject(C) => [A,B,C] + notify', function () {\n var before = this.newFixture(2);\n var item = this.newFixture(1)[0];\n var after = [before[0], before[1], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.addObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n }\n });\n\n suite.test('[A,B,C].addObject(A) => [A,B,C] + NO notify', function () {\n var before = this.newFixture(3);\n var after = before;\n var item = before[0];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.addObject(item); // note: item in set\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('@each'), false, 'should NOT have notified @each');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/addObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/addObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/clear', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite'], function (exports, _emberMetal, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('clear');\n\n suite.test('[].clear() => [] + notify', function () {\n var before = [];\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.clear(), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.validate('[]'), false, 'should NOT have notified [] once');\n equal(observer.validate('@each'), false, 'should NOT have notified @each once');\n equal(observer.validate('length'), false, 'should NOT have notified length once');\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[X].clear() => [] + notify', function () {\n var obj, before, after, observer;\n\n before = this.newFixture(1);\n after = [];\n obj = this.newObject(before);\n observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.clear(), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/clear.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/clear.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/insertAt', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('insertAt');\n\n suite.test('[].insertAt(0, X) => [X] + notify', function () {\n var after = this.newFixture(1);\n var obj = this.newObject([]);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.insertAt(0, after[0]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 1, 'should have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 1, 'should have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] did change once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each did change once');\n equal(observer.timesCalled('length'), 1, 'should have notified length did change once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject did change once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject did change once');\n });\n\n suite.test('[].insertAt(200,X) => OUT_OF_RANGE_EXCEPTION exception', function () {\n var obj = this.newObject([]);\n var that = this;\n\n throws(function () {\n return obj.insertAt(200, that.newFixture(1)[0]);\n }, Error);\n });\n\n suite.test('[A].insertAt(0, X) => [X,A] + notify', function () {\n var item = this.newFixture(1)[0];\n var before = this.newFixture(1);\n var after = [item, before[0]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.insertAt(0, item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 1, 'should have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 0, 'should NOT have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[A].insertAt(1, X) => [A,X] + notify', function () {\n var item = this.newFixture(1)[0];\n var before = this.newFixture(1);\n var after = [before[0], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.insertAt(1, item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 0, 'should NOT have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 1, 'should have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n });\n\n suite.test('[A].insertAt(200,X) => OUT_OF_RANGE exception', function () {\n var obj = this.newObject(this.newFixture(1));\n var that = this;\n\n throws(function () {\n return obj.insertAt(200, that.newFixture(1)[0]);\n }, Error);\n });\n\n suite.test('[A,B,C].insertAt(0,X) => [X,A,B,C] + notify', function () {\n var item = this.newFixture(1)[0];\n var before = this.newFixture(3);\n var after = [item, before[0], before[1], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.insertAt(0, item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 1, 'should have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 0, 'should NOT have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[A,B,C].insertAt(1,X) => [A,X,B,C] + notify', function () {\n var item = this.newFixture(1)[0];\n var before = this.newFixture(3);\n var after = [before[0], item, before[1], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n var objectAtCalls = [];\n\n var objectAt = obj.objectAt;\n obj.objectAt = function (ix) {\n objectAtCalls.push(ix);\n return objectAt.call(obj, ix);\n };\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n objectAtCalls.splice(0, objectAtCalls.length);\n\n obj.insertAt(1, item);\n deepEqual(objectAtCalls, [], 'objectAt is not called when only inserting items');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 0, 'should NOT have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 0, 'should NOT have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[A,B,C].insertAt(3,X) => [A,B,C,X] + notify', function () {\n var item = this.newFixture(1)[0];\n var before = this.newFixture(3);\n var after = [before[0], before[1], before[2], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.insertAt(3, item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalledBefore('[]'), 1, 'should have notified [] will change once');\n equal(observer.timesCalledBefore('@each'), 0, 'should not have notified @each will change once');\n equal(observer.timesCalledBefore('length'), 1, 'should have notified length will change once');\n equal(observer.timesCalledBefore('firstObject'), 0, 'should NOT have notified firstObject will change once');\n equal(observer.timesCalledBefore('lastObject'), 1, 'should have notified lastObject will change once');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/insertAt.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/insertAt.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/popObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('popObject');\n\n suite.test('[].popObject() => [] + returns undefined + NO notify', function () {\n var obj = this.newObject([]);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.popObject(), undefined, 'popObject results');\n\n deepEqual(this.toArray(obj), [], 'post item results');\n\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('@each'), false, 'should NOT have notified @each');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[X].popObject() => [] + notify', function () {\n var before = this.newFixture(1);\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n var ret = obj.popObject();\n\n equal(ret, before[0], 'return object');\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].popObject() => [A,B] + notify', function () {\n var before = this.newFixture(3);\n var after = [before[0], before[1]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n var ret = obj.popObject();\n\n equal(ret, before[2], 'return object');\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/popObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/popObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/pushObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('pushObject');\n\n suite.test('returns pushed object', function () {\n var exp = this.newFixture(1)[0];\n var obj = this.newObject([]);\n\n equal(obj.pushObject(exp), exp, 'should return pushed object');\n });\n\n suite.test('[].pushObject(X) => [X] + notify', function () {\n var before = [];\n var after = this.newFixture(1);\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.pushObject(after[0]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].pushObject(X) => [A,B,C,X] + notify', function () {\n var before = this.newFixture(3);\n var item = this.newFixture(1)[0];\n var after = [before[0], before[1], before[2], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.pushObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n });\n\n suite.test('[A,B,C,C].pushObject(A) => [A,B,C,C] + notify', function () {\n var before = this.newFixture(3);\n var item = before[2]; // note same object as current tail. should end up twice\n var after = [before[0], before[1], before[2], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.pushObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), true, 'should have notified lastObject');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/pushObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/pushObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/pushObjects', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('pushObjects');\n\n suite.test('should raise exception if not Ember.Enumerable is passed to pushObjects', function () {\n var obj = this.newObject([]);\n\n throws(function () {\n return obj.pushObjects('string');\n });\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/pushObjects.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/pushObjects.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/removeAt', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal', 'ember-runtime/mixins/mutable_array'], function (exports, _suite, _emberMetal, _mutable_array) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('removeAt');\n\n suite.test('removeAt([X], 0) => [] + notify', function () {\n var before = this.newFixture(1);\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal((0, _mutable_array.removeAt)(obj, 0), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('removeAt([], 200) => OUT_OF_RANGE_EXCEPTION exception', function () {\n var obj = this.newObject([]);\n throws(function () {\n return (0, _mutable_array.removeAt)(obj, 200);\n }, Error);\n });\n\n suite.test('removeAt([A,B], 0) => [B] + notify', function () {\n var before = this.newFixture(2);\n var after = [before[1]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal((0, _mutable_array.removeAt)(obj, 0), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('removeAt([A,B], 1) => [A] + notify', function () {\n var before = this.newFixture(2);\n var after = [before[0]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal((0, _mutable_array.removeAt)(obj, 1), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n });\n\n suite.test('removeAt([A,B,C], 1) => [A,C] + notify', function () {\n var before = this.newFixture(3);\n var after = [before[0], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal((0, _mutable_array.removeAt)(obj, 1), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('removeAt([A,B,C,D], 1,2) => [A,D] + notify', function () {\n var before = this.newFixture(4);\n var after = [before[0], before[3]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal((0, _mutable_array.removeAt)(obj, 1, 2), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[A,B,C,D].removeAt(1,2) => [A,D] + notify', function () {\n var obj, before, after, observer;\n\n before = this.newFixture(4);\n after = [before[0], before[3]];\n obj = this.newObject(before);\n observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.removeAt(1, 2), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/removeAt.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/removeAt.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/removeObject', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite'], function (exports, _emberMetal, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('removeObject');\n\n suite.test('should return receiver', function () {\n var before = this.newFixture(3);\n var obj = this.newObject(before);\n\n equal(obj.removeObject(before[1]), obj, 'should return receiver');\n });\n\n suite.test('[A,B,C].removeObject(B) => [A,C] + notify', function () {\n var before = this.newFixture(3);\n var after = [before[0], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.removeObject(before[1]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n });\n\n suite.test('[A,B,C].removeObject(D) => [A,B,C]', function () {\n var before = this.newFixture(3);\n var after = before;\n var item = this.newFixture(1)[0];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.removeObject(item); // note: item not in set\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('@each'), false, 'should NOT have notified @each');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n }\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/removeObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/removeObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/replace', ['exports', 'ember-runtime/tests/suites/suite'], function (exports, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('replace');\n\n suite.test('[].replace(0,0,\\'X\\') => [\\'X\\'] + notify', function () {\n var exp = this.newFixture(1);\n var obj = this.newObject([]);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(0, 0, exp);\n\n deepEqual(this.toArray(obj), exp, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[].replace(0,0,\"X\") => [\"X\"] + avoid calling objectAt and notifying fistObject/lastObject when not in cache', function () {\n var obj, exp, observer;\n var called = 0;\n exp = this.newFixture(1);\n obj = this.newObject([]);\n obj.objectAt = function () {\n called++;\n };\n observer = this.newObserver(obj, 'firstObject', 'lastObject');\n\n obj.replace(0, 0, exp);\n\n equal(called, 0, 'should NOT have called objectAt upon replace when firstObject/lastObject are not cached');\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject since not cached');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject since not cached');\n });\n\n suite.test('[A,B,C,D].replace(1,2,X) => [A,X,D] + notify', function () {\n var before = this.newFixture(4);\n var replace = this.newFixture(1);\n var after = [before[0], replace[0], before[3]];\n\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(1, 2, replace);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[A,B,C,D].replace(1,2,[X,Y]) => [A,X,Y,D] + notify', function () {\n var before = this.newFixture(4);\n var replace = this.newFixture(2);\n var after = [before[0], replace[0], replace[1], before[3]];\n\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(1, 2, replace);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[A,B].replace(1,0,[X,Y]) => [A,X,Y,B] + notify', function () {\n var before = this.newFixture(2);\n var replace = this.newFixture(2);\n var after = [before[0], replace[0], replace[1], before[1]];\n\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(1, 0, replace);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[A,B,C,D].replace(2,2) => [A,B] + notify', function () {\n var before = this.newFixture(4);\n var after = [before[0], before[1]];\n\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(2, 2);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n });\n\n suite.test('[A,B,C,D].replace(-1,1) => [A,B,C] + notify', function () {\n var before = this.newFixture(4);\n var after = [before[0], before[1], before[2]];\n\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.replace(-1, 1);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n });\n\n suite.test('Adding object should notify enumerable observer', function () {\n var fixtures = this.newFixture(4);\n var obj = this.newObject(fixtures);\n var observer = this.newObserver(obj).observeEnumerable(obj);\n var item = this.newFixture(1)[0];\n\n obj.replace(2, 2, [item]);\n\n deepEqual(observer._before, [obj, [fixtures[2], fixtures[3]], 1], 'before');\n deepEqual(observer._after, [obj, 2, [item]], 'after');\n });\n\n suite.test('Adding object should notify array observer', function () {\n var fixtures = this.newFixture(4);\n var obj = this.newObject(fixtures);\n var observer = this.newObserver(obj).observeArray(obj);\n var item = this.newFixture(1)[0];\n\n obj.replace(2, 2, [item]);\n\n deepEqual(observer._before, [obj, 2, 2, 1], 'before');\n deepEqual(observer._after, [obj, 2, 2, 1], 'after');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/replace.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/replace.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/reverseObjects', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('reverseObjects');\n\n suite.test('[A,B,C].reverseObjects() => [] + notify', function () {\n var before = this.newFixture(3);\n var after = [before[2], before[1], before[0]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.reverseObjects(), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 0, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/reverseObjects.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/reverseObjects.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/setObjects', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite'], function (exports, _emberMetal, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('setObjects');\n\n suite.test('[A,B,C].setObjects([]) = > [] + notify', function () {\n var before = this.newFixture(3);\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.setObjects(after), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].setObjects([D, E, F, G]) = > [D, E, F, G] + notify', function () {\n var before = this.newFixture(3);\n var after = this.newFixture(4);\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.setObjects(after), obj, 'return self');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/setObjects.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/setObjects.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/shiftObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('shiftObject');\n\n suite.test('[].shiftObject() => [] + returns undefined + NO notify', function () {\n var before = [];\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.shiftObject(), undefined);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.validate('[]', undefined, 1), false, 'should NOT have notified [] once');\n equal(observer.validate('@each', undefined, 1), false, 'should NOT have notified @each once');\n equal(observer.validate('length', undefined, 1), false, 'should NOT have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject once');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n suite.test('[X].shiftObject() => [] + notify', function () {\n var before = this.newFixture(1);\n var after = [];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.shiftObject(), before[0], 'should return object');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].shiftObject() => [B,C] + notify', function () {\n var before = this.newFixture(3);\n var after = [before[1], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n equal(obj.shiftObject(), before[0], 'should return object');\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject once');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/shiftObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/shiftObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/unshiftObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('unshiftObject');\n\n suite.test('returns unshifted object', function () {\n var obj = this.newObject([]);\n var item = this.newFixture(1)[0];\n\n equal(obj.unshiftObject(item), item, 'should return unshifted object');\n });\n\n suite.test('[].unshiftObject(X) => [X] + notify', function () {\n var before = [];\n var item = this.newFixture(1)[0];\n var after = [item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].unshiftObject(X) => [X,A,B,C] + notify', function () {\n var before = this.newFixture(3);\n var item = this.newFixture(1)[0];\n var after = [item, before[0], before[1], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[A,B,C].unshiftObject(A) => [A,A,B,C] + notify', function () {\n var before = this.newFixture(3);\n var item = before[0]; // note same object as current head. should end up twice\n var after = [item, before[0], before[1], before[2]];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), true, 'should have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/unshiftObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/unshiftObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_array/unshiftObjects', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite'], function (exports, _emberMetal, _suite) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('unshiftObjects');\n\n suite.test('returns receiver', function () {\n var obj = this.newObject([]);\n var items = this.newFixture(3);\n\n equal(obj.unshiftObjects(items), obj, 'should return receiver');\n });\n\n suite.test('[].unshiftObjects([A,B,C]) => [A,B,C] + notify', function () {\n var before = [];\n var items = this.newFixture(3);\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObjects(items);\n\n deepEqual(this.toArray(obj), items, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), items.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n });\n\n suite.test('[A,B,C].unshiftObjects([X,Y]) => [X,Y,A,B,C] + notify', function () {\n var before = this.newFixture(3);\n var items = this.newFixture(2);\n var after = items.concat(before);\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObjects(items);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n suite.test('[A,B,C].unshiftObjects([A,B]) => [A,B,A,B,C] + notify', function () {\n var before = this.newFixture(3);\n var items = [before[0], before[1]]; // note same object as current head. should end up twice\n var after = items.concat(before);\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', '@each', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); /* Prime the cache */\n\n obj.unshiftObjects(items);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('@each'), 0, 'should not have notified @each once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_array/unshiftObjects.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_array/unshiftObjects.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_enumerable', ['exports', 'ember-runtime/tests/suites/enumerable', 'ember-runtime/tests/suites/mutable_enumerable/addObject', 'ember-runtime/tests/suites/mutable_enumerable/removeObject', 'ember-runtime/tests/suites/mutable_enumerable/removeObjects'], function (exports, _enumerable, _addObject, _removeObject, _removeObjects) {\n 'use strict';\n\n var MutableEnumerableTests = _enumerable.EnumerableTests.extend();\n MutableEnumerableTests.importModuleTests(_addObject.default);\n MutableEnumerableTests.importModuleTests(_removeObject.default);\n MutableEnumerableTests.importModuleTests(_removeObjects.default);\n\n exports.default = MutableEnumerableTests;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_enumerable.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_enumerable.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_enumerable/addObject', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal'], function (exports, _suite, _emberMetal) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('addObject');\n\n suite.test('should return receiver', function () {\n var before = this.newFixture(3);\n var obj = this.newObject(before);\n\n equal(obj.addObject(before[1]), obj, 'should return receiver');\n });\n\n suite.test('[A,B].addObject(C) => [A,B,C] + notify', function () {\n var before = this.newFixture(2);\n var item = this.newFixture(1)[0];\n var after = [before[0], before[1], item];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n (0, _emberMetal.get)(obj, 'firstObject');\n (0, _emberMetal.get)(obj, 'lastObject');\n\n obj.addObject(item);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject once');\n // This gets called since MutableEnumerable is naive about changes\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject once');\n }\n });\n\n suite.test('[A,B,C].addObject(A) => [A,B,C] + NO notify', function () {\n var before = this.newFixture(3);\n var after = before;\n var item = before[0];\n var obj = this.newObject(before);\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.addObject(item); // note: item in set\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('Adding object should notify enumerable observer', function () {\n var obj = this.newObject(this.newFixture(3));\n var observer = this.newObserver(obj).observeEnumerable(obj);\n var item = this.newFixture(1)[0];\n\n obj.addObject(item);\n\n deepEqual(observer._before, [obj, null, [item]]);\n deepEqual(observer._after, [obj, null, [item]]);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_enumerable/addObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_enumerable/addObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_enumerable/removeObject', ['exports', 'ember-metal', 'ember-runtime/tests/suites/suite', 'ember-runtime/system/native_array'], function (exports, _emberMetal, _suite, _native_array) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('removeObject');\n\n suite.test('should return receiver', function () {\n var before = this.newFixture(3);\n var obj = this.newObject(before);\n\n equal(obj.removeObject(before[1]), obj, 'should return receiver');\n });\n\n suite.test('[A,B,C].removeObject(B) => [A,C] + notify', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = [before[0], before[2]];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObject(before[1]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('[A,B,C].removeObject(D) => [A,B,C]', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = before;\n var item = this.newFixture(1)[0];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObject(item); // Note: item not in set\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('Removing object should notify enumerable observer', function () {\n var fixtures = this.newFixture(3);\n var obj = this.newObject(fixtures);\n var observer = this.newObserver(obj).observeEnumerable(obj);\n var item = fixtures[1];\n\n obj.removeObject(item);\n\n deepEqual(observer._before, [obj, [item], null]);\n deepEqual(observer._after, [obj, [item], null]);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_enumerable/removeObject.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_enumerable/removeObject.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/mutable_enumerable/removeObjects', ['exports', 'ember-runtime/tests/suites/suite', 'ember-metal', 'ember-runtime/system/native_array'], function (exports, _suite, _emberMetal, _native_array) {\n 'use strict';\n\n var suite = _suite.SuiteModuleBuilder.create();\n\n suite.module('removeObjects');\n\n suite.test('should return receiver', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var obj = before;\n\n equal(obj.removeObjects(before[1]), obj, 'should return receiver');\n });\n\n suite.test('[A,B,C].removeObjects([B]) => [A,C] + notify', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = [before[0], before[2]];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[1]]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('[{A},{B},{C}].removeObjects([{B}]) => [{A},{C}] + notify', function () {\n var before = (0, _native_array.A)(this.newObjectsFixture(3));\n var after = [before[0], before[2]];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[1]]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('[A,B,C].removeObjects([A,B]) => [C] + notify', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = [before[2]];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1]]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('[{A},{B},{C}].removeObjects([{A},{B}]) => [{C}] + notify', function () {\n var before = (0, _native_array.A)(this.newObjectsFixture(3));\n var after = [before[2]];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1]]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('[A,B,C].removeObjects([A,B,C]) => [] + notify', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = [];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([before[0], before[1], before[2]]);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n equal(observer.timesCalled('lastObject'), 1, 'should have notified lastObject');\n }\n });\n\n suite.test('[{A},{B},{C}].removeObjects([{A},{B},{C}]) => [] + notify', function () {\n var before = (0, _native_array.A)(this.newObjectsFixture(3));\n var after = [];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects(before);\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.timesCalled('[]'), 1, 'should have notified [] once');\n equal(observer.timesCalled('length'), 1, 'should have notified length once');\n\n equal(observer.timesCalled('firstObject'), 1, 'should have notified firstObject');\n equal(observer.validate('lastObject'), 1, 'should have notified lastObject');\n }\n });\n\n suite.test('[A,B,C].removeObjects([D]) => [A,B,C]', function () {\n var before = (0, _native_array.A)(this.newFixture(3));\n var after = before;\n var item = this.newFixture(1)[0];\n var obj = before;\n var observer = this.newObserver(obj, '[]', 'length', 'firstObject', 'lastObject');\n\n obj.getProperties('firstObject', 'lastObject'); // Prime the cache\n\n obj.removeObjects([item]); // Note: item not in set\n\n deepEqual(this.toArray(obj), after, 'post item results');\n equal((0, _emberMetal.get)(obj, 'length'), after.length, 'length');\n\n if (observer.isEnabled) {\n equal(observer.validate('[]'), false, 'should NOT have notified []');\n equal(observer.validate('length'), false, 'should NOT have notified length');\n\n equal(observer.validate('firstObject'), false, 'should NOT have notified firstObject');\n equal(observer.validate('lastObject'), false, 'should NOT have notified lastObject');\n }\n });\n\n suite.test('Removing objects should notify enumerable observer', function () {\n var fixtures = this.newFixture(3);\n var obj = this.newObject(fixtures);\n var observer = this.newObserver(obj).observeEnumerable(obj);\n var item = fixtures[1];\n\n obj.removeObjects([item]);\n\n deepEqual(observer._before, [obj, [item], null]);\n deepEqual(observer._after, [obj, [item], null]);\n });\n\n exports.default = suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/mutable_enumerable/removeObjects.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/mutable_enumerable/removeObjects.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/suites/suite', ['exports', 'ember-utils', 'ember-runtime/system/object', 'ember-metal'], function (exports, _emberUtils, _object, _emberMetal) {\n 'use strict';\n\n exports.Suite = exports.SuiteModuleBuilder = undefined;\n\n\n /*\n @class\n A Suite can be used to define a reusable set of unit tests that can be\n applied to any object. Suites are most useful for defining tests that\n work against a mixin or plugin API. Developers implementing objects that\n use the mixin or support the API can then run these tests against their\n own code to verify compliance.\n \n To define a suite, you need to define the tests themselves as well as a\n callback API implementers can use to tie your tests to their specific class.\n \n ## Defining a Callback API\n \n To define the callback API, just extend this class and add your properties\n or methods that must be provided.\n \n ## Defining Unit Tests\n \n To add unit tests, use the suite.module() or suite.test() methods instead\n of a regular module() or test() method when defining your tests. This will\n add the tests to the suite.\n \n ## Using a Suite\n \n To use a Suite to test your own objects, extend the suite subclass and\n define any required methods. Then call run() on the new subclass. This\n will create an instance of your class and then defining the unit tests.\n \n @extends Ember.Object\n @private\n */\n var Suite = _object.default.extend({\n\n /*\n __Required.__ You must implement this method to apply this mixin.\n Define a name for these tests - all modules are prefixed w/ it.\n @type String\n */\n name: null,\n\n run: function () {}\n });\n\n Suite.reopenClass({\n\n plan: null,\n\n run: function () {\n var C = this;\n return new C().run();\n },\n module: function (desc, opts) {\n if (!opts) {\n opts = {};\n }\n\n var setup = opts.setup;\n var teardown = opts.teardown;\n this.reopen({\n run: function () {\n this._super.apply(this, arguments);\n var title = (0, _emberMetal.get)(this, 'name') + ': ' + desc;\n var ctx = this;\n QUnit.module(title, {\n setup: function () {\n if (setup) {\n setup.call(ctx);\n }\n },\n teardown: function () {\n if (teardown) {\n teardown.call(ctx);\n }\n }\n });\n }\n });\n },\n test: function (name, func) {\n this.reopen({\n run: function () {\n this._super.apply(this, arguments);\n var ctx = this;\n\n if (!func) {\n QUnit.test(name); // output warning\n } else {\n QUnit.test(name, function () {\n return func.call(ctx);\n });\n }\n }\n });\n },\n same: function (actual, exp, message) {\n actual = actual && actual.map ? actual.map(function (x) {\n return (0, _emberUtils.guidFor)(x);\n }) : actual;\n exp = exp && exp.map ? exp.map(function (x) {\n return (0, _emberUtils.guidFor)(x);\n }) : exp;\n return deepEqual(actual, exp, message);\n },\n notest: function () {},\n importModuleTests: function (builder) {\n var _this = this;\n\n this.module(builder._module);\n\n builder._tests.forEach(function (descAndFunc) {\n _this.test.apply(_this, descAndFunc);\n });\n }\n });\n\n var SuiteModuleBuilder = _object.default.extend({\n _module: null,\n _tests: null,\n\n init: function () {\n this._tests = [];\n },\n module: function (name) {\n this._module = name;\n },\n test: function (name, func) {\n this._tests.push([name, func]);\n }\n });\n\n exports.SuiteModuleBuilder = SuiteModuleBuilder;\n exports.Suite = Suite;\n exports.default = Suite;\n});","QUnit.module('ESLint | ember-runtime/tests/suites/suite.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/suites/suite.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/application/base_test', ['ember-runtime/system/namespace', 'ember-runtime/system/application'], function (_namespace, _application) {\n 'use strict';\n\n QUnit.module('Ember.Application');\n\n QUnit.test('Ember.Application should be a subclass of Ember.Namespace', function () {\n ok(_namespace.default.detect(_application.default), 'Ember.Application subclass of Ember.Namespace');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/application/base_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/application/base_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/arranged_content_test', ['ember-metal', 'ember-runtime/system/array_proxy', 'ember-runtime/system/native_array', 'ember-runtime/mixins/array'], function (_emberMetal, _array_proxy, _native_array, _array) {\n 'use strict';\n\n var array = void 0;\n\n QUnit.module('ArrayProxy - arrangedContent', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n array = _array_proxy.default.extend({\n arrangedContent: (0, _emberMetal.computed)('content.[]', function () {\n var content = this.get('content');\n return content && (0, _native_array.A)(content.slice().sort(function (a, b) {\n if (a == null) {\n a = -1;\n }\n if (b == null) {\n b = -1;\n }\n return b - a;\n }));\n })\n }).create({\n content: (0, _native_array.A)([1, 2, 4, 5])\n });\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n return array.destroy();\n });\n }\n });\n\n QUnit.test('addObject - adds to end of \\'content\\' if not present', function () {\n (0, _emberMetal.run)(function () {\n return array.addObject(3);\n });\n\n deepEqual(array.get('content'), [1, 2, 4, 5, 3], 'adds to end of content');\n deepEqual(array.get('arrangedContent'), [5, 4, 3, 2, 1], 'arrangedContent stays sorted');\n\n (0, _emberMetal.run)(function () {\n return array.addObject(1);\n });\n\n deepEqual(array.get('content'), [1, 2, 4, 5, 3], 'does not add existing number to content');\n });\n\n QUnit.test('addObjects - adds to end of \\'content\\' if not present', function () {\n (0, _emberMetal.run)(function () {\n return array.addObjects([1, 3, 6]);\n });\n\n deepEqual(array.get('content'), [1, 2, 4, 5, 3, 6], 'adds to end of content');\n deepEqual(array.get('arrangedContent'), [6, 5, 4, 3, 2, 1], 'arrangedContent stays sorted');\n });\n\n QUnit.test('compact - returns arrangedContent without nulls and undefined', function () {\n (0, _emberMetal.run)(function () {\n return array.set('content', (0, _native_array.A)([1, 3, null, 2, undefined]));\n });\n\n deepEqual(array.compact(), [3, 2, 1]);\n });\n\n QUnit.test('indexOf - returns index of object in arrangedContent', function () {\n equal(array.indexOf(4), 1, 'returns arranged index');\n });\n\n QUnit.test('insertAt - raises, indeterminate behavior', function () {\n throws(function () {\n return (0, _emberMetal.run)(function () {\n return array.insertAt(2, 3);\n });\n });\n });\n\n QUnit.test('lastIndexOf - returns last index of object in arrangedContent', function () {\n (0, _emberMetal.run)(function () {\n return array.pushObject(4);\n });\n\n equal(array.lastIndexOf(4), 2, 'returns last arranged index');\n });\n\n QUnit.test('nextObject - returns object at index in arrangedContent', function () {\n equal(array.nextObject(1), 4, 'returns object at index');\n });\n\n QUnit.test('objectAt - returns object at index in arrangedContent', function () {\n equal((0, _array.objectAt)(array, 1), 4, 'returns object at index');\n });\n\n // Not sure if we need a specific test for it, since it's internal\n QUnit.test('objectAtContent - returns object at index in arrangedContent', function () {\n equal(array.objectAtContent(1), 4, 'returns object at index');\n });\n\n QUnit.test('objectsAt - returns objects at indices in arrangedContent', function () {\n deepEqual(array.objectsAt([0, 2, 4]), [5, 2, undefined], 'returns objects at indices');\n });\n\n QUnit.test('popObject - removes last object in arrangedContent', function () {\n var popped = void 0;\n (0, _emberMetal.run)(function () {\n return popped = array.popObject();\n });\n equal(popped, 1, 'returns last object');\n deepEqual(array.get('content'), [2, 4, 5], 'removes from content');\n });\n\n QUnit.test('pushObject - adds to end of content even if it already exists', function () {\n (0, _emberMetal.run)(function () {\n return array.pushObject(1);\n });\n deepEqual(array.get('content'), [1, 2, 4, 5, 1], 'adds to end of content');\n });\n\n QUnit.test('pushObjects - adds multiple to end of content even if it already exists', function () {\n (0, _emberMetal.run)(function () {\n return array.pushObjects([1, 2, 4]);\n });\n deepEqual(array.get('content'), [1, 2, 4, 5, 1, 2, 4], 'adds to end of content');\n });\n\n QUnit.test('removeAt - removes from index in arrangedContent', function () {\n (0, _emberMetal.run)(function () {\n return array.removeAt(1, 2);\n });\n deepEqual(array.get('content'), [1, 5]);\n });\n\n QUnit.test('removeObject - removes object from content', function () {\n (0, _emberMetal.run)(function () {\n return array.removeObject(2);\n });\n deepEqual(array.get('content'), [1, 4, 5]);\n });\n\n QUnit.test('removeObjects - removes objects from content', function () {\n (0, _emberMetal.run)(function () {\n return array.removeObjects([2, 4, 6]);\n });\n deepEqual(array.get('content'), [1, 5]);\n });\n\n QUnit.test('replace - raises, indeterminate behavior', function () {\n throws(function () {\n return (0, _emberMetal.run)(function () {\n return array.replace(1, 2, [3]);\n });\n });\n });\n\n QUnit.test('replaceContent - does a standard array replace on content', function () {\n (0, _emberMetal.run)(function () {\n return array.replaceContent(1, 2, [3]);\n });\n deepEqual(array.get('content'), [1, 3, 5]);\n });\n\n QUnit.test('reverseObjects - raises, use Sortable#sortAscending', function () {\n throws(function () {\n return (0, _emberMetal.run)(function () {\n return array.reverseObjects();\n });\n });\n });\n\n QUnit.test('setObjects - replaces entire content', function () {\n (0, _emberMetal.run)(function () {\n return array.setObjects([6, 7, 8]);\n });\n deepEqual(array.get('content'), [6, 7, 8], 'replaces content');\n });\n\n QUnit.test('shiftObject - removes from start of arrangedContent', function () {\n var shifted = (0, _emberMetal.run)(function () {\n return array.shiftObject();\n });\n\n equal(shifted, 5, 'returns first object');\n deepEqual(array.get('content'), [1, 2, 4], 'removes object from content');\n });\n\n QUnit.test('slice - returns a slice of the arrangedContent', function () {\n deepEqual(array.slice(1, 3), [4, 2], 'returns sliced arrangedContent');\n });\n\n QUnit.test('toArray - returns copy of arrangedContent', function () {\n deepEqual(array.toArray(), [5, 4, 2, 1]);\n });\n\n QUnit.test('unshiftObject - adds to start of content', function () {\n (0, _emberMetal.run)(function () {\n return array.unshiftObject(6);\n });\n deepEqual(array.get('content'), [6, 1, 2, 4, 5], 'adds to start of content');\n });\n\n QUnit.test('unshiftObjects - adds to start of content', function () {\n (0, _emberMetal.run)(function () {\n array.unshiftObjects([6, 7]);\n });\n deepEqual(array.get('content'), [6, 7, 1, 2, 4, 5], 'adds to start of content');\n });\n\n QUnit.test('without - returns arrangedContent without object', function () {\n deepEqual(array.without(2), [5, 4, 1], 'returns arranged without object');\n });\n\n QUnit.test('lastObject - returns last arranged object', function () {\n equal(array.get('lastObject'), 1, 'returns last arranged object');\n });\n\n QUnit.test('firstObject - returns first arranged object', function () {\n equal(array.get('firstObject'), 5, 'returns first arranged object');\n });\n\n QUnit.module('ArrayProxy - arrangedContent matching content', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n array = _array_proxy.default.create({\n content: (0, _native_array.A)([1, 2, 4, 5])\n });\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n array.destroy();\n });\n }\n });\n\n QUnit.test('insertAt - inserts object at specified index', function () {\n (0, _emberMetal.run)(function () {\n array.insertAt(2, 3);\n });\n deepEqual(array.get('content'), [1, 2, 3, 4, 5]);\n });\n\n QUnit.test('replace - does a standard array replace', function () {\n (0, _emberMetal.run)(function () {\n array.replace(1, 2, [3]);\n });\n deepEqual(array.get('content'), [1, 3, 5]);\n });\n\n QUnit.test('reverseObjects - reverses content', function () {\n (0, _emberMetal.run)(function () {\n array.reverseObjects();\n });\n deepEqual(array.get('content'), [5, 4, 2, 1]);\n });\n\n QUnit.module('ArrayProxy - arrangedContent with transforms', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n array = _array_proxy.default.extend({\n arrangedContent: (0, _emberMetal.computed)(function () {\n var content = this.get('content');\n return content && (0, _native_array.A)(content.slice().sort(function (a, b) {\n if (a == null) {\n a = -1;\n }\n if (b == null) {\n b = -1;\n }\n return b - a;\n }));\n }).property('content.[]'),\n\n objectAtContent: function (idx) {\n var obj = (0, _array.objectAt)(this.get('arrangedContent'), idx);\n return obj && obj.toString();\n }\n }).create({\n content: (0, _native_array.A)([1, 2, 4, 5])\n });\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n array.destroy();\n });\n }\n });\n\n QUnit.test('indexOf - returns index of object in arrangedContent', function () {\n equal(array.indexOf('4'), 1, 'returns arranged index');\n });\n\n QUnit.test('lastIndexOf - returns last index of object in arrangedContent', function () {\n (0, _emberMetal.run)(function () {\n array.pushObject(4);\n });\n equal(array.lastIndexOf('4'), 2, 'returns last arranged index');\n });\n\n QUnit.test('nextObject - returns object at index in arrangedContent', function () {\n equal(array.nextObject(1), '4', 'returns object at index');\n });\n\n QUnit.test('objectAt - returns object at index in arrangedContent', function () {\n equal((0, _array.objectAt)(array, 1), '4', 'returns object at index');\n });\n\n // Not sure if we need a specific test for it, since it's internal\n QUnit.test('objectAtContent - returns object at index in arrangedContent', function () {\n equal(array.objectAtContent(1), '4', 'returns object at index');\n });\n\n QUnit.test('objectsAt - returns objects at indices in arrangedContent', function () {\n deepEqual(array.objectsAt([0, 2, 4]), ['5', '2', undefined], 'returns objects at indices');\n });\n\n QUnit.test('popObject - removes last object in arrangedContent', function () {\n var popped = void 0;\n (0, _emberMetal.run)(function () {\n popped = array.popObject();\n });\n equal(popped, '1', 'returns last object');\n deepEqual(array.get('content'), [2, 4, 5], 'removes from content');\n });\n\n QUnit.test('removeObject - removes object from content', function () {\n (0, _emberMetal.run)(function () {\n array.removeObject('2');\n });\n deepEqual(array.get('content'), [1, 4, 5]);\n });\n\n QUnit.test('removeObjects - removes objects from content', function () {\n (0, _emberMetal.run)(function () {\n array.removeObjects(['2', '4', '6']);\n });\n deepEqual(array.get('content'), [1, 5]);\n });\n\n QUnit.test('shiftObject - removes from start of arrangedContent', function () {\n var shifted = void 0;\n (0, _emberMetal.run)(function () {\n shifted = array.shiftObject();\n });\n equal(shifted, '5', 'returns first object');\n deepEqual(array.get('content'), [1, 2, 4], 'removes object from content');\n });\n\n QUnit.test('slice - returns a slice of the arrangedContent', function () {\n deepEqual(array.slice(1, 3), ['4', '2'], 'returns sliced arrangedContent');\n });\n\n QUnit.test('toArray - returns copy of arrangedContent', function () {\n deepEqual(array.toArray(), ['5', '4', '2', '1']);\n });\n\n QUnit.test('without - returns arrangedContent without object', function () {\n deepEqual(array.without('2'), ['5', '4', '1'], 'returns arranged without object');\n });\n\n QUnit.test('lastObject - returns last arranged object', function () {\n equal(array.get('lastObject'), '1', 'returns last arranged object');\n });\n\n QUnit.test('firstObject - returns first arranged object', function () {\n equal(array.get('firstObject'), '5', 'returns first arranged object');\n });\n\n QUnit.test('arrangedContentArray{Will,Did}Change are called when the arranged content changes', function () {\n // The behavior covered by this test may change in the future if we decide\n // that built-in array methods are not overridable.\n\n var willChangeCallCount = 0;\n var didChangeCallCount = 0;\n\n var content = (0, _native_array.A)([1, 2, 3]);\n _array_proxy.default.extend({\n arrangedContentArrayWillChange: function () {\n willChangeCallCount++;\n this._super.apply(this, arguments);\n },\n arrangedContentArrayDidChange: function () {\n didChangeCallCount++;\n this._super.apply(this, arguments);\n }\n }).create({ content: content });\n\n equal(willChangeCallCount, 0);\n equal(didChangeCallCount, 0);\n\n content.pushObject(4);\n content.pushObject(5);\n\n equal(willChangeCallCount, 2);\n equal(didChangeCallCount, 2);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/arranged_content_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/arranged_content_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/content_change_test', ['ember-metal', 'ember-runtime/computed/computed_macros', 'ember-runtime/system/array_proxy', 'ember-runtime/system/native_array'], function (_emberMetal, _computed_macros, _array_proxy, _native_array) {\n 'use strict';\n\n QUnit.module('ArrayProxy - content change');\n\n QUnit.test('should update length for null content', function () {\n var proxy = _array_proxy.default.create({\n content: (0, _native_array.A)([1, 2, 3])\n });\n\n equal(proxy.get('length'), 3, 'precond - length is 3');\n\n proxy.set('content', null);\n\n equal(proxy.get('length'), 0, 'length updates');\n });\n\n QUnit.test('should update length for null content when there is a computed property watching length', function () {\n var proxy = _array_proxy.default.extend({\n isEmpty: (0, _computed_macros.not)('length')\n }).create({\n content: (0, _native_array.A)([1, 2, 3])\n });\n\n equal(proxy.get('length'), 3, 'precond - length is 3');\n\n // Consume computed property that depends on length\n proxy.get('isEmpty');\n\n // update content\n proxy.set('content', null);\n\n equal(proxy.get('length'), 0, 'length updates');\n });\n\n QUnit.test('The `arrangedContentWillChange` method is invoked before `content` is changed.', function () {\n var callCount = 0;\n var expectedLength = void 0;\n\n var proxy = _array_proxy.default.extend({\n arrangedContentWillChange: function () {\n equal(this.get('arrangedContent.length'), expectedLength, 'hook should be invoked before array has changed');\n callCount++;\n }\n }).create({ content: (0, _native_array.A)([1, 2, 3]) });\n\n proxy.pushObject(4);\n equal(callCount, 0, 'pushing content onto the array doesn\\'t trigger it');\n\n proxy.get('content').pushObject(5);\n equal(callCount, 0, 'pushing content onto the content array doesn\\'t trigger it');\n\n expectedLength = 5;\n proxy.set('content', (0, _native_array.A)(['a', 'b']));\n equal(callCount, 1, 'replacing the content array triggers the hook');\n });\n\n QUnit.test('The `arrangedContentDidChange` method is invoked after `content` is changed.', function () {\n var callCount = 0;\n var expectedLength = void 0;\n\n var proxy = _array_proxy.default.extend({\n arrangedContentDidChange: function () {\n equal(this.get('arrangedContent.length'), expectedLength, 'hook should be invoked after array has changed');\n callCount++;\n }\n }).create({\n content: (0, _native_array.A)([1, 2, 3])\n });\n\n equal(callCount, 0, 'hook is not called after creating the object');\n\n proxy.pushObject(4);\n equal(callCount, 0, 'pushing content onto the array doesn\\'t trigger it');\n\n proxy.get('content').pushObject(5);\n equal(callCount, 0, 'pushing content onto the content array doesn\\'t trigger it');\n\n expectedLength = 2;\n proxy.set('content', (0, _native_array.A)(['a', 'b']));\n equal(callCount, 1, 'replacing the content array triggers the hook');\n });\n\n QUnit.test('The ArrayProxy doesn\\'t explode when assigned a destroyed object', function () {\n var proxy1 = _array_proxy.default.create();\n var proxy2 = _array_proxy.default.create();\n\n (0, _emberMetal.run)(function () {\n return proxy1.destroy();\n });\n\n (0, _emberMetal.set)(proxy2, 'content', proxy1);\n\n ok(true, 'No exception was raised');\n });\n\n QUnit.test('arrayContent{Will,Did}Change are called when the content changes', function () {\n // The behavior covered by this test may change in the future if we decide\n // that built-in array methods are not overridable.\n\n var willChangeCallCount = 0;\n var didChangeCallCount = 0;\n\n var content = (0, _native_array.A)([1, 2, 3]);\n _array_proxy.default.extend({\n arrayContentWillChange: function () {\n willChangeCallCount++;\n this._super.apply(this, arguments);\n },\n arrayContentDidChange: function () {\n didChangeCallCount++;\n this._super.apply(this, arguments);\n }\n }).create({ content: content });\n\n equal(willChangeCallCount, 0);\n equal(didChangeCallCount, 0);\n\n content.pushObject(4);\n content.pushObject(5);\n\n equal(willChangeCallCount, 2);\n equal(didChangeCallCount, 2);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/content_change_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/content_change_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/content_update_test', ['ember-metal', 'ember-runtime/system/array_proxy', 'ember-runtime/system/native_array'], function (_emberMetal, _array_proxy, _native_array) {\n 'use strict';\n\n QUnit.module('Ember.ArrayProxy - content update');\n\n QUnit.test('The `contentArrayDidChange` method is invoked after `content` is updated.', function () {\n var observerCalled = false;\n var proxy = _array_proxy.default.extend({\n arrangedContent: (0, _emberMetal.computed)('content', function (key) {\n return (0, _native_array.A)(this.get('content').slice());\n }),\n\n contentArrayDidChange: function (array, idx, removedCount, addedCount) {\n observerCalled = true;\n return this._super(array, idx, removedCount, addedCount);\n }\n }).create({\n content: (0, _native_array.A)()\n });\n\n proxy.pushObject(1);\n\n ok(observerCalled, 'contentArrayDidChange is invoked');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/content_update_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/content_update_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/length_test', ['ember-runtime/system/array_proxy', 'ember-runtime/system/object', 'ember-metal', 'ember-runtime/system/native_array'], function (_array_proxy, _object, _emberMetal, _native_array) {\n 'use strict';\n\n QUnit.module('Ember.ArrayProxy - content change (length)');\n\n QUnit.test('array proxy + aliasedProperty complex test', function () {\n var aCalled = void 0,\n bCalled = void 0,\n cCalled = void 0,\n dCalled = void 0,\n eCalled = void 0;\n\n aCalled = bCalled = cCalled = dCalled = eCalled = 0;\n\n var obj = _object.default.extend({\n colors: _emberMetal.computed.reads('model'),\n length: _emberMetal.computed.reads('colors.length'),\n\n a: (0, _emberMetal.observer)('length', function () {\n return aCalled++;\n }),\n b: (0, _emberMetal.observer)('colors.length', function () {\n return bCalled++;\n }),\n c: (0, _emberMetal.observer)('colors.content.length', function () {\n return cCalled++;\n }),\n d: (0, _emberMetal.observer)('colors.[]', function () {\n return dCalled++;\n }),\n e: (0, _emberMetal.observer)('colors.content.[]', function () {\n return eCalled++;\n })\n }).create();\n\n obj.set('model', _array_proxy.default.create({\n content: (0, _native_array.A)(['red', 'yellow', 'blue'])\n }));\n\n equal(obj.get('colors.content.length'), 3);\n equal(obj.get('colors.length'), 3);\n equal(obj.get('length'), 3);\n\n equal(aCalled, 1, 'expected observer `length` to be called ONCE');\n equal(bCalled, 1, 'expected observer `colors.length` to be called ONCE');\n equal(cCalled, 1, 'expected observer `colors.content.length` to be called ONCE');\n equal(dCalled, 1, 'expected observer `colors.[]` to be called ONCE');\n equal(eCalled, 1, 'expected observer `colors.content.[]` to be called ONCE');\n\n obj.get('colors').pushObjects(['green', 'red']);\n\n equal(obj.get('colors.content.length'), 5);\n equal(obj.get('colors.length'), 5);\n equal(obj.get('length'), 5);\n\n equal(aCalled, 2, 'expected observer `length` to be called TWICE');\n equal(bCalled, 2, 'expected observer `colors.length` to be called TWICE');\n equal(cCalled, 2, 'expected observer `colors.content.length` to be called TWICE');\n equal(dCalled, 2, 'expected observer `colors.[]` to be called TWICE');\n equal(eCalled, 2, 'expected observer `colors.content.[]` to be called TWICE');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/length_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/length_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/suite_test', ['ember-runtime/tests/suites/mutable_array', 'ember-runtime/system/array_proxy', 'ember-metal', 'ember-runtime/system/native_array'], function (_mutable_array, _array_proxy, _emberMetal, _native_array) {\n 'use strict';\n\n _mutable_array.default.extend({\n name: 'Ember.ArrayProxy',\n\n newObject: function (ary) {\n var ret = ary ? ary.slice() : this.newFixture(3);\n return _array_proxy.default.create({ content: (0, _native_array.A)(ret) });\n },\n mutate: function (obj) {\n obj.pushObject((0, _emberMetal.get)(obj, 'length') + 1);\n },\n toArray: function (obj) {\n return obj.toArray ? obj.toArray() : obj.slice();\n }\n }).run();\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/suite_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/suite_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/array_proxy/watching_and_listening_test', ['ember-metal', 'ember-runtime/system/array_proxy', 'ember-runtime/system/native_array'], function (_emberMetal, _array_proxy, _native_array) {\n 'use strict';\n\n function sortedListenersFor(obj, eventName) {\n return (0, _emberMetal.listenersFor)(obj, eventName).sort(function (listener1, listener2) {\n return listener1[1] > listener2[1] ? -1 : 1;\n });\n }\n\n QUnit.module('ArrayProxy - watching and listening');\n\n QUnit.test('setting \\'content\\' adds listeners correctly', function () {\n var content = (0, _native_array.A)();\n var proxy = _array_proxy.default.create();\n\n deepEqual(sortedListenersFor(content, '@array:before'), []);\n deepEqual(sortedListenersFor(content, '@array:change'), []);\n\n proxy.set('content', content);\n\n deepEqual(sortedListenersFor(content, '@array:before'), [[proxy, 'contentArrayWillChange'], [proxy, 'arrangedContentArrayWillChange']]);\n deepEqual(sortedListenersFor(content, '@array:change'), [[proxy, 'contentArrayDidChange'], [proxy, 'arrangedContentArrayDidChange']]);\n });\n\n QUnit.test('changing \\'content\\' adds and removes listeners correctly', function () {\n var content1 = (0, _native_array.A)();\n var content2 = (0, _native_array.A)();\n var proxy = _array_proxy.default.create({ content: content1 });\n\n deepEqual(sortedListenersFor(content1, '@array:before'), [[proxy, 'contentArrayWillChange'], [proxy, 'arrangedContentArrayWillChange']]);\n deepEqual(sortedListenersFor(content1, '@array:change'), [[proxy, 'contentArrayDidChange'], [proxy, 'arrangedContentArrayDidChange']]);\n\n proxy.set('content', content2);\n\n deepEqual(sortedListenersFor(content1, '@array:before'), []);\n deepEqual(sortedListenersFor(content1, '@array:change'), []);\n deepEqual(sortedListenersFor(content2, '@array:before'), [[proxy, 'contentArrayWillChange'], [proxy, 'arrangedContentArrayWillChange']]);\n deepEqual(sortedListenersFor(content2, '@array:change'), [[proxy, 'contentArrayDidChange'], [proxy, 'arrangedContentArrayDidChange']]);\n });\n\n QUnit.test('regression test for https://github.com/emberjs/ember.js/issues/12475', function () {\n var item1a = { id: 1 };\n var item1b = { id: 2 };\n var item1c = { id: 3 };\n var content1 = (0, _native_array.A)([item1a, item1b, item1c]);\n\n var proxy = _array_proxy.default.create({ content: content1 });\n var obj = { proxy: proxy };\n\n (0, _emberMetal.defineProperty)(obj, 'ids', (0, _emberMetal.computed)('proxy.@each.id', function () {\n return (0, _emberMetal.get)(this, 'proxy').mapBy('id');\n }));\n\n // These manually added observers are to simulate the observers added by the\n // rendering process in a template like:\n //\n // {{#each items as |item|}}\n // {{item.id}}\n // {{/each}}\n (0, _emberMetal.addObserver)(item1a, 'id', function () {});\n (0, _emberMetal.addObserver)(item1b, 'id', function () {});\n (0, _emberMetal.addObserver)(item1c, 'id', function () {});\n\n // The EachProxy has not yet been consumed. Only the manually added\n // observers are watching.\n equal((0, _emberMetal.watcherCount)(item1a, 'id'), 1);\n equal((0, _emberMetal.watcherCount)(item1b, 'id'), 1);\n equal((0, _emberMetal.watcherCount)(item1c, 'id'), 1);\n\n // Consume the each proxy. This causes the EachProxy to add two observers\n // per item: one for \"before\" events and one for \"after\" events.\n deepEqual((0, _emberMetal.get)(obj, 'ids'), [1, 2, 3]);\n\n // For each item, the two each proxy observers and one manual added observer\n // are watching.\n equal((0, _emberMetal.watcherCount)(item1a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1c, 'id'), 3);\n\n // This should be a no-op because observers do not fire if the value\n // 1. is an object and 2. is the same as the old value.\n proxy.set('content', content1);\n\n equal((0, _emberMetal.watcherCount)(item1a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1c, 'id'), 3);\n\n // This is repeated to catch the regression. It should still be a no-op.\n proxy.set('content', content1);\n\n equal((0, _emberMetal.watcherCount)(item1a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item1c, 'id'), 3);\n\n // Set the content to a new array with completely different items and\n // repeat the process.\n var item2a = { id: 4 };\n var item2b = { id: 5 };\n var item2c = { id: 6 };\n var content2 = (0, _native_array.A)([item2a, item2b, item2c]);\n\n (0, _emberMetal.addObserver)(item2a, 'id', function () {});\n (0, _emberMetal.addObserver)(item2b, 'id', function () {});\n (0, _emberMetal.addObserver)(item2c, 'id', function () {});\n\n proxy.set('content', content2);\n\n deepEqual((0, _emberMetal.get)(obj, 'ids'), [4, 5, 6]);\n\n equal((0, _emberMetal.watcherCount)(item2a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2c, 'id'), 3);\n\n // Ensure that the observers added by the EachProxy on all items in the\n // first content array have been torn down.\n equal((0, _emberMetal.watcherCount)(item1a, 'id'), 1);\n equal((0, _emberMetal.watcherCount)(item1b, 'id'), 1);\n equal((0, _emberMetal.watcherCount)(item1c, 'id'), 1);\n\n proxy.set('content', content2);\n\n equal((0, _emberMetal.watcherCount)(item2a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2c, 'id'), 3);\n\n proxy.set('content', content2);\n\n equal((0, _emberMetal.watcherCount)(item2a, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2b, 'id'), 3);\n equal((0, _emberMetal.watcherCount)(item2c, 'id'), 3);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/array_proxy/watching_and_listening_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/array_proxy/watching_and_listening_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/core_object_test', ['ember-runtime/system/core_object', 'ember-metal'], function (_core_object, _emberMetal) {\n 'use strict';\n\n QUnit.module('Ember.CoreObject');\n\n QUnit.test('works with new (one arg)', function () {\n var obj = new _core_object.default({\n firstName: 'Stef',\n lastName: 'Penner'\n });\n\n equal(obj.firstName, 'Stef');\n equal(obj.lastName, 'Penner');\n });\n\n QUnit.test('works with new (> 1 arg)', function () {\n var obj = new _core_object.default({\n firstName: 'Stef',\n lastName: 'Penner'\n }, {\n other: 'name'\n });\n\n equal(obj.firstName, 'Stef');\n equal(obj.lastName, 'Penner');\n\n equal(obj.other, undefined); // doesn't support multiple pojo' to the constructor\n });\n\n QUnit.test('toString should be not be added as a property when calling toString()', function () {\n var obj = new _core_object.default({\n firstName: 'Foo',\n lastName: 'Bar'\n });\n\n obj.toString();\n\n notOk(obj.hasOwnProperty('toString'), 'Calling toString() should not create a toString class property');\n });\n\n QUnit.test('[POST_INIT] invoked during construction', function (assert) {\n var _CoreObject$extend;\n\n var callCount = 0;\n var Obj = _core_object.default.extend((_CoreObject$extend = {}, _CoreObject$extend[_core_object.POST_INIT] = function () {\n callCount++;\n }, _CoreObject$extend));\n\n equal(callCount, 0);\n\n Obj.create();\n\n equal(callCount, 1);\n });\n\n QUnit.test('[POST_INIT] invoked before finishChains', function (assert) {\n var _CoreObject$extend2;\n\n var callCount = 0;\n\n var Obj = _core_object.default.extend((_CoreObject$extend2 = {}, _CoreObject$extend2[_core_object.POST_INIT] = function () {\n (0, _emberMetal.set)(this, 'hi', 1);\n }, _CoreObject$extend2.hiDidChange = (0, _emberMetal.observer)('hi', function () {\n callCount++;\n }), _CoreObject$extend2));\n\n equal(callCount, 0);\n\n var obj = Obj.create();\n\n equal(callCount, 0);\n\n (0, _emberMetal.set)(obj, 'hi', 2);\n\n equal(callCount, 1);\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/core_object_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/core_object_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/lazy_load_test', ['ember-metal', 'ember-runtime/system/lazy_load'], function (_emberMetal, _lazy_load) {\n 'use strict';\n\n QUnit.module('Lazy Loading', {\n teardown: function () {\n var keys = Object.keys(_lazy_load._loaded);\n for (var i = 0; i < keys.length; i++) {\n delete _lazy_load._loaded[keys[i]];\n }\n }\n });\n\n QUnit.test('if a load hook is registered, it is executed when runLoadHooks are exected', function () {\n var count = 0;\n\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.onLoad)('__test_hook__', function (object) {\n count += object;\n });\n });\n\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.runLoadHooks)('__test_hook__', 1);\n });\n\n equal(count, 1, 'the object was passed into the load hook');\n });\n\n QUnit.test('if runLoadHooks was already run, it executes newly added hooks immediately', function () {\n var count = 0;\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.onLoad)('__test_hook__', function (object) {\n return count += object;\n });\n });\n\n (0, _emberMetal.run)(function () {\n return (0, _lazy_load.runLoadHooks)('__test_hook__', 1);\n });\n\n count = 0;\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.onLoad)('__test_hook__', function (object) {\n return count += object;\n });\n });\n\n equal(count, 1, 'the original object was passed into the load hook');\n });\n\n QUnit.test('hooks in ENV.EMBER_LOAD_HOOKS[\\'hookName\\'] get executed', function () {\n // Note that the necessary code to perform this test is run before\n // the Ember lib is loaded in tests/index.html\n\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.runLoadHooks)('__before_ember_test_hook__', 1);\n });\n\n equal(window.ENV.__test_hook_count__, 1, 'the object was passed into the load hook');\n });\n\n if (typeof window === 'object' && typeof window.dispatchEvent === 'function' && typeof CustomEvent === 'function') {\n QUnit.test('load hooks trigger a custom event', function () {\n var eventObject = 'super duper awesome events';\n\n window.addEventListener('__test_hook_for_events__', function (e) {\n ok(true, 'custom event was fired');\n equal(e.detail, eventObject, 'event details are provided properly');\n });\n\n (0, _emberMetal.run)(function () {\n (0, _lazy_load.runLoadHooks)('__test_hook_for_events__', eventObject);\n });\n });\n }\n});","QUnit.module('ESLint | ember-runtime/tests/system/lazy_load_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/lazy_load_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/namespace/base_test', ['ember-environment', 'ember-metal', 'ember-runtime/system/object', 'ember-runtime/system/namespace'], function (_emberEnvironment, _emberMetal, _object, _namespace) {\n 'use strict';\n\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n QUnit.module('Namespace', {\n setup: function () {\n (0, _namespace.setSearchDisabled)(false);\n\n lookup = _emberEnvironment.context.lookup = {};\n },\n teardown: function () {\n (0, _namespace.setSearchDisabled)(false);\n\n for (var prop in lookup) {\n if (lookup[prop]) {\n (0, _emberMetal.run)(lookup[prop], 'destroy');\n }\n }\n\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('Namespace should be a subclass of EmberObject', function () {\n ok(_object.default.detect(_namespace.default));\n });\n\n QUnit.test('Namespace should be duck typed', function () {\n ok((0, _emberMetal.get)(_namespace.default.create(), 'isNamespace'), 'isNamespace property is true');\n });\n\n QUnit.test('Namespace is found and named', function () {\n var nsA = lookup.NamespaceA = _namespace.default.create();\n equal(nsA.toString(), 'NamespaceA', 'namespaces should have a name if they are on lookup');\n\n var nsB = lookup.NamespaceB = _namespace.default.create();\n equal(nsB.toString(), 'NamespaceB', 'namespaces work if created after the first namespace processing pass');\n });\n\n QUnit.test('Classes under an Namespace are properly named', function () {\n var nsA = lookup.NamespaceA = _namespace.default.create();\n nsA.Foo = _object.default.extend();\n equal(nsA.Foo.toString(), 'NamespaceA.Foo', 'Classes pick up their parent namespace');\n\n nsA.Bar = _object.default.extend();\n equal(nsA.Bar.toString(), 'NamespaceA.Bar', 'New Classes get the naming treatment too');\n\n var nsB = lookup.NamespaceB = _namespace.default.create();\n nsB.Foo = _object.default.extend();\n equal(nsB.Foo.toString(), 'NamespaceB.Foo', 'Classes in new namespaces get the naming treatment');\n });\n\n //test(\"Classes under Ember are properly named\", function() {\n // // ES6TODO: This test does not work reliably when running independent package build with Broccoli config.\n // Ember.TestObject = EmberObject.extend({});\n // equal(Ember.TestObject.toString(), \"Ember.TestObject\", \"class under Ember is given a string representation\");\n //});\n\n QUnit.test('Lowercase namespaces are no longer supported', function () {\n var nsC = lookup.namespaceC = _namespace.default.create();\n equal(nsC.toString(), undefined);\n });\n\n QUnit.test('A namespace can be assigned a custom name', function () {\n var nsA = _namespace.default.create({\n name: 'NamespaceA'\n });\n\n var nsB = lookup.NamespaceB = _namespace.default.create({\n name: 'CustomNamespaceB'\n });\n\n nsA.Foo = _object.default.extend();\n nsB.Foo = _object.default.extend();\n\n equal(nsA.Foo.toString(), 'NamespaceA.Foo', 'The namespace\\'s name is used when the namespace is not in the lookup object');\n equal(nsB.Foo.toString(), 'CustomNamespaceB.Foo', 'The namespace\\'s name is used when the namespace is in the lookup object');\n });\n\n QUnit.test('Calling namespace.nameClasses() eagerly names all classes', function () {\n (0, _namespace.setSearchDisabled)(true);\n\n var namespace = lookup.NS = _namespace.default.create();\n\n namespace.ClassA = _object.default.extend();\n namespace.ClassB = _object.default.extend();\n\n _namespace.default.processAll();\n\n equal(namespace.ClassA.toString(), 'NS.ClassA');\n equal(namespace.ClassB.toString(), 'NS.ClassB');\n });\n\n QUnit.test('A namespace can be looked up by its name', function () {\n var NS = lookup.NS = _namespace.default.create();\n var UI = lookup.UI = _namespace.default.create();\n var CF = lookup.CF = _namespace.default.create();\n\n equal(_namespace.default.byName('NS'), NS);\n equal(_namespace.default.byName('UI'), UI);\n equal(_namespace.default.byName('CF'), CF);\n });\n\n QUnit.test('A nested namespace can be looked up by its name', function () {\n var UI = lookup.UI = _namespace.default.create();\n UI.Nav = _namespace.default.create();\n\n equal(_namespace.default.byName('UI.Nav'), UI.Nav);\n });\n\n QUnit.test('Destroying a namespace before caching lookup removes it from the list of namespaces', function () {\n var CF = lookup.CF = _namespace.default.create();\n\n (0, _emberMetal.run)(CF, 'destroy');\n equal(_namespace.default.byName('CF'), undefined, 'namespace can not be found after destroyed');\n });\n\n QUnit.test('Destroying a namespace after looking up removes it from the list of namespaces', function () {\n var CF = lookup.CF = _namespace.default.create();\n\n equal(_namespace.default.byName('CF'), CF, 'precondition - namespace can be looked up by name');\n\n (0, _emberMetal.run)(CF, 'destroy');\n equal(_namespace.default.byName('CF'), undefined, 'namespace can not be found after destroyed');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/namespace/base_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/namespace/base_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/native_array/a_test', ['ember-runtime/mixins/array', 'ember-runtime/system/native_array'], function (_array, _native_array) {\n 'use strict';\n\n QUnit.module('Ember.A');\n\n QUnit.test('Ember.A', function () {\n deepEqual((0, _native_array.A)([1, 2]), [1, 2], 'array values were not be modified');\n deepEqual((0, _native_array.A)(), [], 'returned an array with no arguments');\n deepEqual((0, _native_array.A)(null), [], 'returned an array with a null argument');\n ok(_array.default.detect((0, _native_array.A)()), 'returned an ember array');\n ok(_array.default.detect((0, _native_array.A)([1, 2])), 'returned an ember array');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/native_array/a_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/native_array/a_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/native_array/copyable_suite_test', ['ember-utils', 'ember-runtime/system/native_array', 'ember-runtime/tests/suites/copyable'], function (_emberUtils, _native_array, _copyable) {\n 'use strict';\n\n _copyable.default.extend({\n name: 'NativeArray Copyable',\n\n newObject: function () {\n return (0, _native_array.A)([(0, _emberUtils.generateGuid)()]);\n },\n isEqual: function (a, b) {\n if (!(a instanceof Array)) {\n return false;\n }\n\n if (!(b instanceof Array)) {\n return false;\n }\n\n if (a.length !== b.length) {\n return false;\n }\n\n return a[0] === b[0];\n },\n\n\n shouldBeFreezable: false\n }).run();\n\n QUnit.module('NativeArray Copyable');\n\n QUnit.test('deep copy is respected', function () {\n var array = (0, _native_array.A)([{ id: 1 }, { id: 2 }, { id: 3 }]);\n\n var copiedArray = array.copy(true);\n\n deepEqual(copiedArray, array, 'copied array is equivalent');\n ok(copiedArray[0] !== array[0], 'objects inside should be unique');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/native_array/copyable_suite_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/native_array/copyable_suite_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/native_array/replace_test', ['ember-runtime/system/native_array'], function (_native_array) {\n 'use strict';\n\n QUnit.module('NativeArray.replace');\n\n QUnit.test('raises assertion if third argument is not an array', function () {\n expectAssertion(function () {\n (0, _native_array.A)([1, 2, 3]).replace(1, 1, '');\n }, 'The third argument to replace needs to be an array.');\n });\n\n QUnit.test('it does not raise an assertion if third parameter is not passed', function () {\n deepEqual((0, _native_array.A)([1, 2, 3]).replace(1, 2), (0, _native_array.A)([1]), 'no assertion raised');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/native_array/replace_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/native_array/replace_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/native_array/suite_test', ['ember-runtime/system/native_array', 'ember-runtime/tests/suites/mutable_array'], function (_native_array, _mutable_array) {\n 'use strict';\n\n _mutable_array.default.extend({\n name: 'Native Array',\n\n newObject: function (ary) {\n return (0, _native_array.A)(ary ? ary.slice() : this.newFixture(3));\n },\n mutate: function (obj) {\n obj.pushObject(obj.length + 1);\n },\n toArray: function (obj) {\n return obj.slice(); // make a copy.\n }\n }).run();\n});","QUnit.module('ESLint | ember-runtime/tests/system/native_array/suite_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/native_array/suite_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/computed_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object'], function (_emberMetal, _internalTestHelpers, _object) {\n 'use strict';\n\n function K() {\n return this;\n }\n\n QUnit.module('EmberObject computed property');\n\n (0, _internalTestHelpers.testWithDefault)('computed property on instance', function (get, set) {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'FOO';\n })\n });\n\n equal(get(new MyClass(), 'foo'), 'FOO');\n });\n\n (0, _internalTestHelpers.testWithDefault)('computed property on subclass', function (get, set) {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'FOO';\n })\n });\n\n var Subclass = MyClass.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'BAR';\n })\n });\n\n equal(get(new Subclass(), 'foo'), 'BAR');\n });\n\n (0, _internalTestHelpers.testWithDefault)('replacing computed property with regular val', function (get, set) {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'FOO';\n })\n });\n\n var Subclass = MyClass.extend({\n foo: 'BAR'\n });\n\n equal(get(new Subclass(), 'foo'), 'BAR');\n });\n\n (0, _internalTestHelpers.testWithDefault)('complex depndent keys', function (get, set) {\n var MyClass = _object.default.extend({\n init: function () {\n this._super.apply(this, arguments);\n set(this, 'bar', { baz: 'BIFF' });\n },\n\n\n count: 0,\n\n foo: (0, _emberMetal.computed)(function () {\n set(this, 'count', get(this, 'count') + 1);\n return (0, _emberMetal.get)(get(this, 'bar'), 'baz') + ' ' + get(this, 'count');\n }).property('bar.baz')\n\n });\n\n var Subclass = MyClass.extend({\n count: 20\n });\n\n var obj1 = new MyClass();\n var obj2 = new Subclass();\n\n equal(get(obj1, 'foo'), 'BIFF 1');\n equal(get(obj2, 'foo'), 'BIFF 21');\n\n set(get(obj1, 'bar'), 'baz', 'BLARG');\n\n equal(get(obj1, 'foo'), 'BLARG 2');\n equal(get(obj2, 'foo'), 'BIFF 21');\n\n set(get(obj2, 'bar'), 'baz', 'BOOM');\n\n equal(get(obj1, 'foo'), 'BLARG 2');\n equal(get(obj2, 'foo'), 'BOOM 22');\n });\n\n (0, _internalTestHelpers.testWithDefault)('complex dependent keys changing complex dependent keys', function (get, set) {\n var MyClass = _object.default.extend({\n init: function () {\n this._super.apply(this, arguments);\n set(this, 'bar', { baz: 'BIFF' });\n },\n\n\n count: 0,\n\n foo: (0, _emberMetal.computed)(function () {\n set(this, 'count', get(this, 'count') + 1);\n return (0, _emberMetal.get)(get(this, 'bar'), 'baz') + ' ' + get(this, 'count');\n }).property('bar.baz')\n });\n\n var Subclass = MyClass.extend({\n init: function () {\n this._super.apply(this, arguments);\n set(this, 'bar2', { baz: 'BIFF2' });\n },\n\n\n count: 0,\n\n foo: (0, _emberMetal.computed)(function () {\n set(this, 'count', get(this, 'count') + 1);\n return (0, _emberMetal.get)(get(this, 'bar2'), 'baz') + ' ' + get(this, 'count');\n }).property('bar2.baz')\n });\n\n var obj2 = new Subclass();\n\n equal(get(obj2, 'foo'), 'BIFF2 1');\n\n set(get(obj2, 'bar'), 'baz', 'BLARG');\n equal(get(obj2, 'foo'), 'BIFF2 1', 'should not invalidate property');\n\n set(get(obj2, 'bar2'), 'baz', 'BLARG');\n equal(get(obj2, 'foo'), 'BLARG 2', 'should invalidate property');\n });\n\n QUnit.test('can retrieve metadata for a computed property', function () {\n var MyClass = _object.default.extend({\n computedProperty: (0, _emberMetal.computed)(function () {}).meta({ key: 'keyValue' })\n });\n\n equal((0, _emberMetal.get)(MyClass.metaForProperty('computedProperty'), 'key'), 'keyValue', 'metadata saved on the computed property can be retrieved');\n\n var ClassWithNoMetadata = _object.default.extend({\n computedProperty: (0, _emberMetal.computed)(function () {}).volatile(),\n\n staticProperty: 12\n });\n\n equal(typeof ClassWithNoMetadata.metaForProperty('computedProperty'), 'object', 'returns empty hash if no metadata has been saved');\n\n expectAssertion(function () {\n ClassWithNoMetadata.metaForProperty('nonexistentProperty');\n }, 'metaForProperty() could not find a computed property with key \\'nonexistentProperty\\'.');\n\n expectAssertion(function () {\n ClassWithNoMetadata.metaForProperty('staticProperty');\n }, 'metaForProperty() could not find a computed property with key \\'staticProperty\\'.');\n });\n\n QUnit.test('can iterate over a list of computed properties for a class', function () {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {}),\n\n fooDidChange: (0, _emberMetal.observer)('foo', function () {}),\n\n bar: (0, _emberMetal.computed)(function () {}),\n\n qux: (0, _emberMetal.alias)('foo')\n });\n\n var SubClass = MyClass.extend({\n baz: (0, _emberMetal.computed)(function () {})\n });\n\n SubClass.reopen({\n bat: (0, _emberMetal.computed)(function () {}).meta({ iAmBat: true })\n });\n\n var list = [];\n\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n\n deepEqual(list.sort(), ['bar', 'foo', 'qux'], 'watched and unwatched computed properties are iterated');\n\n list = [];\n\n SubClass.eachComputedProperty(function (name, meta) {\n list.push(name);\n\n if (name === 'bat') {\n deepEqual(meta, { iAmBat: true });\n } else {\n deepEqual(meta, {});\n }\n });\n\n deepEqual(list.sort(), ['bar', 'bat', 'baz', 'foo', 'qux'], 'all inherited properties are included');\n });\n\n QUnit.test('list of properties updates when an additional property is added (such cache busting)', function () {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(K),\n\n fooDidChange: (0, _emberMetal.observer)('foo', function () {}),\n\n bar: (0, _emberMetal.computed)(K)\n });\n\n var list = [];\n\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n\n deepEqual(list.sort(), ['bar', 'foo'].sort(), 'expected two computed properties');\n\n MyClass.reopen({\n baz: (0, _emberMetal.computed)(K)\n });\n\n MyClass.create(); // force apply mixins\n\n list = [];\n\n MyClass.eachComputedProperty(function (name) {\n list.push(name);\n });\n\n deepEqual(list.sort(), ['bar', 'foo', 'baz'].sort(), 'expected three computed properties');\n });\n\n QUnit.test('Calling _super in call outside the immediate function of a CP getter works', function () {\n function macro(callback) {\n return (0, _emberMetal.computed)(function () {\n return callback.call(this);\n });\n }\n\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'FOO';\n })\n });\n\n var SubClass = MyClass.extend({\n foo: macro(function () {\n return this._super();\n })\n });\n\n ok((0, _emberMetal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');\n });\n\n QUnit.test('Calling _super in apply outside the immediate function of a CP getter works', function () {\n function macro(callback) {\n return (0, _emberMetal.computed)(function () {\n return callback.apply(this);\n });\n }\n\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)(function () {\n return 'FOO';\n })\n });\n\n var SubClass = MyClass.extend({\n foo: macro(function () {\n return this._super();\n })\n });\n\n ok((0, _emberMetal.get)(SubClass.create(), 'foo'), 'FOO', 'super value is fetched');\n });\n\n QUnit.test('observing computed.reads prop and overriding it in create() works', function () {\n var Obj = _object.default.extend({\n name: _emberMetal.computed.reads('model.name'),\n nameDidChange: (0, _emberMetal.observer)('name', function () {})\n });\n\n var obj1 = Obj.create({ name: '1' });\n var obj2 = Obj.create({ name: '2' });\n\n equal(obj1.get('name'), '1');\n equal(obj2.get('name'), '2');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/computed_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/computed_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/create_test', ['ember-metal', 'ember/features', 'ember-runtime/system/object'], function (_emberMetal, _features, _object) {\n 'use strict';\n\n QUnit.module('EmberObject.create', {});\n\n QUnit.test('simple properties are set', function () {\n var o = _object.default.create({ ohai: 'there' });\n equal(o.get('ohai'), 'there');\n });\n\n QUnit.test('calls computed property setters', function () {\n var MyClass = _object.default.extend({\n foo: (0, _emberMetal.computed)({\n get: function () {\n return 'this is not the value you\\'re looking for';\n },\n set: function (key, value) {\n return value;\n }\n })\n });\n\n var o = MyClass.create({ foo: 'bar' });\n equal(o.get('foo'), 'bar');\n });\n\n if (_features.MANDATORY_SETTER) {\n QUnit.test('sets up mandatory setters for watched simple properties', function () {\n var MyClass = _object.default.extend({\n foo: null,\n bar: null,\n fooDidChange: (0, _emberMetal.observer)('foo', function () {})\n });\n\n var o = MyClass.create({ foo: 'bar', bar: 'baz' });\n equal(o.get('foo'), 'bar');\n\n var descriptor = Object.getOwnPropertyDescriptor(o, 'foo');\n ok(descriptor.set, 'Mandatory setter was setup');\n\n descriptor = Object.getOwnPropertyDescriptor(o, 'bar');\n ok(!descriptor.set, 'Mandatory setter was not setup');\n });\n }\n\n QUnit.test('allows bindings to be defined', function () {\n var obj = void 0;\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n obj = _object.default.create({\n foo: 'foo',\n barBinding: 'foo'\n });\n }, deprecationMessage);\n\n equal(obj.get('bar'), 'foo', 'The binding value is correct');\n });\n\n QUnit.test('calls setUnknownProperty if defined', function () {\n var setUnknownPropertyCalled = false;\n\n var MyClass = _object.default.extend({\n setUnknownProperty: function (key, value) {\n setUnknownPropertyCalled = true;\n }\n });\n\n MyClass.create({ foo: 'bar' });\n ok(setUnknownPropertyCalled, 'setUnknownProperty was called');\n });\n\n QUnit.test('throws if you try to define a computed property', function () {\n expectAssertion(function () {\n _object.default.create({\n foo: (0, _emberMetal.computed)(function () {})\n });\n }, 'Ember.Object.create no longer supports defining computed properties. Define computed properties using extend() or reopen() before calling create().');\n });\n\n QUnit.test('throws if you try to call _super in a method', function () {\n expectAssertion(function () {\n _object.default.create({\n foo: function () {\n this._super.apply(this, arguments);\n }\n });\n }, 'Ember.Object.create no longer supports defining methods that call _super.');\n });\n\n QUnit.test('throws if you try to \\'mixin\\' a definition', function () {\n var myMixin = _emberMetal.Mixin.create({\n adder: function (arg1, arg2) {\n return arg1 + arg2;\n }\n });\n\n expectAssertion(function () {\n _object.default.create(myMixin);\n }, 'Ember.Object.create no longer supports mixing in other definitions, use .extend & .create separately instead.');\n });\n\n QUnit.test('inherits properties from passed in EmberObject', function () {\n var baseObj = _object.default.create({ foo: 'bar' });\n var secondaryObj = _object.default.create(baseObj);\n\n equal(secondaryObj.foo, baseObj.foo, 'Em.O.create inherits properties from EmberObject parameter');\n });\n\n QUnit.test('throws if you try to pass anything a string as a parameter', function () {\n var expected = 'Ember.Object.create only accepts objects.';\n\n expectAssertion(function () {\n return _object.default.create('some-string');\n }, expected);\n });\n\n QUnit.test('EmberObject.create can take undefined as a parameter', function () {\n var o = _object.default.create(undefined);\n deepEqual(_object.default.create(), o);\n });\n\n QUnit.test('EmberObject.create can take null as a parameter', function () {\n var o = _object.default.create(null);\n deepEqual(_object.default.create(), o);\n });\n\n QUnit.test('EmberObject.create avoids allocating a binding map when not necessary', function () {\n var o = _object.default.create();\n var m = (0, _emberMetal.meta)(o);\n ok(!m.peekBindings(), 'A binding map is not allocated');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/create_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/create_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/destroy_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object', 'ember/features'], function (_emberMetal, _internalTestHelpers, _object, _features) {\n 'use strict';\n\n QUnit.module('ember-runtime/system/object/destroy_test');\n\n (0, _internalTestHelpers.testBoth)('should schedule objects to be destroyed at the end of the run loop', function (get, set) {\n var obj = _object.default.create();\n var meta = void 0;\n\n (0, _emberMetal.run)(function () {\n obj.destroy();\n meta = (0, _emberMetal.peekMeta)(obj);\n ok(meta, 'meta is not destroyed immediately');\n ok(get(obj, 'isDestroying'), 'object is marked as destroying immediately');\n ok(!get(obj, 'isDestroyed'), 'object is not destroyed immediately');\n });\n\n meta = (0, _emberMetal.peekMeta)(obj);\n ok(get(obj, 'isDestroyed'), 'object is destroyed after run loop finishes');\n });\n\n if (_features.MANDATORY_SETTER) {\n // MANDATORY_SETTER moves value to meta.values\n // a destroyed object removes meta but leaves the accessor\n // that looks it up\n QUnit.test('should raise an exception when modifying watched properties on a destroyed object', function () {\n var obj = _object.default.extend({\n fooDidChange: (0, _emberMetal.observer)('foo', function () {})\n }).create({\n foo: 'bar'\n });\n\n (0, _emberMetal.run)(function () {\n return obj.destroy();\n });\n\n throws(function () {\n return (0, _emberMetal.set)(obj, 'foo', 'baz');\n }, Error, 'raises an exception');\n });\n }\n\n QUnit.test('observers should not fire after an object has been destroyed', function () {\n var count = 0;\n var obj = _object.default.extend({\n fooDidChange: (0, _emberMetal.observer)('foo', function () {\n count++;\n })\n }).create();\n\n obj.set('foo', 'bar');\n\n equal(count, 1, 'observer was fired once');\n\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.beginPropertyChanges)();\n obj.set('foo', 'quux');\n obj.destroy();\n (0, _emberMetal.endPropertyChanges)();\n });\n\n equal(count, 1, 'observer was not called after object was destroyed');\n });\n\n QUnit.test('destroyed objects should not see each others changes during teardown but a long lived object should', function () {\n var shouldChange = 0;\n var shouldNotChange = 0;\n\n var objs = {};\n\n var A = _object.default.extend({\n objs: objs,\n isAlive: true,\n willDestroy: function () {\n this.set('isAlive', false);\n },\n\n bDidChange: (0, _emberMetal.observer)('objs.b.isAlive', function () {\n shouldNotChange++;\n }),\n cDidChange: (0, _emberMetal.observer)('objs.c.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n var B = _object.default.extend({\n objs: objs,\n isAlive: true,\n willDestroy: function () {\n this.set('isAlive', false);\n },\n\n aDidChange: (0, _emberMetal.observer)('objs.a.isAlive', function () {\n shouldNotChange++;\n }),\n cDidChange: (0, _emberMetal.observer)('objs.c.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n var C = _object.default.extend({\n objs: objs,\n isAlive: true,\n willDestroy: function () {\n this.set('isAlive', false);\n },\n\n aDidChange: (0, _emberMetal.observer)('objs.a.isAlive', function () {\n shouldNotChange++;\n }),\n bDidChange: (0, _emberMetal.observer)('objs.b.isAlive', function () {\n shouldNotChange++;\n })\n });\n\n var LongLivedObject = _object.default.extend({\n objs: objs,\n isAliveDidChange: (0, _emberMetal.observer)('objs.a.isAlive', function () {\n shouldChange++;\n })\n });\n\n objs.a = new A();\n\n objs.b = new B();\n\n objs.c = new C();\n\n new LongLivedObject();\n\n (0, _emberMetal.run)(function () {\n var keys = Object.keys(objs);\n for (var i = 0; i < keys.length; i++) {\n objs[keys[i]].destroy();\n }\n });\n\n equal(shouldNotChange, 0, 'destroyed graph objs should not see change in willDestroy');\n equal(shouldChange, 1, 'long lived should see change in willDestroy');\n });\n\n QUnit.test('bindings should be synced when are updated in the willDestroy hook', function () {\n var bar = _object.default.create({\n value: false,\n willDestroy: function () {\n this.set('value', true);\n }\n });\n\n var foo = _object.default.create({\n value: null,\n bar: bar\n });\n\n (0, _emberMetal.run)(function () {\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n (0, _emberMetal.bind)(foo, 'value', 'bar.value');\n }, deprecationMessage);\n });\n\n ok(bar.get('value') === false, 'the initial value has been bound');\n\n (0, _emberMetal.run)(function () {\n return bar.destroy();\n });\n\n ok(foo.get('value'), 'foo is synced when the binding is updated in the willDestroy hook');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/destroy_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/destroy_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/detectInstance_test', ['ember-runtime/system/object'], function (_object) {\n 'use strict';\n\n QUnit.module('system/object/detectInstance');\n\n QUnit.test('detectInstance detects instances correctly', function () {\n var A = _object.default.extend();\n var B = A.extend();\n var C = A.extend();\n\n var o = _object.default.create();\n var a = A.create();\n var b = B.create();\n var c = C.create();\n\n ok(_object.default.detectInstance(o), 'o is an instance of EmberObject');\n ok(_object.default.detectInstance(a), 'a is an instance of EmberObject');\n ok(_object.default.detectInstance(b), 'b is an instance of EmberObject');\n ok(_object.default.detectInstance(c), 'c is an instance of EmberObject');\n\n ok(!A.detectInstance(o), 'o is not an instance of A');\n ok(A.detectInstance(a), 'a is an instance of A');\n ok(A.detectInstance(b), 'b is an instance of A');\n ok(A.detectInstance(c), 'c is an instance of A');\n\n ok(!B.detectInstance(o), 'o is not an instance of B');\n ok(!B.detectInstance(a), 'a is not an instance of B');\n ok(B.detectInstance(b), 'b is an instance of B');\n ok(!B.detectInstance(c), 'c is not an instance of B');\n\n ok(!C.detectInstance(o), 'o is not an instance of C');\n ok(!C.detectInstance(a), 'a is not an instance of C');\n ok(!C.detectInstance(b), 'b is not an instance of C');\n ok(C.detectInstance(c), 'c is an instance of C');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/detectInstance_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/detectInstance_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/detect_test', ['ember-runtime/system/object'], function (_object) {\n 'use strict';\n\n QUnit.module('system/object/detect');\n\n QUnit.test('detect detects classes correctly', function () {\n var A = _object.default.extend();\n var B = A.extend();\n var C = A.extend();\n\n ok(_object.default.detect(_object.default), 'EmberObject is an EmberObject class');\n ok(_object.default.detect(A), 'A is an EmberObject class');\n ok(_object.default.detect(B), 'B is an EmberObject class');\n ok(_object.default.detect(C), 'C is an EmberObject class');\n\n ok(!A.detect(_object.default), 'EmberObject is not an A class');\n ok(A.detect(A), 'A is an A class');\n ok(A.detect(B), 'B is an A class');\n ok(A.detect(C), 'C is an A class');\n\n ok(!B.detect(_object.default), 'EmberObject is not a B class');\n ok(!B.detect(A), 'A is not a B class');\n ok(B.detect(B), 'B is a B class');\n ok(!B.detect(C), 'C is not a B class');\n\n ok(!C.detect(_object.default), 'EmberObject is not a C class');\n ok(!C.detect(A), 'A is not a C class');\n ok(!C.detect(B), 'B is not a C class');\n ok(C.detect(C), 'C is a C class');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/detect_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/detect_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/es-compatibility-test', ['ember-babel', 'ember-runtime/system/object', 'ember-metal'], function (_emberBabel, _object, _emberMetal) {\n 'use strict';\n\n QUnit.module('EmberObject ES Compatibility');\n\n QUnit.test('extending an Ember.Object', function (assert) {\n var calls = [];\n\n var MyObject = function (_EmberObject) {\n (0, _emberBabel.inherits)(MyObject, _EmberObject);\n\n function MyObject() {\n (0, _emberBabel.classCallCheck)(this, MyObject);\n\n calls.push('constructor');\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _EmberObject.apply(this, arguments));\n\n _this.postInitProperty = 'post-init-property';\n return _this;\n }\n\n MyObject.prototype.init = function init() {\n var _EmberObject$prototyp;\n\n calls.push('init');\n (_EmberObject$prototyp = _EmberObject.prototype.init).call.apply(_EmberObject$prototyp, [this].concat(Array.prototype.slice.call(arguments)));\n this.initProperty = 'init-property';\n };\n\n return MyObject;\n }(_object.default);\n\n var myObject = MyObject.create({ passedProperty: 'passed-property' });\n\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (create)');\n assert.equal(myObject.postInitProperty, 'post-init-property', 'constructor property available on instance (create)');\n assert.equal(myObject.initProperty, 'init-property', 'init property available on instance (create)');\n assert.equal(myObject.passedProperty, 'passed-property', 'passed property available on instance (create)');\n\n calls = [];\n myObject = new MyObject({ passedProperty: 'passed-property' });\n\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (new)');\n assert.equal(myObject.postInitProperty, 'post-init-property', 'constructor property available on instance (new)');\n assert.equal(myObject.initProperty, 'init-property', 'init property available on instance (new)');\n assert.equal(myObject.passedProperty, 'passed-property', 'passed property available on instance (new)');\n });\n\n QUnit.test('using super', function (assert) {\n var calls = [];\n\n var SuperSuperObject = _object.default.extend({\n method: function () {\n calls.push('super-super-method');\n }\n });\n\n var SuperObject = SuperSuperObject.extend({\n method: function () {\n this._super();\n calls.push('super-method');\n }\n });\n\n var MyObject = function (_SuperObject) {\n (0, _emberBabel.inherits)(MyObject, _SuperObject);\n\n function MyObject() {\n (0, _emberBabel.classCallCheck)(this, MyObject);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SuperObject.apply(this, arguments));\n }\n\n MyObject.prototype.method = function method() {\n _SuperObject.prototype.method.call(this);\n calls.push('method');\n };\n\n return MyObject;\n }(SuperObject);\n\n var myObject = new MyObject();\n myObject.method();\n\n assert.deepEqual(calls, ['super-super-method', 'super-method', 'method'], 'chain of prototype methods called with super');\n });\n\n QUnit.test('using mixins', function (assert) {\n var Mixin1 = _emberMetal.Mixin.create({\n property1: 'data-1'\n });\n\n var Mixin2 = _emberMetal.Mixin.create({\n property2: 'data-2'\n });\n\n var MyObject = function (_EmberObject$extend) {\n (0, _emberBabel.inherits)(MyObject, _EmberObject$extend);\n\n function MyObject() {\n (0, _emberBabel.classCallCheck)(this, MyObject);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EmberObject$extend.apply(this, arguments));\n }\n\n return MyObject;\n }(_object.default.extend(Mixin1, Mixin2));\n\n var myObject = new MyObject();\n assert.equal(myObject.property1, 'data-1', 'includes the first mixin');\n assert.equal(myObject.property2, 'data-2', 'includes the second mixin');\n });\n\n QUnit.test('using instanceof', function (assert) {\n var MyObject = function (_EmberObject2) {\n (0, _emberBabel.inherits)(MyObject, _EmberObject2);\n\n function MyObject() {\n (0, _emberBabel.classCallCheck)(this, MyObject);\n return (0, _emberBabel.possibleConstructorReturn)(this, _EmberObject2.apply(this, arguments));\n }\n\n return MyObject;\n }(_object.default);\n\n var myObject1 = MyObject.create();\n var myObject2 = new MyObject();\n\n assert.ok(myObject1 instanceof MyObject);\n assert.ok(myObject1 instanceof _object.default);\n\n assert.ok(myObject2 instanceof MyObject);\n assert.ok(myObject2 instanceof _object.default);\n });\n\n QUnit.test('extending an ES subclass of EmberObject', function (assert) {\n var calls = [];\n\n var SubEmberObject = function (_EmberObject3) {\n (0, _emberBabel.inherits)(SubEmberObject, _EmberObject3);\n\n function SubEmberObject() {\n (0, _emberBabel.classCallCheck)(this, SubEmberObject);\n\n calls.push('constructor');\n return (0, _emberBabel.possibleConstructorReturn)(this, _EmberObject3.apply(this, arguments));\n }\n\n SubEmberObject.prototype.init = function init() {\n var _EmberObject3$prototy;\n\n calls.push('init');\n (_EmberObject3$prototy = _EmberObject3.prototype.init).call.apply(_EmberObject3$prototy, [this].concat(Array.prototype.slice.call(arguments)));\n };\n\n return SubEmberObject;\n }(_object.default);\n\n var MyObject = function (_SubEmberObject) {\n (0, _emberBabel.inherits)(MyObject, _SubEmberObject);\n\n function MyObject() {\n (0, _emberBabel.classCallCheck)(this, MyObject);\n return (0, _emberBabel.possibleConstructorReturn)(this, _SubEmberObject.apply(this, arguments));\n }\n\n return MyObject;\n }(SubEmberObject);\n\n MyObject.create();\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (create)');\n\n calls = [];\n new MyObject();\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (new)');\n });\n\n // TODO: Needs to be fixed. Currently only `init` is called.\n QUnit.skip('calling extend on an ES subclass of EmberObject', function (assert) {\n var calls = [];\n\n var SubEmberObject = function (_EmberObject4) {\n (0, _emberBabel.inherits)(SubEmberObject, _EmberObject4);\n\n function SubEmberObject() {\n (0, _emberBabel.classCallCheck)(this, SubEmberObject);\n\n calls.push('constructor');\n return (0, _emberBabel.possibleConstructorReturn)(this, _EmberObject4.apply(this, arguments));\n }\n\n SubEmberObject.prototype.init = function init() {\n var _EmberObject4$prototy;\n\n calls.push('init');\n (_EmberObject4$prototy = _EmberObject4.prototype.init).call.apply(_EmberObject4$prototy, [this].concat(Array.prototype.slice.call(arguments)));\n };\n\n return SubEmberObject;\n }(_object.default);\n\n var MyObject = SubEmberObject.extend({});\n\n MyObject.create();\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (create)');\n\n calls = [];\n new MyObject();\n assert.deepEqual(calls, ['constructor', 'init'], 'constructor then init called (new)');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/es-compatibility-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/es-compatibility-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/events_test', ['ember-runtime/system/object', 'ember-runtime/mixins/evented'], function (_object, _evented) {\n 'use strict';\n\n QUnit.module('Object events');\n\n QUnit.test('a listener can be added to an object', function () {\n var count = 0;\n var F = function () {\n count++;\n };\n\n var obj = _object.default.extend(_evented.default).create();\n\n obj.on('event!', F);\n obj.trigger('event!');\n\n equal(count, 1, 'the event was triggered');\n\n obj.trigger('event!');\n\n equal(count, 2, 'the event was triggered');\n });\n\n QUnit.test('a listener can be added and removed automatically the first time it is triggered', function () {\n var count = 0;\n var F = function () {\n count++;\n };\n\n var obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', F);\n obj.trigger('event!');\n\n equal(count, 1, 'the event was triggered');\n\n obj.trigger('event!');\n\n equal(count, 1, 'the event was not triggered again');\n });\n\n QUnit.test('triggering an event can have arguments', function () {\n var self = void 0,\n args = void 0;\n\n var obj = _object.default.extend(_evented.default).create();\n\n obj.on('event!', function () {\n args = [].slice.call(arguments);\n self = this;\n });\n\n obj.trigger('event!', 'foo', 'bar');\n\n deepEqual(args, ['foo', 'bar']);\n equal(self, obj);\n });\n\n QUnit.test('a listener can be added and removed automatically and have arguments', function () {\n var self = void 0,\n args = void 0;\n var count = 0;\n\n var obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', function () {\n args = [].slice.call(arguments);\n self = this;\n count++;\n });\n\n obj.trigger('event!', 'foo', 'bar');\n\n deepEqual(args, ['foo', 'bar']);\n equal(self, obj);\n equal(count, 1, 'the event is triggered once');\n\n obj.trigger('event!', 'baz', 'bat');\n\n deepEqual(args, ['foo', 'bar']);\n equal(count, 1, 'the event was not triggered again');\n equal(self, obj);\n });\n\n QUnit.test('binding an event can specify a different target', function () {\n var self = void 0,\n args = void 0;\n\n var obj = _object.default.extend(_evented.default).create();\n var target = {};\n\n obj.on('event!', target, function () {\n args = [].slice.call(arguments);\n self = this;\n });\n\n obj.trigger('event!', 'foo', 'bar');\n\n deepEqual(args, ['foo', 'bar']);\n equal(self, target);\n });\n\n QUnit.test('a listener registered with one can take method as string and can be added with different target', function () {\n var count = 0;\n var target = {};\n target.fn = function () {\n count++;\n };\n\n var obj = _object.default.extend(_evented.default).create();\n\n obj.one('event!', target, 'fn');\n obj.trigger('event!');\n\n equal(count, 1, 'the event was triggered');\n\n obj.trigger('event!');\n\n equal(count, 1, 'the event was not triggered again');\n });\n\n QUnit.test('a listener registered with one can be removed with off', function () {\n var obj = _object.default.extend(_evented.default, {\n F: function () {}\n }).create();\n var F = function () {};\n\n obj.one('event!', F);\n obj.one('event!', obj, 'F');\n\n equal(obj.has('event!'), true, 'has events');\n\n obj.off('event!', F);\n obj.off('event!', obj, 'F');\n\n equal(obj.has('event!'), false, 'has no more events');\n });\n\n QUnit.test('adding and removing listeners should be chainable', function () {\n var obj = _object.default.extend(_evented.default).create();\n var F = function () {};\n\n var ret = obj.on('event!', F);\n equal(ret, obj, '#on returns self');\n\n ret = obj.off('event!', F);\n equal(ret, obj, '#off returns self');\n\n ret = obj.one('event!', F);\n equal(ret, obj, '#one returns self');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/events_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/events_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/extend_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n QUnit.module('EmberObject.extend');\n\n QUnit.test('Basic extend', function () {\n var SomeClass = _object.default.extend({ foo: 'BAR' });\n ok(SomeClass.isClass, 'A class has isClass of true');\n var obj = new SomeClass();\n equal(obj.foo, 'BAR');\n });\n\n QUnit.test('Sub-subclass', function () {\n var SomeClass = _object.default.extend({ foo: 'BAR' });\n var AnotherClass = SomeClass.extend({ bar: 'FOO' });\n var obj = new AnotherClass();\n equal(obj.foo, 'BAR');\n equal(obj.bar, 'FOO');\n });\n\n QUnit.test('Overriding a method several layers deep', function () {\n var SomeClass = _object.default.extend({\n fooCnt: 0,\n foo: function () {\n this.fooCnt++;\n },\n\n\n barCnt: 0,\n bar: function () {\n this.barCnt++;\n }\n });\n\n var AnotherClass = SomeClass.extend({\n barCnt: 0,\n bar: function () {\n this.barCnt++;\n this._super.apply(this, arguments);\n }\n });\n\n var FinalClass = AnotherClass.extend({\n fooCnt: 0,\n foo: function () {\n this.fooCnt++;\n this._super.apply(this, arguments);\n }\n });\n\n var obj = new FinalClass();\n obj.foo();\n obj.bar();\n equal(obj.fooCnt, 2, 'should invoke both');\n equal(obj.barCnt, 2, 'should invoke both');\n\n // Try overriding on create also\n obj = FinalClass.extend({\n foo: function () {\n this.fooCnt++;\n this._super.apply(this, arguments);\n }\n }).create();\n\n obj.foo();\n obj.bar();\n equal(obj.fooCnt, 3, 'should invoke final as well');\n equal(obj.barCnt, 2, 'should invoke both');\n });\n\n QUnit.test('With concatenatedProperties', function () {\n var SomeClass = _object.default.extend({ things: 'foo', concatenatedProperties: ['things'] });\n var AnotherClass = SomeClass.extend({ things: 'bar' });\n var YetAnotherClass = SomeClass.extend({ things: 'baz' });\n var some = new SomeClass();\n var another = new AnotherClass();\n var yetAnother = new YetAnotherClass();\n deepEqual(some.get('things'), ['foo'], 'base class should have just its value');\n deepEqual(another.get('things'), ['foo', 'bar'], 'subclass should have base class\\' and its own');\n deepEqual(yetAnother.get('things'), ['foo', 'baz'], 'subclass should have base class\\' and its own');\n });\n\n QUnit.test('With concatenatedProperties class properties', function () {\n var SomeClass = _object.default.extend();\n SomeClass.reopenClass({\n concatenatedProperties: ['things'],\n things: 'foo'\n });\n var AnotherClass = SomeClass.extend();\n AnotherClass.reopenClass({ things: 'bar' });\n var YetAnotherClass = SomeClass.extend();\n YetAnotherClass.reopenClass({ things: 'baz' });\n var some = new SomeClass();\n var another = new AnotherClass();\n var yetAnother = new YetAnotherClass();\n deepEqual((0, _emberMetal.get)(some.constructor, 'things'), ['foo'], 'base class should have just its value');\n deepEqual((0, _emberMetal.get)(another.constructor, 'things'), ['foo', 'bar'], 'subclass should have base class\\' and its own');\n deepEqual((0, _emberMetal.get)(yetAnother.constructor, 'things'), ['foo', 'baz'], 'subclass should have base class\\' and its own');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/extend_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/extend_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/observer_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object'], function (_emberMetal, _internalTestHelpers, _object) {\n 'use strict';\n\n QUnit.module('EmberObject observer');\n\n (0, _internalTestHelpers.testBoth)('observer on class', function (get, set) {\n var MyClass = _object.default.extend({\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = new MyClass();\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observer on subclass', function (get, set) {\n var MyClass = _object.default.extend({\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var Subclass = MyClass.extend({\n foo: (0, _emberMetal.observer)('baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = new Subclass();\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 0, 'should not invoke observer after change');\n\n set(obj, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observer on instance', function (get, set) {\n var obj = _object.default.extend({\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n }).create({\n count: 0\n });\n\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observer on instance overriding class', function (get, set) {\n var MyClass = _object.default.extend({\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj = MyClass.extend({\n foo: (0, _emberMetal.observer)('baz', function () {\n // <-- change property we observe\n set(this, 'count', get(this, 'count') + 1);\n })\n }).create();\n\n equal(get(obj, 'count'), 0, 'should not invoke observer immediately');\n\n set(obj, 'bar', 'BAZ');\n equal(get(obj, 'count'), 0, 'should not invoke observer after change');\n\n set(obj, 'baz', 'BAZ');\n equal(get(obj, 'count'), 1, 'should invoke observer after change');\n });\n\n (0, _internalTestHelpers.testBoth)('observer should not fire after being destroyed', function (get, set) {\n var obj = _object.default.extend({\n count: 0,\n foo: (0, _emberMetal.observer)('bar', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n }).create();\n\n equal(get(obj, 'count'), 0, 'precond - should not invoke observer immediately');\n\n (0, _emberMetal.run)(function () {\n return obj.destroy();\n });\n\n expectAssertion(function () {\n set(obj, 'bar', 'BAZ');\n }, 'calling set on destroyed object: ' + obj + '.bar = BAZ');\n\n equal(get(obj, 'count'), 0, 'should not invoke observer after change');\n });\n // ..........................................................\n // COMPLEX PROPERTIES\n //\n\n\n (0, _internalTestHelpers.testBoth)('chain observer on class', function (get, set) {\n var MyClass = _object.default.extend({\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj1 = MyClass.create({\n bar: { baz: 'biff' }\n });\n\n var obj2 = MyClass.create({\n bar: { baz: 'biff2' }\n });\n\n equal(get(obj1, 'count'), 0, 'should not invoke yet');\n equal(get(obj2, 'count'), 0, 'should not invoke yet');\n\n set(get(obj1, 'bar'), 'baz', 'BIFF1');\n equal(get(obj1, 'count'), 1, 'should invoke observer on obj1');\n equal(get(obj2, 'count'), 0, 'should not invoke yet');\n\n set(get(obj2, 'bar'), 'baz', 'BIFF2');\n equal(get(obj1, 'count'), 1, 'should not invoke again');\n equal(get(obj2, 'count'), 1, 'should invoke observer on obj2');\n });\n\n (0, _internalTestHelpers.testBoth)('chain observer on class', function (get, set) {\n var MyClass = _object.default.extend({\n count: 0,\n\n foo: (0, _emberMetal.observer)('bar.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n });\n\n var obj1 = MyClass.extend().create({\n bar: { baz: 'biff' }\n });\n\n var obj2 = MyClass.extend({\n foo: (0, _emberMetal.observer)('bar2.baz', function () {\n set(this, 'count', get(this, 'count') + 1);\n })\n }).create({\n bar: { baz: 'biff2' },\n bar2: { baz: 'biff3' }\n });\n\n equal(get(obj1, 'count'), 0, 'should not invoke yet');\n equal(get(obj2, 'count'), 0, 'should not invoke yet');\n\n set(get(obj1, 'bar'), 'baz', 'BIFF1');\n equal(get(obj1, 'count'), 1, 'should invoke observer on obj1');\n equal(get(obj2, 'count'), 0, 'should not invoke yet');\n\n set(get(obj2, 'bar'), 'baz', 'BIFF2');\n equal(get(obj1, 'count'), 1, 'should not invoke again');\n equal(get(obj2, 'count'), 0, 'should not invoke yet');\n\n set(get(obj2, 'bar2'), 'baz', 'BIFF3');\n equal(get(obj1, 'count'), 1, 'should not invoke again');\n equal(get(obj2, 'count'), 1, 'should invoke observer on obj2');\n });\n\n (0, _internalTestHelpers.testBoth)('chain observer on class that has a reference to an uninitialized object will finish chains that reference it', function (get, set) {\n var changed = false;\n\n var ChildClass = _object.default.extend({\n parent: null,\n parentOneTwoDidChange: (0, _emberMetal.observer)('parent.one.two', function () {\n changed = true;\n })\n });\n\n var ParentClass = _object.default.extend({\n one: {\n two: 'old'\n },\n init: function () {\n this.child = ChildClass.create({\n parent: this\n });\n }\n });\n\n var parent = new ParentClass();\n\n equal(changed, false, 'precond');\n\n parent.set('one.two', 'new');\n\n equal(changed, true, 'child should have been notified of change to path');\n\n parent.set('one', { two: 'newer' });\n\n equal(changed, true, 'child should have been notified of change to path');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/observer_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/observer_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/reopenClass_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n QUnit.module('system/object/reopenClass');\n\n QUnit.test('adds new properties to subclass', function () {\n var Subclass = _object.default.extend();\n Subclass.reopenClass({\n foo: function () {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n\n equal(Subclass.foo(), 'FOO', 'Adds method');\n equal((0, _emberMetal.get)(Subclass, 'bar'), 'BAR', 'Adds property');\n });\n\n QUnit.test('class properties inherited by subclasses', function () {\n var Subclass = _object.default.extend();\n Subclass.reopenClass({\n foo: function () {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n\n var SubSub = Subclass.extend();\n\n equal(SubSub.foo(), 'FOO', 'Adds method');\n equal((0, _emberMetal.get)(SubSub, 'bar'), 'BAR', 'Adds property');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/reopenClass_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/reopenClass_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/reopen_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n QUnit.module('system/core_object/reopen');\n\n QUnit.test('adds new properties to subclass instance', function () {\n var Subclass = _object.default.extend();\n Subclass.reopen({\n foo: function () {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n\n equal(new Subclass().foo(), 'FOO', 'Adds method');\n equal((0, _emberMetal.get)(new Subclass(), 'bar'), 'BAR', 'Adds property');\n });\n\n QUnit.test('reopened properties inherited by subclasses', function () {\n var Subclass = _object.default.extend();\n var SubSub = Subclass.extend();\n\n Subclass.reopen({\n foo: function () {\n return 'FOO';\n },\n\n bar: 'BAR'\n });\n\n equal(new SubSub().foo(), 'FOO', 'Adds method');\n equal((0, _emberMetal.get)(new SubSub(), 'bar'), 'BAR', 'Adds property');\n });\n\n QUnit.test('allows reopening already instantiated classes', function () {\n var Subclass = _object.default.extend();\n\n Subclass.create();\n\n Subclass.reopen({\n trololol: true\n });\n\n equal(Subclass.create().get('trololol'), true, 'reopen works');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/reopen_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/reopen_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/strict-mode-test', ['ember-runtime/system/object'], function (_object) {\n 'use strict';\n\n QUnit.module('strict mode tests');\n\n QUnit.test('__superWrapper does not throw errors in strict mode', function () {\n var Foo = _object.default.extend({\n blah: function () {\n return 'foo';\n }\n });\n\n var Bar = Foo.extend({\n blah: function () {\n return 'bar';\n },\n callBlah: function () {\n var blah = this.blah;\n\n return blah();\n }\n });\n\n var bar = Bar.create();\n\n equal(bar.callBlah(), 'bar', 'can call local function without call/apply');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/strict-mode-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/strict-mode-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/subclasses_test', ['ember-metal', 'ember-runtime/system/object'], function (_emberMetal, _object) {\n 'use strict';\n\n QUnit.module('system/object/subclasses');\n\n QUnit.test('chains should copy forward to subclasses when prototype created', function () {\n var ObjectWithChains = void 0,\n objWithChains = void 0,\n SubWithChains = void 0,\n SubSub = void 0,\n subSub = void 0;\n (0, _emberMetal.run)(function () {\n ObjectWithChains = _object.default.extend({\n obj: {\n a: 'a',\n hi: 'hi'\n },\n aBinding: 'obj.a' // add chain\n });\n\n var deprecationMessage = /`Ember.Binding` is deprecated/;\n\n expectDeprecation(function () {\n // realize prototype\n objWithChains = ObjectWithChains.create();\n }, deprecationMessage);\n\n // should not copy chains from parent yet\n SubWithChains = ObjectWithChains.extend({\n hiBinding: 'obj.hi', // add chain\n hello: (0, _emberMetal.computed)(function () {\n return this.get('obj.hi') + ' world';\n }).property('hi'), // observe chain\n greetingBinding: 'hello'\n });\n\n SubSub = SubWithChains.extend();\n\n expectDeprecation(function () {\n // should realize prototypes and copy forward chains\n subSub = SubSub.create();\n }, deprecationMessage);\n });\n equal(subSub.get('greeting'), 'hi world');\n (0, _emberMetal.run)(function () {\n return objWithChains.set('obj.hi', 'hello');\n });\n equal(subSub.get('greeting'), 'hello world');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/subclasses_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/subclasses_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object/toString_test', ['ember-utils', 'ember-environment', 'ember-runtime/system/object', 'ember-runtime/system/namespace'], function (_emberUtils, _emberEnvironment, _object, _namespace) {\n 'use strict';\n\n var originalLookup = _emberEnvironment.context.lookup;\n var lookup = void 0;\n\n QUnit.module('system/object/toString', {\n setup: function () {\n _emberEnvironment.context.lookup = lookup = {};\n },\n teardown: function () {\n _emberEnvironment.context.lookup = originalLookup;\n }\n });\n\n QUnit.test('NAME_KEY slot is present on Class', function () {\n ok(_object.default.extend().hasOwnProperty(_emberUtils.NAME_KEY), 'Ember Class\\'s have a NAME_KEY slot');\n });\n\n QUnit.test('toString() returns the same value if called twice', function () {\n var Foo = _namespace.default.create();\n Foo.toString = function () {\n return 'Foo';\n };\n\n Foo.Bar = _object.default.extend();\n\n equal(Foo.Bar.toString(), 'Foo.Bar');\n equal(Foo.Bar.toString(), 'Foo.Bar');\n\n var obj = Foo.Bar.create();\n\n equal(obj.toString(), '');\n equal(obj.toString(), '');\n\n equal(Foo.Bar.toString(), 'Foo.Bar');\n });\n\n QUnit.test('toString on a class returns a useful value when nested in a namespace', function () {\n var obj = void 0;\n\n var Foo = _namespace.default.create();\n Foo.toString = function () {\n return 'Foo';\n };\n\n Foo.Bar = _object.default.extend();\n equal(Foo.Bar.toString(), 'Foo.Bar');\n\n obj = Foo.Bar.create();\n equal(obj.toString(), '');\n\n Foo.Baz = Foo.Bar.extend();\n equal(Foo.Baz.toString(), 'Foo.Baz');\n\n obj = Foo.Baz.create();\n equal(obj.toString(), '');\n\n obj = Foo.Bar.create();\n equal(obj.toString(), '');\n });\n\n QUnit.test('toString on a namespace finds the namespace in lookup', function () {\n var Foo = lookup.Foo = _namespace.default.create();\n\n equal(Foo.toString(), 'Foo');\n });\n\n QUnit.test('toString on a namespace finds the namespace in lookup', function () {\n var Foo = lookup.Foo = _namespace.default.create();\n var obj = void 0;\n\n Foo.Bar = _object.default.extend();\n\n equal(Foo.Bar.toString(), 'Foo.Bar');\n\n obj = Foo.Bar.create();\n equal(obj.toString(), '');\n });\n\n QUnit.test('toString on a namespace falls back to modulePrefix, if defined', function () {\n var Foo = _namespace.default.create({ modulePrefix: 'foo' });\n\n equal(Foo.toString(), 'foo');\n });\n\n QUnit.test('toString includes toStringExtension if defined', function () {\n var Foo = _object.default.extend({\n toStringExtension: function () {\n return 'fooey';\n }\n });\n var foo = Foo.create();\n var Bar = _object.default.extend({});\n var bar = Bar.create();\n\n // simulate these classes being defined on a Namespace\n Foo[_emberUtils.NAME_KEY] = 'Foo';\n Bar[_emberUtils.NAME_KEY] = 'Bar';\n\n equal(bar.toString(), '', 'does not include toStringExtension part');\n equal(foo.toString(), '', 'Includes toStringExtension result');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object/toString_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object/toString_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/object_proxy_test', ['ember-metal', 'internal-test-helpers', 'ember-runtime/system/object_proxy'], function (_emberMetal, _internalTestHelpers, _object_proxy) {\n 'use strict';\n\n QUnit.module('ObjectProxy');\n\n (0, _internalTestHelpers.testBoth)('should not proxy properties passed to create', function (get, set) {\n var Proxy = _object_proxy.default.extend({\n cp: (0, _emberMetal.computed)({\n get: function (key) {\n return this._cp;\n },\n set: function (key, value) {\n this._cp = value;\n return this._cp;\n }\n })\n });\n var proxy = Proxy.create({\n prop: 'Foo',\n cp: 'Bar'\n });\n\n equal(get(proxy, 'prop'), 'Foo', 'should not have tried to proxy set');\n equal(proxy._cp, 'Bar', 'should use CP setter');\n });\n\n (0, _internalTestHelpers.testBoth)('should proxy properties to content', function (get, set) {\n var content = {\n firstName: 'Tom',\n lastName: 'Dale',\n unknownProperty: function (key) {\n return key + ' unknown';\n }\n };\n var proxy = _object_proxy.default.create();\n\n equal(get(proxy, 'firstName'), undefined, 'get on proxy without content should return undefined');\n expectAssertion(function () {\n set(proxy, 'firstName', 'Foo');\n }, /Cannot delegate set\\('firstName', Foo\\) to the 'content'/i);\n\n set(proxy, 'content', content);\n\n equal(get(proxy, 'firstName'), 'Tom', 'get on proxy with content should forward to content');\n equal(get(proxy, 'lastName'), 'Dale', 'get on proxy with content should forward to content');\n equal(get(proxy, 'foo'), 'foo unknown', 'get on proxy with content should forward to content');\n\n set(proxy, 'lastName', 'Huda');\n\n equal(get(content, 'lastName'), 'Huda', 'content should have new value from set on proxy');\n equal(get(proxy, 'lastName'), 'Huda', 'proxy should have new value from set on proxy');\n\n set(proxy, 'content', { firstName: 'Yehuda', lastName: 'Katz' });\n\n equal(get(proxy, 'firstName'), 'Yehuda', 'proxy should reflect updated content');\n equal(get(proxy, 'lastName'), 'Katz', 'proxy should reflect updated content');\n });\n\n (0, _internalTestHelpers.testBoth)('should work with watched properties', function (get, set) {\n var content1 = { firstName: 'Tom', lastName: 'Dale' };\n var content2 = { firstName: 'Yehuda', lastName: 'Katz' };\n var count = 0;\n var last = void 0;\n\n var Proxy = _object_proxy.default.extend({\n fullName: (0, _emberMetal.computed)(function () {\n var firstName = this.get('firstName');\n var lastName = this.get('lastName');\n\n if (firstName && lastName) {\n return firstName + ' ' + lastName;\n }\n return firstName || lastName;\n }).property('firstName', 'lastName')\n });\n\n var proxy = Proxy.create();\n\n (0, _emberMetal.addObserver)(proxy, 'fullName', function () {\n last = get(proxy, 'fullName');\n count++;\n });\n\n // proxy without content returns undefined\n equal(get(proxy, 'fullName'), undefined);\n\n // setting content causes all watched properties to change\n set(proxy, 'content', content1);\n // both dependent keys changed\n equal(count, 2);\n equal(last, 'Tom Dale');\n\n // setting property in content causes proxy property to change\n set(content1, 'lastName', 'Huda');\n equal(count, 3);\n equal(last, 'Tom Huda');\n\n // replacing content causes all watched properties to change\n set(proxy, 'content', content2);\n // both dependent keys changed\n equal(count, 5);\n equal(last, 'Yehuda Katz');\n // content1 is no longer watched\n ok(!(0, _emberMetal.isWatching)(content1, 'firstName'), 'not watching firstName');\n ok(!(0, _emberMetal.isWatching)(content1, 'lastName'), 'not watching lastName');\n\n // setting property in new content\n set(content2, 'firstName', 'Tomhuda');\n equal(last, 'Tomhuda Katz');\n equal(count, 6);\n\n // setting property in proxy syncs with new content\n set(proxy, 'lastName', 'Katzdale');\n equal(count, 7);\n equal(last, 'Tomhuda Katzdale');\n equal(get(content2, 'firstName'), 'Tomhuda');\n equal(get(content2, 'lastName'), 'Katzdale');\n });\n\n QUnit.test('set and get should work with paths', function () {\n var content = { foo: { bar: 'baz' } };\n var proxy = _object_proxy.default.create({ content: content });\n var count = 0;\n\n proxy.set('foo.bar', 'hello');\n equal(proxy.get('foo.bar'), 'hello');\n equal(proxy.get('content.foo.bar'), 'hello');\n\n proxy.addObserver('foo.bar', function () {\n count++;\n });\n\n proxy.set('foo.bar', 'bye');\n\n equal(count, 1);\n equal(proxy.get('foo.bar'), 'bye');\n equal(proxy.get('content.foo.bar'), 'bye');\n });\n\n (0, _internalTestHelpers.testBoth)('should transition between watched and unwatched strategies', function (get, set) {\n var content = { foo: 'foo' };\n var proxy = _object_proxy.default.create({ content: content });\n var count = 0;\n\n function observer() {\n count++;\n }\n\n equal(get(proxy, 'foo'), 'foo');\n\n set(content, 'foo', 'bar');\n\n equal(get(proxy, 'foo'), 'bar');\n\n set(proxy, 'foo', 'foo');\n\n equal(get(content, 'foo'), 'foo');\n equal(get(proxy, 'foo'), 'foo');\n\n (0, _emberMetal.addObserver)(proxy, 'foo', observer);\n\n equal(count, 0);\n equal(get(proxy, 'foo'), 'foo');\n\n set(content, 'foo', 'bar');\n\n equal(count, 1);\n equal(get(proxy, 'foo'), 'bar');\n\n set(proxy, 'foo', 'foo');\n\n equal(count, 2);\n equal(get(content, 'foo'), 'foo');\n equal(get(proxy, 'foo'), 'foo');\n\n (0, _emberMetal.removeObserver)(proxy, 'foo', observer);\n\n set(content, 'foo', 'bar');\n\n equal(get(proxy, 'foo'), 'bar');\n\n set(proxy, 'foo', 'foo');\n\n equal(get(content, 'foo'), 'foo');\n equal(get(proxy, 'foo'), 'foo');\n });\n\n (0, _internalTestHelpers.testBoth)('setting `undefined` to a proxied content property should override its existing value', function (get, set) {\n var proxyObject = _object_proxy.default.create({\n content: {\n prop: 'emberjs'\n }\n });\n set(proxyObject, 'prop', undefined);\n equal(get(proxyObject, 'prop'), undefined, 'sets the `undefined` value to the proxied content');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/object_proxy_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/object_proxy_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/camelize_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.camelize');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.camelize is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.camelize, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.camelize)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.camelize(), expected);\n }\n });\n }\n\n test('my favorite items', 'myFavoriteItems', 'camelize normal string');\n test('I Love Ramen', 'iLoveRamen', 'camelize capitalized string');\n test('css-class-name', 'cssClassName', 'camelize dasherized string');\n test('action_name', 'actionName', 'camelize underscored string');\n test('action.name', 'actionName', 'camelize dot notation string');\n test('innerHTML', 'innerHTML', 'does nothing with camelcased string');\n test('PrivateDocs/OwnerInvoice', 'privateDocs/ownerInvoice', 'camelize namespaced classified string');\n test('private_docs/owner_invoice', 'privateDocs/ownerInvoice', 'camelize namespaced underscored string');\n test('private-docs/owner-invoice', 'privateDocs/ownerInvoice', 'camelize namespaced dasherized string');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/camelize_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/camelize_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/capitalize_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.capitalize');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.capitalize is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.capitalize, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.capitalize)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.capitalize(), expected);\n }\n });\n }\n\n test('my favorite items', 'My favorite items', 'capitalize normal string');\n test('css-class-name', 'Css-class-name', 'capitalize dasherized string');\n test('action_name', 'Action_name', 'capitalize underscored string');\n test('innerHTML', 'InnerHTML', 'capitalize camelcased string');\n test('Capitalized string', 'Capitalized string', 'does nothing with capitalized string');\n test('privateDocs/ownerInvoice', 'PrivateDocs/OwnerInvoice', 'capitalize namespaced camelized string');\n test('private_docs/owner_invoice', 'Private_docs/Owner_invoice', 'capitalize namespaced underscored string');\n test('private-docs/owner-invoice', 'Private-docs/Owner-invoice', 'capitalize namespaced dasherized string');\n test('šabc', 'Šabc', 'capitalize string with accent character');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/capitalize_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/capitalize_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/classify_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.classify');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.classify is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.classify, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.classify)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.classify(), expected);\n }\n });\n }\n\n test('my favorite items', 'MyFavoriteItems', 'classify normal string');\n test('css-class-name', 'CssClassName', 'classify dasherized string');\n test('action_name', 'ActionName', 'classify underscored string');\n test('privateDocs/ownerInvoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced camelized string');\n test('private_docs/owner_invoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced underscored string');\n test('private-docs/owner-invoice', 'PrivateDocs/OwnerInvoice', 'classify namespaced dasherized string');\n test('-view-registry', '_ViewRegistry', 'classify prefixed dasherized string');\n test('components/-text-field', 'Components/_TextField', 'classify namespaced prefixed dasherized string');\n test('_Foo_Bar', '_FooBar', 'classify underscore-prefixed underscored string');\n test('_Foo-Bar', '_FooBar', 'classify underscore-prefixed dasherized string');\n test('_foo/_bar', '_Foo/_Bar', 'classify underscore-prefixed-namespaced underscore-prefixed string');\n test('-foo/_bar', '_Foo/_Bar', 'classify dash-prefixed-namespaced underscore-prefixed string');\n test('-foo/-bar', '_Foo/_Bar', 'classify dash-prefixed-namespaced dash-prefixed string');\n test('InnerHTML', 'InnerHTML', 'does nothing with classified string');\n test('_FooBar', '_FooBar', 'does nothing with classified prefixed string');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/classify_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/classify_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/dasherize_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.dasherize');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.dasherize is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.dasherize, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.dasherize)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.dasherize(), expected);\n }\n });\n }\n\n test('my favorite items', 'my-favorite-items', 'dasherize normal string');\n test('css-class-name', 'css-class-name', 'does nothing with dasherized string');\n test('action_name', 'action-name', 'dasherize underscored string');\n test('innerHTML', 'inner-html', 'dasherize camelcased string');\n test('toString', 'to-string', 'dasherize string that is the property name of Object.prototype');\n test('PrivateDocs/OwnerInvoice', 'private-docs/owner-invoice', 'dasherize namespaced classified string');\n test('privateDocs/ownerInvoice', 'private-docs/owner-invoice', 'dasherize namespaced camelized string');\n test('private_docs/owner_invoice', 'private-docs/owner-invoice', 'dasherize namespaced underscored string');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/dasherize_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/dasherize_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/decamelize_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.decamelize');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.decamelize is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.decamelize, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.decamelize)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.decamelize(), expected);\n }\n });\n }\n\n test('my favorite items', 'my favorite items', 'does nothing with normal string');\n test('css-class-name', 'css-class-name', 'does nothing with dasherized string');\n test('action_name', 'action_name', 'does nothing with underscored string');\n test('innerHTML', 'inner_html', 'converts a camelized string into all lower case separated by underscores.');\n test('size160Url', 'size160_url', 'decamelizes strings with numbers');\n test('PrivateDocs/OwnerInvoice', 'private_docs/owner_invoice', 'decamelize namespaced classified string');\n test('privateDocs/ownerInvoice', 'private_docs/owner_invoice', 'decamelize namespaced camelized string');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/decamelize_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/decamelize_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/fmt_string_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.fmt');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.fmt is not modified without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.fmt, 'String.prototype helper disabled');\n });\n }\n\n function test(given, args, expected, description) {\n QUnit.test(description, function () {\n expectDeprecation('Ember.String.fmt is deprecated, use ES6 template strings instead.');\n equal((0, _string.fmt)(given, args), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n equal(given.fmt.apply(given, args), expected);\n }\n });\n }\n\n test('Hello %@ %@', ['John', 'Doe'], 'Hello John Doe', 'fmt(\\'Hello %@ %@\\', [\\'John\\', \\'Doe\\']) => \\'Hello John Doe\\'');\n test('Hello %@2 %@1', ['John', 'Doe'], 'Hello Doe John', 'fmt(\\'Hello %@2 %@1\\', [\\'John\\', \\'Doe\\']) => \\'Hello Doe John\\'');\n test('%@08 %@07 %@06 %@05 %@04 %@03 %@02 %@01', ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight'], 'Eight Seven Six Five Four Three Two One', 'fmt(\\'%@08 %@07 %@06 %@05 %@04 %@03 %@02 %@01\\', [\\'One\\', \\'Two\\', \\'Three\\', \\'Four\\', \\'Five\\', \\'Six\\', \\'Seven\\', \\'Eight\\']) => \\'Eight Seven Six Five Four Three Two One\\'');\n test('data: %@', [{ id: 3 }], 'data: {id: 3}', 'fmt(\\'data: %@\\', [{ id: 3 }]) => \\'data: {id: 3}\\'');\n\n QUnit.test('works with argument form', function () {\n expectDeprecation('Ember.String.fmt is deprecated, use ES6 template strings instead.');\n equal((0, _string.fmt)('%@', 'John'), 'John');\n equal((0, _string.fmt)('%@ %@', ['John'], 'Doe'), '[John] Doe');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/fmt_string_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/fmt_string_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/loc_test', ['ember-metal', 'ember-environment', 'ember-runtime/system/string'], function (_emberMetal, _emberEnvironment, _string) {\n 'use strict';\n\n // ES6TODO Ember.STRINGS\n var oldString = void 0;\n\n QUnit.module('EmberStringUtils.loc', {\n setup: function () {\n oldString = _emberMetal.default.STRINGS;\n _emberMetal.default.STRINGS = {\n '_Hello World': 'Bonjour le monde',\n '_Hello %@': 'Bonjour %@',\n '_Hello %@ %@': 'Bonjour %@ %@',\n '_Hello %@# %@#': 'Bonjour %@2 %@1'\n };\n },\n teardown: function () {\n _emberMetal.default.STRINGS = oldString;\n }\n });\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.loc is not available without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.loc, 'String.prototype helper disabled');\n });\n }\n\n function test(given, args, expected, description) {\n QUnit.test(description, function () {\n equal((0, _string.loc)(given, args), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n equal(given.loc.apply(given, args), expected);\n }\n });\n }\n\n test('_Hello World', [], 'Bonjour le monde', 'loc(\\'_Hello World\\') => \\'Bonjour le monde\\'');\n test('_Hello %@ %@', ['John', 'Doe'], 'Bonjour John Doe', 'loc(\\'_Hello %@ %@\\', [\\'John\\', \\'Doe\\']) => \\'Bonjour John Doe\\'');\n test('_Hello %@# %@#', ['John', 'Doe'], 'Bonjour Doe John', 'loc(\\'_Hello %@# %@#\\', [\\'John\\', \\'Doe\\']) => \\'Bonjour Doe John\\'');\n test('_Not In Strings', [], '_Not In Strings', 'loc(\\'_Not In Strings\\') => \\'_Not In Strings\\'');\n\n QUnit.test('works with argument form', function () {\n equal((0, _string.loc)('_Hello %@', 'John'), 'Bonjour John');\n equal((0, _string.loc)('_Hello %@ %@', ['John'], 'Doe'), 'Bonjour [John] Doe');\n });\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/loc_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/loc_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/underscore_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.underscore');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.underscore is not available without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.underscore, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.underscore)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.underscore(), expected);\n }\n });\n }\n\n test('my favorite items', 'my_favorite_items', 'with normal string');\n test('css-class-name', 'css_class_name', 'with dasherized string');\n test('action_name', 'action_name', 'does nothing with underscored string');\n test('innerHTML', 'inner_html', 'with camelcased string');\n test('PrivateDocs/OwnerInvoice', 'private_docs/owner_invoice', 'underscore namespaced classified string');\n test('privateDocs/ownerInvoice', 'private_docs/owner_invoice', 'underscore namespaced camelized string');\n test('private-docs/owner-invoice', 'private_docs/owner_invoice', 'underscore namespaced dasherized string');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/underscore_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/underscore_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-runtime/tests/system/string/w_test', ['ember-environment', 'ember-runtime/system/string'], function (_emberEnvironment, _string) {\n 'use strict';\n\n QUnit.module('EmberStringUtils.w');\n\n if (!_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n QUnit.test('String.prototype.w is not available without EXTEND_PROTOTYPES', function () {\n ok('undefined' === typeof String.prototype.w, 'String.prototype helper disabled');\n });\n }\n\n function test(given, expected, description) {\n QUnit.test(description, function () {\n deepEqual((0, _string.w)(given), expected);\n if (_emberEnvironment.ENV.EXTEND_PROTOTYPES.String) {\n deepEqual(given.w(), expected);\n }\n });\n }\n\n test('one two three', ['one', 'two', 'three'], 'w(\\'one two three\\') => [\\'one\\',\\'two\\',\\'three\\']');\n test('one two three', ['one', 'two', 'three'], 'w(\\'one two three\\') with extra spaces between words => [\\'one\\',\\'two\\',\\'three\\']');\n test('one\\ttwo three', ['one', 'two', 'three'], 'w(\\'one two three\\') with tabs');\n});","QUnit.module('ESLint | ember-runtime/tests/system/string/w_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-runtime/tests/system/string/w_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/compat.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/compat.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/compat.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/compat.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/assert-input-helper-without-block.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/assert-input-helper-without-block.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/assert-reserved-named-arguments.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/assert-reserved-named-arguments.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/deprecate-render-model.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/deprecate-render-model.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/deprecate-render.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/deprecate-render.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/extract-pragma-tag.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/extract-pragma-tag.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-action-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-action-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-angle-bracket-components.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-angle-bracket-components.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-attrs-into-args.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-attrs-into-args.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-dot-component-invocation.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-dot-component-invocation.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-each-in-into-each.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-each-in-into-each.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-has-block-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-has-block-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-inline-link-to.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-inline-link-to.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-input-on-to-onEvent.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-input-on-to-onEvent.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-input-type-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-input-type-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-old-binding-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-old-binding-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-old-class-binding-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-old-class-binding-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-quoted-bindings-into-just-bindings.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/plugins/transform-top-level-components.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/plugins/transform-top-level-components.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/system/bootstrap.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/system/bootstrap.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/system/calculate-location-display.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/system/calculate-location-display.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/system/compile-options.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/system/compile-options.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/system/compile.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/system/compile.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/lib/system/precompile.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/lib/system/precompile.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/assert-input-helper-without-block.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/assert-input-helper-without-block.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/assert-reserved-named-arguments.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/assert-reserved-named-arguments.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/deprecate-render-model.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/deprecate-render-model.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/deprecate-render.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/deprecate-render.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/extract-pragma-tag.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/extract-pragma-tag.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-action-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-action-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-angle-bracket-components.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-angle-bracket-components.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-attrs-into-args.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-attrs-into-args.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-dot-component-invocation.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-dot-component-invocation.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-each-in-into-each.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-each-in-into-each.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-has-block-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-has-block-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-inline-link-to.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-inline-link-to.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-input-on-to-onEvent.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-input-on-to-onEvent.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-input-type-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-input-type-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-old-binding-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-old-binding-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-old-class-binding-syntax.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-old-class-binding-syntax.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-quoted-bindings-into-just-bindings.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-quoted-bindings-into-just-bindings.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/plugins/transform-top-level-components.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/plugins/transform-top-level-components.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/system/bootstrap.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/system/bootstrap.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/system/calculate-location-display.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/system/calculate-location-display.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/system/compile-options.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/system/compile-options.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/system/compile.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/system/compile.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-template-compiler/system/precompile.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/system/precompile.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/assert-input-helper-without-block-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: assert-input-helper-without-block');\n\n QUnit.test('Using {{#input}}{{/input}} is not valid', function () {\n expect(1);\n\n var expectedMessage = 'The {{input}} helper cannot be used in block form. (\\'baz/foo-bar\\' @ L1:C0) ';\n\n expectAssertion(function () {\n (0, _index.compile)('{{#input value=\"123\"}}Completely invalid{{/input}}', {\n moduleName: 'baz/foo-bar'\n });\n }, expectedMessage);\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/assert-input-helper-without-block-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: assert-reserved-named-arguments');\n\n QUnit.test('Paths beginning with @ are not valid', function () {\n expect(3);\n\n expectAssertion(function () {\n (0, _index.compile)('{{@foo}}', {\n moduleName: 'baz/foo-bar'\n });\n }, '\\'@foo\\' is not a valid path. (\\'baz/foo-bar\\' @ L1:C2) ');\n\n expectAssertion(function () {\n (0, _index.compile)('{{#if @foo}}Yup{{/if}}', {\n moduleName: 'baz/foo-bar'\n });\n }, '\\'@foo\\' is not a valid path. (\\'baz/foo-bar\\' @ L1:C6) ');\n\n expectAssertion(function () {\n (0, _index.compile)('{{input type=(if @foo \"bar\" \"baz\")}}', {\n moduleName: 'baz/foo-bar'\n });\n }, '\\'@foo\\' is not a valid path. (\\'baz/foo-bar\\' @ L1:C17) ');\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/assert-reserved-named-arguments-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/deprecate-render-model-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: deprecate-model-render');\n\n QUnit.test('Using `{{render` with model provides a deprecation', function () {\n expect(1);\n\n var expectedMessage = 'Please refactor `{{render \"foo-bar\" coolModel}}` to a component and' + ' invoke via `{{foo-bar model=coolModel}}`. (\\'baz/foo-bar\\' @ L1:C0) ';\n\n expectDeprecation(function () {\n (0, _index.compile)('{{render \"foo-bar\" coolModel}}', {\n moduleName: 'baz/foo-bar'\n });\n }, expectedMessage);\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/deprecate-render-model-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/deprecate-render-model-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/deprecate-render-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: deprecate-render');\n\n QUnit.test('Using `{{render` without a model provides a deprecation', function () {\n expect(1);\n\n var expectedMessage = 'Please refactor `{{render \"foo-bar\"}}` to a component and' + ' invoke via `{{foo-bar}}`. (\\'baz/foo-bar\\' @ L1:C0) ';\n\n expectDeprecation(function () {\n (0, _index.compile)('{{render \"foo-bar\"}}', {\n moduleName: 'baz/foo-bar'\n });\n }, expectedMessage);\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/deprecate-render-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/deprecate-render-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/transform-dot-component-invocation-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: transforms dot component invocation');\n\n QUnit.test('Does not throw a compiler error for path components', function (assert) {\n assert.expect(1);\n\n ['{{this.modal open}}', '{{this.modal isOpen=true}}', '{{#this.modal}}Woot{{/this.modal}}', '{{c.modal open}}', '{{c.modal isOpen=true}}', '{{#c.modal}}Woot{{/c.modal}}', '{{#my-component as |c|}}{{c.a name=\"Chad\"}}{{/my-component}}', '{{#my-component as |c|}}{{c.a \"Chad\"}}{{/my-component}}', '{{#my-component as |c|}}{{#c.a}}{{/c.a}}{{/my-component}}', '', // GH#15740\n '' // GH#15217\n ].forEach(function (layout, i) {\n (0, _index.compile)(layout, { moduleName: 'example-' + i });\n });\n\n assert.ok(true);\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/transform-dot-component-invocation-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/transform-inline-link-to-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: assert-no-view-and-controller-paths without legacy view support');\n\n QUnit.test('Can transform an inline {{link-to}} without error', function () {\n expect(0);\n\n (0, _index.compile)('{{link-to \\'foo\\' \\'index\\'}}', {\n moduleName: 'foo/bar/baz'\n });\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/transform-inline-link-to-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/transform-inline-link-to-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/transform-input-on-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: transform-input-on');\n\n QUnit.test('Using `action` without `on` provides a deprecation', function () {\n expect(1);\n\n expectDeprecation(function () {\n (0, _index.compile)('{{input action=\"foo\"}}', {\n moduleName: 'foo/bar/baz'\n });\n }, 'Using \\'{{input action=\"foo\"}}\\' (\\'foo/bar/baz\\' @ L1:C0) is deprecated. Please use \\'{{input enter=\"foo\"}}\\' instead.');\n });\n\n QUnit.test('Using `action` with `on` provides a deprecation', function () {\n expect(1);\n\n expectDeprecation(function () {\n (0, _index.compile)('{{input on=\"focus-in\" action=\"foo\"}}', {\n moduleName: 'foo/bar/baz'\n });\n }, 'Using \\'{{input on=\"focus-in\" action=\"foo\"}}\\' (\\'foo/bar/baz\\' @ L1:C0) is deprecated. Please use \\'{{input focus-in=\"foo\"}}\\' instead.');\n });\n\n QUnit.test('Using `on=\\'keyPress\\'` does not clobber `keyPress`', function () {\n expect(1);\n\n expectDeprecation(function () {\n (0, _index.compile)('{{input on=\"keyPress\" action=\"foo\"}}', {\n moduleName: 'foo/bar/baz'\n });\n }, 'Using \\'{{input on=\"keyPress\" action=\"foo\"}}\\' (\\'foo/bar/baz\\' @ L1:C0) is deprecated. Please use \\'{{input key-press=\"foo\"}}\\' instead.');\n });\n\n QUnit.test('Using `on=\\'foo\\'` without `action=\\'asdf\\'` raises specific deprecation', function () {\n expect(1);\n\n expectDeprecation(function () {\n (0, _index.compile)('{{input on=\"asdf\"}}', {\n moduleName: 'foo/bar/baz'\n });\n }, 'Using \\'{{input on=\"asdf\" ...}}\\' without specifying an action (\\'foo/bar/baz\\' @ L1:C0) will do nothing.');\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/transform-input-on-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/transform-input-on-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/plugins/transform-input-type-syntax-test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: input type syntax');\n\n QUnit.test('Can compile an {{input}} helper that has a sub-expression value as its type', function () {\n expect(0);\n\n (0, _index.compile)('{{input type=(if true \\'password\\' \\'text\\')}}');\n });\n\n QUnit.test('Can compile an {{input}} helper with a string literal type', function () {\n expect(0);\n\n (0, _index.compile)('{{input type=\\'text\\'}}');\n });\n\n QUnit.test('Can compile an {{input}} helper with a type stored in a var', function () {\n expect(0);\n\n (0, _index.compile)('{{input type=_type}}');\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/plugins/transform-input-type-syntax-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/plugins/transform-input-type-syntax-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/system/bootstrap-test', ['ember-metal', 'ember-views', 'ember-glimmer', 'ember-template-compiler/system/bootstrap', 'internal-test-helpers'], function (_emberMetal, _emberViews, _emberGlimmer, _bootstrap, _internalTestHelpers) {\n 'use strict';\n\n var trim = _emberViews.jQuery.trim;\n\n\n var component = void 0,\n fixture = void 0;\n\n function checkTemplate(templateName) {\n (0, _emberMetal.run)(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n });\n\n var template = (0, _emberGlimmer.getTemplate)(templateName);\n\n ok(template, 'template is available on Ember.TEMPLATES');\n equal((0, _emberViews.jQuery)('#qunit-fixture script').length, 0, 'script removed');\n\n var owner = (0, _internalTestHelpers.buildOwner)();\n owner.register('template:-top-level', template);\n owner.register('component:-top-level', _emberGlimmer.Component.extend({\n layoutName: '-top-level',\n firstName: 'Tobias',\n drug: 'teamocil'\n }));\n\n component = owner.lookup('component:-top-level');\n (0, _internalTestHelpers.runAppend)(component);\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text().trim(), 'Tobias takes teamocil', 'template works');\n (0, _internalTestHelpers.runDestroy)(component);\n }\n\n QUnit.module('ember-templates: bootstrap', {\n setup: function () {\n fixture = document.getElementById('qunit-fixture');\n },\n teardown: function () {\n (0, _emberGlimmer.setTemplates)({});\n (0, _internalTestHelpers.runDestroy)(component);\n }\n });\n\n QUnit.test('template with data-template-name should add a new template to Ember.TEMPLATES', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n checkTemplate('funkyTemplate');\n });\n\n QUnit.test('template with id instead of data-template-name should add a new template to Ember.TEMPLATES', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n checkTemplate('funkyTemplate');\n });\n\n QUnit.test('template without data-template-name or id should default to application', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n checkTemplate('application');\n });\n\n if (typeof Handlebars === 'object') {\n QUnit.test('template with type text/x-raw-handlebars should be parsed', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n (0, _emberMetal.run)(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n });\n\n var template = (0, _emberGlimmer.getTemplate)('funkyTemplate');\n\n ok(template, 'template with name funkyTemplate available');\n\n // This won't even work with Ember templates\n equal(trim(template({ name: 'Tobias' })), 'Tobias');\n });\n }\n\n QUnit.test('duplicated default application templates should throw exception', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n throws(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }, /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n });\n\n QUnit.test('default application template and id application template present should throw exception', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n throws(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }, /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n });\n\n QUnit.test('default application template and data-template-name application template present should throw exception', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n throws(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }, /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n });\n\n QUnit.test('duplicated template id should throw exception', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n throws(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }, /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n });\n\n QUnit.test('duplicated template data-template-name should throw exception', function () {\n (0, _emberViews.jQuery)('#qunit-fixture').html('');\n\n throws(function () {\n return (0, _bootstrap.default)({ context: fixture, hasTemplate: _emberGlimmer.hasTemplate, setTemplate: _emberGlimmer.setTemplate });\n }, /Template named \"[^\"]+\" already exists\\./, 'duplicate templates should not be allowed');\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/system/bootstrap-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/system/bootstrap-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-template-compiler/tests/system/compile_options_test', ['ember-template-compiler/index'], function (_index) {\n 'use strict';\n\n QUnit.module('ember-template-compiler: default compile options');\n\n QUnit.test('default options are a new copy', function () {\n notEqual((0, _index.compileOptions)(), (0, _index.compileOptions)());\n });\n\n QUnit.test('has default AST plugins', function (assert) {\n assert.expect(_index.defaultPlugins.length);\n\n var plugins = (0, _index.compileOptions)().plugins.ast;\n\n for (var i = 0; i < _index.defaultPlugins.length; i++) {\n var plugin = _index.defaultPlugins[i];\n assert.ok(plugins.indexOf(plugin) > -1, 'includes ' + plugin);\n }\n });\n});","QUnit.module('ESLint | ember-template-compiler/tests/system/compile_options_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-template-compiler/tests/system/compile_options_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/adapters/adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/adapters/adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/adapters/qunit.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/adapters/qunit.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/ext/application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/ext/application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/ext/rsvp.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/ext/rsvp.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/and_then.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/and_then.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/click.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/click.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/current_path.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/current_path.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/current_route_name.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/current_route_name.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/current_url.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/current_url.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/fill_in.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/fill_in.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/find.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/find.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/find_with_assert.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/find_with_assert.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/key_event.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/key_event.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/pause_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/pause_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/trigger_event.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/trigger_event.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/visit.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/visit.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/helpers/wait.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/helpers/wait.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/initializers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/initializers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/adapters/adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/adapters/adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/adapters/qunit.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/adapters/qunit.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/ext/application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/ext/application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/ext/rsvp.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/ext/rsvp.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/and_then.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/and_then.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/click.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/click.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/current_path.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/current_path.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/current_route_name.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/current_route_name.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/current_url.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/current_url.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/fill_in.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/fill_in.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/find.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/find.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/find_with_assert.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/find_with_assert.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/key_event.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/key_event.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/pause_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/pause_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/trigger_event.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/trigger_event.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/visit.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/visit.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/helpers/wait.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/helpers/wait.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/initializers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/initializers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/setup_for_testing.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/setup_for_testing.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/on_inject_helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/on_inject_helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/pending_requests.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/pending_requests.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/promise.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/promise.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/run.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/run.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/lib/test/waiters.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/lib/test/waiters.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/setup_for_testing.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/setup_for_testing.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/adapter.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/adapter.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/on_inject_helpers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/on_inject_helpers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/pending_requests.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/pending_requests.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/promise.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/promise.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/run.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/run.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-testing/test/waiters.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/test/waiters.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/acceptance_test', ['ember-babel', 'internal-test-helpers', 'ember-metal', 'ember-testing/test', 'ember-testing/adapters/qunit', 'ember-routing', 'ember-runtime'], function (_emberBabel, _internalTestHelpers, _emberMetal, _test, _qunit, _emberRouting, _emberRuntime) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('ember-testing Acceptance', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n\n _this._originalAdapter = _test.default.adapter;\n\n _this.runTask(function () {\n _this.createApplication();\n _this.router.map(function () {\n this.route('posts');\n this.route('comments');\n\n this.route('abort_transition');\n\n this.route('redirect');\n });\n\n _this.indexHitCount = 0;\n _this.currentRoute = 'index';\n var testContext = _this;\n\n _this.add('route:index', _emberRouting.Route.extend({\n model: function () {\n testContext.indexHitCount += 1;\n }\n }));\n\n _this.add('route:posts', _emberRouting.Route.extend({\n renderTemplate: function () {\n testContext.currentRoute = 'posts';\n this._super.apply(this, arguments);\n }\n }));\n\n _this.addTemplate('posts', '\\n
    \\n \\n
    \\n {{#link-to \\'comments\\'}}Comments{{/link-to}}\\n
    \\n
    \\n ');\n\n _this.add('route:comments', _emberRouting.Route.extend({\n renderTemplate: function () {\n testContext.currentRoute = 'comments';\n this._super.apply(this, arguments);\n }\n }));\n\n _this.addTemplate('comments', '
    {{input type=\"text\"}}
    ');\n\n _this.add('route:abort_transition', _emberRouting.Route.extend({\n beforeModel: function (transition) {\n transition.abort();\n }\n }));\n\n _this.add('route:redirect', _emberRouting.Route.extend({\n beforeModel: function () {\n this.transitionTo('comments');\n }\n }));\n\n _this.application.setupForTesting();\n\n _test.default.registerAsyncHelper('slowHelper', function () {\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n return _emberMetal.run.later(resolve, 10);\n });\n });\n\n _this.application.injectTestHelpers();\n });\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n _test.default.adapter = this._originalAdapter;\n _AutobootApplicationT.prototype.teardown.call(this);\n };\n\n _class.prototype['@test helpers can be chained with then'] = function (assert) {\n var _this2 = this;\n\n assert.expect(6);\n\n window.visit('/posts').then(function () {\n assert.equal(_this2.currentRoute, 'posts', 'Successfully visited posts route');\n assert.equal(window.currentURL(), '/posts', 'posts URL is correct');\n return window.click('a:contains(\"Comments\")');\n }).then(function () {\n assert.equal(_this2.currentRoute, 'comments', 'visit chained with click');\n return window.fillIn('.ember-text-field', 'yeah');\n }).then(function () {\n assert.equal(_this2.$('.ember-text-field').val(), 'yeah', 'chained with fillIn');\n return window.fillIn('.ember-text-field', '#qunit-fixture', 'context working');\n }).then(function () {\n assert.equal(_this2.$('.ember-text-field').val(), 'context working', 'chained with fillIn');\n return window.click('.does-not-exist');\n }).catch(function (e) {\n assert.equal(e.message, 'Element .does-not-exist not found.', 'Non-existent click exception caught');\n });\n };\n\n _class.prototype['@test helpers can be chained to each other (legacy)'] = function (assert) {\n var _this3 = this;\n\n assert.expect(7);\n\n window.visit('/posts').click('a:first', '#comments-link').fillIn('.ember-text-field', 'hello').then(function () {\n assert.equal(_this3.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(_this3.$('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n window.find('.ember-text-field').one('keypress', function (e) {\n assert.equal(e.keyCode, 13, 'keyevent chained with correct keyCode.');\n assert.equal(e.which, 13, 'keyevent chained with correct which.');\n });\n }).keyEvent('.ember-text-field', 'keypress', 13).visit('/posts').then(function () {\n assert.equal(_this3.currentRoute, 'posts', 'Thens can also be chained to helpers');\n assert.equal(window.currentURL(), '/posts', 'URL is set correct on chained helpers');\n });\n };\n\n _class.prototype['@test helpers don\\'t need to be chained'] = function (assert) {\n var _this4 = this;\n\n assert.expect(5);\n\n window.visit('/posts');\n\n window.click('a:first', '#comments-link');\n\n window.fillIn('.ember-text-field', 'hello');\n\n window.andThen(function () {\n assert.equal(_this4.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n\n window.visit('/posts');\n\n window.andThen(function () {\n assert.equal(_this4.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts');\n });\n };\n\n _class.prototype['@test Nested async helpers'] = function (assert) {\n var _this5 = this;\n\n assert.expect(5);\n\n window.visit('/posts');\n\n window.andThen(function () {\n window.click('a:first', '#comments-link');\n window.fillIn('.ember-text-field', 'hello');\n });\n\n window.andThen(function () {\n assert.equal(_this5.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n\n window.visit('/posts');\n\n window.andThen(function () {\n assert.equal(_this5.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts');\n });\n };\n\n _class.prototype['@test Multiple nested async helpers'] = function (assert) {\n var _this6 = this;\n\n assert.expect(3);\n\n window.visit('/posts');\n\n window.andThen(function () {\n window.click('a:first', '#comments-link');\n\n window.fillIn('.ember-text-field', 'hello');\n window.fillIn('.ember-text-field', 'goodbye');\n });\n\n window.andThen(function () {\n assert.equal(window.find('.ember-text-field').val(), 'goodbye', 'Fillin successfully works');\n assert.equal(_this6.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n });\n };\n\n _class.prototype['@test Helpers nested in thens'] = function (assert) {\n var _this7 = this;\n\n assert.expect(5);\n\n window.visit('/posts').then(function () {\n window.click('a:first', '#comments-link');\n });\n\n window.andThen(function () {\n window.fillIn('.ember-text-field', 'hello');\n });\n\n window.andThen(function () {\n assert.equal(_this7.currentRoute, 'comments', 'Successfully visited comments route');\n assert.equal(window.currentURL(), '/comments', 'Comments URL is correct');\n assert.equal(window.find('.ember-text-field').val(), 'hello', 'Fillin successfully works');\n });\n\n window.visit('/posts');\n\n window.andThen(function () {\n assert.equal(_this7.currentRoute, 'posts');\n assert.equal(window.currentURL(), '/posts', 'Posts URL is correct');\n });\n };\n\n _class.prototype['@test Aborted transitions are not logged via Ember.Test.adapter#exception'] = function (assert) {\n assert.expect(0);\n\n _test.default.adapter = _qunit.default.create({\n exception: function (error) {\n assert.ok(false, 'aborted transitions are not logged');\n }\n });\n\n window.visit('/abort_transition');\n };\n\n _class.prototype['@test Unhandled exceptions are logged via Ember.Test.adapter#exception'] = function (assert) {\n assert.expect(2);\n\n var asyncHandled = void 0;\n _test.default.adapter = _qunit.default.create({\n exception: function (error) {\n assert.equal(error.message, 'Element .does-not-exist not found.', 'Exception successfully caught and passed to Ember.Test.adapter.exception');\n // handle the rejection so it doesn't leak later.\n asyncHandled.catch(function () {});\n }\n });\n\n window.visit('/posts');\n\n window.click('.invalid-element').catch(function (error) {\n assert.equal(error.message, 'Element .invalid-element not found.', 'Exception successfully handled in the rejection handler');\n });\n\n asyncHandled = window.click('.does-not-exist');\n };\n\n _class.prototype['@test Unhandled exceptions in \\'andThen\\' are logged via Ember.Test.adapter#exception'] = function (assert) {\n assert.expect(1);\n\n _test.default.adapter = _qunit.default.create({\n exception: function (error) {\n assert.equal(error.message, 'Catch me', 'Exception successfully caught and passed to Ember.Test.adapter.exception');\n }\n });\n\n window.visit('/posts');\n\n window.andThen(function () {\n throw new Error('Catch me');\n });\n };\n\n _class.prototype['@test should not start routing on the root URL when visiting another'] = function (assert) {\n var _this8 = this;\n\n assert.expect(4);\n\n window.visit('/posts');\n\n window.andThen(function () {\n assert.ok(window.find('#comments-link'), 'found comments-link');\n assert.equal(_this8.currentRoute, 'posts', 'Successfully visited posts route');\n assert.equal(window.currentURL(), '/posts', 'Posts URL is correct');\n assert.equal(_this8.indexHitCount, 0, 'should not hit index route when visiting another route');\n });\n };\n\n _class.prototype['@test only enters the index route once when visiting '] = function (assert) {\n var _this9 = this;\n\n assert.expect(1);\n\n window.visit('/');\n\n window.andThen(function () {\n assert.equal(_this9.indexHitCount, 1, 'should hit index once when visiting /');\n });\n };\n\n _class.prototype['@test test must not finish while asyncHelpers are pending'] = function (assert) {\n assert.expect(2);\n\n var async = 0;\n var innerRan = false;\n\n _test.default.adapter = _qunit.default.extend({\n asyncStart: function () {\n async++;\n this._super();\n },\n asyncEnd: function () {\n async--;\n this._super();\n }\n }).create();\n\n this.application.testHelpers.slowHelper();\n\n window.andThen(function () {\n innerRan = true;\n });\n\n assert.equal(innerRan, false, 'should not have run yet');\n assert.ok(async > 0, 'should have told the adapter to pause');\n\n if (async === 0) {\n // If we failed the test, prevent zalgo from escaping and breaking\n // our other tests.\n _test.default.adapter.asyncStart();\n _test.default.resolve().then(function () {\n _test.default.adapter.asyncEnd();\n });\n }\n };\n\n _class.prototype['@test visiting a URL that causes another transition should yield the correct URL'] = function (assert) {\n assert.expect(1);\n\n window.visit('/redirect');\n\n window.andThen(function () {\n assert.equal(window.currentURL(), '/comments', 'Redirected to Comments URL');\n });\n };\n\n _class.prototype['@test visiting a URL and then visiting a second URL with a transition should yield the correct URL'] = function (assert) {\n assert.expect(2);\n\n window.visit('/posts');\n\n window.andThen(function () {\n assert.equal(window.currentURL(), '/posts', 'First visited URL is correct');\n });\n\n window.visit('/redirect');\n\n window.andThen(function () {\n assert.equal(window.currentURL(), '/comments', 'Redirected to Comments URL');\n });\n };\n\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing Acceptance - teardown', function (_AutobootApplicationT2) {\n (0, _emberBabel.inherits)(_class2, _AutobootApplicationT2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT2.apply(this, arguments));\n }\n\n _class2.prototype['@test that the setup/teardown happens correctly'] = function (assert) {\n var _this11 = this;\n\n assert.expect(2);\n\n this.runTask(function () {\n _this11.createApplication();\n });\n this.application.injectTestHelpers();\n\n assert.ok(typeof _test.default.Promise.prototype.click === 'function');\n\n this.runTask(function () {\n _this11.application.destroy();\n });\n\n assert.equal(_test.default.Promise.prototype.click, undefined);\n };\n\n return _class2;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember-testing/tests/acceptance_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/acceptance_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/adapters/adapter_test', ['ember-metal', 'ember-testing/adapters/adapter'], function (_emberMetal, _adapter) {\n 'use strict';\n\n var adapter;\n\n QUnit.module('ember-testing Adapter', {\n setup: function () {\n adapter = new _adapter.default();\n },\n teardown: function () {\n (0, _emberMetal.run)(adapter, adapter.destroy);\n }\n });\n\n QUnit.test('exception throws', function () {\n var error = 'Hai';\n var thrown;\n\n try {\n adapter.exception(error);\n } catch (e) {\n thrown = e;\n }\n equal(thrown, error);\n });\n});","QUnit.module('ESLint | ember-testing/tests/adapters/adapter_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/adapters/adapter_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/adapters/qunit_test', ['ember-metal', 'ember-testing/adapters/qunit'], function (_emberMetal, _qunit) {\n 'use strict';\n\n var adapter;\n\n QUnit.module('ember-testing QUnitAdapter', {\n setup: function () {\n adapter = new _qunit.default();\n },\n teardown: function () {\n (0, _emberMetal.run)(adapter, adapter.destroy);\n }\n });\n\n QUnit.test('asyncStart calls stop', function () {\n var originalStop = QUnit.stop;\n try {\n QUnit.stop = function () {\n ok(true, 'stop called');\n };\n adapter.asyncStart();\n } finally {\n QUnit.stop = originalStop;\n }\n });\n\n QUnit.test('asyncEnd calls start', function () {\n var originalStart = QUnit.start;\n try {\n QUnit.start = function () {\n ok(true, 'start called');\n };\n adapter.asyncEnd();\n } finally {\n QUnit.start = originalStart;\n }\n });\n\n QUnit.test('exception causes a failing assertion', function () {\n var error = { err: 'hai' };\n var originalOk = window.ok;\n try {\n window.ok = function (val, msg) {\n originalOk(!val, 'ok is called with false');\n originalOk(msg, '{err: \"hai\"}');\n };\n adapter.exception(error);\n } finally {\n window.ok = originalOk;\n }\n });\n});","QUnit.module('ESLint | ember-testing/tests/adapters/qunit_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/adapters/qunit_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/adapters_test', ['ember-metal', 'ember-testing/test', 'ember-testing/adapters/adapter', 'ember-testing/adapters/qunit', 'ember-application'], function (_emberMetal, _test, _adapter, _qunit, _emberApplication) {\n 'use strict';\n\n var App, originalAdapter, originalQUnit, originalWindowOnerror;\n\n QUnit.module('ember-testing Adapters', {\n setup: function () {\n originalAdapter = _test.default.adapter;\n originalQUnit = window.QUnit;\n originalWindowOnerror = window.onerror;\n },\n teardown: function () {\n if (App) {\n (0, _emberMetal.run)(App, App.destroy);\n App.removeTestHelpers();\n App = null;\n }\n\n _test.default.adapter = originalAdapter;\n window.QUnit = originalQUnit;\n window.onerror = originalWindowOnerror;\n }\n });\n\n QUnit.test('Setting a test adapter manually', function () {\n expect(1);\n var CustomAdapter;\n\n CustomAdapter = _adapter.default.extend({\n asyncStart: function () {\n ok(true, 'Correct adapter was used');\n }\n });\n\n (0, _emberMetal.run)(function () {\n App = _emberApplication.Application.create();\n _test.default.adapter = CustomAdapter.create();\n App.setupForTesting();\n });\n\n _test.default.adapter.asyncStart();\n });\n\n QUnit.test('QUnitAdapter is used by default (if QUnit is available)', function () {\n expect(1);\n\n _test.default.adapter = null;\n\n (0, _emberMetal.run)(function () {\n App = _emberApplication.Application.create();\n App.setupForTesting();\n });\n\n ok(_test.default.adapter instanceof _qunit.default);\n });\n\n QUnit.test('Adapter is used by default (if QUnit is not available)', function () {\n expect(2);\n\n delete window.QUnit;\n\n _test.default.adapter = null;\n\n (0, _emberMetal.run)(function () {\n App = _emberApplication.Application.create();\n App.setupForTesting();\n });\n\n ok(_test.default.adapter instanceof _adapter.default);\n ok(!(_test.default.adapter instanceof _qunit.default));\n });\n\n QUnit.test('With Ember.Test.adapter set, errors in synchronous Ember.run are bubbled out', function (assert) {\n var thrown = new Error('Boom!');\n\n var caughtInAdapter = void 0,\n caughtInCatch = void 0;\n _test.default.adapter = _qunit.default.create({\n exception: function (error) {\n caughtInAdapter = error;\n }\n });\n\n try {\n (0, _emberMetal.run)(function () {\n throw thrown;\n });\n } catch (e) {\n caughtInCatch = e;\n }\n\n assert.equal(caughtInAdapter, undefined, 'test adapter should never receive synchronous errors');\n assert.equal(caughtInCatch, thrown, 'a \"normal\" try/catch should catch errors in sync run');\n });\n});","QUnit.module('ESLint | ember-testing/tests/adapters_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/adapters_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/ext/rsvp_test', ['ember-testing/ext/rsvp', 'ember-testing/test/adapter', 'ember-testing/test/promise', 'ember-metal', 'ember-debug'], function (_rsvp, _adapter, _promise, _emberMetal, _emberDebug) {\n 'use strict';\n\n var originalTestAdapter = (0, _adapter.getAdapter)();\n var originalTestingFlag = (0, _emberDebug.isTesting)();\n\n var asyncStarted = 0;\n var asyncEnded = 0;\n\n QUnit.module('ember-testing RSVP', {\n setup: function () {\n (0, _emberDebug.setTesting)(true);\n (0, _adapter.setAdapter)({\n asyncStart: function () {\n asyncStarted++;\n QUnit.stop();\n },\n asyncEnd: function () {\n asyncEnded++;\n QUnit.start();\n }\n });\n },\n teardown: function () {\n asyncStarted = 0;\n asyncEnded = 0;\n (0, _adapter.setAdapter)(originalTestAdapter);\n (0, _emberDebug.setTesting)(originalTestingFlag);\n }\n });\n\n QUnit.test('given `Ember.testing = true`, correctly informs the test suite about async steps', function () {\n expect(19);\n\n ok(!_emberMetal.run.currentRunLoop, 'expect no run-loop');\n\n (0, _emberDebug.setTesting)(true);\n\n equal(asyncStarted, 0);\n equal(asyncEnded, 0);\n\n var user = _rsvp.default.Promise.resolve({\n name: 'tomster'\n });\n\n equal(asyncStarted, 0);\n equal(asyncEnded, 0);\n\n user.then(function (user) {\n equal(asyncStarted, 1);\n equal(asyncEnded, 1);\n\n equal(user.name, 'tomster');\n\n return _rsvp.default.Promise.resolve(1).then(function () {\n equal(asyncStarted, 1);\n equal(asyncEnded, 1);\n });\n }).then(function () {\n equal(asyncStarted, 1);\n equal(asyncEnded, 1);\n\n return new _rsvp.default.Promise(function (resolve) {\n QUnit.stop(); // raw async, we must inform the test framework manually\n setTimeout(function () {\n QUnit.start(); // raw async, we must inform the test framework manually\n\n equal(asyncStarted, 1);\n equal(asyncEnded, 1);\n\n resolve({\n name: 'async tomster'\n });\n\n equal(asyncStarted, 2);\n equal(asyncEnded, 1);\n }, 0);\n });\n }).then(function (user) {\n equal(user.name, 'async tomster');\n equal(asyncStarted, 2);\n equal(asyncEnded, 2);\n });\n });\n\n QUnit.module('TestPromise');\n\n QUnit.test('does not throw error when falsy value passed to then', function () {\n expect(1);\n return new _promise.default(function (resolve) {\n resolve();\n }).then(null).then(function () {\n ok(true);\n });\n });\n\n QUnit.test('able to get last Promise', function () {\n expect(2);\n\n var p1 = new _promise.default(function (resolve) {\n resolve();\n }).then(function () {\n ok(true);\n });\n\n var p2 = new _promise.default(function (resolve) {\n resolve();\n });\n\n deepEqual((0, _promise.getLastPromise)(), p2);\n return p1;\n });\n});","QUnit.module('ESLint | ember-testing/tests/ext/rsvp_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/ext/rsvp_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/helper_registration_test', ['ember-metal', 'ember-testing/test', 'ember-application'], function (_emberMetal, _test, _emberApplication) {\n 'use strict';\n\n var App, appBooted, helperContainer;\n\n function registerHelper() {\n _test.default.registerHelper('boot', function (app) {\n (0, _emberMetal.run)(app, app.advanceReadiness);\n appBooted = true;\n return app.testHelpers.wait();\n });\n }\n\n function unregisterHelper() {\n _test.default.unregisterHelper('boot');\n }\n\n var originalAdapter = _test.default.adapter;\n\n function setupApp() {\n appBooted = false;\n helperContainer = {};\n\n (0, _emberMetal.run)(function () {\n App = _emberApplication.Application.create();\n App.setupForTesting();\n App.injectTestHelpers(helperContainer);\n });\n }\n\n function destroyApp() {\n if (App) {\n (0, _emberMetal.run)(App, 'destroy');\n App = null;\n }\n }\n\n QUnit.module('Test - registerHelper/unregisterHelper', {\n teardown: function () {\n _test.default.adapter = originalAdapter;\n destroyApp();\n }\n });\n\n QUnit.test('Helper gets registered', function () {\n expect(2);\n\n registerHelper();\n setupApp();\n\n ok(App.testHelpers.boot);\n ok(helperContainer.boot);\n });\n\n QUnit.test('Helper is ran when called', function (assert) {\n var done = assert.async();\n assert.expect(1);\n\n registerHelper();\n setupApp();\n\n App.testHelpers.boot().then(function () {\n assert.ok(appBooted);\n }).finally(done);\n });\n\n QUnit.test('Helper can be unregistered', function () {\n expect(4);\n\n registerHelper();\n setupApp();\n\n ok(App.testHelpers.boot);\n ok(helperContainer.boot);\n\n unregisterHelper();\n\n setupApp();\n\n ok(!App.testHelpers.boot, 'once unregistered the helper is not added to App.testHelpers');\n ok(!helperContainer.boot, 'once unregistered the helper is not added to the helperContainer');\n });\n});","QUnit.module('ESLint | ember-testing/tests/helper_registration_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/helper_registration_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/helpers_test', ['ember-babel', 'internal-test-helpers', 'ember-routing', 'ember-runtime', 'ember-metal', 'ember-views', 'ember-glimmer', 'ember-testing/test', 'ember-testing/setup_for_testing', 'ember-testing/test/pending_requests', 'ember-testing/test/adapter', 'ember-testing/test/waiters'], function (_emberBabel, _internalTestHelpers, _emberRouting, _emberRuntime, _emberMetal, _emberViews, _emberGlimmer, _test, _setup_for_testing, _pending_requests, _adapter, _waiters) {\n 'use strict';\n\n function registerHelper() {\n _test.default.registerHelper('LeakyMcLeakLeak', function () {});\n }\n\n function assertHelpers(assert, application, helperContainer, expected) {\n if (!helperContainer) {\n helperContainer = window;\n }\n if (expected === undefined) {\n expected = true;\n }\n\n function checkHelperPresent(helper, expected) {\n var presentInHelperContainer = !!helperContainer[helper];\n var presentInTestHelpers = !!application.testHelpers[helper];\n\n assert.ok(presentInHelperContainer === expected, 'Expected \\'' + helper + '\\' to be present in the helper container (defaults to window).');\n assert.ok(presentInTestHelpers === expected, 'Expected \\'' + helper + '\\' to be present in App.testHelpers.');\n }\n\n checkHelperPresent('visit', expected);\n checkHelperPresent('click', expected);\n checkHelperPresent('keyEvent', expected);\n checkHelperPresent('fillIn', expected);\n checkHelperPresent('wait', expected);\n checkHelperPresent('triggerEvent', expected);\n }\n\n function assertNoHelpers(assert, application, helperContainer) {\n assertHelpers(assert, application, helperContainer, false);\n }\n\n var HelpersTestCase = function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(HelpersTestCase, _AutobootApplicationT);\n\n function HelpersTestCase() {\n (0, _emberBabel.classCallCheck)(this, HelpersTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n\n _this._originalAdapter = (0, _adapter.getAdapter)();\n return _this;\n }\n\n HelpersTestCase.prototype.teardown = function teardown() {\n (0, _adapter.setAdapter)(this._originalAdapter);\n (0, _emberViews.jQuery)(document).off('ajaxSend');\n (0, _emberViews.jQuery)(document).off('ajaxComplete');\n (0, _pending_requests.clearPendingRequests)();\n if (this.application) {\n this.application.removeTestHelpers();\n }\n _AutobootApplicationT.prototype.teardown.call(this);\n };\n\n return HelpersTestCase;\n }(_internalTestHelpers.AutobootApplicationTestCase);\n\n var HelpersApplicationTestCase = function (_HelpersTestCase) {\n (0, _emberBabel.inherits)(HelpersApplicationTestCase, _HelpersTestCase);\n\n function HelpersApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, HelpersApplicationTestCase);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _HelpersTestCase.call(this));\n\n _this2.runTask(function () {\n _this2.createApplication();\n _this2.application.setupForTesting();\n _this2.application.injectTestHelpers();\n });\n return _this2;\n }\n\n return HelpersApplicationTestCase;\n }(HelpersTestCase);\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: Helper setup', function (_HelpersTestCase2) {\n (0, _emberBabel.inherits)(_class, _HelpersTestCase2);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _HelpersTestCase2.apply(this, arguments));\n }\n\n _class.prototype['@test Ember.Application#injectTestHelpers/#removeTestHelper'] = function (assert) {\n var _this4 = this;\n\n this.runTask(function () {\n _this4.createApplication();\n });\n\n assertNoHelpers(assert, this.application);\n\n registerHelper();\n\n this.application.injectTestHelpers();\n\n assertHelpers(assert, this.application);\n\n assert.ok(_test.default.Promise.prototype.LeakyMcLeakLeak, 'helper in question SHOULD be present');\n\n this.application.removeTestHelpers();\n\n assertNoHelpers(assert, this.application);\n\n assert.equal(_test.default.Promise.prototype.LeakyMcLeakLeak, undefined, 'should NOT leak test promise extensions');\n };\n\n _class.prototype['@test Ember.Application#setupForTesting'] = function (assert) {\n var _this5 = this;\n\n this.runTask(function () {\n _this5.createApplication();\n _this5.application.setupForTesting();\n });\n\n var routerInstance = this.applicationInstance.lookup('router:main');\n assert.equal(routerInstance.location, 'none');\n };\n\n _class.prototype['@test Ember.Application.setupForTesting sets the application to \\'testing\\''] = function (assert) {\n var _this6 = this;\n\n this.runTask(function () {\n _this6.createApplication();\n _this6.application.setupForTesting();\n });\n\n assert.equal(this.application.testing, true, 'Application instance is set to testing.');\n };\n\n _class.prototype['@test Ember.Application.setupForTesting leaves the system in a deferred state.'] = function (assert) {\n var _this7 = this;\n\n this.runTask(function () {\n _this7.createApplication();\n _this7.application.setupForTesting();\n });\n\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n };\n\n _class.prototype['@test App.reset() after Application.setupForTesting leaves the system in a deferred state.'] = function (assert) {\n var _this8 = this;\n\n this.runTask(function () {\n _this8.createApplication();\n _this8.application.setupForTesting();\n });\n\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n\n this.application.reset();\n\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n };\n\n _class.prototype['@test #setupForTesting attaches ajax listeners'] = function (assert) {\n var documentEvents = _emberViews.jQuery._data(document, 'events') || {};\n\n assert.ok(documentEvents['ajaxSend'] === undefined, 'there are no ajaxSend listers setup prior to calling injectTestHelpers');\n assert.ok(documentEvents['ajaxComplete'] === undefined, 'there are no ajaxComplete listers setup prior to calling injectTestHelpers');\n\n (0, _setup_for_testing.default)();\n\n documentEvents = _emberViews.jQuery._data(document, 'events');\n\n assert.equal(documentEvents['ajaxSend'].length, 1, 'calling injectTestHelpers registers an ajaxSend handler');\n assert.equal(documentEvents['ajaxComplete'].length, 1, 'calling injectTestHelpers registers an ajaxComplete handler');\n };\n\n _class.prototype['@test #setupForTesting attaches ajax listeners only once'] = function (assert) {\n var documentEvents = _emberViews.jQuery._data(document, 'events') || {};\n\n assert.ok(documentEvents['ajaxSend'] === undefined, 'there are no ajaxSend listeners setup prior to calling injectTestHelpers');\n assert.ok(documentEvents['ajaxComplete'] === undefined, 'there are no ajaxComplete listeners setup prior to calling injectTestHelpers');\n\n (0, _setup_for_testing.default)();\n (0, _setup_for_testing.default)();\n\n documentEvents = _emberViews.jQuery._data(document, 'events');\n\n assert.equal(documentEvents['ajaxSend'].length, 1, 'calling injectTestHelpers registers an ajaxSend handler');\n assert.equal(documentEvents['ajaxComplete'].length, 1, 'calling injectTestHelpers registers an ajaxComplete handler');\n };\n\n _class.prototype['@test Ember.Application#injectTestHelpers calls callbacks registered with onInjectHelpers'] = function (assert) {\n var _this9 = this;\n\n var injected = 0;\n\n _test.default.onInjectHelpers(function () {\n injected++;\n });\n\n this.runTask(function () {\n _this9.createApplication();\n _this9.application.setupForTesting();\n });\n\n assert.equal(injected, 0, 'onInjectHelpers are not called before injectTestHelpers');\n\n this.application.injectTestHelpers();\n\n assert.equal(injected, 1, 'onInjectHelpers are called after injectTestHelpers');\n };\n\n _class.prototype['@test Ember.Application#injectTestHelpers adds helpers to provided object.'] = function (assert) {\n var _this10 = this;\n\n var helpers = {};\n\n this.runTask(function () {\n _this10.createApplication();\n _this10.application.setupForTesting();\n });\n\n this.application.injectTestHelpers(helpers);\n\n assertHelpers(assert, this.application, helpers);\n\n this.application.removeTestHelpers();\n\n assertNoHelpers(assert, this.application, helpers);\n };\n\n _class.prototype['@test Ember.Application#removeTestHelpers resets the helperContainer\\'s original values'] = function (assert) {\n var _this11 = this;\n\n var helpers = { visit: 'snazzleflabber' };\n\n this.runTask(function () {\n _this11.createApplication();\n _this11.application.setupForTesting();\n });\n\n this.application.injectTestHelpers(helpers);\n\n assert.notEqual(helpers.visit, 'snazzleflabber', 'helper added to container');\n this.application.removeTestHelpers();\n\n assert.equal(helpers.visit, 'snazzleflabber', 'original value added back to container');\n };\n\n return _class;\n }(HelpersTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: Helper methods', function (_HelpersApplicationTe) {\n (0, _emberBabel.inherits)(_class2, _HelpersApplicationTe);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _HelpersApplicationTe.apply(this, arguments));\n }\n\n _class2.prototype['@test \\'wait\\' respects registerWaiters'] = function (assert) {\n var _this13 = this;\n\n assert.expect(3);\n\n var counter = 0;\n function waiter() {\n return ++counter > 2;\n }\n\n var other = 0;\n function otherWaiter() {\n return ++other > 2;\n }\n\n this.runTask(function () {\n _this13.application.advanceReadiness();\n });\n\n (0, _waiters.registerWaiter)(waiter);\n (0, _waiters.registerWaiter)(otherWaiter);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.wait().then(function () {\n assert.equal(waiter(), true, 'should not resolve until our waiter is ready');\n (0, _waiters.unregisterWaiter)(waiter);\n counter = 0;\n return testHelpers.wait();\n }).then(function () {\n assert.equal(counter, 0, 'unregistered waiter was not checked');\n assert.equal(otherWaiter(), true, 'other waiter is still registered');\n }).finally(function () {\n (0, _waiters.unregisterWaiter)(otherWaiter);\n });\n };\n\n _class2.prototype['@test \\'visit\\' advances readiness.'] = function (assert) {\n var _this14 = this;\n\n assert.expect(2);\n\n assert.equal(this.application._readinessDeferrals, 1, 'App is in deferred state after setupForTesting.');\n\n return this.application.testHelpers.visit('/').then(function () {\n assert.equal(_this14.application._readinessDeferrals, 0, 'App\\'s readiness was advanced by visit.');\n });\n };\n\n _class2.prototype['@test \\'wait\\' helper can be passed a resolution value'] = function (assert) {\n var _this15 = this;\n\n assert.expect(4);\n\n this.runTask(function () {\n _this15.application.advanceReadiness();\n });\n\n var promiseObjectValue = {};\n var objectValue = {};\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.wait('text').then(function (val) {\n assert.equal(val, 'text', 'can resolve to a string');\n return testHelpers.wait(1);\n }).then(function (val) {\n assert.equal(val, 1, 'can resolve to an integer');\n return testHelpers.wait(objectValue);\n }).then(function (val) {\n assert.equal(val, objectValue, 'can resolve to an object');\n return testHelpers.wait(_emberRuntime.RSVP.resolve(promiseObjectValue));\n }).then(function (val) {\n assert.equal(val, promiseObjectValue, 'can resolve to a promise resolution value');\n });\n };\n\n _class2.prototype['@test \\'click\\' triggers appropriate events in order'] = function (assert) {\n var _this16 = this;\n\n assert.expect(5);\n\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n classNames: 'index-wrapper',\n\n didInsertElement: function () {\n this.$().on('mousedown focusin mouseup click', function (e) {\n events.push(e.type);\n });\n }\n }));\n\n this.add('component:x-checkbox', _emberGlimmer.Component.extend({\n tagName: 'input',\n attributeBindings: ['type'],\n type: 'checkbox',\n click: function () {\n events.push('click:' + this.get('checked'));\n },\n change: function () {\n events.push('change:' + this.get('checked'));\n }\n }));\n\n this.addTemplate('index', '\\n {{#index-wrapper}}\\n {{input type=\"text\"}}\\n {{x-checkbox type=\"checkbox\"}}\\n {{textarea}}\\n
    \\n {{/index-wrapper}}\\'));\\n ');\n\n this.runTask(function () {\n _this16.application.advanceReadiness();\n });\n\n var events = void 0;\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.wait().then(function () {\n events = [];\n return testHelpers.click('.index-wrapper');\n }).then(function () {\n assert.deepEqual(events, ['mousedown', 'mouseup', 'click'], 'fires events in order');\n }).then(function () {\n events = [];\n return testHelpers.click('.index-wrapper input[type=text]');\n }).then(function () {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on inputs');\n }).then(function () {\n events = [];\n return testHelpers.click('.index-wrapper textarea');\n }).then(function () {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on textareas');\n }).then(function () {\n events = [];\n return testHelpers.click('.index-wrapper div');\n }).then(function () {\n assert.deepEqual(events, ['mousedown', 'focusin', 'mouseup', 'click'], 'fires focus events on contenteditable');\n }).then(function () {\n events = [];\n return testHelpers.click('.index-wrapper input[type=checkbox]');\n }).then(function () {\n // i.e. mousedown, mouseup, change:true, click, click:true\n // Firefox differs so we can't assert the exact ordering here.\n // See https://bugzilla.mozilla.org/show_bug.cgi?id=843554.\n assert.equal(events.length, 5, 'fires click and change on checkboxes');\n });\n };\n\n _class2.prototype['@test \\'click\\' triggers native events with simulated X/Y coordinates'] = function (assert) {\n var _this17 = this;\n\n assert.expect(15);\n\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n classNames: 'index-wrapper',\n\n didInsertElement: function () {\n var pushEvent = function (e) {\n return events.push(e);\n };\n this.element.addEventListener('mousedown', pushEvent);\n this.element.addEventListener('mouseup', pushEvent);\n this.element.addEventListener('click', pushEvent);\n }\n }));\n\n this.addTemplate('index', '\\n {{#index-wrapper}}some text{{/index-wrapper}}\\n ');\n\n this.runTask(function () {\n _this17.application.advanceReadiness();\n });\n\n var events = void 0;\n var _application$testHelp = this.application.testHelpers,\n wait = _application$testHelp.wait,\n click = _application$testHelp.click;\n\n return wait().then(function () {\n events = [];\n return click('.index-wrapper');\n }).then(function () {\n events.forEach(function (e) {\n assert.ok(e instanceof window.Event, 'The event is an instance of MouseEvent');\n assert.ok(typeof e.screenX === 'number', 'screenX is correct');\n assert.ok(typeof e.screenY === 'number', 'screenY is correct');\n assert.ok(typeof e.clientX === 'number', 'clientX is correct');\n assert.ok(typeof e.clientY === 'number', 'clientY is correct');\n });\n });\n };\n\n _class2.prototype['@test \\'triggerEvent\\' with mouseenter triggers native events with simulated X/Y coordinates'] = function (assert) {\n var _this18 = this;\n\n assert.expect(5);\n\n var evt = void 0;\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n classNames: 'index-wrapper',\n didInsertElement: function () {\n this.element.addEventListener('mouseenter', function (e) {\n return evt = e;\n });\n }\n }));\n\n this.addTemplate('index', '{{#index-wrapper}}some text{{/index-wrapper}}');\n\n this.runTask(function () {\n _this18.application.advanceReadiness();\n });\n\n var _application$testHelp2 = this.application.testHelpers,\n wait = _application$testHelp2.wait,\n triggerEvent = _application$testHelp2.triggerEvent;\n\n return wait().then(function () {\n return triggerEvent('.index-wrapper', 'mouseenter');\n }).then(function () {\n assert.ok(evt instanceof window.Event, 'The event is an instance of MouseEvent');\n assert.ok(typeof evt.screenX === 'number', 'screenX is correct');\n assert.ok(typeof evt.screenY === 'number', 'screenY is correct');\n assert.ok(typeof evt.clientX === 'number', 'clientX is correct');\n assert.ok(typeof evt.clientY === 'number', 'clientY is correct');\n });\n };\n\n _class2.prototype['@test \\'wait\\' waits for outstanding timers'] = function (assert) {\n var _this19 = this;\n\n assert.expect(1);\n\n this.runTask(function () {\n _this19.application.advanceReadiness();\n });\n\n var waitDone = false;\n _emberMetal.run.later(function () {\n waitDone = true;\n }, 20);\n\n return this.application.testHelpers.wait().then(function () {\n assert.equal(waitDone, true, 'should wait for the timer to be fired.');\n });\n };\n\n _class2.prototype['@test \\'wait\\' respects registerWaiters with optional context'] = function (assert) {\n var _this20 = this;\n\n assert.expect(3);\n\n var obj = {\n counter: 0,\n ready: function () {\n return ++this.counter > 2;\n }\n };\n\n var other = 0;\n function otherWaiter() {\n return ++other > 2;\n }\n\n this.runTask(function () {\n _this20.application.advanceReadiness();\n });\n\n (0, _waiters.registerWaiter)(obj, obj.ready);\n (0, _waiters.registerWaiter)(otherWaiter);\n\n var wait = this.application.testHelpers.wait;\n\n return wait().then(function () {\n assert.equal(obj.ready(), true, 'should not resolve until our waiter is ready');\n (0, _waiters.unregisterWaiter)(obj, obj.ready);\n obj.counter = 0;\n return wait();\n }).then(function () {\n assert.equal(obj.counter, 0, 'the unregistered waiter should still be at 0');\n assert.equal(otherWaiter(), true, 'other waiter should still be registered');\n }).finally(function () {\n (0, _waiters.unregisterWaiter)(otherWaiter);\n });\n };\n\n _class2.prototype['@test \\'wait\\' does not error if routing has not begun'] = function (assert) {\n assert.expect(1);\n\n return this.application.testHelpers.wait().then(function () {\n ok(true, 'should not error without `visit`');\n });\n };\n\n _class2.prototype['@test \\'triggerEvent\\' accepts an optional options hash without context'] = function (assert) {\n var _this21 = this;\n\n assert.expect(3);\n\n var event = void 0;\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$('.input').on('keydown change', function (e) {\n return event = e;\n });\n }\n }));\n\n this.addTemplate('index', '{{index-wrapper}}');\n this.addTemplate('components/index-wrapper', '\\n {{input type=\"text\" id=\"scope\" class=\"input\"}}\\n ');\n\n this.runTask(function () {\n _this21.application.advanceReadiness();\n });\n\n var _application$testHelp3 = this.application.testHelpers,\n wait = _application$testHelp3.wait,\n triggerEvent = _application$testHelp3.triggerEvent;\n\n return wait().then(function () {\n return triggerEvent('.input', 'keydown', { keyCode: 13 });\n }).then(function () {\n assert.equal(event.keyCode, 13, 'options were passed');\n assert.equal(event.type, 'keydown', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'scope', 'triggered on the correct element');\n });\n };\n\n _class2.prototype['@test \\'triggerEvent\\' can limit searching for a selector to a scope'] = function (assert) {\n var _this22 = this;\n\n assert.expect(2);\n\n var event = void 0;\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$('.input').on('blur change', function (e) {\n return event = e;\n });\n }\n }));\n\n this.addTemplate('components/index-wrapper', '\\n {{input type=\"text\" id=\"outside-scope\" class=\"input\"}}\\n
    \\n {{input type=\"text\" id=\"inside-scope\" class=\"input\"}}\\n
    \\n ');\n this.addTemplate('index', '{{index-wrapper}}');\n\n this.runTask(function () {\n _this22.application.advanceReadiness();\n });\n\n var _application$testHelp4 = this.application.testHelpers,\n wait = _application$testHelp4.wait,\n triggerEvent = _application$testHelp4.triggerEvent;\n\n return wait().then(function () {\n return triggerEvent('.input', '#limited', 'blur');\n }).then(function () {\n assert.equal(event.type, 'blur', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'inside-scope', 'triggered on the correct element');\n });\n };\n\n _class2.prototype['@test \\'triggerEvent\\' can be used to trigger arbitrary events'] = function (assert) {\n var _this23 = this;\n\n assert.expect(2);\n\n var event = void 0;\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$('#foo').on('blur change', function (e) {\n return event = e;\n });\n }\n }));\n\n this.addTemplate('components/index-wrapper', '\\n {{input type=\"text\" id=\"foo\"}}\\n ');\n this.addTemplate('index', '{{index-wrapper}}');\n\n this.runTask(function () {\n _this23.application.advanceReadiness();\n });\n\n var _application$testHelp5 = this.application.testHelpers,\n wait = _application$testHelp5.wait,\n triggerEvent = _application$testHelp5.triggerEvent;\n\n return wait().then(function () {\n return triggerEvent('#foo', 'blur');\n }).then(function () {\n assert.equal(event.type, 'blur', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'foo', 'triggered on the correct element');\n });\n };\n\n _class2.prototype['@test \\'fillIn\\' takes context into consideration'] = function (assert) {\n var _this24 = this;\n\n assert.expect(2);\n\n this.addTemplate('index', '\\n
    \\n {{input type=\"text\" id=\"first\" class=\"current\"}}\\n
    \\n {{input type=\"text\" id=\"second\" class=\"current\"}}\\n ');\n\n this.runTask(function () {\n _this24.application.advanceReadiness();\n });\n\n var _application$testHelp6 = this.application.testHelpers,\n visit = _application$testHelp6.visit,\n fillIn = _application$testHelp6.fillIn,\n andThen = _application$testHelp6.andThen,\n find = _application$testHelp6.find;\n\n visit('/');\n fillIn('.current', '#parent', 'current value');\n\n return andThen(function () {\n assert.equal(find('#first').val(), 'current value');\n assert.equal(find('#second').val(), '');\n });\n };\n\n _class2.prototype['@test \\'fillIn\\' focuses on the element'] = function (assert) {\n var _this25 = this;\n\n assert.expect(2);\n\n this.add('route:application', _emberRouting.Route.extend({\n actions: {\n wasFocused: function () {\n assert.ok(true, 'focusIn event was triggered');\n }\n }\n }));\n\n this.addTemplate('index', '\\n
    \\n {{input type=\"text\" id=\"first\" focus-in=\"wasFocused\"}}\\n
    \\'\\n ');\n\n this.runTask(function () {\n _this25.application.advanceReadiness();\n });\n\n var _application$testHelp7 = this.application.testHelpers,\n visit = _application$testHelp7.visit,\n fillIn = _application$testHelp7.fillIn,\n andThen = _application$testHelp7.andThen,\n find = _application$testHelp7.find,\n wait = _application$testHelp7.wait;\n\n visit('/');\n fillIn('#first', 'current value');\n andThen(function () {\n assert.equal(find('#first').val(), 'current value');\n });\n\n return wait();\n };\n\n _class2.prototype['@test \\'fillIn\\' fires \\'input\\' and \\'change\\' events in the proper order'] = function (assert) {\n var _this26 = this;\n\n assert.expect(1);\n\n var events = [];\n this.add('controller:index', _emberRuntime.Controller.extend({\n actions: {\n oninputHandler: function (e) {\n events.push(e.type);\n },\n onchangeHandler: function (e) {\n events.push(e.type);\n }\n }\n }));\n\n this.addTemplate('index', '\\n \\n ');\n\n this.runTask(function () {\n _this26.application.advanceReadiness();\n });\n\n var _application$testHelp8 = this.application.testHelpers,\n visit = _application$testHelp8.visit,\n fillIn = _application$testHelp8.fillIn,\n andThen = _application$testHelp8.andThen,\n wait = _application$testHelp8.wait;\n\n\n visit('/');\n fillIn('#first', 'current value');\n andThen(function () {\n assert.deepEqual(events, ['input', 'change'], '`input` and `change` events are fired in the proper order');\n });\n\n return wait();\n };\n\n _class2.prototype['@test \\'fillIn\\' only sets the value in the first matched element'] = function (assert) {\n var _this27 = this;\n\n this.addTemplate('index', '\\n \\n \\n ');\n\n this.runTask(function () {\n _this27.application.advanceReadiness();\n });\n\n var _application$testHelp9 = this.application.testHelpers,\n visit = _application$testHelp9.visit,\n fillIn = _application$testHelp9.fillIn,\n find = _application$testHelp9.find,\n andThen = _application$testHelp9.andThen,\n wait = _application$testHelp9.wait;\n\n\n visit('/');\n fillIn('input.in-test', 'new value');\n andThen(function () {\n assert.equal(find('#first').val(), 'new value');\n assert.equal(find('#second').val(), '');\n });\n\n return wait();\n };\n\n _class2.prototype['@test \\'triggerEvent\\' accepts an optional options hash and context'] = function (assert) {\n var _this28 = this;\n\n assert.expect(3);\n\n var event = void 0;\n this.add('component:index-wrapper', _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$('.input').on('keydown change', function (e) {\n return event = e;\n });\n }\n }));\n\n this.addTemplate('components/index-wrapper', '\\n {{input type=\"text\" id=\"outside-scope\" class=\"input\"}}\\n
    \\n {{input type=\"text\" id=\"inside-scope\" class=\"input\"}}\\n
    \\n ');\n this.addTemplate('index', '{{index-wrapper}}');\n\n this.runTask(function () {\n _this28.application.advanceReadiness();\n });\n\n var _application$testHelp10 = this.application.testHelpers,\n wait = _application$testHelp10.wait,\n triggerEvent = _application$testHelp10.triggerEvent;\n\n return wait().then(function () {\n return triggerEvent('.input', '#limited', 'keydown', { keyCode: 13 });\n }).then(function () {\n assert.equal(event.keyCode, 13, 'options were passed');\n assert.equal(event.type, 'keydown', 'correct event was triggered');\n assert.equal(event.target.getAttribute('id'), 'inside-scope', 'triggered on the correct element');\n });\n };\n\n return _class2;\n }(HelpersApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: debugging helpers', function (_HelpersApplicationTe2) {\n (0, _emberBabel.inherits)(_class3, _HelpersApplicationTe2);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this29 = (0, _emberBabel.possibleConstructorReturn)(this, _HelpersApplicationTe2.call(this));\n\n _this29.runTask(function () {\n _this29.application.advanceReadiness();\n });\n return _this29;\n }\n\n _class3.prototype['@test pauseTest pauses'] = function (assert) {\n assert.expect(1);\n\n var _application$testHelp11 = this.application.testHelpers,\n andThen = _application$testHelp11.andThen,\n pauseTest = _application$testHelp11.pauseTest;\n\n andThen(function () {\n _test.default.adapter.asyncStart = function () {\n assert.ok(true, 'Async start should be called after waiting for other helpers');\n };\n });\n\n pauseTest();\n };\n\n _class3.prototype['@test resumeTest resumes paused tests'] = function (assert) {\n assert.expect(1);\n\n var _application$testHelp12 = this.application.testHelpers,\n pauseTest = _application$testHelp12.pauseTest,\n resumeTest = _application$testHelp12.resumeTest;\n\n\n _emberMetal.run.later(function () {\n return resumeTest();\n }, 20);\n return pauseTest().then(function () {\n assert.ok(true, 'pauseTest promise was resolved');\n });\n };\n\n _class3.prototype['@test resumeTest throws if nothing to resume'] = function (assert) {\n var _this30 = this;\n\n assert.expect(1);\n\n assert.throws(function () {\n _this30.application.testHelpers.resumeTest();\n }, /Testing has not been paused. There is nothing to resume./);\n };\n\n return _class3;\n }(HelpersApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: routing helpers', function (_HelpersTestCase3) {\n (0, _emberBabel.inherits)(_class4, _HelpersTestCase3);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n\n var _this31 = (0, _emberBabel.possibleConstructorReturn)(this, _HelpersTestCase3.call(this));\n\n _this31.runTask(function () {\n _this31.createApplication();\n _this31.application.setupForTesting();\n _this31.application.injectTestHelpers();\n _this31.router.map(function () {\n this.route('posts', { resetNamespace: true }, function () {\n this.route('new');\n this.route('edit', { resetNamespace: true });\n });\n });\n });\n _this31.runTask(function () {\n _this31.application.advanceReadiness();\n });\n return _this31;\n }\n\n _class4.prototype['@test currentRouteName for \\'/\\''] = function (assert) {\n assert.expect(3);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'index', 'should equal \\'index\\'.');\n assert.equal(testHelpers.currentPath(), 'index', 'should equal \\'index\\'.');\n assert.equal(testHelpers.currentURL(), '/', 'should equal \\'/\\'.');\n });\n };\n\n _class4.prototype['@test currentRouteName for \\'/posts\\''] = function (assert) {\n assert.expect(3);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/posts').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'posts.index', 'should equal \\'posts.index\\'.');\n assert.equal(testHelpers.currentPath(), 'posts.index', 'should equal \\'posts.index\\'.');\n assert.equal(testHelpers.currentURL(), '/posts', 'should equal \\'/posts\\'.');\n });\n };\n\n _class4.prototype['@test currentRouteName for \\'/posts/new\\''] = function (assert) {\n assert.expect(3);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/posts/new').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'posts.new', 'should equal \\'posts.new\\'.');\n assert.equal(testHelpers.currentPath(), 'posts.new', 'should equal \\'posts.new\\'.');\n assert.equal(testHelpers.currentURL(), '/posts/new', 'should equal \\'/posts/new\\'.');\n });\n };\n\n _class4.prototype['@test currentRouteName for \\'/posts/edit\\''] = function (assert) {\n assert.expect(3);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/posts/edit').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'edit', 'should equal \\'edit\\'.');\n assert.equal(testHelpers.currentPath(), 'posts.edit', 'should equal \\'posts.edit\\'.');\n assert.equal(testHelpers.currentURL(), '/posts/edit', 'should equal \\'/posts/edit\\'.');\n });\n };\n\n return _class4;\n }(HelpersTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: pendingRequests', function (_HelpersApplicationTe3) {\n (0, _emberBabel.inherits)(_class5, _HelpersApplicationTe3);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _HelpersApplicationTe3.apply(this, arguments));\n }\n\n _class5.prototype['@test pendingRequests is maintained for ajaxSend and ajaxComplete events'] = function (assert) {\n assert.equal((0, _pending_requests.pendingRequests)(), 0);\n\n var xhr = { some: 'xhr' };\n\n (0, _emberViews.jQuery)(document).trigger('ajaxSend', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n\n (0, _emberViews.jQuery)(document).trigger('ajaxComplete', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'Ember.Test.pendingRequests was decremented');\n };\n\n _class5.prototype['@test pendingRequests is ignores ajaxComplete events from past setupForTesting calls'] = function (assert) {\n assert.equal((0, _pending_requests.pendingRequests)(), 0);\n\n var xhr = { some: 'xhr' };\n\n (0, _emberViews.jQuery)(document).trigger('ajaxSend', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n\n (0, _setup_for_testing.default)();\n\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'Ember.Test.pendingRequests was reset');\n\n var altXhr = { some: 'more xhr' };\n\n (0, _emberViews.jQuery)(document).trigger('ajaxSend', altXhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests was incremented');\n\n (0, _emberViews.jQuery)(document).trigger('ajaxComplete', xhr);\n assert.equal((0, _pending_requests.pendingRequests)(), 1, 'Ember.Test.pendingRequests is not impressed with your unexpected complete');\n };\n\n _class5.prototype['@test pendingRequests is reset by setupForTesting'] = function (assert) {\n (0, _pending_requests.incrementPendingRequests)();\n\n (0, _setup_for_testing.default)();\n\n assert.equal((0, _pending_requests.pendingRequests)(), 0, 'pendingRequests is reset');\n };\n\n return _class5;\n }(HelpersApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: async router', function (_HelpersTestCase4) {\n (0, _emberBabel.inherits)(_class6, _HelpersTestCase4);\n\n function _class6() {\n (0, _emberBabel.classCallCheck)(this, _class6);\n\n var _this33 = (0, _emberBabel.possibleConstructorReturn)(this, _HelpersTestCase4.call(this));\n\n _this33.runTask(function () {\n _this33.createApplication();\n\n _this33.router.map(function () {\n this.route('user', { resetNamespace: true }, function () {\n this.route('profile');\n this.route('edit');\n });\n });\n\n // Emulate a long-running unscheduled async operation.\n var resolveLater = function () {\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n /*\n * The wait() helper has a 10ms tick. We should resolve() after\n * at least one tick to test whether wait() held off while the\n * async router was still loading. 20ms should be enough.\n */\n _emberMetal.run.later(resolve, { firstName: 'Tom' }, 20);\n });\n };\n\n _this33.add('route:user', _emberRouting.Route.extend({\n model: function () {\n return resolveLater();\n }\n }));\n\n _this33.add('route:user.profile', _emberRouting.Route.extend({\n beforeModel: function () {\n var _this34 = this;\n\n return resolveLater().then(function () {\n return _this34.transitionTo('user.edit');\n });\n }\n }));\n\n _this33.application.setupForTesting();\n });\n\n _this33.application.injectTestHelpers();\n _this33.runTask(function () {\n _this33.application.advanceReadiness();\n });\n return _this33;\n }\n\n _class6.prototype['@test currentRouteName for \\'/user\\''] = function (assert) {\n var _this35 = this;\n\n assert.expect(4);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/user').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'user.index', 'should equal \\'user.index\\'.');\n assert.equal(testHelpers.currentPath(), 'user.index', 'should equal \\'user.index\\'.');\n assert.equal(testHelpers.currentURL(), '/user', 'should equal \\'/user\\'.');\n var userRoute = _this35.applicationInstance.lookup('route:user');\n assert.equal(userRoute.get('controller.model.firstName'), 'Tom', 'should equal \\'Tom\\'.');\n });\n };\n\n _class6.prototype['@test currentRouteName for \\'/user/profile\\''] = function (assert) {\n var _this36 = this;\n\n assert.expect(4);\n\n var testHelpers = this.application.testHelpers;\n\n return testHelpers.visit('/user/profile').then(function () {\n assert.equal(testHelpers.currentRouteName(), 'user.edit', 'should equal \\'user.edit\\'.');\n assert.equal(testHelpers.currentPath(), 'user.edit', 'should equal \\'user.edit\\'.');\n assert.equal(testHelpers.currentURL(), '/user/edit', 'should equal \\'/user/edit\\'.');\n var userRoute = _this36.applicationInstance.lookup('route:user');\n assert.equal(userRoute.get('controller.model.firstName'), 'Tom', 'should equal \\'Tom\\'.');\n });\n };\n\n return _class6;\n }(HelpersTestCase));\n\n (0, _internalTestHelpers.moduleFor)('ember-testing: can override built-in helpers', function (_HelpersTestCase5) {\n (0, _emberBabel.inherits)(_class7, _HelpersTestCase5);\n\n function _class7() {\n (0, _emberBabel.classCallCheck)(this, _class7);\n\n var _this37 = (0, _emberBabel.possibleConstructorReturn)(this, _HelpersTestCase5.call(this));\n\n _this37.runTask(function () {\n _this37.createApplication();\n _this37.application.setupForTesting();\n });\n _this37._originalVisitHelper = _test.default._helpers.visit;\n _this37._originalFindHelper = _test.default._helpers.find;\n return _this37;\n }\n\n _class7.prototype.teardown = function teardown() {\n _test.default._helpers.visit = this._originalVisitHelper;\n _test.default._helpers.find = this._originalFindHelper;\n _HelpersTestCase5.prototype.teardown.call(this);\n };\n\n _class7.prototype['@test can override visit helper'] = function (assert) {\n assert.expect(1);\n\n _test.default.registerHelper('visit', function () {\n assert.ok(true, 'custom visit helper was called');\n });\n\n this.application.injectTestHelpers();\n\n return this.application.testHelpers.visit();\n };\n\n _class7.prototype['@test can override find helper'] = function (assert) {\n assert.expect(1);\n\n _test.default.registerHelper('find', function () {\n assert.ok(true, 'custom find helper was called');\n\n return ['not empty array'];\n });\n\n this.application.injectTestHelpers();\n\n return this.application.testHelpers.findWithAssert('.who-cares');\n };\n\n return _class7;\n }(HelpersTestCase));\n});","QUnit.module('ESLint | ember-testing/tests/helpers_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/helpers_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/integration_test', ['ember-babel', 'internal-test-helpers', 'ember-testing/test', 'ember-runtime', 'ember-routing'], function (_emberBabel, _internalTestHelpers, _test, _emberRuntime, _emberRouting) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('ember-testing Integration tests of acceptance', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n\n _this.modelContent = [];\n _this._originalAdapter = _test.default.adapter;\n\n _this.runTask(function () {\n _this.createApplication();\n\n _this.addTemplate('people', '\\n
    \\n {{#each model as |person|}}\\n
    {{person.firstName}}
    \\n {{/each}}\\n
    \\n ');\n\n _this.router.map(function () {\n this.route('people', { path: '/' });\n });\n\n _this.add('route:people', _emberRouting.Route.extend({\n model: function () {\n return _this.modelContent;\n }\n }));\n\n _this.application.setupForTesting();\n });\n\n _this.runTask(function () {\n _this.application.reset();\n });\n\n _this.application.injectTestHelpers();\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n _AutobootApplicationT.prototype.teardown.call(this);\n _test.default.adapter = this._originalAdapter;\n };\n\n _class.prototype['@test template is bound to empty array of people'] = function (assert) {\n var _this2 = this;\n\n this.runTask(function () {\n return _this2.application.advanceReadiness();\n });\n window.visit('/').then(function () {\n var rows = window.find('.name').length;\n assert.equal(rows, 0, 'successfully stubbed an empty array of people');\n });\n };\n\n _class.prototype['@test template is bound to array of 2 people'] = function (assert) {\n var _this3 = this;\n\n this.modelContent = (0, _emberRuntime.A)([]);\n this.modelContent.pushObject({ firstName: 'x' });\n this.modelContent.pushObject({ firstName: 'y' });\n\n this.runTask(function () {\n return _this3.application.advanceReadiness();\n });\n window.visit('/').then(function () {\n var rows = window.find('.name').length;\n assert.equal(rows, 2, 'successfully stubbed a non empty array of people');\n });\n };\n\n _class.prototype['@test \\'visit\\' can be called without advanceReadiness.'] = function (assert) {\n window.visit('/').then(function () {\n var rows = window.find('.name').length;\n assert.equal(rows, 0, 'stubbed an empty array of people without calling advanceReadiness.');\n });\n };\n\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember-testing/tests/integration_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/integration_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/reexports_test', ['ember', 'internal-test-helpers'], function (_ember, _internalTestHelpers) {\n 'use strict';\n\n QUnit.module('ember-testing reexports');\n\n [\n // ember-testing\n ['Test', 'ember-testing'], ['Test.Adapter', 'ember-testing', 'Adapter'], ['Test.QUnitAdapter', 'ember-testing', 'QUnitAdapter'], ['setupForTesting', 'ember-testing']].forEach(function (reexport) {\n var path = reexport[0],\n moduleId = reexport[1],\n exportName = reexport[2];\n\n\n // default path === exportName if none present\n if (!exportName) {\n exportName = path;\n }\n\n QUnit.test('Ember.' + path + ' exports correctly', function (assert) {\n (0, _internalTestHelpers.confirmExport)(_ember.default, assert, path, moduleId, exportName);\n });\n });\n});","QUnit.module('ESLint | ember-testing/tests/reexports_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/reexports_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/simple_setup', ['ember-metal', 'ember-views'], function (_emberMetal, _emberViews) {\n 'use strict';\n\n var App;\n\n QUnit.module('Simple Testing Setup', {\n teardown: function () {\n if (App) {\n App.removeTestHelpers();\n (0, _emberViews.jQuery)('#ember-testing-container, #ember-testing').remove();\n (0, _emberMetal.run)(App, 'destroy');\n App = null;\n }\n }\n });\n});","QUnit.module('ESLint | ember-testing/tests/simple_setup.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/simple_setup.js should pass ESLint\\n\\n');\n});\n","enifed('ember-testing/tests/test/waiters-test', ['ember-babel', 'ember-testing/test/waiters'], function (_emberBabel, _waiters) {\n 'use strict';\n\n var Waiters = function () {\n function Waiters() {\n (0, _emberBabel.classCallCheck)(this, Waiters);\n\n this._waiters = [];\n }\n\n Waiters.prototype.add = function add() {\n this._waiters.push([].concat(Array.prototype.slice.call(arguments)));\n };\n\n Waiters.prototype.register = function register() {\n this.forEach(function () {\n _waiters.registerWaiter.apply(undefined, arguments);\n });\n };\n\n Waiters.prototype.unregister = function unregister() {\n this.forEach(function () {\n _waiters.unregisterWaiter.apply(undefined, arguments);\n });\n };\n\n Waiters.prototype.forEach = function forEach(callback) {\n for (var i = 0; i < this._waiters.length; i++) {\n var args = this._waiters[i];\n\n callback.apply(undefined, args);\n }\n };\n\n Waiters.prototype.check = function check() {\n this.register();\n var result = (0, _waiters.checkWaiters)();\n this.unregister();\n\n return result;\n };\n\n return Waiters;\n }();\n\n QUnit.module('ember-testing: waiters', {\n setup: function () {\n this.waiters = new Waiters();\n },\n teardown: function () {\n this.waiters.unregister();\n }\n });\n\n QUnit.test('registering a waiter', function (assert) {\n assert.expect(2);\n\n var obj = { foo: true };\n\n this.waiters.add(obj, function () {\n assert.ok(this.foo, 'has proper `this` context');\n return true;\n });\n\n this.waiters.add(function () {\n assert.ok(true, 'is called');\n return true;\n });\n\n this.waiters.check();\n });\n\n QUnit.test('unregistering a waiter', function (assert) {\n assert.expect(2);\n\n var obj = { foo: true };\n\n this.waiters.add(obj, function () {\n assert.ok(true, 'precond - waiter with context is registered');\n return true;\n });\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter without context is registered');\n return true;\n });\n\n this.waiters.check();\n this.waiters.unregister();\n\n (0, _waiters.checkWaiters)();\n });\n\n QUnit.test('checkWaiters returns false if all waiters return true', function (assert) {\n assert.expect(3);\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n\n return true;\n });\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n\n return true;\n });\n\n assert.notOk(this.waiters.check(), 'checkWaiters returns true if all waiters return true');\n });\n\n QUnit.test('checkWaiters returns true if any waiters return false', function (assert) {\n assert.expect(3);\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n\n return true;\n });\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n\n return false;\n });\n\n assert.ok(this.waiters.check(), 'checkWaiters returns false if any waiters return false');\n });\n\n QUnit.test('checkWaiters short circuits after first falsey waiter', function (assert) {\n assert.expect(2);\n\n this.waiters.add(function () {\n assert.ok(true, 'precond - waiter is registered');\n\n return false;\n });\n\n this.waiters.add(function () {\n assert.notOk(true, 'waiter should not be called');\n });\n\n assert.ok(this.waiters.check(), 'checkWaiters returns false if any waiters return false');\n });\n});","QUnit.module('ESLint | ember-testing/tests/test/waiters-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-testing/tests/test/waiters-test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/apply-str.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/apply-str.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/assign.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/assign.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/dictionary.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/dictionary.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/guid.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/guid.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/inspect.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/inspect.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/intern.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/intern.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/invoke.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/invoke.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/lookup-descriptor.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/lookup-descriptor.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/make-array.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/make-array.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/name.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/name.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/owner.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/owner.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/proxy-utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/proxy-utils.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/super.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/super.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/symbol.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/symbol.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/to-string.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/to-string.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-utils/lib/weak-map-utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/lib/weak-map-utils.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/assign_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('Ember.assign');\n\n QUnit.test('merging objects', function () {\n var trgt = { a: 1 };\n var src1 = { b: 2 };\n var src2 = { c: 3 };\n\n (0, _emberUtils.assignPolyfill)(trgt, src1, src2);\n\n deepEqual(trgt, { a: 1, b: 2, c: 3 }, 'assign copies values from one or more source objects to a target object');\n deepEqual(src1, { b: 2 }, 'assign does not change source object 1');\n deepEqual(src2, { c: 3 }, 'assign does not change source object 2');\n });\n\n QUnit.test('merging objects with same property', function () {\n var trgt = { a: 1, b: 1 };\n var src1 = { a: 2, b: 2 };\n var src2 = { a: 3 };\n\n (0, _emberUtils.assignPolyfill)(trgt, src1, src2);\n deepEqual(trgt, { a: 3, b: 2 }, 'properties are overwritten by other objects that have the same properties later in the parameters order');\n });\n\n QUnit.test('null', function () {\n var trgt = { a: 1 };\n\n (0, _emberUtils.assignPolyfill)(trgt, null);\n deepEqual(trgt, { a: 1 }, 'null as a source parameter is ignored');\n });\n\n QUnit.test('undefined', function () {\n var trgt = { a: 1 };\n\n (0, _emberUtils.assignPolyfill)(trgt, null);\n deepEqual(trgt, { a: 1 }, 'undefined as a source parameter is ignored');\n });\n});","QUnit.module('ESLint | ember-utils/tests/assign_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/assign_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/can_invoke_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n var obj = void 0;\n\n QUnit.module('Ember.canInvoke', {\n setup: function () {\n obj = {\n foobar: 'foobar',\n aMethodThatExists: function () {}\n };\n },\n teardown: function () {\n obj = undefined;\n }\n });\n\n QUnit.test('should return false if the object doesn\\'t exist', function () {\n equal((0, _emberUtils.canInvoke)(undefined, 'aMethodThatDoesNotExist'), false);\n });\n\n QUnit.test('should return true for falsy values that have methods', function () {\n equal((0, _emberUtils.canInvoke)(false, 'valueOf'), true);\n equal((0, _emberUtils.canInvoke)('', 'charAt'), true);\n equal((0, _emberUtils.canInvoke)(0, 'toFixed'), true);\n });\n\n QUnit.test('should return true if the method exists on the object', function () {\n equal((0, _emberUtils.canInvoke)(obj, 'aMethodThatExists'), true);\n });\n\n QUnit.test('should return false if the method doesn\\'t exist on the object', function () {\n equal((0, _emberUtils.canInvoke)(obj, 'aMethodThatDoesNotExist'), false);\n });\n\n QUnit.test('should return false if the property exists on the object but is a non-function', function () {\n equal((0, _emberUtils.canInvoke)(obj, 'foobar'), false);\n });\n});","QUnit.module('ESLint | ember-utils/tests/can_invoke_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/can_invoke_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/checkHasSuper_test', ['ember-environment', 'ember-utils'], function (_emberEnvironment, _emberUtils) {\n 'use strict';\n\n QUnit.module('checkHasSuper');\n\n // Only run this test on browsers that we are certain should have function\n // source available. This allows the test suite to continue to pass on other\n // platforms that correctly (for them) fall back to the \"always wrap\" code.\n if (_emberEnvironment.environment.isPhantom || _emberEnvironment.environment.isChrome || _emberEnvironment.environment.isFirefox) {\n QUnit.test('does not super wrap needlessly [GH #12462]', function (assert) {\n assert.notOk((0, _emberUtils.checkHasSuper)(function () {}), 'empty function does not have super');\n });\n }\n});","QUnit.module('ESLint | ember-utils/tests/checkHasSuper_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/checkHasSuper_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/generate_guid_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('Ember.generateGuid');\n\n QUnit.test('Prefix', function () {\n var a = {};\n\n ok((0, _emberUtils.generateGuid)(a, 'tyrell').indexOf('tyrell') > -1, 'guid can be prefixed');\n });\n});","QUnit.module('ESLint | ember-utils/tests/generate_guid_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/generate_guid_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/guid_for_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('guidFor');\n\n function sameGuid(a, b, message) {\n equal((0, _emberUtils.guidFor)(a), (0, _emberUtils.guidFor)(b), message);\n }\n\n function diffGuid(a, b, message) {\n ok((0, _emberUtils.guidFor)(a) !== (0, _emberUtils.guidFor)(b), message);\n }\n\n function nanGuid(obj) {\n var type = typeof obj;\n ok(isNaN(parseInt((0, _emberUtils.guidFor)(obj), 0)), 'guids for ' + type + 'don\\'t parse to numbers');\n }\n\n QUnit.test('Object', function () {\n var a = {};\n var b = {};\n\n sameGuid(a, a, 'same object always yields same guid');\n diffGuid(a, b, 'different objects yield different guids');\n nanGuid(a);\n });\n\n QUnit.test('strings', function () {\n var a = 'string A';\n var aprime = 'string A';\n var b = 'String B';\n\n sameGuid(a, a, 'same string always yields same guid');\n sameGuid(a, aprime, 'identical strings always yield the same guid');\n diffGuid(a, b, 'different strings yield different guids');\n nanGuid(a);\n });\n\n QUnit.test('numbers', function () {\n var a = 23;\n var aprime = 23;\n var b = 34;\n\n sameGuid(a, a, 'same numbers always yields same guid');\n sameGuid(a, aprime, 'identical numbers always yield the same guid');\n diffGuid(a, b, 'different numbers yield different guids');\n nanGuid(a);\n });\n\n QUnit.test('numbers', function () {\n var a = true;\n var aprime = true;\n var b = false;\n\n sameGuid(a, a, 'same booleans always yields same guid');\n sameGuid(a, aprime, 'identical booleans always yield the same guid');\n diffGuid(a, b, 'different boolean yield different guids');\n nanGuid(a);\n nanGuid(b);\n });\n\n QUnit.test('null and undefined', function () {\n var a = null;\n var aprime = null;\n var b = void 0;\n\n sameGuid(a, a, 'null always returns the same guid');\n sameGuid(b, b, 'undefined always returns the same guid');\n sameGuid(a, aprime, 'different nulls return the same guid');\n diffGuid(a, b, 'null and undefined return different guids');\n nanGuid(a);\n nanGuid(b);\n });\n\n QUnit.test('arrays', function () {\n var a = ['a', 'b', 'c'];\n var aprime = ['a', 'b', 'c'];\n var b = ['1', '2', '3'];\n\n sameGuid(a, a, 'same instance always yields same guid');\n diffGuid(a, aprime, 'identical arrays always yield the same guid');\n diffGuid(a, b, 'different arrays yield different guids');\n nanGuid(a);\n });\n});","QUnit.module('ESLint | ember-utils/tests/guid_for_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/guid_for_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/inspect_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n // Symbol is not defined on pre-ES2015 runtimes, so this let's us safely test\n // for it's existence (where a simple `if (Symbol)` would ReferenceError)\n var HAS_NATIVE_SYMBOL = typeof Symbol === 'function';\n\n QUnit.module('Ember.inspect');\n\n QUnit.test('strings', function () {\n equal((0, _emberUtils.inspect)('foo'), 'foo');\n });\n\n QUnit.test('numbers', function () {\n equal((0, _emberUtils.inspect)(2.6), '2.6');\n });\n\n QUnit.test('null', function () {\n equal((0, _emberUtils.inspect)(null), 'null');\n });\n\n QUnit.test('undefined', function () {\n equal((0, _emberUtils.inspect)(undefined), 'undefined');\n });\n\n QUnit.test('true', function () {\n equal((0, _emberUtils.inspect)(true), 'true');\n });\n\n QUnit.test('false', function () {\n equal((0, _emberUtils.inspect)(false), 'false');\n });\n\n QUnit.test('object', function () {\n equal((0, _emberUtils.inspect)({}), '{}');\n equal((0, _emberUtils.inspect)({ foo: 'bar' }), '{foo: bar}');\n equal((0, _emberUtils.inspect)({\n foo: function () {\n return this;\n }\n }), '{foo: function() { ... }}');\n });\n\n QUnit.test('objects without a prototype', function () {\n var prototypelessObj = Object.create(null);\n equal((0, _emberUtils.inspect)({ foo: prototypelessObj }), '{foo: [object Object]}');\n });\n\n QUnit.test('array', function () {\n equal((0, _emberUtils.inspect)([1, 2, 3]), '[1,2,3]');\n });\n\n QUnit.test('regexp', function () {\n equal((0, _emberUtils.inspect)(/regexp/), '/regexp/');\n });\n\n QUnit.test('date', function () {\n var inspected = (0, _emberUtils.inspect)(new Date('Sat Apr 30 2011 13:24:11'));\n ok(inspected.match(/Sat Apr 30/), 'The inspected date has its date');\n ok(inspected.match(/2011/), 'The inspected date has its year');\n ok(inspected.match(/13:24:11/), 'The inspected date has its time');\n });\n\n QUnit.test('inspect outputs the toString() representation of Symbols', function () {\n if (HAS_NATIVE_SYMBOL) {\n var symbol = Symbol('test');\n equal((0, _emberUtils.inspect)(symbol), 'Symbol(test)');\n } else {\n expect(0);\n }\n });\n});","QUnit.module('ESLint | ember-utils/tests/inspect_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/inspect_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/make_array_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('Ember.makeArray');\n\n QUnit.test('undefined', function () {\n deepEqual((0, _emberUtils.makeArray)(), []);\n deepEqual((0, _emberUtils.makeArray)(undefined), []);\n });\n\n QUnit.test('null', function () {\n deepEqual((0, _emberUtils.makeArray)(null), []);\n });\n\n QUnit.test('string', function () {\n deepEqual((0, _emberUtils.makeArray)('lindsay'), ['lindsay']);\n });\n\n QUnit.test('number', function () {\n deepEqual((0, _emberUtils.makeArray)(0), [0]);\n deepEqual((0, _emberUtils.makeArray)(1), [1]);\n });\n\n QUnit.test('array', function () {\n deepEqual((0, _emberUtils.makeArray)([1, 2, 42]), [1, 2, 42]);\n });\n\n QUnit.test('true', function () {\n deepEqual((0, _emberUtils.makeArray)(true), [true]);\n });\n\n QUnit.test('false', function () {\n deepEqual((0, _emberUtils.makeArray)(false), [false]);\n });\n\n QUnit.test('object', function () {\n deepEqual((0, _emberUtils.makeArray)({}), [{}]);\n });\n});","QUnit.module('ESLint | ember-utils/tests/make_array_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/make_array_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/to-string-test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n QUnit.module('ember-utils toString');\n\n QUnit.test('toString uses an object\\'s toString method when available', function () {\n var obj = {\n toString: function () {\n return 'bob';\n }\n };\n\n strictEqual((0, _emberUtils.toString)(obj), 'bob');\n });\n\n QUnit.test('toString falls back to Object.prototype.toString', function () {\n var obj = Object.create(null);\n\n strictEqual((0, _emberUtils.toString)(obj), {}.toString());\n });\n\n QUnit.test('toString does not fail when called on Arrays with objects without toString method', function () {\n var obj = Object.create(null);\n var arr = [obj, 2];\n\n strictEqual((0, _emberUtils.toString)(arr), {}.toString() + ',2');\n });\n});","QUnit.module('ESLint | ember-utils/tests/to-string-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/to-string-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember-utils/tests/try_invoke_test', ['ember-utils'], function (_emberUtils) {\n 'use strict';\n\n var obj = void 0;\n\n QUnit.module('Ember.tryInvoke', {\n setup: function () {\n obj = {\n aMethodThatExists: function () {\n return true;\n },\n aMethodThatTakesArguments: function (arg1, arg2) {\n return arg1 === arg2;\n }\n };\n },\n teardown: function () {\n obj = undefined;\n }\n });\n\n QUnit.test('should return undefined when the object doesn\\'t exist', function () {\n equal((0, _emberUtils.tryInvoke)(undefined, 'aMethodThatDoesNotExist'), undefined);\n });\n\n QUnit.test('should return undefined when asked to perform a method that doesn\\'t exist on the object', function () {\n equal((0, _emberUtils.tryInvoke)(obj, 'aMethodThatDoesNotExist'), undefined);\n });\n\n QUnit.test('should return what the method returns when asked to perform a method that exists on the object', function () {\n equal((0, _emberUtils.tryInvoke)(obj, 'aMethodThatExists'), true);\n });\n\n QUnit.test('should return what the method returns when asked to perform a method that takes arguments and exists on the object', function () {\n equal((0, _emberUtils.tryInvoke)(obj, 'aMethodThatTakesArguments', [true, true]), true);\n });\n});","QUnit.module('ESLint | ember-utils/tests/try_invoke_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-utils/tests/try_invoke_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/compat/attrs.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/compat/attrs.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/compat/fallback-view-registry.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/compat/fallback-view-registry.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/component_lookup.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/component_lookup.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/action_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/action_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/child_views_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/child_views_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/class_names_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/class_names_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/text_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/text_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/view_state_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/view_state_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/mixins/view_support.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/mixins/view_support.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/action_manager.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/action_manager.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/event_dispatcher.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/event_dispatcher.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/ext.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/ext.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/jquery.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/jquery.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/lookup_partial.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/lookup_partial.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/system/utils.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/system/utils.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/utils/lookup-component.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/utils/lookup-component.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/core_view.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/core_view.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states/default.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states/default.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states/destroying.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states/destroying.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states/has_element.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states/has_element.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states/in_dom.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states/in_dom.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember-views/lib/views/states/pre_render.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember-views/lib/views/states/pre_render.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | ember/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/lib/index.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/application_lifecycle_test', ['ember-babel', 'internal-test-helpers', 'ember-application', 'ember-routing', 'ember-glimmer'], function (_emberBabel, _internalTestHelpers, _emberApplication, _emberRouting, _emberGlimmer) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - route hooks', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n _class.prototype.createApplication = function createApplication() {\n var _AutobootApplicationT2;\n\n var application = (_AutobootApplicationT2 = _AutobootApplicationT.prototype.createApplication).call.apply(_AutobootApplicationT2, [this].concat(Array.prototype.slice.call(arguments)));\n this.add('router:main', _emberRouting.Router.extend({\n location: 'none'\n }));\n return application;\n };\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.call(this));\n\n var menuItem = _this.menuItem = {};\n\n _this.runTask(function () {\n _this.createApplication();\n\n var SettingRoute = _emberRouting.Route.extend({\n setupController: function () {\n this.controller.set('selectedMenuItem', menuItem);\n },\n deactivate: function () {\n this.controller.set('selectedMenuItem', null);\n }\n });\n _this.add('route:index', SettingRoute);\n _this.add('route:application', SettingRoute);\n });\n return _this;\n }\n\n _class.prototype['@test Resetting the application allows controller properties to be set when a route deactivates'] = function (assert) {\n var indexController = this.indexController,\n applicationController = this.applicationController;\n\n assert.equal(indexController.get('selectedMenuItem'), this.menuItem);\n assert.equal(applicationController.get('selectedMenuItem'), this.menuItem);\n\n this.application.reset();\n\n assert.equal(indexController.get('selectedMenuItem'), null);\n assert.equal(applicationController.get('selectedMenuItem'), null);\n };\n\n _class.prototype['@test Destroying the application resets the router before the appInstance is destroyed'] = function (assert) {\n var _this2 = this;\n\n var indexController = this.indexController,\n applicationController = this.applicationController;\n\n assert.equal(indexController.get('selectedMenuItem'), this.menuItem);\n assert.equal(applicationController.get('selectedMenuItem'), this.menuItem);\n\n this.runTask(function () {\n _this2.application.destroy();\n });\n\n assert.equal(indexController.get('selectedMenuItem'), null);\n assert.equal(applicationController.get('selectedMenuItem'), null);\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'indexController',\n get: function () {\n return this.applicationInstance.lookup('controller:index');\n }\n }, {\n key: 'applicationController',\n get: function () {\n return this.applicationInstance.lookup('controller:application');\n }\n }]);\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle', function (_AutobootApplicationT3) {\n (0, _emberBabel.inherits)(_class2, _AutobootApplicationT3);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT3.apply(this, arguments));\n }\n\n _class2.prototype.createApplication = function createApplication() {\n var _AutobootApplicationT4;\n\n var application = (_AutobootApplicationT4 = _AutobootApplicationT3.prototype.createApplication).call.apply(_AutobootApplicationT4, [this].concat(Array.prototype.slice.call(arguments)));\n this.add('router:main', _emberRouting.Router.extend({\n location: 'none'\n }));\n return application;\n };\n\n _class2.prototype['@test Destroying a route after the router does create an undestroyed \\'toplevelView\\''] = function (assert) {\n var _this4 = this;\n\n this.runTask(function () {\n _this4.createApplication();\n _this4.addTemplate('index', 'Index!');\n _this4.addTemplate('application', 'Application! {{outlet}}');\n });\n\n var router = this.applicationInstance.lookup('router:main');\n var route = this.applicationInstance.lookup('route:index');\n\n this.runTask(function () {\n return router.destroy();\n });\n equal(router._toplevelView, null, 'the toplevelView was cleared');\n\n this.runTask(function () {\n return route.destroy();\n });\n equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n\n this.runTask(function () {\n return _this4.application.destroy();\n });\n equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n };\n\n _class2.prototype['@test initializers can augment an applications customEvents hash'] = function (assert) {\n var _this5 = this;\n\n assert.expect(1);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.initializer({\n name: 'customize-things',\n initialize: function (application) {\n application.customEvents = {\n wowza: 'wowza'\n };\n }\n });\n\n this.runTask(function () {\n _this5.createApplication({}, MyApplication);\n\n _this5.add('component:foo-bar', _emberGlimmer.Component.extend({\n wowza: function () {\n assert.ok(true, 'fired the event!');\n }\n }));\n\n _this5.addTemplate('application', '{{foo-bar}}');\n _this5.addTemplate('components/foo-bar', '
    ');\n });\n\n this.$('#wowza-thingy').trigger('wowza');\n };\n\n _class2.prototype['@test instanceInitializers can augment an the customEvents hash'] = function (assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n var MyApplication = _emberApplication.Application.extend();\n\n MyApplication.instanceInitializer({\n name: 'customize-things',\n initialize: function (application) {\n application.customEvents = {\n herky: 'jerky'\n };\n }\n });\n this.runTask(function () {\n _this6.createApplication({}, MyApplication);\n\n _this6.add('component:foo-bar', _emberGlimmer.Component.extend({\n jerky: function () {\n assert.ok(true, 'fired the event!');\n }\n }));\n\n _this6.addTemplate('application', '{{foo-bar}}');\n _this6.addTemplate('components/foo-bar', '
    ');\n });\n\n this.$('#herky-thingy').trigger('herky');\n };\n\n return _class2;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/application_lifecycle_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/application_lifecycle_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/component_context_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberGlimmer, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - Component Context', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Components with a block should have the proper content when a template is provided'] = function testComponentsWithABlockShouldHaveTheProperContentWhenATemplateIsProvided(assert) {\n var _this2 = this;\n\n this.addTemplate('application', '\\n
    \\n {{#my-component}}{{text}}{{/my-component}}\\n
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n text: 'inner'\n }),\n template: '{{text}}-{{yield}}'\n });\n\n this.visit('/').then(function () {\n var text = _this2.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test Components with a block should yield the proper content without a template provided'] = function testComponentsWithABlockShouldYieldTheProperContentWithoutATemplateProvided(assert) {\n var _this3 = this;\n\n this.addTemplate('application', '\\n
    \\n {{#my-component}}{{text}}{{/my-component}}\\n
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n text: 'inner'\n })\n });\n\n this.visit('/').then(function () {\n var text = _this3.$('#wrapper').text().trim();\n assert.equal(text, 'outer', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test Components without a block should have the proper content when a template is provided'] = function testComponentsWithoutABlockShouldHaveTheProperContentWhenATemplateIsProvided(assert) {\n var _this4 = this;\n\n this.addTemplate('application', '\\n
    {{my-component}}
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n text: 'inner'\n }),\n template: '{{text}}'\n });\n\n this.visit('/').then(function () {\n var text = _this4.$('#wrapper').text().trim();\n assert.equal(text, 'inner', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test Components without a block should have the proper content'] = function testComponentsWithoutABlockShouldHaveTheProperContent(assert) {\n var _this5 = this;\n\n this.addTemplate('application', '\\n
    {{my-component}}
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$().html('Some text inserted by jQuery');\n }\n })\n });\n\n this.visit('/').then(function () {\n var text = _this5.$('#wrapper').text().trim();\n assert.equal(text, 'Some text inserted by jQuery', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test properties of a component without a template should not collide with internal structures [DEPRECATED]'] = function testPropertiesOfAComponentWithoutATemplateShouldNotCollideWithInternalStructuresDEPRECATED(assert) {\n var _this6 = this;\n\n this.addTemplate('application', '\\n
    {{my-component data=foo}}
    ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer',\n 'foo': 'Some text inserted by jQuery'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n didInsertElement: function () {\n this.$().html(this.get('data'));\n }\n })\n });\n\n this.visit('/').then(function () {\n var text = _this6.$('#wrapper').text().trim();\n assert.equal(text, 'Some text inserted by jQuery', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test attrs property of a component without a template should not collide with internal structures'] = function testAttrsPropertyOfAComponentWithoutATemplateShouldNotCollideWithInternalStructures(assert) {\n var _this7 = this;\n\n this.addTemplate('application', '\\n
    {{my-component attrs=foo}}
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n 'text': 'outer',\n 'foo': 'Some text inserted by jQuery'\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n didInsertElement: function () {\n // FIXME: I'm unsure if this is even the right way to access attrs\n this.$().html(this.get('attrs.attrs.value'));\n }\n })\n });\n\n this.visit('/').then(function () {\n var text = _this7.$('#wrapper').text().trim();\n assert.equal(text, 'Some text inserted by jQuery', 'The component is composed correctly');\n });\n };\n\n _class.prototype['@test Components trigger actions in the parents context when called from within a block'] = function testComponentsTriggerActionsInTheParentsContextWhenCalledFromWithinABlock(assert) {\n var _this8 = this;\n\n this.addTemplate('application', '\\n
    \\n {{#my-component}}\\n Fizzbuzz\\n {{/my-component}}\\n
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n actions: {\n fizzbuzz: function () {\n ok(true, 'action triggered on parent');\n }\n }\n }));\n this.addComponent('my-component', { ComponentClass: _emberGlimmer.Component.extend({}) });\n\n this.visit('/').then(function () {\n _this8.$('#fizzbuzz', '#wrapper').click();\n });\n };\n\n _class.prototype['@test Components trigger actions in the components context when called from within its template'] = function testComponentsTriggerActionsInTheComponentsContextWhenCalledFromWithinItsTemplate(assert) {\n var _this9 = this;\n\n this.addTemplate('application', '\\n
    {{#my-component}}{{text}}{{/my-component}}
    \\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n actions: {\n fizzbuzz: function () {\n ok(false, 'action on the wrong context');\n }\n }\n }));\n this.addComponent('my-component', {\n ComponentClass: _emberGlimmer.Component.extend({\n actions: {\n fizzbuzz: function () {\n ok(true, 'action triggered on component');\n }\n }\n }),\n template: 'Fizzbuzz'\n });\n\n this.visit('/').then(function () {\n _this9.$('#fizzbuzz', '#wrapper').click();\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/component_context_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/component_context_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/component_registration_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberGlimmer, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - Component Registration', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class, _AutobootApplicationT);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.apply(this, arguments));\n }\n\n _class.prototype['@test The helper becomes the body of the component'] = function testTheHelperBecomesTheBodyOfTheComponent(assert) {\n var _this2 = this;\n\n this.runTask(function () {\n _this2.createApplication();\n\n _this2.addTemplate('components/expand-it', '

    hello {{yield}}

    ');\n _this2.addTemplate('application', 'Hello world {{#expand-it}}world{{/expand-it}}');\n });\n\n var text = this.$('div.ember-view > div.ember-view').text().trim();\n assert.equal(text, 'hello world', 'The component is composed correctly');\n };\n\n _class.prototype['@test If a component is registered, it is used'] = function testIfAComponentIsRegisteredItIsUsed(assert) {\n var _this3 = this;\n\n this.runTask(function () {\n _this3.createApplication();\n\n _this3.addTemplate('components/expand-it', '

    hello {{yield}}

    ');\n _this3.addTemplate('application', 'Hello world {{#expand-it}}world{{/expand-it}}');\n\n _this3.applicationInstance.register('component:expand-it', _emberGlimmer.Component.extend({\n classNames: 'testing123'\n }));\n });\n\n var text = this.$('div.testing123').text().trim();\n assert.equal(text, 'hello world', 'The component is composed correctly');\n };\n\n _class.prototype['@test Late-registered components can be rendered with custom `layout` property'] = function testLateRegisteredComponentsCanBeRenderedWithCustomLayoutProperty(assert) {\n var _this4 = this;\n\n this.runTask(function () {\n _this4.createApplication();\n\n _this4.addTemplate('application', '
    there goes {{my-hero}}
    ');\n\n _this4.applicationInstance.register('component:my-hero', _emberGlimmer.Component.extend({\n classNames: 'testing123',\n layout: _this4.compile('watch him as he GOES')\n }));\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'there goes watch him as he GOES', 'The component is composed correctly');\n };\n\n _class.prototype['@test Late-registered components can be rendered with template registered on the container'] = function testLateRegisteredComponentsCanBeRenderedWithTemplateRegisteredOnTheContainer(assert) {\n var _this5 = this;\n\n this.runTask(function () {\n _this5.createApplication();\n\n _this5.addTemplate('application', '
    hello world {{sally-rutherford}}-{{#sally-rutherford}}!!!{{/sally-rutherford}}
    ');\n\n _this5.applicationInstance.register('template:components/sally-rutherford', _this5.compile('funkytowny{{yield}}'));\n _this5.applicationInstance.register('component:sally-rutherford', _emberGlimmer.Component);\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'hello world funkytowny-funkytowny!!!', 'The component is composed correctly');\n };\n\n _class.prototype['@test Late-registered components can be rendered with ONLY the template registered on the container'] = function testLateRegisteredComponentsCanBeRenderedWithONLYTheTemplateRegisteredOnTheContainer(assert) {\n var _this6 = this;\n\n this.runTask(function () {\n _this6.createApplication();\n\n _this6.addTemplate('application', '
    hello world {{borf-snorlax}}-{{#borf-snorlax}}!!!{{/borf-snorlax}}
    ');\n\n _this6.applicationInstance.register('template:components/borf-snorlax', _this6.compile('goodfreakingTIMES{{yield}}'));\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'hello world goodfreakingTIMES-goodfreakingTIMES!!!', 'The component is composed correctly');\n };\n\n _class.prototype['@test Assigning layoutName to a component should setup the template as a layout'] = function testAssigningLayoutNameToAComponentShouldSetupTheTemplateAsALayout(assert) {\n var _this7 = this;\n\n assert.expect(1);\n\n this.runTask(function () {\n _this7.createApplication();\n\n _this7.addTemplate('application', '
    {{#my-component}}{{text}}{{/my-component}}
    ');\n _this7.addTemplate('foo-bar-baz', '{{text}}-{{yield}}');\n\n _this7.applicationInstance.register('controller:application', _emberRuntime.Controller.extend({\n text: 'outer'\n }));\n _this7.applicationInstance.register('component:my-component', _emberGlimmer.Component.extend({\n text: 'inner',\n layoutName: 'foo-bar-baz'\n }));\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n };\n\n _class.prototype['@test Assigning layoutName and layout to a component should use the `layout` value'] = function testAssigningLayoutNameAndLayoutToAComponentShouldUseTheLayoutValue(assert) {\n var _this8 = this;\n\n assert.expect(1);\n\n this.runTask(function () {\n _this8.createApplication();\n\n _this8.addTemplate('application', '
    {{#my-component}}{{text}}{{/my-component}}
    ');\n _this8.addTemplate('foo-bar-baz', 'No way!');\n\n _this8.applicationInstance.register('controller:application', _emberRuntime.Controller.extend({\n text: 'outer'\n }));\n _this8.applicationInstance.register('component:my-component', _emberGlimmer.Component.extend({\n text: 'inner',\n layoutName: 'foo-bar-baz',\n layout: _this8.compile('{{text}}-{{yield}}')\n }));\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n };\n\n _class.prototype['@test Assigning defaultLayout to a component should set it up as a layout if no layout was found [DEPRECATED]'] = function testAssigningDefaultLayoutToAComponentShouldSetItUpAsALayoutIfNoLayoutWasFoundDEPRECATED(assert) {\n var _this9 = this;\n\n assert.expect(2);\n\n expectDeprecation(function () {\n _this9.runTask(function () {\n _this9.createApplication();\n\n _this9.addTemplate('application', '
    {{#my-component}}{{text}}{{/my-component}}
    ');\n\n _this9.applicationInstance.register('controller:application', _emberRuntime.Controller.extend({\n text: 'outer'\n }));\n _this9.applicationInstance.register('component:my-component', _emberGlimmer.Component.extend({\n text: 'inner',\n defaultLayout: _this9.compile('{{text}}-{{yield}}')\n }));\n });\n });\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n };\n\n _class.prototype['@test Assigning defaultLayout to a component should set it up as a layout if layout was found [DEPRECATED]'] = function testAssigningDefaultLayoutToAComponentShouldSetItUpAsALayoutIfLayoutWasFoundDEPRECATED(assert) {\n var _this10 = this;\n\n assert.expect(2);\n\n expectDeprecation(function () {\n _this10.runTask(function () {\n _this10.createApplication();\n\n _this10.addTemplate('application', '
    {{#my-component}}{{text}}{{/my-component}}
    ');\n _this10.addTemplate('components/my-component', '{{text}}-{{yield}}');\n\n _this10.applicationInstance.register('controller:application', _emberRuntime.Controller.extend({\n text: 'outer'\n }));\n _this10.applicationInstance.register('component:my-component', _emberGlimmer.Component.extend({\n text: 'inner',\n defaultLayout: _this10.compile('should not see this!')\n }));\n });\n }, /Specifying `defaultLayout` to .+ is deprecated\\./);\n\n var text = this.$('#wrapper').text().trim();\n assert.equal(text, 'inner-outer', 'The component is composed correctly');\n };\n\n _class.prototype['@test Using name of component that does not exist'] = function testUsingNameOfComponentThatDoesNotExist() {\n var _this11 = this;\n\n expectAssertion(function () {\n _this11.runTask(function () {\n _this11.createApplication();\n\n _this11.addTemplate('application', '
    {{#no-good}} {{/no-good}}
    ');\n });\n }, /.* named \"no-good\" .*/);\n };\n\n return _class;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/component_registration_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/component_registration_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/controller_test', ['ember-babel', 'ember-runtime', 'internal-test-helpers', 'ember-glimmer'], function (_emberBabel, _emberRuntime, _internalTestHelpers, _emberGlimmer) {\n 'use strict';\n\n /*\n In Ember 1.x, controllers subtly affect things like template scope\n and action targets in exciting and often inscrutable ways. This test\n file contains integration tests that verify the correct behavior of\n the many parts of the system that change and rely upon controller scope,\n from the runtime up to the templating layer.\n */\n\n (0, _internalTestHelpers.moduleFor)('Template scoping examples', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Actions inside an outlet go to the associated controller'] = function testActionsInsideAnOutletGoToTheAssociatedController(assert) {\n var _this2 = this;\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n actions: {\n componentAction: function () {\n assert.ok(true, 'controller received the action');\n }\n }\n }));\n\n this.addComponent('component-with-action', {\n ComponentClass: _emberGlimmer.Component.extend({\n classNames: ['component-with-action'],\n click: function () {\n this.sendAction();\n }\n })\n });\n\n this.addTemplate('index', '{{component-with-action action=\"componentAction\"}}');\n\n return this.visit('/').then(function () {\n _this2.runTask(function () {\n return _this2.$('.component-with-action').click();\n });\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/controller_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/controller_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/error_handler_test', ['ember', 'ember-metal'], function (_ember, _emberMetal) {\n 'use strict';\n\n var ONERROR = _ember.default.onerror;\n var ADAPTER = _ember.default.Test && _ember.default.Test.adapter;\n var TESTING = _ember.default.testing;\n\n var WINDOW_ONERROR = void 0;\n\n QUnit.module('error_handler', {\n setup: function () {\n // capturing this outside of module scope to ensure we grab\n // the test frameworks own window.onerror to reset it\n WINDOW_ONERROR = window.onerror;\n },\n teardown: function () {\n _ember.default.onerror = ONERROR;\n _ember.default.testing = TESTING;\n window.onerror = WINDOW_ONERROR;\n if (_ember.default.Test) {\n _ember.default.Test.adapter = ADAPTER;\n }\n }\n });\n\n function runThatThrowsSync() {\n var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Error for testing error handling';\n\n return (0, _emberMetal.run)(function () {\n throw new Error(message);\n });\n }\n\n function runThatThrowsAsync() {\n var message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'Error for testing error handling';\n\n return _emberMetal.run.next(function () {\n throw new Error(message);\n });\n }\n\n test('by default there is no onerror - sync run', function (assert) {\n assert.strictEqual(_ember.default.onerror, undefined, 'precond - there should be no Ember.onerror set by default');\n assert.throws(runThatThrowsSync, Error, 'errors thrown sync are catchable');\n });\n\n test('when Ember.onerror (which rethrows) is registered - sync run', function (assert) {\n assert.expect(2);\n _ember.default.onerror = function (error) {\n assert.ok(true, 'onerror called');\n throw error;\n };\n assert.throws(runThatThrowsSync, Error, 'error is thrown');\n });\n\n test('when Ember.onerror (which does not rethrow) is registered - sync run', function (assert) {\n assert.expect(2);\n _ember.default.onerror = function (error) {\n assert.ok(true, 'onerror called');\n };\n runThatThrowsSync();\n assert.ok(true, 'no error was thrown, Ember.onerror can intercept errors');\n });\n\n if (true) {\n test('when Ember.Test.adapter is registered and error is thrown - sync run', function (assert) {\n assert.expect(1);\n\n _ember.default.Test.adapter = {\n exception: function (error) {\n assert.notOk(true, 'adapter is not called for errors thrown in sync run loops');\n }\n };\n\n assert.throws(runThatThrowsSync, Error);\n });\n\n test('when both Ember.onerror (which rethrows) and Ember.Test.adapter are registered - sync run', function (assert) {\n assert.expect(2);\n\n _ember.default.Test.adapter = {\n exception: function (error) {\n assert.notOk(true, 'adapter is not called for errors thrown in sync run loops');\n }\n };\n\n _ember.default.onerror = function (error) {\n assert.ok(true, 'onerror is called for sync errors even if Ember.Test.adapter is setup');\n throw error;\n };\n\n assert.throws(runThatThrowsSync, Error, 'error is thrown');\n });\n\n test('when both Ember.onerror (which does not rethrow) and Ember.Test.adapter are registered - sync run', function (assert) {\n assert.expect(2);\n\n _ember.default.Test.adapter = {\n exception: function (error) {\n assert.notOk(true, 'adapter is not called for errors thrown in sync run loops');\n }\n };\n\n _ember.default.onerror = function (error) {\n assert.ok(true, 'onerror is called for sync errors even if Ember.Test.adapter is setup');\n };\n\n runThatThrowsSync();\n assert.ok(true, 'no error was thrown, Ember.onerror can intercept errors');\n });\n\n QUnit.test('when Ember.Test.adapter is registered and error is thrown - async run', function (assert) {\n assert.expect(3);\n var done = assert.async();\n\n var caughtInAdapter = void 0,\n caughtInCatch = void 0,\n caughtByWindowOnerror = void 0;\n _ember.default.Test.adapter = {\n exception: function (error) {\n caughtInAdapter = error;\n }\n };\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message;\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n try {\n runThatThrowsAsync();\n } catch (e) {\n caughtInCatch = e;\n }\n\n setTimeout(function () {\n assert.equal(caughtInAdapter, undefined, 'test adapter should never catch errors in run loops');\n assert.equal(caughtInCatch, undefined, 'a \"normal\" try/catch should never catch errors in an async run');\n\n assert.pushResult({\n result: /Error for testing error handling/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `Error for testing error handling`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n done();\n }, 20);\n });\n\n test('when both Ember.onerror and Ember.Test.adapter are registered - async run', function (assert) {\n assert.expect(1);\n var done = assert.async();\n\n _ember.default.Test.adapter = {\n exception: function (error) {\n assert.notOk(true, 'Adapter.exception is not called for errors thrown in run.next');\n }\n };\n\n _ember.default.onerror = function (error) {\n assert.ok(true, 'onerror is invoked for errors thrown in run.next/run.later');\n };\n\n runThatThrowsAsync();\n setTimeout(done, 10);\n });\n }\n\n QUnit.test('does not swallow exceptions by default (Ember.testing = true, no Ember.onerror) - sync run', function (assert) {\n _ember.default.testing = true;\n\n var error = new Error('the error');\n assert.throws(function () {\n _ember.default.run(function () {\n throw error;\n });\n }, error);\n });\n\n QUnit.test('does not swallow exceptions by default (Ember.testing = false, no Ember.onerror) - sync run', function (assert) {\n _ember.default.testing = false;\n var error = new Error('the error');\n assert.throws(function () {\n _ember.default.run(function () {\n throw error;\n });\n }, error);\n });\n\n QUnit.test('does not swallow exceptions (Ember.testing = false, Ember.onerror which rethrows) - sync run', function (assert) {\n assert.expect(2);\n _ember.default.testing = false;\n\n _ember.default.onerror = function (error) {\n assert.ok(true, 'Ember.onerror was called');\n throw error;\n };\n\n var error = new Error('the error');\n assert.throws(function () {\n _ember.default.run(function () {\n throw error;\n });\n }, error);\n });\n\n QUnit.test('Ember.onerror can intercept errors (aka swallow) by not rethrowing (Ember.testing = false) - sync run', function (assert) {\n assert.expect(1);\n _ember.default.testing = false;\n\n _ember.default.onerror = function (error) {\n assert.ok(true, 'Ember.onerror was called');\n };\n\n var error = new Error('the error');\n try {\n _ember.default.run(function () {\n throw error;\n });\n } catch (e) {\n assert.notOk(true, 'Ember.onerror that does not rethrow is intentionally swallowing errors, try / catch wrapping does not see error');\n }\n });\n\n QUnit.test('does not swallow exceptions by default (Ember.testing = true, no Ember.onerror) - async run', function (assert) {\n var done = assert.async();\n var caughtByWindowOnerror = void 0;\n\n _ember.default.testing = true;\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message;\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n _ember.default.run.later(function () {\n throw new Error('the error');\n }, 10);\n\n setTimeout(function () {\n assert.pushResult({\n result: /the error/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n done();\n }, 20);\n });\n\n QUnit.test('does not swallow exceptions by default (Ember.testing = false, no Ember.onerror) - async run', function (assert) {\n var done = assert.async();\n var caughtByWindowOnerror = void 0;\n\n _ember.default.testing = false;\n\n window.onerror = function (message) {\n caughtByWindowOnerror = message;\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n _ember.default.run.later(function () {\n throw new Error('the error');\n }, 10);\n\n setTimeout(function () {\n assert.pushResult({\n result: /the error/.test(caughtByWindowOnerror),\n actual: caughtByWindowOnerror,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n done();\n }, 20);\n });\n\n QUnit.test('Ember.onerror can intercept errors (aka swallow) by not rethrowing (Ember.testing = false) - async run', function (assert) {\n var done = assert.async();\n\n _ember.default.testing = false;\n\n window.onerror = function (message) {\n assert.notOk(true, 'window.onerror is never invoked when Ember.onerror intentionally swallows errors');\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n var thrown = new Error('the error');\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called with the error');\n };\n\n _ember.default.run.later(function () {\n throw thrown;\n }, 10);\n\n setTimeout(done, 20);\n });\n\n function generateRSVPErrorHandlingTests(message, generatePromise) {\n var timeout = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 10;\n\n test(message + ' when Ember.onerror which does not rethrow is present - rsvp', function (assert) {\n assert.expect(1);\n\n var thrown = new Error('the error');\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when Ember.onerror which does rethrow is present - rsvp', function (assert) {\n assert.expect(2);\n\n var thrown = new Error('the error');\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n };\n\n window.onerror = function (message) {\n assert.pushResult({\n result: /the error/.test(message),\n actual: message,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when Ember.onerror which does not rethrow is present (Ember.testing = false) - rsvp', function (assert) {\n assert.expect(1);\n\n _ember.default.testing = false;\n var thrown = new Error('the error');\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when Ember.onerror which does rethrow is present (Ember.testing = false) - rsvp', function (assert) {\n assert.expect(2);\n\n _ember.default.testing = false;\n var thrown = new Error('the error');\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises');\n throw error;\n };\n\n window.onerror = function (message) {\n assert.pushResult({\n result: /the error/.test(message),\n actual: message,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n if (true) {\n test(message + ' when Ember.Test.adapter without `exception` method is present - rsvp', function (assert) {\n assert.expect(1);\n\n var thrown = new Error('the error');\n _ember.default.Test.adapter = _ember.default.Test.QUnitAdapter.create({\n exception: undefined\n });\n\n window.onerror = function (message) {\n assert.pushResult({\n result: /the error/.test(message),\n actual: message,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n\n // prevent \"bubbling\" and therefore failing the test\n return true;\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when both Ember.onerror and Ember.Test.adapter without `exception` method are present - rsvp', function (assert) {\n assert.expect(1);\n\n var thrown = new Error('the error');\n _ember.default.Test.adapter = _ember.default.Test.QUnitAdapter.create({\n exception: undefined\n });\n\n _ember.default.onerror = function (error) {\n assert.pushResult({\n result: /the error/.test(error.message),\n actual: error.message,\n expected: 'to include `the error`',\n message: 'error should bubble out to window.onerror, and therefore fail tests (due to QUnit implementing window.onerror)'\n });\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when Ember.Test.adapter is present - rsvp', function (assert) {\n assert.expect(1);\n\n var thrown = new Error('the error');\n _ember.default.Test.adapter = _ember.default.Test.QUnitAdapter.create({\n exception: function (error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n }\n });\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when both Ember.onerror and Ember.Test.adapter are present - rsvp', function (assert) {\n assert.expect(1);\n\n var thrown = new Error('the error');\n _ember.default.Test.adapter = _ember.default.Test.QUnitAdapter.create({\n exception: function (error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n }\n });\n\n _ember.default.onerror = function (error) {\n assert.notOk(true, 'Ember.onerror is not called if Test.adapter does not rethrow');\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n\n test(message + ' when both Ember.onerror and Ember.Test.adapter are present - rsvp', function (assert) {\n assert.expect(2);\n\n var thrown = new Error('the error');\n _ember.default.Test.adapter = _ember.default.Test.QUnitAdapter.create({\n exception: function (error) {\n assert.strictEqual(error, thrown, 'Adapter.exception is called for errors thrown in RSVP promises');\n throw error;\n }\n });\n\n _ember.default.onerror = function (error) {\n assert.strictEqual(error, thrown, 'Ember.onerror is called for errors thrown in RSVP promises if Test.adapter rethrows');\n };\n\n generatePromise(thrown);\n\n // RSVP.Promise's are configured to settle within the run loop, this\n // ensures that run loop has completed\n return new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, timeout);\n });\n });\n }\n }\n\n generateRSVPErrorHandlingTests('errors in promise constructor', function (error) {\n new _ember.default.RSVP.Promise(function () {\n throw error;\n });\n });\n\n generateRSVPErrorHandlingTests('errors in promise .then callback', function (error) {\n _ember.default.RSVP.resolve().then(function () {\n throw error;\n });\n });\n\n generateRSVPErrorHandlingTests('errors in async promise .then callback', function (error) {\n new _ember.default.RSVP.Promise(function (resolve) {\n return setTimeout(resolve, 10);\n }).then(function () {\n throw error;\n });\n }, 20);\n});","QUnit.module('ESLint | ember/tests/error_handler_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/error_handler_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/global-api-test', ['ember-metal', 'ember-runtime'], function (_emberMetal, _emberRuntime) {\n 'use strict';\n\n QUnit.module('Global API Tests');\n\n function confirmExport(property, internal) {\n QUnit.test('confirm ' + property + ' is exported', function () {\n var theExport = (0, _emberMetal.get)(window, property);\n ok(theExport + ' is exported');\n if (internal !== undefined) {\n equal(theExport, internal, theExport + ' is exported properly');\n }\n });\n }\n\n confirmExport('Ember.DefaultResolver');\n confirmExport('Ember.generateController');\n confirmExport('Ember.Helper');\n confirmExport('Ember.Helper.helper');\n confirmExport('Ember.isArray', _emberRuntime.isArray);\n});","QUnit.module('ESLint | ember/tests/global-api-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/global-api-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/helpers/helper_registration_test', ['ember-babel', 'internal-test-helpers', 'ember-runtime', 'ember-glimmer'], function (_emberBabel, _internalTestHelpers, _emberRuntime, _emberGlimmer) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Application Lifecycle - Helper Registration', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Unbound dashed helpers registered on the container can be late-invoked'] = function testUnboundDashedHelpersRegisteredOnTheContainerCanBeLateInvoked(assert) {\n var _this2 = this;\n\n this.addTemplate('application', '
    {{x-borf}} {{x-borf \\'YES\\'}}
    ');\n\n var myHelper = (0, _emberGlimmer.helper)(function (params) {\n return params[0] || 'BORF';\n });\n this.application.register('helper:x-borf', myHelper);\n\n return this.visit('/').then(function () {\n assert.equal(_this2.$('#wrapper').text(), 'BORF YES', 'The helper was invoked from the container');\n });\n };\n\n _class.prototype['@test Bound helpers registered on the container can be late-invoked'] = function testBoundHelpersRegisteredOnTheContainerCanBeLateInvoked(assert) {\n var _this3 = this;\n\n this.addTemplate('application', '
    {{x-reverse}} {{x-reverse foo}}
    ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n foo: 'alex'\n }));\n\n this.application.register('helper:x-reverse', (0, _emberGlimmer.helper)(function (_ref) {\n var value = _ref[0];\n\n return value ? value.split('').reverse().join('') : '--';\n }));\n\n return this.visit('/').then(function () {\n assert.equal(_this3.$('#wrapper').text(), '-- xela', 'The bound helper was invoked from the container');\n });\n };\n\n _class.prototype['@test Undashed helpers registered on the container can be invoked'] = function testUndashedHelpersRegisteredOnTheContainerCanBeInvoked(assert) {\n var _this4 = this;\n\n this.addTemplate('application', '
    {{omg}}|{{yorp \\'boo\\'}}|{{yorp \\'ya\\'}}
    ');\n\n this.application.register('helper:omg', (0, _emberGlimmer.helper)(function () {\n return 'OMG';\n }));\n\n this.application.register('helper:yorp', (0, _emberGlimmer.helper)(function (_ref2) {\n var value = _ref2[0];\n return value;\n }));\n\n return this.visit('/').then(function () {\n assert.equal(_this4.$('#wrapper').text(), 'OMG|boo|ya', 'The helper was invoked from the container');\n });\n };\n\n _class.prototype['@test Helpers can receive injections'] = function testHelpersCanReceiveInjections(assert) {\n this.addTemplate('application', '
    {{full-name}}
    ');\n\n var serviceCalled = false;\n\n this.add('service:name-builder', _emberRuntime.Service.extend({\n build: function () {\n serviceCalled = true;\n }\n }));\n\n this.add('helper:full-name', _emberGlimmer.Helper.extend({\n nameBuilder: _emberRuntime.inject.service('name-builder'),\n compute: function () {\n this.get('nameBuilder').build();\n }\n }));\n\n return this.visit('/').then(function () {\n assert.ok(serviceCalled, 'service was injected, method called');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/helpers/helper_registration_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/helpers/helper_registration_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/helpers/link_to_test', ['ember-babel', 'ember-console', 'internal-test-helpers', 'ember-runtime', 'ember-metal', 'ember-routing', 'ember-views', 'ember/features'], function (_emberBabel, _emberConsole, _internalTestHelpers, _emberRuntime, _emberMetal, _emberRouting, _emberViews, _features) {\n 'use strict';\n\n // IE includes the host name\n function normalizeUrl(url) {\n return url.replace(/https?:\\/\\/[^\\/]+/, '');\n }\n\n function shouldNotBeActive(assert, element) {\n checkActive(assert, element, false);\n }\n\n function shouldBeActive(assert, element) {\n checkActive(assert, element, true);\n }\n\n function checkActive(assert, element, active) {\n var classList = element.attr('class');\n assert.equal(classList.indexOf('active') > -1, active, element + ' active should be ' + active);\n }\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper - basic tests', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.router.map(function () {\n this.route('about');\n });\n\n _this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'index\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n _this.addTemplate('about', '\\n

    About

    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n {{#link-to \\'about\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n return _this;\n }\n\n _class.prototype['@test The {{link-to}} helper moves into the named route'] = function testTheLinkToHelperMovesIntoTheNamedRoute(assert) {\n this.visit('/');\n assert.equal(this.$('h3:contains(Home)').length, 1, 'The home template was rendered');\n assert.equal(this.$('#self-link.active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#about-link:not(.active)').length, 1, 'The other link was rendered without active class');\n\n this.click('#about-link');\n\n assert.equal(this.$('h3:contains(About)').length, 1, 'The about template was rendered');\n assert.equal(this.$('#self-link.active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#home-link:not(.active)').length, 1, 'The other link was rendered without active class');\n };\n\n _class.prototype['@test the {{link-to}} helper doesn\\'t add an href when the tagName isn\\'t \\'a\\''] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \\'about\\' id=\\'about-link\\' tagName=\\'div\\'}}About{{/link-to}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#about-link').attr('href'), undefined, 'there is no href attribute');\n };\n\n _class.prototype['@test the {{link-to}} applies a \\'disabled\\' class when disabled'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link-static\" disabledWhen=\"shouldDisable\"}}About{{/link-to}}\\n {{#link-to \"about\" id=\"about-link-dynamic\" disabledWhen=dynamicDisabledWhen}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n shouldDisable: true,\n dynamicDisabledWhen: 'shouldDisable'\n }));\n\n this.visit('/');\n\n assert.equal(this.$('#about-link-static.disabled').length, 1, 'The static link is disabled when its disabledWhen is true');\n assert.equal(this.$('#about-link-dynamic.disabled').length, 1, 'The dynamic link is disabled when its disabledWhen is true');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('dynamicDisabledWhen', false);\n });\n\n assert.equal(this.$('#about-link-dynamic.disabled').length, 0, 'The dynamic link is re-enabled when its disabledWhen becomes false');\n };\n\n _class.prototype['@test the {{link-to}} doesn\\'t apply a \\'disabled\\' class if disabledWhen is not provided'] = function (assert) {\n this.addTemplate('index', '{{#link-to \"about\" id=\"about-link\"}}About{{/link-to}}');\n\n this.visit('/');\n\n assert.ok(!this.$('#about-link').hasClass('disabled'), 'The link is not disabled if disabledWhen not provided');\n };\n\n _class.prototype['@test the {{link-to}} helper supports a custom disabledClass'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link\" disabledWhen=true disabledClass=\"do-not-want\"}}About{{/link-to}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#about-link.do-not-want').length, 1, 'The link can apply a custom disabled class');\n };\n\n _class.prototype['@test the {{link-to}} helper supports a custom disabledClass set via bound param'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link\" disabledWhen=true disabledClass=disabledClass}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n disabledClass: 'do-not-want'\n }));\n\n this.visit('/');\n\n assert.equal(this.$('#about-link.do-not-want').length, 1, 'The link can apply a custom disabled class via bound param');\n };\n\n _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabledWhen'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link\" disabledWhen=true}}About{{/link-to}}\\n ');\n\n this.visit('/');\n this.click('#about-link');\n\n assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');\n };\n\n _class.prototype['@test the {{link-to}} helper does not respond to clicks when disabled'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link\" disabled=true}}About{{/link-to}}\\n ');\n\n this.visit('/');\n this.click('#about-link');\n\n assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');\n };\n\n _class.prototype['@test the {{link-to}} helper responds to clicks according to its disabledWhen bound param'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \"about\" id=\"about-link\" disabledWhen=disabledWhen}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n disabledWhen: true\n }));\n\n this.visit('/');\n\n this.click('#about-link');\n\n assert.equal(this.$('h3:contains(About)').length, 0, 'Transitioning did not occur');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('disabledWhen', false);\n });\n\n this.click('#about-link');\n\n assert.equal(this.$('h3:contains(About)').length, 1, 'Transitioning did occur when disabledWhen became false');\n };\n\n _class.prototype['@test The {{link-to}} helper supports a custom activeClass'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'index\\' id=\\'self-link\\' activeClass=\\'zomg-active\\'}}Self{{/link-to}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('h3:contains(Home)').length, 1, 'The home template was rendered');\n assert.equal(this.$('#self-link.zomg-active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#about-link:not(.active)').length, 1, 'The other link was rendered without active class');\n };\n\n _class.prototype['@test The {{link-to}} helper supports a custom activeClass from a bound param'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'index\\' id=\\'self-link\\' activeClass=activeClass}}Self{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n activeClass: 'zomg-active'\n }));\n\n this.visit('/');\n\n assert.equal(this.$('h3:contains(Home)').length, 1, 'The home template was rendered');\n assert.equal(this.$('#self-link.zomg-active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#about-link:not(.active)').length, 1, 'The other link was rendered without active class');\n };\n\n _class.prototype['@test The {{link-to}} helper supports \\'classNameBindings\\' with custom values [GH #11699]'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\' classNameBindings=\\'foo:foo-is-true:foo-is-false\\'}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n foo: false\n }));\n\n this.visit('/');\n\n assert.equal(this.$('#about-link.foo-is-false').length, 1, 'The about-link was rendered with the falsy class');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('foo', true);\n });\n\n assert.equal(this.$('#about-link.foo-is-true').length, 1, 'The about-link was rendered with the truthy class after toggling the property');\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper - location hooks', function (_ApplicationTestCase2) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTestCase2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase2.call(this));\n\n _this2.updateCount = 0;\n _this2.replaceCount = 0;\n\n var testContext = _this2;\n _this2.add('location:none', _emberRouting.NoneLocation.extend({\n setURL: function () {\n testContext.updateCount++;\n return this._super.apply(this, arguments);\n },\n replaceURL: function () {\n testContext.replaceCount++;\n return this._super.apply(this, arguments);\n }\n }));\n\n _this2.router.map(function () {\n this.route('about');\n });\n\n _this2.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'index\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n _this2.addTemplate('about', '\\n

    About

    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n {{#link-to \\'about\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n return _this2;\n }\n\n _class2.prototype.visit = function visit() {\n var _ApplicationTestCase3;\n\n (_ApplicationTestCase3 = _ApplicationTestCase2.prototype.visit).call.apply(_ApplicationTestCase3, [this].concat(Array.prototype.slice.call(arguments)));\n this.updateCountAfterVisit = this.updateCount;\n this.replaceCountAfterVisit = this.replaceCount;\n };\n\n _class2.prototype['@test The {{link-to}} helper supports URL replacement'] = function testTheLinkToHelperSupportsURLReplacement(assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\' replace=true}}About{{/link-to}}\\n ');\n\n this.visit('/');\n this.click('#about-link');\n\n assert.equal(this.updateCount, this.updateCountAfterVisit, 'setURL should not be called');\n assert.equal(this.replaceCount, this.replaceCountAfterVisit + 1, 'replaceURL should be called once');\n };\n\n _class2.prototype['@test The {{link-to}} helper supports URL replacement via replace=boundTruthyThing'] = function testTheLinkToHelperSupportsURLReplacementViaReplaceBoundTruthyThing(assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\' replace=boundTruthyThing}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n boundTruthyThing: true\n }));\n\n this.visit('/');\n this.click('#about-link');\n\n assert.equal(this.updateCount, this.updateCountAfterVisit, 'setURL should not be called');\n assert.equal(this.replaceCount, this.replaceCountAfterVisit + 1, 'replaceURL should be called once');\n };\n\n _class2.prototype['@test The {{link-to}} helper supports setting replace=boundFalseyThing'] = function testTheLinkToHelperSupportsSettingReplaceBoundFalseyThing(assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\' replace=boundFalseyThing}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n boundFalseyThing: false\n }));\n\n this.visit('/');\n this.click('#about-link');\n\n assert.equal(this.updateCount, this.updateCountAfterVisit + 1, 'setURL should be called');\n assert.equal(this.replaceCount, this.replaceCountAfterVisit, 'replaceURL should not be called');\n };\n\n return _class2;\n }(_internalTestHelpers.ApplicationTestCase));\n\n if (_features.EMBER_IMPROVED_INSTRUMENTATION) {\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper with EMBER_IMPROVED_INSTRUMENTATION', function (_ApplicationTestCase4) {\n (0, _emberBabel.inherits)(_class3, _ApplicationTestCase4);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this3 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase4.call(this));\n\n _this3.router.map(function () {\n this.route('about');\n });\n\n _this3.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'index\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n _this3.addTemplate('about', '\\n

    About

    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n {{#link-to \\'about\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n\n _this3.visit('/');\n return _this3;\n }\n\n _class3.prototype['@test The {{link-to}} helper fires an interaction event'] = function testTheLinkToHelperFiresAnInteractionEvent(assert) {\n assert.expect(2);\n\n (0, _emberMetal.instrumentationSubscribe)('interaction.link-to', {\n before: function () {\n assert.ok(true, 'instrumentation subscriber was called');\n },\n after: function () {\n assert.ok(true, 'instrumentation subscriber was called');\n }\n });\n\n this.click('#about-link');\n };\n\n _class3.prototype['@test The {{link-to}} helper interaction event includes the route name'] = function testTheLinkToHelperInteractionEventIncludesTheRouteName(assert) {\n assert.expect(2);\n\n (0, _emberMetal.instrumentationSubscribe)('interaction.link-to', {\n before: function (name, timestamp, _ref) {\n var routeName = _ref.routeName;\n\n assert.equal(routeName, 'about', 'instrumentation subscriber was passed route name');\n },\n after: function (name, timestamp, _ref2) {\n var routeName = _ref2.routeName;\n\n assert.equal(routeName, 'about', 'instrumentation subscriber was passed route name');\n }\n });\n\n this.click('#about-link');\n };\n\n _class3.prototype['@test The {{link-to}} helper interaction event includes the transition in the after hook'] = function testTheLinkToHelperInteractionEventIncludesTheTransitionInTheAfterHook(assert) {\n assert.expect(1);\n\n (0, _emberMetal.instrumentationSubscribe)('interaction.link-to', {\n before: function () {},\n after: function (name, timestamp, _ref3) {\n var transition = _ref3.transition;\n\n assert.equal(transition.targetName, 'about', 'instrumentation subscriber was passed route name');\n }\n });\n\n this.click('#about-link');\n };\n\n return _class3;\n }(_internalTestHelpers.ApplicationTestCase));\n }\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper - nested routes and link-to arguments', function (_ApplicationTestCase5) {\n (0, _emberBabel.inherits)(_class4, _ApplicationTestCase5);\n\n function _class4() {\n (0, _emberBabel.classCallCheck)(this, _class4);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase5.apply(this, arguments));\n }\n\n _class4.prototype['@test The {{link-to}} helper supports leaving off .index for nested routes'] = function testTheLinkToHelperSupportsLeavingOffIndexForNestedRoutes(assert) {\n this.router.map(function () {\n this.route('about', function () {\n this.route('item');\n });\n });\n\n this.addTemplate('about', '

    About

    {{outlet}}');\n this.addTemplate('about.index', '
    Index
    ');\n this.addTemplate('about.item', '
    {{#link-to \\'about\\'}}About{{/link-to}}
    ');\n\n this.visit('/about/item');\n\n assert.equal(normalizeUrl(this.$('#item a').attr('href')), '/about');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports currentWhen (DEPRECATED)'] = function testTheLinkToHelperSupportsCurrentWhenDEPRECATED(assert) {\n expectDeprecation('Usage of `currentWhen` is deprecated, use `current-when` instead.');\n\n this.router.map(function () {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n this.route('item');\n });\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '\\n {{#link-to \\'item\\' id=\\'other-link\\' currentWhen=\\'index\\'}}ITEM{{/link-to}}\\n ');\n\n this.visit('/about');\n\n assert.equal(this.$('#other-link.active').length, 1, 'The link is active since current-when is a parent route');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports custom, nested, current-when'] = function (assert) {\n this.router.map(function () {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n\n this.route('item');\n });\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '\\n {{#link-to \\'item\\' id=\\'other-link\\' current-when=\\'index\\'}}ITEM{{/link-to}}\\n ');\n\n this.visit('/about');\n\n equal(this.$('#other-link.active').length, 1, 'The link is active since current-when is a parent route');\n };\n\n _class4.prototype['@test The {{link-to}} helper does not disregard current-when when it is given explicitly for a route'] = function (assert) {\n this.router.map(function () {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n\n this.route('items', function () {\n this.route('item');\n });\n });\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '\\n {{#link-to \\'items\\' id=\\'other-link\\' current-when=\\'index\\'}}ITEM{{/link-to}}\\n ');\n\n this.visit('/about');\n\n assert.equal(this.$('#other-link.active').length, 1, 'The link is active when current-when is given for explicitly for a route');\n };\n\n _class4.prototype['@test The {{link-to}} helper does not disregard current-when when it is set via a bound param'] = function testTheLinkToHelperDoesNotDisregardCurrentWhenWhenItIsSetViaABoundParam(assert) {\n this.router.map(function () {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n\n this.route('items', function () {\n this.route('item');\n });\n });\n\n this.add('controller:index.about', _emberRuntime.Controller.extend({\n currentWhen: 'index'\n }));\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '{{#link-to \\'items\\' id=\\'other-link\\' current-when=currentWhen}}ITEM{{/link-to}}');\n\n this.visit('/about');\n\n assert.equal(this.$('#other-link.active').length, 1, 'The link is active when current-when is given for explicitly for a route');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports multiple current-when routes'] = function testTheLinkToHelperSupportsMultipleCurrentWhenRoutes(assert) {\n this.router.map(function () {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n this.route('item');\n this.route('foo');\n });\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '{{#link-to \\'item\\' id=\\'link1\\' current-when=\\'item index\\'}}ITEM{{/link-to}}');\n this.addTemplate('item', '{{#link-to \\'item\\' id=\\'link2\\' current-when=\\'item index\\'}}ITEM{{/link-to}}');\n this.addTemplate('foo', '{{#link-to \\'item\\' id=\\'link3\\' current-when=\\'item index\\'}}ITEM{{/link-to}}');\n\n this.visit('/about');\n\n assert.equal(this.$('#link1.active').length, 1, 'The link is active since current-when contains the parent route');\n\n this.visit('/item');\n\n assert.equal(this.$('#link2.active').length, 1, 'The link is active since you are on the active route');\n\n this.visit('/foo');\n\n assert.equal(this.$('#link3.active').length, 0, 'The link is not active since current-when does not contain the active route');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports boolean values for current-when'] = function testTheLinkToHelperSupportsBooleanValuesForCurrentWhen(assert) {\n this.router.map(function (match) {\n this.route('index', { path: '/' }, function () {\n this.route('about');\n });\n this.route('item');\n });\n\n this.addTemplate('index', '

    Home

    {{outlet}}');\n this.addTemplate('index.about', '{{#link-to \\'item\\' id=\\'other-link\\' current-when=true}}ITEM{{/link-to}}');\n\n this.visit('/about');\n\n assert.equal(this.$('#other-link').length, 1, 'The link is active since current-when is true');\n };\n\n _class4.prototype['@test The {{link-to}} helper defaults to bubbling'] = function testTheLinkToHelperDefaultsToBubbling(assert) {\n this.addTemplate('about', '\\n
    \\n {{#link-to \\'about.contact\\' id=\\'about-contact\\'}}About{{/link-to}}\\n
    \\n {{outlet}}\\n ');\n this.addTemplate('about.contact', '\\n

    Contact

    \\n ');\n\n this.router.map(function () {\n this.route('about', function () {\n this.route('contact');\n });\n });\n\n var hidden = 0;\n\n this.add('route:about', _emberRouting.Route.extend({\n actions: {\n hide: function () {\n hidden++;\n }\n }\n }));\n\n this.visit('/about');\n\n this.click('#about-contact');\n\n assert.equal(this.$('#contact').text(), 'Contact', 'precond - the link worked');\n\n assert.equal(hidden, 1, 'The link bubbles');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports bubbles=false'] = function (assert) {\n this.addTemplate('about', '\\n
    \\n {{#link-to \\'about.contact\\' id=\\'about-contact\\' bubbles=false}}\\n About\\n {{/link-to}}\\n
    \\n {{outlet}}\\n ');\n this.addTemplate('about.contact', '

    Contact

    ');\n\n this.router.map(function () {\n this.route('about', function () {\n this.route('contact');\n });\n });\n\n var hidden = 0;\n\n this.add('route:about', _emberRouting.Route.extend({\n actions: {\n hide: function () {\n hidden++;\n }\n }\n }));\n\n this.visit('/about');\n\n this.click('#about-contact');\n\n assert.equal(this.$('#contact').text(), 'Contact', 'precond - the link worked');\n\n assert.equal(hidden, 0, \"The link didn't bubble\");\n };\n\n _class4.prototype['@test The {{link-to}} helper supports bubbles=boundFalseyThing'] = function (assert) {\n this.addTemplate('about', '\\n
    \\n {{#link-to \\'about.contact\\' id=\\'about-contact\\' bubbles=boundFalseyThing}}\\n About\\n {{/link-to}}\\n
    \\n {{outlet}}\\n ');\n this.addTemplate('about.contact', '

    Contact

    ');\n\n this.add('controller:about', _emberRuntime.Controller.extend({\n boundFalseyThing: false\n }));\n\n this.router.map(function () {\n this.route('about', function () {\n this.route('contact');\n });\n });\n\n var hidden = 0;\n\n this.add('route:about', _emberRouting.Route.extend({\n actions: {\n hide: function () {\n hidden++;\n }\n }\n }));\n\n this.visit('/about');\n this.click('#about-contact');\n\n assert.equal(this.$('#contact').text(), 'Contact', 'precond - the link worked');\n assert.equal(hidden, 0, \"The link didn't bubble\");\n };\n\n _class4.prototype['@test The {{link-to}} helper moves into the named route with context'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n this.route('item', { path: '/item/:id' });\n });\n\n this.addTemplate('about', '\\n

    List

    \\n
      \\n {{#each model as |person|}}\\n
    • \\n {{#link-to \\'item\\' person}}\\n {{person.name}}\\n {{/link-to}}\\n
    • \\n {{/each}}\\n
    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n ');\n\n this.addTemplate('item', '\\n

    Item

    \\n

    {{model.name}}

    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n ');\n\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n ');\n\n this.add('route:about', _emberRouting.Route.extend({\n model: function () {\n return [{ id: 'yehuda', name: 'Yehuda Katz' }, { id: 'tom', name: 'Tom Dale' }, { id: 'erik', name: 'Erik Brynroflsson' }];\n }\n }));\n\n this.visit('/about');\n\n assert.equal(this.$('h3:contains(List)').length, 1, 'The home template was rendered');\n assert.equal(normalizeUrl(this.$('#home-link').attr('href')), '/', 'The home link points back at /');\n\n this.click('li a:contains(Yehuda)');\n\n assert.equal(this.$('h3:contains(Item)').length, 1, 'The item template was rendered');\n assert.equal(this.$('p').text(), 'Yehuda Katz', 'The name is correct');\n\n this.click('#home-link');\n this.click('#about-link');\n\n assert.equal(normalizeUrl(this.$('li a:contains(Yehuda)').attr('href')), '/item/yehuda');\n assert.equal(normalizeUrl(this.$('li a:contains(Tom)').attr('href')), '/item/tom');\n assert.equal(normalizeUrl(this.$('li a:contains(Erik)').attr('href')), '/item/erik');\n\n this.click('li a:contains(Erik)');\n\n assert.equal(this.$('h3:contains(Item)').length, 1, 'The item template was rendered');\n assert.equal(this.$('p').text(), 'Erik Brynroflsson', 'The name is correct');\n };\n\n _class4.prototype['@test The {{link-to}} helper binds some anchor html tag common attributes'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'index\\' id=\\'self-link\\' title=\\'title-attr\\' rel=\\'rel-attr\\' tabindex=\\'-1\\'}}\\n Self\\n {{/link-to}}\\n ');\n\n this.visit('/');\n\n var link = this.$('#self-link');\n assert.equal(link.attr('title'), 'title-attr', 'The self-link contains title attribute');\n assert.equal(link.attr('rel'), 'rel-attr', 'The self-link contains rel attribute');\n assert.equal(link.attr('tabindex'), '-1', 'The self-link contains tabindex attribute');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports \\'target\\' attribute'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'index\\' id=\\'self-link\\' target=\\'_blank\\'}}Self{{/link-to}}\\n ');\n\n this.visit('/');\n\n var link = this.$('#self-link');\n assert.equal(link.attr('target'), '_blank', 'The self-link contains `target` attribute');\n };\n\n _class4.prototype['@test The {{link-to}} helper supports \\'target\\' attribute specified as a bound param'] = function (assert) {\n this.addTemplate('index', '

    Home

    {{#link-to \\'index\\' id=\\'self-link\\' target=boundLinkTarget}}Self{{/link-to}}');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n boundLinkTarget: '_blank'\n }));\n\n this.visit('/');\n\n var link = this.$('#self-link');\n assert.equal(link.attr('target'), '_blank', 'The self-link contains `target` attribute');\n };\n\n _class4.prototype['@test the {{link-to}} helper calls preventDefault'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n ');\n\n this.visit('/');\n\n var event = _emberViews.jQuery.Event('click');\n this.$('#about-link').trigger(event);\n\n assert.equal(event.isDefaultPrevented(), true, 'should preventDefault');\n };\n\n _class4.prototype['@test the {{link-to}} helper does not call preventDefault if \\'preventDefault=false\\' is passed as an option'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to \\'about\\' id=\\'about-link\\' preventDefault=false}}About{{/link-to}}\\n ');\n\n this.visit('/');\n\n var event = _emberViews.jQuery.Event('click');\n this.$('#about-link').trigger(event);\n\n assert.equal(event.isDefaultPrevented(), false, 'should not preventDefault');\n };\n\n _class4.prototype['@test the {{link-to}} helper does not call preventDefault if \\'preventDefault=boundFalseyThing\\' is passed as an option'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to \\'about\\' id=\\'about-link\\' preventDefault=boundFalseyThing}}About{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n boundFalseyThing: false\n }));\n\n this.visit('/');\n\n var event = _emberViews.jQuery.Event('click');\n this.$('#about-link').trigger(event);\n\n equal(event.isDefaultPrevented(), false, 'should not preventDefault');\n };\n\n _class4.prototype['@test The {{link-to}} helper does not call preventDefault if \\'target\\' attribute is provided'] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'index\\' id=\\'self-link\\' target=\\'_blank\\'}}Self{{/link-to}}\\n ');\n\n this.visit('/');\n\n var event = _emberViews.jQuery.Event('click');\n this.$('#self-link').trigger(event);\n\n assert.equal(event.isDefaultPrevented(), false, 'should not preventDefault when target attribute is specified');\n };\n\n _class4.prototype['@test The {{link-to}} helper should preventDefault when \\'target = _self\\''] = function (assert) {\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to \\'index\\' id=\\'self-link\\' target=\\'_self\\'}}Self{{/link-to}}\\n ');\n\n this.visit('/');\n\n var event = _emberViews.jQuery.Event('click');\n this.$('#self-link').trigger(event);\n\n equal(event.isDefaultPrevented(), true, 'should preventDefault when target attribute is `_self`');\n };\n\n _class4.prototype['@test The {{link-to}} helper should not transition if target is not equal to _self or empty'] = function (assert) {\n this.addTemplate('index', '\\n {{#link-to \\'about\\' id=\\'about-link\\' replace=true target=\\'_blank\\'}}\\n About\\n {{/link-to}}\\n ');\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.visit('/');\n this.click('#about-link');\n\n var currentRouteName = this.applicationInstance.lookup('controller:application').get('currentRouteName');\n assert.notEqual(currentRouteName, 'about', 'link-to should not transition if target is not equal to _self or empty');\n };\n\n _class4.prototype['@test The {{link-to}} helper accepts string/numeric arguments'] = function (assert) {\n this.router.map(function () {\n this.route('filter', { path: '/filters/:filter' });\n this.route('post', { path: '/post/:post_id' });\n this.route('repo', { path: '/repo/:owner/:name' });\n });\n\n this.add('controller:filter', _emberRuntime.Controller.extend({\n filter: 'unpopular',\n repo: { owner: 'ember', name: 'ember.js' },\n post_id: 123\n }));\n\n this.addTemplate('filter', '\\n

    {{filter}}

    \\n {{#link-to \"filter\" \"unpopular\" id=\"link\"}}Unpopular{{/link-to}}\\n {{#link-to \"filter\" filter id=\"path-link\"}}Unpopular{{/link-to}}\\n {{#link-to \"post\" post_id id=\"post-path-link\"}}Post{{/link-to}}\\n {{#link-to \"post\" 123 id=\"post-number-link\"}}Post{{/link-to}}\\n {{#link-to \"repo\" repo id=\"repo-object-link\"}}Repo{{/link-to}}\\n ');\n\n this.visit('/filters/popular');\n\n assert.equal(normalizeUrl(this.$('#link').attr('href')), '/filters/unpopular');\n assert.equal(normalizeUrl(this.$('#path-link').attr('href')), '/filters/unpopular');\n assert.equal(normalizeUrl(this.$('#post-path-link').attr('href')), '/post/123');\n assert.equal(normalizeUrl(this.$('#post-number-link').attr('href')), '/post/123');\n assert.equal(normalizeUrl(this.$('#repo-object-link').attr('href')), '/repo/ember/ember.js');\n };\n\n _class4.prototype['@test Issue 4201 - Shorthand for route.index shouldn\\'t throw errors about context arguments'] = function (assert) {\n assert.expect(2);\n this.router.map(function () {\n this.route('lobby', function () {\n this.route('index', { path: ':lobby_id' });\n this.route('list');\n });\n });\n\n this.add('route:lobby.index', _emberRouting.Route.extend({\n model: function (params) {\n assert.equal(params.lobby_id, 'foobar');\n return params.lobby_id;\n }\n }));\n\n this.addTemplate('lobby.index', '\\n {{#link-to \\'lobby\\' \\'foobar\\' id=\\'lobby-link\\'}}Lobby{{/link-to}}\\n ');\n this.addTemplate('lobby.list', '\\n {{#link-to \\'lobby\\' \\'foobar\\' id=\\'lobby-link\\'}}Lobby{{/link-to}}\\n ');\n\n this.visit('/lobby/list');\n this.click('#lobby-link');\n\n shouldBeActive(assert, this.$('#lobby-link'));\n };\n\n _class4.prototype['@test Quoteless route param performs property lookup'] = function (assert) {\n var _this5 = this;\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to \\'index\\' id=\\'string-link\\'}}string{{/link-to}}\\n {{#link-to foo id=\\'path-link\\'}}path{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n foo: 'index'\n }));\n\n var assertEquality = function (href) {\n assert.equal(normalizeUrl(_this5.$('#string-link').attr('href')), '/');\n assert.equal(normalizeUrl(_this5.$('#path-link').attr('href')), href);\n };\n\n this.visit('/');\n\n assertEquality('/');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('foo', 'about');\n });\n\n assertEquality('/about');\n };\n\n _class4.prototype['@test The {{link-to}} helper refreshes href element when one of params changes'] = function (assert) {\n this.router.map(function () {\n this.route('post', { path: '/posts/:post_id' });\n });\n\n var post = { id: '1' };\n var secondPost = { id: '2' };\n\n this.addTemplate('index', '\\n {{#link-to \"post\" post id=\"post\"}}post{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend());\n\n this.visit('/');\n\n var indexController = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return indexController.set('post', post);\n });\n\n assert.equal(normalizeUrl(this.$('#post').attr('href')), '/posts/1', 'precond - Link has rendered href attr properly');\n\n this.runTask(function () {\n return indexController.set('post', secondPost);\n });\n\n assert.equal(this.$('#post').attr('href'), '/posts/2', 'href attr was updated after one of the params had been changed');\n\n this.runTask(function () {\n return indexController.set('post', null);\n });\n\n assert.equal(this.$('#post').attr('href'), '#', 'href attr becomes # when one of the arguments in nullified');\n };\n\n _class4.prototype['@test The {{link-to}} helper is active when a route is active'] = function (assert) {\n this.router.map(function () {\n this.route('about', function () {\n this.route('item');\n });\n });\n\n this.addTemplate('about', '\\n
    \\n {{#link-to \\'about\\' id=\\'about-link\\'}}About{{/link-to}}\\n {{#link-to \\'about.item\\' id=\\'item-link\\'}}Item{{/link-to}}\\n {{outlet}}\\n
    \\n ');\n\n this.visit('/about');\n\n assert.equal(this.$('#about-link.active').length, 1, 'The about route link is active');\n assert.equal(this.$('#item-link.active').length, 0, 'The item route link is inactive');\n\n this.visit('/about/item');\n\n assert.equal(this.$('#about-link.active').length, 1, 'The about route link is active');\n assert.equal(this.$('#item-link.active').length, 1, 'The item route link is active');\n };\n\n _class4.prototype['@test The {{link-to}} helper works in an #each\\'d array of string route names'] = function (assert) {\n var _this6 = this;\n\n this.router.map(function () {\n this.route('foo');\n this.route('bar');\n this.route('rar');\n });\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n routeNames: (0, _emberRuntime.A)(['foo', 'bar', 'rar']),\n route1: 'bar',\n route2: 'foo'\n }));\n\n this.addTemplate('index', '\\n {{#each routeNames as |routeName|}}\\n {{#link-to routeName}}{{routeName}}{{/link-to}}\\n {{/each}}\\n {{#each routeNames as |r|}}\\n {{#link-to r}}{{r}}{{/link-to}}\\n {{/each}}\\n {{#link-to route1}}a{{/link-to}}\\n {{#link-to route2}}b{{/link-to}}\\n ');\n\n this.visit('/');\n\n var linksEqual = function (links, expected) {\n equal(links.length, expected.length, 'Has correct number of links');\n\n var idx = void 0;\n for (idx = 0; idx < links.length; idx++) {\n var href = _this6.$(links[idx]).attr('href');\n // Old IE includes the whole hostname as well\n assert.equal(href.slice(-expected[idx].length), expected[idx], 'Expected link to be \\'' + expected[idx] + '\\', but was \\'' + href + '\\'');\n }\n };\n\n linksEqual(this.$('a'), ['/foo', '/bar', '/rar', '/foo', '/bar', '/rar', '/bar', '/foo']);\n\n var indexController = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return indexController.set('route1', 'rar');\n });\n\n linksEqual(this.$('a'), ['/foo', '/bar', '/rar', '/foo', '/bar', '/rar', '/rar', '/foo']);\n\n this.runTask(function () {\n return indexController.routeNames.shiftObject();\n });\n\n linksEqual(this.$('a'), ['/bar', '/rar', '/bar', '/rar', '/rar', '/foo']);\n };\n\n _class4.prototype['@test The non-block form {{link-to}} helper moves into the named route'] = function (assert) {\n assert.expect(3);\n this.router.map(function () {\n this.route('contact');\n });\n\n this.addTemplate('index', '\\n

    Home

    \\n {{link-to \\'Contact us\\' \\'contact\\' id=\\'contact-link\\'}}\\n {{#link-to \\'index\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n this.addTemplate('contact', '\\n

    Contact

    \\n {{link-to \\'Home\\' \\'index\\' id=\\'home-link\\'}}\\n {{link-to \\'Self\\' \\'contact\\' id=\\'self-link\\'}}\\n ');\n\n this.visit('/');\n\n this.click('#contact-link');\n\n assert.equal(this.$('h3:contains(Contact)').length, 1, 'The contact template was rendered');\n assert.equal(this.$('#self-link.active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#home-link:not(.active)').length, 1, 'The other link was rendered without active class');\n };\n\n _class4.prototype['@test The non-block form {{link-to}} helper updates the link text when it is a binding'] = function (assert) {\n assert.expect(8);\n this.router.map(function () {\n this.route('contact');\n });\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n contactName: 'Jane'\n }));\n\n this.addTemplate('index', '\\n

    Home

    \\n {{link-to contactName \\'contact\\' id=\\'contact-link\\'}}\\n {{#link-to \\'index\\' id=\\'self-link\\'}}Self{{/link-to}}\\n ');\n this.addTemplate('contact', '\\n

    Contact

    \\n {{link-to \\'Home\\' \\'index\\' id=\\'home-link\\'}}\\n {{link-to \\'Self\\' \\'contact\\' id=\\'self-link\\'}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#contact-link:contains(Jane)').length, 1, 'The link title is correctly resolved');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('contactName', 'Joe');\n });\n\n assert.equal(this.$('#contact-link:contains(Joe)').length, 1, 'The link title is correctly updated when the bound property changes');\n\n this.runTask(function () {\n return controller.set('contactName', 'Robert');\n });\n\n assert.equal(this.$('#contact-link:contains(Robert)').length, 1, 'The link title is correctly updated when the bound property changes a second time');\n\n this.click('#contact-link');\n\n assert.equal(this.$('h3:contains(Contact)').length, 1, 'The contact template was rendered');\n assert.equal(this.$('#self-link.active').length, 1, 'The self-link was rendered with active class');\n assert.equal(this.$('#home-link:not(.active)').length, 1, 'The other link was rendered without active class');\n\n this.click('#home-link');\n\n assert.equal(this.$('h3:contains(Home)').length, 1, 'The index template was rendered');\n assert.equal(this.$('#contact-link:contains(Robert)').length, 1, 'The link title is correctly updated when the route changes');\n };\n\n _class4.prototype['@test The non-block form {{link-to}} helper moves into the named route with context'] = function (assert) {\n assert.expect(5);\n\n this.router.map(function () {\n this.route('item', { path: '/item/:id' });\n });\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function () {\n return [{ id: 'yehuda', name: 'Yehuda Katz' }, { id: 'tom', name: 'Tom Dale' }, { id: 'erik', name: 'Erik Brynroflsson' }];\n }\n }));\n\n this.addTemplate('index', '\\n

    Home

    \\n
      \\n {{#each model as |person|}}\\n
    • \\n {{link-to person.name \\'item\\' person}}\\n
    • \\n {{/each}}\\n
    \\n ');\n this.addTemplate('item', '\\n

    Item

    \\n

    {{model.name}}

    \\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n ');\n\n this.visit('/');\n\n this.click('li a:contains(Yehuda)');\n\n assert.equal(this.$('h3:contains(Item)').length, 1, 'The item template was rendered');\n assert.equal(this.$('p').text(), 'Yehuda Katz', 'The name is correct');\n\n this.click('#home-link');\n\n assert.equal(normalizeUrl(this.$('li a:contains(Yehuda)').attr('href')), '/item/yehuda');\n assert.equal(normalizeUrl(this.$('li a:contains(Tom)').attr('href')), '/item/tom');\n assert.equal(normalizeUrl(this.$('li a:contains(Erik)').attr('href')), '/item/erik');\n };\n\n _class4.prototype['@test The non-block form {{link-to}} performs property lookup'] = function (assert) {\n var _this7 = this;\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{link-to \\'string\\' \\'index\\' id=\\'string-link\\'}}\\n {{link-to path foo id=\\'path-link\\'}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n foo: 'index'\n }));\n\n this.visit('/');\n\n var assertEquality = function (href) {\n assert.equal(normalizeUrl(_this7.$('#string-link').attr('href')), '/');\n assert.equal(normalizeUrl(_this7.$('#path-link').attr('href')), href);\n };\n\n assertEquality('/');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n return controller.set('foo', 'about');\n });\n\n assertEquality('/about');\n };\n\n _class4.prototype['@test The non-block form {{link-to}} protects against XSS'] = function (assert) {\n this.addTemplate('application', '{{link-to display \\'index\\' id=\\'link\\'}}');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n display: 'blahzorz'\n }));\n\n this.visit('/');\n\n assert.equal(this.$('#link').text(), 'blahzorz');\n\n var controller = this.applicationInstance.lookup('controller:application');\n this.runTask(function () {\n return controller.set('display', 'BLAMMO');\n });\n\n assert.equal(this.$('#link').text(), 'BLAMMO');\n assert.equal(this.$('b').length, 0);\n };\n\n _class4.prototype['@test the {{link-to}} helper does not throw an error if its route has exited'] = function (assert) {\n assert.expect(0);\n\n this.router.map(function () {\n this.route('post', { path: 'post/:post_id' });\n });\n\n this.addTemplate('application', '\\n {{#link-to \\'index\\' id=\\'home-link\\'}}Home{{/link-to}}\\n {{#link-to \\'post\\' defaultPost id=\\'default-post-link\\'}}Default Post{{/link-to}}\\n {{#if currentPost}}\\n {{#link-to \\'post\\' currentPost id=\\'current-post-link\\'}}Current Post{{/link-to}}\\n {{/if}}\\n ');\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n defaultPost: { id: 1 },\n postController: _emberRuntime.inject.controller('post'),\n currentPost: (0, _emberMetal.alias)('postController.model')\n }));\n\n this.add('controller:post', _emberRuntime.Controller.extend());\n\n this.add('route:post', _emberRouting.Route.extend({\n model: function () {\n return { id: 2 };\n },\n serialize: function (model) {\n return { post_id: model.id };\n }\n }));\n\n this.visit('/');\n\n this.click('#default-post-link');\n this.click('#home-link');\n this.click('#current-post-link');\n this.click('#home-link');\n };\n\n _class4.prototype['@test {{link-to}} active property respects changing parent route context'] = function (assert) {\n this.router.map(function () {\n this.route('things', { path: '/things/:name' }, function () {\n this.route('other');\n });\n });\n\n this.addTemplate('application', '\\n {{link-to \\'OMG\\' \\'things\\' \\'omg\\' id=\\'omg-link\\'}}\\n {{link-to \\'LOL\\' \\'things\\' \\'lol\\' id=\\'lol-link\\'}}\\n ');\n\n this.visit('/things/omg');\n\n shouldBeActive(assert, this.$('#omg-link'));\n shouldNotBeActive(assert, this.$('#lol-link'));\n\n this.visit('/things/omg/other');\n\n shouldBeActive(assert, this.$('#omg-link'));\n shouldNotBeActive(assert, this.$('#lol-link'));\n };\n\n _class4.prototype['@test {{link-to}} populates href with default query param values even without query-params object'] = function (assert) {\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: '123'\n }));\n\n this.addTemplate('index', '{{#link-to \\'index\\' id=\\'the-link\\'}}Index{{/link-to}}');\n\n this.visit('/');\n\n assert.equal(this.$('#the-link').attr('href'), '/', 'link has right href');\n };\n\n _class4.prototype['@test {{link-to}} populates href with default query param values with empty query-params object'] = function (assert) {\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: '123'\n }));\n\n this.addTemplate('index', '\\n {{#link-to \\'index\\' (query-params) id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#the-link').attr('href'), '/', 'link has right href');\n };\n\n _class4.prototype['@test {{link-to}} with only query-params and a block updates when route changes'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n });\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n queryParams: ['foo', 'bar'],\n foo: '123',\n bar: 'yes'\n }));\n\n this.addTemplate('application', '\\n {{#link-to (query-params foo=\\'456\\' bar=\\'NAW\\') id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#the-link').attr('href'), '/?bar=NAW&foo=456', 'link has right href');\n\n this.visit('/about');\n\n assert.equal(this.$('#the-link').attr('href'), '/about?bar=NAW&foo=456', 'link has right href');\n };\n\n _class4.prototype['@test Block-less {{link-to}} with only query-params updates when route changes'] = function (assert) {\n this.router.map(function () {\n this.route('about');\n });\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n queryParams: ['foo', 'bar'],\n foo: '123',\n bar: 'yes'\n }));\n\n this.addTemplate('application', '\\n {{link-to \"Index\" (query-params foo=\\'456\\' bar=\\'NAW\\') id=\\'the-link\\'}}\\n ');\n\n this.visit('/');\n\n assert.equal(this.$('#the-link').attr('href'), '/?bar=NAW&foo=456', 'link has right href');\n\n this.visit('/about');\n\n assert.equal(this.$('#the-link').attr('href'), '/about?bar=NAW&foo=456', 'link has right href');\n };\n\n _class4.prototype['@test The {{link-to}} helper can use dynamic params'] = function (assert) {\n this.router.map(function () {\n this.route('foo', { path: 'foo/:some/:thing' });\n this.route('bar', { path: 'bar/:some/:thing/:else' });\n });\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n init: function () {\n this._super.apply(this, arguments);\n this.dynamicLinkParams = ['foo', 'one', 'two'];\n }\n }));\n\n this.addTemplate('index', '\\n

    Home

    \\n {{#link-to params=dynamicLinkParams id=\"dynamic-link\"}}Dynamic{{/link-to}}\\n ');\n\n this.visit('/');\n\n var link = this.$('#dynamic-link');\n\n assert.equal(link.attr('href'), '/foo/one/two');\n\n var controller = this.applicationInstance.lookup('controller:index');\n this.runTask(function () {\n controller.set('dynamicLinkParams', ['bar', 'one', 'two', 'three']);\n });\n\n assert.equal(link.attr('href'), '/bar/one/two/three');\n };\n\n _class4.prototype['@test GJ: {{link-to}} to a parent root model hook which performs a \\'transitionTo\\' has correct active class #13256'] = function (assert) {\n assert.expect(1);\n\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n\n this.add('route:parent', _emberRouting.Route.extend({\n afterModel: function (transition) {\n this.transitionTo('parent.child');\n }\n }));\n\n this.addTemplate('application', '\\n {{link-to \\'Parent\\' \\'parent\\' id=\\'parent-link\\'}}\\n ');\n\n this.visit('/');\n\n this.click('#parent-link');\n\n shouldBeActive(assert, this.$('#parent-link'));\n };\n\n return _class4;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper - loading states and warnings', function (_ApplicationTestCase6) {\n (0, _emberBabel.inherits)(_class5, _ApplicationTestCase6);\n\n function _class5() {\n (0, _emberBabel.classCallCheck)(this, _class5);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase6.apply(this, arguments));\n }\n\n _class5.prototype['@test link-to with null/undefined dynamic parameters are put in a loading state'] = function (assert) {\n var _this9 = this;\n\n assert.expect(19);\n var warningMessage = 'This link-to is in an inactive loading state because at least one of its parameters presently has a null/undefined value, or the provided route name is invalid.';\n\n this.router.map(function () {\n this.route('thing', { path: '/thing/:thing_id' });\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to destinationRoute routeContext loadingClass=\\'i-am-loading\\' id=\\'context-link\\'}}\\n string\\n {{/link-to}}\\n {{#link-to secondRoute loadingClass=loadingClass id=\\'static-link\\'}}\\n string\\n {{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n destinationRoute: null,\n routeContext: null,\n loadingClass: 'i-am-loading'\n }));\n\n this.add('route:about', _emberRouting.Route.extend({\n activate: function () {\n assert.ok(true, 'About was entered');\n }\n }));\n\n this.visit('/');\n\n function assertLinkStatus(link, url) {\n if (url) {\n assert.equal(normalizeUrl(link.attr('href')), url, 'loaded link-to has expected href');\n assert.ok(!link.hasClass('i-am-loading'), 'loaded linkComponent has no loadingClass');\n } else {\n assert.equal(normalizeUrl(link.attr('href')), '#', \"unloaded link-to has href='#'\");\n assert.ok(link.hasClass('i-am-loading'), 'loading linkComponent has loadingClass');\n }\n }\n\n var contextLink = this.$('#context-link');\n var staticLink = this.$('#static-link');\n var controller = this.applicationInstance.lookup('controller:index');\n\n assertLinkStatus(contextLink);\n assertLinkStatus(staticLink);\n\n expectWarning(function () {\n _this9.click(contextLink);\n }, warningMessage);\n\n // Set the destinationRoute (context is still null).\n this.runTask(function () {\n return controller.set('destinationRoute', 'thing');\n });\n assertLinkStatus(contextLink);\n\n // Set the routeContext to an id\n this.runTask(function () {\n return controller.set('routeContext', '456');\n });\n assertLinkStatus(contextLink, '/thing/456');\n\n // Test that 0 isn't interpreted as falsy.\n this.runTask(function () {\n return controller.set('routeContext', 0);\n });\n assertLinkStatus(contextLink, '/thing/0');\n\n // Set the routeContext to an object\n this.runTask(function () {\n controller.set('routeContext', { id: 123 });\n });\n assertLinkStatus(contextLink, '/thing/123');\n\n // Set the destinationRoute back to null.\n this.runTask(function () {\n return controller.set('destinationRoute', null);\n });\n assertLinkStatus(contextLink);\n\n expectWarning(function () {\n _this9.click(staticLink);\n }, warningMessage);\n\n this.runTask(function () {\n return controller.set('secondRoute', 'about');\n });\n assertLinkStatus(staticLink, '/about');\n\n // Click the now-active link\n this.click(staticLink);\n };\n\n return _class5;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper - globals mode app', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class6, _AutobootApplicationT);\n\n function _class6() {\n (0, _emberBabel.classCallCheck)(this, _class6);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.apply(this, arguments));\n }\n\n _class6.prototype['@test the {{link-to}} helper throws a useful error if you invoke it wrong'] = function (assert) {\n var _this11 = this;\n\n assert.expect(1);\n\n assert.throws(function () {\n _this11.runTask(function () {\n _this11.createApplication();\n\n _this11.add('router:main', _emberRouting.Router.extend({\n location: 'none'\n }));\n\n _this11.router.map(function () {\n this.route('post', { path: 'post/:post_id' });\n });\n\n _this11.addTemplate('application', '{{#link-to \\'post\\'}}Post{{/link-to}}');\n });\n }, /(You attempted to define a `\\{\\{link-to \"post\"\\}\\}` but did not pass the parameters required for generating its dynamic segments.|You must provide param `post_id` to `generate`)/);\n };\n\n return _class6;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/helpers/link_to_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/helpers/link_to_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/helpers/link_to_test/link_to_transitioning_classes_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberRouting, _internalTestHelpers) {\n 'use strict';\n\n function assertHasClass(assert, selector, label) {\n var testLabel = selector.attr('id') + ' should have class ' + label;\n\n assert.equal(selector.hasClass(label), true, testLabel);\n }\n\n function assertHasNoClass(assert, selector, label) {\n var testLabel = selector.attr('id') + ' should not have class ' + label;\n\n assert.equal(selector.hasClass(label), false, testLabel);\n }\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper: .transitioning-in .transitioning-out CSS classes', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this2 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this2.aboutDefer = _emberRuntime.RSVP.defer();\n _this2.otherDefer = _emberRuntime.RSVP.defer();\n _this2.newsDefer = _emberRuntime.RSVP.defer();\n var _this = _this2;\n\n _this2.router.map(function () {\n this.route('about');\n this.route('other');\n this.route('news');\n });\n\n _this2.add('route:about', _emberRouting.Route.extend({\n model: function () {\n return _this.aboutDefer.promise;\n }\n }));\n\n _this2.add('route:other', _emberRouting.Route.extend({\n model: function () {\n return _this.otherDefer.promise;\n }\n }));\n\n _this2.add('route:news', _emberRouting.Route.extend({\n model: function () {\n return _this.newsDefer.promise;\n }\n }));\n\n _this2.addTemplate('application', '\\n {{outlet}}\\n {{link-to \\'Index\\' \\'index\\' id=\\'index-link\\'}}\\n {{link-to \\'About\\' \\'about\\' id=\\'about-link\\'}}\\n {{link-to \\'Other\\' \\'other\\' id=\\'other-link\\'}}\\n {{link-to \\'News\\' \\'news\\' activeClass=false id=\\'news-link\\'}}\\n ');\n\n _this2.visit('/');\n return _this2;\n }\n\n _class.prototype.teardown = function teardown() {\n _ApplicationTestCase.prototype.teardown.call(this);\n this.aboutDefer = null;\n this.otherDefer = null;\n this.newsDefer = null;\n };\n\n _class.prototype['@test while a transition is underway'] = function testWhileATransitionIsUnderway(assert) {\n var _this3 = this;\n\n var $index = this.$('#index-link');\n var $about = this.$('#about-link');\n var $other = this.$('#other-link');\n\n $about.click();\n\n assertHasClass(assert, $index, 'active');\n assertHasNoClass(assert, $about, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n this.runTask(function () {\n return _this3.aboutDefer.resolve();\n });\n\n assertHasNoClass(assert, $index, 'active');\n assertHasClass(assert, $about, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n };\n\n _class.prototype['@test while a transition is underway with activeClass is false'] = function testWhileATransitionIsUnderwayWithActiveClassIsFalse(assert) {\n var _this4 = this;\n\n var $index = this.$('#index-link');\n var $news = this.$('#news-link');\n var $other = this.$('#other-link');\n\n $news.click();\n\n assertHasClass(assert, $index, 'active');\n assertHasNoClass(assert, $news, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasClass(assert, $news, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $news, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n this.runTask(function () {\n return _this4.newsDefer.resolve();\n });\n\n assertHasNoClass(assert, $index, 'active');\n assertHasNoClass(assert, $news, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $news, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $news, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper: .transitioning-in .transitioning-out CSS classes - nested link-to\\'s', function (_ApplicationTestCase2) {\n (0, _emberBabel.inherits)(_class2, _ApplicationTestCase2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n\n var _this5 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase2.call(this));\n\n _this5.aboutDefer = _emberRuntime.RSVP.defer();\n _this5.otherDefer = _emberRuntime.RSVP.defer();\n var _this = _this5;\n\n _this5.router.map(function () {\n this.route('parent-route', function () {\n this.route('about');\n this.route('other');\n });\n });\n _this5.add('route:parent-route.about', _emberRouting.Route.extend({\n model: function () {\n return _this.aboutDefer.promise;\n }\n }));\n\n _this5.add('route:parent-route.other', _emberRouting.Route.extend({\n model: function () {\n return _this.otherDefer.promise;\n }\n }));\n\n _this5.addTemplate('application', '\\n {{outlet}}\\n {{#link-to \\'index\\' tagName=\\'li\\'}}\\n {{link-to \\'Index\\' \\'index\\' id=\\'index-link\\'}}\\n {{/link-to}}\\n {{#link-to \\'parent-route.about\\' tagName=\\'li\\'}}\\n {{link-to \\'About\\' \\'parent-route.about\\' id=\\'about-link\\'}}\\n {{/link-to}}\\n {{#link-to \\'parent-route.other\\' tagName=\\'li\\'}}\\n {{link-to \\'Other\\' \\'parent-route.other\\' id=\\'other-link\\'}}\\n {{/link-to}}\\n ');\n\n _this5.visit('/');\n return _this5;\n }\n\n _class2.prototype.resolveAbout = function resolveAbout() {\n var _this6 = this;\n\n return this.runTask(function () {\n _this6.aboutDefer.resolve();\n _this6.aboutDefer = _emberRuntime.RSVP.defer();\n });\n };\n\n _class2.prototype.resolveOther = function resolveOther() {\n var _this7 = this;\n\n return this.runTask(function () {\n _this7.otherDefer.resolve();\n _this7.otherDefer = _emberRuntime.RSVP.defer();\n });\n };\n\n _class2.prototype.teardown = function teardown() {\n _ApplicationTestCase2.prototype.teardown.call(this);\n this.aboutDefer = null;\n this.otherDefer = null;\n };\n\n _class2.prototype['@test while a transition is underway with nested link-to\\'s'] = function (assert) {\n var $index = this.$('#index-link');\n var $about = this.$('#about-link');\n var $other = this.$('#other-link');\n\n $about.click();\n\n assertHasClass(assert, $index, 'active');\n assertHasNoClass(assert, $about, 'active');\n assertHasNoClass(assert, $about, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n this.resolveAbout();\n\n assertHasNoClass(assert, $index, 'active');\n assertHasClass(assert, $about, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n $other.click();\n\n assertHasNoClass(assert, $index, 'active');\n assertHasClass(assert, $about, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $about, 'ember-transitioning-in');\n assertHasClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n this.resolveOther();\n\n assertHasNoClass(assert, $index, 'active');\n assertHasNoClass(assert, $about, 'active');\n assertHasClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n\n $about.click();\n\n assertHasNoClass(assert, $index, 'active');\n assertHasNoClass(assert, $about, 'active');\n assertHasClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasClass(assert, $other, 'ember-transitioning-out');\n\n this.resolveAbout();\n\n assertHasNoClass(assert, $index, 'active');\n assertHasClass(assert, $about, 'active');\n assertHasNoClass(assert, $other, 'active');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-in');\n assertHasNoClass(assert, $about, 'ember-transitioning-in');\n assertHasNoClass(assert, $other, 'ember-transitioning-in');\n\n assertHasNoClass(assert, $index, 'ember-transitioning-out');\n assertHasNoClass(assert, $about, 'ember-transitioning-out');\n assertHasNoClass(assert, $other, 'ember-transitioning-out');\n };\n\n return _class2;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/helpers/link_to_test/link_to_transitioning_classes_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/helpers/link_to_test/link_to_transitioning_classes_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/helpers/link_to_test/link_to_with_query_params_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberRouting, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper: invoking with query params', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n var indexProperties = {\n foo: '123',\n bar: 'abc'\n };\n _this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo', 'bar', 'abool'],\n foo: indexProperties.foo,\n bar: indexProperties.bar,\n boundThing: 'OMG',\n abool: true\n }));\n _this.add('controller:about', _emberRuntime.Controller.extend({\n queryParams: ['baz', 'bat'],\n baz: 'alex',\n bat: 'borf'\n }));\n _this.indexProperties = indexProperties;\n return _this;\n }\n\n _class.prototype.shouldNotBeActive = function shouldNotBeActive(assert, selector) {\n this.checkActive(assert, selector, false);\n };\n\n _class.prototype.shouldBeActive = function shouldBeActive(assert, selector) {\n this.checkActive(assert, selector, true);\n };\n\n _class.prototype.getController = function getController(name) {\n return this.applicationInstance.lookup('controller:' + name);\n };\n\n _class.prototype.checkActive = function checkActive(assert, selector, active) {\n var classList = this.$(selector)[0].className;\n assert.equal(classList.indexOf('active') > -1, active, selector + ' active should be ' + active.toString());\n };\n\n _class.prototype['@test doesn\\'t update controller QP properties on current route when invoked'] = function (assert) {\n var _this2 = this;\n\n this.addTemplate('index', '\\n {{#link-to \\'index\\' id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n _this2.click('#the-link');\n var indexController = _this2.getController('index');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar'), _this2.indexProperties, 'controller QP properties do not update');\n });\n };\n\n _class.prototype['@test doesn\\'t update controller QP properties on current route when invoked (empty query-params obj)'] = function (assert) {\n var _this3 = this;\n\n this.addTemplate('index', '\\n {{#link-to \\'index\\' (query-params) id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n _this3.click('#the-link');\n var indexController = _this3.getController('index');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar'), _this3.indexProperties, 'controller QP properties do not update');\n });\n };\n\n _class.prototype['@test doesn\\'t update controller QP properties on current route when invoked (empty query-params obj, inferred route)'] = function (assert) {\n var _this4 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params) id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n _this4.click('#the-link');\n var indexController = _this4.getController('index');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar'), _this4.indexProperties, 'controller QP properties do not update');\n });\n };\n\n _class.prototype['@test updates controller QP properties on current route when invoked'] = function testUpdatesControllerQPPropertiesOnCurrentRouteWhenInvoked(assert) {\n var _this5 = this;\n\n this.addTemplate('index', '\\n {{#link-to \\'index\\' (query-params foo=\\'456\\') id=\"the-link\"}}\\n Index\\n {{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n _this5.click('#the-link');\n var indexController = _this5.getController('index');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar'), { foo: '456', bar: 'abc' }, 'controller QP properties updated');\n });\n };\n\n _class.prototype['@test updates controller QP properties on current route when invoked (inferred route)'] = function testUpdatesControllerQPPropertiesOnCurrentRouteWhenInvokedInferredRoute(assert) {\n var _this6 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params foo=\\'456\\') id=\"the-link\"}}\\n Index\\n {{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n _this6.click('#the-link');\n var indexController = _this6.getController('index');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar'), { foo: '456', bar: 'abc' }, 'controller QP properties updated');\n });\n };\n\n _class.prototype['@test updates controller QP properties on other route after transitioning to that route'] = function testUpdatesControllerQPPropertiesOnOtherRouteAfterTransitioningToThatRoute(assert) {\n var _this7 = this;\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.addTemplate('index', '\\n {{#link-to \\'about\\' (query-params baz=\\'lol\\') id=\\'the-link\\'}}\\n About\\n {{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n var theLink = _this7.$('#the-link');\n assert.equal(theLink.attr('href'), '/about?baz=lol');\n\n _this7.runTask(function () {\n return _this7.click('#the-link');\n });\n\n var aboutController = _this7.getController('about');\n\n assert.deepEqual(aboutController.getProperties('baz', 'bat'), { baz: 'lol', bat: 'borf' }, 'about controller QP properties updated');\n });\n };\n\n _class.prototype['@test supplied QP properties can be bound'] = function testSuppliedQPPropertiesCanBeBound(assert) {\n var _this8 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params foo=boundThing) id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n var indexController = _this8.getController('index');\n var theLink = _this8.$('#the-link');\n\n assert.equal(theLink.attr('href'), '/?foo=OMG');\n\n _this8.runTask(function () {\n return indexController.set('boundThing', 'ASL');\n });\n\n assert.equal(theLink.attr('href'), '/?foo=ASL');\n });\n };\n\n _class.prototype['@test supplied QP properties can be bound (booleans)'] = function testSuppliedQPPropertiesCanBeBoundBooleans(assert) {\n var _this9 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params abool=boundThing) id=\\'the-link\\'}}\\n Index\\n {{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n var indexController = _this9.getController('index');\n var theLink = _this9.$('#the-link');\n\n assert.equal(theLink.attr('href'), '/?abool=OMG');\n\n _this9.runTask(function () {\n return indexController.set('boundThing', false);\n });\n\n assert.equal(theLink.attr('href'), '/?abool=false');\n\n _this9.click('#the-link');\n\n assert.deepEqual(indexController.getProperties('foo', 'bar', 'abool'), { foo: '123', bar: 'abc', abool: false }, 'bound bool QP properties update');\n });\n };\n\n _class.prototype['@test href updates when unsupplied controller QP props change'] = function testHrefUpdatesWhenUnsuppliedControllerQPPropsChange(assert) {\n var _this10 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params foo=\\'lol\\') id=\\'the-link\\'}}Index{{/link-to}}\\n ');\n\n return this.visit('/').then(function () {\n var indexController = _this10.getController('index');\n var theLink = _this10.$('#the-link');\n\n assert.equal(theLink.attr('href'), '/?foo=lol');\n\n _this10.runTask(function () {\n return indexController.set('bar', 'BORF');\n });\n\n assert.equal(theLink.attr('href'), '/?bar=BORF&foo=lol');\n\n _this10.runTask(function () {\n return indexController.set('foo', 'YEAH');\n });\n\n assert.equal(theLink.attr('href'), '/?bar=BORF&foo=lol');\n });\n };\n\n _class.prototype['@test The {{link-to}} with only query params always transitions to the current route with the query params applied'] = function testTheLinkToWithOnlyQueryParamsAlwaysTransitionsToTheCurrentRouteWithTheQueryParamsApplied(assert) {\n var _this11 = this;\n\n // Test harness for bug #12033\n this.addTemplate('cars', '\\n {{#link-to \\'cars.create\\' id=\\'create-link\\'}}Create new car{{/link-to}}\\n {{#link-to (query-params page=\\'2\\') id=\\'page2-link\\'}}Page 2{{/link-to}}\\n {{outlet}}\\n ');\n this.addTemplate('cars.create', '{{#link-to \\'cars\\' id=\\'close-link\\'}}Close create form{{/link-to}}');\n\n this.router.map(function () {\n this.route('cars', function () {\n this.route('create');\n });\n });\n\n this.add('controller:cars', _emberRuntime.Controller.extend({\n queryParams: ['page'],\n page: 1\n }));\n\n return this.visit('/cars/create').then(function () {\n var router = _this11.appRouter;\n var carsController = _this11.getController('cars');\n\n assert.equal(router.currentRouteName, 'cars.create');\n\n _this11.runTask(function () {\n return _this11.click('#close-link');\n });\n\n assert.equal(router.currentRouteName, 'cars.index');\n assert.equal(router.get('url'), '/cars');\n assert.equal(carsController.get('page'), 1, 'The page query-param is 1');\n\n _this11.runTask(function () {\n return _this11.click('#page2-link');\n });\n\n assert.equal(router.currentRouteName, 'cars.index', 'The active route is still cars');\n assert.equal(router.get('url'), '/cars?page=2', 'The url has been updated');\n assert.equal(carsController.get('page'), 2, 'The query params have been updated');\n });\n };\n\n _class.prototype['@test the {{link-to}} applies activeClass when query params are not changed'] = function testTheLinkToAppliesActiveClassWhenQueryParamsAreNotChanged(assert) {\n var _this12 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params foo=\\'cat\\') id=\\'cat-link\\'}}Index{{/link-to}}\\n {{#link-to (query-params foo=\\'dog\\') id=\\'dog-link\\'}}Index{{/link-to}}\\n {{#link-to \\'index\\' id=\\'change-nothing\\'}}Index{{/link-to}}\\n ');\n this.addTemplate('search', '\\n {{#link-to (query-params search=\\'same\\') id=\\'same-search\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'change\\') id=\\'change-search\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'same\\' archive=true) id=\\'same-search-add-archive\\'}}Index{{/link-to}}\\n {{#link-to (query-params archive=true) id=\\'only-add-archive\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'same\\' archive=true) id=\\'both-same\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'different\\' archive=true) id=\\'change-one\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'different\\' archive=false) id=\\'remove-one\\'}}Index{{/link-to}}\\n {{outlet}}\\n ');\n this.addTemplate('search.results', '\\n {{#link-to (query-params sort=\\'title\\') id=\\'same-sort-child-only\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'same\\') id=\\'same-search-parent-only\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'change\\') id=\\'change-search-parent-only\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'same\\' sort=\\'title\\') id=\\'same-search-same-sort-child-and-parent\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'same\\' sort=\\'author\\') id=\\'same-search-different-sort-child-and-parent\\'}}Index{{/link-to}}\\n {{#link-to (query-params search=\\'change\\' sort=\\'title\\') id=\\'change-search-same-sort-child-and-parent\\'}}Index{{/link-to}}\\n {{#link-to (query-params foo=\\'dog\\') id=\\'dog-link\\'}}Index{{/link-to}}\\n ');\n\n this.router.map(function () {\n this.route('search', function () {\n this.route('results');\n });\n });\n\n this.add('controller:search', _emberRuntime.Controller.extend({\n queryParams: ['search', 'archive'],\n search: '',\n archive: false\n }));\n\n this.add('controller:search.results', _emberRuntime.Controller.extend({\n queryParams: ['sort', 'showDetails'],\n sort: 'title',\n showDetails: true\n }));\n\n return this.visit('/').then(function () {\n _this12.shouldNotBeActive(assert, '#cat-link');\n _this12.shouldNotBeActive(assert, '#dog-link');\n\n return _this12.visit('/?foo=cat');\n }).then(function () {\n _this12.shouldBeActive(assert, '#cat-link');\n _this12.shouldNotBeActive(assert, '#dog-link');\n\n return _this12.visit('/?foo=dog');\n }).then(function () {\n _this12.shouldBeActive(assert, '#dog-link');\n _this12.shouldNotBeActive(assert, '#cat-link');\n _this12.shouldBeActive(assert, '#change-nothing');\n\n return _this12.visit('/search?search=same');\n }).then(function () {\n _this12.shouldBeActive(assert, '#same-search');\n _this12.shouldNotBeActive(assert, '#change-search');\n _this12.shouldNotBeActive(assert, '#same-search-add-archive');\n _this12.shouldNotBeActive(assert, '#only-add-archive');\n _this12.shouldNotBeActive(assert, '#remove-one');\n\n return _this12.visit('/search?search=same&archive=true');\n }).then(function () {\n _this12.shouldBeActive(assert, '#both-same');\n _this12.shouldNotBeActive(assert, '#change-one');\n\n return _this12.visit('/search/results?search=same&sort=title&showDetails=true');\n }).then(function () {\n _this12.shouldBeActive(assert, '#same-sort-child-only');\n _this12.shouldBeActive(assert, '#same-search-parent-only');\n _this12.shouldNotBeActive(assert, '#change-search-parent-only');\n _this12.shouldBeActive(assert, '#same-search-same-sort-child-and-parent');\n _this12.shouldNotBeActive(assert, '#same-search-different-sort-child-and-parent');\n _this12.shouldNotBeActive(assert, '#change-search-same-sort-child-and-parent');\n });\n };\n\n _class.prototype['@test the {{link-to}} applies active class when query-param is a number'] = function testTheLinkToAppliesActiveClassWhenQueryParamIsANumber(assert) {\n var _this13 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params page=pageNumber) id=\\'page-link\\'}}\\n Index\\n {{/link-to}}\\n ');\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['page'],\n page: 1,\n pageNumber: 5\n }));\n\n return this.visit('/').then(function () {\n _this13.shouldNotBeActive(assert, '#page-link');\n return _this13.visit('/?page=5');\n }).then(function () {\n _this13.shouldBeActive(assert, '#page-link');\n });\n };\n\n _class.prototype['@test the {{link-to}} applies active class when query-param is an array'] = function testTheLinkToAppliesActiveClassWhenQueryParamIsAnArray(assert) {\n var _this14 = this;\n\n this.addTemplate('index', '\\n {{#link-to (query-params pages=pagesArray) id=\\'array-link\\'}}Index{{/link-to}}\\n {{#link-to (query-params pages=biggerArray) id=\\'bigger-link\\'}}Index{{/link-to}}\\n {{#link-to (query-params pages=emptyArray) id=\\'empty-link\\'}}Index{{/link-to}}\\n ');\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['pages'],\n pages: [],\n pagesArray: [1, 2],\n biggerArray: [1, 2, 3],\n emptyArray: []\n }));\n\n return this.visit('/').then(function () {\n _this14.shouldNotBeActive(assert, '#array-link');\n\n return _this14.visit('/?pages=%5B1%2C2%5D');\n }).then(function () {\n _this14.shouldBeActive(assert, '#array-link');\n _this14.shouldNotBeActive(assert, '#bigger-link');\n _this14.shouldNotBeActive(assert, '#empty-link');\n\n return _this14.visit('/?pages=%5B2%2C1%5D');\n }).then(function () {\n _this14.shouldNotBeActive(assert, '#array-link');\n _this14.shouldNotBeActive(assert, '#bigger-link');\n _this14.shouldNotBeActive(assert, '#empty-link');\n\n return _this14.visit('/?pages=%5B1%2C2%2C3%5D');\n }).then(function () {\n _this14.shouldBeActive(assert, '#bigger-link');\n _this14.shouldNotBeActive(assert, '#array-link');\n _this14.shouldNotBeActive(assert, '#empty-link');\n });\n };\n\n _class.prototype['@test the {{link-to}} helper applies active class to the parent route'] = function testTheLinkToHelperAppliesActiveClassToTheParentRoute(assert) {\n var _this15 = this;\n\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n\n this.addTemplate('application', '\\n {{#link-to \\'parent\\' id=\\'parent-link\\'}}Parent{{/link-to}}\\n {{#link-to \\'parent.child\\' id=\\'parent-child-link\\'}}Child{{/link-to}}\\n {{#link-to \\'parent\\' (query-params foo=cat) id=\\'parent-link-qp\\'}}Parent{{/link-to}}\\n {{outlet}}\\n ');\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: 'bar'\n }));\n\n return this.visit('/').then(function () {\n _this15.shouldNotBeActive(assert, '#parent-link');\n _this15.shouldNotBeActive(assert, '#parent-child-link');\n _this15.shouldNotBeActive(assert, '#parent-link-qp');\n return _this15.visit('/parent/child?foo=dog');\n }).then(function () {\n _this15.shouldBeActive(assert, '#parent-link');\n _this15.shouldNotBeActive(assert, '#parent-link-qp');\n });\n };\n\n _class.prototype['@test The {{link-to}} helper disregards query-params in activeness computation when current-when is specified'] = function testTheLinkToHelperDisregardsQueryParamsInActivenessComputationWhenCurrentWhenIsSpecified(assert) {\n var _this16 = this;\n\n var appLink = void 0;\n\n this.router.map(function () {\n this.route('parent');\n });\n this.addTemplate('application', '\\n {{#link-to \\'parent\\' (query-params page=1) current-when=\\'parent\\' id=\\'app-link\\'}}\\n Parent\\n {{/link-to}}\\n {{outlet}}\\n ');\n this.addTemplate('parent', '\\n {{#link-to \\'parent\\' (query-params page=1) current-when=\\'parent\\' id=\\'parent-link\\'}}\\n Parent\\n {{/link-to}}\\n {{outlet}}\\n ');\n this.add('controller:parent', _emberRuntime.Controller.extend({\n queryParams: ['page'],\n page: 1\n }));\n\n return this.visit('/').then(function () {\n appLink = _this16.$('#app-link');\n\n assert.equal(appLink.attr('href'), '/parent');\n _this16.shouldNotBeActive(assert, '#app-link');\n\n return _this16.visit('/parent?page=2');\n }).then(function () {\n appLink = _this16.$('#app-link');\n var router = _this16.appRouter;\n\n assert.equal(appLink.attr('href'), '/parent');\n _this16.shouldBeActive(assert, '#app-link');\n assert.equal(_this16.$('#parent-link').attr('href'), '/parent');\n _this16.shouldBeActive(assert, '#parent-link');\n\n var parentController = _this16.getController('parent');\n\n assert.equal(parentController.get('page'), 2);\n\n _this16.runTask(function () {\n return parentController.set('page', 3);\n });\n\n assert.equal(router.get('location.path'), '/parent?page=3');\n _this16.shouldBeActive(assert, '#app-link');\n _this16.shouldBeActive(assert, '#parent-link');\n\n _this16.runTask(function () {\n return _this16.click('#app-link');\n });\n\n assert.equal(router.get('location.path'), '/parent');\n });\n };\n\n _class.prototype['@test link-to default query params while in active transition regression test'] = function testLinkToDefaultQueryParamsWhileInActiveTransitionRegressionTest(assert) {\n var _this17 = this;\n\n this.router.map(function () {\n this.route('foos');\n this.route('bars');\n });\n var foos = _emberRuntime.RSVP.defer();\n var bars = _emberRuntime.RSVP.defer();\n\n this.addTemplate('application', '\\n {{link-to \\'Foos\\' \\'foos\\' id=\\'foos-link\\'}}\\n {{link-to \\'Baz Foos\\' \\'foos\\' (query-params baz=true) id=\\'baz-foos-link\\'}}\\n {{link-to \\'Quux Bars\\' \\'bars\\' (query-params quux=true) id=\\'bars-link\\'}}\\n ');\n this.add('controller:foos', _emberRuntime.Controller.extend({\n queryParams: ['status'],\n baz: false\n }));\n this.add('route:foos', _emberRouting.Route.extend({\n model: function () {\n return foos.promise;\n }\n }));\n this.add('controller:bars', _emberRuntime.Controller.extend({\n queryParams: ['status'],\n quux: false\n }));\n this.add('route:bars', _emberRouting.Route.extend({\n model: function () {\n return bars.promise;\n }\n }));\n\n return this.visit('/').then(function () {\n var router = _this17.appRouter;\n var foosLink = _this17.$('#foos-link');\n var barsLink = _this17.$('#bars-link');\n var bazLink = _this17.$('#baz-foos-link');\n\n assert.equal(foosLink.attr('href'), '/foos');\n assert.equal(bazLink.attr('href'), '/foos?baz=true');\n assert.equal(barsLink.attr('href'), '/bars?quux=true');\n assert.equal(router.get('location.path'), '/');\n _this17.shouldNotBeActive(assert, '#foos-link');\n _this17.shouldNotBeActive(assert, '#baz-foos-link');\n _this17.shouldNotBeActive(assert, '#bars-link');\n\n _this17.runTask(function () {\n return barsLink.click();\n });\n _this17.shouldNotBeActive(assert, '#bars-link');\n\n _this17.runTask(function () {\n return foosLink.click();\n });\n _this17.shouldNotBeActive(assert, '#foos-link');\n\n _this17.runTask(function () {\n return foos.resolve();\n });\n\n assert.equal(router.get('location.path'), '/foos');\n _this17.shouldBeActive(assert, '#foos-link');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('The {{link-to}} helper + query params - globals mode app', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class2, _AutobootApplicationT);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.apply(this, arguments));\n }\n\n _class2.prototype['@test the {{link-to}} helper throws a useful error if you invoke it wrong'] = function (assert) {\n var _this19 = this;\n\n assert.expect(1);\n\n expectAssertion(function () {\n _this19.runTask(function () {\n _this19.createApplication();\n\n _this19.add('router:main', _emberRouting.Router.extend({\n location: 'none'\n }));\n\n _this19.addTemplate('application', '{{#link-to id=\\'the-link\\'}}Index{{/link-to}}');\n });\n }, /You must provide one or more parameters to the link-to component/);\n };\n\n return _class2;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/helpers/link_to_test/link_to_with_query_params_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/helpers/link_to_test/link_to_with_query_params_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/homepage_example_test', ['ember-babel', 'ember-routing', 'ember-metal', 'ember-runtime', 'internal-test-helpers'], function (_emberBabel, _emberRouting, _emberMetal, _emberRuntime, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('The example renders correctly', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Render index template into application outlet'] = function testRenderIndexTemplateIntoApplicationOutlet(assert) {\n var _this2 = this;\n\n this.addTemplate('application', '{{outlet}}');\n this.addTemplate('index', '

    People

      {{#each model as |person|}}
    • Hello, {{person.fullName}}!
    • {{/each}}
    ');\n\n var Person = _emberRuntime.Object.extend({\n firstName: null,\n lastName: null,\n fullName: (0, _emberMetal.computed)('firstName', 'lastName', function () {\n return this.get('firstName') + ' ' + this.get('lastName');\n })\n });\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function () {\n return (0, _emberRuntime.A)([Person.create({ firstName: 'Tom', lastName: 'Dale' }), Person.create({ firstName: 'Yehuda', lastName: 'Katz' })]);\n }\n }));\n\n return this.visit('/').then(function () {\n var $ = _this2.$();\n\n assert.equal($.find('h1:contains(People)').length, 1);\n assert.equal($.find('li').length, 2);\n assert.equal($.find('li:nth-of-type(1)').text(), 'Hello, Tom Dale!');\n assert.equal($.find('li:nth-of-type(2)').text(), 'Hello, Yehuda Katz!');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/homepage_example_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/homepage_example_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/integration/multiple-app-test', ['ember-babel', 'internal-test-helpers', 'ember-application', 'ember-glimmer', 'ember-views', 'ember-utils'], function (_emberBabel, _internalTestHelpers, _emberApplication, _emberGlimmer, _emberViews, _emberUtils) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('View Integration', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n (0, _emberViews.jQuery)('#qunit-fixture').html('\\n
    \\n
    \\n ');\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.runTask(function () {\n _this.createSecondApplication();\n });\n return _this;\n }\n\n _class.prototype.createSecondApplication = function createSecondApplication(options) {\n var applicationOptions = this.applicationOptions;\n\n var secondApplicationOptions = { rootElement: '#two' };\n var myOptions = (0, _emberUtils.assign)(applicationOptions, secondApplicationOptions, options);\n this.secondApp = _emberApplication.Application.create(myOptions);\n this.secondResolver = myOptions.Resolver.lastInstance;\n return this.secondApp;\n };\n\n _class.prototype.teardown = function teardown() {\n var _this2 = this;\n\n _ApplicationTestCase.prototype.teardown.call(this);\n\n if (this.secondApp) {\n this.runTask(function () {\n _this2.secondApp.destroy();\n });\n }\n };\n\n _class.prototype.addFactoriesToResolver = function addFactoriesToResolver(actions, resolver) {\n resolver.add('component:special-button', _emberGlimmer.Component.extend({\n actions: {\n doStuff: function () {\n var rootElement = (0, _emberUtils.getOwner)(this).application.rootElement;\n actions.push(rootElement);\n }\n }\n }));\n\n resolver.add('template:index', this.compile('\\n

    Node 1

    {{special-button}}\\n ', {\n moduleName: 'index'\n }));\n resolver.add('template:components/special-button', this.compile('\\n \\n ', {\n moduleName: 'components/special-button'\n }));\n };\n\n _class.prototype['@test booting multiple applications can properly handle events'] = function (assert) {\n var _this3 = this;\n\n var actions = [];\n this.addFactoriesToResolver(actions, this.resolver);\n this.addFactoriesToResolver(actions, this.secondResolver);\n\n this.runTask(function () {\n _this3.secondApp.visit('/');\n });\n this.runTask(function () {\n _this3.application.visit('/');\n });\n\n (0, _emberViews.jQuery)('#two .do-stuff').click();\n (0, _emberViews.jQuery)('#one .do-stuff').click();\n\n assert.deepEqual(actions, ['#two', '#one']);\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_ApplicationTestCase.prototype.applicationOptions, {\n rootElement: '#one',\n router: null\n });\n }\n }]);\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/integration/multiple-app-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/integration/multiple-app-test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/production_build_test', ['ember-debug'], function (_emberDebug) {\n 'use strict';\n\n QUnit.module('production builds');\n\n if (!true) {\n QUnit.test('assert does not throw in production builds', function (assert) {\n assert.expect(1);\n\n try {\n (true && !(false) && (0, _emberDebug.assert)('Should not throw'));\n\n assert.ok(true, 'Ember.assert did not throw');\n } catch (e) {\n assert.ok(false, 'Expected assert not to throw but it did: ' + e.message);\n }\n });\n\n QUnit.test('runInDebug does not run the callback in production builds', function (assert) {\n var fired = false;\n (0, _emberDebug.runInDebug)(function () {\n return fired = true;\n });\n\n assert.equal(fired, false, 'runInDebug callback should not be ran');\n });\n }\n});","QUnit.module('ESLint | ember/tests/production_build_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/production_build_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/reexports_test', ['ember/index', 'internal-test-helpers', 'ember/features'], function (_index, _internalTestHelpers, _features) {\n 'use strict';\n\n QUnit.module('ember reexports');\n\n [\n // ember-utils\n ['getOwner', 'ember-utils', 'getOwner'], ['setOwner', 'ember-utils', 'setOwner'], ['assign', 'ember-utils'], ['GUID_KEY', 'ember-utils'], ['uuid', 'ember-utils'], ['generateGuid', 'ember-utils'], ['guidFor', 'ember-utils'], ['inspect', 'ember-utils'], ['makeArray', 'ember-utils'], ['canInvoke', 'ember-utils'], ['tryInvoke', 'ember-utils'], ['wrap', 'ember-utils'], ['applyStr', 'ember-utils'],\n\n // ember-environment\n // ['ENV', 'ember-environment', 'ENV'], TODO: fix this, its failing because we are hitting the getter\n\n // container\n ['Registry', 'container', 'Registry'], ['Container', 'container', 'Container'],\n\n // ember-debug\n ['deprecateFunc', 'ember-debug'], ['deprecate', 'ember-debug'], ['assert', 'ember-debug'], ['warn', 'ember-debug'], ['debug', 'ember-debug'], ['runInDebug', 'ember-debug'],\n\n // ember-metal\n ['computed', 'ember-metal'], ['computed.alias', 'ember-metal', 'alias'], ['ComputedProperty', 'ember-metal'], ['cacheFor', 'ember-metal'], ['merge', 'ember-metal'], ['instrument', 'ember-metal'], ['Instrumentation.instrument', 'ember-metal', 'instrument'], ['Instrumentation.subscribe', 'ember-metal', 'instrumentationSubscribe'], ['Instrumentation.unsubscribe', 'ember-metal', 'instrumentationUnsubscribe'], ['Instrumentation.reset', 'ember-metal', 'instrumentationReset'], ['testing', 'ember-debug', { get: 'isTesting', set: 'setTesting' }], ['onerror', 'ember-metal', { get: 'getOnerror', set: 'setOnerror' }],\n // ['create'], TODO: figure out what to do here\n // ['keys'], TODO: figure out what to do here\n ['FEATURES', 'ember/features'], ['FEATURES.isEnabled', 'ember-debug', 'isFeatureEnabled'], ['Error', 'ember-debug'], ['META_DESC', 'ember-metal'], ['meta', 'ember-metal'], ['get', 'ember-metal'], ['set', 'ember-metal'], ['_getPath', 'ember-metal'], ['getWithDefault', 'ember-metal'], ['trySet', 'ember-metal'], ['_Cache', 'ember-metal', 'Cache'], ['on', 'ember-metal'], ['addListener', 'ember-metal'], ['removeListener', 'ember-metal'], ['_suspendListener', 'ember-metal', 'suspendListener'], ['_suspendListeners', 'ember-metal', 'suspendListeners'], ['sendEvent', 'ember-metal'], ['hasListeners', 'ember-metal'], ['watchedEvents', 'ember-metal'], ['listenersFor', 'ember-metal'], ['isNone', 'ember-metal'], ['isEmpty', 'ember-metal'], ['isBlank', 'ember-metal'], ['isPresent', 'ember-metal'], ['_Backburner', 'backburner', 'default'], ['run', 'ember-metal'], ['_ObserverSet', 'ember-metal', 'ObserverSet'], ['propertyWillChange', 'ember-metal'], ['propertyDidChange', 'ember-metal'], ['overrideChains', 'ember-metal'], ['beginPropertyChanges', 'ember-metal'], ['beginPropertyChanges', 'ember-metal'], ['endPropertyChanges', 'ember-metal'], ['changeProperties', 'ember-metal'], ['defineProperty', 'ember-metal'], ['watchKey', 'ember-metal'], ['unwatchKey', 'ember-metal'], ['removeChainWatcher', 'ember-metal'], ['_ChainNode', 'ember-metal', 'ChainNode'], ['finishChains', 'ember-metal'], ['watchPath', 'ember-metal'], ['unwatchPath', 'ember-metal'], ['watch', 'ember-metal'], ['isWatching', 'ember-metal'], ['unwatch', 'ember-metal'], ['destroy', 'ember-metal', 'deleteMeta'], ['libraries', 'ember-metal'], ['OrderedSet', 'ember-metal'], ['Map', 'ember-metal'], ['MapWithDefault', 'ember-metal'], ['getProperties', 'ember-metal'], ['setProperties', 'ember-metal'], ['expandProperties', 'ember-metal'], ['NAME_KEY', 'ember-utils'], ['addObserver', 'ember-metal'], ['observersFor', 'ember-metal'], ['removeObserver', 'ember-metal'], ['_suspendObserver', 'ember-metal'], ['_suspendObservers', 'ember-metal'], ['required', 'ember-metal'], ['aliasMethod', 'ember-metal'], ['observer', 'ember-metal'], ['immediateObserver', 'ember-metal', '_immediateObserver'], ['mixin', 'ember-metal'], ['Mixin', 'ember-metal'], ['bind', 'ember-metal'], ['Binding', 'ember-metal'], ['isGlobalPath', 'ember-metal'],\n\n // ember-views\n ['$', 'ember-views', 'jQuery'], ['ViewUtils.isSimpleClick', 'ember-views', 'isSimpleClick'], ['ViewUtils.getViewElement', 'ember-views', 'getViewElement'], ['ViewUtils.getViewBounds', 'ember-views', 'getViewBounds'], ['ViewUtils.getViewClientRects', 'ember-views', 'getViewClientRects'], ['ViewUtils.getViewBoundingClientRect', 'ember-views', 'getViewBoundingClientRect'], ['ViewUtils.getRootViews', 'ember-views', 'getRootViews'], ['ViewUtils.getChildViews', 'ember-views', 'getChildViews'], ['TextSupport', 'ember-views'], ['ComponentLookup', 'ember-views'], ['EventDispatcher', 'ember-views'],\n\n // ember-glimmer\n ['Component', 'ember-glimmer', 'Component'], ['Helper', 'ember-glimmer', 'Helper'], ['Helper.helper', 'ember-glimmer', 'helper'], ['Checkbox', 'ember-glimmer', 'Checkbox'], ['LinkComponent', 'ember-glimmer', 'LinkComponent'], ['TextArea', 'ember-glimmer', 'TextArea'], ['TextField', 'ember-glimmer', 'TextField'], ['TEMPLATES', 'ember-glimmer', { get: 'getTemplates', set: 'setTemplates' }], ['Handlebars.template', 'ember-glimmer', 'template'], ['Handlebars.SafeString', 'ember-glimmer', { get: '_getSafeString' }], ['Handlebars.Utils.escapeExpression', 'ember-glimmer', 'escapeExpression'], ['String.htmlSafe', 'ember-glimmer', 'htmlSafe'],\n\n // ember-runtime\n ['_RegistryProxyMixin', 'ember-runtime', 'RegistryProxyMixin'], ['_ContainerProxyMixin', 'ember-runtime', 'ContainerProxyMixin'], ['Object', 'ember-runtime'], ['String', 'ember-runtime'], ['compare', 'ember-runtime'], ['copy', 'ember-runtime'], ['isEqual', 'ember-runtime'], ['inject', 'ember-runtime'], ['Array', 'ember-runtime'], ['Comparable', 'ember-runtime'], ['Namespace', 'ember-runtime'], ['Enumerable', 'ember-runtime'], ['ArrayProxy', 'ember-runtime'], ['ObjectProxy', 'ember-runtime'], ['ActionHandler', 'ember-runtime'], ['CoreObject', 'ember-runtime'], ['NativeArray', 'ember-runtime'], ['Copyable', 'ember-runtime'], ['Freezable', 'ember-runtime'], ['FROZEN_ERROR', 'ember-runtime'], ['MutableEnumerable', 'ember-runtime'], ['MutableArray', 'ember-runtime'], ['TargetActionSupport', 'ember-runtime'], ['Evented', 'ember-runtime'], ['PromiseProxyMixin', 'ember-runtime'], ['Observable', 'ember-runtime'], ['typeOf', 'ember-runtime'], ['isArray', 'ember-runtime'], ['Object', 'ember-runtime'], ['onLoad', 'ember-runtime'], ['runLoadHooks', 'ember-runtime'], ['Controller', 'ember-runtime'], ['ControllerMixin', 'ember-runtime'], ['Service', 'ember-runtime'], ['_ProxyMixin', 'ember-runtime'], ['RSVP', 'ember-runtime'], ['STRINGS', 'ember-runtime', { get: 'getStrings', set: 'setStrings' }], ['BOOTED', 'ember-runtime', { get: 'isNamespaceSearchDisabled', set: 'setNamespaceSearchDisabled' }],\n\n // ember-routing\n ['Location', 'ember-routing'], ['AutoLocation', 'ember-routing'], ['HashLocation', 'ember-routing'], ['HistoryLocation', 'ember-routing'], ['NoneLocation', 'ember-routing'], ['controllerFor', 'ember-routing'], ['generateControllerFactory', 'ember-routing'], ['generateController', 'ember-routing'], ['RouterDSL', 'ember-routing'], ['Router', 'ember-routing'], ['Route', 'ember-routing'],\n\n // ember-application\n ['Application', 'ember-application'], ['ApplicationInstance', 'ember-application'], ['Engine', 'ember-application'], ['EngineInstance', 'ember-application'], ['Resolver', 'ember-application'], ['DefaultResolver', 'ember-application', 'Resolver'],\n\n // ember-extension-support\n ['DataAdapter', 'ember-extension-support'], ['ContainerDebugAdapter', 'ember-extension-support']].forEach(function (reexport) {\n var path = reexport[0],\n moduleId = reexport[1],\n exportName = reexport[2];\n\n\n // default path === exportName if none present\n if (!exportName) {\n exportName = path;\n }\n\n QUnit.test('Ember.' + path + ' exports correctly', function (assert) {\n (0, _internalTestHelpers.confirmExport)(_index.default, assert, path, moduleId, exportName);\n });\n });\n\n QUnit.test('Ember.String.isHTMLSafe exports correctly', function (assert) {\n (0, _internalTestHelpers.confirmExport)(_index.default, assert, 'String.isHTMLSafe', 'ember-glimmer', 'isHTMLSafe');\n });\n\n if (_features.EMBER_METAL_WEAKMAP) {\n QUnit.test('Ember.WeakMap exports correctly', function (assert) {\n (0, _internalTestHelpers.confirmExport)(_index.default, assert, 'WeakMap', 'ember-metal', 'WeakMap');\n });\n }\n\n if (true) {\n QUnit.test('Ember.MODEL_FACTORY_INJECTIONS', function (assert) {\n var descriptor = Object.getOwnPropertyDescriptor(_index.default, 'MODEL_FACTORY_INJECTIONS');\n assert.equal(descriptor.enumerable, false, 'descriptor is not enumerable');\n assert.equal(descriptor.configurable, false, 'descriptor is not configurable');\n\n assert.equal(_index.default.MODEL_FACTORY_INJECTIONS, false);\n\n expectDeprecation(function () {\n _index.default.MODEL_FACTORY_INJECTIONS = true;\n }, 'Ember.MODEL_FACTORY_INJECTIONS is no longer required');\n assert.equal(_index.default.MODEL_FACTORY_INJECTIONS, false, 'writing to the property has no affect');\n });\n }\n});","QUnit.module('ESLint | ember/tests/reexports_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/reexports_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/basic_test', ['ember-utils', 'ember-console', 'ember-runtime', 'ember-routing', 'ember-metal', 'ember-glimmer', 'ember-views', 'ember-template-compiler', 'ember-application', 'router'], function (_emberUtils, _emberConsole, _emberRuntime, _emberRouting, _emberMetal, _emberGlimmer, _emberViews, _emberTemplateCompiler, _emberApplication, _router) {\n 'use strict';\n\n var trim = _emberViews.jQuery.trim;\n\n var Router = void 0,\n App = void 0,\n router = void 0,\n registry = void 0,\n container = void 0,\n originalLoggerError = void 0;\n\n function bootApplication() {\n router = container.lookup('router:main');\n (0, _emberMetal.run)(App, 'advanceReadiness');\n }\n\n function handleURL(path) {\n return (0, _emberMetal.run)(function () {\n return router.handleURL(path).then(function (value) {\n ok(true, 'url: `' + path + '` was handled');\n return value;\n }, function (reason) {\n ok(false, 'failed to visit:`' + path + '` reason: `' + QUnit.jsDump.parse(reason));\n throw reason;\n });\n });\n }\n\n function handleURLAborts(path) {\n (0, _emberMetal.run)(function () {\n router.handleURL(path).then(function (value) {\n ok(false, 'url: `' + path + '` was NOT to be handled');\n }, function (reason) {\n ok(reason && reason.message === 'TransitionAborted', 'url: `' + path + '` was to be aborted');\n });\n });\n }\n\n function handleURLRejectsWith(path, expectedReason) {\n (0, _emberMetal.run)(function () {\n router.handleURL(path).then(function (value) {\n ok(false, 'expected handleURLing: `' + path + '` to fail');\n }, function (reason) {\n equal(reason, expectedReason);\n });\n });\n }\n\n QUnit.module('Basic Routing', {\n setup: function () {\n (0, _emberMetal.run)(function () {\n App = _emberApplication.Application.create({\n name: 'App',\n rootElement: '#qunit-fixture'\n });\n\n App.deferReadiness();\n\n App.Router.reopen({\n location: 'none'\n });\n\n Router = App.Router;\n\n App.LoadingRoute = _emberRouting.Route.extend({});\n\n registry = App.__registry__;\n container = App.__container__;\n\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('

    Hours

    '));\n (0, _emberGlimmer.setTemplate)('homepage', (0, _emberTemplateCompiler.compile)('

    Megatroll

    {{model.home}}

    '));\n (0, _emberGlimmer.setTemplate)('camelot', (0, _emberTemplateCompiler.compile)('

    Is a silly place

    '));\n\n originalLoggerError = _emberConsole.default.error;\n });\n },\n teardown: function () {\n (0, _emberMetal.run)(function () {\n App.destroy();\n App = null;\n\n (0, _emberGlimmer.setTemplates)({});\n _emberConsole.default.error = originalLoggerError;\n });\n }\n });\n\n QUnit.test('The route controller specified via controllerName is used in render', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n (0, _emberGlimmer.setTemplate)('alternative_home', (0, _emberTemplateCompiler.compile)('

    alternative home: {{myValue}}

    '));\n\n App.HomeRoute = _emberRouting.Route.extend({\n controllerName: 'myController',\n renderTemplate: function () {\n this.render('alternative_home');\n }\n });\n\n registry.register('controller:myController', _emberRuntime.Controller.extend({\n myValue: 'foo'\n }));\n\n bootApplication();\n\n deepEqual(container.lookup('route:home').controller, container.lookup('controller:myController'), 'route controller is set by controllerName');\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'alternative home: foo', 'The homepage template was rendered with data from the custom controller');\n });\n\n QUnit.test('The route controller specified via controllerName is used in render even when a controller with the routeName is available', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('

    home: {{myValue}}

    '));\n\n App.HomeRoute = _emberRouting.Route.extend({\n controllerName: 'myController'\n });\n\n registry.register('controller:home', _emberRuntime.Controller.extend({\n myValue: 'home'\n }));\n\n registry.register('controller:myController', _emberRuntime.Controller.extend({\n myValue: 'myController'\n }));\n\n bootApplication();\n\n deepEqual(container.lookup('route:home').controller, container.lookup('controller:myController'), 'route controller is set by controllerName');\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'home: myController', 'The homepage template was rendered with data from the custom controller');\n });\n\n QUnit.test('The Homepage with a `setupController` hook modifying other controllers', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n setupController: function (controller) {\n (0, _emberMetal.set)(this.controllerFor('home'), 'hours', (0, _emberRuntime.A)(['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']));\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('
      {{#each hours as |entry|}}
    • {{entry}}
    • {{/each}}
    '));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('ul li', '#qunit-fixture').eq(2).text(), 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n\n QUnit.test('The Homepage with a computed context that does not get overridden', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeController = _emberRuntime.Controller.extend({\n model: (0, _emberMetal.computed)(function () {\n return (0, _emberRuntime.A)(['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']);\n })\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('
      {{#each model as |passage|}}
    • {{passage}}
    • {{/each}}
    '));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('ul li', '#qunit-fixture').eq(2).text(), 'Sunday: Noon to 6pm', 'The template was rendered with the context intact');\n });\n\n QUnit.test('The Homepage getting its controller context via model', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n model: function () {\n return (0, _emberRuntime.A)(['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']);\n },\n setupController: function (controller, model) {\n equal(this.controllerFor('home'), controller);\n\n (0, _emberMetal.set)(this.controllerFor('home'), 'hours', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('
      {{#each hours as |entry|}}
    • {{entry}}
    • {{/each}}
    '));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('ul li', '#qunit-fixture').eq(2).text(), 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n\n QUnit.test('The Specials Page getting its controller context by deserializing the params hash', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n App.SpecialRoute = _emberRouting.Route.extend({\n model: function (params) {\n return _emberRuntime.Object.create({\n menuItemId: params.menu_item_id\n });\n },\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.menuItemId}}

    '));\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n handleURL('/specials/1');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), '1', 'The model was used to render the template');\n });\n\n QUnit.test('The Specials Page defaults to looking models up via `find`', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n return App.MenuItem.create({\n id: id\n });\n }\n });\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.id}}

    '));\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n handleURL('/specials/1');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), '1', 'The model was used to render the template');\n });\n\n QUnit.test('The Special Page returning a promise puts the app into a loading state until the promise is resolved', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n var menuItem = void 0,\n resolve = void 0;\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n menuItem = App.MenuItem.create({ id: id });\n\n return new _emberRuntime.RSVP.Promise(function (res) {\n resolve = res;\n });\n }\n });\n\n App.LoadingRoute = _emberRouting.Route.extend({});\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.id}}

    '));\n\n (0, _emberGlimmer.setTemplate)('loading', (0, _emberTemplateCompiler.compile)('

    LOADING!

    '));\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n handleURL('/specials/1');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'LOADING!', 'The app is in the loading state');\n\n (0, _emberMetal.run)(function () {\n return resolve(menuItem);\n });\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), '1', 'The app is now in the specials state');\n });\n\n QUnit.test('The loading state doesn\\'t get entered for promises that resolve on the same run loop', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n return { id: id };\n }\n });\n\n App.LoadingRoute = _emberRouting.Route.extend({\n enter: function () {\n ok(false, 'LoadingRoute shouldn\\'t have been entered.');\n }\n });\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.id}}

    '));\n\n (0, _emberGlimmer.setTemplate)('loading', (0, _emberTemplateCompiler.compile)('

    LOADING!

    '));\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n handleURL('/specials/1');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), '1', 'The app is now in the specials state');\n });\n\n /*\n asyncTest(\"The Special page returning an error fires the error hook on SpecialRoute\", function() {\n Router.map(function() {\n this.route(\"home\", { path: \"/\" });\n this.route(\"special\", { path: \"/specials/:menu_item_id\" });\n });\n \n let menuItem;\n \n App.MenuItem = Ember.Object.extend();\n App.MenuItem.reopenClass({\n find: function(id) {\n menuItem = App.MenuItem.create({ id: id });\n run.later(function() { menuItem.resolve(menuItem); }, 1);\n return menuItem;\n }\n });\n \n App.SpecialRoute = Route.extend({\n setup: function() {\n throw 'Setup error';\n },\n actions: {\n error: function(reason) {\n equal(reason, 'Setup error');\n QUnit.start();\n }\n }\n });\n \n bootApplication();\n \n handleURLRejectsWith('/specials/1', 'Setup error');\n });\n */\n\n QUnit.test('The Special page returning an error invokes SpecialRoute\\'s error handler', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n var menuItem = void 0,\n promise = void 0,\n resolve = void 0;\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n menuItem = App.MenuItem.create({ id: id });\n promise = new _emberRuntime.RSVP.Promise(function (res) {\n resolve = res;\n });\n\n return promise;\n }\n });\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setup: function () {\n throw 'Setup error';\n },\n\n actions: {\n error: function (reason) {\n equal(reason, 'Setup error', 'SpecialRoute#error received the error thrown from setup');\n return true;\n }\n }\n });\n\n bootApplication();\n\n handleURLRejectsWith('/specials/1', 'Setup error');\n\n (0, _emberMetal.run)(function () {\n return resolve(menuItem);\n });\n });\n\n var testOverridableErrorHandler = function (handlersName) {\n expect(2);\n\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n var menuItem = void 0,\n resolve = void 0;\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n menuItem = App.MenuItem.create({ id: id });\n return new _emberRuntime.RSVP.Promise(function (res) {\n resolve = res;\n });\n }\n });\n\n var attrs = {};\n attrs[handlersName] = {\n error: function (reason) {\n equal(reason, 'Setup error', 'error was correctly passed to custom ApplicationRoute handler');\n return true;\n }\n };\n\n App.ApplicationRoute = _emberRouting.Route.extend(attrs);\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setup: function () {\n throw 'Setup error';\n }\n });\n\n bootApplication();\n\n handleURLRejectsWith('/specials/1', 'Setup error');\n\n (0, _emberMetal.run)(function () {\n return resolve(menuItem);\n });\n };\n\n QUnit.test('ApplicationRoute\\'s default error handler can be overridden', function () {\n testOverridableErrorHandler('actions');\n });\n\n QUnit.asyncTest('Moving from one page to another triggers the correct callbacks', function () {\n expect(3);\n\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('special', { path: '/specials/:menu_item_id' });\n });\n\n App.MenuItem = _emberRuntime.Object.extend();\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('

    Home

    '));\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.id}}

    '));\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n var transition = handleURL('/');\n\n (0, _emberMetal.run)(function () {\n transition.then(function () {\n equal((0, _emberViews.jQuery)('h3', '#qunit-fixture').text(), 'Home', 'The app is now in the initial state');\n\n var promiseContext = App.MenuItem.create({ id: 1 });\n _emberMetal.run.later(function () {\n return _emberRuntime.RSVP.resolve(promiseContext);\n }, 1);\n\n return router.transitionTo('special', promiseContext);\n }).then(function (result) {\n deepEqual(router.location.path, '/specials/1');\n QUnit.start();\n });\n });\n });\n\n QUnit.asyncTest('Nested callbacks are not exited when moving to siblings', function () {\n Router.map(function () {\n this.route('root', { path: '/' }, function () {\n this.route('special', { path: '/specials/:menu_item_id', resetNamespace: true });\n });\n });\n\n App.RootRoute = _emberRouting.Route.extend({\n model: function () {\n rootModel++;\n return this._super.apply(this, arguments);\n },\n setupController: function () {\n rootSetup++;\n },\n renderTemplate: function () {\n rootRender++;\n },\n\n\n serialize: function () {\n rootSerialize++;\n return this._super.apply(this, arguments);\n }\n });\n\n var currentPath = void 0;\n\n App.ApplicationController = _emberRuntime.Controller.extend({\n currentPathDidChange: (0, _emberMetal.observer)('currentPath', function () {\n currentPath = (0, _emberMetal.get)(this, 'currentPath');\n })\n });\n\n var menuItem = void 0;\n\n App.MenuItem = _emberRuntime.Object.extend();\n App.MenuItem.reopenClass({\n find: function (id) {\n menuItem = App.MenuItem.create({ id: id });\n return menuItem;\n }\n });\n\n App.LoadingRoute = _emberRouting.Route.extend({});\n\n App.HomeRoute = _emberRouting.Route.extend({});\n\n App.SpecialRoute = _emberRouting.Route.extend({\n setupController: function (controller, model) {\n (0, _emberMetal.set)(controller, 'model', model);\n }\n });\n\n (0, _emberGlimmer.setTemplate)('root/index', (0, _emberTemplateCompiler.compile)('

    Home

    '));\n\n (0, _emberGlimmer.setTemplate)('special', (0, _emberTemplateCompiler.compile)('

    {{model.id}}

    '));\n\n (0, _emberGlimmer.setTemplate)('loading', (0, _emberTemplateCompiler.compile)('

    LOADING!

    '));\n\n var rootSetup = 0;\n var rootRender = 0;\n var rootModel = 0;\n var rootSerialize = 0;\n\n bootApplication();\n\n registry.register('controller:special', _emberRuntime.Controller.extend());\n\n equal((0, _emberViews.jQuery)('h3', '#qunit-fixture').text(), 'Home', 'The app is now in the initial state');\n equal(rootSetup, 1, 'The root setup was triggered');\n equal(rootRender, 1, 'The root render was triggered');\n equal(rootSerialize, 0, 'The root serialize was not called');\n equal(rootModel, 1, 'The root model was called');\n\n router = container.lookup('router:main');\n\n (0, _emberMetal.run)(function () {\n var menuItem = App.MenuItem.create({ id: 1 });\n _emberMetal.run.later(function () {\n return _emberRuntime.RSVP.resolve(menuItem);\n }, 1);\n\n router.transitionTo('special', menuItem).then(function (result) {\n equal(rootSetup, 1, 'The root setup was not triggered again');\n equal(rootRender, 1, 'The root render was not triggered again');\n equal(rootSerialize, 0, 'The root serialize was not called');\n\n // TODO: Should this be changed?\n equal(rootModel, 1, 'The root model was called again');\n\n deepEqual(router.location.path, '/specials/1');\n equal(currentPath, 'root.special');\n\n QUnit.start();\n });\n });\n });\n\n QUnit.asyncTest('Events are triggered on the controller if a matching action name is implemented', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n var model = { name: 'Tom Dale' };\n var stateIsNotCalled = true;\n\n App.HomeRoute = _emberRouting.Route.extend({\n model: function () {\n return model;\n },\n\n\n actions: {\n showStuff: function (obj) {\n stateIsNotCalled = false;\n }\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('{{name}}'));\n\n var controller = _emberRuntime.Controller.extend({\n actions: {\n showStuff: function (context) {\n ok(stateIsNotCalled, 'an event on the state is not triggered');\n deepEqual(context, { name: 'Tom Dale' }, 'an event with context is passed');\n QUnit.start();\n }\n }\n });\n\n registry.register('controller:home', controller);\n\n bootApplication();\n\n (0, _emberViews.jQuery)('#qunit-fixture a').click();\n });\n\n QUnit.asyncTest('Events are triggered on the current state when defined in `actions` object', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n var model = { name: 'Tom Dale' };\n\n App.HomeRoute = _emberRouting.Route.extend({\n model: function () {\n return model;\n },\n\n\n actions: {\n showStuff: function (obj) {\n ok(this instanceof App.HomeRoute, 'the handler is an App.HomeRoute');\n // Using Ember.copy removes any private Ember vars which older IE would be confused by\n deepEqual((0, _emberRuntime.copy)(obj, true), { name: 'Tom Dale' }, 'the context is correct');\n QUnit.start();\n }\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('{{model.name}}'));\n\n bootApplication();\n\n (0, _emberViews.jQuery)('#qunit-fixture a').click();\n });\n\n QUnit.asyncTest('Events defined in `actions` object are triggered on the current state when routes are nested', function () {\n Router.map(function () {\n this.route('root', { path: '/' }, function () {\n this.route('index', { path: '/' });\n });\n });\n\n var model = { name: 'Tom Dale' };\n\n App.RootRoute = _emberRouting.Route.extend({\n actions: {\n showStuff: function (obj) {\n ok(this instanceof App.RootRoute, 'the handler is an App.HomeRoute');\n // Using Ember.copy removes any private Ember vars which older IE would be confused by\n deepEqual((0, _emberRuntime.copy)(obj, true), { name: 'Tom Dale' }, 'the context is correct');\n QUnit.start();\n }\n }\n });\n\n App.RootIndexRoute = _emberRouting.Route.extend({\n model: function () {\n return model;\n }\n });\n\n (0, _emberGlimmer.setTemplate)('root/index', (0, _emberTemplateCompiler.compile)('{{model.name}}'));\n\n bootApplication();\n\n (0, _emberViews.jQuery)('#qunit-fixture a').click();\n });\n\n QUnit.test('Events can be handled by inherited event handlers', function () {\n expect(4);\n\n App.SuperRoute = _emberRouting.Route.extend({\n actions: {\n foo: function () {\n ok(true, 'foo');\n },\n bar: function (msg) {\n equal(msg, 'HELLO');\n }\n }\n });\n\n App.RouteMixin = _emberMetal.Mixin.create({\n actions: {\n bar: function (msg) {\n equal(msg, 'HELLO');\n this._super(msg);\n }\n }\n });\n\n App.IndexRoute = App.SuperRoute.extend(App.RouteMixin, {\n actions: {\n baz: function () {\n ok(true, 'baz');\n }\n }\n });\n\n bootApplication();\n\n router.send('foo');\n router.send('bar', 'HELLO');\n router.send('baz');\n });\n\n QUnit.asyncTest('Actions are not triggered on the controller if a matching action name is implemented as a method', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n var model = { name: 'Tom Dale' };\n var stateIsNotCalled = true;\n\n App.HomeRoute = _emberRouting.Route.extend({\n model: function () {\n return model;\n },\n\n\n actions: {\n showStuff: function (context) {\n ok(stateIsNotCalled, 'an event on the state is not triggered');\n deepEqual(context, { name: 'Tom Dale' }, 'an event with context is passed');\n QUnit.start();\n }\n }\n });\n\n (0, _emberGlimmer.setTemplate)('home', (0, _emberTemplateCompiler.compile)('{{name}}'));\n\n var controller = _emberRuntime.Controller.extend({\n showStuff: function (context) {\n stateIsNotCalled = false;\n ok(stateIsNotCalled, 'an event on the state is not triggered');\n }\n });\n\n registry.register('controller:home', controller);\n\n bootApplication();\n\n (0, _emberViews.jQuery)('#qunit-fixture a').click();\n });\n\n QUnit.asyncTest('actions can be triggered with multiple arguments', function () {\n Router.map(function () {\n this.route('root', { path: '/' }, function () {\n this.route('index', { path: '/' });\n });\n });\n\n var model1 = { name: 'Tilde' };\n var model2 = { name: 'Tom Dale' };\n\n App.RootRoute = _emberRouting.Route.extend({\n actions: {\n showStuff: function (obj1, obj2) {\n ok(this instanceof App.RootRoute, 'the handler is an App.HomeRoute');\n // Using Ember.copy removes any private Ember vars which older IE would be confused by\n deepEqual((0, _emberRuntime.copy)(obj1, true), { name: 'Tilde' }, 'the first context is correct');\n deepEqual((0, _emberRuntime.copy)(obj2, true), { name: 'Tom Dale' }, 'the second context is correct');\n QUnit.start();\n }\n }\n });\n\n App.RootIndexController = _emberRuntime.Controller.extend({\n model1: model1,\n model2: model2\n });\n\n (0, _emberGlimmer.setTemplate)('root/index', (0, _emberTemplateCompiler.compile)('{{model1.name}}'));\n\n bootApplication();\n\n (0, _emberViews.jQuery)('#qunit-fixture a').click();\n });\n\n QUnit.test('transitioning multiple times in a single run loop only sets the URL once', function () {\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('foo');\n this.route('bar');\n });\n\n bootApplication();\n\n var urlSetCount = 0;\n\n router.get('location').setURL = function (path) {\n urlSetCount++;\n (0, _emberMetal.set)(this, 'path', path);\n };\n\n equal(urlSetCount, 0);\n\n (0, _emberMetal.run)(function () {\n router.transitionTo('foo');\n router.transitionTo('bar');\n });\n\n equal(urlSetCount, 1);\n equal(router.get('location').getURL(), '/bar');\n });\n\n QUnit.test('navigating away triggers a url property change', function () {\n expect(3);\n\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('foo', { path: '/foo' });\n this.route('bar', { path: '/bar' });\n });\n\n bootApplication();\n\n (0, _emberMetal.run)(function () {\n (0, _emberMetal.addObserver)(router, 'url', function () {\n ok(true, 'url change event was fired');\n });\n });\n\n ['foo', 'bar', '/foo'].forEach(function (destination) {\n return (0, _emberMetal.run)(router, 'transitionTo', destination);\n });\n });\n\n QUnit.test('using replaceWith calls location.replaceURL if available', function () {\n var setCount = 0;\n var replaceCount = 0;\n\n Router.reopen({\n location: _emberRouting.NoneLocation.create({\n setURL: function (path) {\n setCount++;\n (0, _emberMetal.set)(this, 'path', path);\n },\n replaceURL: function (path) {\n replaceCount++;\n (0, _emberMetal.set)(this, 'path', path);\n }\n })\n });\n\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('foo');\n });\n\n bootApplication();\n\n equal(setCount, 0);\n equal(replaceCount, 0);\n\n (0, _emberMetal.run)(function () {\n return router.replaceWith('foo');\n });\n\n equal(setCount, 0, 'should not call setURL');\n equal(replaceCount, 1, 'should call replaceURL once');\n equal(router.get('location').getURL(), '/foo');\n });\n\n QUnit.test('using replaceWith calls setURL if location.replaceURL is not defined', function () {\n var setCount = 0;\n\n Router.reopen({\n location: _emberRouting.NoneLocation.create({\n setURL: function (path) {\n setCount++;\n (0, _emberMetal.set)(this, 'path', path);\n }\n })\n });\n\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('foo');\n });\n\n bootApplication();\n\n equal(setCount, 0);\n\n (0, _emberMetal.run)(function () {\n return router.replaceWith('foo');\n });\n\n equal(setCount, 1, 'should call setURL once');\n equal(router.get('location').getURL(), '/foo');\n });\n\n QUnit.test('Route inherits model from parent route', function () {\n expect(9);\n\n Router.map(function () {\n this.route('the_post', { path: '/posts/:post_id' }, function () {\n this.route('comments');\n\n this.route('shares', { path: '/shares/:share_id', resetNamespace: true }, function () {\n this.route('share');\n });\n });\n });\n\n var post1 = {};\n var post2 = {};\n var post3 = {};\n var share1 = {};\n var share2 = {};\n var share3 = {};\n\n var posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n var shares = {\n 1: share1,\n 2: share2,\n 3: share3\n };\n\n App.ThePostRoute = _emberRouting.Route.extend({\n model: function (params) {\n return posts[params.post_id];\n }\n });\n\n App.ThePostCommentsRoute = _emberRouting.Route.extend({\n afterModel: function (post, transition) {\n var parent_model = this.modelFor('thePost');\n\n equal(post, parent_model);\n }\n });\n\n App.SharesRoute = _emberRouting.Route.extend({\n model: function (params) {\n return shares[params.share_id];\n }\n });\n\n App.SharesShareRoute = _emberRouting.Route.extend({\n afterModel: function (share, transition) {\n var parent_model = this.modelFor('shares');\n\n equal(share, parent_model);\n }\n });\n\n bootApplication();\n\n handleURL('/posts/1/comments');\n handleURL('/posts/1/shares/1');\n\n handleURL('/posts/2/comments');\n handleURL('/posts/2/shares/2');\n\n handleURL('/posts/3/comments');\n handleURL('/posts/3/shares/3');\n });\n\n QUnit.test('Routes with { resetNamespace: true } inherits model from parent route', function () {\n expect(6);\n\n Router.map(function () {\n this.route('the_post', { path: '/posts/:post_id' }, function () {\n this.route('comments', { resetNamespace: true }, function () {});\n });\n });\n\n var post1 = {};\n var post2 = {};\n var post3 = {};\n\n var posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n\n App.ThePostRoute = _emberRouting.Route.extend({\n model: function (params) {\n return posts[params.post_id];\n }\n });\n\n App.CommentsRoute = _emberRouting.Route.extend({\n afterModel: function (post, transition) {\n var parent_model = this.modelFor('thePost');\n\n equal(post, parent_model);\n }\n });\n\n bootApplication();\n\n handleURL('/posts/1/comments');\n handleURL('/posts/2/comments');\n handleURL('/posts/3/comments');\n });\n\n QUnit.test('It is possible to get the model from a parent route', function () {\n expect(9);\n\n Router.map(function () {\n this.route('the_post', { path: '/posts/:post_id' }, function () {\n this.route('comments', { resetNamespace: true });\n });\n });\n\n var post1 = {};\n var post2 = {};\n var post3 = {};\n var currentPost = void 0;\n\n var posts = {\n 1: post1,\n 2: post2,\n 3: post3\n };\n\n App.ThePostRoute = _emberRouting.Route.extend({\n model: function (params) {\n return posts[params.post_id];\n }\n });\n\n App.CommentsRoute = _emberRouting.Route.extend({\n model: function () {\n // Allow both underscore / camelCase format.\n equal(this.modelFor('thePost'), currentPost);\n equal(this.modelFor('the_post'), currentPost);\n }\n });\n\n bootApplication();\n\n currentPost = post1;\n handleURL('/posts/1/comments');\n\n currentPost = post2;\n handleURL('/posts/2/comments');\n\n currentPost = post3;\n handleURL('/posts/3/comments');\n });\n\n QUnit.test('A redirection hook is provided', function () {\n Router.map(function () {\n this.route('choose', { path: '/' });\n this.route('home');\n });\n\n var chooseFollowed = 0;\n var destination = void 0;\n\n App.ChooseRoute = _emberRouting.Route.extend({\n redirect: function () {\n if (destination) {\n this.transitionTo(destination);\n }\n },\n setupController: function () {\n chooseFollowed++;\n }\n });\n\n destination = 'home';\n\n bootApplication();\n\n equal(chooseFollowed, 0, 'The choose route wasn\\'t entered since a transition occurred');\n equal((0, _emberViews.jQuery)('h3:contains(Hours)', '#qunit-fixture').length, 1, 'The home template was rendered');\n equal((0, _emberUtils.getOwner)(router).lookup('controller:application').get('currentPath'), 'home');\n });\n\n QUnit.test('Redirecting from the middle of a route aborts the remainder of the routes', function () {\n expect(3);\n\n Router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', { resetNamespace: true }, function () {\n this.route('baz');\n });\n });\n });\n\n App.BarRoute = _emberRouting.Route.extend({\n redirect: function () {\n this.transitionTo('home');\n },\n setupController: function () {\n ok(false, 'Should transition before setupController');\n }\n });\n\n App.BarBazRoute = _emberRouting.Route.extend({\n enter: function () {\n ok(false, 'Should abort transition getting to next route');\n }\n });\n\n bootApplication();\n\n handleURLAborts('/foo/bar/baz');\n\n equal((0, _emberUtils.getOwner)(router).lookup('controller:application').get('currentPath'), 'home');\n equal(router.get('location').getURL(), '/home');\n });\n\n QUnit.test('Redirecting to the current target in the middle of a route does not abort initial routing', function () {\n expect(5);\n\n Router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', { resetNamespace: true }, function () {\n this.route('baz');\n });\n });\n });\n\n var successCount = 0;\n App.BarRoute = _emberRouting.Route.extend({\n redirect: function () {\n this.transitionTo('bar.baz').then(function () {\n successCount++;\n });\n },\n setupController: function () {\n ok(true, 'Should still invoke bar\\'s setupController');\n }\n });\n\n App.BarBazRoute = _emberRouting.Route.extend({\n setupController: function () {\n ok(true, 'Should still invoke bar.baz\\'s setupController');\n }\n });\n\n bootApplication();\n\n handleURL('/foo/bar/baz');\n\n equal((0, _emberUtils.getOwner)(router).lookup('controller:application').get('currentPath'), 'foo.bar.baz');\n equal(successCount, 1, 'transitionTo success handler was called once');\n });\n\n QUnit.test('Redirecting to the current target with a different context aborts the remainder of the routes', function () {\n expect(4);\n\n Router.map(function () {\n this.route('home');\n this.route('foo', function () {\n this.route('bar', { path: 'bar/:id', resetNamespace: true }, function () {\n this.route('baz');\n });\n });\n });\n\n var model = { id: 2 };\n\n var count = 0;\n\n App.BarRoute = _emberRouting.Route.extend({\n afterModel: function (context) {\n if (count++ > 10) {\n ok(false, 'infinite loop');\n } else {\n this.transitionTo('bar.baz', model);\n }\n }\n });\n\n App.BarBazRoute = _emberRouting.Route.extend({\n setupController: function () {\n ok(true, 'Should still invoke setupController');\n }\n });\n\n bootApplication();\n\n handleURLAborts('/foo/bar/1/baz');\n\n equal((0, _emberUtils.getOwner)(router).lookup('controller:application').get('currentPath'), 'foo.bar.baz');\n equal(router.get('location').getURL(), '/foo/bar/2/baz');\n });\n\n QUnit.test('Transitioning from a parent event does not prevent currentPath from being set', function () {\n Router.map(function () {\n this.route('foo', function () {\n this.route('bar', { resetNamespace: true }, function () {\n this.route('baz');\n });\n this.route('qux');\n });\n });\n\n App.FooRoute = _emberRouting.Route.extend({\n actions: {\n goToQux: function () {\n this.transitionTo('foo.qux');\n }\n }\n });\n\n bootApplication();\n\n var applicationController = (0, _emberUtils.getOwner)(router).lookup('controller:application');\n\n handleURL('/foo/bar/baz');\n\n equal(applicationController.get('currentPath'), 'foo.bar.baz');\n\n (0, _emberMetal.run)(function () {\n return router.send('goToQux');\n });\n\n equal(applicationController.get('currentPath'), 'foo.qux');\n equal(router.get('location').getURL(), '/foo/qux');\n });\n\n QUnit.test('Generated names can be customized when providing routes with dot notation', function () {\n expect(4);\n\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('
    Index
    '));\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('

    Home

    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('foo', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('bar', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('bar/baz', (0, _emberTemplateCompiler.compile)('

    {{name}}Bottom!

    '));\n\n Router.map(function () {\n this.route('foo', { path: '/top' }, function () {\n this.route('bar', { path: '/middle', resetNamespace: true }, function () {\n this.route('baz', { path: '/bottom' });\n });\n });\n });\n\n App.FooRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n ok(true, 'FooBarRoute was called');\n return this._super.apply(this, arguments);\n }\n });\n\n App.BarBazRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n ok(true, 'BarBazRoute was called');\n return this._super.apply(this, arguments);\n }\n });\n\n App.BarController = _emberRuntime.Controller.extend({\n name: 'Bar'\n });\n\n App.BarBazController = _emberRuntime.Controller.extend({\n name: 'BarBaz'\n });\n\n bootApplication();\n\n handleURL('/top/middle/bottom');\n\n equal((0, _emberViews.jQuery)('.main .middle .bottom p', '#qunit-fixture').text(), 'BarBazBottom!', 'The templates were rendered into their appropriate parents');\n });\n\n QUnit.test('Child routes render into their parent route\\'s template by default', function () {\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('
    Index
    '));\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('

    Home

    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('top', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('middle', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('middle/bottom', (0, _emberTemplateCompiler.compile)('

    Bottom!

    '));\n\n Router.map(function () {\n this.route('top', function () {\n this.route('middle', { resetNamespace: true }, function () {\n this.route('bottom');\n });\n });\n });\n\n bootApplication();\n\n handleURL('/top/middle/bottom');\n\n equal((0, _emberViews.jQuery)('.main .middle .bottom p', '#qunit-fixture').text(), 'Bottom!', 'The templates were rendered into their appropriate parents');\n });\n\n QUnit.test('Child routes render into specified template', function () {\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('
    Index
    '));\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('

    Home

    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('top', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('middle', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('middle/bottom', (0, _emberTemplateCompiler.compile)('

    Bottom!

    '));\n\n Router.map(function () {\n this.route('top', function () {\n this.route('middle', { resetNamespace: true }, function () {\n this.route('bottom');\n });\n });\n });\n\n App.MiddleBottomRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('middle/bottom', { into: 'top' });\n }\n });\n\n bootApplication();\n\n handleURL('/top/middle/bottom');\n\n equal((0, _emberViews.jQuery)('.main .middle .bottom p', '#qunit-fixture').length, 0, 'should not render into the middle template');\n equal((0, _emberViews.jQuery)('.main .middle > p', '#qunit-fixture').text(), 'Bottom!', 'The template was rendered into the top template');\n });\n\n QUnit.test('Rendering into specified template with slash notation', function () {\n (0, _emberGlimmer.setTemplate)('person/profile', (0, _emberTemplateCompiler.compile)('profile {{outlet}}'));\n (0, _emberGlimmer.setTemplate)('person/details', (0, _emberTemplateCompiler.compile)('details!'));\n\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('person/profile');\n this.render('person/details', { into: 'person/profile' });\n }\n });\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture:contains(profile details!)').length, 1, 'The templates were rendered');\n });\n\n QUnit.test('Parent route context change', function () {\n var editCount = 0;\n var editedPostIds = (0, _emberRuntime.A)();\n\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('post', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('post/index', (0, _emberTemplateCompiler.compile)('showing'));\n (0, _emberGlimmer.setTemplate)('post/edit', (0, _emberTemplateCompiler.compile)('editing'));\n\n Router.map(function () {\n this.route('posts', function () {\n this.route('post', { path: '/:postId', resetNamespace: true }, function () {\n this.route('edit');\n });\n });\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n actions: {\n showPost: function (context) {\n this.transitionTo('post', context);\n }\n }\n });\n\n App.PostRoute = _emberRouting.Route.extend({\n model: function (params) {\n return { id: params.postId };\n },\n serialize: function (model) {\n return { postId: model.id };\n },\n\n\n actions: {\n editPost: function (context) {\n this.transitionTo('post.edit');\n }\n }\n });\n\n App.PostEditRoute = _emberRouting.Route.extend({\n model: function (params) {\n var postId = this.modelFor('post').id;\n editedPostIds.push(postId);\n return null;\n },\n setup: function () {\n this._super.apply(this, arguments);\n editCount++;\n }\n });\n\n bootApplication();\n\n handleURL('/posts/1');\n\n (0, _emberMetal.run)(function () {\n return router.send('editPost');\n });\n (0, _emberMetal.run)(function () {\n return router.send('showPost', { id: '2' });\n });\n (0, _emberMetal.run)(function () {\n return router.send('editPost');\n });\n\n equal(editCount, 2, 'set up the edit route twice without failure');\n deepEqual(editedPostIds, ['1', '2'], 'modelFor posts.post returns the right context');\n });\n\n QUnit.test('Router accounts for rootURL on page load when using history location', function () {\n var rootURL = window.location.pathname + '/app';\n var postsTemplateRendered = false;\n var setHistory = void 0,\n HistoryTestLocation = void 0;\n\n setHistory = function (obj, path) {\n obj.set('history', { state: { path: path } });\n };\n\n // Create new implementation that extends HistoryLocation\n // and set current location to rootURL + '/posts'\n HistoryTestLocation = _emberRouting.HistoryLocation.extend({\n initState: function () {\n var path = rootURL + '/posts';\n\n setHistory(this, path);\n this.set('location', {\n pathname: path,\n href: 'http://localhost/' + path\n });\n },\n replaceState: function (path) {\n setHistory(this, path);\n },\n pushState: function (path) {\n setHistory(this, path);\n }\n });\n\n registry.register('location:historyTest', HistoryTestLocation);\n\n Router.reopen({\n location: 'historyTest',\n rootURL: rootURL\n });\n\n Router.map(function () {\n this.route('posts', { path: '/posts' });\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n model: function () {},\n renderTemplate: function () {\n postsTemplateRendered = true;\n }\n });\n\n bootApplication();\n\n ok(postsTemplateRendered, 'Posts route successfully stripped from rootURL');\n });\n\n QUnit.test('The rootURL is passed properly to the location implementation', function () {\n expect(1);\n var rootURL = '/blahzorz';\n var HistoryTestLocation = void 0;\n\n HistoryTestLocation = _emberRouting.HistoryLocation.extend({\n rootURL: 'this is not the URL you are looking for',\n initState: function () {\n equal(this.get('rootURL'), rootURL);\n }\n });\n\n registry.register('location:history-test', HistoryTestLocation);\n\n Router.reopen({\n location: 'history-test',\n rootURL: rootURL,\n _doURLTransition: function () {}\n });\n\n bootApplication();\n });\n\n QUnit.test('Only use route rendered into main outlet for default into property on child', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet \\'menu\\'}}{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('posts/index', (0, _emberTemplateCompiler.compile)('

    postsIndex

    '));\n (0, _emberGlimmer.setTemplate)('posts/menu', (0, _emberTemplateCompiler.compile)('
    postsMenu
    '));\n\n Router.map(function () {\n this.route('posts', function () {});\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('posts/menu', {\n into: 'application',\n outlet: 'menu'\n });\n }\n });\n\n bootApplication();\n\n handleURL('/posts');\n\n equal((0, _emberViews.jQuery)('div.posts-menu:contains(postsMenu)', '#qunit-fixture').length, 1, 'The posts/menu template was rendered');\n equal((0, _emberViews.jQuery)('p.posts-index:contains(postsIndex)', '#qunit-fixture').length, 1, 'The posts/index template was rendered');\n });\n\n QUnit.test('Generating a URL should not affect currentModel', function () {\n Router.map(function () {\n this.route('post', { path: '/posts/:post_id' });\n });\n\n var posts = {\n 1: { id: 1 },\n 2: { id: 2 }\n };\n\n App.PostRoute = _emberRouting.Route.extend({\n model: function (params) {\n return posts[params.post_id];\n }\n });\n\n bootApplication();\n\n handleURL('/posts/1');\n\n var route = container.lookup('route:post');\n equal(route.modelFor('post'), posts[1]);\n\n var url = router.generate('post', posts[2]);\n equal(url, '/posts/2');\n\n equal(route.modelFor('post'), posts[1]);\n });\n\n QUnit.test('Generated route should be an instance of App.Route if provided', function () {\n var generatedRoute = void 0;\n\n Router.map(function () {\n this.route('posts');\n });\n\n App.Route = _emberRouting.Route.extend();\n\n bootApplication();\n\n handleURL('/posts');\n\n generatedRoute = container.lookup('route:posts');\n\n ok(generatedRoute instanceof App.Route, 'should extend the correct route');\n });\n\n QUnit.test('Nested index route is not overridden by parent\\'s implicit index route', function () {\n Router.map(function () {\n this.route('posts', function () {\n this.route('index', { path: ':category' });\n });\n });\n\n bootApplication();\n\n (0, _emberMetal.run)(function () {\n return router.transitionTo('posts', { category: 'emberjs' });\n });\n\n deepEqual(router.location.path, '/posts/emberjs');\n });\n\n QUnit.test('Application template does not duplicate when re-rendered', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('

    I Render Once

    {{outlet}}'));\n\n Router.map(function () {\n this.route('posts');\n });\n\n App.ApplicationRoute = _emberRouting.Route.extend({\n model: function () {\n return (0, _emberRuntime.A)();\n }\n });\n\n bootApplication();\n\n // should cause application template to re-render\n handleURL('/posts');\n\n equal((0, _emberViews.jQuery)('h3:contains(I Render Once)').length, 1);\n });\n\n QUnit.test('Child routes should render inside the application template if the application template causes a redirect', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('

    App

    {{outlet}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('posts'));\n\n Router.map(function () {\n this.route('posts');\n this.route('photos');\n });\n\n App.ApplicationRoute = _emberRouting.Route.extend({\n afterModel: function () {\n this.transitionTo('posts');\n }\n });\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture > div').text(), 'App posts');\n });\n\n QUnit.test('The template is not re-rendered when the route\\'s context changes', function () {\n Router.map(function () {\n this.route('page', { path: '/page/:name' });\n });\n\n App.PageRoute = _emberRouting.Route.extend({\n model: function (params) {\n return _emberRuntime.Object.create({ name: params.name });\n }\n });\n\n var insertionCount = 0;\n App.FooBarComponent = _emberGlimmer.Component.extend({\n didInsertElement: function () {\n insertionCount += 1;\n }\n });\n\n (0, _emberGlimmer.setTemplate)('page', (0, _emberTemplateCompiler.compile)('

    {{model.name}}{{foo-bar}}

    '));\n\n bootApplication();\n\n handleURL('/page/first');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'first');\n equal(insertionCount, 1);\n\n handleURL('/page/second');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'second');\n equal(insertionCount, 1, 'view should have inserted only once');\n\n (0, _emberMetal.run)(function () {\n return router.transitionTo('page', _emberRuntime.Object.create({ name: 'third' }));\n });\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'third');\n equal(insertionCount, 1, 'view should still have inserted only once');\n });\n\n QUnit.test('The template is not re-rendered when two routes present the exact same template & controller', function () {\n Router.map(function () {\n this.route('first');\n this.route('second');\n this.route('third');\n this.route('fourth');\n });\n\n // Note add a component to test insertion\n\n var insertionCount = 0;\n App.XInputComponent = _emberGlimmer.Component.extend({\n didInsertElement: function () {\n insertionCount += 1;\n }\n });\n\n App.SharedRoute = _emberRouting.Route.extend({\n setupController: function (controller) {\n this.controllerFor('shared').set('message', 'This is the ' + this.routeName + ' message');\n },\n renderTemplate: function (controller, context) {\n this.render('shared', { controller: 'shared' });\n }\n });\n\n App.FirstRoute = App.SharedRoute.extend();\n App.SecondRoute = App.SharedRoute.extend();\n App.ThirdRoute = App.SharedRoute.extend();\n App.FourthRoute = App.SharedRoute.extend();\n\n App.SharedController = _emberRuntime.Controller.extend();\n\n (0, _emberGlimmer.setTemplate)('shared', (0, _emberTemplateCompiler.compile)('

    {{message}}{{x-input}}

    '));\n\n bootApplication();\n\n handleURL('/first');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'This is the first message');\n equal(insertionCount, 1, 'expected one assertion');\n\n // Transition by URL\n handleURL('/second');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'This is the second message');\n equal(insertionCount, 1, 'expected one assertion');\n\n // Then transition directly by route name\n (0, _emberMetal.run)(function () {\n router.transitionTo('third').then(function (value) {\n ok(true, 'expected transition');\n }, function (reason) {\n ok(false, 'unexpected transition failure: ', QUnit.jsDump.parse(reason));\n });\n });\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'This is the third message');\n equal(insertionCount, 1, 'expected one assertion');\n\n // Lastly transition to a different view, with the same controller and template\n handleURL('/fourth');\n equal(insertionCount, 1, 'expected one assertion');\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'This is the fourth message');\n });\n\n QUnit.test('ApplicationRoute with model does not proxy the currentPath', function () {\n var model = {};\n var currentPath = void 0;\n\n App.ApplicationRoute = _emberRouting.Route.extend({\n model: function () {\n return model;\n }\n });\n\n App.ApplicationController = _emberRuntime.Controller.extend({\n currentPathDidChange: (0, _emberMetal.observer)('currentPath', function () {\n currentPath = (0, _emberMetal.get)(this, 'currentPath');\n })\n });\n\n bootApplication();\n\n equal(currentPath, 'index', 'currentPath is index');\n equal('currentPath' in model, false, 'should have defined currentPath on controller');\n });\n\n QUnit.test('Promises encountered on app load put app into loading state until resolved', function () {\n expect(2);\n\n var deferred = _emberRuntime.RSVP.defer();\n\n App.IndexRoute = _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n });\n\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('

    INDEX

    '));\n (0, _emberGlimmer.setTemplate)('loading', (0, _emberTemplateCompiler.compile)('

    LOADING

    '));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'LOADING', 'The loading state is displaying.');\n (0, _emberMetal.run)(deferred.resolve);\n equal((0, _emberViews.jQuery)('p', '#qunit-fixture').text(), 'INDEX', 'The index route is display.');\n });\n\n QUnit.test('Route should tear down multiple outlets', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet \\'menu\\'}}{{outlet}}{{outlet \\'footer\\'}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('users', (0, _emberTemplateCompiler.compile)('users'));\n (0, _emberGlimmer.setTemplate)('posts/index', (0, _emberTemplateCompiler.compile)('

    postsIndex

    '));\n (0, _emberGlimmer.setTemplate)('posts/menu', (0, _emberTemplateCompiler.compile)('
    postsMenu
    '));\n (0, _emberGlimmer.setTemplate)('posts/footer', (0, _emberTemplateCompiler.compile)('
    postsFooter
    '));\n\n Router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('posts/menu', {\n into: 'application',\n outlet: 'menu'\n });\n\n this.render();\n\n this.render('posts/footer', {\n into: 'application',\n outlet: 'footer'\n });\n }\n });\n\n bootApplication();\n\n handleURL('/posts');\n\n equal((0, _emberViews.jQuery)('div.posts-menu:contains(postsMenu)', '#qunit-fixture').length, 1, 'The posts/menu template was rendered');\n equal((0, _emberViews.jQuery)('p.posts-index:contains(postsIndex)', '#qunit-fixture').length, 1, 'The posts/index template was rendered');\n equal((0, _emberViews.jQuery)('div.posts-footer:contains(postsFooter)', '#qunit-fixture').length, 1, 'The posts/footer template was rendered');\n\n handleURL('/users');\n\n equal((0, _emberViews.jQuery)('div.posts-menu:contains(postsMenu)', '#qunit-fixture').length, 0, 'The posts/menu template was removed');\n equal((0, _emberViews.jQuery)('p.posts-index:contains(postsIndex)', '#qunit-fixture').length, 0, 'The posts/index template was removed');\n equal((0, _emberViews.jQuery)('div.posts-footer:contains(postsFooter)', '#qunit-fixture').length, 0, 'The posts/footer template was removed');\n });\n\n QUnit.test('Route will assert if you try to explicitly render {into: ...} a missing template', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'nonexistent' });\n }\n });\n\n expectAssertion(function () {\n return bootApplication();\n }, 'You attempted to render into \\'nonexistent\\' but it was not found');\n });\n\n QUnit.test('Route supports clearing outlet explicitly', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}{{outlet \\'modal\\'}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('users', (0, _emberTemplateCompiler.compile)('users'));\n (0, _emberGlimmer.setTemplate)('posts/index', (0, _emberTemplateCompiler.compile)('
    postsIndex {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('posts/modal', (0, _emberTemplateCompiler.compile)('
    postsModal
    '));\n (0, _emberGlimmer.setTemplate)('posts/extra', (0, _emberTemplateCompiler.compile)('
    postsExtra
    '));\n\n Router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n actions: {\n showModal: function () {\n this.render('posts/modal', {\n into: 'application',\n outlet: 'modal'\n });\n },\n hideModal: function () {\n this.disconnectOutlet({ outlet: 'modal', parentView: 'application' });\n }\n }\n });\n\n App.PostsIndexRoute = _emberRouting.Route.extend({\n actions: {\n showExtra: function () {\n this.render('posts/extra', {\n into: 'posts/index'\n });\n },\n hideExtra: function () {\n this.disconnectOutlet({ parentView: 'posts/index' });\n }\n }\n });\n\n bootApplication();\n\n handleURL('/posts');\n\n equal((0, _emberViews.jQuery)('div.posts-index:contains(postsIndex)', '#qunit-fixture').length, 1, 'The posts/index template was rendered');\n\n (0, _emberMetal.run)(function () {\n return router.send('showModal');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 1, 'The posts/modal template was rendered');\n\n (0, _emberMetal.run)(function () {\n return router.send('showExtra');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-extra:contains(postsExtra)', '#qunit-fixture').length, 1, 'The posts/extra template was rendered');\n\n (0, _emberMetal.run)(function () {\n return router.send('hideModal');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 0, 'The posts/modal template was removed');\n\n (0, _emberMetal.run)(function () {\n return router.send('hideExtra');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-extra:contains(postsExtra)', '#qunit-fixture').length, 0, 'The posts/extra template was removed');\n (0, _emberMetal.run)(function () {\n router.send('showModal');\n });\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 1, 'The posts/modal template was rendered');\n (0, _emberMetal.run)(function () {\n router.send('showExtra');\n });\n equal((0, _emberViews.jQuery)('div.posts-extra:contains(postsExtra)', '#qunit-fixture').length, 1, 'The posts/extra template was rendered');\n\n handleURL('/users');\n\n equal((0, _emberViews.jQuery)('div.posts-index:contains(postsIndex)', '#qunit-fixture').length, 0, 'The posts/index template was removed');\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 0, 'The posts/modal template was removed');\n equal((0, _emberViews.jQuery)('div.posts-extra:contains(postsExtra)', '#qunit-fixture').length, 0, 'The posts/extra template was removed');\n });\n\n QUnit.test('Route supports clearing outlet using string parameter', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}{{outlet \\'modal\\'}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('users', (0, _emberTemplateCompiler.compile)('users'));\n (0, _emberGlimmer.setTemplate)('posts/index', (0, _emberTemplateCompiler.compile)('
    postsIndex {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('posts/modal', (0, _emberTemplateCompiler.compile)('
    postsModal
    '));\n\n Router.map(function () {\n this.route('posts', function () {});\n this.route('users', function () {});\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n actions: {\n showModal: function () {\n this.render('posts/modal', {\n into: 'application',\n outlet: 'modal'\n });\n },\n hideModal: function () {\n this.disconnectOutlet('modal');\n }\n }\n });\n\n bootApplication();\n\n handleURL('/posts');\n\n equal((0, _emberViews.jQuery)('div.posts-index:contains(postsIndex)', '#qunit-fixture').length, 1, 'The posts/index template was rendered');\n\n (0, _emberMetal.run)(function () {\n return router.send('showModal');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 1, 'The posts/modal template was rendered');\n\n (0, _emberMetal.run)(function () {\n return router.send('hideModal');\n });\n\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 0, 'The posts/modal template was removed');\n\n handleURL('/users');\n\n equal((0, _emberViews.jQuery)('div.posts-index:contains(postsIndex)', '#qunit-fixture').length, 0, 'The posts/index template was removed');\n equal((0, _emberViews.jQuery)('div.posts-modal:contains(postsModal)', '#qunit-fixture').length, 0, 'The posts/modal template was removed');\n });\n\n QUnit.test('Route silently fails when cleaning an outlet from an inactive view', function () {\n expect(1); // handleURL\n\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('posts', (0, _emberTemplateCompiler.compile)('{{outlet \\'modal\\'}}'));\n (0, _emberGlimmer.setTemplate)('modal', (0, _emberTemplateCompiler.compile)('A Yo.'));\n\n Router.map(function () {\n this.route('posts');\n });\n\n App.PostsRoute = _emberRouting.Route.extend({\n actions: {\n hideSelf: function () {\n this.disconnectOutlet({ outlet: 'main', parentView: 'application' });\n },\n showModal: function () {\n this.render('modal', { into: 'posts', outlet: 'modal' });\n },\n hideModal: function () {\n this.disconnectOutlet({ outlet: 'modal', parentView: 'posts' });\n }\n }\n });\n\n bootApplication();\n\n handleURL('/posts');\n\n (0, _emberMetal.run)(function () {\n return router.send('showModal');\n });\n (0, _emberMetal.run)(function () {\n return router.send('hideSelf');\n });\n (0, _emberMetal.run)(function () {\n return router.send('hideModal');\n });\n });\n\n QUnit.test('Router `willTransition` hook passes in cancellable transition', function () {\n // Should hit willTransition 3 times, once for the initial route, and then 2 more times\n // for the two handleURL calls below\n expect(3);\n\n Router.map(function () {\n this.route('nork');\n this.route('about');\n });\n\n Router.reopen({\n init: function () {\n this._super();\n this.on('willTransition', this.testWillTransitionHook);\n },\n testWillTransitionHook: function (transition, url) {\n ok(true, 'willTransition was called ' + url);\n transition.abort();\n }\n });\n\n App.LoadingRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(false, 'LoadingRoute was not entered');\n }\n });\n\n App.NorkRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(false, 'NorkRoute was not entered');\n }\n });\n\n App.AboutRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(false, 'AboutRoute was not entered');\n }\n });\n\n bootApplication();\n\n // Attempted transitions out of index should abort.\n (0, _emberMetal.run)(router, 'handleURL', '/nork');\n (0, _emberMetal.run)(router, 'handleURL', '/about');\n });\n\n QUnit.test('Aborting/redirecting the transition in `willTransition` prevents LoadingRoute from being entered', function () {\n expect(8);\n\n Router.map(function () {\n this.route('nork');\n this.route('about');\n });\n\n var redirect = false;\n\n App.IndexRoute = _emberRouting.Route.extend({\n actions: {\n willTransition: function (transition) {\n ok(true, 'willTransition was called');\n if (redirect) {\n // router.js won't refire `willTransition` for this redirect\n this.transitionTo('about');\n } else {\n transition.abort();\n }\n }\n }\n });\n\n var deferred = null;\n\n App.LoadingRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(deferred, 'LoadingRoute should be entered at this time');\n },\n deactivate: function () {\n ok(true, 'LoadingRoute was exited');\n }\n });\n\n App.NorkRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(true, 'NorkRoute was entered');\n }\n });\n\n App.AboutRoute = _emberRouting.Route.extend({\n activate: function () {\n ok(true, 'AboutRoute was entered');\n },\n model: function () {\n if (deferred) {\n return deferred.promise;\n }\n }\n });\n\n bootApplication();\n\n // Attempted transitions out of index should abort.\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n (0, _emberMetal.run)(router, 'handleURL', '/nork');\n\n // Attempted transitions out of index should redirect to about\n redirect = true;\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n (0, _emberMetal.run)(router, 'transitionTo', 'index');\n\n // Redirected transitions out of index to a route with a\n // promise model should pause the transition and\n // activate LoadingRoute\n deferred = _emberRuntime.RSVP.defer();\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n (0, _emberMetal.run)(deferred.resolve);\n });\n\n QUnit.test('`didTransition` event fires on the router', function () {\n expect(3);\n\n Router.map(function () {\n this.route('nork');\n });\n\n router = container.lookup('router:main');\n\n router.one('didTransition', function () {\n ok(true, 'didTransition fired on initial routing');\n });\n\n bootApplication();\n\n router.one('didTransition', function () {\n ok(true, 'didTransition fired on the router');\n equal(router.get('url'), '/nork', 'The url property is updated by the time didTransition fires');\n });\n\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n });\n QUnit.test('`didTransition` can be reopened', function () {\n expect(1);\n\n Router.map(function () {\n this.route('nork');\n });\n\n Router.reopen({\n didTransition: function () {\n this._super.apply(this, arguments);\n ok(true, 'reopened didTransition was called');\n }\n });\n\n bootApplication();\n });\n\n QUnit.test('`activate` event fires on the route', function () {\n expect(2);\n\n var eventFired = 0;\n\n Router.map(function () {\n this.route('nork');\n });\n\n App.NorkRoute = _emberRouting.Route.extend({\n init: function () {\n this._super.apply(this, arguments);\n\n this.on('activate', function () {\n equal(++eventFired, 1, 'activate event is fired once');\n });\n },\n activate: function () {\n ok(true, 'activate hook is called');\n }\n });\n\n bootApplication();\n\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n });\n\n QUnit.test('`deactivate` event fires on the route', function () {\n expect(2);\n\n var eventFired = 0;\n\n Router.map(function () {\n this.route('nork');\n this.route('dork');\n });\n\n App.NorkRoute = _emberRouting.Route.extend({\n init: function () {\n this._super.apply(this, arguments);\n\n this.on('deactivate', function () {\n equal(++eventFired, 1, 'deactivate event is fired once');\n });\n },\n deactivate: function () {\n ok(true, 'deactivate hook is called');\n }\n });\n\n bootApplication();\n\n (0, _emberMetal.run)(router, 'transitionTo', 'nork');\n (0, _emberMetal.run)(router, 'transitionTo', 'dork');\n });\n\n QUnit.test('Actions can be handled by inherited action handlers', function () {\n expect(4);\n\n App.SuperRoute = _emberRouting.Route.extend({\n actions: {\n foo: function () {\n ok(true, 'foo');\n },\n bar: function (msg) {\n equal(msg, 'HELLO');\n }\n }\n });\n\n App.RouteMixin = _emberMetal.Mixin.create({\n actions: {\n bar: function (msg) {\n equal(msg, 'HELLO');\n this._super(msg);\n }\n }\n });\n\n App.IndexRoute = App.SuperRoute.extend(App.RouteMixin, {\n actions: {\n baz: function () {\n ok(true, 'baz');\n }\n }\n });\n\n bootApplication();\n\n router.send('foo');\n router.send('bar', 'HELLO');\n router.send('baz');\n });\n\n QUnit.test('transitionTo returns Transition when passed a route name', function () {\n expect(1);\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('bar');\n });\n\n bootApplication();\n\n var transition = (0, _emberMetal.run)(function () {\n return router.transitionTo('bar');\n });\n\n equal(transition instanceof _router.Transition, true);\n });\n\n QUnit.test('transitionTo returns Transition when passed a url', function () {\n expect(1);\n Router.map(function () {\n this.route('root', { path: '/' });\n this.route('bar', function () {\n this.route('baz');\n });\n });\n\n bootApplication();\n\n var transition = (0, _emberMetal.run)(function () {\n return router.transitionTo('/bar/baz');\n });\n\n equal(transition instanceof _router.Transition, true);\n });\n\n QUnit.test('currentRouteName is a property installed on ApplicationController that can be used in transitionTo', function () {\n expect(24);\n\n Router.map(function () {\n this.route('be', function () {\n this.route('excellent', { resetNamespace: true }, function () {\n this.route('to', { resetNamespace: true }, function () {\n this.route('each', { resetNamespace: true }, function () {\n this.route('other');\n });\n });\n });\n });\n });\n\n bootApplication();\n\n var appController = (0, _emberUtils.getOwner)(router).lookup('controller:application');\n\n function transitionAndCheck(path, expectedPath, expectedRouteName) {\n if (path) {\n (0, _emberMetal.run)(router, 'transitionTo', path);\n }\n equal(appController.get('currentPath'), expectedPath);\n equal(appController.get('currentRouteName'), expectedRouteName);\n }\n\n transitionAndCheck(null, 'index', 'index');\n transitionAndCheck('/be', 'be.index', 'be.index');\n transitionAndCheck('/be/excellent', 'be.excellent.index', 'excellent.index');\n transitionAndCheck('/be/excellent/to', 'be.excellent.to.index', 'to.index');\n transitionAndCheck('/be/excellent/to/each', 'be.excellent.to.each.index', 'each.index');\n transitionAndCheck('/be/excellent/to/each/other', 'be.excellent.to.each.other', 'each.other');\n\n transitionAndCheck('index', 'index', 'index');\n transitionAndCheck('be', 'be.index', 'be.index');\n transitionAndCheck('excellent', 'be.excellent.index', 'excellent.index');\n transitionAndCheck('to.index', 'be.excellent.to.index', 'to.index');\n transitionAndCheck('each', 'be.excellent.to.each.index', 'each.index');\n transitionAndCheck('each.other', 'be.excellent.to.each.other', 'each.other');\n });\n\n QUnit.test('Route model hook finds the same model as a manual find', function () {\n var Post = void 0;\n App.Post = _emberRuntime.Object.extend();\n App.Post.reopenClass({\n find: function () {\n Post = this;\n return {};\n }\n });\n\n Router.map(function () {\n this.route('post', { path: '/post/:post_id' });\n });\n\n bootApplication();\n\n handleURL('/post/1');\n\n equal(App.Post, Post);\n });\n\n QUnit.test('Routes can refresh themselves causing their model hooks to be re-run', function () {\n Router.map(function () {\n this.route('parent', { path: '/parent/:parent_id' }, function () {\n this.route('child');\n });\n });\n\n var appcount = 0;\n App.ApplicationRoute = _emberRouting.Route.extend({\n model: function () {\n ++appcount;\n }\n });\n\n var parentcount = 0;\n App.ParentRoute = _emberRouting.Route.extend({\n model: function (params) {\n equal(params.parent_id, '123');\n ++parentcount;\n },\n\n actions: {\n refreshParent: function () {\n this.refresh();\n }\n }\n });\n\n var childcount = 0;\n App.ParentChildRoute = _emberRouting.Route.extend({\n model: function () {\n ++childcount;\n }\n });\n\n bootApplication();\n\n equal(appcount, 1);\n equal(parentcount, 0);\n equal(childcount, 0);\n\n (0, _emberMetal.run)(router, 'transitionTo', 'parent.child', '123');\n\n equal(appcount, 1);\n equal(parentcount, 1);\n equal(childcount, 1);\n\n (0, _emberMetal.run)(router, 'send', 'refreshParent');\n\n equal(appcount, 1);\n equal(parentcount, 2);\n equal(childcount, 2);\n });\n\n QUnit.test('Specifying non-existent controller name in route#render throws', function () {\n expect(1);\n\n Router.map(function () {\n this.route('home', { path: '/' });\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n var _this = this;\n\n expectAssertion(function () {\n _this.render('homepage', { controller: 'stefanpenneristhemanforme' });\n }, 'You passed `controller: \\'stefanpenneristhemanforme\\'` into the `render` method, but no such controller could be found.');\n }\n });\n\n bootApplication();\n });\n\n QUnit.test('Redirecting with null model doesn\\'t error out', function () {\n Router.map(function () {\n this.route('home', { path: '/' });\n this.route('about', { path: '/about/:hurhurhur' });\n });\n\n App.AboutRoute = _emberRouting.Route.extend({\n serialize: function (model) {\n if (model === null) {\n return { hurhurhur: 'TreeklesMcGeekles' };\n }\n }\n });\n\n App.HomeRoute = _emberRouting.Route.extend({\n beforeModel: function () {\n this.transitionTo('about', null);\n }\n });\n\n bootApplication();\n\n equal(router.get('location.path'), '/about/TreeklesMcGeekles');\n });\n\n QUnit.test('rejecting the model hooks promise with a non-error prints the `message` property', function () {\n expect(5);\n\n var rejectedMessage = 'OMG!! SOOOOOO BAD!!!!';\n var rejectedStack = 'Yeah, buddy: stack gets printed too.';\n\n Router.map(function () {\n this.route('yippie', { path: '/' });\n });\n\n _emberConsole.default.error = function (initialMessage, errorMessage, errorStack) {\n equal(initialMessage, 'Error while processing route: yippie', 'a message with the current route name is printed');\n equal(errorMessage, rejectedMessage, 'the rejected reason\\'s message property is logged');\n equal(errorStack, rejectedStack, 'the rejected reason\\'s stack property is logged');\n };\n\n App.YippieRoute = _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject({ message: rejectedMessage, stack: rejectedStack });\n }\n });\n\n throws(function () {\n bootApplication();\n }, function (err) {\n equal(err.message, rejectedMessage);\n return true;\n }, 'expected an exception');\n });\n\n QUnit.test('rejecting the model hooks promise with an error with `errorThrown` property prints `errorThrown.message` property', function () {\n expect(5);\n var rejectedMessage = 'OMG!! SOOOOOO BAD!!!!';\n var rejectedStack = 'Yeah, buddy: stack gets printed too.';\n\n Router.map(function () {\n this.route('yippie', { path: '/' });\n });\n\n _emberConsole.default.error = function (initialMessage, errorMessage, errorStack) {\n equal(initialMessage, 'Error while processing route: yippie', 'a message with the current route name is printed');\n equal(errorMessage, rejectedMessage, 'the rejected reason\\'s message property is logged');\n equal(errorStack, rejectedStack, 'the rejected reason\\'s stack property is logged');\n };\n\n App.YippieRoute = _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject({\n errorThrown: { message: rejectedMessage, stack: rejectedStack }\n });\n }\n });\n\n throws(function () {\n return bootApplication();\n }, function (err) {\n equal(err.message, rejectedMessage);\n return true;\n }, 'expected an exception');\n });\n\n QUnit.test('rejecting the model hooks promise with no reason still logs error', function () {\n Router.map(function () {\n this.route('wowzers', { path: '/' });\n });\n\n _emberConsole.default.error = function (initialMessage) {\n equal(initialMessage, 'Error while processing route: wowzers', 'a message with the current route name is printed');\n };\n\n App.WowzersRoute = _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject();\n }\n });\n\n bootApplication();\n });\n\n QUnit.test('rejecting the model hooks promise with a string shows a good error', function () {\n expect(3);\n var originalLoggerError = _emberConsole.default.error;\n var rejectedMessage = 'Supercalifragilisticexpialidocious';\n\n Router.map(function () {\n this.route('yondo', { path: '/' });\n });\n\n _emberConsole.default.error = function (initialMessage, errorMessage) {\n equal(initialMessage, 'Error while processing route: yondo', 'a message with the current route name is printed');\n equal(errorMessage, rejectedMessage, 'the rejected reason\\'s message property is logged');\n };\n\n App.YondoRoute = _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject(rejectedMessage);\n }\n });\n\n throws(function () {\n return bootApplication();\n }, rejectedMessage, 'expected an exception');\n\n _emberConsole.default.error = originalLoggerError;\n });\n\n QUnit.test('willLeave, willChangeContext, willChangeModel actions don\\'t fire unless feature flag enabled', function () {\n expect(1);\n\n App.Router.map(function () {\n this.route('about');\n });\n\n function shouldNotFire() {\n ok(false, 'this action shouldn\\'t have been received');\n }\n\n App.IndexRoute = _emberRouting.Route.extend({\n actions: {\n willChangeModel: shouldNotFire,\n willChangeContext: shouldNotFire,\n willLeave: shouldNotFire\n }\n });\n\n App.AboutRoute = _emberRouting.Route.extend({\n setupController: function () {\n ok(true, 'about route was entered');\n }\n });\n\n bootApplication();\n (0, _emberMetal.run)(router, 'transitionTo', 'about');\n });\n\n QUnit.test('Errors in transitionTo within redirect hook are logged', function () {\n expect(4);\n var actual = [];\n\n Router.map(function () {\n this.route('yondo', { path: '/' });\n this.route('stink-bomb');\n });\n\n App.YondoRoute = _emberRouting.Route.extend({\n redirect: function () {\n this.transitionTo('stink-bomb', { something: 'goes boom' });\n }\n });\n\n _emberConsole.default.error = function () {\n // push the arguments onto an array so we can detect if the error gets logged twice\n actual.push(arguments);\n };\n\n throws(function () {\n return bootApplication();\n }, /More context objects were passed/);\n\n equal(actual.length, 1, 'the error is only logged once');\n equal(actual[0][0], 'Error while processing route: yondo', 'source route is printed');\n ok(actual[0][1].match(/More context objects were passed than there are dynamic segments for the route: stink-bomb/), 'the error is printed');\n });\n\n QUnit.test('Errors in transition show error template if available', function () {\n (0, _emberGlimmer.setTemplate)('error', (0, _emberTemplateCompiler.compile)('
    Error!
    '));\n\n Router.map(function () {\n this.route('yondo', { path: '/' });\n this.route('stink-bomb');\n });\n\n App.YondoRoute = _emberRouting.Route.extend({\n redirect: function () {\n this.transitionTo('stink-bomb', { something: 'goes boom' });\n }\n });\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#error').length, 1, 'Error template was rendered.');\n });\n\n QUnit.test('Route#resetController gets fired when changing models and exiting routes', function () {\n expect(4);\n\n Router.map(function () {\n this.route('a', function () {\n this.route('b', { path: '/b/:id', resetNamespace: true }, function () {});\n this.route('c', { path: '/c/:id', resetNamespace: true }, function () {});\n });\n this.route('out');\n });\n\n var calls = [];\n\n var SpyRoute = _emberRouting.Route.extend({\n setupController: function (controller, model, transition) {\n calls.push(['setup', this.routeName]);\n },\n resetController: function (controller) {\n calls.push(['reset', this.routeName]);\n }\n });\n\n App.ARoute = SpyRoute.extend();\n App.BRoute = SpyRoute.extend();\n App.CRoute = SpyRoute.extend();\n App.OutRoute = SpyRoute.extend();\n\n bootApplication();\n deepEqual(calls, []);\n\n (0, _emberMetal.run)(router, 'transitionTo', 'b', 'b-1');\n deepEqual(calls, [['setup', 'a'], ['setup', 'b']]);\n calls.length = 0;\n\n (0, _emberMetal.run)(router, 'transitionTo', 'c', 'c-1');\n deepEqual(calls, [['reset', 'b'], ['setup', 'c']]);\n calls.length = 0;\n\n (0, _emberMetal.run)(router, 'transitionTo', 'out');\n deepEqual(calls, [['reset', 'c'], ['reset', 'a'], ['setup', 'out']]);\n });\n\n QUnit.test('Exception during initialization of non-initial route is not swallowed', function () {\n Router.map(function () {\n this.route('boom');\n });\n App.BoomRoute = _emberRouting.Route.extend({\n init: function () {\n throw new Error('boom!');\n }\n });\n bootApplication();\n throws(function () {\n return (0, _emberMetal.run)(router, 'transitionTo', 'boom');\n }, /\\bboom\\b/);\n });\n\n QUnit.test('Exception during load of non-initial route is not swallowed', function () {\n Router.map(function () {\n this.route('boom');\n });\n var lookup = container.lookup;\n container.lookup = function () {\n if (arguments[0] === 'route:boom') {\n throw new Error('boom!');\n }\n return lookup.apply(this, arguments);\n };\n App.BoomRoute = _emberRouting.Route.extend({\n init: function () {\n throw new Error('boom!');\n }\n });\n bootApplication();\n throws(function () {\n return (0, _emberMetal.run)(router, 'transitionTo', 'boom');\n });\n });\n\n QUnit.test('Exception during initialization of initial route is not swallowed', function () {\n Router.map(function () {\n this.route('boom', { path: '/' });\n });\n App.BoomRoute = _emberRouting.Route.extend({\n init: function () {\n throw new Error('boom!');\n }\n });\n throws(function () {\n return bootApplication();\n }, /\\bboom\\b/);\n });\n\n QUnit.test('Exception during load of initial route is not swallowed', function () {\n Router.map(function () {\n this.route('boom', { path: '/' });\n });\n var lookup = container.lookup;\n container.lookup = function () {\n if (arguments[0] === 'route:boom') {\n throw new Error('boom!');\n }\n return lookup.apply(this, arguments);\n };\n App.BoomRoute = _emberRouting.Route.extend({\n init: function () {\n throw new Error('boom!');\n }\n });\n throws(function () {\n return bootApplication();\n }, /\\bboom\\b/);\n });\n\n QUnit.test('{{outlet}} works when created after initial render', function () {\n (0, _emberGlimmer.setTemplate)('sample', (0, _emberTemplateCompiler.compile)('Hi{{#if showTheThing}}{{outlet}}{{/if}}Bye'));\n (0, _emberGlimmer.setTemplate)('sample/inner', (0, _emberTemplateCompiler.compile)('Yay'));\n (0, _emberGlimmer.setTemplate)('sample/inner2', (0, _emberTemplateCompiler.compile)('Boo'));\n Router.map(function () {\n this.route('sample', { path: '/' }, function () {\n this.route('inner', { path: '/' });\n this.route('inner2', { path: '/2' });\n });\n });\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'HiBye', 'initial render');\n\n (0, _emberMetal.run)(function () {\n return container.lookup('controller:sample').set('showTheThing', true);\n });\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'HiYayBye', 'second render');\n\n handleURL('/2');\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'HiBooBye', 'third render');\n });\n\n QUnit.test('Can render into a named outlet at the top level', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('A-{{outlet}}-B-{{outlet \"other\"}}-C'));\n (0, _emberGlimmer.setTemplate)('modal', (0, _emberTemplateCompiler.compile)('Hello world'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('The index'));\n\n registry.register('route:application', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n }));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A-The index-B-Hello world-C', 'initial render');\n });\n\n QUnit.test('Can disconnect a named outlet at the top level', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('A-{{outlet}}-B-{{outlet \"other\"}}-C'));\n (0, _emberGlimmer.setTemplate)('modal', (0, _emberTemplateCompiler.compile)('Hello world'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('The index'));\n\n registry.register('route:application', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n },\n\n actions: {\n banish: function () {\n this.disconnectOutlet({\n parentView: 'application',\n outlet: 'other'\n });\n }\n }\n }));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A-The index-B-Hello world-C', 'initial render');\n\n (0, _emberMetal.run)(router, 'send', 'banish');\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A-The index-B--C', 'second render');\n });\n\n QUnit.test('Can render into a named outlet at the top level, with empty main outlet', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('A-{{outlet}}-B-{{outlet \"other\"}}-C'));\n (0, _emberGlimmer.setTemplate)('modal', (0, _emberTemplateCompiler.compile)('Hello world'));\n\n Router.map(function () {\n this.route('hasNoTemplate', { path: '/' });\n });\n\n registry.register('route:application', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render();\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n }));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A--B-Hello world-C', 'initial render');\n });\n\n QUnit.test('Can render into a named outlet at the top level, later', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('A-{{outlet}}-B-{{outlet \"other\"}}-C'));\n (0, _emberGlimmer.setTemplate)('modal', (0, _emberTemplateCompiler.compile)('Hello world'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('The index'));\n\n registry.register('route:application', _emberRouting.Route.extend({\n actions: {\n launch: function () {\n this.render('modal', {\n into: 'application',\n outlet: 'other'\n });\n }\n }\n }));\n\n bootApplication();\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A-The index-B--C', 'initial render');\n\n (0, _emberMetal.run)(router, 'send', 'launch');\n\n equal((0, _emberViews.jQuery)('#qunit-fixture').text(), 'A-The index-B-Hello world-C', 'second render');\n });\n\n QUnit.test('Can render routes with no \\'main\\' outlet and their children', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('
    {{outlet \"app\"}}
    '));\n (0, _emberGlimmer.setTemplate)('app', (0, _emberTemplateCompiler.compile)('
    {{outlet \"common\"}}
    {{outlet \"sub\"}}
    '));\n (0, _emberGlimmer.setTemplate)('common', (0, _emberTemplateCompiler.compile)('
    '));\n (0, _emberGlimmer.setTemplate)('sub', (0, _emberTemplateCompiler.compile)('
    '));\n\n Router.map(function () {\n this.route('app', { path: '/app' }, function () {\n this.route('sub', { path: '/sub', resetNamespace: true });\n });\n });\n\n App.AppRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('app', {\n outlet: 'app',\n into: 'application'\n });\n this.render('common', {\n outlet: 'common',\n into: 'app'\n });\n }\n });\n\n App.SubRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('sub', {\n outlet: 'sub',\n into: 'app'\n });\n }\n });\n\n bootApplication();\n handleURL('/app');\n equal((0, _emberViews.jQuery)('#app-common #common').length, 1, 'Finds common while viewing /app');\n handleURL('/app/sub');\n equal((0, _emberViews.jQuery)('#app-common #common').length, 1, 'Finds common while viewing /app/sub');\n equal((0, _emberViews.jQuery)('#app-sub #sub').length, 1, 'Finds sub while viewing /app/sub');\n });\n\n QUnit.test('Tolerates stacked renders', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}{{outlet \"modal\"}}'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('hi'));\n (0, _emberGlimmer.setTemplate)('layer', (0, _emberTemplateCompiler.compile)('layer'));\n App.ApplicationRoute = _emberRouting.Route.extend({\n actions: {\n openLayer: function () {\n this.render('layer', {\n into: 'application',\n outlet: 'modal'\n });\n },\n close: function () {\n this.disconnectOutlet({\n outlet: 'modal',\n parentView: 'application'\n });\n }\n }\n });\n bootApplication();\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hi');\n (0, _emberMetal.run)(router, 'send', 'openLayer');\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hilayer');\n (0, _emberMetal.run)(router, 'send', 'openLayer');\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hilayer');\n (0, _emberMetal.run)(router, 'send', 'close');\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hi');\n });\n\n QUnit.test('Renders child into parent with non-default template name', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('exports/root', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('exports/index', (0, _emberTemplateCompiler.compile)('
    '));\n\n Router.map(function () {\n this.route('root', function () {});\n });\n\n App.RootRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('exports/root');\n }\n });\n\n App.RootIndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('exports/index');\n }\n });\n\n bootApplication();\n handleURL('/root');\n equal((0, _emberViews.jQuery)('#qunit-fixture .a .b .c').length, 1);\n });\n\n QUnit.test('Allows any route to disconnectOutlet another route\\'s templates', function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}{{outlet \"modal\"}}'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('hi'));\n (0, _emberGlimmer.setTemplate)('layer', (0, _emberTemplateCompiler.compile)('layer'));\n App.ApplicationRoute = _emberRouting.Route.extend({\n actions: {\n openLayer: function () {\n this.render('layer', {\n into: 'application',\n outlet: 'modal'\n });\n }\n }\n });\n App.IndexRoute = _emberRouting.Route.extend({\n actions: {\n close: function () {\n this.disconnectOutlet({\n parentView: 'application',\n outlet: 'modal'\n });\n }\n }\n });\n bootApplication();\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hi');\n (0, _emberMetal.run)(router, 'send', 'openLayer');\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hilayer');\n (0, _emberMetal.run)(router, 'send', 'close');\n equal(trim((0, _emberViews.jQuery)('#qunit-fixture').text()), 'hi');\n });\n\n QUnit.test('Can this.render({into:...}) the render helper', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('other'));\n (0, _emberGlimmer.setTemplate)('bar', (0, _emberTemplateCompiler.compile)('bar'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'sidebar' });\n },\n\n actions: {\n changeToBar: function () {\n this.disconnectOutlet({\n parentView: 'sidebar',\n outlet: 'main'\n });\n this.render('bar', { into: 'sidebar' });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'changeToBar');\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar').text(), 'bar');\n });\n\n QUnit.test('Can disconnect from the render helper', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('other'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'sidebar' });\n },\n\n actions: {\n disconnect: function () {\n this.disconnectOutlet({\n parentView: 'sidebar',\n outlet: 'main'\n });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'disconnect');\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar').text(), '');\n });\n\n QUnit.test('Can this.render({into:...}) the render helper\\'s children', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('other', (0, _emberTemplateCompiler.compile)('other'));\n (0, _emberGlimmer.setTemplate)('bar', (0, _emberTemplateCompiler.compile)('bar'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'sidebar' });\n this.render('other', { into: 'index' });\n },\n\n actions: {\n changeToBar: function () {\n this.disconnectOutlet({\n parentView: 'index',\n outlet: 'main'\n });\n this.render('bar', { into: 'index' });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar .index').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'changeToBar');\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar .index').text(), 'bar');\n });\n\n QUnit.test('Can disconnect from the render helper\\'s children', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('other', (0, _emberTemplateCompiler.compile)('other'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'sidebar' });\n this.render('other', { into: 'index' });\n },\n\n actions: {\n disconnect: function () {\n this.disconnectOutlet({\n parentView: 'index',\n outlet: 'main'\n });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar .index').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'disconnect');\n equal((0, _emberViews.jQuery)('#qunit-fixture .sidebar .index').text(), '');\n });\n\n QUnit.test('Can this.render({into:...}) nested render helpers', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{render \"cart\"}}
    '));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('cart', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('other'));\n (0, _emberGlimmer.setTemplate)('baz', (0, _emberTemplateCompiler.compile)('baz'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'cart' });\n },\n\n actions: {\n changeToBaz: function () {\n this.disconnectOutlet({\n parentView: 'cart',\n outlet: 'main'\n });\n this.render('baz', { into: 'cart' });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .cart').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'changeToBaz');\n equal((0, _emberViews.jQuery)('#qunit-fixture .cart').text(), 'baz');\n });\n\n QUnit.test('Can disconnect from nested render helpers', function () {\n expectDeprecation(/Rendering into a {{render}} helper that resolves to an {{outlet}} is deprecated./);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{render \"sidebar\"}}'));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n expectDeprecation(function () {\n (0, _emberGlimmer.setTemplate)('sidebar', (0, _emberTemplateCompiler.compile)('
    {{render \"cart\"}}
    '));\n }, /Please refactor [\\w\\{\\}\"` ]+ to a component/);\n\n (0, _emberGlimmer.setTemplate)('cart', (0, _emberTemplateCompiler.compile)('
    {{outlet}}
    '));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('other'));\n\n App.IndexRoute = _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ into: 'cart' });\n },\n\n actions: {\n disconnect: function () {\n this.disconnectOutlet({\n parentView: 'cart',\n outlet: 'main'\n });\n }\n }\n });\n\n bootApplication();\n equal((0, _emberViews.jQuery)('#qunit-fixture .cart').text(), 'other');\n (0, _emberMetal.run)(router, 'send', 'disconnect');\n equal((0, _emberViews.jQuery)('#qunit-fixture .cart').text(), '');\n });\n\n QUnit.test('Components inside an outlet have their didInsertElement hook invoked when the route is displayed', function (assert) {\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('{{#if showFirst}}{{my-component}}{{else}}{{other-component}}{{/if}}'));\n\n var myComponentCounter = 0;\n var otherComponentCounter = 0;\n var indexController = void 0;\n\n App.IndexController = _emberRuntime.Controller.extend({\n showFirst: true\n });\n\n App.IndexRoute = _emberRouting.Route.extend({\n setupController: function (controller) {\n indexController = controller;\n }\n });\n\n App.MyComponentComponent = _emberGlimmer.Component.extend({\n didInsertElement: function () {\n myComponentCounter++;\n }\n });\n\n App.OtherComponentComponent = _emberGlimmer.Component.extend({\n didInsertElement: function () {\n otherComponentCounter++;\n }\n });\n\n bootApplication();\n\n assert.strictEqual(myComponentCounter, 1, 'didInsertElement invoked on displayed component');\n assert.strictEqual(otherComponentCounter, 0, 'didInsertElement not invoked on displayed component');\n\n (0, _emberMetal.run)(function () {\n return indexController.set('showFirst', false);\n });\n\n assert.strictEqual(myComponentCounter, 1, 'didInsertElement not invoked on displayed component');\n assert.strictEqual(otherComponentCounter, 1, 'didInsertElement invoked on displayed component');\n });\n\n QUnit.test('Doesnt swallow exception thrown from willTransition', function () {\n expect(1);\n (0, _emberGlimmer.setTemplate)('application', (0, _emberTemplateCompiler.compile)('{{outlet}}'));\n (0, _emberGlimmer.setTemplate)('index', (0, _emberTemplateCompiler.compile)('index'));\n (0, _emberGlimmer.setTemplate)('other', (0, _emberTemplateCompiler.compile)('other'));\n\n Router.map(function () {\n this.route('other', function () {});\n });\n\n App.IndexRoute = _emberRouting.Route.extend({\n actions: {\n willTransition: function () {\n throw new Error('boom');\n }\n }\n });\n\n bootApplication();\n\n throws(function () {\n (0, _emberMetal.run)(function () {\n return router.handleURL('/other');\n });\n }, /boom/, 'expected an exception but none was thrown');\n });\n\n QUnit.test('Exception if outlet name is undefined in render and disconnectOutlet', function (assert) {\n App.ApplicationRoute = _emberRouting.Route.extend({\n actions: {\n showModal: function () {\n this.render({\n outlet: undefined,\n parentView: 'application'\n });\n },\n hideModal: function () {\n this.disconnectOutlet({\n outlet: undefined,\n parentView: 'application'\n });\n }\n }\n });\n\n bootApplication();\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n return router.send('showModal');\n });\n }, /You passed undefined as the outlet name/);\n\n expectAssertion(function () {\n (0, _emberMetal.run)(function () {\n return router.send('hideModal');\n });\n }, /You passed undefined as the outlet name/);\n });\n\n QUnit.test('Route serializers work for Engines', function () {\n expect(2);\n\n // Register engine\n var BlogEngine = _emberApplication.Engine.extend();\n registry.register('engine:blog', BlogEngine);\n\n // Register engine route map\n var postSerialize = function (params) {\n ok(true, 'serialize hook runs');\n return {\n post_id: params.id\n };\n };\n var BlogMap = function () {\n this.route('post', { path: '/post/:post_id', serialize: postSerialize });\n };\n registry.register('route-map:blog', BlogMap);\n\n Router.map(function () {\n this.mount('blog');\n });\n\n bootApplication();\n\n equal(router._routerMicrolib.generate('blog.post', { id: '13' }), '/blog/post/13', 'url is generated properly');\n });\n\n QUnit.test('Defining a Route#serialize method in an Engine throws an error', function () {\n expect(1);\n\n // Register engine\n var BlogEngine = _emberApplication.Engine.extend();\n registry.register('engine:blog', BlogEngine);\n\n // Register engine route map\n var BlogMap = function () {\n this.route('post');\n };\n registry.register('route-map:blog', BlogMap);\n\n Router.map(function () {\n this.mount('blog');\n });\n\n bootApplication();\n\n var PostRoute = _emberRouting.Route.extend({\n serialize: function () {}\n });\n container.lookup('engine:blog').register('route:post', PostRoute);\n\n throws(function () {\n return router.transitionTo('blog.post');\n }, /Defining a custom serialize method on an Engine route is not supported/);\n });\n\n QUnit.test('App.destroy does not leave undestroyed views after clearing engines', function () {\n expect(4);\n\n var engineInstance = void 0;\n // Register engine\n var BlogEngine = _emberApplication.Engine.extend();\n registry.register('engine:blog', BlogEngine);\n var EngineIndexRoute = _emberRouting.Route.extend({\n init: function () {\n this._super.apply(this, arguments);\n engineInstance = (0, _emberUtils.getOwner)(this);\n }\n });\n\n // Register engine route map\n var BlogMap = function () {\n this.route('post');\n };\n registry.register('route-map:blog', BlogMap);\n\n Router.map(function () {\n this.mount('blog');\n });\n\n bootApplication();\n\n var engine = container.lookup('engine:blog');\n engine.register('route:index', EngineIndexRoute);\n engine.register('template:index', (0, _emberTemplateCompiler.compile)('Engine Post!'));\n\n handleURL('/blog');\n\n var route = engineInstance.lookup('route:index');\n\n (0, _emberMetal.run)(router, 'destroy');\n equal(router._toplevelView, null, 'the toplevelView was cleared');\n\n (0, _emberMetal.run)(route, 'destroy');\n equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n\n (0, _emberMetal.run)(App, 'destroy');\n equal(router._toplevelView, null, 'the toplevelView was not reinitialized');\n });\n});","QUnit.module('ESLint | ember/tests/routing/basic_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/basic_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/decoupled_basic_test', ['ember-babel', 'ember-routing', 'ember-runtime', 'internal-test-helpers'], function (_emberBabel, _emberRouting, _emberRuntime, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Basic Routing - Decoupled from global resovler', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.addTemplate('home', '

    Hours

    ');\n _this.addTemplate('camelot', '

    Is a silly place

    ');\n _this.addTemplate('homepage', '

    Megatroll

    {{model.home}}

    ');\n\n _this.router.map(function () {\n this.route('home', { path: '/' });\n });\n return _this;\n }\n\n _class.prototype.getController = function getController(name) {\n return this.applicationInstance.lookup('controller:' + name);\n };\n\n _class.prototype['@test warn on URLs not included in the route set'] = function testWarnOnURLsNotIncludedInTheRouteSet(assert) {\n var _this2 = this;\n\n return this.visit('/').then(function () {\n expectAssertion(function () {\n _this2.visit('/what-is-this-i-dont-even');\n }, /'\\/what-is-this-i-dont-even' did not match any routes/);\n });\n };\n\n _class.prototype['@test The Homepage'] = function testTheHomepage(assert) {\n var _this3 = this;\n\n return this.visit('/').then(function () {\n assert.equal(_this3.currentPath, 'home', 'currently on the home route');\n\n var text = _this3.$('#app').text();\n assert.equal(text, \"Hours\", 'the home template was rendered');\n });\n };\n\n _class.prototype['@test The Homepage and the Camelot page with multiple Router.map calls'] = function (assert) {\n var _this4 = this;\n\n this.router.map(function () {\n this.route('camelot', { path: '/camelot' });\n });\n\n return this.visit('/camelot').then(function () {\n assert.equal(_this4.currentPath, 'camelot');\n\n var text = _this4.$('#camelot').text();\n assert.equal(text, \"Is a silly place\", 'the camelot template was rendered');\n\n return _this4.visit('/');\n }).then(function () {\n assert.equal(_this4.currentPath, 'home');\n\n var text = _this4.$('#app').text();\n assert.equal(text, \"Hours\", 'the home template was rendered');\n });\n };\n\n _class.prototype['@test The Homepage with explicit template name in renderTemplate'] = function (assert) {\n var _this5 = this;\n\n this.add('route:home', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('homepage');\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this5.$('#troll').text();\n assert.equal(text, \"Megatroll\", 'the homepage template was rendered');\n });\n };\n\n _class.prototype['@test an alternate template will pull in an alternate controller'] = function (assert) {\n var _this6 = this;\n\n this.add('route:home', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('homepage');\n }\n }));\n this.add('controller:homepage', _emberRuntime.Controller.extend({\n model: {\n home: 'Comes from homepage'\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this6.$('p').text();\n\n assert.equal(text, 'Comes from homepage', 'the homepage template was rendered');\n });\n };\n\n _class.prototype['@test An alternate template will pull in an alternate controller instead of controllerName'] = function (assert) {\n var _this7 = this;\n\n this.add('route:home', _emberRouting.Route.extend({\n controllerName: 'foo',\n renderTemplate: function () {\n this.render('homepage');\n }\n }));\n this.add('controller:foo', _emberRuntime.Controller.extend({\n model: {\n home: 'Comes from foo'\n }\n }));\n this.add('controller:homepage', _emberRuntime.Controller.extend({\n model: {\n home: 'Comes from homepage'\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this7.$('p').text();\n\n assert.equal(text, 'Comes from homepage', 'the homepage template was rendered');\n });\n };\n\n _class.prototype['@test The template will pull in an alternate controller via key/value'] = function (assert) {\n var _this8 = this;\n\n this.router.map(function () {\n this.route('homepage', { path: '/' });\n });\n\n this.add('route:homepage', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render({ controller: 'home' });\n }\n }));\n this.add('controller:home', _emberRuntime.Controller.extend({\n model: {\n home: 'Comes from home.'\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this8.$('p').text();\n\n assert.equal(text, 'Comes from home.', 'the homepage template was rendered from data from the HomeController');\n });\n };\n\n _class.prototype['@test The Homepage with explicit template name in renderTemplate and controller'] = function (assert) {\n var _this9 = this;\n\n this.add('controller:home', _emberRuntime.Controller.extend({\n model: {\n home: 'YES I AM HOME'\n }\n }));\n this.add('route:home', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('homepage');\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this9.$('p').text();\n\n assert.equal(text, 'YES I AM HOME', 'The homepage template was rendered');\n });\n };\n\n _class.prototype['@test Model passed via renderTemplate model is set as controller\\'s model'] = function (assert) {\n var _this10 = this;\n\n this.addTemplate('bio', '

    {{model.name}}

    ');\n this.add('route:home', _emberRouting.Route.extend({\n renderTemplate: function () {\n this.render('bio', {\n model: { name: 'emberjs' }\n });\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this10.$('p').text();\n\n assert.equal(text, 'emberjs', 'Passed model was set as controller\\'s model');\n });\n };\n\n _class.prototype['@test render uses templateName from route'] = function testRenderUsesTemplateNameFromRoute(assert) {\n var _this11 = this;\n\n this.addTemplate('the_real_home_template', '

    THIS IS THE REAL HOME

    ');\n this.add('route:home', _emberRouting.Route.extend({\n templateName: 'the_real_home_template'\n }));\n\n return this.visit('/').then(function () {\n var text = _this11.$('p').text();\n\n assert.equal(text, 'THIS IS THE REAL HOME', 'the homepage template was rendered');\n });\n };\n\n _class.prototype['@test defining templateName allows other templates to be rendered'] = function testDefiningTemplateNameAllowsOtherTemplatesToBeRendered(assert) {\n var _this12 = this;\n\n this.addTemplate('alert', '
    Invader!
    ');\n this.addTemplate('the_real_home_template', '

    THIS IS THE REAL HOME

    {{outlet \\'alert\\'}}');\n this.add('route:home', _emberRouting.Route.extend({\n templateName: 'the_real_home_template',\n actions: {\n showAlert: function () {\n this.render('alert', {\n into: 'home',\n outlet: 'alert'\n });\n }\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this12.$('p').text();\n assert.equal(text, 'THIS IS THE REAL HOME', 'the homepage template was rendered');\n\n return _this12.runTask(function () {\n return _this12.appRouter.send('showAlert');\n });\n }).then(function () {\n var text = _this12.$('.alert-box').text();\n\n assert.equal(text, 'Invader!', 'Template for alert was rendered into the outlet');\n });\n };\n\n _class.prototype['@test templateName is still used when calling render with no name and options'] = function testTemplateNameIsStillUsedWhenCallingRenderWithNoNameAndOptions(assert) {\n var _this13 = this;\n\n this.addTemplate('alert', '
    Invader!
    ');\n this.addTemplate('home', '

    THIS IS THE REAL HOME

    {{outlet \\'alert\\'}}');\n\n this.add('route:home', _emberRouting.Route.extend({\n templateName: 'alert',\n renderTemplate: function () {\n this.render({});\n }\n }));\n\n return this.visit('/').then(function () {\n var text = _this13.$('.alert-box').text();\n\n assert.equal(text, 'Invader!', 'default templateName was rendered into outlet');\n });\n };\n\n _class.prototype['@test The Homepage with a `setupController` hook'] = function testTheHomepageWithASetupControllerHook(assert) {\n var _this14 = this;\n\n this.addTemplate('home', '
      {{#each hours as |entry|}}\\n
    • {{entry}}
    • \\n {{/each}}\\n
    \\n ');\n\n this.add('route:home', _emberRouting.Route.extend({\n setupController: function (controller) {\n controller.set('hours', (0, _emberRuntime.A)(['Monday through Friday: 9am to 5pm', 'Saturday: Noon to Midnight', 'Sunday: Noon to 6pm']));\n }\n }));\n return this.visit('/').then(function () {\n var text = _this14.$('ul li').eq(2).text();\n\n assert.equal(text, 'Sunday: Noon to 6pm', 'The template was rendered with the hours context');\n });\n };\n\n _class.prototype['@test The route controller is still set when overriding the setupController hook'] = function (assert) {\n var _this15 = this;\n\n this.add('route:home', _emberRouting.Route.extend({\n setupController: function () {\n // no-op\n // importantly, we are not calling this._super\n }\n }));\n\n this.add('controller:home', _emberRuntime.Controller.extend());\n\n return this.visit('/').then(function () {\n var homeRoute = _this15.applicationInstance.lookup('route:home');\n var homeController = _this15.applicationInstance.lookup('controller:home');\n\n assert.equal(homeRoute.controller, homeController, 'route controller is the home controller');\n });\n };\n\n _class.prototype['@test the route controller can be specified via controllerName'] = function testTheRouteControllerCanBeSpecifiedViaControllerName(assert) {\n var _this16 = this;\n\n this.addTemplate('home', '

    {{myValue}}

    ');\n this.add('route:home', _emberRouting.Route.extend({\n controllerName: 'myController'\n }));\n this.add('controller:myController', _emberRuntime.Controller.extend({\n myValue: 'foo'\n }));\n\n return this.visit('/').then(function () {\n var homeRoute = _this16.applicationInstance.lookup('route:home');\n var myController = _this16.applicationInstance.lookup('controller:myController');\n var text = _this16.$('p').text();\n\n assert.deepEqual(homeRoute.controller, myController, 'route controller is set by controllerName');\n assert.equal(text, 'foo', 'The homepage template was rendered with data from the custom controller');\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'currentPath',\n get: function () {\n return this.getController('application').get('currentPath');\n }\n }]);\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/decoupled_basic_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/decoupled_basic_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test', ['ember-babel', 'ember-runtime', 'ember-metal', 'ember-routing', 'ember-views', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberMetal, _emberRouting, _emberViews, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Query Params - main', function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(_class, _QueryParamTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n _class.prototype.refreshModelWhileLoadingTest = function refreshModelWhileLoadingTest(loadingReturn) {\n var _actions,\n _this2 = this;\n\n var assert = this.assert;\n\n assert.expect(9);\n\n var appModelCount = 0;\n var promiseResolve = void 0;\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: {\n appomg: {\n defaultValue: 'applol'\n }\n },\n model: function (params) {\n appModelCount++;\n }\n }));\n\n this.setSingleQPController('index', 'omg', undefined, {\n omg: undefined\n });\n\n var actionName = typeof loadingReturn !== 'undefined' ? 'loading' : 'ignore';\n var indexModelCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n actions: (_actions = {}, _actions[actionName] = function () {\n return loadingReturn;\n }, _actions),\n model: function (params) {\n indexModelCount++;\n if (indexModelCount === 2) {\n assert.deepEqual(params, { omg: 'lex' });\n return new _emberRuntime.RSVP.Promise(function (resolve) {\n promiseResolve = resolve;\n return;\n });\n } else if (indexModelCount === 3) {\n assert.deepEqual(params, { omg: 'hello' }, 'Model hook reruns even if the previous one didn\\'t finish');\n }\n }\n }));\n\n return this.visit('/').then(function () {\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 1);\n\n var indexController = _this2.getController('index');\n _this2.setAndFlush(indexController, 'omg', 'lex');\n\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 2);\n\n _this2.setAndFlush(indexController, 'omg', 'hello');\n assert.equal(appModelCount, 1, 'appModelCount is 1');\n assert.equal(indexModelCount, 3);\n\n (0, _emberMetal.run)(function () {\n promiseResolve();\n });\n\n assert.equal((0, _emberMetal.get)(indexController, 'omg'), 'hello', 'At the end last value prevails');\n });\n };\n\n _class.prototype['@test No replaceURL occurs on startup because default values don\\'t show up in URL'] = function testNoReplaceURLOccursOnStartupBecauseDefaultValuesDonTShowUpInURL(assert) {\n assert.expect(1);\n\n this.setSingleQPController('index');\n\n return this.visitAndAssert('/');\n };\n\n _class.prototype['@test Calling transitionTo does not lose query params already on the activeTransition'] = function testCallingTransitionToDoesNotLoseQueryParamsAlreadyOnTheActiveTransition(assert) {\n var _this3 = this;\n\n assert.expect(2);\n\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n this.route('sibling');\n });\n });\n\n this.add('route:parent.child', _emberRouting.Route.extend({\n afterModel: function () {\n this.transitionTo('parent.sibling');\n }\n }));\n\n this.setSingleQPController('parent');\n\n return this.visit('/parent/child?foo=lol').then(function () {\n _this3.assertCurrentPath('/parent/sibling?foo=lol', 'redirected to the sibling route, instead of child route');\n assert.equal(_this3.getController('parent').get('foo'), 'lol', 'controller has value from the active transition');\n });\n };\n\n _class.prototype['@test Single query params can be set on the controller and reflected in the url'] = function testSingleQueryParamsCanBeSetOnTheControllerAndReflectedInTheUrl(assert) {\n var _this4 = this;\n\n assert.expect(3);\n\n this.router.map(function () {\n this.route('home', { path: '/' });\n });\n\n this.setSingleQPController('home');\n\n return this.visitAndAssert('/').then(function () {\n var controller = _this4.getController('home');\n\n _this4.setAndFlush(controller, 'foo', '456');\n _this4.assertCurrentPath('/?foo=456');\n\n _this4.setAndFlush(controller, 'foo', '987');\n _this4.assertCurrentPath('/?foo=987');\n });\n };\n\n _class.prototype['@test Query params can map to different url keys configured on the controller'] = function testQueryParamsCanMapToDifferentUrlKeysConfiguredOnTheController(assert) {\n var _this5 = this;\n\n assert.expect(6);\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: [{ foo: 'other_foo', bar: { as: 'other_bar' } }],\n foo: 'FOO',\n bar: 'BAR'\n }));\n\n return this.visitAndAssert('/').then(function () {\n var controller = _this5.getController('index');\n\n _this5.setAndFlush(controller, 'foo', 'LEX');\n _this5.assertCurrentPath('/?other_foo=LEX', 'QP mapped correctly without \\'as\\'');\n\n _this5.setAndFlush(controller, 'foo', 'WOO');\n _this5.assertCurrentPath('/?other_foo=WOO', 'QP updated correctly without \\'as\\'');\n\n _this5.transitionTo('/?other_foo=NAW');\n assert.equal(controller.get('foo'), 'NAW', 'QP managed correctly on URL transition');\n\n _this5.setAndFlush(controller, 'bar', 'NERK');\n _this5.assertCurrentPath('/?other_bar=NERK&other_foo=NAW', 'QP mapped correctly with \\'as\\'');\n\n _this5.setAndFlush(controller, 'bar', 'NUKE');\n _this5.assertCurrentPath('/?other_bar=NUKE&other_foo=NAW', 'QP updated correctly with \\'as\\'');\n });\n };\n\n _class.prototype['@test Routes have a private overridable serializeQueryParamKey hook'] = function testRoutesHaveAPrivateOverridableSerializeQueryParamKeyHook(assert) {\n var _this6 = this;\n\n assert.expect(2);\n\n this.add('route:index', _emberRouting.Route.extend({\n serializeQueryParamKey: _emberRuntime.String.dasherize\n }));\n\n this.setSingleQPController('index', 'funTimes', '');\n\n return this.visitAndAssert('/').then(function () {\n var controller = _this6.getController('index');\n\n _this6.setAndFlush(controller, 'funTimes', 'woot');\n _this6.assertCurrentPath('/?fun-times=woot');\n });\n };\n\n _class.prototype['@test Can override inherited QP behavior by specifying queryParams as a computed property'] = function testCanOverrideInheritedQPBehaviorBySpecifyingQueryParamsAsAComputedProperty(assert) {\n var _this7 = this;\n\n assert.expect(3);\n\n this.setSingleQPController('index', 'a', 0, {\n queryParams: (0, _emberMetal.computed)(function () {\n return ['c'];\n }),\n c: true\n });\n\n return this.visitAndAssert('/').then(function () {\n var indexController = _this7.getController('index');\n\n _this7.setAndFlush(indexController, 'a', 1);\n _this7.assertCurrentPath('/', 'QP did not update due to being overriden');\n\n _this7.setAndFlush(indexController, 'c', false);\n _this7.assertCurrentPath('/?c=false', 'QP updated with overridden param');\n });\n };\n\n _class.prototype['@test Can concatenate inherited QP behavior by specifying queryParams as an array'] = function testCanConcatenateInheritedQPBehaviorBySpecifyingQueryParamsAsAnArray(assert) {\n var _this8 = this;\n\n assert.expect(3);\n\n this.setSingleQPController('index', 'a', 0, {\n queryParams: ['c'],\n c: true\n });\n\n return this.visitAndAssert('/').then(function () {\n var indexController = _this8.getController('index');\n\n _this8.setAndFlush(indexController, 'a', 1);\n _this8.assertCurrentPath('/?a=1', 'Inherited QP did update');\n\n _this8.setAndFlush(indexController, 'c', false);\n _this8.assertCurrentPath('/?a=1&c=false', 'New QP did update');\n });\n };\n\n _class.prototype['@test model hooks receives query params'] = function testModelHooksReceivesQueryParams(assert) {\n assert.expect(2);\n\n this.setSingleQPController('index');\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { foo: 'bar' });\n }\n }));\n\n return this.visitAndAssert('/');\n };\n\n _class.prototype['@test model hooks receives query params with dynamic segment params'] = function testModelHooksReceivesQueryParamsWithDynamicSegmentParams(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:id' });\n });\n\n this.setSingleQPController('index');\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { foo: 'bar', id: 'baz' });\n }\n }));\n\n return this.visitAndAssert('/baz');\n };\n\n _class.prototype['@test model hooks receives query params (overridden by incoming url value)'] = function testModelHooksReceivesQueryParamsOverriddenByIncomingUrlValue(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:id' });\n });\n\n this.setSingleQPController('index');\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { foo: 'baz', id: 'boo' });\n }\n }));\n\n return this.visitAndAssert('/boo?foo=baz');\n };\n\n _class.prototype['@test error is thrown if dynamic segment and query param have same name'] = function testErrorIsThrownIfDynamicSegmentAndQueryParamHaveSameName(assert) {\n var _this9 = this;\n\n assert.expect(1);\n\n this.router.map(function () {\n this.route('index', { path: '/:foo' });\n });\n\n this.setSingleQPController('index');\n\n expectAssertion(function () {\n _this9.visitAndAssert('/boo?foo=baz');\n }, 'The route \\'index\\' has both a dynamic segment and query param with name \\'foo\\'. Please rename one to avoid collisions.');\n };\n\n _class.prototype['@test query params have been set by the time setupController is called'] = function testQueryParamsHaveBeenSetByTheTimeSetupControllerIsCalled(assert) {\n assert.expect(2);\n\n this.setSingleQPController('application');\n\n this.add('route:application', _emberRouting.Route.extend({\n setupController: function (controller) {\n assert.equal(controller.get('foo'), 'YEAH', 'controller\\'s foo QP property set before setupController called');\n }\n }));\n\n return this.visitAndAssert('/?foo=YEAH');\n };\n\n _class.prototype['@test mapped query params have been set by the time setupController is called'] = function testMappedQueryParamsHaveBeenSetByTheTimeSetupControllerIsCalled(assert) {\n assert.expect(2);\n\n this.setSingleQPController('application', { faz: 'foo' });\n\n this.add('route:application', _emberRouting.Route.extend({\n setupController: function (controller) {\n assert.equal(controller.get('faz'), 'YEAH', 'controller\\'s foo QP property set before setupController called');\n }\n }));\n\n return this.visitAndAssert('/?foo=YEAH');\n };\n\n _class.prototype['@test Route#paramsFor fetches query params with default value'] = function testRouteParamsForFetchesQueryParamsWithDefaultValue(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:something' });\n });\n\n this.setSingleQPController('index');\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params, transition) {\n assert.deepEqual(this.paramsFor('index'), { something: 'baz', foo: 'bar' }, 'could retrieve params for index');\n }\n }));\n\n return this.visitAndAssert('/baz');\n };\n\n _class.prototype['@test Route#paramsFor fetches query params with non-default value'] = function testRouteParamsForFetchesQueryParamsWithNonDefaultValue(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:something' });\n });\n\n this.setSingleQPController('index');\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params, transition) {\n assert.deepEqual(this.paramsFor('index'), { something: 'baz', foo: 'boo' }, 'could retrieve params for index');\n }\n }));\n\n return this.visitAndAssert('/baz?foo=boo');\n };\n\n _class.prototype['@test Route#paramsFor fetches default falsy query params'] = function testRouteParamsForFetchesDefaultFalsyQueryParams(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:something' });\n });\n\n this.setSingleQPController('index', 'foo', false);\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params, transition) {\n assert.deepEqual(this.paramsFor('index'), { something: 'baz', foo: false }, 'could retrieve params for index');\n }\n }));\n\n return this.visitAndAssert('/baz');\n };\n\n _class.prototype['@test Route#paramsFor fetches non-default falsy query params'] = function testRouteParamsForFetchesNonDefaultFalsyQueryParams(assert) {\n assert.expect(2);\n\n this.router.map(function () {\n this.route('index', { path: '/:something' });\n });\n\n this.setSingleQPController('index', 'foo', true);\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params, transition) {\n assert.deepEqual(this.paramsFor('index'), { something: 'baz', foo: false }, 'could retrieve params for index');\n }\n }));\n\n return this.visitAndAssert('/baz?foo=false');\n };\n\n _class.prototype['@test model hook can query prefix-less application params'] = function testModelHookCanQueryPrefixLessApplicationParams(assert) {\n assert.expect(4);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { appomg: 'applol' });\n }\n }));\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { omg: 'lol' });\n assert.deepEqual(this.paramsFor('application'), { appomg: 'applol' });\n }\n }));\n\n return this.visitAndAssert('/');\n };\n\n _class.prototype['@test model hook can query prefix-less application params (overridden by incoming url value)'] = function testModelHookCanQueryPrefixLessApplicationParamsOverriddenByIncomingUrlValue(assert) {\n assert.expect(4);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { appomg: 'appyes' });\n }\n }));\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { omg: 'yes' });\n assert.deepEqual(this.paramsFor('application'), { appomg: 'appyes' });\n }\n }));\n\n return this.visitAndAssert('/?appomg=appyes&omg=yes');\n };\n\n _class.prototype['@test can opt into full transition by setting refreshModel in route queryParams'] = function testCanOptIntoFullTransitionBySettingRefreshModelInRouteQueryParams(assert) {\n var _this10 = this;\n\n assert.expect(7);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n var appModelCount = 0;\n this.add('route:application', _emberRouting.Route.extend({\n model: function (params) {\n appModelCount++;\n }\n }));\n\n var indexModelCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n model: function (params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, { omg: 'lol' }, 'params are correct on first pass');\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, { omg: 'lex' }, 'params are correct on second pass');\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(appModelCount, 1, 'app model hook ran');\n assert.equal(indexModelCount, 1, 'index model hook ran');\n\n var indexController = _this10.getController('index');\n _this10.setAndFlush(indexController, 'omg', 'lex');\n\n assert.equal(appModelCount, 1, 'app model hook did not run again');\n assert.equal(indexModelCount, 2, 'index model hook ran again due to refreshModel');\n });\n };\n\n _class.prototype['@test refreshModel and replace work together'] = function testRefreshModelAndReplaceWorkTogether(assert) {\n var _this11 = this;\n\n assert.expect(8);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n var appModelCount = 0;\n this.add('route:application', _emberRouting.Route.extend({\n model: function (params) {\n appModelCount++;\n }\n }));\n\n var indexModelCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true,\n replace: true\n }\n },\n model: function (params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, { omg: 'lol' }, 'params are correct on first pass');\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, { omg: 'lex' }, 'params are correct on second pass');\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(appModelCount, 1, 'app model hook ran');\n assert.equal(indexModelCount, 1, 'index model hook ran');\n\n var indexController = _this11.getController('index');\n _this11.expectedReplaceURL = '/?omg=lex';\n _this11.setAndFlush(indexController, 'omg', 'lex');\n\n assert.equal(appModelCount, 1, 'app model hook did not run again');\n assert.equal(indexModelCount, 2, 'index model hook ran again due to refreshModel');\n });\n };\n\n _class.prototype['@test multiple QP value changes only cause a single model refresh'] = function testMultipleQPValueChangesOnlyCauseASingleModelRefresh(assert) {\n var _this12 = this;\n\n assert.expect(2);\n\n this.setSingleQPController('index', 'alex', 'lol');\n this.setSingleQPController('index', 'steely', 'lel');\n\n var refreshCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n alex: {\n refreshModel: true\n },\n steely: {\n refreshModel: true\n }\n },\n refresh: function () {\n refreshCount++;\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n var indexController = _this12.getController('index');\n (0, _emberMetal.run)(indexController, 'setProperties', { alex: 'fran', steely: 'david' });\n assert.equal(refreshCount, 1, 'index refresh hook only run once');\n });\n };\n\n _class.prototype['@test refreshModel does not cause a second transition during app boot '] = function testRefreshModelDoesNotCauseASecondTransitionDuringAppBoot(assert) {\n assert.expect(1);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n refresh: function () {\n assert.ok(false);\n }\n }));\n\n return this.visitAndAssert('/?appomg=hello&omg=world');\n };\n\n _class.prototype['@test queryParams are updated when a controller property is set and the route is refreshed. Issue #13263 '] = function testQueryParamsAreUpdatedWhenAControllerPropertyIsSetAndTheRouteIsRefreshedIssue13263(assert) {\n var _this13 = this;\n\n this.addTemplate('application', '{{foo}}{{outlet}}');\n\n this.setSingleQPController('application', 'foo', 1, {\n actions: {\n increment: function () {\n this.incrementProperty('foo');\n this.send('refreshRoute');\n }\n }\n });\n\n this.add('route:application', _emberRouting.Route.extend({\n actions: {\n refreshRoute: function () {\n this.refresh();\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal((0, _emberViews.jQuery)('#test-value').text().trim(), '1');\n\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#test-button'), 'click');\n assert.equal((0, _emberViews.jQuery)('#test-value').text().trim(), '2');\n _this13.assertCurrentPath('/?foo=2');\n\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#test-button'), 'click');\n assert.equal((0, _emberViews.jQuery)('#test-value').text().trim(), '3');\n _this13.assertCurrentPath('/?foo=3');\n });\n };\n\n _class.prototype['@test Use Ember.get to retrieve query params \\'refreshModel\\' configuration'] = function testUseEmberGetToRetrieveQueryParamsRefreshModelConfiguration(assert) {\n var _this14 = this;\n\n assert.expect(7);\n\n this.setSingleQPController('application', 'appomg', 'applol');\n this.setSingleQPController('index', 'omg', 'lol');\n\n var appModelCount = 0;\n this.add('route:application', _emberRouting.Route.extend({\n model: function (params) {\n appModelCount++;\n }\n }));\n\n var indexModelCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: _emberRuntime.Object.create({\n unknownProperty: function (keyName) {\n return { refreshModel: true };\n }\n }),\n model: function (params) {\n indexModelCount++;\n\n if (indexModelCount === 1) {\n assert.deepEqual(params, { omg: 'lol' });\n } else if (indexModelCount === 2) {\n assert.deepEqual(params, { omg: 'lex' });\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(appModelCount, 1);\n assert.equal(indexModelCount, 1);\n\n var indexController = _this14.getController('index');\n _this14.setAndFlush(indexController, 'omg', 'lex');\n\n assert.equal(appModelCount, 1);\n assert.equal(indexModelCount, 2);\n });\n };\n\n _class.prototype['@test can use refreshModel even with URL changes that remove QPs from address bar'] = function testCanUseRefreshModelEvenWithURLChangesThatRemoveQPsFromAddressBar(assert) {\n var _this15 = this;\n\n assert.expect(4);\n\n this.setSingleQPController('index', 'omg', 'lol');\n\n var indexModelCount = 0;\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n omg: {\n refreshModel: true\n }\n },\n model: function (params) {\n indexModelCount++;\n\n var data = void 0;\n if (indexModelCount === 1) {\n data = 'foo';\n } else if (indexModelCount === 2) {\n data = 'lol';\n }\n\n assert.deepEqual(params, { omg: data }, 'index#model receives right data');\n }\n }));\n\n return this.visitAndAssert('/?omg=foo').then(function () {\n _this15.transitionTo('/');\n\n var indexController = _this15.getController('index');\n assert.equal(indexController.get('omg'), 'lol');\n });\n };\n\n _class.prototype['@test can opt into a replace query by specifying replace:true in the Route config hash'] = function testCanOptIntoAReplaceQueryBySpecifyingReplaceTrueInTheRouteConfigHash(assert) {\n var _this16 = this;\n\n assert.expect(2);\n\n this.setSingleQPController('application', 'alex', 'matchneer');\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: {\n alex: {\n replace: true\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n var appController = _this16.getController('application');\n _this16.expectedReplaceURL = '/?alex=wallace';\n _this16.setAndFlush(appController, 'alex', 'wallace');\n });\n };\n\n _class.prototype['@test Route query params config can be configured using property name instead of URL key'] = function testRouteQueryParamsConfigCanBeConfiguredUsingPropertyNameInsteadOfURLKey(assert) {\n var _this17 = this;\n\n assert.expect(2);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n queryParams: [{ commitBy: 'commit_by' }]\n }));\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: {\n commitBy: {\n replace: true\n }\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n var appController = _this17.getController('application');\n _this17.expectedReplaceURL = '/?commit_by=igor_seb';\n _this17.setAndFlush(appController, 'commitBy', 'igor_seb');\n });\n };\n\n _class.prototype['@test An explicit replace:false on a changed QP always wins and causes a pushState'] = function testAnExplicitReplaceFalseOnAChangedQPAlwaysWinsAndCausesAPushState(assert) {\n var _this18 = this;\n\n assert.expect(3);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n queryParams: ['alex', 'steely'],\n alex: 'matchneer',\n steely: 'dan'\n }));\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: {\n alex: {\n replace: true\n },\n steely: {\n replace: false\n }\n }\n }));\n\n return this.visit('/').then(function () {\n var appController = _this18.getController('application');\n _this18.expectedPushURL = '/?alex=wallace&steely=jan';\n (0, _emberMetal.run)(appController, 'setProperties', { alex: 'wallace', steely: 'jan' });\n\n _this18.expectedPushURL = '/?alex=wallace&steely=fran';\n (0, _emberMetal.run)(appController, 'setProperties', { steely: 'fran' });\n\n _this18.expectedReplaceURL = '/?alex=sriracha&steely=fran';\n (0, _emberMetal.run)(appController, 'setProperties', { alex: 'sriracha' });\n });\n };\n\n _class.prototype['@test can opt into full transition by setting refreshModel in route queryParams when transitioning from child to parent'] = function testCanOptIntoFullTransitionBySettingRefreshModelInRouteQueryParamsWhenTransitioningFromChildToParent(assert) {\n this.addTemplate('parent', '{{outlet}}');\n this.addTemplate('parent.child', '{{link-to \\'Parent\\' \\'parent\\' (query-params foo=\\'change\\') id=\\'parent-link\\'}}');\n\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n\n var parentModelCount = 0;\n this.add('route:parent', _emberRouting.Route.extend({\n model: function () {\n parentModelCount++;\n },\n\n queryParams: {\n foo: {\n refreshModel: true\n }\n }\n }));\n\n this.setSingleQPController('parent', 'foo', 'abc');\n\n return this.visit('/parent/child?foo=lol').then(function () {\n assert.equal(parentModelCount, 1);\n\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#parent-link'), 'click');\n assert.equal(parentModelCount, 2);\n });\n };\n\n _class.prototype['@test Use Ember.get to retrieve query params \\'replace\\' configuration'] = function testUseEmberGetToRetrieveQueryParamsReplaceConfiguration(assert) {\n var _this19 = this;\n\n assert.expect(2);\n\n this.setSingleQPController('application', 'alex', 'matchneer');\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: _emberRuntime.Object.create({\n unknownProperty: function (keyName) {\n // We are simulating all qps requiring refresh\n return { replace: true };\n }\n })\n }));\n\n return this.visitAndAssert('/').then(function () {\n var appController = _this19.getController('application');\n _this19.expectedReplaceURL = '/?alex=wallace';\n _this19.setAndFlush(appController, 'alex', 'wallace');\n });\n };\n\n _class.prototype['@test can override incoming QP values in setupController'] = function testCanOverrideIncomingQPValuesInSetupController(assert) {\n var _this20 = this;\n\n assert.expect(3);\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.setSingleQPController('index', 'omg', 'lol');\n\n this.add('route:index', _emberRouting.Route.extend({\n setupController: function (controller) {\n assert.ok(true, 'setupController called');\n controller.set('omg', 'OVERRIDE');\n },\n\n actions: {\n queryParamsDidChange: function () {\n assert.ok(false, 'queryParamsDidChange shouldn\\'t fire');\n }\n }\n }));\n\n return this.visitAndAssert('/about').then(function () {\n _this20.transitionTo('index');\n _this20.assertCurrentPath('/?omg=OVERRIDE');\n });\n };\n\n _class.prototype['@test can override incoming QP array values in setupController'] = function testCanOverrideIncomingQPArrayValuesInSetupController(assert) {\n var _this21 = this;\n\n assert.expect(3);\n\n this.router.map(function () {\n this.route('about');\n });\n\n this.setSingleQPController('index', 'omg', ['lol']);\n\n this.add('route:index', _emberRouting.Route.extend({\n setupController: function (controller) {\n assert.ok(true, 'setupController called');\n controller.set('omg', ['OVERRIDE']);\n },\n\n actions: {\n queryParamsDidChange: function () {\n assert.ok(false, 'queryParamsDidChange shouldn\\'t fire');\n }\n }\n }));\n\n return this.visitAndAssert('/about').then(function () {\n _this21.transitionTo('index');\n _this21.assertCurrentPath('/?omg=' + encodeURIComponent(JSON.stringify(['OVERRIDE'])));\n });\n };\n\n _class.prototype['@test URL transitions that remove QPs still register as QP changes'] = function testURLTransitionsThatRemoveQPsStillRegisterAsQPChanges(assert) {\n var _this22 = this;\n\n assert.expect(2);\n\n this.setSingleQPController('index', 'omg', 'lol');\n\n return this.visit('/?omg=borf').then(function () {\n var indexController = _this22.getController('index');\n assert.equal(indexController.get('omg'), 'borf');\n\n _this22.transitionTo('/');\n assert.equal(indexController.get('omg'), 'lol');\n });\n };\n\n _class.prototype['@test Subresource naming style is supported'] = function testSubresourceNamingStyleIsSupported(assert) {\n var _this23 = this;\n\n assert.expect(5);\n\n this.router.map(function () {\n this.route('abc.def', { path: '/abcdef' }, function () {\n this.route('zoo');\n });\n });\n\n this.addTemplate('application', '{{link-to \\'A\\' \\'abc.def\\' (query-params foo=\\'123\\') id=\\'one\\'}}{{link-to \\'B\\' \\'abc.def.zoo\\' (query-params foo=\\'123\\' bar=\\'456\\') id=\\'two\\'}}{{outlet}}');\n\n this.setSingleQPController('abc.def', 'foo', 'lol');\n this.setSingleQPController('abc.def.zoo', 'bar', 'haha');\n\n return this.visitAndAssert('/').then(function () {\n assert.equal((0, _emberViews.jQuery)('#one').attr('href'), '/abcdef?foo=123');\n assert.equal((0, _emberViews.jQuery)('#two').attr('href'), '/abcdef/zoo?bar=456&foo=123');\n\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#one'), 'click');\n _this23.assertCurrentPath('/abcdef?foo=123');\n\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#two'), 'click');\n _this23.assertCurrentPath('/abcdef/zoo?bar=456&foo=123');\n });\n };\n\n _class.prototype['@test transitionTo supports query params'] = function testTransitionToSupportsQueryParams(assert) {\n var _this24 = this;\n\n this.setSingleQPController('index', 'foo', 'lol');\n\n return this.visitAndAssert('/').then(function () {\n _this24.transitionTo({ queryParams: { foo: 'borf' } });\n _this24.assertCurrentPath('/?foo=borf', 'shorthand supported');\n\n _this24.transitionTo({ queryParams: { 'index:foo': 'blaf' } });\n _this24.assertCurrentPath('/?foo=blaf', 'longform supported');\n\n _this24.transitionTo({ queryParams: { 'index:foo': false } });\n _this24.assertCurrentPath('/?foo=false', 'longform supported (bool)');\n\n _this24.transitionTo({ queryParams: { foo: false } });\n _this24.assertCurrentPath('/?foo=false', 'shorhand supported (bool)');\n });\n };\n\n _class.prototype['@test transitionTo supports query params (multiple)'] = function testTransitionToSupportsQueryParamsMultiple(assert) {\n var _this25 = this;\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo', 'bar'],\n foo: 'lol',\n bar: 'wat'\n }));\n\n return this.visitAndAssert('/').then(function () {\n _this25.transitionTo({ queryParams: { foo: 'borf' } });\n _this25.assertCurrentPath('/?foo=borf', 'shorthand supported');\n\n _this25.transitionTo({ queryParams: { 'index:foo': 'blaf' } });\n _this25.assertCurrentPath('/?foo=blaf', 'longform supported');\n\n _this25.transitionTo({ queryParams: { 'index:foo': false } });\n _this25.assertCurrentPath('/?foo=false', 'longform supported (bool)');\n\n _this25.transitionTo({ queryParams: { foo: false } });\n _this25.assertCurrentPath('/?foo=false', 'shorhand supported (bool)');\n });\n };\n\n _class.prototype['@test setting controller QP to empty string doesn\\'t generate null in URL'] = function testSettingControllerQPToEmptyStringDoesnTGenerateNullInURL(assert) {\n var _this26 = this;\n\n assert.expect(1);\n\n this.setSingleQPController('index', 'foo', '123');\n\n return this.visit('/').then(function () {\n var controller = _this26.getController('index');\n\n _this26.expectedPushURL = '/?foo=';\n _this26.setAndFlush(controller, 'foo', '');\n });\n };\n\n _class.prototype['@test setting QP to empty string doesn\\'t generate null in URL'] = function testSettingQPToEmptyStringDoesnTGenerateNullInURL(assert) {\n var _this27 = this;\n\n assert.expect(1);\n\n this.add('route:index', _emberRouting.Route.extend({\n queryParams: {\n foo: {\n defaultValue: '123'\n }\n }\n }));\n\n return this.visit('/').then(function () {\n var controller = _this27.getController('index');\n\n _this27.expectedPushURL = '/?foo=';\n _this27.setAndFlush(controller, 'foo', '');\n });\n };\n\n _class.prototype['@test A default boolean value deserializes QPs as booleans rather than strings'] = function testADefaultBooleanValueDeserializesQPsAsBooleansRatherThanStrings(assert) {\n var _this28 = this;\n\n assert.expect(3);\n\n this.setSingleQPController('index', 'foo', false);\n\n this.add('route:index', _emberRouting.Route.extend({\n model: function (params) {\n assert.equal(params.foo, true, 'model hook received foo as boolean true');\n }\n }));\n\n return this.visit('/?foo=true').then(function () {\n var controller = _this28.getController('index');\n assert.equal(controller.get('foo'), true);\n\n _this28.transitionTo('/?foo=false');\n assert.equal(controller.get('foo'), false);\n });\n };\n\n _class.prototype['@test Query param without value are empty string'] = function testQueryParamWithoutValueAreEmptyString(assert) {\n var _this29 = this;\n\n assert.expect(1);\n\n this.add('controller:index', _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: ''\n }));\n\n return this.visit('/?foo=').then(function () {\n var controller = _this29.getController('index');\n assert.equal(controller.get('foo'), '');\n });\n };\n\n _class.prototype['@test Array query params can be set'] = function testArrayQueryParamsCanBeSet(assert) {\n var _this30 = this;\n\n assert.expect(2);\n\n this.router.map(function () {\n this.route('home', { path: '/' });\n });\n\n this.setSingleQPController('home', 'foo', []);\n\n return this.visit('/').then(function () {\n var controller = _this30.getController('home');\n\n _this30.setAndFlush(controller, 'foo', [1, 2]);\n _this30.assertCurrentPath('/?foo=%5B1%2C2%5D');\n\n _this30.setAndFlush(controller, 'foo', [3, 4]);\n _this30.assertCurrentPath('/?foo=%5B3%2C4%5D');\n });\n };\n\n _class.prototype['@test (de)serialization: arrays'] = function testDeSerializationArrays(assert) {\n var _this31 = this;\n\n assert.expect(4);\n\n this.setSingleQPController('index', 'foo', [1]);\n\n return this.visitAndAssert('/').then(function () {\n _this31.transitionTo({ queryParams: { foo: [2, 3] } });\n _this31.assertCurrentPath('/?foo=%5B2%2C3%5D', 'shorthand supported');\n _this31.transitionTo({ queryParams: { 'index:foo': [4, 5] } });\n _this31.assertCurrentPath('/?foo=%5B4%2C5%5D', 'longform supported');\n _this31.transitionTo({ queryParams: { foo: [] } });\n _this31.assertCurrentPath('/?foo=%5B%5D', 'longform supported');\n });\n };\n\n _class.prototype['@test Url with array query param sets controller property to array'] = function testUrlWithArrayQueryParamSetsControllerPropertyToArray(assert) {\n var _this32 = this;\n\n assert.expect(1);\n\n this.setSingleQPController('index', 'foo', '');\n\n return this.visit('/?foo[]=1&foo[]=2&foo[]=3').then(function () {\n var controller = _this32.getController('index');\n assert.deepEqual(controller.get('foo'), ['1', '2', '3']);\n });\n };\n\n _class.prototype['@test Array query params can be pushed/popped'] = function testArrayQueryParamsCanBePushedPopped(assert) {\n var _this33 = this;\n\n assert.expect(17);\n\n this.router.map(function () {\n this.route('home', { path: '/' });\n });\n\n this.setSingleQPController('home', 'foo', (0, _emberRuntime.A)());\n\n return this.visitAndAssert('/').then(function () {\n var controller = _this33.getController('home');\n\n (0, _emberMetal.run)(controller.foo, 'pushObject', 1);\n _this33.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n\n (0, _emberMetal.run)(controller.foo, 'popObject');\n _this33.assertCurrentPath('/');\n assert.deepEqual(controller.foo, []);\n\n (0, _emberMetal.run)(controller.foo, 'pushObject', 1);\n _this33.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n\n (0, _emberMetal.run)(controller.foo, 'popObject');\n _this33.assertCurrentPath('/');\n assert.deepEqual(controller.foo, []);\n\n (0, _emberMetal.run)(controller.foo, 'pushObject', 1);\n _this33.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n\n (0, _emberMetal.run)(controller.foo, 'pushObject', 2);\n _this33.assertCurrentPath('/?foo=%5B1%2C2%5D');\n assert.deepEqual(controller.foo, [1, 2]);\n\n (0, _emberMetal.run)(controller.foo, 'popObject');\n _this33.assertCurrentPath('/?foo=%5B1%5D');\n assert.deepEqual(controller.foo, [1]);\n\n (0, _emberMetal.run)(controller.foo, 'unshiftObject', 'lol');\n _this33.assertCurrentPath('/?foo=%5B%22lol%22%2C1%5D');\n assert.deepEqual(controller.foo, ['lol', 1]);\n });\n };\n\n _class.prototype['@test Overwriting with array with same content shouldn\\'t refire update'] = function testOverwritingWithArrayWithSameContentShouldnTRefireUpdate(assert) {\n var _this34 = this;\n\n assert.expect(4);\n\n this.router.map(function () {\n this.route('home', { path: '/' });\n });\n\n var modelCount = 0;\n this.add('route:home', _emberRouting.Route.extend({\n model: function () {\n modelCount++;\n }\n }));\n\n this.setSingleQPController('home', 'foo', (0, _emberRuntime.A)([1]));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(modelCount, 1);\n\n var controller = _this34.getController('home');\n _this34.setAndFlush(controller, 'model', (0, _emberRuntime.A)([1]));\n\n assert.equal(modelCount, 1);\n _this34.assertCurrentPath('/');\n });\n };\n\n _class.prototype['@test Defaulting to params hash as the model should not result in that params object being watched'] = function testDefaultingToParamsHashAsTheModelShouldNotResultInThatParamsObjectBeingWatched(assert) {\n var _this35 = this;\n\n assert.expect(1);\n\n this.router.map(function () {\n this.route('other');\n });\n\n // This causes the params hash, which is returned as a route's\n // model if no other model could be resolved given the provided\n // params (and no custom model hook was defined), to be watched,\n // unless we return a copy of the params hash.\n this.setSingleQPController('application', 'woot', 'wat');\n\n this.add('route:other', _emberRouting.Route.extend({\n model: function (p, trans) {\n var m = (0, _emberMetal.peekMeta)(trans.params.application);\n assert.ok(m === undefined, 'A meta object isn\\'t constructed for this params POJO');\n }\n }));\n\n return this.visit('/').then(function () {\n _this35.transitionTo('other');\n });\n };\n\n _class.prototype['@test Setting bound query param property to null or undefined does not serialize to url'] = function testSettingBoundQueryParamPropertyToNullOrUndefinedDoesNotSerializeToUrl(assert) {\n var _this36 = this;\n\n assert.expect(9);\n\n this.router.map(function () {\n this.route('home');\n });\n\n this.setSingleQPController('home', 'foo', [1, 2]);\n\n return this.visitAndAssert('/home').then(function () {\n var controller = _this36.getController('home');\n\n assert.deepEqual(controller.get('foo'), [1, 2]);\n _this36.assertCurrentPath('/home');\n\n _this36.setAndFlush(controller, 'foo', (0, _emberRuntime.A)([1, 3]));\n _this36.assertCurrentPath('/home?foo=%5B1%2C3%5D');\n\n return _this36.transitionTo('/home').then(function () {\n assert.deepEqual(controller.get('foo'), [1, 2]);\n _this36.assertCurrentPath('/home');\n\n _this36.setAndFlush(controller, 'foo', null);\n _this36.assertCurrentPath('/home', 'Setting property to null');\n\n _this36.setAndFlush(controller, 'foo', (0, _emberRuntime.A)([1, 3]));\n _this36.assertCurrentPath('/home?foo=%5B1%2C3%5D');\n\n _this36.setAndFlush(controller, 'foo', undefined);\n _this36.assertCurrentPath('/home', 'Setting property to undefined');\n });\n });\n };\n\n _class.prototype['@test {{link-to}} with null or undefined QPs does not get serialized into url'] = function testLinkToWithNullOrUndefinedQPsDoesNotGetSerializedIntoUrl(assert) {\n var _this37 = this;\n\n assert.expect(3);\n\n this.addTemplate('home', '{{link-to \\'Home\\' \\'home\\' (query-params foo=nullValue) id=\\'null-link\\'}}{{link-to \\'Home\\' \\'home\\' (query-params foo=undefinedValue) id=\\'undefined-link\\'}}');\n\n this.router.map(function () {\n this.route('home');\n });\n\n this.setSingleQPController('home', 'foo', [], {\n nullValue: null,\n undefinedValue: undefined\n });\n\n return this.visitAndAssert('/home').then(function () {\n assert.equal(_this37.$('#null-link').attr('href'), '/home');\n assert.equal(_this37.$('#undefined-link').attr('href'), '/home');\n });\n };\n\n _class.prototype['@test A child of a resource route still defaults to parent route\\'s model even if the child route has a query param'] = function testAChildOfAResourceRouteStillDefaultsToParentRouteSModelEvenIfTheChildRouteHasAQueryParam(assert) {\n assert.expect(2);\n\n this.setSingleQPController('index', 'woot', undefined, {\n woot: undefined\n });\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function (p, trans) {\n return { woot: true };\n }\n }));\n\n this.add('route:index', _emberRouting.Route.extend({\n setupController: function (controller, model) {\n assert.deepEqual(model, { woot: true }, 'index route inherited model route from parent route');\n }\n }));\n\n return this.visitAndAssert('/');\n };\n\n _class.prototype['@test opting into replace does not affect transitions between routes'] = function testOptingIntoReplaceDoesNotAffectTransitionsBetweenRoutes(assert) {\n var _this38 = this;\n\n assert.expect(5);\n\n this.addTemplate('application', '{{link-to \\'Foo\\' \\'foo\\' id=\\'foo-link\\'}}{{link-to \\'Bar\\' \\'bar\\' id=\\'bar-no-qp-link\\'}}{{link-to \\'Bar\\' \\'bar\\' (query-params raytiley=\\'isthebest\\') id=\\'bar-link\\'}}{{outlet}}');\n\n this.router.map(function () {\n this.route('foo');\n this.route('bar');\n });\n\n this.setSingleQPController('bar', 'raytiley', 'israd');\n\n this.add('route:bar', _emberRouting.Route.extend({\n queryParams: {\n raytiley: {\n replace: true\n }\n }\n }));\n\n return this.visit('/').then(function () {\n var controller = _this38.getController('bar');\n\n _this38.expectedPushURL = '/foo';\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#foo-link'), 'click');\n\n _this38.expectedPushURL = '/bar';\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#bar-no-qp-link'), 'click');\n\n _this38.expectedReplaceURL = '/bar?raytiley=woot';\n _this38.setAndFlush(controller, 'raytiley', 'woot');\n\n _this38.expectedPushURL = '/foo';\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#foo-link'), 'click');\n\n _this38.expectedPushURL = '/bar?raytiley=isthebest';\n (0, _emberMetal.run)((0, _emberViews.jQuery)('#bar-link'), 'click');\n });\n };\n\n _class.prototype['@test undefined isn\\'t serialized or deserialized into a string'] = function testUndefinedIsnTSerializedOrDeserializedIntoAString(assert) {\n var _this39 = this;\n\n assert.expect(4);\n\n this.router.map(function () {\n this.route('example');\n });\n\n this.addTemplate('application', '{{link-to \\'Example\\' \\'example\\' (query-params foo=undefined) id=\\'the-link\\'}}');\n\n this.setSingleQPController('example', 'foo', undefined, {\n foo: undefined\n });\n\n this.add('route:example', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { foo: undefined });\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(_this39.$('#the-link').attr('href'), '/example', 'renders without undefined qp serialized');\n\n return _this39.transitionTo('example', { queryParams: { foo: undefined } }).then(function () {\n _this39.assertCurrentPath('/example');\n });\n });\n };\n\n _class.prototype['@test when refreshModel is true and loading hook is undefined, model hook will rerun when QPs change even if previous did not finish'] = function testWhenRefreshModelIsTrueAndLoadingHookIsUndefinedModelHookWillRerunWhenQPsChangeEvenIfPreviousDidNotFinish(assert) {\n return this.refreshModelWhileLoadingTest();\n };\n\n _class.prototype['@test when refreshModel is true and loading hook returns false, model hook will rerun when QPs change even if previous did not finish'] = function testWhenRefreshModelIsTrueAndLoadingHookReturnsFalseModelHookWillRerunWhenQPsChangeEvenIfPreviousDidNotFinish(assert) {\n return this.refreshModelWhileLoadingTest(false);\n };\n\n _class.prototype['@test when refreshModel is true and loading hook returns true, model hook will rerun when QPs change even if previous did not finish'] = function testWhenRefreshModelIsTrueAndLoadingHookReturnsTrueModelHookWillRerunWhenQPsChangeEvenIfPreviousDidNotFinish(assert) {\n return this.refreshModelWhileLoadingTest(true);\n };\n\n _class.prototype['@test warn user that Route\\'s queryParams configuration must be an Object, not an Array'] = function testWarnUserThatRouteSQueryParamsConfigurationMustBeAnObjectNotAnArray(assert) {\n var _this40 = this;\n\n assert.expect(1);\n\n this.add('route:application', _emberRouting.Route.extend({\n queryParams: [{ commitBy: { replace: true } }]\n }));\n\n expectAssertion(function () {\n _this40.visit('/');\n }, 'You passed in `[{\"commitBy\":{\"replace\":true}}]` as the value for `queryParams` but `queryParams` cannot be an Array');\n };\n\n _class.prototype['@test handle route names that clash with Object.prototype properties'] = function testHandleRouteNamesThatClashWithObjectPrototypeProperties(assert) {\n var _this41 = this;\n\n assert.expect(1);\n\n this.router.map(function () {\n this.route('constructor');\n });\n\n this.add('route:constructor', _emberRouting.Route.extend({\n queryParams: {\n foo: {\n defaultValue: '123'\n }\n }\n }));\n\n return this.visit('/').then(function () {\n _this41.transitionTo('constructor', { queryParams: { foo: '999' } });\n var controller = _this41.getController('constructor');\n assert.equal((0, _emberMetal.get)(controller, 'foo'), '999');\n });\n };\n\n return _class;\n }(_internalTestHelpers.QueryParamTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'ember-metal', 'ember-views', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberRouting, _emberMetal, _emberViews, _internalTestHelpers) {\n 'use strict';\n\n var ModelDependentQPTestCase = function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(ModelDependentQPTestCase, _QueryParamTestCase);\n\n function ModelDependentQPTestCase() {\n (0, _emberBabel.classCallCheck)(this, ModelDependentQPTestCase);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n ModelDependentQPTestCase.prototype.boot = function boot() {\n this.setupApplication();\n return this.visitApplication();\n };\n\n ModelDependentQPTestCase.prototype.teardown = function teardown() {\n var _QueryParamTestCase$p;\n\n (_QueryParamTestCase$p = _QueryParamTestCase.prototype.teardown).call.apply(_QueryParamTestCase$p, [this].concat(Array.prototype.slice.call(arguments)));\n this.assert.ok(!this.expectedModelHookParams, 'there should be no pending expectation of expected model hook params');\n };\n\n ModelDependentQPTestCase.prototype.reopenController = function reopenController(name, options) {\n this.application.resolveRegistration('controller:' + name).reopen(options);\n };\n\n ModelDependentQPTestCase.prototype.reopenRoute = function reopenRoute(name, options) {\n this.application.resolveRegistration('route:' + name).reopen(options);\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest1 = function queryParamsStickyTest1(urlPrefix) {\n var _this2 = this;\n\n var assert = this.assert;\n\n assert.expect(14);\n\n return this.boot().then(function () {\n (0, _emberMetal.run)(_this2.$link1, 'click');\n _this2.assertCurrentPath(urlPrefix + '/a-1');\n\n _this2.setAndFlush(_this2.controller, 'q', 'lol');\n\n assert.equal(_this2.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this2.$link2.attr('href'), urlPrefix + '/a-2');\n assert.equal(_this2.$link3.attr('href'), urlPrefix + '/a-3');\n\n (0, _emberMetal.run)(_this2.$link2, 'click');\n\n assert.equal(_this2.controller.get('q'), 'wat');\n assert.equal(_this2.controller.get('z'), 0);\n assert.deepEqual(_this2.controller.get('model'), { id: 'a-2' });\n assert.equal(_this2.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this2.$link2.attr('href'), urlPrefix + '/a-2');\n assert.equal(_this2.$link3.attr('href'), urlPrefix + '/a-3');\n });\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest2 = function queryParamsStickyTest2(urlPrefix) {\n var _this3 = this;\n\n var assert = this.assert;\n\n assert.expect(24);\n\n return this.boot().then(function () {\n _this3.expectedModelHookParams = { id: 'a-1', q: 'lol', z: 0 };\n _this3.transitionTo(urlPrefix + '/a-1?q=lol');\n\n assert.deepEqual(_this3.controller.get('model'), { id: 'a-1' });\n assert.equal(_this3.controller.get('q'), 'lol');\n assert.equal(_this3.controller.get('z'), 0);\n assert.equal(_this3.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this3.$link2.attr('href'), urlPrefix + '/a-2');\n assert.equal(_this3.$link3.attr('href'), urlPrefix + '/a-3');\n\n _this3.expectedModelHookParams = { id: 'a-2', q: 'lol', z: 0 };\n _this3.transitionTo(urlPrefix + '/a-2?q=lol');\n\n assert.deepEqual(_this3.controller.get('model'), { id: 'a-2' }, 'controller\\'s model changed to a-2');\n assert.equal(_this3.controller.get('q'), 'lol');\n assert.equal(_this3.controller.get('z'), 0);\n assert.equal(_this3.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this3.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this3.$link3.attr('href'), urlPrefix + '/a-3');\n\n _this3.expectedModelHookParams = { id: 'a-3', q: 'lol', z: 123 };\n _this3.transitionTo(urlPrefix + '/a-3?q=lol&z=123');\n\n assert.equal(_this3.controller.get('q'), 'lol');\n assert.equal(_this3.controller.get('z'), 123);\n assert.equal(_this3.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this3.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this3.$link3.attr('href'), urlPrefix + '/a-3?q=lol&z=123');\n });\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest3 = function queryParamsStickyTest3(urlPrefix, articleLookup) {\n var _this4 = this;\n\n var assert = this.assert;\n\n assert.expect(32);\n\n this.addTemplate('application', '{{#each articles as |a|}} {{link-to \\'Article\\' \\'' + articleLookup + '\\' a.id id=a.id}} {{/each}}');\n\n return this.boot().then(function () {\n _this4.expectedModelHookParams = { id: 'a-1', q: 'wat', z: 0 };\n _this4.transitionTo(articleLookup, 'a-1');\n\n assert.deepEqual(_this4.controller.get('model'), { id: 'a-1' });\n assert.equal(_this4.controller.get('q'), 'wat');\n assert.equal(_this4.controller.get('z'), 0);\n assert.equal(_this4.$link1.attr('href'), urlPrefix + '/a-1');\n assert.equal(_this4.$link2.attr('href'), urlPrefix + '/a-2');\n assert.equal(_this4.$link3.attr('href'), urlPrefix + '/a-3');\n\n _this4.expectedModelHookParams = { id: 'a-2', q: 'lol', z: 0 };\n _this4.transitionTo(articleLookup, 'a-2', { queryParams: { q: 'lol' } });\n\n assert.deepEqual(_this4.controller.get('model'), { id: 'a-2' });\n assert.equal(_this4.controller.get('q'), 'lol');\n assert.equal(_this4.controller.get('z'), 0);\n assert.equal(_this4.$link1.attr('href'), urlPrefix + '/a-1');\n assert.equal(_this4.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this4.$link3.attr('href'), urlPrefix + '/a-3');\n\n _this4.expectedModelHookParams = { id: 'a-3', q: 'hay', z: 0 };\n _this4.transitionTo(articleLookup, 'a-3', { queryParams: { q: 'hay' } });\n\n assert.deepEqual(_this4.controller.get('model'), { id: 'a-3' });\n assert.equal(_this4.controller.get('q'), 'hay');\n assert.equal(_this4.controller.get('z'), 0);\n assert.equal(_this4.$link1.attr('href'), urlPrefix + '/a-1');\n assert.equal(_this4.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this4.$link3.attr('href'), urlPrefix + '/a-3?q=hay');\n\n _this4.expectedModelHookParams = { id: 'a-2', q: 'lol', z: 1 };\n _this4.transitionTo(articleLookup, 'a-2', { queryParams: { z: 1 } });\n\n assert.deepEqual(_this4.controller.get('model'), { id: 'a-2' });\n assert.equal(_this4.controller.get('q'), 'lol');\n assert.equal(_this4.controller.get('z'), 1);\n assert.equal(_this4.$link1.attr('href'), urlPrefix + '/a-1');\n assert.equal(_this4.$link2.attr('href'), urlPrefix + '/a-2?q=lol&z=1');\n assert.equal(_this4.$link3.attr('href'), urlPrefix + '/a-3?q=hay');\n });\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest4 = function queryParamsStickyTest4(urlPrefix, articleLookup) {\n var _this5 = this;\n\n var assert = this.assert;\n\n assert.expect(24);\n\n this.setupApplication();\n\n this.reopenController(articleLookup, {\n queryParams: { q: { scope: 'controller' } }\n });\n\n return this.visitApplication().then(function () {\n (0, _emberMetal.run)(_this5.$link1, 'click');\n _this5.assertCurrentPath(urlPrefix + '/a-1');\n\n _this5.setAndFlush(_this5.controller, 'q', 'lol');\n\n assert.equal(_this5.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this5.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this5.$link3.attr('href'), urlPrefix + '/a-3?q=lol');\n\n (0, _emberMetal.run)(_this5.$link2, 'click');\n\n assert.equal(_this5.controller.get('q'), 'lol');\n assert.equal(_this5.controller.get('z'), 0);\n assert.deepEqual(_this5.controller.get('model'), { id: 'a-2' });\n\n assert.equal(_this5.$link1.attr('href'), urlPrefix + '/a-1?q=lol');\n assert.equal(_this5.$link2.attr('href'), urlPrefix + '/a-2?q=lol');\n assert.equal(_this5.$link3.attr('href'), urlPrefix + '/a-3?q=lol');\n\n _this5.expectedModelHookParams = { id: 'a-3', q: 'haha', z: 123 };\n _this5.transitionTo(urlPrefix + '/a-3?q=haha&z=123');\n\n assert.deepEqual(_this5.controller.get('model'), { id: 'a-3' });\n assert.equal(_this5.controller.get('q'), 'haha');\n assert.equal(_this5.controller.get('z'), 123);\n\n assert.equal(_this5.$link1.attr('href'), urlPrefix + '/a-1?q=haha');\n assert.equal(_this5.$link2.attr('href'), urlPrefix + '/a-2?q=haha');\n assert.equal(_this5.$link3.attr('href'), urlPrefix + '/a-3?q=haha&z=123');\n\n _this5.setAndFlush(_this5.controller, 'q', 'woot');\n\n assert.equal(_this5.$link1.attr('href'), urlPrefix + '/a-1?q=woot');\n assert.equal(_this5.$link2.attr('href'), urlPrefix + '/a-2?q=woot');\n assert.equal(_this5.$link3.attr('href'), urlPrefix + '/a-3?q=woot&z=123');\n });\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest5 = function queryParamsStickyTest5(urlPrefix, commentsLookupKey) {\n var _this6 = this;\n\n var assert = this.assert;\n\n assert.expect(12);\n\n return this.boot().then(function () {\n _this6.transitionTo(commentsLookupKey, 'a-1');\n\n var commentsCtrl = _this6.getController(commentsLookupKey);\n assert.equal(commentsCtrl.get('page'), 1);\n _this6.assertCurrentPath(urlPrefix + '/a-1/comments');\n\n _this6.setAndFlush(commentsCtrl, 'page', 2);\n _this6.assertCurrentPath(urlPrefix + '/a-1/comments?page=2');\n\n _this6.setAndFlush(commentsCtrl, 'page', 3);\n _this6.assertCurrentPath(urlPrefix + '/a-1/comments?page=3');\n\n _this6.transitionTo(commentsLookupKey, 'a-2');\n assert.equal(commentsCtrl.get('page'), 1);\n _this6.assertCurrentPath(urlPrefix + '/a-2/comments');\n\n _this6.transitionTo(commentsLookupKey, 'a-1');\n assert.equal(commentsCtrl.get('page'), 3);\n _this6.assertCurrentPath(urlPrefix + '/a-1/comments?page=3');\n });\n };\n\n ModelDependentQPTestCase.prototype.queryParamsStickyTest6 = function queryParamsStickyTest6(urlPrefix, articleLookup, commentsLookup) {\n var _this7 = this;\n\n var assert = this.assert;\n\n assert.expect(13);\n\n this.setupApplication();\n\n this.reopenRoute(articleLookup, {\n resetController: function (controller, isExiting) {\n this.controllerFor(commentsLookup).set('page', 1);\n if (isExiting) {\n controller.set('q', 'imdone');\n }\n }\n });\n\n this.addTemplate('about', '{{link-to \\'A\\' \\'' + commentsLookup + '\\' \\'a-1\\' id=\\'one\\'}} {{link-to \\'B\\' \\'' + commentsLookup + '\\' \\'a-2\\' id=\\'two\\'}}');\n\n return this.visitApplication().then(function () {\n _this7.transitionTo(commentsLookup, 'a-1');\n\n var commentsCtrl = _this7.getController(commentsLookup);\n assert.equal(commentsCtrl.get('page'), 1);\n _this7.assertCurrentPath(urlPrefix + '/a-1/comments');\n\n _this7.setAndFlush(commentsCtrl, 'page', 2);\n _this7.assertCurrentPath(urlPrefix + '/a-1/comments?page=2');\n\n _this7.transitionTo(commentsLookup, 'a-2');\n assert.equal(commentsCtrl.get('page'), 1);\n assert.equal(_this7.controller.get('q'), 'wat');\n\n _this7.transitionTo(commentsLookup, 'a-1');\n\n _this7.assertCurrentPath(urlPrefix + '/a-1/comments');\n assert.equal(commentsCtrl.get('page'), 1);\n\n _this7.transitionTo('about');\n assert.equal((0, _emberViews.jQuery)('#one').attr('href'), urlPrefix + '/a-1/comments?q=imdone');\n assert.equal((0, _emberViews.jQuery)('#two').attr('href'), urlPrefix + '/a-2/comments');\n });\n };\n\n return ModelDependentQPTestCase;\n }(_internalTestHelpers.QueryParamTestCase);\n\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state', function (_ModelDependentQPTest) {\n (0, _emberBabel.inherits)(_class, _ModelDependentQPTest);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ModelDependentQPTest.apply(this, arguments));\n }\n\n _class.prototype.setupApplication = function setupApplication() {\n this.router.map(function () {\n this.route('article', { path: '/a/:id' }, function () {\n this.route('comments', { resetNamespace: true });\n });\n this.route('about');\n });\n\n var articles = (0, _emberRuntime.A)([{ id: 'a-1' }, { id: 'a-2' }, { id: 'a-3' }]);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n articles: articles\n }));\n\n var self = this;\n var assert = this.assert;\n this.add('route:article', _emberRouting.Route.extend({\n model: function (params) {\n if (self.expectedModelHookParams) {\n assert.deepEqual(params, self.expectedModelHookParams, 'the ArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedModelHookParams = null;\n }\n return articles.findBy('id', params.id);\n }\n }));\n\n this.add('controller:article', _emberRuntime.Controller.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n\n this.add('controller:comments', _emberRuntime.Controller.extend({\n queryParams: 'page',\n page: 1\n }));\n\n this.addTemplate('application', '{{#each articles as |a|}} 1{{link-to \\'Article\\' \\'article\\' a id=a.id}} {{/each}} {{outlet}}');\n };\n\n _class.prototype.visitApplication = function visitApplication() {\n var _this9 = this;\n\n return this.visit('/').then(function () {\n var assert = _this9.assert;\n\n _this9.$link1 = (0, _emberViews.jQuery)('#a-1');\n _this9.$link2 = (0, _emberViews.jQuery)('#a-2');\n _this9.$link3 = (0, _emberViews.jQuery)('#a-3');\n\n assert.equal(_this9.$link1.attr('href'), '/a/a-1');\n assert.equal(_this9.$link2.attr('href'), '/a/a-2');\n assert.equal(_this9.$link3.attr('href'), '/a/a-3');\n\n _this9.controller = _this9.getController('article');\n });\n };\n\n _class.prototype['@test query params have \\'model\\' stickiness by default'] = function testQueryParamsHaveModelStickinessByDefault() {\n return this.queryParamsStickyTest1('/a');\n };\n\n _class.prototype['@test query params have \\'model\\' stickiness by default (url changes)'] = function testQueryParamsHaveModelStickinessByDefaultUrlChanges() {\n return this.queryParamsStickyTest2('/a');\n };\n\n _class.prototype['@test query params have \\'model\\' stickiness by default (params-based transitions)'] = function testQueryParamsHaveModelStickinessByDefaultParamsBasedTransitions() {\n return this.queryParamsStickyTest3('/a', 'article');\n };\n\n _class.prototype['@test \\'controller\\' stickiness shares QP state between models'] = function testControllerStickinessSharesQPStateBetweenModels() {\n return this.queryParamsStickyTest4('/a', 'article');\n };\n\n _class.prototype['@test \\'model\\' stickiness is scoped to current or first dynamic parent route'] = function testModelStickinessIsScopedToCurrentOrFirstDynamicParentRoute() {\n return this.queryParamsStickyTest5('/a', 'comments');\n };\n\n _class.prototype['@test can reset query params using the resetController hook'] = function testCanResetQueryParamsUsingTheResetControllerHook() {\n return this.queryParamsStickyTest6('/a', 'article', 'comments');\n };\n\n return _class;\n }(ModelDependentQPTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state (nested)', function (_ModelDependentQPTest2) {\n (0, _emberBabel.inherits)(_class2, _ModelDependentQPTest2);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ModelDependentQPTest2.apply(this, arguments));\n }\n\n _class2.prototype.setupApplication = function setupApplication() {\n this.router.map(function () {\n this.route('site', function () {\n this.route('article', { path: '/a/:id' }, function () {\n this.route('comments');\n });\n });\n this.route('about');\n });\n\n var site_articles = (0, _emberRuntime.A)([{ id: 'a-1' }, { id: 'a-2' }, { id: 'a-3' }]);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n articles: site_articles\n }));\n\n var self = this;\n var assert = this.assert;\n this.add('route:site.article', _emberRouting.Route.extend({\n model: function (params) {\n if (self.expectedModelHookParams) {\n assert.deepEqual(params, self.expectedModelHookParams, 'the ArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedModelHookParams = null;\n }\n return site_articles.findBy('id', params.id);\n }\n }));\n\n this.add('controller:site.article', _emberRuntime.Controller.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n\n this.add('controller:site.article.comments', _emberRuntime.Controller.extend({\n queryParams: 'page',\n page: 1\n }));\n\n this.addTemplate('application', '{{#each articles as |a|}} {{link-to \\'Article\\' \\'site.article\\' a id=a.id}} {{/each}} {{outlet}}');\n };\n\n _class2.prototype.visitApplication = function visitApplication() {\n var _this11 = this;\n\n return this.visit('/').then(function () {\n var assert = _this11.assert;\n\n _this11.$link1 = (0, _emberViews.jQuery)('#a-1');\n _this11.$link2 = (0, _emberViews.jQuery)('#a-2');\n _this11.$link3 = (0, _emberViews.jQuery)('#a-3');\n\n assert.equal(_this11.$link1.attr('href'), '/site/a/a-1');\n assert.equal(_this11.$link2.attr('href'), '/site/a/a-2');\n assert.equal(_this11.$link3.attr('href'), '/site/a/a-3');\n\n _this11.controller = _this11.getController('site.article');\n });\n };\n\n _class2.prototype['@test query params have \\'model\\' stickiness by default'] = function testQueryParamsHaveModelStickinessByDefault() {\n return this.queryParamsStickyTest1('/site/a');\n };\n\n _class2.prototype['@test query params have \\'model\\' stickiness by default (url changes)'] = function testQueryParamsHaveModelStickinessByDefaultUrlChanges() {\n return this.queryParamsStickyTest2('/site/a');\n };\n\n _class2.prototype['@test query params have \\'model\\' stickiness by default (params-based transitions)'] = function testQueryParamsHaveModelStickinessByDefaultParamsBasedTransitions() {\n return this.queryParamsStickyTest3('/site/a', 'site.article');\n };\n\n _class2.prototype['@test \\'controller\\' stickiness shares QP state between models'] = function testControllerStickinessSharesQPStateBetweenModels() {\n return this.queryParamsStickyTest4('/site/a', 'site.article');\n };\n\n _class2.prototype['@test \\'model\\' stickiness is scoped to current or first dynamic parent route'] = function testModelStickinessIsScopedToCurrentOrFirstDynamicParentRoute() {\n return this.queryParamsStickyTest5('/site/a', 'site.article.comments');\n };\n\n _class2.prototype['@test can reset query params using the resetController hook'] = function testCanResetQueryParamsUsingTheResetControllerHook() {\n return this.queryParamsStickyTest6('/site/a', 'site.article', 'site.article.comments');\n };\n\n return _class2;\n }(ModelDependentQPTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Query Params - model-dependent state (nested & more than 1 dynamic segment)', function (_ModelDependentQPTest3) {\n (0, _emberBabel.inherits)(_class3, _ModelDependentQPTest3);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ModelDependentQPTest3.apply(this, arguments));\n }\n\n _class3.prototype.setupApplication = function setupApplication() {\n this.router.map(function () {\n this.route('site', { path: '/site/:site_id' }, function () {\n this.route('article', { path: '/a/:article_id' }, function () {\n this.route('comments');\n });\n });\n });\n\n var sites = (0, _emberRuntime.A)([{ id: 's-1' }, { id: 's-2' }, { id: 's-3' }]);\n var site_articles = (0, _emberRuntime.A)([{ id: 'a-1' }, { id: 'a-2' }, { id: 'a-3' }]);\n\n this.add('controller:application', _emberRuntime.Controller.extend({\n siteArticles: site_articles,\n sites: sites,\n allSitesAllArticles: (0, _emberMetal.computed)({\n get: function () {\n var ret = [];\n var siteArticles = this.siteArticles;\n var sites = this.sites;\n sites.forEach(function (site) {\n ret = ret.concat(siteArticles.map(function (article) {\n return { id: site.id + '-' + article.id, site_id: site.id, article_id: article.id };\n }));\n });\n return ret;\n }\n })\n }));\n\n var self = this;\n var assert = this.assert;\n this.add('route:site', _emberRouting.Route.extend({\n model: function (params) {\n if (self.expectedSiteModelHookParams) {\n assert.deepEqual(params, self.expectedSiteModelHookParams, 'the SiteRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedSiteModelHookParams = null;\n }\n return sites.findBy('id', params.site_id);\n }\n }));\n\n this.add('route:site.article', _emberRouting.Route.extend({\n model: function (params) {\n if (self.expectedArticleModelHookParams) {\n assert.deepEqual(params, self.expectedArticleModelHookParams, 'the SiteArticleRoute model hook received the expected merged dynamic segment + query params hash');\n self.expectedArticleModelHookParams = null;\n }\n return site_articles.findBy('id', params.article_id);\n }\n }));\n\n this.add('controller:site', _emberRuntime.Controller.extend({\n queryParams: ['country'],\n country: 'au'\n }));\n\n this.add('controller:site.article', _emberRuntime.Controller.extend({\n queryParams: ['q', 'z'],\n q: 'wat',\n z: 0\n }));\n\n this.add('controller:site.article.comments', _emberRuntime.Controller.extend({\n queryParams: ['page'],\n page: 1\n }));\n\n this.addTemplate('application', '{{#each allSitesAllArticles as |a|}} {{#link-to \\'site.article\\' a.site_id a.article_id id=a.id}}Article [{{a.site_id}}] [{{a.article_id}}]{{/link-to}} {{/each}} {{outlet}}');\n };\n\n _class3.prototype.visitApplication = function visitApplication() {\n var _this13 = this;\n\n return this.visit('/').then(function () {\n var assert = _this13.assert;\n\n _this13.links = {};\n _this13.links['s-1-a-1'] = (0, _emberViews.jQuery)('#s-1-a-1');\n _this13.links['s-1-a-2'] = (0, _emberViews.jQuery)('#s-1-a-2');\n _this13.links['s-1-a-3'] = (0, _emberViews.jQuery)('#s-1-a-3');\n _this13.links['s-2-a-1'] = (0, _emberViews.jQuery)('#s-2-a-1');\n _this13.links['s-2-a-2'] = (0, _emberViews.jQuery)('#s-2-a-2');\n _this13.links['s-2-a-3'] = (0, _emberViews.jQuery)('#s-2-a-3');\n _this13.links['s-3-a-1'] = (0, _emberViews.jQuery)('#s-3-a-1');\n _this13.links['s-3-a-2'] = (0, _emberViews.jQuery)('#s-3-a-2');\n _this13.links['s-3-a-3'] = (0, _emberViews.jQuery)('#s-3-a-3');\n\n assert.equal(_this13.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this13.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2');\n assert.equal(_this13.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this13.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1');\n assert.equal(_this13.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this13.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this13.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this13.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this13.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this13.site_controller = _this13.getController('site');\n _this13.article_controller = _this13.getController('site.article');\n });\n };\n\n _class3.prototype['@test query params have \\'model\\' stickiness by default'] = function testQueryParamsHaveModelStickinessByDefault(assert) {\n var _this14 = this;\n\n assert.expect(59);\n\n return this.boot().then(function () {\n (0, _emberMetal.run)(_this14.links['s-1-a-1'], 'click');\n assert.deepEqual(_this14.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this14.article_controller.get('model'), { id: 'a-1' });\n _this14.assertCurrentPath('/site/s-1/a/a-1');\n\n _this14.setAndFlush(_this14.article_controller, 'q', 'lol');\n\n assert.equal(_this14.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this14.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2');\n assert.equal(_this14.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this14.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(_this14.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this14.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this14.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this14.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this14.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this14.setAndFlush(_this14.site_controller, 'country', 'us');\n\n assert.equal(_this14.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(_this14.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(_this14.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(_this14.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(_this14.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this14.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this14.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this14.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this14.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n (0, _emberMetal.run)(_this14.links['s-1-a-2'], 'click');\n\n assert.equal(_this14.site_controller.get('country'), 'us');\n assert.equal(_this14.article_controller.get('q'), 'wat');\n assert.equal(_this14.article_controller.get('z'), 0);\n assert.deepEqual(_this14.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this14.article_controller.get('model'), { id: 'a-2' });\n assert.equal(_this14.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(_this14.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(_this14.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(_this14.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(_this14.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this14.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this14.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this14.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this14.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n (0, _emberMetal.run)(_this14.links['s-2-a-2'], 'click');\n\n assert.equal(_this14.site_controller.get('country'), 'au');\n assert.equal(_this14.article_controller.get('q'), 'wat');\n assert.equal(_this14.article_controller.get('z'), 0);\n assert.deepEqual(_this14.site_controller.get('model'), { id: 's-2' });\n assert.deepEqual(_this14.article_controller.get('model'), { id: 'a-2' });\n assert.equal(_this14.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?country=us&q=lol');\n assert.equal(_this14.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?country=us');\n assert.equal(_this14.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?country=us');\n assert.equal(_this14.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(_this14.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this14.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this14.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this14.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this14.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n });\n };\n\n _class3.prototype['@test query params have \\'model\\' stickiness by default (url changes)'] = function testQueryParamsHaveModelStickinessByDefaultUrlChanges(assert) {\n var _this15 = this;\n\n assert.expect(88);\n\n return this.boot().then(function () {\n _this15.expectedSiteModelHookParams = { site_id: 's-1', country: 'au' };\n _this15.expectedArticleModelHookParams = { article_id: 'a-1', q: 'lol', z: 0 };\n _this15.transitionTo('/site/s-1/a/a-1?q=lol');\n\n assert.deepEqual(_this15.site_controller.get('model'), { id: 's-1' }, 'site controller\\'s model is s-1');\n assert.deepEqual(_this15.article_controller.get('model'), { id: 'a-1' }, 'article controller\\'s model is a-1');\n assert.equal(_this15.site_controller.get('country'), 'au');\n assert.equal(_this15.article_controller.get('q'), 'lol');\n assert.equal(_this15.article_controller.get('z'), 0);\n assert.equal(_this15.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this15.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2');\n assert.equal(_this15.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this15.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?q=lol');\n assert.equal(_this15.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this15.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this15.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this15.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this15.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this15.expectedSiteModelHookParams = { site_id: 's-2', country: 'us' };\n _this15.expectedArticleModelHookParams = { article_id: 'a-1', q: 'lol', z: 0 };\n _this15.transitionTo('/site/s-2/a/a-1?country=us&q=lol');\n\n assert.deepEqual(_this15.site_controller.get('model'), { id: 's-2' }, 'site controller\\'s model is s-2');\n assert.deepEqual(_this15.article_controller.get('model'), { id: 'a-1' }, 'article controller\\'s model is a-1');\n assert.equal(_this15.site_controller.get('country'), 'us');\n assert.equal(_this15.article_controller.get('q'), 'lol');\n assert.equal(_this15.article_controller.get('z'), 0);\n assert.equal(_this15.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this15.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2');\n assert.equal(_this15.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this15.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us');\n assert.equal(_this15.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us');\n assert.equal(_this15.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this15.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this15.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this15.expectedSiteModelHookParams = { site_id: 's-2', country: 'us' };\n _this15.expectedArticleModelHookParams = { article_id: 'a-2', q: 'lol', z: 0 };\n _this15.transitionTo('/site/s-2/a/a-2?country=us&q=lol');\n\n assert.deepEqual(_this15.site_controller.get('model'), { id: 's-2' }, 'site controller\\'s model is s-2');\n assert.deepEqual(_this15.article_controller.get('model'), { id: 'a-2' }, 'article controller\\'s model is a-2');\n assert.equal(_this15.site_controller.get('country'), 'us');\n assert.equal(_this15.article_controller.get('q'), 'lol');\n assert.equal(_this15.article_controller.get('z'), 0);\n assert.equal(_this15.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this15.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(_this15.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this15.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us');\n assert.equal(_this15.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this15.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(_this15.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this15.expectedSiteModelHookParams = { site_id: 's-2', country: 'us' };\n _this15.expectedArticleModelHookParams = { article_id: 'a-3', q: 'lol', z: 123 };\n _this15.transitionTo('/site/s-2/a/a-3?country=us&q=lol&z=123');\n\n assert.deepEqual(_this15.site_controller.get('model'), { id: 's-2' }, 'site controller\\'s model is s-2');\n assert.deepEqual(_this15.article_controller.get('model'), { id: 'a-3' }, 'article controller\\'s model is a-3');\n assert.equal(_this15.site_controller.get('country'), 'us');\n assert.equal(_this15.article_controller.get('q'), 'lol');\n assert.equal(_this15.article_controller.get('z'), 123);\n assert.equal(_this15.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this15.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(_this15.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=lol&z=123');\n assert.equal(_this15.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us&q=lol&z=123');\n assert.equal(_this15.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=lol');\n assert.equal(_this15.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(_this15.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?q=lol&z=123');\n\n _this15.expectedSiteModelHookParams = { site_id: 's-3', country: 'nz' };\n _this15.expectedArticleModelHookParams = { article_id: 'a-3', q: 'lol', z: 123 };\n _this15.transitionTo('/site/s-3/a/a-3?country=nz&q=lol&z=123');\n\n assert.deepEqual(_this15.site_controller.get('model'), { id: 's-3' }, 'site controller\\'s model is s-3');\n assert.deepEqual(_this15.article_controller.get('model'), { id: 'a-3' }, 'article controller\\'s model is a-3');\n assert.equal(_this15.site_controller.get('country'), 'nz');\n assert.equal(_this15.article_controller.get('q'), 'lol');\n assert.equal(_this15.article_controller.get('z'), 123);\n assert.equal(_this15.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=lol');\n assert.equal(_this15.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(_this15.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=lol&z=123');\n assert.equal(_this15.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol');\n assert.equal(_this15.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us&q=lol&z=123');\n assert.equal(_this15.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?country=nz&q=lol');\n assert.equal(_this15.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?country=nz&q=lol');\n assert.equal(_this15.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?country=nz&q=lol&z=123');\n });\n };\n\n _class3.prototype['@test query params have \\'model\\' stickiness by default (params-based transitions)'] = function testQueryParamsHaveModelStickinessByDefaultParamsBasedTransitions(assert) {\n var _this16 = this;\n\n assert.expect(118);\n\n return this.boot().then(function () {\n _this16.expectedSiteModelHookParams = { site_id: 's-1', country: 'au' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-1', q: 'wat', z: 0 };\n _this16.transitionTo('site.article', 's-1', 'a-1');\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-1' });\n assert.equal(_this16.site_controller.get('country'), 'au');\n assert.equal(_this16.article_controller.get('q'), 'wat');\n assert.equal(_this16.article_controller.get('z'), 0);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-1', country: 'au' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-2', q: 'lol', z: 0 };\n _this16.transitionTo('site.article', 's-1', 'a-2', { queryParams: { q: 'lol' } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-2' });\n assert.equal(_this16.site_controller.get('country'), 'au');\n assert.equal(_this16.article_controller.get('q'), 'lol');\n assert.equal(_this16.article_controller.get('z'), 0);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?q=lol');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-1', country: 'au' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-3', q: 'hay', z: 0 };\n _this16.transitionTo('site.article', 's-1', 'a-3', { queryParams: { q: 'hay' } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-3' });\n assert.equal(_this16.site_controller.get('country'), 'au');\n assert.equal(_this16.article_controller.get('q'), 'hay');\n assert.equal(_this16.article_controller.get('z'), 0);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?q=lol');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?q=hay');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?q=hay');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-1', country: 'au' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-2', q: 'lol', z: 1 };\n _this16.transitionTo('site.article', 's-1', 'a-2', { queryParams: { z: 1 } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-1' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-2' });\n assert.equal(_this16.site_controller.get('country'), 'au');\n assert.equal(_this16.article_controller.get('q'), 'lol');\n assert.equal(_this16.article_controller.get('z'), 1);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?q=hay');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?q=hay');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-2', country: 'us' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-2', q: 'lol', z: 1 };\n _this16.transitionTo('site.article', 's-2', 'a-2', { queryParams: { country: 'us' } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-2' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-2' });\n assert.equal(_this16.site_controller.get('country'), 'us');\n assert.equal(_this16.article_controller.get('q'), 'lol');\n assert.equal(_this16.article_controller.get('z'), 1);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us&q=hay');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?q=hay');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-2', country: 'us' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-1', q: 'yeah', z: 0 };\n _this16.transitionTo('site.article', 's-2', 'a-1', { queryParams: { q: 'yeah' } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-2' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-1' });\n assert.equal(_this16.site_controller.get('country'), 'us');\n assert.equal(_this16.article_controller.get('q'), 'yeah');\n assert.equal(_this16.article_controller.get('z'), 0);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=yeah');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=hay');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=yeah');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us&q=hay');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?q=yeah');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?q=hay');\n\n _this16.expectedSiteModelHookParams = { site_id: 's-3', country: 'nz' };\n _this16.expectedArticleModelHookParams = { article_id: 'a-3', q: 'hay', z: 3 };\n _this16.transitionTo('site.article', 's-3', 'a-3', { queryParams: { country: 'nz', z: 3 } });\n\n assert.deepEqual(_this16.site_controller.get('model'), { id: 's-3' });\n assert.deepEqual(_this16.article_controller.get('model'), { id: 'a-3' });\n assert.equal(_this16.site_controller.get('country'), 'nz');\n assert.equal(_this16.article_controller.get('q'), 'hay');\n assert.equal(_this16.article_controller.get('z'), 3);\n assert.equal(_this16.links['s-1-a-1'].attr('href'), '/site/s-1/a/a-1?q=yeah');\n assert.equal(_this16.links['s-1-a-2'].attr('href'), '/site/s-1/a/a-2?q=lol&z=1');\n assert.equal(_this16.links['s-1-a-3'].attr('href'), '/site/s-1/a/a-3?q=hay&z=3');\n assert.equal(_this16.links['s-2-a-1'].attr('href'), '/site/s-2/a/a-1?country=us&q=yeah');\n assert.equal(_this16.links['s-2-a-2'].attr('href'), '/site/s-2/a/a-2?country=us&q=lol&z=1');\n assert.equal(_this16.links['s-2-a-3'].attr('href'), '/site/s-2/a/a-3?country=us&q=hay&z=3');\n assert.equal(_this16.links['s-3-a-1'].attr('href'), '/site/s-3/a/a-1?country=nz&q=yeah');\n assert.equal(_this16.links['s-3-a-2'].attr('href'), '/site/s-3/a/a-2?country=nz&q=lol&z=1');\n assert.equal(_this16.links['s-3-a-3'].attr('href'), '/site/s-3/a/a-3?country=nz&q=hay&z=3');\n });\n };\n\n return _class3;\n }(ModelDependentQPTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test/model_dependent_state_with_query_params_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test/overlapping_query_params_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'ember-metal', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberRouting, _emberMetal, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Query Params - overlapping query param property names', function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(_class, _QueryParamTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n _class.prototype.setupBase = function setupBase() {\n this.router.map(function () {\n this.route('parent', function () {\n this.route('child');\n });\n });\n\n return this.visit('/parent/child');\n };\n\n _class.prototype['@test can remap same-named qp props'] = function testCanRemapSameNamedQpProps(assert) {\n var _this2 = this;\n\n assert.expect(7);\n\n this.setMappedQPController('parent');\n this.setMappedQPController('parent.child', 'page', 'childPage');\n\n return this.setupBase().then(function () {\n _this2.assertCurrentPath('/parent/child');\n\n var parentController = _this2.getController('parent');\n var parentChildController = _this2.getController('parent.child');\n\n _this2.setAndFlush(parentController, 'page', 2);\n _this2.assertCurrentPath('/parent/child?parentPage=2');\n _this2.setAndFlush(parentController, 'page', 1);\n _this2.assertCurrentPath('/parent/child');\n\n _this2.setAndFlush(parentChildController, 'page', 2);\n _this2.assertCurrentPath('/parent/child?childPage=2');\n _this2.setAndFlush(parentChildController, 'page', 1);\n _this2.assertCurrentPath('/parent/child');\n\n (0, _emberMetal.run)(function () {\n parentController.set('page', 2);\n parentChildController.set('page', 2);\n });\n\n _this2.assertCurrentPath('/parent/child?childPage=2&parentPage=2');\n\n (0, _emberMetal.run)(function () {\n parentController.set('page', 1);\n parentChildController.set('page', 1);\n });\n\n _this2.assertCurrentPath('/parent/child');\n });\n };\n\n _class.prototype['@test query params can be either controller property or url key'] = function testQueryParamsCanBeEitherControllerPropertyOrUrlKey(assert) {\n var _this3 = this;\n\n assert.expect(3);\n\n this.setMappedQPController('parent');\n\n return this.setupBase().then(function () {\n _this3.assertCurrentPath('/parent/child');\n\n _this3.transitionTo('parent.child', { queryParams: { page: 2 } });\n _this3.assertCurrentPath('/parent/child?parentPage=2');\n\n _this3.transitionTo('parent.child', { queryParams: { parentPage: 3 } });\n _this3.assertCurrentPath('/parent/child?parentPage=3');\n });\n };\n\n _class.prototype['@test query param matching a url key and controller property'] = function testQueryParamMatchingAUrlKeyAndControllerProperty(assert) {\n var _this4 = this;\n\n assert.expect(3);\n\n this.setMappedQPController('parent', 'page', 'parentPage');\n this.setMappedQPController('parent.child', 'index', 'page');\n\n return this.setupBase().then(function () {\n _this4.transitionTo('parent.child', { queryParams: { page: 2 } });\n _this4.assertCurrentPath('/parent/child?parentPage=2');\n\n _this4.transitionTo('parent.child', { queryParams: { parentPage: 3 } });\n _this4.assertCurrentPath('/parent/child?parentPage=3');\n\n _this4.transitionTo('parent.child', { queryParams: { index: 2, page: 2 } });\n _this4.assertCurrentPath('/parent/child?page=2&parentPage=2');\n });\n };\n\n _class.prototype['@test query param matching same property on two controllers use the urlKey higher in the chain'] = function testQueryParamMatchingSamePropertyOnTwoControllersUseTheUrlKeyHigherInTheChain(assert) {\n var _this5 = this;\n\n assert.expect(4);\n\n this.setMappedQPController('parent', 'page', 'parentPage');\n this.setMappedQPController('parent.child', 'page', 'childPage');\n\n return this.setupBase().then(function () {\n _this5.transitionTo('parent.child', { queryParams: { page: 2 } });\n _this5.assertCurrentPath('/parent/child?parentPage=2');\n\n _this5.transitionTo('parent.child', { queryParams: { parentPage: 3 } });\n _this5.assertCurrentPath('/parent/child?parentPage=3');\n\n _this5.transitionTo('parent.child', { queryParams: { childPage: 2, page: 2 } });\n _this5.assertCurrentPath('/parent/child?childPage=2&parentPage=2');\n\n _this5.transitionTo('parent.child', { queryParams: { childPage: 3, parentPage: 4 } });\n _this5.assertCurrentPath('/parent/child?childPage=3&parentPage=4');\n });\n };\n\n _class.prototype['@test query params does not error when a query parameter exists for route instances that share a controller'] = function testQueryParamsDoesNotErrorWhenAQueryParameterExistsForRouteInstancesThatShareAController(assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n var parentController = _emberRuntime.Controller.extend({\n queryParams: { page: 'page' }\n });\n this.add('controller:parent', parentController);\n this.add('route:parent.child', _emberRouting.Route.extend({ controllerName: 'parent' }));\n\n return this.setupBase('/parent').then(function () {\n _this6.transitionTo('parent.child', { queryParams: { page: 2 } });\n _this6.assertCurrentPath('/parent/child?page=2');\n });\n };\n\n _class.prototype['@test query params in the same route hierarchy with the same url key get auto-scoped'] = function testQueryParamsInTheSameRouteHierarchyWithTheSameUrlKeyGetAutoScoped(assert) {\n var _this7 = this;\n\n assert.expect(1);\n\n this.setMappedQPController('parent');\n this.setMappedQPController('parent.child');\n\n expectAssertion(function () {\n _this7.setupBase();\n }, 'You\\'re not allowed to have more than one controller property map to the same query param key, but both `parent:page` and `parent.child:page` map to `parentPage`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `page: { as: \\'other-page\\' }`');\n };\n\n _class.prototype['@test Support shared but overridable mixin pattern'] = function testSupportSharedButOverridableMixinPattern(assert) {\n var _this8 = this;\n\n assert.expect(7);\n\n var HasPage = _emberMetal.Mixin.create({\n queryParams: 'page',\n page: 1\n });\n\n this.add('controller:parent', _emberRuntime.Controller.extend(HasPage, {\n queryParams: { page: 'yespage' }\n }));\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend(HasPage));\n\n return this.setupBase().then(function () {\n _this8.assertCurrentPath('/parent/child');\n\n var parentController = _this8.getController('parent');\n var parentChildController = _this8.getController('parent.child');\n\n _this8.setAndFlush(parentChildController, 'page', 2);\n _this8.assertCurrentPath('/parent/child?page=2');\n assert.equal(parentController.get('page'), 1);\n assert.equal(parentChildController.get('page'), 2);\n\n _this8.setAndFlush(parentController, 'page', 2);\n _this8.assertCurrentPath('/parent/child?page=2&yespage=2');\n assert.equal(parentController.get('page'), 2);\n assert.equal(parentChildController.get('page'), 2);\n });\n };\n\n return _class;\n }(_internalTestHelpers.QueryParamTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test/overlapping_query_params_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test/overlapping_query_params_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test/query_param_async_get_handler_test', ['ember-babel', 'ember-metal', 'ember-runtime', 'ember-routing', 'internal-test-helpers'], function (_emberBabel, _emberMetal, _emberRuntime, _emberRouting, _internalTestHelpers) {\n 'use strict';\n\n // These tests mimic what happens with lazily loaded Engines.\n (0, _internalTestHelpers.moduleFor)('Query Params - async get handler', function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(_class, _QueryParamTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test can render a link to an asynchronously loaded route without fetching the route'] = function testCanRenderALinkToAnAsynchronouslyLoadedRouteWithoutFetchingTheRoute(assert) {\n var _this2 = this;\n\n assert.expect(4);\n\n this.router.map(function () {\n this.route('post', { path: '/post/:id' });\n });\n\n this.setSingleQPController('post');\n\n var setupAppTemplate = function () {\n _this2.addTemplate('application', '\\n {{link-to \\'Post\\' \\'post\\' 1337 (query-params foo=\\'bar\\') class=\\'post-link\\'}}\\n {{link-to \\'Post\\' \\'post\\' 7331 (query-params foo=\\'boo\\') class=\\'post-link\\'}}\\n {{outlet}}\\n ');\n };\n\n setupAppTemplate();\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(_this2.$('.post-link').eq(0).attr('href'), '/post/1337?foo=bar', 'renders correctly with default QP value');\n assert.equal(_this2.$('.post-link').eq(1).attr('href'), '/post/7331?foo=boo', 'renders correctly with non-default QP value');\n assert.deepEqual(_this2.fetchedHandlers, ['application', 'index'], 'only fetched the handlers for the route we\\'re on');\n });\n };\n\n _class.prototype['@test can transitionTo to an asynchronously loaded route with simple query params'] = function testCanTransitionToToAnAsynchronouslyLoadedRouteWithSimpleQueryParams(assert) {\n var _this3 = this;\n\n assert.expect(6);\n\n this.router.map(function () {\n this.route('post', { path: '/post/:id' });\n this.route('posts');\n });\n\n this.setSingleQPController('post');\n\n var postController = void 0;\n return this.visitAndAssert('/').then(function () {\n postController = _this3.getController('post');\n\n return _this3.transitionTo('posts').then(function () {\n _this3.assertCurrentPath('/posts');\n });\n }).then(function () {\n return _this3.transitionTo('post', 1337, { queryParams: { foo: 'boo' } }).then(function () {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly set on controller');\n _this3.assertCurrentPath('/post/1337?foo=boo');\n });\n }).then(function () {\n return _this3.transitionTo('post', 1337, { queryParams: { foo: 'bar' } }).then(function () {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly set with default value');\n _this3.assertCurrentPath('/post/1337');\n });\n });\n };\n\n _class.prototype['@test can transitionTo to an asynchronously loaded route with array query params'] = function testCanTransitionToToAnAsynchronouslyLoadedRouteWithArrayQueryParams(assert) {\n var _this4 = this;\n\n assert.expect(5);\n\n this.router.map(function () {\n this.route('post', { path: '/post/:id' });\n });\n\n this.setSingleQPController('post', 'comments', []);\n\n var postController = void 0;\n return this.visitAndAssert('/').then(function () {\n postController = _this4.getController('post');\n return _this4.transitionTo('post', 1337, { queryParams: { comments: [1, 2] } }).then(function () {\n assert.deepEqual(postController.get('comments'), [1, 2], 'array QP is correctly set with default value');\n _this4.assertCurrentPath('/post/1337?comments=%5B1%2C2%5D');\n });\n }).then(function () {\n return _this4.transitionTo('post', 1338).then(function () {\n assert.deepEqual(postController.get('comments'), [], 'array QP is correctly set on controller');\n _this4.assertCurrentPath('/post/1338');\n });\n });\n };\n\n _class.prototype['@test can transitionTo to an asynchronously loaded route with mapped query params'] = function testCanTransitionToToAnAsynchronouslyLoadedRouteWithMappedQueryParams(assert) {\n var _this5 = this;\n\n assert.expect(7);\n\n this.router.map(function () {\n this.route('post', { path: '/post/:id' }, function () {\n this.route('index', { path: '/' });\n });\n });\n\n this.setSingleQPController('post');\n this.setMappedQPController('post.index', 'comment', 'note');\n\n var postController = void 0;\n var postIndexController = void 0;\n\n return this.visitAndAssert('/').then(function () {\n postController = _this5.getController('post');\n postIndexController = _this5.getController('post.index');\n\n return _this5.transitionTo('post.index', 1337, { queryParams: { note: 6, foo: 'boo' } }).then(function () {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly set on controller');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP is correctly set on controller');\n _this5.assertCurrentPath('/post/1337?foo=boo¬e=6');\n });\n }).then(function () {\n return _this5.transitionTo('post', 1337, { queryParams: { foo: 'bar' } }).then(function () {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly set with default value');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP retains value scoped to model');\n _this5.assertCurrentPath('/post/1337?note=6');\n });\n });\n };\n\n _class.prototype['@test can transitionTo with a URL'] = function testCanTransitionToWithAURL(assert) {\n var _this6 = this;\n\n assert.expect(7);\n\n this.router.map(function () {\n this.route('post', { path: '/post/:id' }, function () {\n this.route('index', { path: '/' });\n });\n });\n\n this.setSingleQPController('post');\n this.setMappedQPController('post.index', 'comment', 'note');\n\n var postController = void 0;\n var postIndexController = void 0;\n\n return this.visitAndAssert('/').then(function () {\n postController = _this6.getController('post');\n postIndexController = _this6.getController('post.index');\n\n return _this6.transitionTo('/post/1337?foo=boo¬e=6').then(function () {\n assert.equal(postController.get('foo'), 'boo', 'simple QP is correctly deserialized on controller');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP is correctly deserialized on controller');\n _this6.assertCurrentPath('/post/1337?foo=boo¬e=6');\n });\n }).then(function () {\n return _this6.transitionTo('/post/1337?note=6').then(function () {\n assert.equal(postController.get('foo'), 'bar', 'simple QP is correctly deserialized with default value');\n assert.equal(postIndexController.get('comment'), 6, 'mapped QP retains value scoped to model');\n _this6.assertCurrentPath('/post/1337?note=6');\n });\n });\n };\n\n _class.prototype['@test undefined isn\\'t serialized or deserialized into a string'] = function testUndefinedIsnTSerializedOrDeserializedIntoAString(assert) {\n var _this7 = this;\n\n assert.expect(4);\n\n this.router.map(function () {\n this.route('example');\n });\n\n this.addTemplate('application', '{{link-to \\'Example\\' \\'example\\' (query-params foo=undefined) id=\\'the-link\\'}}');\n\n this.setSingleQPController('example', 'foo', undefined, {\n foo: undefined\n });\n\n this.add('route:example', _emberRouting.Route.extend({\n model: function (params) {\n assert.deepEqual(params, { foo: undefined });\n }\n }));\n\n return this.visitAndAssert('/').then(function () {\n assert.equal(_this7.$('#the-link').attr('href'), '/example', 'renders without undefined qp serialized');\n\n return _this7.transitionTo('example', { queryParams: { foo: undefined } }).then(function () {\n _this7.assertCurrentPath('/example');\n });\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'routerOptions',\n get: function () {\n var fetchedHandlers = this.fetchedHandlers = [];\n\n return {\n location: 'test',\n\n init: function () {\n this._super.apply(this, arguments);\n this._seenHandlers = Object.create(null);\n this._handlerPromises = Object.create(null);\n },\n _getQPMeta: function (handlerInfo) {\n var handler = this._seenHandlers[handlerInfo.name];\n if (handler) {\n return (0, _emberMetal.get)(handler, '_qp');\n }\n },\n _getHandlerFunction: function () {\n var getHandler = this._super.apply(this, arguments);\n var handlerPromises = this._handlerPromises;\n var seenHandlers = this._seenHandlers;\n\n return function (routeName) {\n fetchedHandlers.push(routeName);\n\n // Cache the returns so we don't have more than one Promise for a\n // given handler.\n return handlerPromises[routeName] || (handlerPromises[routeName] = new _emberRuntime.RSVP.Promise(function (resolve) {\n setTimeout(function () {\n var handler = getHandler(routeName);\n\n seenHandlers[routeName] = handler;\n\n resolve(handler);\n }, 10);\n }));\n };\n }\n };\n }\n }]);\n return _class;\n }(_internalTestHelpers.QueryParamTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test/query_param_async_get_handler_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test/query_param_async_get_handler_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test/query_params_paramless_link_to_test', ['ember-babel', 'ember-runtime', 'ember-views', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberViews, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Query Params - paramless link-to', function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(_class, _QueryParamTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n _class.prototype.testParamlessLinks = function testParamlessLinks(assert, routeName) {\n assert.expect(1);\n\n this.addTemplate(routeName, '{{link-to \\'index\\' \\'index\\' id=\\'index-link\\'}}');\n\n this.add('controller:' + routeName, _emberRuntime.Controller.extend({\n queryParams: ['foo'],\n foo: 'wat'\n }));\n\n return this.visit('/?foo=YEAH').then(function () {\n assert.equal((0, _emberViews.jQuery)('#index-link').attr('href'), '/?foo=YEAH');\n });\n };\n\n _class.prototype['@test param-less links in an app booted with query params in the URL don\\'t reset the query params: application'] = function testParamLessLinksInAnAppBootedWithQueryParamsInTheURLDonTResetTheQueryParamsApplication(assert) {\n return this.testParamlessLinks(assert, 'application');\n };\n\n _class.prototype['@test param-less links in an app booted with query params in the URL don\\'t reset the query params: index'] = function testParamLessLinksInAnAppBootedWithQueryParamsInTheURLDonTResetTheQueryParamsIndex(assert) {\n return this.testParamlessLinks(assert, 'index');\n };\n\n return _class;\n }(_internalTestHelpers.QueryParamTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test/query_params_paramless_link_to_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test/query_params_paramless_link_to_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/query_params_test/shared_state_test', ['ember-babel', 'ember-runtime', 'ember', 'ember-metal', 'ember-views', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _ember, _emberMetal, _emberViews, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Query Params - shared service state', function (_QueryParamTestCase) {\n (0, _emberBabel.inherits)(_class, _QueryParamTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _QueryParamTestCase.apply(this, arguments));\n }\n\n _class.prototype.boot = function boot() {\n this.setupApplication();\n return this.visitApplication();\n };\n\n _class.prototype.setupApplication = function setupApplication() {\n this.router.map(function () {\n this.route('home', { path: '/' });\n this.route('dashboard');\n });\n\n this.add('service:filters', _emberRuntime.Service.extend({\n shared: true\n }));\n\n this.add('controller:home', _emberRuntime.Controller.extend({\n filters: _ember.default.inject.service()\n }));\n\n this.add('controller:dashboard', _emberRuntime.Controller.extend({\n filters: _ember.default.inject.service(),\n queryParams: [{ 'filters.shared': 'shared' }]\n }));\n\n this.addTemplate('application', '{{link-to \\'Home\\' \\'home\\' }}
    {{outlet}}
    ');\n this.addTemplate('home', '{{link-to \\'Dashboard\\' \\'dashboard\\' }}{{input type=\"checkbox\" id=\\'filters-checkbox\\' checked=(mut filters.shared) }}');\n this.addTemplate('dashboard', '{{link-to \\'Home\\' \\'home\\' }}');\n };\n\n _class.prototype.visitApplication = function visitApplication() {\n return this.visit('/');\n };\n\n _class.prototype['@test can modify shared state before transition'] = function testCanModifySharedStateBeforeTransition(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n return this.boot().then(function () {\n _this2.$input = (0, _emberViews.jQuery)('#filters-checkbox');\n\n // click the checkbox once to set filters.shared to false\n (0, _emberMetal.run)(_this2.$input, 'click');\n\n return _this2.visit('/dashboard').then(function () {\n assert.ok(true, 'expecting navigating to dashboard to succeed');\n });\n });\n };\n\n _class.prototype['@test can modify shared state back to the default value before transition'] = function testCanModifySharedStateBackToTheDefaultValueBeforeTransition(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n return this.boot().then(function () {\n _this3.$input = (0, _emberViews.jQuery)('#filters-checkbox');\n\n // click the checkbox twice to set filters.shared to false and back to true\n (0, _emberMetal.run)(_this3.$input, 'click');\n (0, _emberMetal.run)(_this3.$input, 'click');\n\n return _this3.visit('/dashboard').then(function () {\n assert.ok(true, 'expecting navigating to dashboard to succeed');\n });\n });\n };\n\n return _class;\n }(_internalTestHelpers.QueryParamTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/query_params_test/shared_state_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/query_params_test/shared_state_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_map_test', ['ember-babel', 'internal-test-helpers', 'ember-metal', 'ember-routing'], function (_emberBabel, _internalTestHelpers, _emberMetal, _emberRouting) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Router.map', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Router.map returns an Ember Router class'] = function testRouterMapReturnsAnEmberRouterClass(assert) {\n assert.expect(1);\n\n var ret = this.router.map(function () {\n this.route('hello');\n });\n\n assert.ok(_emberRouting.Router.detect(ret));\n };\n\n _class.prototype['@test Router.map can be called multiple times'] = function testRouterMapCanBeCalledMultipleTimes(assert) {\n var _this2 = this;\n\n assert.expect(2);\n\n this.addTemplate('hello', 'Hello!');\n this.addTemplate('goodbye', 'Goodbye!');\n\n this.router.map(function () {\n this.route('hello');\n });\n\n this.router.map(function () {\n this.route('goodbye');\n });\n\n return (0, _emberMetal.run)(function () {\n return _this2.visit('/hello').then(function () {\n _this2.assertText('Hello!');\n }).then(function () {\n return _this2.visit('/goodbye');\n }).then(function () {\n _this2.assertText('Goodbye!');\n });\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/router_map_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_map_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/basic_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'ember-routing', 'ember-metal', 'internal-test-helpers', 'ember/features'], function (_emberBabel, _emberRuntime, _emberGlimmer, _emberRouting, _emberMetal, _internalTestHelpers, _features) {\n 'use strict';\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n (0, _internalTestHelpers.moduleFor)('Router Service - main', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test RouterService#currentRouteName is correctly set for top level route'] = function testRouterServiceCurrentRouteNameIsCorrectlySetForTopLevelRoute(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n assert.equal(_this2.routerService.get('currentRouteName'), 'parent.index');\n });\n };\n\n _class.prototype['@test RouterService#currentRouteName is correctly set for child route'] = function testRouterServiceCurrentRouteNameIsCorrectlySetForChildRoute(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n return this.visit('/child').then(function () {\n assert.equal(_this3.routerService.get('currentRouteName'), 'parent.child');\n });\n };\n\n _class.prototype['@test RouterService#currentRouteName is correctly set after transition'] = function testRouterServiceCurrentRouteNameIsCorrectlySetAfterTransition(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n return this.visit('/child').then(function () {\n return _this4.routerService.transitionTo('parent.sister');\n }).then(function () {\n assert.equal(_this4.routerService.get('currentRouteName'), 'parent.sister');\n });\n };\n\n _class.prototype['@test RouterService#currentRouteName is correctly set on each transition'] = function testRouterServiceCurrentRouteNameIsCorrectlySetOnEachTransition(assert) {\n var _this5 = this;\n\n assert.expect(3);\n\n return this.visit('/child').then(function () {\n assert.equal(_this5.routerService.get('currentRouteName'), 'parent.child');\n\n return _this5.visit('/sister');\n }).then(function () {\n assert.equal(_this5.routerService.get('currentRouteName'), 'parent.sister');\n\n return _this5.visit('/brother');\n }).then(function () {\n assert.equal(_this5.routerService.get('currentRouteName'), 'parent.brother');\n });\n };\n\n _class.prototype['@test RouterService#rootURL is correctly set to the default value'] = function testRouterServiceRootURLIsCorrectlySetToTheDefaultValue(assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n assert.equal(_this6.routerService.get('rootURL'), '/');\n });\n };\n\n _class.prototype['@test RouterService#rootURL is correctly set to a custom value'] = function testRouterServiceRootURLIsCorrectlySetToACustomValue(assert) {\n var _this7 = this;\n\n assert.expect(1);\n\n this.add('route:parent.index', _emberRouting.Route.extend({\n init: function () {\n this._super();\n (0, _emberMetal.set)(this.router, 'rootURL', '/homepage');\n }\n }));\n\n return this.visit('/').then(function () {\n assert.equal(_this7.routerService.get('rootURL'), '/homepage');\n });\n };\n\n _class.prototype['@test RouterService#location is correctly delegated from router:main'] = function testRouterServiceLocationIsCorrectlyDelegatedFromRouterMain(assert) {\n var _this8 = this;\n\n assert.expect(2);\n\n return this.visit('/').then(function () {\n var location = _this8.routerService.get('location');\n assert.ok(location);\n assert.ok(location instanceof _emberRouting.NoneLocation);\n });\n };\n\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/basic_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/basic_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/currenturl_lifecycle_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'ember-routing', 'ember-metal', 'internal-test-helpers', 'ember/features'], function (_emberBabel, _emberRuntime, _emberGlimmer, _emberRouting, _emberMetal, _internalTestHelpers, _features) {\n 'use strict';\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n var results = [];\n var ROUTE_NAMES = ['index', 'child', 'sister', 'brother'];\n\n var InstrumentedRoute = _emberRouting.Route.extend({\n routerService: _emberRuntime.inject.service('router'),\n\n beforeModel: function () {\n var service = (0, _emberMetal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'beforeModel', service.get('currentURL')]);\n },\n model: function () {\n var service = (0, _emberMetal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'model', service.get('currentURL')]);\n },\n afterModel: function () {\n var service = (0, _emberMetal.get)(this, 'routerService');\n results.push([service.get('currentRouteName'), 'afterModel', service.get('currentURL')]);\n }\n });\n\n (0, _internalTestHelpers.moduleFor)('Router Service - currentURL', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.call(this));\n\n results = [];\n\n ROUTE_NAMES.forEach(function (name) {\n var routeName = 'parent.' + name;\n _this.add('route:' + routeName, InstrumentedRoute.extend());\n _this.addTemplate(routeName, '{{current-url}}');\n });\n\n _this.addComponent('current-url', {\n ComponentClass: _emberGlimmer.Component.extend({\n routerService: _emberRuntime.inject.service('router'),\n currentURL: (0, _emberRuntime.readOnly)('routerService.currentURL')\n }),\n template: '{{currentURL}}'\n });\n return _this;\n }\n\n _class.prototype['@test RouterService#currentURL is correctly set for top level route'] = function testRouterServiceCurrentURLIsCorrectlySetForTopLevelRoute(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n assert.equal(_this2.routerService.get('currentURL'), '/');\n });\n };\n\n _class.prototype['@test RouterService#currentURL is correctly set for child route'] = function testRouterServiceCurrentURLIsCorrectlySetForChildRoute(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n return this.visit('/child').then(function () {\n assert.equal(_this3.routerService.get('currentURL'), '/child');\n });\n };\n\n _class.prototype['@test RouterService#currentURL is correctly set after transition'] = function testRouterServiceCurrentURLIsCorrectlySetAfterTransition(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n return this.visit('/child').then(function () {\n return _this4.routerService.transitionTo('parent.sister');\n }).then(function () {\n assert.equal(_this4.routerService.get('currentURL'), '/sister');\n });\n };\n\n _class.prototype['@test RouterService#currentURL is correctly set on each transition'] = function testRouterServiceCurrentURLIsCorrectlySetOnEachTransition(assert) {\n var _this5 = this;\n\n assert.expect(3);\n\n return this.visit('/child').then(function () {\n assert.equal(_this5.routerService.get('currentURL'), '/child');\n\n return _this5.visit('/sister');\n }).then(function () {\n assert.equal(_this5.routerService.get('currentURL'), '/sister');\n\n return _this5.visit('/brother');\n }).then(function () {\n assert.equal(_this5.routerService.get('currentURL'), '/brother');\n });\n };\n\n _class.prototype['@test RouterService#currentURL is not set during lifecycle hooks'] = function testRouterServiceCurrentURLIsNotSetDuringLifecycleHooks(assert) {\n var _this6 = this;\n\n assert.expect(2);\n\n return this.visit('/').then(function () {\n assert.deepEqual(results, [[null, 'beforeModel', null], [null, 'model', null], [null, 'afterModel', null]]);\n\n results = [];\n\n return _this6.visit('/child');\n }).then(function () {\n assert.deepEqual(results, [['parent.index', 'beforeModel', '/'], ['parent.index', 'model', '/'], ['parent.index', 'afterModel', '/']]);\n });\n };\n\n _class.prototype['@test RouterService#currentURL is correctly set with component after consecutive visits'] = function testRouterServiceCurrentURLIsCorrectlySetWithComponentAfterConsecutiveVisits(assert) {\n var _this7 = this;\n\n assert.expect(3);\n\n return this.visit('/').then(function () {\n _this7.assertText('/');\n\n return _this7.visit('/child');\n }).then(function () {\n _this7.assertText('/child');\n\n return _this7.visit('/');\n }).then(function () {\n _this7.assertText('/');\n });\n };\n\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/currenturl_lifecycle_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/currenturl_lifecycle_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/isActive_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'ember-routing', 'ember-metal', 'internal-test-helpers', 'ember/features'], function (_emberBabel, _emberRuntime, _emberGlimmer, _emberRouting, _emberMetal, _internalTestHelpers, _features) {\n 'use strict';\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n (0, _internalTestHelpers.moduleFor)('Router Service - isActive', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test RouterService#isActive returns true for simple route'] = function testRouterServiceIsActiveReturnsTrueForSimpleRoute(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this2.routerService.transitionTo('parent.child');\n }).then(function () {\n return _this2.routerService.transitionTo('parent.sister');\n }).then(function () {\n assert.ok(_this2.routerService.isActive('parent.sister'));\n });\n };\n\n _class.prototype['@test RouterService#isActive returns true for simple route with dynamic segments'] = function testRouterServiceIsActiveReturnsTrueForSimpleRouteWithDynamicSegments(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n var dynamicModel = { id: 1 };\n\n return this.visit('/').then(function () {\n return _this3.routerService.transitionTo('dynamic', dynamicModel);\n }).then(function () {\n assert.ok(_this3.routerService.isActive('dynamic', dynamicModel));\n });\n };\n\n _class.prototype['@test RouterService#isActive does not eagerly instantiate controller for query params'] = function testRouterServiceIsActiveDoesNotEagerlyInstantiateControllerForQueryParams(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n this.add('controller:parent.sister', _emberRuntime.Controller.extend({\n queryParams: ['sort'],\n sort: 'ASC',\n\n init: function () {\n assert.ok(false, 'should never create');\n this._super.apply(this, arguments);\n }\n }));\n\n return this.visit('/').then(function () {\n return _this4.routerService.transitionTo('parent.brother');\n }).then(function () {\n assert.notOk(_this4.routerService.isActive('parent.sister', queryParams));\n });\n };\n\n _class.prototype['@test RouterService#isActive is correct for simple route with basic query params'] = function testRouterServiceIsActiveIsCorrectForSimpleRouteWithBasicQueryParams(assert) {\n var _this5 = this;\n\n assert.expect(2);\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n\n return this.visit('/').then(function () {\n return _this5.routerService.transitionTo('parent.child', queryParams);\n }).then(function () {\n assert.ok(_this5.routerService.isActive('parent.child', queryParams));\n assert.notOk(_this5.routerService.isActive('parent.child', _this5.buildQueryParams({ sort: 'DESC' })));\n });\n };\n\n _class.prototype['@test RouterService#isActive for simple route with array as query params'] = function testRouterServiceIsActiveForSimpleRouteWithArrayAsQueryParams(assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ sort: ['ascending'] });\n\n return this.visit('/').then(function () {\n return _this6.routerService.transitionTo('parent.child', queryParams);\n }).then(function () {\n assert.notOk(_this6.routerService.isActive('parent.child', _this6.buildQueryParams({ sort: 'descending' })));\n });\n };\n\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/isActive_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/isActive_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/replaceWith_test', ['ember-babel', 'ember-routing', 'internal-test-helpers', 'router', 'ember-runtime', 'ember/features'], function (_emberBabel, _emberRouting, _internalTestHelpers, _router, _emberRuntime, _features) {\n 'use strict';\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n (0, _internalTestHelpers.moduleFor)('Router Service - replaceWith', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.call(this));\n\n var testCase = _this;\n testCase.state = [];\n\n _this.add('location:test', _emberRouting.NoneLocation.extend({\n setURL: function (path) {\n testCase.state.push(path);\n this.set('path', path);\n },\n replaceURL: function (path) {\n testCase.state.splice(testCase.state.length - 1, 1, path);\n this.set('path', path);\n }\n }));\n return _this;\n }\n\n _class.prototype['@test RouterService#replaceWith returns a Transition'] = function testRouterServiceReplaceWithReturnsATransition(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n var transition = void 0;\n\n return this.visit('/').then(function () {\n transition = _this2.routerService.replaceWith('parent.child');\n\n assert.ok(transition instanceof _router.Transition);\n\n return transition;\n });\n };\n\n _class.prototype['@test RouterService#replaceWith with basic route replaces location'] = function testRouterServiceReplaceWithWithBasicRouteReplacesLocation(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this3.routerService.transitionTo('parent.child');\n }).then(function () {\n return _this3.routerService.transitionTo('parent.sister');\n }).then(function () {\n return _this3.routerService.replaceWith('parent.brother');\n }).then(function () {\n assert.deepEqual(_this3.state, ['/', '/child', '/brother']);\n });\n };\n\n _class.prototype['@test RouterService#replaceWith with basic route using URLs replaces location'] = function testRouterServiceReplaceWithWithBasicRouteUsingURLsReplacesLocation(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this4.routerService.transitionTo('/child');\n }).then(function () {\n return _this4.routerService.transitionTo('/sister');\n }).then(function () {\n return _this4.routerService.replaceWith('/brother');\n }).then(function () {\n assert.deepEqual(_this4.state, ['/', '/child', '/brother']);\n });\n };\n\n _class.prototype['@test RouterService#replaceWith transitioning back to previously visited route replaces location'] = function testRouterServiceReplaceWithTransitioningBackToPreviouslyVisitedRouteReplacesLocation(assert) {\n var _this5 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this5.routerService.transitionTo('parent.child');\n }).then(function () {\n return _this5.routerService.transitionTo('parent.sister');\n }).then(function () {\n return _this5.routerService.transitionTo('parent.brother');\n }).then(function () {\n return _this5.routerService.replaceWith('parent.sister');\n }).then(function () {\n assert.deepEqual(_this5.state, ['/', '/child', '/sister', '/sister']);\n });\n };\n\n _class.prototype['@test RouterService#replaceWith with basic query params does not remove query param defaults'] = function testRouterServiceReplaceWithWithBasicQueryParamsDoesNotRemoveQueryParamDefaults(assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n return this.visit('/').then(function () {\n return _this6.routerService.transitionTo('parent.brother');\n }).then(function () {\n return _this6.routerService.replaceWith('parent.sister');\n }).then(function () {\n return _this6.routerService.replaceWith('parent.child', queryParams);\n }).then(function () {\n assert.deepEqual(_this6.state, ['/', '/child?sort=ASC']);\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'routerOptions',\n get: function () {\n return {\n location: 'test'\n };\n }\n }]);\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/replaceWith_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/replaceWith_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/transitionTo_test', ['ember-babel', 'ember-runtime', 'ember-glimmer', 'ember-routing', 'ember-metal', 'internal-test-helpers', 'router', 'ember/features'], function (_emberBabel, _emberRuntime, _emberGlimmer, _emberRouting, _emberMetal, _internalTestHelpers, _router, _features) {\n 'use strict';\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n (0, _internalTestHelpers.moduleFor)('Router Service - transitionTo', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.call(this));\n\n var testCase = _this;\n testCase.state = [];\n\n _this.add('location:test', _emberRouting.NoneLocation.extend({\n setURL: function (path) {\n testCase.state.push(path);\n this.set('path', path);\n },\n replaceURL: function (path) {\n testCase.state.splice(testCase.state.length - 1, 1, path);\n this.set('path', path);\n }\n }));\n return _this;\n }\n\n _class.prototype['@test RouterService#transitionTo returns a Transition'] = function testRouterServiceTransitionToReturnsATransition(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n var transition = void 0;\n\n return this.visit('/').then(function () {\n transition = _this2.routerService.transitionTo('parent.child');\n\n assert.ok(transition instanceof _router.Transition);\n\n return transition;\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with basic route updates location'] = function testRouterServiceTransitionToWithBasicRouteUpdatesLocation(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this3.routerService.transitionTo('parent.child');\n }).then(function () {\n return _this3.routerService.transitionTo('parent.sister');\n }).then(function () {\n return _this3.routerService.transitionTo('parent.brother');\n }).then(function () {\n assert.deepEqual(_this3.state, ['/', '/child', '/sister', '/brother']);\n });\n };\n\n _class.prototype['@test RouterService#transitionTo transitioning back to previously visited route updates location'] = function testRouterServiceTransitionToTransitioningBackToPreviouslyVisitedRouteUpdatesLocation(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n return _this4.routerService.transitionTo('parent.child');\n }).then(function () {\n return _this4.routerService.transitionTo('parent.sister');\n }).then(function () {\n return _this4.routerService.transitionTo('parent.brother');\n }).then(function () {\n return _this4.routerService.transitionTo('parent.sister');\n }).then(function () {\n assert.deepEqual(_this4.state, ['/', '/child', '/sister', '/brother', '/sister']);\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with basic route'] = function testRouterServiceTransitionToWithBasicRoute(assert) {\n var _this5 = this;\n\n assert.expect(1);\n\n var componentInstance = void 0;\n\n this.addTemplate('parent.index', '{{foo-bar}}');\n\n this.addComponent('foo-bar', {\n ComponentClass: _emberGlimmer.Component.extend({\n routerService: _emberRuntime.inject.service('router'),\n init: function () {\n this._super();\n componentInstance = this;\n },\n\n actions: {\n transitionToSister: function () {\n (0, _emberMetal.get)(this, 'routerService').transitionTo('parent.sister');\n }\n }\n }),\n template: 'foo-bar'\n });\n\n return this.visit('/').then(function () {\n (0, _emberMetal.run)(function () {\n componentInstance.send('transitionToSister');\n });\n\n assert.equal(_this5.routerService.get('currentRouteName'), 'parent.sister');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with basic route using URL'] = function testRouterServiceTransitionToWithBasicRouteUsingURL(assert) {\n var _this6 = this;\n\n assert.expect(1);\n\n var componentInstance = void 0;\n\n this.addTemplate('parent.index', '{{foo-bar}}');\n\n this.addComponent('foo-bar', {\n ComponentClass: _emberGlimmer.Component.extend({\n routerService: _emberRuntime.inject.service('router'),\n init: function () {\n this._super();\n componentInstance = this;\n },\n\n actions: {\n transitionToSister: function () {\n (0, _emberMetal.get)(this, 'routerService').transitionTo('/sister');\n }\n }\n }),\n template: 'foo-bar'\n });\n\n return this.visit('/').then(function () {\n (0, _emberMetal.run)(function () {\n componentInstance.send('transitionToSister');\n });\n\n assert.equal(_this6.routerService.get('currentRouteName'), 'parent.sister');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with dynamic segment'] = function testRouterServiceTransitionToWithDynamicSegment(assert) {\n var _this7 = this;\n\n assert.expect(3);\n\n var componentInstance = void 0;\n var dynamicModel = { id: 1, contents: 'much dynamicism' };\n\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addTemplate('dynamic', '{{model.contents}}');\n\n this.addComponent('foo-bar', {\n ComponentClass: _emberGlimmer.Component.extend({\n routerService: _emberRuntime.inject.service('router'),\n init: function () {\n this._super();\n componentInstance = this;\n },\n\n actions: {\n transitionToDynamic: function () {\n (0, _emberMetal.get)(this, 'routerService').transitionTo('dynamic', dynamicModel);\n }\n }\n }),\n template: 'foo-bar'\n });\n\n return this.visit('/').then(function () {\n (0, _emberMetal.run)(function () {\n componentInstance.send('transitionToDynamic');\n });\n\n assert.equal(_this7.routerService.get('currentRouteName'), 'dynamic');\n assert.equal(_this7.routerService.get('currentURL'), '/dynamic/1');\n _this7.assertText('much dynamicism');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with dynamic segment and model hook'] = function testRouterServiceTransitionToWithDynamicSegmentAndModelHook(assert) {\n var _this8 = this;\n\n assert.expect(3);\n\n var componentInstance = void 0;\n var dynamicModel = { id: 1, contents: 'much dynamicism' };\n\n this.add('route:dynamic', _emberRouting.Route.extend({\n model: function () {\n return dynamicModel;\n }\n }));\n\n this.addTemplate('parent.index', '{{foo-bar}}');\n this.addTemplate('dynamic', '{{model.contents}}');\n\n this.addComponent('foo-bar', {\n ComponentClass: _emberGlimmer.Component.extend({\n routerService: _emberRuntime.inject.service('router'),\n init: function () {\n this._super();\n componentInstance = this;\n },\n\n actions: {\n transitionToDynamic: function () {\n (0, _emberMetal.get)(this, 'routerService').transitionTo('dynamic', 1);\n }\n }\n }),\n template: 'foo-bar'\n });\n\n return this.visit('/').then(function () {\n (0, _emberMetal.run)(function () {\n componentInstance.send('transitionToDynamic');\n });\n\n assert.equal(_this8.routerService.get('currentRouteName'), 'dynamic');\n assert.equal(_this8.routerService.get('currentURL'), '/dynamic/1');\n _this8.assertText('much dynamicism');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with basic query params does not remove query param defaults'] = function testRouterServiceTransitionToWithBasicQueryParamsDoesNotRemoveQueryParamDefaults(assert) {\n var _this9 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n return this.visit('/').then(function () {\n return _this9.routerService.transitionTo('parent.child', queryParams);\n }).then(function () {\n assert.equal(_this9.routerService.get('currentURL'), '/child?sort=ASC');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo passing only queryParams works'] = function testRouterServiceTransitionToPassingOnlyQueryParamsWorks(assert) {\n var _this10 = this;\n\n assert.expect(2);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort']\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'DESC' });\n\n return this.visit('/').then(function () {\n return _this10.routerService.transitionTo('parent.child');\n }).then(function () {\n assert.equal(_this10.routerService.get('currentURL'), '/child');\n }).then(function () {\n return _this10.routerService.transitionTo(queryParams);\n }).then(function () {\n assert.equal(_this10.routerService.get('currentURL'), '/child?sort=DESC');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with unspecified query params'] = function testRouterServiceTransitionToWithUnspecifiedQueryParams(assert) {\n var _this11 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort', 'page', 'category', 'extra'],\n sort: 'ASC',\n page: null,\n category: undefined\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n return this.visit('/').then(function () {\n return _this11.routerService.transitionTo('parent.child', queryParams);\n }).then(function () {\n assert.equal(_this11.routerService.get('currentURL'), '/child?sort=ASC');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with aliased query params uses the original provided key'] = function testRouterServiceTransitionToWithAliasedQueryParamsUsesTheOriginalProvidedKey(assert) {\n var _this12 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: {\n 'cont_sort': 'url_sort'\n },\n cont_sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ url_sort: 'ASC' });\n\n return this.visit('/').then(function () {\n return _this12.routerService.transitionTo('parent.child', queryParams);\n }).then(function () {\n assert.equal(_this12.routerService.get('currentURL'), '/child?url_sort=ASC');\n });\n };\n\n _class.prototype['@test RouterService#transitionTo with aliased query params uses the original provided key when controller property name'] = function testRouterServiceTransitionToWithAliasedQueryParamsUsesTheOriginalProvidedKeyWhenControllerPropertyName(assert) {\n var _this13 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: {\n 'cont_sort': 'url_sort'\n },\n cont_sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ cont_sort: 'ASC' });\n\n return this.visit('/').then(function () {\n expectAssertion(function () {\n return _this13.routerService.transitionTo('parent.child', queryParams);\n }, 'You passed the `cont_sort` query parameter during a transition into parent.child, please update to url_sort');\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'routerOptions',\n get: function () {\n return {\n location: 'test'\n };\n }\n }]);\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/transitionTo_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/transitionTo_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/router_service_test/urlFor_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'ember-metal', 'internal-test-helpers', 'ember/features'], function (_emberBabel, _emberRuntime, _emberRouting, _emberMetal, _internalTestHelpers, _features) {\n 'use strict';\n\n function setupController(app, name) {\n var controllerName = _emberRuntime.String.capitalize(name) + 'Controller';\n\n Object.defineProperty(app, controllerName, {\n get: function () {\n throw new Error('Generating a URL should not require instantiation of a ' + controllerName + '.');\n }\n });\n }\n\n if (_features.EMBER_ROUTING_ROUTER_SERVICE) {\n (0, _internalTestHelpers.moduleFor)('Router Service - urlFor', function (_RouterTestCase) {\n (0, _emberBabel.inherits)(_class, _RouterTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _RouterTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route'] = function testRouterServiceUrlForReturnsURLForSimpleRoute(assert) {\n var _this2 = this;\n\n assert.expect(1);\n\n return this.visit('/').then(function () {\n var expectedURL = _this2.routerService.urlFor('parent.child');\n\n assert.equal('/child', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with dynamic segments'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithDynamicSegments(assert) {\n var _this3 = this;\n\n assert.expect(1);\n\n setupController(this.application, 'dynamic');\n\n var dynamicModel = { id: 1, contents: 'much dynamicism' };\n\n return this.visit('/').then(function () {\n var expectedURL = _this3.routerService.urlFor('dynamic', dynamicModel);\n\n assert.equal('/dynamic/1', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with basic query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithBasicQueryParams(assert) {\n var _this4 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: 'bar' });\n\n return this.visit('/').then(function () {\n var expectedURL = _this4.routerService.urlFor('parent.child', queryParams);\n\n assert.equal('/child?foo=bar', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with basic query params and default value'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithBasicQueryParamsAndDefaultValue(assert) {\n var _this5 = this;\n\n assert.expect(1);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort'],\n sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'ASC' });\n\n return this.visit('/').then(function () {\n var expectedURL = _this5.routerService.urlFor('parent.child', queryParams);\n\n assert.equal('/child?sort=ASC', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with basic query params and default value with stickyness'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithBasicQueryParamsAndDefaultValueWithStickyness(assert) {\n var _this6 = this;\n\n assert.expect(2);\n\n this.add('controller:parent.child', _emberRuntime.Controller.extend({\n queryParams: ['sort', 'foo'],\n sort: 'ASC'\n }));\n\n var queryParams = this.buildQueryParams({ sort: 'DESC' });\n\n return this.visit('/child/?sort=DESC').then(function () {\n var controller = _this6.applicationInstance.lookup('controller:parent.child');\n assert.equal((0, _emberMetal.get)(controller, 'sort'), 'DESC', 'sticky is set');\n\n var queryParams = _this6.buildQueryParams({ foo: 'derp' });\n var actual = _this6.routerService.urlFor('parent.child', queryParams);\n\n assert.equal(actual, '/child?foo=derp', 'does not use \"stickiness\"');\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with array as query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithArrayAsQueryParams(assert) {\n var _this7 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ selectedItems: ['a', 'b', 'c'] });\n\n return this.visit('/').then(function () {\n var expectedURL = _this7.routerService.urlFor('parent.child', queryParams);\n\n assert.equal('/child?selectedItems[]=a&selectedItems[]=b&selectedItems[]=c', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with null query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithNullQueryParams(assert) {\n var _this8 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: null });\n\n return this.visit('/').then(function () {\n var expectedURL = _this8.routerService.urlFor('parent.child', queryParams);\n\n assert.equal('/child', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with undefined query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithUndefinedQueryParams(assert) {\n var _this9 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: undefined });\n\n return this.visit('/').then(function () {\n var expectedURL = _this9.routerService.urlFor('parent.child', queryParams);\n\n assert.equal('/child', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with dynamic segments and basic query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithDynamicSegmentsAndBasicQueryParams(assert) {\n var _this10 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: 'bar' });\n\n return this.visit('/').then(function () {\n var expectedURL = _this10.routerService.urlFor('dynamic', { id: 1 }, queryParams);\n\n assert.equal('/dynamic/1?foo=bar', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with dynamic segments and array as query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithDynamicSegmentsAndArrayAsQueryParams(assert) {\n var _this11 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ selectedItems: ['a', 'b', 'c'] });\n\n return this.visit('/').then(function () {\n var expectedURL = _this11.routerService.urlFor('dynamic', { id: 1 }, queryParams);\n\n assert.equal('/dynamic/1?selectedItems[]=a&selectedItems[]=b&selectedItems[]=c', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with dynamic segments and null query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithDynamicSegmentsAndNullQueryParams(assert) {\n var _this12 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: null });\n\n return this.visit('/').then(function () {\n var expectedURL = _this12.routerService.urlFor('dynamic', { id: 1 }, queryParams);\n\n assert.equal('/dynamic/1', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor returns URL for simple route with dynamic segments and undefined query params'] = function testRouterServiceUrlForReturnsURLForSimpleRouteWithDynamicSegmentsAndUndefinedQueryParams(assert) {\n var _this13 = this;\n\n assert.expect(1);\n\n var queryParams = this.buildQueryParams({ foo: undefined });\n\n return this.visit('/').then(function () {\n var expectedURL = _this13.routerService.urlFor('dynamic', { id: 1 }, queryParams);\n\n assert.equal('/dynamic/1', expectedURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor correctly transitions to route via generated path'] = function testRouterServiceUrlForCorrectlyTransitionsToRouteViaGeneratedPath(assert) {\n var _this14 = this;\n\n assert.expect(1);\n\n var expectedURL = void 0;\n\n return this.visit('/').then(function () {\n expectedURL = _this14.routerService.urlFor('parent.child');\n\n return _this14.routerService.transitionTo(expectedURL);\n }).then(function () {\n assert.equal(expectedURL, _this14.routerService.get('currentURL'));\n });\n };\n\n _class.prototype['@test RouterService#urlFor correctly transitions to route via generated path with dynamic segments'] = function testRouterServiceUrlForCorrectlyTransitionsToRouteViaGeneratedPathWithDynamicSegments(assert) {\n var _this15 = this;\n\n assert.expect(1);\n\n var expectedURL = void 0;\n var dynamicModel = { id: 1 };\n\n this.add('route:dynamic', _emberRouting.Route.extend({\n model: function () {\n return dynamicModel;\n }\n }));\n\n return this.visit('/').then(function () {\n expectedURL = _this15.routerService.urlFor('dynamic', dynamicModel);\n\n return _this15.routerService.transitionTo(expectedURL);\n }).then(function () {\n assert.equal(expectedURL, _this15.routerService.get('currentURL'));\n });\n };\n\n _class.prototype['@test RouterService#urlFor correctly transitions to route via generated path with query params'] = function testRouterServiceUrlForCorrectlyTransitionsToRouteViaGeneratedPathWithQueryParams(assert) {\n var _this16 = this;\n\n assert.expect(1);\n\n var expectedURL = void 0;\n var actualURL = void 0;\n var queryParams = this.buildQueryParams({ foo: 'bar' });\n\n return this.visit('/').then(function () {\n expectedURL = _this16.routerService.urlFor('parent.child', queryParams);\n\n return _this16.routerService.transitionTo(expectedURL);\n }).then(function () {\n actualURL = _this16.routerService.get('currentURL') + '?foo=bar';\n\n assert.equal(expectedURL, actualURL);\n });\n };\n\n _class.prototype['@test RouterService#urlFor correctly transitions to route via generated path with dynamic segments and query params'] = function testRouterServiceUrlForCorrectlyTransitionsToRouteViaGeneratedPathWithDynamicSegmentsAndQueryParams(assert) {\n var _this17 = this;\n\n assert.expect(1);\n\n var expectedURL = void 0;\n var actualURL = void 0;\n var queryParams = this.buildQueryParams({ foo: 'bar' });\n var dynamicModel = { id: 1 };\n\n this.add('route:dynamic', _emberRouting.Route.extend({\n model: function () {\n return dynamicModel;\n }\n }));\n\n return this.visit('/').then(function () {\n expectedURL = _this17.routerService.urlFor('dynamic', dynamicModel, queryParams);\n\n return _this17.routerService.transitionTo(expectedURL);\n }).then(function () {\n actualURL = _this17.routerService.get('currentURL') + '?foo=bar';\n\n assert.equal(expectedURL, actualURL);\n });\n };\n\n return _class;\n }(_internalTestHelpers.RouterTestCase));\n }\n});","QUnit.module('ESLint | ember/tests/routing/router_service_test/urlFor_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/router_service_test/urlFor_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/substates_test', ['ember-babel', 'ember-runtime', 'ember-routing', 'internal-test-helpers'], function (_emberBabel, _emberRuntime, _emberRouting, _internalTestHelpers) {\n 'use strict';\n\n var counter = void 0;\n\n function step(expectedValue, description) {\n equal(counter, expectedValue, 'Step ' + expectedValue + ': ' + description);\n counter++;\n }\n\n (0, _internalTestHelpers.moduleFor)('Loading/Error Substates', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n counter = 1;\n\n _this.addTemplate('application', '
    {{outlet}}
    ');\n _this.addTemplate('index', 'INDEX');\n return _this;\n }\n\n _class.prototype.getController = function getController(name) {\n return this.applicationInstance.lookup('controller:' + name);\n };\n\n _class.prototype['@test Slow promise from a child route of application enters nested loading state'] = function testSlowPromiseFromAChildRouteOfApplicationEntersNestedLoadingState(assert) {\n var _this2 = this;\n\n var turtleDeferred = _emberRuntime.RSVP.defer();\n\n this.router.map(function () {\n this.route('turtle');\n });\n\n this.add('route:application', _emberRouting.Route.extend({\n setupController: function () {\n step(2, 'ApplicationRoute#setupController');\n }\n }));\n\n this.add('route:turtle', _emberRouting.Route.extend({\n model: function () {\n step(1, 'TurtleRoute#model');\n return turtleDeferred.promise;\n }\n }));\n this.addTemplate('turtle', 'TURTLE');\n this.addTemplate('loading', 'LOADING');\n\n var promise = this.visit('/turtle').then(function () {\n text = _this2.$('#app').text();\n assert.equal(text, 'TURTLE', 'turtle template has loaded and replaced the loading template');\n });\n\n var text = this.$('#app').text();\n assert.equal(text, 'LOADING', 'The Loading template is nested in application template\\'s outlet');\n\n turtleDeferred.resolve();\n return promise;\n };\n\n _class.prototype['@test Slow promises returned from ApplicationRoute#model don\\'t enter LoadingRoute'] = function (assert) {\n var _this3 = this;\n\n var appDeferred = _emberRuntime.RSVP.defer();\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n return appDeferred.promise;\n }\n }));\n this.add('route:loading', _emberRouting.Route.extend({\n setupController: function () {\n ok(false, 'shouldn\\'t get here');\n }\n }));\n\n var promise = this.visit('/').then(function () {\n text = _this3.$('#app').text();\n\n assert.equal(text, 'INDEX', 'index template has been rendered');\n });\n\n var text = this.$('#app').text();\n\n assert.equal(text, '', 'nothing has been rendered yet');\n appDeferred.resolve();\n\n return promise;\n };\n\n _class.prototype['@test Don\\'t enter loading route unless either route or template defined'] = function (assert) {\n var _this4 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n\n this.router.map(function () {\n this.route('dummy');\n });\n this.add('route:dummy', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n this.addTemplate('dummy', 'DUMMY');\n\n return this.visit('/').then(function () {\n var promise = _this4.visit('/dummy').then(function () {\n var text = _this4.$('#app').text();\n\n assert.equal(text, 'DUMMY', 'dummy template has been rendered');\n });\n\n assert.ok(_this4.currentPath !== 'loading', '\\n loading state not entered\\n ');\n deferred.resolve();\n\n return promise;\n });\n };\n\n _class.prototype['@test Enter loading route only if loadingRoute is defined'] = function testEnterLoadingRouteOnlyIfLoadingRouteIsDefined(assert) {\n var _this5 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n\n this.router.map(function () {\n this.route('dummy');\n });\n\n this.add('route:dummy', _emberRouting.Route.extend({\n model: function () {\n step(1, 'DummyRoute#model');\n return deferred.promise;\n }\n }));\n this.add('route:loading', _emberRouting.Route.extend({\n setupController: function () {\n step(2, 'LoadingRoute#setupController');\n }\n }));\n this.addTemplate('dummy', 'DUMMY');\n\n return this.visit('/').then(function () {\n var promise = _this5.visit('/dummy').then(function () {\n var text = _this5.$('#app').text();\n\n assert.equal(text, 'DUMMY', 'dummy template has been rendered');\n });\n\n assert.equal(_this5.currentPath, 'loading', 'loading state entered');\n deferred.resolve();\n\n return promise;\n });\n };\n\n _class.prototype['@test Slow promises returned from ApplicationRoute#model enter ApplicationLoadingRoute if present'] = function testSlowPromisesReturnedFromApplicationRouteModelEnterApplicationLoadingRouteIfPresent(assert) {\n var _this6 = this;\n\n var appDeferred = _emberRuntime.RSVP.defer();\n\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n return appDeferred.promise;\n }\n }));\n var loadingRouteEntered = false;\n this.add('route:application_loading', _emberRouting.Route.extend({\n setupController: function () {\n loadingRouteEntered = true;\n }\n }));\n\n var promise = this.visit('/').then(function () {\n assert.equal(_this6.$('#app').text(), 'INDEX', 'index route loaded');\n });\n assert.ok(loadingRouteEntered, 'ApplicationLoadingRoute was entered');\n appDeferred.resolve();\n\n return promise;\n };\n\n _class.prototype['@test Slow promises returned from ApplicationRoute#model enter application_loading if template present'] = function testSlowPromisesReturnedFromApplicationRouteModelEnterApplication_loadingIfTemplatePresent(assert) {\n var _this7 = this;\n\n var appDeferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('application_loading', '\\n
    TOPLEVEL LOADING
    \\n ');\n this.add('route:application', _emberRouting.Route.extend({\n model: function () {\n return appDeferred.promise;\n }\n }));\n\n var promise = this.visit('/').then(function () {\n var length = _this7.$('#toplevel-loading').length;\n text = _this7.$('#app').text();\n\n assert.equal(length, 0, 'top-level loading view has been entirely removed from the DOM');\n assert.equal(text, 'INDEX', 'index has fully rendered');\n });\n var text = this.$('#toplevel-loading').text();\n\n assert.equal(text, 'TOPLEVEL LOADING', 'still loading the top level');\n appDeferred.resolve();\n\n return promise;\n };\n\n _class.prototype['@test Prioritized substate entry works with preserved-namespace nested routes'] = function testPrioritizedSubstateEntryWorksWithPreservedNamespaceNestedRoutes(assert) {\n var _this8 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('foo.bar_loading', 'FOOBAR LOADING');\n this.addTemplate('foo.bar.index', 'YAY');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar', { path: '/bar' }, function () {});\n });\n });\n\n this.add('route:foo.bar', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n\n return this.visit('/').then(function () {\n var promise = _this8.visit('/foo/bar').then(function () {\n text = _this8.$('#app').text();\n\n assert.equal(text, 'YAY', 'foo.bar.index fully loaded');\n });\n var text = _this8.$('#app').text();\n\n assert.equal(text, 'FOOBAR LOADING', 'foo.bar_loading was entered (as opposed to something like foo/foo/bar_loading)');\n deferred.resolve();\n\n return promise;\n });\n };\n\n _class.prototype['@test Prioritized substate entry works with reset-namespace nested routes'] = function testPrioritizedSubstateEntryWorksWithResetNamespaceNestedRoutes(assert) {\n var _this9 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('bar_loading', 'BAR LOADING');\n this.addTemplate('bar.index', 'YAY');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar', { path: '/bar', resetNamespace: true }, function () {});\n });\n });\n\n this.add('route:bar', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n\n return this.visit('/').then(function () {\n var promise = _this9.visit('/foo/bar').then(function () {\n text = _this9.$('#app').text();\n\n assert.equal(text, 'YAY', 'bar.index fully loaded');\n });\n\n var text = _this9.$('#app').text();\n\n assert.equal(text, 'BAR LOADING', 'foo.bar_loading was entered (as opposed to something likefoo/foo/bar_loading)');\n deferred.resolve();\n\n return promise;\n });\n };\n\n _class.prototype['@test Prioritized loading substate entry works with preserved-namespace nested routes'] = function testPrioritizedLoadingSubstateEntryWorksWithPreservedNamespaceNestedRoutes(assert) {\n var _this10 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('foo.bar_loading', 'FOOBAR LOADING');\n this.addTemplate('foo.bar', 'YAY');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n\n this.add('route:foo.bar', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n\n var promise = this.visit('/foo/bar').then(function () {\n text = _this10.$('#app').text();\n\n assert.equal(text, 'YAY', 'foo.bar has rendered');\n });\n var text = this.$('#app').text();\n\n assert.equal(text, 'FOOBAR LOADING', 'foo.bar_loading was entered (as opposed to something like foo/foo/bar_loading)');\n deferred.resolve();\n\n return promise;\n };\n\n _class.prototype['@test Prioritized error substate entry works with preserved-namespaec nested routes'] = function testPrioritizedErrorSubstateEntryWorksWithPreservedNamespaecNestedRoutes(assert) {\n var _this11 = this;\n\n this.addTemplate('foo.bar_error', 'FOOBAR ERROR: {{model.msg}}');\n this.addTemplate('foo.bar', 'YAY');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n\n this.add('route:foo.bar', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n }\n }));\n\n return this.visit('/').then(function () {\n return _this11.visit('/foo/bar').then(function () {\n\n var text = _this11.$('#app').text();\n assert.equal(text, 'FOOBAR ERROR: did it broke?', 'foo.bar_error was entered (as opposed to something like foo/foo/bar_error)');\n });\n });\n };\n\n _class.prototype['@test Prioritized loading substate entry works with auto-generated index routes'] = function testPrioritizedLoadingSubstateEntryWorksWithAutoGeneratedIndexRoutes(assert) {\n var _this12 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n this.addTemplate('foo.index_loading', 'FOO LOADING');\n this.addTemplate('foo.index', 'YAY');\n this.addTemplate('foo', '{{outlet}}');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n\n this.add('route:foo.index', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n this.add('route:foo', _emberRouting.Route.extend({\n model: function () {\n return true;\n }\n }));\n\n var promise = this.visit('/foo').then(function () {\n text = _this12.$('#app').text();\n\n assert.equal(text, 'YAY', 'foo.index was rendered');\n });\n var text = this.$('#app').text();\n assert.equal(text, 'FOO LOADING', 'foo.index_loading was entered');\n\n deferred.resolve();\n\n return promise;\n };\n\n _class.prototype['@test Prioritized error substate entry works with auto-generated index routes'] = function testPrioritizedErrorSubstateEntryWorksWithAutoGeneratedIndexRoutes(assert) {\n var _this13 = this;\n\n this.addTemplate('foo.index_error', 'FOO ERROR: {{model.msg}}');\n this.addTemplate('foo.index', 'YAY');\n this.addTemplate('foo', '{{outlet}}');\n\n this.router.map(function () {\n this.route('foo', function () {\n this.route('bar');\n });\n });\n\n this.add('route:foo.index', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n }\n }));\n this.add('route:foo', _emberRouting.Route.extend({\n model: function () {\n return true;\n }\n }));\n\n return this.visit('/').then(function () {\n\n return _this13.visit('/foo').then(function () {\n var text = _this13.$('#app').text();\n\n assert.equal(text, 'FOO ERROR: did it broke?', 'foo.index_error was entered');\n });\n });\n };\n\n (0, _emberBabel.createClass)(_class, [{\n key: 'currentPath',\n get: function () {\n return this.getController('application').get('currentPath');\n }\n }]);\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Loading/Error Substates - globals mode app', function (_AutobootApplicationT) {\n (0, _emberBabel.inherits)(_class2, _AutobootApplicationT);\n\n function _class2() {\n (0, _emberBabel.classCallCheck)(this, _class2);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AutobootApplicationT.apply(this, arguments));\n }\n\n _class2.prototype['@test Rejected promises returned from ApplicationRoute transition into top-level application_error'] = function testRejectedPromisesReturnedFromApplicationRouteTransitionIntoTopLevelApplication_error(assert) {\n var _this15 = this;\n\n var reject = true;\n\n this.runTask(function () {\n _this15.createApplication();\n _this15.addTemplate('index', '
    INDEX
    ');\n _this15.add('route:application', _emberRouting.Route.extend({\n init: function () {\n this._super.apply(this, arguments);\n },\n model: function () {\n if (reject) {\n return _emberRuntime.RSVP.reject({ msg: 'BAD NEWS BEARS' });\n } else {\n return {};\n }\n }\n }));\n\n _this15.addTemplate('application_error', '\\n

    TOPLEVEL ERROR: {{model.msg}}

    \\n ');\n });\n\n var text = this.$('#toplevel-error').text();\n assert.equal(text, 'TOPLEVEL ERROR: BAD NEWS BEARS', 'toplevel error rendered');\n\n reject = false;\n\n return this.visit('/').then(function () {\n var text = _this15.$('#app').text();\n\n assert.equal(text, 'INDEX', 'the index route resolved');\n });\n };\n\n return _class2;\n }(_internalTestHelpers.AutobootApplicationTestCase));\n\n (0, _internalTestHelpers.moduleFor)('Loading/Error Substates - nested routes', function (_ApplicationTestCase2) {\n (0, _emberBabel.inherits)(_class3, _ApplicationTestCase2);\n\n function _class3() {\n (0, _emberBabel.classCallCheck)(this, _class3);\n\n var _this16 = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase2.call(this));\n\n counter = 1;\n\n _this16.addTemplate('application', '
    {{outlet}}
    ');\n _this16.addTemplate('index', 'INDEX');\n _this16.addTemplate('grandma', 'GRANDMA {{outlet}}');\n _this16.addTemplate('mom', 'MOM');\n\n _this16.router.map(function () {\n this.route('grandma', function () {\n this.route('mom', { resetNamespace: true }, function () {\n this.route('sally');\n this.route('this-route-throws');\n });\n this.route('puppies');\n });\n this.route('memere', { path: '/memere/:seg' }, function () {});\n });\n\n _this16.visit('/');\n return _this16;\n }\n\n _class3.prototype.getController = function getController(name) {\n return this.applicationInstance.lookup('controller:' + name);\n };\n\n _class3.prototype['@test ApplicationRoute#currentPath reflects loading state path'] = function testApplicationRouteCurrentPathReflectsLoadingStatePath(assert) {\n var _this17 = this;\n\n var momDeferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('grandma.loading', 'GRANDMALOADING');\n\n this.add('route:mom', _emberRouting.Route.extend({\n model: function () {\n return momDeferred.promise;\n }\n }));\n\n var promise = this.visit('/grandma/mom').then(function () {\n text = _this17.$('#app').text();\n\n assert.equal(text, 'GRANDMA MOM', 'Grandma.mom loaded text is displayed');\n assert.equal(_this17.currentPath, 'grandma.mom.index', 'currentPath reflects final state');\n });\n var text = this.$('#app').text();\n\n assert.equal(text, 'GRANDMA GRANDMALOADING', 'Grandma.mom loading text displayed');\n\n assert.equal(this.currentPath, 'grandma.loading', 'currentPath reflects loading state');\n\n momDeferred.resolve();\n\n return promise;\n };\n\n _class3.prototype['@test Loading actions bubble to root but don\\'t enter substates above pivot '] = function (assert) {\n var _this18 = this;\n\n var sallyDeferred = _emberRuntime.RSVP.defer();\n var puppiesDeferred = _emberRuntime.RSVP.defer();\n\n this.add('route:application', _emberRouting.Route.extend({\n actions: {\n loading: function (transition, route) {\n assert.ok(true, 'loading action received on ApplicationRoute');\n }\n }\n }));\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n return sallyDeferred.promise;\n }\n }));\n\n this.add('route:grandma.puppies', _emberRouting.Route.extend({\n model: function () {\n return puppiesDeferred.promise;\n }\n }));\n\n var promise = this.visit('/grandma/mom/sally');\n assert.equal(this.currentPath, 'index', 'Initial route fully loaded');\n\n sallyDeferred.resolve();\n\n promise.then(function () {\n assert.equal(_this18.currentPath, 'grandma.mom.sally', 'transition completed');\n\n var visit = _this18.visit('/grandma/puppies');\n assert.equal(_this18.currentPath, 'grandma.mom.sally', 'still in initial state because the only loading state is above the pivot route');\n\n return visit;\n }).then(function () {\n _this18.runTask(function () {\n return puppiesDeferred.resolve();\n });\n\n assert.equal(_this18.currentPath, 'grandma.puppies', 'Finished transition');\n });\n\n return promise;\n };\n\n _class3.prototype['@test Default error event moves into nested route'] = function testDefaultErrorEventMovesIntoNestedRoute(assert) {\n var _this19 = this;\n\n this.addTemplate('grandma.error', 'ERROR: {{model.msg}}');\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function () {\n step(2, 'MomSallyRoute#actions.error');\n return true;\n }\n }\n }));\n\n return this.visit('/grandma/mom/sally').then(function () {\n step(3, 'App finished loading');\n\n var text = _this19.$('#app').text();\n\n assert.equal(text, 'GRANDMA ERROR: did it broke?', 'error bubbles');\n assert.equal(_this19.currentPath, 'grandma.error', 'Initial route fully loaded');\n });\n };\n\n _class3.prototype['@test Non-bubbled errors that re-throw aren\\'t swallowed'] = function (assert) {\n var _this20 = this;\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n // returns undefined which is falsey\n throw err;\n }\n }\n }));\n\n assert.throws(function () {\n _this20.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, 'it broke');\n };\n\n _class3.prototype['@test Handled errors that re-throw aren\\'t swallowed'] = function (assert) {\n var _this21 = this;\n\n var handledError = void 0;\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n step(2, 'MomSallyRoute#actions.error');\n handledError = err;\n this.transitionTo('mom.this-route-throws');\n\n return false;\n }\n }\n }));\n\n this.add('route:mom.this-route-throws', _emberRouting.Route.extend({\n model: function () {\n step(3, 'MomThisRouteThrows#model');\n throw handledError;\n }\n }));\n\n assert.throws(function () {\n _this21.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, 'it broke');\n };\n\n _class3.prototype['@test errors that are bubbled are thrown at a higher level if not handled'] = function testErrorsThatAreBubbledAreThrownAtAHigherLevelIfNotHandled(assert) {\n var _this22 = this;\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n step(2, 'MomSallyRoute#actions.error');\n return true;\n }\n }\n }));\n\n assert.throws(function () {\n _this22.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg == \"did it broke?\";\n }, 'Correct error was thrown');\n };\n\n _class3.prototype['@test Handled errors that are thrown through rejection aren\\'t swallowed'] = function (assert) {\n var _this23 = this;\n\n var handledError = void 0;\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n step(2, 'MomSallyRoute#actions.error');\n handledError = err;\n this.transitionTo('mom.this-route-throws');\n\n return false;\n }\n }\n }));\n\n this.add('route:mom.this-route-throws', _emberRouting.Route.extend({\n model: function () {\n step(3, 'MomThisRouteThrows#model');\n return _emberRuntime.RSVP.reject(handledError);\n }\n }));\n\n assert.throws(function () {\n _this23.visit('/grandma/mom/sally');\n }, function (err) {\n return err.msg === 'did it broke?';\n }, 'it broke');\n };\n\n _class3.prototype['@test Default error events move into nested route, prioritizing more specifically named error routes - NEW'] = function testDefaultErrorEventsMoveIntoNestedRoutePrioritizingMoreSpecificallyNamedErrorRoutesNEW(assert) {\n var _this24 = this;\n\n this.addTemplate('grandma.error', 'ERROR: {{model.msg}}');\n this.addTemplate('mom_error', 'MOM ERROR: {{model.msg}}');\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function () {\n step(2, 'MomSallyRoute#actions.error');\n return true;\n }\n }\n }));\n\n return this.visit('/grandma/mom/sally').then(function () {\n step(3, 'Application finished booting');\n\n assert.equal(_this24.$('#app').text(), 'GRANDMA MOM ERROR: did it broke?', 'the more specifically named mome error substate was entered over the other error route');\n\n assert.equal(_this24.currentPath, 'grandma.mom_error', 'Initial route fully loaded');\n });\n };\n\n _class3.prototype['@test Slow promises waterfall on startup'] = function testSlowPromisesWaterfallOnStartup(assert) {\n var _this25 = this;\n\n var grandmaDeferred = _emberRuntime.RSVP.defer();\n var sallyDeferred = _emberRuntime.RSVP.defer();\n\n this.addTemplate('loading', 'LOADING');\n this.addTemplate('mom', 'MOM {{outlet}}');\n this.addTemplate('mom.loading', 'MOMLOADING');\n this.addTemplate('mom.sally', 'SALLY');\n\n this.add('route:grandma', _emberRouting.Route.extend({\n model: function () {\n step(1, 'GrandmaRoute#model');\n return grandmaDeferred.promise;\n }\n }));\n\n this.add('route:mom', _emberRouting.Route.extend({\n model: function () {\n step(2, 'MomRoute#model');\n return {};\n }\n }));\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(3, 'SallyRoute#model');\n return sallyDeferred.promise;\n },\n setupController: function () {\n step(4, 'SallyRoute#setupController');\n }\n }));\n\n var promise = this.visit('/grandma/mom/sally').then(function () {\n text = _this25.$('#app').text();\n\n assert.equal(text, 'GRANDMA MOM SALLY', 'Sally template displayed');\n });\n var text = this.$('#app').text();\n\n assert.equal(text, 'LOADING', 'The loading template is nested in application template\\'s outlet');\n\n this.runTask(function () {\n return grandmaDeferred.resolve();\n });\n text = this.$('#app').text();\n\n assert.equal(text, 'GRANDMA MOM MOMLOADING', 'Mom\\'s child loading route is displayed due to sally\\'s slow promise');\n\n sallyDeferred.resolve();\n\n return promise;\n };\n\n _class3.prototype['@test Enter child loading state of pivot route'] = function testEnterChildLoadingStateOfPivotRoute(assert) {\n var _this26 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n this.addTemplate('grandma.loading', 'GMONEYLOADING');\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n setupController: function () {\n step(1, 'SallyRoute#setupController');\n }\n }));\n\n this.add('route:grandma.puppies', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n\n return this.visit('/grandma/mom/sally').then(function () {\n assert.equal(_this26.currentPath, 'grandma.mom.sally', 'Initial route fully loaded');\n\n var promise = _this26.visit('/grandma/puppies').then(function () {\n assert.equal(_this26.currentPath, 'grandma.puppies', 'Finished transition');\n });\n\n assert.equal(_this26.currentPath, 'grandma.loading', 'in pivot route\\'s child loading state');\n deferred.resolve();\n\n return promise;\n });\n };\n\n _class3.prototype['@test Error events that aren\\'t bubbled don\\'t throw application assertions'] = function (assert) {\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n step(2, 'MomSallyRoute#actions.error');\n assert.equal(err.msg, 'did it broke?', 'it didn\\'t break');\n return false;\n }\n }\n }));\n\n return this.visit('/grandma/mom/sally');\n };\n\n _class3.prototype['@test Handled errors that bubble can be handled at a higher level'] = function testHandledErrorsThatBubbleCanBeHandledAtAHigherLevel(assert) {\n var handledError = void 0;\n\n this.add('route:mom', _emberRouting.Route.extend({\n actions: {\n error: function (err) {\n step(3, 'MomRoute#actions.error');\n assert.equal(err, handledError, 'error handled and rebubbled is handleable at higher route');\n }\n }\n }));\n\n this.add('route:mom.sally', _emberRouting.Route.extend({\n model: function () {\n step(1, 'MomSallyRoute#model');\n return _emberRuntime.RSVP.reject({\n msg: 'did it broke?'\n });\n },\n\n actions: {\n error: function (err) {\n step(2, 'MomSallyRoute#actions.error');\n handledError = err;\n\n return true;\n }\n }\n }));\n\n return this.visit('/grandma/mom/sally');\n };\n\n _class3.prototype['@test Setting a query param during a slow transition should work'] = function testSettingAQueryParamDuringASlowTransitionShouldWork(assert) {\n var _this27 = this;\n\n var deferred = _emberRuntime.RSVP.defer();\n this.addTemplate('memere.loading', 'MMONEYLOADING');\n\n this.add('route:grandma', _emberRouting.Route.extend({\n beforeModel: function () {\n this.transitionTo('memere', 1);\n }\n }));\n\n this.add('route:memere', _emberRouting.Route.extend({\n queryParams: {\n test: { defaultValue: 1 }\n }\n }));\n\n this.add('route:memere.index', _emberRouting.Route.extend({\n model: function () {\n return deferred.promise;\n }\n }));\n\n var promise = this.visit('/grandma').then(function () {\n assert.equal(_this27.currentPath, 'memere.index', 'Transition should be complete');\n });\n var memereController = this.getController('memere');\n\n assert.equal(this.currentPath, 'memere.loading', 'Initial route should be loading');\n\n memereController.set('test', 3);\n\n assert.equal(this.currentPath, 'memere.loading', 'Initial route should still be loading');\n\n assert.equal(memereController.get('test'), 3, 'Controller query param value should have changed');\n deferred.resolve();\n\n return promise;\n };\n\n (0, _emberBabel.createClass)(_class3, [{\n key: 'currentPath',\n get: function () {\n return this.getController('application').get('currentPath');\n }\n }]);\n return _class3;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/substates_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/substates_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/routing/toplevel_dom_test', ['ember-babel', 'internal-test-helpers'], function (_emberBabel, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('Top Level DOM Structure', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n return (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.apply(this, arguments));\n }\n\n _class.prototype['@test Topmost template always get an element'] = function testTopmostTemplateAlwaysGetAnElement(assert) {\n var _this2 = this;\n\n this.addTemplate('application', 'hello world');\n\n return this.visit('/').then(function () {\n assert.equal(_this2.$('> .ember-view').text(), 'hello world');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/routing/toplevel_dom_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/routing/toplevel_dom_test.js should pass ESLint\\n\\n');\n});\n","enifed('ember/tests/view_instrumentation_test', ['ember-babel', 'ember-metal', 'internal-test-helpers'], function (_emberBabel, _emberMetal, _internalTestHelpers) {\n 'use strict';\n\n (0, _internalTestHelpers.moduleFor)('View Instrumentation', function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(_class, _ApplicationTestCase);\n\n function _class() {\n (0, _emberBabel.classCallCheck)(this, _class);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.addTemplate('application', '{{outlet}}');\n _this.addTemplate('index', '

    Index

    ');\n _this.addTemplate('posts', '

    Posts

    ');\n\n _this.router.map(function () {\n this.route('posts');\n });\n return _this;\n }\n\n _class.prototype.teardown = function teardown() {\n (0, _emberMetal.instrumentationReset)();\n _ApplicationTestCase.prototype.teardown.call(this);\n };\n\n _class.prototype['@test Nodes without view instances are instrumented'] = function testNodesWithoutViewInstancesAreInstrumented(assert) {\n var _this2 = this;\n\n var called = false;\n\n (0, _emberMetal.instrumentationSubscribe)('render', {\n before: function () {\n called = true;\n },\n after: function () {}\n });\n\n return this.visit('/').then(function () {\n assert.equal(_this2.textValue(), 'Index', 'It rendered the correct template');\n\n assert.ok(called, 'Instrumentation called on first render');\n called = false;\n\n return _this2.visit('/posts');\n }).then(function () {\n assert.equal(_this2.textValue(), 'Posts', 'It rendered the correct template');\n assert.ok(called, 'Instrumentation called on transition to non-view backed route');\n });\n };\n\n return _class;\n }(_internalTestHelpers.ApplicationTestCase));\n});","QUnit.module('ESLint | ember/tests/view_instrumentation_test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'ember/tests/view_instrumentation_test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | error_handler.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'error_handler.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | expand_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'expand_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | external-helpers/lib/external-helpers-dev.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'external-helpers/lib/external-helpers-dev.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | external-helpers/lib/external-helpers-prod.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'external-helpers/lib/external-helpers-prod.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | get_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'get_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | injected_property.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'injected_property.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | instrumentation.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'instrumentation.js should pass ESLint\\n\\n');\n});\n","enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {\n 'use strict';\n\n exports.default = applyMixins;\n\n\n function isGenerator(mixin) {\n return Array.isArray(mixin.cases) && typeof mixin.generate === 'function';\n }\n\n function applyMixins(TestClass) {\n for (var _len = arguments.length, mixins = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n mixins[_key - 1] = arguments[_key];\n }\n\n mixins.forEach(function (mixinOrGenerator) {\n var mixin = void 0;\n\n if (isGenerator(mixinOrGenerator)) {\n var generator = mixinOrGenerator;\n mixin = {};\n\n generator.cases.forEach(function (value, idx) {\n (0, _emberUtils.assign)(mixin, generator.generate(value, idx));\n });\n } else {\n mixin = mixinOrGenerator;\n }\n\n (0, _emberUtils.assign)(TestClass.prototype, mixin);\n });\n\n return TestClass;\n }\n});","enifed('internal-test-helpers/build-owner', ['exports', 'container', 'ember-routing', 'ember-application', 'ember-runtime'], function (exports, _container, _emberRouting, _emberApplication, _emberRuntime) {\n 'use strict';\n\n exports.default = buildOwner;\n function buildOwner() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var ownerOptions = options.ownerOptions || {};\n var resolver = options.resolver;\n var bootOptions = options.bootOptions || {};\n\n var Owner = _emberRuntime.Object.extend(_emberRuntime.RegistryProxyMixin, _emberRuntime.ContainerProxyMixin);\n\n var namespace = _emberRuntime.Object.create({\n Resolver: {\n create: function () {\n return resolver;\n }\n }\n });\n\n var fallbackRegistry = _emberApplication.Application.buildRegistry(namespace);\n fallbackRegistry.register('router:main', _emberRouting.Router);\n\n var registry = new _container.Registry({\n fallback: fallbackRegistry\n });\n\n _emberApplication.ApplicationInstance.setupRegistry(registry, bootOptions);\n\n var owner = Owner.create({\n __registry__: registry,\n __container__: null\n }, ownerOptions);\n\n var container = registry.container({ owner: owner });\n owner.__container__ = container;\n\n return owner;\n }\n});","enifed('internal-test-helpers/confirm-export', ['exports', 'require'], function (exports, _require2) {\n 'use strict';\n\n exports.default = confirmExport;\n\n\n function getDescriptor(obj, path) {\n var parts = path.split('.');\n var value = obj;\n for (var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n value = value[part];\n if (!value) {\n return undefined;\n }\n }\n var last = parts[parts.length - 1];\n return Object.getOwnPropertyDescriptor(value, last);\n }\n\n function confirmExport(Ember, assert, path, moduleId, exportName) {\n var desc = getDescriptor(Ember, path);\n assert.ok(desc, 'the property exists on the global');\n\n var mod = (0, _require2.default)(moduleId);\n if (typeof exportName === 'string') {\n assert.equal(desc.value, mod[exportName], 'Ember.' + path + ' is exported correctly');\n assert.notEqual(mod[exportName], undefined, 'Ember.' + path + ' is not `undefined`');\n } else {\n assert.equal(desc.get, mod[exportName.get], 'Ember.' + path + ' getter is exported correctly');\n assert.notEqual(desc.get, undefined, 'Ember.' + path + ' getter is not undefined');\n\n if (exportName.set) {\n assert.equal(desc.set, mod[exportName.set], 'Ember.' + path + ' setter is exported correctly');\n assert.notEqual(desc.set, undefined, 'Ember.' + path + ' setter is not undefined');\n }\n }\n }\n});","enifed('internal-test-helpers/equal-inner-html', ['exports'], function (exports) {\n 'use strict';\n\n exports.default = equalInnerHTML;\n // detect side-effects of cloning svg elements in IE9-11\n var ieSVGInnerHTML = function () {\n if (!document.createElementNS) {\n return false;\n }\n var div = document.createElement('div');\n var node = document.createElementNS('http://www.w3.org/2000/svg', 'svg');\n div.appendChild(node);\n var clone = div.cloneNode(true);\n return clone.innerHTML === '';\n }();\n\n function normalizeInnerHTML(actualHTML) {\n if (ieSVGInnerHTML) {\n // Replace `` with ``, etc.\n // drop namespace attribute\n // replace self-closing elements\n actualHTML = actualHTML.replace(/ xmlns=\"[^\"]+\"/, '').replace(/<([^ >]+) [^\\/>]*\\/>/gi, function (tag, tagName) {\n return tag.slice(0, tag.length - 3) + '>';\n });\n }\n\n return actualHTML;\n }\n\n function equalInnerHTML(fragment, html) {\n var actualHTML = normalizeInnerHTML(fragment.innerHTML);\n QUnit.push(actualHTML === html, actualHTML, html);\n }\n});","enifed('internal-test-helpers/equal-tokens', ['exports', 'simple-html-tokenizer'], function (exports, _simpleHtmlTokenizer) {\n 'use strict';\n\n exports.default = equalTokens;\n\n\n function generateTokens(containerOrHTML) {\n if (typeof containerOrHTML === 'string') {\n return {\n tokens: (0, _simpleHtmlTokenizer.tokenize)(containerOrHTML),\n html: containerOrHTML\n };\n } else {\n return {\n tokens: (0, _simpleHtmlTokenizer.tokenize)(containerOrHTML.innerHTML),\n html: containerOrHTML.innerHTML\n };\n }\n }\n\n function normalizeTokens(tokens) {\n tokens.forEach(function (token) {\n if (token.type === 'StartTag') {\n token.attributes = token.attributes.sort(function (a, b) {\n if (a[0] > b[0]) {\n return 1;\n }\n if (a[0] < b[0]) {\n return -1;\n }\n return 0;\n });\n }\n });\n }\n\n function equalTokens(actualContainer, expectedHTML) {\n var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n var actual = generateTokens(actualContainer);\n var expected = generateTokens(expectedHTML);\n\n normalizeTokens(actual.tokens);\n normalizeTokens(expected.tokens);\n\n var equiv = QUnit.equiv(actual.tokens, expected.tokens);\n\n if (equiv && expected.html !== actual.html) {\n deepEqual(actual.tokens, expected.tokens, message);\n } else {\n QUnit.push(QUnit.equiv(actual.tokens, expected.tokens), actual.html, expected.html, message);\n }\n }\n});","enifed('internal-test-helpers/factory', ['exports'], function (exports) {\n 'use strict';\n\n exports.default = factory;\n function setProperties(object, properties) {\n for (var key in properties) {\n if (properties.hasOwnProperty(key)) {\n object[key] = properties[key];\n }\n }\n }\n\n var guids = 0;\n\n function factory() {\n /*jshint validthis: true */\n\n function Klass(options) {\n setProperties(this, options);\n this._guid = guids++;\n this.isDestroyed = false;\n }\n\n Klass.prototype.constructor = Klass;\n Klass.prototype.destroy = function () {\n this.isDestroyed = true;\n };\n\n Klass.prototype.toString = function () {\n return '';\n };\n\n Klass.create = create;\n Klass.extend = extend;\n Klass.reopen = extend;\n Klass.reopenClass = reopenClass;\n\n return Klass;\n\n function create(options) {\n return new this.prototype.constructor(options);\n }\n\n function reopenClass(options) {\n setProperties(this, options);\n }\n\n function extend(options) {\n function Child(options) {\n Klass.call(this, options);\n }\n\n var Parent = this;\n\n Child.prototype = new Parent();\n Child.prototype.constructor = Child;\n\n setProperties(Child, Klass);\n setProperties(Child.prototype, options);\n\n Child.create = create;\n Child.extend = extend;\n Child.reopen = extend;\n\n Child.reopenClass = reopenClass;\n\n return Child;\n }\n }\n});","enifed('internal-test-helpers/index', ['exports', 'internal-test-helpers/factory', 'internal-test-helpers/build-owner', 'internal-test-helpers/confirm-export', 'internal-test-helpers/equal-inner-html', 'internal-test-helpers/equal-tokens', 'internal-test-helpers/module-for', 'internal-test-helpers/strip', 'internal-test-helpers/apply-mixins', 'internal-test-helpers/matchers', 'internal-test-helpers/run', 'internal-test-helpers/test-groups', 'internal-test-helpers/test-cases/abstract', 'internal-test-helpers/test-cases/abstract-application', 'internal-test-helpers/test-cases/application', 'internal-test-helpers/test-cases/query-param', 'internal-test-helpers/test-cases/abstract-rendering', 'internal-test-helpers/test-cases/rendering', 'internal-test-helpers/test-cases/router', 'internal-test-helpers/test-cases/autoboot-application', 'internal-test-helpers/test-cases/default-resolver-application', 'internal-test-helpers/test-resolver'], function (exports, _factory, _buildOwner, _confirmExport, _equalInnerHtml, _equalTokens, _moduleFor, _strip, _applyMixins, _matchers, _run, _testGroups, _abstract, _abstractApplication, _application, _queryParam, _abstractRendering, _rendering, _router, _autobootApplication, _defaultResolverApplication, _testResolver) {\n 'use strict';\n\n Object.defineProperty(exports, 'factory', {\n enumerable: true,\n get: function () {\n return _factory.default;\n }\n });\n Object.defineProperty(exports, 'buildOwner', {\n enumerable: true,\n get: function () {\n return _buildOwner.default;\n }\n });\n Object.defineProperty(exports, 'confirmExport', {\n enumerable: true,\n get: function () {\n return _confirmExport.default;\n }\n });\n Object.defineProperty(exports, 'equalInnerHTML', {\n enumerable: true,\n get: function () {\n return _equalInnerHtml.default;\n }\n });\n Object.defineProperty(exports, 'equalTokens', {\n enumerable: true,\n get: function () {\n return _equalTokens.default;\n }\n });\n Object.defineProperty(exports, 'moduleFor', {\n enumerable: true,\n get: function () {\n return _moduleFor.default;\n }\n });\n Object.defineProperty(exports, 'strip', {\n enumerable: true,\n get: function () {\n return _strip.default;\n }\n });\n Object.defineProperty(exports, 'applyMixins', {\n enumerable: true,\n get: function () {\n return _applyMixins.default;\n }\n });\n Object.defineProperty(exports, 'equalsElement', {\n enumerable: true,\n get: function () {\n return _matchers.equalsElement;\n }\n });\n Object.defineProperty(exports, 'classes', {\n enumerable: true,\n get: function () {\n return _matchers.classes;\n }\n });\n Object.defineProperty(exports, 'styles', {\n enumerable: true,\n get: function () {\n return _matchers.styles;\n }\n });\n Object.defineProperty(exports, 'regex', {\n enumerable: true,\n get: function () {\n return _matchers.regex;\n }\n });\n Object.defineProperty(exports, 'runAppend', {\n enumerable: true,\n get: function () {\n return _run.runAppend;\n }\n });\n Object.defineProperty(exports, 'runDestroy', {\n enumerable: true,\n get: function () {\n return _run.runDestroy;\n }\n });\n Object.defineProperty(exports, 'testBoth', {\n enumerable: true,\n get: function () {\n return _testGroups.testBoth;\n }\n });\n Object.defineProperty(exports, 'testWithDefault', {\n enumerable: true,\n get: function () {\n return _testGroups.testWithDefault;\n }\n });\n Object.defineProperty(exports, 'AbstractTestCase', {\n enumerable: true,\n get: function () {\n return _abstract.default;\n }\n });\n Object.defineProperty(exports, 'AbstractApplicationTestCase', {\n enumerable: true,\n get: function () {\n return _abstractApplication.default;\n }\n });\n Object.defineProperty(exports, 'ApplicationTestCase', {\n enumerable: true,\n get: function () {\n return _application.default;\n }\n });\n Object.defineProperty(exports, 'QueryParamTestCase', {\n enumerable: true,\n get: function () {\n return _queryParam.default;\n }\n });\n Object.defineProperty(exports, 'AbstractRenderingTestCase', {\n enumerable: true,\n get: function () {\n return _abstractRendering.default;\n }\n });\n Object.defineProperty(exports, 'RenderingTestCase', {\n enumerable: true,\n get: function () {\n return _rendering.default;\n }\n });\n Object.defineProperty(exports, 'RouterTestCase', {\n enumerable: true,\n get: function () {\n return _router.default;\n }\n });\n Object.defineProperty(exports, 'AutobootApplicationTestCase', {\n enumerable: true,\n get: function () {\n return _autobootApplication.default;\n }\n });\n Object.defineProperty(exports, 'DefaultResolverApplicationTestCase', {\n enumerable: true,\n get: function () {\n return _defaultResolverApplication.default;\n }\n });\n Object.defineProperty(exports, 'TestResolver', {\n enumerable: true,\n get: function () {\n return _testResolver.default;\n }\n });\n Object.defineProperty(exports, 'ModuleBasedTestResolver', {\n enumerable: true,\n get: function () {\n return _testResolver.ModuleBasedResolver;\n }\n });\n});","QUnit.module('ESLint | internal-test-helpers/lib/apply-mixins.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/apply-mixins.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/build-owner.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/build-owner.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/confirm-export.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/confirm-export.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/equal-inner-html.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/equal-inner-html.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/equal-tokens.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/equal-tokens.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/factory.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/factory.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/matchers.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/matchers.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/module-for.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/module-for.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/run.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/run.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/strip.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/strip.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/abstract-application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/abstract-application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/abstract-rendering.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/abstract-rendering.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/abstract.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/abstract.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/autoboot-application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/autoboot-application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/default-resolver-application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/default-resolver-application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/query-param.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/query-param.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/rendering.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/rendering.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/router.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/router.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-cases/test-resolver-application.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-cases/test-resolver-application.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-groups.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-groups.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | internal-test-helpers/lib/test-resolver.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/lib/test-resolver.js should pass ESLint\\n\\n');\n});\n","enifed('internal-test-helpers/matchers', ['exports'], function (exports) {\n 'use strict';\n\n exports.regex = regex;\n exports.classes = classes;\n exports.styles = styles;\n exports.equalsElement = equalsElement;\n var HTMLElement = window.HTMLElement;\n var MATCHER_BRAND = '3d4ef194-13be-4ccf-8dc7-862eea02c93e';\n\n function isMatcher(obj) {\n return typeof obj === 'object' && obj !== null && MATCHER_BRAND in obj;\n }\n\n function equalsAttr(expected) {\n var _ref;\n\n return _ref = {}, _ref[MATCHER_BRAND] = true, _ref.match = function (actual) {\n return expected === actual;\n }, _ref.expected = function () {\n return expected;\n }, _ref.message = function () {\n return 'should equal ' + this.expected();\n }, _ref;\n }\n\n function regex(r) {\n var _ref2;\n\n return _ref2 = {}, _ref2[MATCHER_BRAND] = true, _ref2.match = function (v) {\n return r.test(v);\n }, _ref2.expected = function () {\n return r.toString();\n }, _ref2.message = function () {\n return 'should match ' + this.expected();\n }, _ref2;\n }\n\n function classes(expected) {\n var _ref3;\n\n return _ref3 = {}, _ref3[MATCHER_BRAND] = true, _ref3.match = function (actual) {\n actual = actual.trim();\n return actual && expected.split(/\\s+/).sort().join(' ') === actual.trim().split(/\\s+/).sort().join(' ');\n }, _ref3.expected = function () {\n return expected;\n }, _ref3.message = function () {\n return 'should match ' + this.expected();\n }, _ref3;\n }\n\n function styles(expected) {\n var _ref4;\n\n return _ref4 = {}, _ref4[MATCHER_BRAND] = true, _ref4.match = function (actual) {\n // coerce `null` or `undefined` to an empty string\n // needed for matching empty styles on IE9 - IE11\n actual = actual || '';\n actual = actual.trim();\n\n return expected.split(';').map(function (s) {\n return s.trim();\n }).filter(function (s) {\n return s;\n }).sort().join('; ') === actual.split(';').map(function (s) {\n return s.trim();\n }).filter(function (s) {\n return s;\n }).sort().join('; ');\n }, _ref4.expected = function () {\n return expected;\n }, _ref4.message = function () {\n return 'should match ' + this.expected();\n }, _ref4;\n }\n\n function equalsElement(element, tagName, attributes, content) {\n QUnit.push(element.tagName === tagName.toUpperCase(), element.tagName.toLowerCase(), tagName, 'expect tagName to be ' + tagName);\n\n var expectedAttrs = {};\n var expectedCount = 0;\n\n for (var name in attributes) {\n var expected = attributes[name];\n if (expected !== null) {\n expectedCount++;\n }\n\n var matcher = isMatcher(expected) ? expected : equalsAttr(expected);\n\n expectedAttrs[name] = matcher;\n\n QUnit.push(expectedAttrs[name].match(element.getAttribute(name)), element.getAttribute(name), matcher.expected(), 'Element\\'s ' + name + ' attribute ' + matcher.message());\n }\n\n var actualAttributes = {};\n\n for (var i = 0, l = element.attributes.length; i < l; i++) {\n actualAttributes[element.attributes[i].name] = element.attributes[i].value;\n }\n\n if (!(element instanceof HTMLElement)) {\n QUnit.push(element instanceof HTMLElement, null, null, 'Element must be an HTML Element, not an SVG Element');\n } else {\n QUnit.push(element.attributes.length === expectedCount || !attributes, element.attributes.length, expectedCount, 'Expected ' + expectedCount + ' attributes; got ' + element.outerHTML);\n\n if (content !== null) {\n QUnit.push(element.innerHTML === content, element.innerHTML, content, 'The element had \\'' + content + '\\' as its content');\n }\n }\n }\n});","enifed('internal-test-helpers/module-for', ['exports', 'ember-runtime', 'internal-test-helpers/apply-mixins'], function (exports, _emberRuntime, _applyMixins) {\n 'use strict';\n\n exports.default = moduleFor;\n function moduleFor(description, TestClass) {\n var context = void 0;\n\n QUnit.module(description, {\n setup: function () {\n context = new TestClass();\n if (context.beforeEach) {\n return context.beforeEach();\n }\n },\n teardown: function () {\n context.teardown();\n }\n });\n\n for (var _len = arguments.length, mixins = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n mixins[_key - 2] = arguments[_key];\n }\n\n (0, _applyMixins.default)(TestClass, mixins);\n\n var proto = TestClass.prototype;\n\n while (proto !== Object.prototype) {\n Object.keys(proto).forEach(generateTest);\n proto = Object.getPrototypeOf(proto);\n }\n\n function generateTest(name) {\n if (name.indexOf('@test ') === 0) {\n QUnit.test(name.slice(5), function (assert) {\n return context[name](assert);\n });\n } else if (name.indexOf('@skip ') === 0) {\n QUnit.skip(name.slice(5), function (assert) {\n return context[name](assert);\n });\n }\n }\n }\n});","enifed('internal-test-helpers/run', ['exports', 'ember-metal'], function (exports, _emberMetal) {\n 'use strict';\n\n exports.runAppend = runAppend;\n exports.runDestroy = runDestroy;\n function runAppend(view) {\n (0, _emberMetal.run)(view, 'appendTo', '#qunit-fixture');\n }\n\n function runDestroy(toDestroy) {\n if (toDestroy) {\n (0, _emberMetal.run)(toDestroy, 'destroy');\n }\n }\n});","enifed('internal-test-helpers/strip', ['exports'], function (exports) {\n 'use strict';\n\n exports.default = strip;\n function strip(_ref) {\n for (var _len = arguments.length, values = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n values[_key - 1] = arguments[_key];\n }\n\n var strings = _ref.slice(0);\n\n var str = strings.map(function (string, index) {\n var interpolated = values[index];\n return string + (interpolated !== undefined ? interpolated : '');\n }).join('');\n return str.split('\\n').map(function (s) {\n return s.trim();\n }).join('');\n }\n});","enifed('internal-test-helpers/test-cases/abstract-application', ['exports', 'ember-babel', 'ember-template-compiler', 'internal-test-helpers/test-cases/abstract', 'ember-views', 'internal-test-helpers/run'], function (exports, _emberBabel, _emberTemplateCompiler, _abstract, _emberViews, _run) {\n 'use strict';\n\n var AbstractApplicationTestCase = function (_AbstractTestCase) {\n (0, _emberBabel.inherits)(AbstractApplicationTestCase, _AbstractTestCase);\n\n function AbstractApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, AbstractApplicationTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AbstractTestCase.call(this));\n\n _this.element = (0, _emberViews.jQuery)('#qunit-fixture')[0];\n return _this;\n }\n\n AbstractApplicationTestCase.prototype.teardown = function teardown() {\n (0, _run.runDestroy)(this.application);\n _AbstractTestCase.prototype.teardown.call(this);\n };\n\n AbstractApplicationTestCase.prototype.compile = function compile(string, options) {\n return _emberTemplateCompiler.compile.apply(undefined, arguments);\n };\n\n (0, _emberBabel.createClass)(AbstractApplicationTestCase, [{\n key: 'applicationOptions',\n get: function () {\n return {\n rootElement: '#qunit-fixture'\n };\n }\n }, {\n key: 'routerOptions',\n get: function () {\n return {\n location: 'none'\n };\n }\n }, {\n key: 'router',\n get: function () {\n return this.application.resolveRegistration('router:main');\n }\n }]);\n return AbstractApplicationTestCase;\n }(_abstract.default);\n\n exports.default = AbstractApplicationTestCase;\n});","enifed('internal-test-helpers/test-cases/abstract-rendering', ['exports', 'ember-babel', 'ember-utils', 'ember-template-compiler', 'ember-views', 'ember-glimmer', 'internal-test-helpers/test-cases/abstract', 'internal-test-helpers/build-owner', 'internal-test-helpers/run'], function (exports, _emberBabel, _emberUtils, _emberTemplateCompiler, _emberViews, _emberGlimmer, _abstract, _buildOwner, _run) {\n 'use strict';\n\n var TextNode = window.Text;\n\n var AbstractRenderingTestCase = function (_AbstractTestCase) {\n (0, _emberBabel.inherits)(AbstractRenderingTestCase, _AbstractTestCase);\n\n function AbstractRenderingTestCase() {\n (0, _emberBabel.classCallCheck)(this, AbstractRenderingTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AbstractTestCase.call(this));\n\n var bootOptions = _this.getBootOptions();\n\n var owner = _this.owner = (0, _buildOwner.default)({\n ownerOptions: _this.getOwnerOptions(),\n resolver: _this.getResolver(),\n bootOptions: bootOptions\n });\n\n _this.renderer = _this.owner.lookup('renderer:-dom');\n _this.element = (0, _emberViews.jQuery)('#qunit-fixture')[0];\n _this.component = null;\n\n owner.register('event_dispatcher:main', _emberViews.EventDispatcher);\n owner.inject('event_dispatcher:main', '_viewRegistry', '-view-registry:main');\n if (!bootOptions || bootOptions.isInteractive !== false) {\n owner.lookup('event_dispatcher:main').setup(_this.getCustomDispatcherEvents(), _this.element);\n }\n return _this;\n }\n\n AbstractRenderingTestCase.prototype.compile = function compile() {\n return _emberTemplateCompiler.compile.apply(undefined, arguments);\n };\n\n AbstractRenderingTestCase.prototype.getCustomDispatcherEvents = function getCustomDispatcherEvents() {\n return {};\n };\n\n AbstractRenderingTestCase.prototype.getOwnerOptions = function getOwnerOptions() {};\n\n AbstractRenderingTestCase.prototype.getBootOptions = function getBootOptions() {};\n\n AbstractRenderingTestCase.prototype.getResolver = function getResolver() {};\n\n AbstractRenderingTestCase.prototype.teardown = function teardown() {\n try {\n if (this.component) {\n (0, _run.runDestroy)(this.component);\n }\n if (this.owner) {\n (0, _run.runDestroy)(this.owner);\n }\n } finally {\n (0, _emberGlimmer._resetRenderers)();\n }\n };\n\n AbstractRenderingTestCase.prototype.render = function render(templateStr) {\n var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var owner = this.owner;\n\n\n owner.register('template:-top-level', this.compile(templateStr, {\n moduleName: '-top-level'\n }));\n\n var attrs = (0, _emberUtils.assign)({}, context, {\n tagName: '',\n layoutName: '-top-level'\n });\n\n owner.register('component:-top-level', _emberGlimmer.Component.extend(attrs));\n\n this.component = owner.lookup('component:-top-level');\n\n (0, _run.runAppend)(this.component);\n };\n\n AbstractRenderingTestCase.prototype.rerender = function rerender() {\n this.component.rerender();\n };\n\n AbstractRenderingTestCase.prototype.registerHelper = function registerHelper(name, funcOrClassBody) {\n var type = typeof funcOrClassBody;\n\n if (type === 'function') {\n this.owner.register('helper:' + name, (0, _emberGlimmer.helper)(funcOrClassBody));\n } else if (type === 'object' && type !== null) {\n this.owner.register('helper:' + name, _emberGlimmer.Helper.extend(funcOrClassBody));\n } else {\n throw new Error('Cannot register ' + funcOrClassBody + ' as a helper');\n }\n };\n\n AbstractRenderingTestCase.prototype.registerPartial = function registerPartial(name, template) {\n var owner = this.env.owner || this.owner;\n if (typeof template === 'string') {\n var moduleName = 'template:' + name;\n owner.register(moduleName, this.compile(template, { moduleName: moduleName }));\n }\n };\n\n AbstractRenderingTestCase.prototype.registerComponent = function registerComponent(name, _ref) {\n var _ref$ComponentClass = _ref.ComponentClass,\n ComponentClass = _ref$ComponentClass === undefined ? null : _ref$ComponentClass,\n _ref$template = _ref.template,\n template = _ref$template === undefined ? null : _ref$template;\n var owner = this.owner;\n\n\n if (ComponentClass) {\n owner.register('component:' + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n owner.register('template:components/' + name, this.compile(template, {\n moduleName: 'components/' + name\n }));\n }\n };\n\n AbstractRenderingTestCase.prototype.registerTemplate = function registerTemplate(name, template) {\n var owner = this.owner;\n\n if (typeof template === 'string') {\n owner.register('template:' + name, this.compile(template, {\n moduleName: name\n }));\n } else {\n throw new Error('Registered template \"' + name + '\" must be a string');\n }\n };\n\n AbstractRenderingTestCase.prototype.registerService = function registerService(name, klass) {\n this.owner.register('service:' + name, klass);\n };\n\n AbstractRenderingTestCase.prototype.assertTextNode = function assertTextNode(node, text) {\n if (!(node instanceof TextNode)) {\n throw new Error('Expecting a text node, but got ' + node);\n }\n\n this.assert.strictEqual(node.textContent, text, 'node.textContent');\n };\n\n (0, _emberBabel.createClass)(AbstractRenderingTestCase, [{\n key: 'context',\n get: function () {\n return this.component;\n }\n }]);\n return AbstractRenderingTestCase;\n }(_abstract.default);\n\n exports.default = AbstractRenderingTestCase;\n});","enifed('internal-test-helpers/test-cases/abstract', ['exports', 'ember-babel', 'ember-utils', 'ember-metal', 'ember-views', 'internal-test-helpers/equal-inner-html', 'internal-test-helpers/equal-tokens', 'internal-test-helpers/matchers'], function (exports, _emberBabel, _emberUtils, _emberMetal, _emberViews, _equalInnerHtml, _equalTokens, _matchers) {\n 'use strict';\n\n var TextNode = window.Text;\n var HTMLElement = window.HTMLElement;\n var Comment = window.Comment;\n\n function isMarker(node) {\n if (node instanceof Comment && node.textContent === '') {\n return true;\n }\n\n if (node instanceof TextNode && node.textContent === '') {\n return true;\n }\n\n return false;\n }\n\n var AbstractTestCase = function () {\n function AbstractTestCase() {\n (0, _emberBabel.classCallCheck)(this, AbstractTestCase);\n\n this.element = null;\n this.snapshot = null;\n this.assert = QUnit.config.current.assert;\n }\n\n AbstractTestCase.prototype.teardown = function teardown() {};\n\n AbstractTestCase.prototype.runTask = function runTask(callback) {\n return (0, _emberMetal.run)(callback);\n };\n\n AbstractTestCase.prototype.runTaskNext = function runTaskNext(callback) {\n return _emberMetal.run.next(callback);\n };\n\n AbstractTestCase.prototype.nthChild = function nthChild(n) {\n var i = 0;\n var node = this.element.firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n i++;\n }\n\n if (i > n) {\n break;\n } else {\n node = node.nextSibling;\n }\n }\n\n return node;\n };\n\n AbstractTestCase.prototype.$ = function $(sel) {\n return sel ? (0, _emberViews.jQuery)(sel, this.element) : (0, _emberViews.jQuery)(this.element);\n };\n\n AbstractTestCase.prototype.click = function click(selector) {\n return this.$(selector).click();\n };\n\n AbstractTestCase.prototype.textValue = function textValue() {\n return this.$().text();\n };\n\n AbstractTestCase.prototype.takeSnapshot = function takeSnapshot() {\n var snapshot = this.snapshot = [];\n\n var node = this.element.firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n snapshot.push(node);\n }\n\n node = node.nextSibling;\n }\n\n return snapshot;\n };\n\n AbstractTestCase.prototype.assertText = function assertText(text) {\n this.assert.strictEqual(this.textValue(), text, '#qunit-fixture content should be: `' + text + '`');\n };\n\n AbstractTestCase.prototype.assertInnerHTML = function assertInnerHTML(html) {\n (0, _equalInnerHtml.default)(this.element, html);\n };\n\n AbstractTestCase.prototype.assertHTML = function assertHTML(html) {\n (0, _equalTokens.default)(this.element, html, '#qunit-fixture content should be: `' + html + '`');\n };\n\n AbstractTestCase.prototype.assertElement = function assertElement(node, _ref) {\n var _ref$ElementType = _ref.ElementType,\n ElementType = _ref$ElementType === undefined ? HTMLElement : _ref$ElementType,\n tagName = _ref.tagName,\n _ref$attrs = _ref.attrs,\n attrs = _ref$attrs === undefined ? null : _ref$attrs,\n _ref$content = _ref.content,\n content = _ref$content === undefined ? null : _ref$content;\n\n if (!(node instanceof ElementType)) {\n throw new Error('Expecting a ' + ElementType.name + ', but got ' + node);\n }\n\n (0, _matchers.equalsElement)(node, tagName, attrs, content);\n };\n\n AbstractTestCase.prototype.assertComponentElement = function assertComponentElement(node, _ref2) {\n var _ref2$ElementType = _ref2.ElementType,\n ElementType = _ref2$ElementType === undefined ? HTMLElement : _ref2$ElementType,\n _ref2$tagName = _ref2.tagName,\n tagName = _ref2$tagName === undefined ? 'div' : _ref2$tagName,\n _ref2$attrs = _ref2.attrs,\n attrs = _ref2$attrs === undefined ? null : _ref2$attrs,\n _ref2$content = _ref2.content,\n content = _ref2$content === undefined ? null : _ref2$content;\n\n attrs = (0, _emberUtils.assign)({}, { id: (0, _matchers.regex)(/^ember\\d*$/), class: (0, _matchers.classes)('ember-view') }, attrs || {});\n this.assertElement(node, { ElementType: ElementType, tagName: tagName, attrs: attrs, content: content });\n };\n\n AbstractTestCase.prototype.assertSameNode = function assertSameNode(actual, expected) {\n this.assert.strictEqual(actual, expected, 'DOM node stability');\n };\n\n AbstractTestCase.prototype.assertInvariants = function assertInvariants(oldSnapshot, newSnapshot) {\n oldSnapshot = oldSnapshot || this.snapshot;\n newSnapshot = newSnapshot || this.takeSnapshot();\n\n this.assert.strictEqual(newSnapshot.length, oldSnapshot.length, 'Same number of nodes');\n\n for (var i = 0; i < oldSnapshot.length; i++) {\n this.assertSameNode(newSnapshot[i], oldSnapshot[i]);\n }\n };\n\n AbstractTestCase.prototype.assertPartialInvariants = function assertPartialInvariants(start, end) {\n this.assertInvariants(this.snapshot, this.takeSnapshot().slice(start, end));\n };\n\n AbstractTestCase.prototype.assertStableRerender = function assertStableRerender() {\n var _this = this;\n\n this.takeSnapshot();\n this.runTask(function () {\n return _this.rerender();\n });\n this.assertInvariants();\n };\n\n (0, _emberBabel.createClass)(AbstractTestCase, [{\n key: 'firstChild',\n get: function () {\n return this.nthChild(0);\n }\n }, {\n key: 'nodesCount',\n get: function () {\n var count = 0;\n var node = this.element.firstChild;\n\n while (node) {\n if (!isMarker(node)) {\n count++;\n }\n\n node = node.nextSibling;\n }\n\n return count;\n }\n }]);\n return AbstractTestCase;\n }();\n\n exports.default = AbstractTestCase;\n});","enifed('internal-test-helpers/test-cases/application', ['exports', 'ember-babel', 'internal-test-helpers/test-cases/test-resolver-application', 'ember-application', 'ember-routing', 'ember-utils', 'internal-test-helpers/run'], function (exports, _emberBabel, _testResolverApplication, _emberApplication, _emberRouting, _emberUtils, _run) {\n 'use strict';\n\n var ApplicationTestCase = function (_TestResolverApplicat) {\n (0, _emberBabel.inherits)(ApplicationTestCase, _TestResolverApplicat);\n\n function ApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, ApplicationTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _TestResolverApplicat.call(this));\n\n var applicationOptions = _this.applicationOptions;\n\n _this.application = _this.runTask(function () {\n return _this.createApplication(applicationOptions);\n });\n\n _this.resolver = applicationOptions.Resolver.lastInstance;\n\n if (_this.resolver) {\n _this.resolver.add('router:main', _emberRouting.Router.extend(_this.routerOptions));\n }\n return _this;\n }\n\n ApplicationTestCase.prototype.createApplication = function createApplication() {\n var myOptions = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var MyApplication = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emberApplication.Application;\n\n return MyApplication.create(myOptions);\n };\n\n ApplicationTestCase.prototype.teardown = function teardown() {\n (0, _run.runDestroy)(this.applicationInstance);\n _TestResolverApplicat.prototype.teardown.call(this);\n };\n\n ApplicationTestCase.prototype.visit = function visit(url, options) {\n var _this2 = this;\n\n var applicationInstance = this.applicationInstance;\n\n\n if (applicationInstance) {\n return this.runTask(function () {\n return applicationInstance.visit(url, options);\n });\n } else {\n return this.runTask(function () {\n return _this2.application.visit(url, options).then(function (instance) {\n _this2.applicationInstance = instance;\n return instance;\n });\n });\n }\n };\n\n ApplicationTestCase.prototype.transitionTo = function transitionTo() {\n var _this3 = this,\n _arguments = arguments;\n\n return this.runTask(function () {\n var _appRouter;\n\n return (_appRouter = _this3.appRouter).transitionTo.apply(_appRouter, _arguments);\n });\n };\n\n (0, _emberBabel.createClass)(ApplicationTestCase, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_TestResolverApplicat.prototype.applicationOptions, {\n autoboot: false\n });\n }\n }, {\n key: 'appRouter',\n get: function () {\n return this.applicationInstance.lookup('router:main');\n }\n }]);\n return ApplicationTestCase;\n }(_testResolverApplication.default);\n\n exports.default = ApplicationTestCase;\n});","enifed('internal-test-helpers/test-cases/autoboot-application', ['exports', 'ember-babel', 'internal-test-helpers/test-cases/test-resolver-application', 'internal-test-helpers/test-resolver', 'ember-application', 'ember-utils', 'ember-routing'], function (exports, _emberBabel, _testResolverApplication, _testResolver, _emberApplication, _emberUtils, _emberRouting) {\n 'use strict';\n\n var AutobootApplicationTestCase = function (_TestResolverApplicat) {\n (0, _emberBabel.inherits)(AutobootApplicationTestCase, _TestResolverApplicat);\n\n function AutobootApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, AutobootApplicationTestCase);\n return (0, _emberBabel.possibleConstructorReturn)(this, _TestResolverApplicat.apply(this, arguments));\n }\n\n AutobootApplicationTestCase.prototype.createApplication = function createApplication(options) {\n var MyApplication = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _emberApplication.Application;\n\n var myOptions = (0, _emberUtils.assign)(this.applicationOptions, options);\n var application = this.application = MyApplication.create(myOptions);\n this.resolver = myOptions.Resolver.lastInstance;\n\n if (this.resolver) {\n this.resolver.add('router:main', _emberRouting.Router.extend(this.routerOptions));\n }\n\n return application;\n };\n\n AutobootApplicationTestCase.prototype.visit = function visit(url, options) {\n var _this2 = this;\n\n return this.runTask(function () {\n return _this2.applicationInstance.visit(url, options);\n });\n };\n\n (0, _emberBabel.createClass)(AutobootApplicationTestCase, [{\n key: 'applicationInstance',\n get: function () {\n return this.application.__deprecatedInstance__;\n }\n }]);\n return AutobootApplicationTestCase;\n }(_testResolverApplication.default);\n\n exports.default = AutobootApplicationTestCase;\n});","enifed('internal-test-helpers/test-cases/default-resolver-application', ['exports', 'ember-babel', 'internal-test-helpers/test-cases/abstract-application', 'ember-application', 'ember-glimmer', 'ember-utils', 'internal-test-helpers/run', 'ember-routing'], function (exports, _emberBabel, _abstractApplication, _emberApplication, _emberGlimmer, _emberUtils, _run, _emberRouting) {\n 'use strict';\n\n var ApplicationTestCase = function (_AbstractApplicationT) {\n (0, _emberBabel.inherits)(ApplicationTestCase, _AbstractApplicationT);\n\n function ApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, ApplicationTestCase);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractApplicationT.apply(this, arguments));\n }\n\n ApplicationTestCase.prototype.createApplication = function createApplication() {\n var application = this.application = _emberApplication.Application.create(this.applicationOptions);\n application.Router = _emberRouting.Router.extend(this.routerOptions);\n return application;\n };\n\n ApplicationTestCase.prototype.teardown = function teardown() {\n (0, _run.runDestroy)(this.applicationInstance);\n _AbstractApplicationT.prototype.teardown.call(this);\n (0, _emberGlimmer.setTemplates)({});\n };\n\n ApplicationTestCase.prototype.visit = function visit(url, options) {\n var _this2 = this;\n\n var applicationInstance = this.applicationInstance;\n\n\n if (applicationInstance) {\n return this.runTask(function () {\n return applicationInstance.visit(url, options);\n });\n } else {\n return this.runTask(function () {\n return _this2.application.visit(url, options).then(function (instance) {\n _this2.applicationInstance = instance;\n });\n });\n }\n };\n\n ApplicationTestCase.prototype.transitionTo = function transitionTo() {\n var _this3 = this,\n _arguments = arguments;\n\n return this.runTask(function () {\n var _appRouter;\n\n return (_appRouter = _this3.appRouter).transitionTo.apply(_appRouter, _arguments);\n });\n };\n\n ApplicationTestCase.prototype.addTemplate = function addTemplate(name, templateString) {\n var compiled = this.compile(templateString);\n (0, _emberGlimmer.setTemplate)(name, compiled);\n return compiled;\n };\n\n (0, _emberBabel.createClass)(ApplicationTestCase, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_AbstractApplicationT.prototype.applicationOptions, {\n autoboot: false,\n Resolver: _emberApplication.Resolver\n });\n }\n }, {\n key: 'appRouter',\n get: function () {\n return this.applicationInstance.lookup('router:main');\n }\n }]);\n return ApplicationTestCase;\n }(_abstractApplication.default);\n\n exports.default = ApplicationTestCase;\n});","enifed('internal-test-helpers/test-cases/query-param', ['exports', 'ember-babel', 'ember-runtime', 'ember-routing', 'ember-metal', 'internal-test-helpers/test-cases/application'], function (exports, _emberBabel, _emberRuntime, _emberRouting, _emberMetal, _application) {\n 'use strict';\n\n var QueryParamTestCase = function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(QueryParamTestCase, _ApplicationTestCase);\n\n function QueryParamTestCase() {\n (0, _emberBabel.classCallCheck)(this, QueryParamTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n var testCase = _this;\n testCase.expectedPushURL = null;\n testCase.expectedReplaceURL = null;\n _this.add('location:test', _emberRouting.NoneLocation.extend({\n setURL: function (path) {\n if (testCase.expectedReplaceURL) {\n testCase.assert.ok(false, 'pushState occurred but a replaceState was expected');\n }\n\n if (testCase.expectedPushURL) {\n testCase.assert.equal(path, testCase.expectedPushURL, 'an expected pushState occurred');\n testCase.expectedPushURL = null;\n }\n\n this.set('path', path);\n },\n replaceURL: function (path) {\n if (testCase.expectedPushURL) {\n testCase.assert.ok(false, 'replaceState occurred but a pushState was expected');\n }\n\n if (testCase.expectedReplaceURL) {\n testCase.assert.equal(path, testCase.expectedReplaceURL, 'an expected replaceState occurred');\n testCase.expectedReplaceURL = null;\n }\n\n this.set('path', path);\n }\n }));\n return _this;\n }\n\n QueryParamTestCase.prototype.visitAndAssert = function visitAndAssert(path) {\n var _this2 = this;\n\n return this.visit.apply(this, arguments).then(function () {\n _this2.assertCurrentPath(path);\n });\n };\n\n QueryParamTestCase.prototype.getController = function getController(name) {\n return this.applicationInstance.lookup('controller:' + name);\n };\n\n QueryParamTestCase.prototype.getRoute = function getRoute(name) {\n return this.applicationInstance.lookup('route:' + name);\n };\n\n QueryParamTestCase.prototype.setAndFlush = function setAndFlush(obj, prop, value) {\n return (0, _emberMetal.run)(obj, 'set', prop, value);\n };\n\n QueryParamTestCase.prototype.assertCurrentPath = function assertCurrentPath(path) {\n var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'current path equals \\'' + path + '\\'';\n\n this.assert.equal(this.appRouter.get('location.path'), path, message);\n };\n\n QueryParamTestCase.prototype.setSingleQPController = function setSingleQPController(routeName) {\n var param = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'foo';\n\n var _Controller$extend;\n\n var defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'bar';\n var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n this.add('controller:' + routeName, _emberRuntime.Controller.extend((_Controller$extend = {\n queryParams: [param]\n }, _Controller$extend[param] = defaultValue, _Controller$extend), options));\n };\n\n QueryParamTestCase.prototype.setMappedQPController = function setMappedQPController(routeName) {\n var prop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'page';\n var urlKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'parentPage';\n\n var _queryParams, _Controller$extend2;\n\n var defaultValue = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;\n var options = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};\n\n this.add('controller:' + routeName, _emberRuntime.Controller.extend((_Controller$extend2 = {\n queryParams: (_queryParams = {}, _queryParams[prop] = urlKey, _queryParams)\n }, _Controller$extend2[prop] = defaultValue, _Controller$extend2), options));\n };\n\n (0, _emberBabel.createClass)(QueryParamTestCase, [{\n key: 'routerOptions',\n get: function () {\n return {\n location: 'test'\n };\n }\n }]);\n return QueryParamTestCase;\n }(_application.default);\n\n exports.default = QueryParamTestCase;\n});","enifed('internal-test-helpers/test-cases/rendering', ['exports', 'ember-babel', 'ember-views', 'internal-test-helpers/test-cases/abstract-rendering'], function (exports, _emberBabel, _emberViews, _abstractRendering) {\n 'use strict';\n\n var RenderingTestCase = function (_AbstractRenderingTes) {\n (0, _emberBabel.inherits)(RenderingTestCase, _AbstractRenderingTes);\n\n function RenderingTestCase() {\n (0, _emberBabel.classCallCheck)(this, RenderingTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _AbstractRenderingTes.call(this));\n\n var owner = _this.owner;\n\n\n _this.env = owner.lookup('service:-glimmer-environment');\n owner.register('component-lookup:main', _emberViews.ComponentLookup);\n owner.registerOptionsForType('helper', { instantiate: false });\n owner.registerOptionsForType('component', { singleton: false });\n return _this;\n }\n\n return RenderingTestCase;\n }(_abstractRendering.default);\n\n exports.default = RenderingTestCase;\n});","enifed('internal-test-helpers/test-cases/router', ['exports', 'ember-babel', 'internal-test-helpers/test-cases/application'], function (exports, _emberBabel, _application) {\n 'use strict';\n\n var RouterTestCase = function (_ApplicationTestCase) {\n (0, _emberBabel.inherits)(RouterTestCase, _ApplicationTestCase);\n\n function RouterTestCase() {\n (0, _emberBabel.classCallCheck)(this, RouterTestCase);\n\n var _this = (0, _emberBabel.possibleConstructorReturn)(this, _ApplicationTestCase.call(this));\n\n _this.router.map(function () {\n this.route('parent', { path: '/' }, function () {\n this.route('child');\n this.route('sister');\n this.route('brother');\n });\n this.route('dynamic', { path: '/dynamic/:dynamic_id' });\n });\n return _this;\n }\n\n RouterTestCase.prototype.buildQueryParams = function buildQueryParams(queryParams) {\n return {\n queryParams: queryParams\n };\n };\n\n (0, _emberBabel.createClass)(RouterTestCase, [{\n key: 'routerService',\n get: function () {\n return this.applicationInstance.lookup('service:router');\n }\n }]);\n return RouterTestCase;\n }(_application.default);\n\n exports.default = RouterTestCase;\n});","enifed('internal-test-helpers/test-cases/test-resolver-application', ['exports', 'ember-babel', 'internal-test-helpers/test-cases/abstract-application', 'internal-test-helpers/test-resolver', 'ember-utils'], function (exports, _emberBabel, _abstractApplication, _testResolver, _emberUtils) {\n 'use strict';\n\n var TestResolverApplicationTestCase = function (_AbstractApplicationT) {\n (0, _emberBabel.inherits)(TestResolverApplicationTestCase, _AbstractApplicationT);\n\n function TestResolverApplicationTestCase() {\n (0, _emberBabel.classCallCheck)(this, TestResolverApplicationTestCase);\n return (0, _emberBabel.possibleConstructorReturn)(this, _AbstractApplicationT.apply(this, arguments));\n }\n\n TestResolverApplicationTestCase.prototype.add = function add(specifier, factory) {\n this.resolver.add(specifier, factory);\n };\n\n TestResolverApplicationTestCase.prototype.addTemplate = function addTemplate(templateName, templateString) {\n this.resolver.add('template:' + templateName, this.compile(templateString, {\n moduleName: templateName\n }));\n };\n\n TestResolverApplicationTestCase.prototype.addComponent = function addComponent(name, _ref) {\n var _ref$ComponentClass = _ref.ComponentClass,\n ComponentClass = _ref$ComponentClass === undefined ? null : _ref$ComponentClass,\n _ref$template = _ref.template,\n template = _ref$template === undefined ? null : _ref$template;\n\n if (ComponentClass) {\n this.resolver.add('component:' + name, ComponentClass);\n }\n\n if (typeof template === 'string') {\n this.resolver.add('template:components/' + name, this.compile(template, {\n moduleName: 'components/' + name\n }));\n }\n };\n\n (0, _emberBabel.createClass)(TestResolverApplicationTestCase, [{\n key: 'applicationOptions',\n get: function () {\n return (0, _emberUtils.assign)(_AbstractApplicationT.prototype.applicationOptions, {\n Resolver: _testResolver.ModuleBasedResolver\n });\n }\n }]);\n return TestResolverApplicationTestCase;\n }(_abstractApplication.default);\n\n exports.default = TestResolverApplicationTestCase;\n});","enifed('internal-test-helpers/test-groups', ['exports', 'ember-environment', 'ember-metal'], function (exports, _emberEnvironment, _emberMetal) {\n 'use strict';\n\n exports.testBoth = testBoth;\n exports.testWithDefault = testWithDefault;\n\n\n // used by unit tests to test both accessor mode and non-accessor mode\n function testBoth(testname, callback) {\n function emberget(x, y) {\n return (0, _emberMetal.get)(x, y);\n }\n function emberset(x, y, z) {\n return (0, _emberMetal.set)(x, y, z);\n }\n function aget(x, y) {\n return x[y];\n }\n function aset(x, y, z) {\n return x[y] = z;\n }\n\n QUnit.test(testname + ' using getFromEmberMetal()/Ember.set()', function () {\n callback(emberget, emberset);\n });\n\n QUnit.test(testname + ' using accessors', function () {\n if (_emberEnvironment.ENV.USES_ACCESSORS) {\n callback(aget, aset);\n } else {\n ok('SKIPPING ACCESSORS');\n }\n });\n }\n\n function testWithDefault(testname, callback) {\n function emberget(x, y) {\n return (0, _emberMetal.get)(x, y);\n }\n function embergetwithdefault(x, y, z) {\n return (0, _emberMetal.getWithDefault)(x, y, z);\n }\n function getwithdefault(x, y, z) {\n return x.getWithDefault(y, z);\n }\n function emberset(x, y, z) {\n return (0, _emberMetal.set)(x, y, z);\n }\n function aget(x, y) {\n return x[y];\n }\n function aset(x, y, z) {\n return x[y] = z;\n }\n\n QUnit.test(testname + ' using obj.get()', function () {\n callback(emberget, emberset);\n });\n\n QUnit.test(testname + ' using obj.getWithDefault()', function () {\n callback(getwithdefault, emberset);\n });\n\n QUnit.test(testname + ' using getFromEmberMetal()', function () {\n callback(emberget, emberset);\n });\n\n QUnit.test(testname + ' using Ember.getWithDefault()', function () {\n callback(embergetwithdefault, emberset);\n });\n\n QUnit.test(testname + ' using accessors', function () {\n if (_emberEnvironment.ENV.USES_ACCESSORS) {\n callback(aget, aset);\n } else {\n ok('SKIPPING ACCESSORS');\n }\n });\n }\n});","enifed('internal-test-helpers/test-resolver', ['exports', 'ember-babel', 'ember-template-compiler'], function (exports, _emberBabel, _emberTemplateCompiler) {\n 'use strict';\n\n exports.ModuleBasedResolver = undefined;\n\n var Resolver = function () {\n function Resolver() {\n (0, _emberBabel.classCallCheck)(this, Resolver);\n\n this._registered = {};\n this.constructor.lastInstance = this;\n }\n\n Resolver.prototype.resolve = function resolve(specifier) {\n return this._registered[specifier];\n };\n\n Resolver.prototype.add = function add(specifier, factory) {\n if (specifier.indexOf(':') === -1) {\n throw new Error('Specifiers added to the resolver must be in the format of type:name');\n }\n return this._registered[specifier] = factory;\n };\n\n Resolver.prototype.addTemplate = function addTemplate(templateName, template) {\n var templateType = typeof template;\n if (templateType !== 'string') {\n throw new Error('You called addTemplate for \"' + templateName + '\" with a template argument of type of \\'' + templateType + '\\'. addTemplate expects an argument of an uncompiled template as a string.');\n }\n return this._registered['template:' + templateName] = (0, _emberTemplateCompiler.compile)(template, {\n moduleName: templateName\n });\n };\n\n Resolver.create = function create() {\n return new this();\n };\n\n return Resolver;\n }();\n\n exports.default = Resolver;\n\n var ModuleBasedResolver = function (_Resolver) {\n (0, _emberBabel.inherits)(ModuleBasedResolver, _Resolver);\n\n function ModuleBasedResolver() {\n (0, _emberBabel.classCallCheck)(this, ModuleBasedResolver);\n return (0, _emberBabel.possibleConstructorReturn)(this, _Resolver.apply(this, arguments));\n }\n\n (0, _emberBabel.createClass)(ModuleBasedResolver, [{\n key: 'moduleBasedResolver',\n get: function () {\n return true;\n }\n }]);\n return ModuleBasedResolver;\n }(Resolver);\n\n exports.ModuleBasedResolver = ModuleBasedResolver;\n});","enifed('internal-test-helpers/tests/index-test', [], function () {\n 'use strict';\n\n QUnit.module('internal-test-helpers');\n\n QUnit.test('module present', function (assert) {\n assert.ok(true, 'each package needs at least one test to be able to run through `npm test`');\n });\n});","QUnit.module('ESLint | internal-test-helpers/tests/index-test.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'internal-test-helpers/tests/index-test.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | is_blank.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'is_blank.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | is_empty.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'is_empty.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | is_none.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'is_none.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | is_present.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'is_present.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | is_proxy.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'is_proxy.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | libraries.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'libraries.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | loader/lib/index.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'loader/lib/index.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | map.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'map.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | merge.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'merge.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | meta.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'meta.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | meta_listeners.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'meta_listeners.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | mixin.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'mixin.js should pass ESLint\\n\\n');\n});\n","/*global enifed */\nenifed('node-module', ['exports'], function(_exports) {\n var IS_NODE = typeof module === 'object' && typeof module.require === 'function';\n if (IS_NODE) {\n _exports.require = module.require;\n _exports.module = module;\n _exports.IS_NODE = IS_NODE;\n } else {\n _exports.require = null;\n _exports.module = null;\n _exports.IS_NODE = IS_NODE;\n }\n});","QUnit.module('ESLint | node-module/lib/node-module.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'node-module/lib/node-module.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | observer.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'observer.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | observer_set.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'observer_set.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | path_cache.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'path_cache.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | property_events.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'property_events.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | property_get.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'property_get.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | property_set.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'property_set.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | replace.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'replace.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | run_loop.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'run_loop.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | set_properties.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'set_properties.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | tags.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'tags.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | transaction.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'transaction.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | watch_key.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'watch_key.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | watch_path.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'watch_path.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | watching.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'watching.js should pass ESLint\\n\\n');\n});\n","QUnit.module('ESLint | weak_map.js');\nQUnit.test('should pass ESLint', function(assert) {\n assert.expect(1);\n assert.ok(true, 'weak_map.js should pass ESLint\\n\\n');\n});\n"],"names":[],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpsBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3uBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzdA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClWA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChWA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnYA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9aA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrbA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtLA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1kBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9IA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpwBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5oBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjtBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1lBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACx4CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC94GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACn1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5JA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7rCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9OA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpZA;AACA;AACA;AACA;AACA;;ACJA;AACA;;ACDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpsBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5VA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9oDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnZA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjuCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACh0BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjkDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnrBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9NA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1QA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjxBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjnBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3iBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjuBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvSA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3ZA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1WA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACteA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzvCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvhCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7aA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3IA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7zBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3bA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3dA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3JA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjLA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9xCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9OA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnHA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5RA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9LA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClTA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvUA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzgBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjQA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpeA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC18CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9PA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC53BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjTA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxaA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjWA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7XA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjHA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzHA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5IA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9KA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1IA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3YA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9HA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1RA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClNA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrHA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxYA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7FA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnnCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/IA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClMA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9LA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7MA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACliBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC71CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvSA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACthBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/EA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACx4GA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvUA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC54CA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/3BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3LA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9OA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChFA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpGA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1VA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpSA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACx8BA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpKA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;ACJA;AACA;AACA;AACA;AACA;;;;","file":"ember-tests.js"}