ember-source 2.14.0.beta.2 → 2.14.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 2.14.0-beta.2
9
+ * @version 2.14.0-beta.3
10
10
  */
11
11
 
12
12
  var enifed, requireModule, Ember;
@@ -4386,19 +4386,27 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
4386
4386
 
4387
4387
  RawInlineBlock.prototype.scan = function scan() {
4388
4388
  var buffer = [];
4389
- for (var i = 0; i < this.statements.length; i++) {
4390
- var statement = this.statements[i];
4391
- if (_wireFormat.Statements.isBlock(statement)) {
4392
- buffer.push(this.specializeBlock(statement));
4393
- } else if (_wireFormat.Statements.isComponent(statement)) {
4394
- buffer.push.apply(buffer, this.specializeComponent(statement));
4395
- } else {
4396
- buffer.push(statement);
4397
- }
4398
- }
4389
+ this.specializeStatements(this.statements, buffer);
4399
4390
  return new InlineBlock(buffer, this.table);
4400
4391
  };
4401
4392
 
4393
+ RawInlineBlock.prototype.specializeStatements = function specializeStatements(statements, buffer) {
4394
+ for (var i = 0; i < statements.length; i++) {
4395
+ var statement = statements[i];
4396
+ this.specializeStatement(statement, buffer);
4397
+ }
4398
+ };
4399
+
4400
+ RawInlineBlock.prototype.specializeStatement = function specializeStatement(statement, buffer) {
4401
+ if (_wireFormat.Statements.isBlock(statement)) {
4402
+ buffer.push(this.specializeBlock(statement));
4403
+ } else if (_wireFormat.Statements.isComponent(statement)) {
4404
+ buffer.push.apply(buffer, this.specializeComponent(statement));
4405
+ } else {
4406
+ buffer.push(statement);
4407
+ }
4408
+ };
4409
+
4402
4410
  RawInlineBlock.prototype.specializeBlock = function specializeBlock(block$$1) {
4403
4411
  var path = block$$1[1],
4404
4412
  params = block$$1[2],
@@ -4418,13 +4426,13 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
4418
4426
  var attrs = new RawInlineBlock(this.env, this.table, component.attrs);
4419
4427
  return [[Ops$2.ScannedComponent, tag, attrs, component.args, child]];
4420
4428
  } else {
4421
- var buf = [];
4422
- buf.push([Ops$2.OpenElement, tag, []]);
4423
- buf.push.apply(buf, component.attrs);
4424
- buf.push([Ops$2.FlushElement]);
4425
- buf.push.apply(buf, component.statements);
4426
- buf.push([Ops$2.CloseElement]);
4427
- return buf;
4429
+ var buff = [];
4430
+ buff.push([Ops$2.OpenElement, tag, []]);
4431
+ this.specializeStatements(component.attrs, buff);
4432
+ buff.push([Ops$2.FlushElement]);
4433
+ this.specializeStatements(component.statements, buff);
4434
+ buff.push([Ops$2.CloseElement]);
4435
+ return buff;
4428
4436
  }
4429
4437
  };
4430
4438
 
@@ -6392,7 +6400,6 @@ enifed('@glimmer/runtime', ['exports', 'ember-babel', '@glimmer/util', '@glimmer
6392
6400
  };
6393
6401
 
6394
6402
  Environment.prototype.begin = function begin() {
6395
- (0, _util.assert)(!this._transaction, 'Cannot start a nested transaction');
6396
6403
  this._transaction = new Transaction();
6397
6404
  };
6398
6405
 
@@ -9661,12 +9668,12 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
9661
9668
 
9662
9669
  Container.prototype = {
9663
9670
  lookup: function (fullName, options) {
9664
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName)));
9671
+ (true && !(this.registry.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName)));
9665
9672
 
9666
9673
  return lookup(this, this.registry.normalize(fullName), options);
9667
9674
  },
9668
9675
  lookupFactory: function (fullName, options) {
9669
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName)));
9676
+ (true && !(this.registry.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(fullName)));
9670
9677
  (true && !(false) && (0, _emberDebug.deprecate)('Using "_lookupFactory" is deprecated. Please use container.factoryFor instead.', false, { id: 'container-lookupFactory', until: '2.13.0', url: 'http://emberjs.com/deprecations/v2.x/#toc_migrating-from-_lookupfactory-to-factoryfor' }));
9671
9678
 
9672
9679
 
@@ -9693,7 +9700,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
9693
9700
 
9694
9701
  var normalizedName = this.registry.normalize(fullName);
9695
9702
 
9696
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(normalizedName)));
9703
+ (true && !(this.registry.validateFullName(normalizedName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.registry.validateFullName(normalizedName)));
9697
9704
 
9698
9705
 
9699
9706
  if (options.source) {
@@ -10261,7 +10268,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10261
10268
  },
10262
10269
  register: function (fullName, factory) {
10263
10270
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
10264
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10271
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10265
10272
 
10266
10273
 
10267
10274
  if (factory === undefined) {
@@ -10279,7 +10286,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10279
10286
  this._options[normalizedName] = options;
10280
10287
  },
10281
10288
  unregister: function (fullName) {
10282
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10289
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10283
10290
 
10284
10291
 
10285
10292
  var normalizedName = this.normalize(fullName);
@@ -10292,7 +10299,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10292
10299
  delete this._options[normalizedName];
10293
10300
  },
10294
10301
  resolve: function (fullName, options) {
10295
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10302
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10296
10303
 
10297
10304
  var factory = resolve(this, this.normalize(fullName), options);
10298
10305
  if (factory === undefined && this.fallback) {
@@ -10383,7 +10390,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10383
10390
  }
10384
10391
  },
10385
10392
  typeInjection: function (type, property, fullName) {
10386
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10393
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10387
10394
 
10388
10395
 
10389
10396
  var fullNameType = fullName.split(':')[0];
@@ -10406,7 +10413,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10406
10413
  return this.typeInjection(fullName, property, normalizedInjectionName);
10407
10414
  }
10408
10415
 
10409
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10416
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10410
10417
 
10411
10418
  var normalizedName = this.normalize(fullName);
10412
10419
 
@@ -10487,7 +10494,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10487
10494
  for (var i = 0; i < injections.length; i++) {
10488
10495
  fullName = injections[i].fullName;
10489
10496
 
10490
- (true && (0, _emberDebug.assert)('Attempting to inject an unknown injection: \'' + fullName + '\'', this.has(fullName)));
10497
+ (true && !(this.has(fullName)) && (0, _emberDebug.assert)('Attempting to inject an unknown injection: \'' + fullName + '\'', this.has(fullName)));
10491
10498
  }
10492
10499
  },
10493
10500
  normalizeInjectionsHash: function (hash) {
@@ -10495,7 +10502,7 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10495
10502
 
10496
10503
  for (var key in hash) {
10497
10504
  if (hash.hasOwnProperty(key)) {
10498
- (true && (0, _emberDebug.assert)('Expected a proper full name, given \'' + hash[key] + '\'', this.validateFullName(hash[key])));
10505
+ (true && !(this.validateFullName(hash[key])) && (0, _emberDebug.assert)('Expected a proper full name, given \'' + hash[key] + '\'', this.validateFullName(hash[key])));
10499
10506
 
10500
10507
 
10501
10508
  injections.push({
@@ -10565,9 +10572,9 @@ enifed('container', ['exports', 'ember-babel', 'ember-utils', 'ember-debug', 'em
10565
10572
  */
10566
10573
  Registry.prototype.expandLocalLookup = function Registry_expandLocalLookup(fullName, options) {
10567
10574
  if (this.resolver && this.resolver.expandLocalLookup) {
10568
- (true && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10569
- (true && (0, _emberDebug.assert)('options.source must be provided to expandLocalLookup', options && options.source));
10570
- (true && (0, _emberDebug.assert)('options.source must be a proper full name', this.validateFullName(options.source)));
10575
+ (true && !(this.validateFullName(fullName)) && (0, _emberDebug.assert)('fullName must be a proper full name', this.validateFullName(fullName)));
10576
+ (true && !(options && options.source) && (0, _emberDebug.assert)('options.source must be provided to expandLocalLookup', options && options.source));
10577
+ (true && !(this.validateFullName(options.source)) && (0, _emberDebug.assert)('options.source must be a proper full name', this.validateFullName(options.source)));
10571
10578
 
10572
10579
 
10573
10580
  var normalizedFullName = this.normalize(fullName);
@@ -11712,13 +11719,13 @@ enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember
11712
11719
  // Continues to `didBecomeReady`
11713
11720
  },
11714
11721
  deferReadiness: function () {
11715
- (true && (0, _emberDebug.assert)('You must call deferReadiness on an instance of Ember.Application', this instanceof Application));
11716
- (true && (0, _emberDebug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0));
11722
+ (true && !(this instanceof Application) && (0, _emberDebug.assert)('You must call deferReadiness on an instance of Ember.Application', this instanceof Application));
11723
+ (true && !(this._readinessDeferrals > 0) && (0, _emberDebug.assert)('You cannot defer readiness since the `ready()` hook has already been called.', this._readinessDeferrals > 0));
11717
11724
 
11718
11725
  this._readinessDeferrals++;
11719
11726
  },
11720
11727
  advanceReadiness: function () {
11721
- (true && (0, _emberDebug.assert)('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application));
11728
+ (true && !(this instanceof Application) && (0, _emberDebug.assert)('You must call advanceReadiness on an instance of Ember.Application', this instanceof Application));
11722
11729
 
11723
11730
  this._readinessDeferrals--;
11724
11731
 
@@ -11766,7 +11773,7 @@ enifed('ember-application/system/application', ['exports', 'ember-babel', 'ember
11766
11773
  }
11767
11774
  },
11768
11775
  reset: function () {
11769
- (true && (0, _emberDebug.assert)('Calling reset() on instances of `Ember.Application` is not\n supported when globals mode is disabled; call `visit()` to\n create new `Ember.ApplicationInstance`s and dispose them\n via their `destroy()` method instead.', this._globalsMode && this.autoboot));
11776
+ (true && !(this._globalsMode && this.autoboot) && (0, _emberDebug.assert)('Calling reset() on instances of `Ember.Application` is not\n supported when globals mode is disabled; call `visit()` to\n create new `Ember.ApplicationInstance`s and dispose them\n via their `destroy()` method instead.', this._globalsMode && this.autoboot));
11770
11777
 
11771
11778
 
11772
11779
  var instance = this.__deprecatedInstance__;
@@ -12013,7 +12020,7 @@ enifed('ember-application/system/engine-instance', ['exports', 'ember-babel', 'e
12013
12020
  return this;
12014
12021
  }
12015
12022
 
12016
- (true && (0, _emberDebug.assert)('An engine instance\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', (0, _engineParent.getEngineParent)(this)));
12023
+ (true && !((0, _engineParent.getEngineParent)(this)) && (0, _emberDebug.assert)('An engine instance\'s parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.', (0, _engineParent.getEngineParent)(this)));
12017
12024
 
12018
12025
 
12019
12026
  this.cloneParentDependencies();
@@ -12205,7 +12212,7 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
12205
12212
  var _this = this;
12206
12213
 
12207
12214
  this._runInitializer('initializers', function (name, initializer) {
12208
- (true && (0, _emberDebug.assert)('No application initializer named \'' + name + '\'', !!initializer));
12215
+ (true && !(!!initializer) && (0, _emberDebug.assert)('No application initializer named \'' + name + '\'', !!initializer));
12209
12216
 
12210
12217
  if (initializer.initialize.length === 2) {
12211
12218
  (true && !(false) && (0, _emberDebug.deprecate)('The `initialize` method for Application initializer \'' + name + '\' should take only one argument - `App`, an instance of an `Application`.', false, {
@@ -12223,7 +12230,7 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
12223
12230
  },
12224
12231
  runInstanceInitializers: function (instance) {
12225
12232
  this._runInitializer('instanceInitializers', function (name, initializer) {
12226
- (true && (0, _emberDebug.assert)('No instance initializer named \'' + name + '\'', !!initializer));
12233
+ (true && !(!!initializer) && (0, _emberDebug.assert)('No instance initializer named \'' + name + '\'', !!initializer));
12227
12234
 
12228
12235
  initializer.initialize(instance);
12229
12236
  });
@@ -12466,9 +12473,9 @@ enifed('ember-application/system/engine', ['exports', 'ember-babel', 'ember-util
12466
12473
  this.reopenClass(attrs);
12467
12474
  }
12468
12475
 
12469
- (true && (0, _emberDebug.assert)('The ' + humanName + ' \'' + initializer.name + '\' has already been registered', !this[bucketName][initializer.name]));
12470
- (true && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without an initialize function', (0, _emberUtils.canInvoke)(initializer, 'initialize')));
12471
- (true && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined));
12476
+ (true && !(!this[bucketName][initializer.name]) && (0, _emberDebug.assert)('The ' + humanName + ' \'' + initializer.name + '\' has already been registered', !this[bucketName][initializer.name]));
12477
+ (true && !((0, _emberUtils.canInvoke)(initializer, 'initialize')) && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without an initialize function', (0, _emberUtils.canInvoke)(initializer, 'initialize')));
12478
+ (true && !(initializer.name !== undefined) && (0, _emberDebug.assert)('An ' + humanName + ' cannot be registered without a name property', initializer.name !== undefined));
12472
12479
 
12473
12480
 
12474
12481
  this[bucketName][initializer.name] = initializer;
@@ -12629,7 +12636,7 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
12629
12636
  type = _fullName$split[0],
12630
12637
  name = _fullName$split[1];
12631
12638
 
12632
- (true && (0, _emberDebug.assert)('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2));
12639
+ (true && !(fullName.split(':').length === 2) && (0, _emberDebug.assert)('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2));
12633
12640
 
12634
12641
 
12635
12642
  if (type !== 'template') {
@@ -12723,7 +12730,7 @@ enifed('ember-application/system/resolver', ['exports', 'ember-utils', 'ember-me
12723
12730
  var namespaceName = _emberRuntime.String.capitalize(parts.slice(0, -1).join('.'));
12724
12731
  root = _emberRuntime.Namespace.byName(namespaceName);
12725
12732
 
12726
- (true && (0, _emberDebug.assert)('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root));
12733
+ (true && !(root) && (0, _emberDebug.assert)('You are looking for a ' + name + ' ' + type + ' in the ' + namespaceName + ' namespace, but the namespace could not be found', root));
12727
12734
  }
12728
12735
 
12729
12736
  var resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : _emberRuntime.String.classify(type);
@@ -12985,7 +12992,7 @@ enifed('ember-application/utils/validate-type', ['exports', 'ember-debug'], func
12985
12992
  var action = validationAttributes[0],
12986
12993
  factoryFlag = validationAttributes[1],
12987
12994
  expectedType = validationAttributes[2];
12988
- (true && (0, _emberDebug.assert)('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]));
12995
+ (true && !(!!resolvedType[factoryFlag]) && (0, _emberDebug.assert)('Expected ' + parsedName.fullName + ' to resolve to an ' + expectedType + ' but ' + ('instead it was ' + resolvedType + '.'), !!resolvedType[factoryFlag]));
12989
12996
  }
12990
12997
  });
12991
12998
  enifed('ember-babel', ['exports'], function (exports) {
@@ -13206,11 +13213,14 @@ enifed('ember-console', ['exports', 'ember-environment'], function (exports, _em
13206
13213
  enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console', 'ember-environment', 'ember-debug/handlers'], function (exports, _error, _emberConsole, _emberEnvironment, _handlers) {
13207
13214
  'use strict';
13208
13215
 
13209
- exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = undefined;
13210
- exports.registerHandler = registerHandler;
13211
- exports.default = deprecate;
13216
+ exports.missingOptionsUntilDeprecation = exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = exports.registerHandler = undefined;
13212
13217
 
13213
13218
 
13219
+ /**
13220
+ @module ember
13221
+ @submodule ember-debug
13222
+ */
13223
+
13214
13224
  /**
13215
13225
  Allows for runtime registration of handler functions that override the default deprecation behavior.
13216
13226
  Deprecations are invoked by calls to [Ember.deprecate](http://emberjs.com/api/classes/Ember.html#method_deprecate).
@@ -13246,144 +13256,150 @@ enifed('ember-debug/deprecate', ['exports', 'ember-debug/error', 'ember-console'
13246
13256
  @param handler {Function} A function to handle deprecation calls.
13247
13257
  @since 2.1.0
13248
13258
  */
13249
- /*global __fail__*/
13250
-
13251
- function registerHandler(handler) {
13252
- (0, _handlers.registerHandler)('deprecate', handler);
13253
- }
13259
+ var registerHandler = function () {}; /*global __fail__*/
13254
13260
 
13255
- function formatMessage(_message, options) {
13256
- var message = _message;
13261
+ var missingOptionsDeprecation = void 0,
13262
+ missingOptionsIdDeprecation = void 0,
13263
+ missingOptionsUntilDeprecation = void 0,
13264
+ deprecate = void 0;
13257
13265
 
13258
- if (options && options.id) {
13259
- message = message + (' [deprecation id: ' + options.id + ']');
13260
- }
13266
+ if (true) {
13267
+ exports.registerHandler = registerHandler = function registerHandler(handler) {
13268
+ (0, _handlers.registerHandler)('deprecate', handler);
13269
+ };
13261
13270
 
13262
- if (options && options.url) {
13263
- message += ' See ' + options.url + ' for more details.';
13264
- }
13271
+ var formatMessage = function formatMessage(_message, options) {
13272
+ var message = _message;
13265
13273
 
13266
- return message;
13267
- }
13274
+ if (options && options.id) {
13275
+ message = message + (' [deprecation id: ' + options.id + ']');
13276
+ }
13268
13277
 
13269
- registerHandler(function logDeprecationToConsole(message, options) {
13270
- var updatedMessage = formatMessage(message, options);
13278
+ if (options && options.url) {
13279
+ message += ' See ' + options.url + ' for more details.';
13280
+ }
13271
13281
 
13272
- _emberConsole.default.warn('DEPRECATION: ' + updatedMessage);
13273
- });
13282
+ return message;
13283
+ };
13274
13284
 
13275
- var captureErrorForStack = void 0;
13285
+ registerHandler(function logDeprecationToConsole(message, options) {
13286
+ var updatedMessage = formatMessage(message, options);
13276
13287
 
13277
- if (new Error().stack) {
13278
- captureErrorForStack = function () {
13279
- return new Error();
13280
- };
13281
- } else {
13282
- captureErrorForStack = function () {
13283
- try {
13284
- __fail__.fail();
13285
- } catch (e) {
13286
- return e;
13287
- }
13288
- };
13289
- }
13288
+ _emberConsole.default.warn('DEPRECATION: ' + updatedMessage);
13289
+ });
13290
13290
 
13291
- registerHandler(function logDeprecationStackTrace(message, options, next) {
13292
- if (_emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {
13293
- var stackStr = '';
13294
- var error = captureErrorForStack();
13295
- var stack = void 0;
13291
+ var captureErrorForStack = void 0;
13296
13292
 
13297
- if (error.stack) {
13298
- if (error['arguments']) {
13299
- // Chrome
13300
- stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n');
13301
- stack.shift();
13302
- } else {
13303
- // Firefox
13304
- stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n');
13293
+ if (new Error().stack) {
13294
+ captureErrorForStack = function () {
13295
+ return new Error();
13296
+ };
13297
+ } else {
13298
+ captureErrorForStack = function () {
13299
+ try {
13300
+ __fail__.fail();
13301
+ } catch (e) {
13302
+ return e;
13305
13303
  }
13304
+ };
13305
+ }
13306
13306
 
13307
- stackStr = '\n ' + stack.slice(2).join('\n ');
13308
- }
13307
+ registerHandler(function logDeprecationStackTrace(message, options, next) {
13308
+ if (_emberEnvironment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {
13309
+ var stackStr = '';
13310
+ var error = captureErrorForStack();
13311
+ var stack = void 0;
13309
13312
 
13310
- var updatedMessage = formatMessage(message, options);
13313
+ if (error.stack) {
13314
+ if (error['arguments']) {
13315
+ // Chrome
13316
+ stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n');
13317
+ stack.shift();
13318
+ } else {
13319
+ // Firefox
13320
+ stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n');
13321
+ }
13311
13322
 
13312
- _emberConsole.default.warn('DEPRECATION: ' + updatedMessage + stackStr);
13313
- } else {
13314
- next.apply(undefined, arguments);
13315
- }
13316
- });
13323
+ stackStr = '\n ' + stack.slice(2).join('\n ');
13324
+ }
13317
13325
 
13318
- registerHandler(function raiseOnDeprecation(message, options, next) {
13319
- if (_emberEnvironment.ENV.RAISE_ON_DEPRECATION) {
13320
- var updatedMessage = formatMessage(message);
13326
+ var updatedMessage = formatMessage(message, options);
13321
13327
 
13322
- throw new _error.default(updatedMessage);
13323
- } else {
13324
- next.apply(undefined, arguments);
13325
- }
13326
- });
13328
+ _emberConsole.default.warn('DEPRECATION: ' + updatedMessage + stackStr);
13329
+ } else {
13330
+ next.apply(undefined, arguments);
13331
+ }
13332
+ });
13327
13333
 
13328
- var missingOptionsDeprecation = exports.missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
13329
- var missingOptionsIdDeprecation = exports.missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';
13330
- var missingOptionsUntilDeprecation = exports.missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';
13334
+ registerHandler(function raiseOnDeprecation(message, options, next) {
13335
+ if (_emberEnvironment.ENV.RAISE_ON_DEPRECATION) {
13336
+ var updatedMessage = formatMessage(message);
13331
13337
 
13332
- /**
13333
- @module ember
13334
- @submodule ember-debug
13335
- */
13338
+ throw new _error.default(updatedMessage);
13339
+ } else {
13340
+ next.apply(undefined, arguments);
13341
+ }
13342
+ });
13336
13343
 
13337
- /**
13338
- Display a deprecation warning with the provided message and a stack trace
13339
- (Chrome and Firefox only).
13340
-
13341
- * In a production build, this method is defined as an empty function (NOP).
13342
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13343
-
13344
- @method deprecate
13345
- @param {String} message A description of the deprecation.
13346
- @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
13347
- @param {Object} options
13348
- @param {String} options.id A unique id for this deprecation. The id can be
13349
- used by Ember debugging tools to change the behavior (raise, log or silence)
13350
- for that specific deprecation. The id should be namespaced by dots, e.g.
13351
- "view.helper.select".
13352
- @param {string} options.until The version of Ember when this deprecation
13353
- warning will be removed.
13354
- @param {String} [options.url] An optional url to the transition guide on the
13355
- emberjs.com website.
13356
- @for Ember
13357
- @public
13358
- @since 1.0.0
13359
- */
13360
- function deprecate(message, test, options) {
13361
- if (!options || !options.id && !options.until) {
13362
- deprecate(missingOptionsDeprecation, false, {
13363
- id: 'ember-debug.deprecate-options-missing',
13364
- until: '3.0.0',
13365
- url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13366
- });
13367
- }
13344
+ exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
13345
+ exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.deprecate` you must provide `id` in options.';
13346
+ exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `Ember.deprecate` you must provide `until` in options.';
13368
13347
 
13369
- if (options && !options.id) {
13370
- deprecate(missingOptionsIdDeprecation, false, {
13371
- id: 'ember-debug.deprecate-id-missing',
13372
- until: '3.0.0',
13373
- url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13374
- });
13375
- }
13348
+ /**
13349
+ Display a deprecation warning with the provided message and a stack trace
13350
+ (Chrome and Firefox only).
13351
+ * In a production build, this method is defined as an empty function (NOP).
13352
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13353
+ @method deprecate
13354
+ @param {String} message A description of the deprecation.
13355
+ @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
13356
+ @param {Object} options
13357
+ @param {String} options.id A unique id for this deprecation. The id can be
13358
+ used by Ember debugging tools to change the behavior (raise, log or silence)
13359
+ for that specific deprecation. The id should be namespaced by dots, e.g.
13360
+ "view.helper.select".
13361
+ @param {string} options.until The version of Ember when this deprecation
13362
+ warning will be removed.
13363
+ @param {String} [options.url] An optional url to the transition guide on the
13364
+ emberjs.com website.
13365
+ @for Ember
13366
+ @public
13367
+ @since 1.0.0
13368
+ */
13369
+ deprecate = function deprecate(message, test, options) {
13370
+ if (!options || !options.id && !options.until) {
13371
+ deprecate(missingOptionsDeprecation, false, {
13372
+ id: 'ember-debug.deprecate-options-missing',
13373
+ until: '3.0.0',
13374
+ url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13375
+ });
13376
+ }
13376
13377
 
13377
- if (options && !options.until) {
13378
- deprecate(missingOptionsUntilDeprecation, options && options.until, {
13379
- id: 'ember-debug.deprecate-until-missing',
13380
- until: '3.0.0',
13381
- url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13382
- });
13383
- }
13378
+ if (options && !options.id) {
13379
+ deprecate(missingOptionsIdDeprecation, false, {
13380
+ id: 'ember-debug.deprecate-id-missing',
13381
+ until: '3.0.0',
13382
+ url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13383
+ });
13384
+ }
13384
13385
 
13385
- _handlers.invoke.apply(undefined, ['deprecate'].concat(Array.prototype.slice.call(arguments)));
13386
+ if (options && !options.until) {
13387
+ deprecate(missingOptionsUntilDeprecation, options && options.until, {
13388
+ id: 'ember-debug.deprecate-until-missing',
13389
+ until: '3.0.0',
13390
+ url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13391
+ });
13392
+ }
13393
+
13394
+ _handlers.invoke.apply(undefined, ['deprecate'].concat(Array.prototype.slice.call(arguments)));
13395
+ };
13386
13396
  }
13397
+
13398
+ exports.default = deprecate;
13399
+ exports.registerHandler = registerHandler;
13400
+ exports.missingOptionsDeprecation = missingOptionsDeprecation;
13401
+ exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;
13402
+ exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation;
13387
13403
  });
13388
13404
  enifed("ember-debug/error", ["exports", "ember-babel"], function (exports, _emberBabel) {
13389
13405
  "use strict";
@@ -13496,37 +13512,43 @@ enifed('ember-debug/features', ['exports', 'ember-environment', 'ember/features'
13496
13512
  }
13497
13513
  }
13498
13514
  });
13499
- enifed("ember-debug/handlers", ["exports"], function (exports) {
13500
- "use strict";
13515
+ enifed('ember-debug/handlers', ['exports'], function (exports) {
13516
+ 'use strict';
13501
13517
 
13502
- exports.registerHandler = registerHandler;
13503
- exports.invoke = invoke;
13504
13518
  var HANDLERS = exports.HANDLERS = {};
13505
13519
 
13506
- function registerHandler(type, callback) {
13507
- var nextHandler = HANDLERS[type] || function () {};
13520
+ var registerHandler = function () {};
13521
+ var invoke = function () {};
13522
+
13523
+ if (true) {
13524
+ exports.registerHandler = registerHandler = function registerHandler(type, callback) {
13525
+ var nextHandler = HANDLERS[type] || function () {};
13508
13526
 
13509
- HANDLERS[type] = function (message, options) {
13510
- callback(message, options, nextHandler);
13527
+ HANDLERS[type] = function (message, options) {
13528
+ callback(message, options, nextHandler);
13529
+ };
13511
13530
  };
13512
- }
13513
13531
 
13514
- function invoke(type, message, test, options) {
13515
- if (test) {
13516
- return;
13517
- }
13532
+ exports.invoke = invoke = function invoke(type, message, test, options) {
13533
+ if (test) {
13534
+ return;
13535
+ }
13518
13536
 
13519
- var handlerForType = HANDLERS[type];
13537
+ var handlerForType = HANDLERS[type];
13520
13538
 
13521
- if (handlerForType) {
13522
- handlerForType(message, options);
13523
- }
13539
+ if (handlerForType) {
13540
+ handlerForType(message, options);
13541
+ }
13542
+ };
13524
13543
  }
13544
+
13545
+ exports.registerHandler = registerHandler;
13546
+ exports.invoke = invoke;
13525
13547
  });
13526
13548
  enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/deprecate', 'ember-debug/features', 'ember-debug/error', 'ember-debug/testing', 'ember-environment', 'ember-console', 'ember/features'], function (exports, _warn2, _deprecate2, _features, _error, _testing, _emberEnvironment, _emberConsole, _features2) {
13527
13549
  'use strict';
13528
13550
 
13529
- exports.runningNonEmberDebugJS = exports.debugFunctions = exports.setTesting = exports.isTesting = exports.Error = exports.isFeatureEnabled = exports.registerDeprecationHandler = exports.registerWarnHandler = undefined;
13551
+ exports._warnIfUsingStrippedFeatureFlags = exports.getDebugFunction = exports.setDebugFunction = exports.deprecateFunc = exports.runInDebug = exports.debugFreeze = exports.debugSeal = exports.deprecate = exports.debug = exports.warn = exports.info = exports.assert = exports.setTesting = exports.isTesting = exports.Error = exports.isFeatureEnabled = exports.registerDeprecationHandler = exports.registerWarnHandler = undefined;
13530
13552
  Object.defineProperty(exports, 'registerWarnHandler', {
13531
13553
  enumerable: true,
13532
13554
  get: function () {
@@ -13563,35 +13585,75 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
13563
13585
  return _testing.setTesting;
13564
13586
  }
13565
13587
  });
13566
- exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
13567
- exports.getDebugFunction = getDebugFunction;
13568
- exports.setDebugFunction = setDebugFunction;
13569
- exports.assert = assert;
13570
- exports.info = info;
13571
- exports.warn = warn;
13572
- exports.debug = debug;
13573
- exports.deprecate = deprecate;
13574
- exports.deprecateFunc = deprecateFunc;
13575
- exports.runInDebug = runInDebug;
13576
- exports.debugSeal = debugSeal;
13577
- exports.debugFreeze = debugFreeze;
13578
13588
  var DEFAULT_FEATURES = _features2.DEFAULT_FEATURES,
13579
13589
  FEATURES = _features2.FEATURES;
13580
- var debugFunctions = exports.debugFunctions = {
13581
- assert: function () {},
13582
- info: function () {},
13583
- warn: function () {},
13584
- debug: function () {},
13585
- deprecate: function () {},
13586
- deprecateFunc: function () {
13587
- var _ref;
13588
13590
 
13589
- return _ref = arguments.length - 1, arguments.length <= _ref ? undefined : arguments[_ref];
13590
- },
13591
- debugSeal: function () {},
13592
- debugFreeze: function () {}
13591
+
13592
+ // These are the default production build versions:
13593
+ var assert = function () {};
13594
+ var info = function () {};
13595
+ var warn = function () {};
13596
+ var debug = function () {};
13597
+ var deprecate = function () {};
13598
+ var debugSeal = function () {};
13599
+ var debugFreeze = function () {};
13600
+ var runInDebug = function () {};
13601
+
13602
+ var deprecateFunc = function () {
13603
+ return arguments[arguments.length - 1];
13593
13604
  };
13594
13605
 
13606
+ var setDebugFunction = function () {};
13607
+ var getDebugFunction = function () {};
13608
+
13609
+ if (true) {
13610
+ exports.setDebugFunction = setDebugFunction = function (type, callback) {
13611
+ switch (type) {
13612
+ case 'assert':
13613
+ return exports.assert = assert = callback;
13614
+ case 'info':
13615
+ return exports.info = info = callback;
13616
+ case 'warn':
13617
+ return exports.warn = warn = callback;
13618
+ case 'debug':
13619
+ return exports.debug = debug = callback;
13620
+ case 'deprecate':
13621
+ return exports.deprecate = deprecate = callback;
13622
+ case 'debugSeal':
13623
+ return exports.debugSeal = debugSeal = callback;
13624
+ case 'debugFreeze':
13625
+ return exports.debugFreeze = debugFreeze = callback;
13626
+ case 'runInDebug':
13627
+ return exports.runInDebug = runInDebug = callback;
13628
+ case 'deprecateFunc':
13629
+ return exports.deprecateFunc = deprecateFunc = callback;
13630
+ }
13631
+ };
13632
+
13633
+ exports.getDebugFunction = getDebugFunction = function (type) {
13634
+ switch (type) {
13635
+ case 'assert':
13636
+ return assert;
13637
+ case 'info':
13638
+ return info;
13639
+ case 'warn':
13640
+ return warn;
13641
+ case 'debug':
13642
+ return debug;
13643
+ case 'deprecate':
13644
+ return deprecate;
13645
+ case 'debugSeal':
13646
+ return debugSeal;
13647
+ case 'debugFreeze':
13648
+ return debugFreeze;
13649
+ case 'runInDebug':
13650
+ return runInDebug;
13651
+ case 'deprecateFunc':
13652
+ return deprecateFunc;
13653
+ }
13654
+ };
13655
+ }
13656
+
13595
13657
  /**
13596
13658
  @module ember
13597
13659
  @submodule ember-debug
@@ -13602,173 +13664,159 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
13602
13664
  @public
13603
13665
  */
13604
13666
 
13605
- /**
13606
- Define an assertion that will throw an exception if the condition is not met.
13607
-
13608
- * In a production build, this method is defined as an empty function (NOP).
13609
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13610
-
13611
- ```javascript
13612
- // Test for truthiness
13613
- Ember.assert('Must pass a valid object', obj);
13614
-
13615
- // Fail unconditionally
13616
- Ember.assert('This code path should never be run');
13617
- ```
13618
-
13619
- @method assert
13620
- @param {String} desc A description of the assertion. This will become
13621
- the text of the Error thrown if the assertion fails.
13622
- @param {Boolean} test Must be truthy for the assertion to pass. If
13623
- falsy, an exception will be thrown.
13624
- @public
13625
- @since 1.0.0
13626
- */
13627
- setDebugFunction('assert', function assert(desc, test) {
13628
- if (!test) {
13629
- throw new _error.default('Assertion Failed: ' + desc);
13630
- }
13631
- });
13667
+ if (true) {
13668
+ /**
13669
+ Define an assertion that will throw an exception if the condition is not met.
13670
+ * In a production build, this method is defined as an empty function (NOP).
13671
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13672
+ ```javascript
13673
+ // Test for truthiness
13674
+ Ember.assert('Must pass a valid object', obj);
13675
+ // Fail unconditionally
13676
+ Ember.assert('This code path should never be run');
13677
+ ```
13678
+ @method assert
13679
+ @param {String} desc A description of the assertion. This will become
13680
+ the text of the Error thrown if the assertion fails.
13681
+ @param {Boolean} test Must be truthy for the assertion to pass. If
13682
+ falsy, an exception will be thrown.
13683
+ @public
13684
+ @since 1.0.0
13685
+ */
13686
+ setDebugFunction('assert', function assert(desc, test) {
13687
+ if (!test) {
13688
+ throw new _error.default('Assertion Failed: ' + desc);
13689
+ }
13690
+ });
13632
13691
 
13633
- /**
13634
- Display a debug notice.
13635
-
13636
- * In a production build, this method is defined as an empty function (NOP).
13637
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13638
-
13639
- ```javascript
13640
- Ember.debug('I\'m a debug notice!');
13641
- ```
13642
-
13643
- @method debug
13644
- @param {String} message A debug message to display.
13645
- @public
13646
- */
13647
- setDebugFunction('debug', function debug(message) {
13648
- _emberConsole.default.debug('DEBUG: ' + message);
13649
- });
13692
+ /**
13693
+ Display a debug notice.
13694
+ * In a production build, this method is defined as an empty function (NOP).
13695
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13696
+ ```javascript
13697
+ Ember.debug('I\'m a debug notice!');
13698
+ ```
13699
+ @method debug
13700
+ @param {String} message A debug message to display.
13701
+ @public
13702
+ */
13703
+ setDebugFunction('debug', function debug(message) {
13704
+ _emberConsole.default.debug('DEBUG: ' + message);
13705
+ });
13650
13706
 
13651
- /**
13652
- Display an info notice.
13653
-
13654
- * In a production build, this method is defined as an empty function (NOP).
13655
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13656
-
13657
- @method info
13658
- @private
13659
- */
13660
- setDebugFunction('info', function info() {
13661
- _emberConsole.default.info.apply(undefined, arguments);
13662
- });
13707
+ /**
13708
+ Display an info notice.
13709
+ * In a production build, this method is defined as an empty function (NOP).
13710
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13711
+ @method info
13712
+ @private
13713
+ */
13714
+ setDebugFunction('info', function info() {
13715
+ _emberConsole.default.info.apply(undefined, arguments);
13716
+ });
13663
13717
 
13664
- /**
13665
- Alias an old, deprecated method with its new counterpart.
13666
-
13667
- Display a deprecation warning with the provided message and a stack trace
13668
- (Chrome and Firefox only) when the assigned method is called.
13669
-
13670
- * In a production build, this method is defined as an empty function (NOP).
13671
-
13672
- ```javascript
13673
- Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
13674
- ```
13675
-
13676
- @method deprecateFunc
13677
- @param {String} message A description of the deprecation.
13678
- @param {Object} [options] The options object for Ember.deprecate.
13679
- @param {Function} func The new function called to replace its deprecated counterpart.
13680
- @return {Function} A new function that wraps the original function with a deprecation warning
13681
- @private
13682
- */
13683
- setDebugFunction('deprecateFunc', function deprecateFunc() {
13684
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
13685
- args[_key] = arguments[_key];
13686
- }
13718
+ /**
13719
+ Alias an old, deprecated method with its new counterpart.
13720
+ Display a deprecation warning with the provided message and a stack trace
13721
+ (Chrome and Firefox only) when the assigned method is called.
13722
+ * In a production build, this method is defined as an empty function (NOP).
13723
+ ```javascript
13724
+ Ember.oldMethod = Ember.deprecateFunc('Please use the new, updated method', Ember.newMethod);
13725
+ ```
13726
+ @method deprecateFunc
13727
+ @param {String} message A description of the deprecation.
13728
+ @param {Object} [options] The options object for Ember.deprecate.
13729
+ @param {Function} func The new function called to replace its deprecated counterpart.
13730
+ @return {Function} A new function that wraps the original function with a deprecation warning
13731
+ @private
13732
+ */
13733
+ setDebugFunction('deprecateFunc', function deprecateFunc() {
13734
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
13735
+ args[_key] = arguments[_key];
13736
+ }
13687
13737
 
13688
- if (args.length === 3) {
13689
- var message = args[0],
13690
- options = args[1],
13691
- func = args[2];
13738
+ if (args.length === 3) {
13739
+ var message = args[0],
13740
+ options = args[1],
13741
+ func = args[2];
13692
13742
 
13693
- return function () {
13694
- deprecate(message, false, options);
13695
- return func.apply(this, arguments);
13696
- };
13697
- } else {
13698
- var _message = args[0],
13699
- _func = args[1];
13743
+ return function () {
13744
+ deprecate(message, false, options);
13745
+ return func.apply(this, arguments);
13746
+ };
13747
+ } else {
13748
+ var _message = args[0],
13749
+ _func = args[1];
13700
13750
 
13701
- return function () {
13702
- deprecate(_message);
13703
- return _func.apply(this, arguments);
13704
- };
13705
- }
13706
- });
13751
+ return function () {
13752
+ deprecate(_message);
13753
+ return _func.apply(this, arguments);
13754
+ };
13755
+ }
13756
+ });
13707
13757
 
13708
- /**
13709
- Run a function meant for debugging.
13710
-
13711
- * In a production build, this method is defined as an empty function (NOP).
13712
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13713
-
13714
- ```javascript
13715
- Ember.runInDebug(() => {
13716
- Ember.Component.reopen({
13717
- didInsertElement() {
13718
- console.log("I'm happy");
13719
- }
13758
+ /**
13759
+ Run a function meant for debugging.
13760
+ * In a production build, this method is defined as an empty function (NOP).
13761
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13762
+ ```javascript
13763
+ Ember.runInDebug(() => {
13764
+ Ember.Component.reopen({
13765
+ didInsertElement() {
13766
+ console.log("I'm happy");
13767
+ }
13768
+ });
13720
13769
  });
13770
+ ```
13771
+ @method runInDebug
13772
+ @param {Function} func The function to be executed.
13773
+ @since 1.5.0
13774
+ @public
13775
+ */
13776
+ setDebugFunction('runInDebug', function runInDebug(func) {
13777
+ func();
13721
13778
  });
13722
- ```
13723
-
13724
- @method runInDebug
13725
- @param {Function} func The function to be executed.
13726
- @since 1.5.0
13727
- @public
13728
- */
13729
- setDebugFunction('runInDebug', function runInDebug(func) {
13730
- func();
13731
- });
13732
13779
 
13733
- setDebugFunction('debugSeal', function debugSeal(obj) {
13734
- Object.seal(obj);
13735
- });
13780
+ setDebugFunction('debugSeal', function debugSeal(obj) {
13781
+ Object.seal(obj);
13782
+ });
13736
13783
 
13737
- setDebugFunction('debugFreeze', function debugFreeze(obj) {
13738
- Object.freeze(obj);
13739
- });
13784
+ setDebugFunction('debugFreeze', function debugFreeze(obj) {
13785
+ Object.freeze(obj);
13786
+ });
13740
13787
 
13741
- setDebugFunction('deprecate', _deprecate2.default);
13788
+ setDebugFunction('deprecate', _deprecate2.default);
13742
13789
 
13743
- setDebugFunction('warn', _warn2.default);
13790
+ setDebugFunction('warn', _warn2.default);
13791
+ }
13744
13792
 
13745
- /**
13746
- Will call `Ember.warn()` if ENABLE_OPTIONAL_FEATURES or
13747
- any specific FEATURES flag is truthy.
13748
-
13749
- This method is called automatically in debug canary builds.
13750
-
13751
- @private
13752
- @method _warnIfUsingStrippedFeatureFlags
13753
- @return {void}
13754
- */
13755
- function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {
13756
- if (featuresWereStripped) {
13757
- warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });
13793
+ var _warnIfUsingStrippedFeatureFlags = void 0;
13758
13794
 
13759
- var keys = Object.keys(FEATURES || {});
13760
- for (var i = 0; i < keys.length; i++) {
13761
- var key = keys[i];
13762
- if (key === 'isEnabled' || !(key in knownFeatures)) {
13763
- continue;
13764
- }
13795
+ if (true && !(0, _testing.isTesting)()) {
13796
+ /**
13797
+ Will call `Ember.warn()` if ENABLE_OPTIONAL_FEATURES or
13798
+ any specific FEATURES flag is truthy.
13799
+ This method is called automatically in debug canary builds.
13800
+ @private
13801
+ @method _warnIfUsingStrippedFeatureFlags
13802
+ @return {void}
13803
+ */
13804
+ exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags = function _warnIfUsingStrippedFeatureFlags(FEATURES, knownFeatures, featuresWereStripped) {
13805
+ if (featuresWereStripped) {
13806
+ warn('Ember.ENV.ENABLE_OPTIONAL_FEATURES is only available in canary builds.', !_emberEnvironment.ENV.ENABLE_OPTIONAL_FEATURES, { id: 'ember-debug.feature-flag-with-features-stripped' });
13765
13807
 
13766
- warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });
13808
+ var keys = Object.keys(FEATURES || {});
13809
+ for (var i = 0; i < keys.length; i++) {
13810
+ var key = keys[i];
13811
+ if (key === 'isEnabled' || !(key in knownFeatures)) {
13812
+ continue;
13813
+ }
13814
+
13815
+ warn('FEATURE["' + key + '"] is set as enabled, but FEATURE flags are only available in canary builds.', !FEATURES[key], { id: 'ember-debug.feature-flag-with-features-stripped' });
13816
+ }
13767
13817
  }
13768
- }
13769
- }
13818
+ };
13770
13819
 
13771
- if (!(0, _testing.isTesting)()) {
13772
13820
  // Complain if they're using FEATURE flags in builds other than canary
13773
13821
  FEATURES['features-stripped-test'] = true;
13774
13822
  var featuresWereStripped = true;
@@ -13801,65 +13849,18 @@ enifed('ember-debug/index', ['exports', 'ember-debug/warn', 'ember-debug/depreca
13801
13849
  }
13802
13850
  }
13803
13851
 
13804
- /*
13805
- We are transitioning away from `ember.js` to `ember.debug.js` to make
13806
- it much clearer that it is only for local development purposes.
13807
-
13808
- This flag value is changed by the tooling (by a simple string replacement)
13809
- so that if `ember.js` (which must be output for backwards compat reasons) is
13810
- used a nice helpful warning message will be printed out.
13811
- */
13812
- var runningNonEmberDebugJS = exports.runningNonEmberDebugJS = false;
13813
- if (runningNonEmberDebugJS) {
13814
- warn('Please use `ember.debug.js` instead of `ember.js` for development and debugging.');
13815
- }
13816
-
13817
- function getDebugFunction(name) {
13818
- return debugFunctions[name];
13819
- }
13820
-
13821
- function setDebugFunction(name, fn) {
13822
- debugFunctions[name] = fn;
13823
- }
13824
-
13825
- function assert() {
13826
- return debugFunctions.assert.apply(undefined, arguments);
13827
- }
13828
-
13829
- function info() {
13830
- return debugFunctions.info.apply(undefined, arguments);
13831
- }
13832
-
13833
- function warn() {
13834
- return debugFunctions.warn.apply(undefined, arguments);
13835
- }
13836
-
13837
- function debug() {
13838
- return debugFunctions.debug.apply(undefined, arguments);
13839
- }
13840
-
13841
- function deprecate() {
13842
- return debugFunctions.deprecate.apply(undefined, arguments);
13843
- }
13844
-
13845
- function deprecateFunc() {
13846
- return debugFunctions.deprecateFunc.apply(undefined, arguments);
13847
- }
13848
-
13849
- function runInDebug() {
13850
- return debugFunctions.runInDebug.apply(undefined, arguments);
13851
- }
13852
-
13853
- function debugSeal() {
13854
- return debugFunctions.debugSeal.apply(undefined, arguments);
13855
- }
13856
-
13857
- function debugFreeze() {
13858
- return debugFunctions.debugFreeze.apply(undefined, arguments);
13859
- }
13860
- });
13861
- enifed("ember-debug/run-in-debug", [], function () {
13862
- "use strict";
13852
+ exports.assert = assert;
13853
+ exports.info = info;
13854
+ exports.warn = warn;
13855
+ exports.debug = debug;
13856
+ exports.deprecate = deprecate;
13857
+ exports.debugSeal = debugSeal;
13858
+ exports.debugFreeze = debugFreeze;
13859
+ exports.runInDebug = runInDebug;
13860
+ exports.deprecateFunc = deprecateFunc;
13861
+ exports.setDebugFunction = setDebugFunction;
13862
+ exports.getDebugFunction = getDebugFunction;
13863
+ exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;
13863
13864
  });
13864
13865
  enifed("ember-debug/testing", ["exports"], function (exports) {
13865
13866
  "use strict";
@@ -13879,99 +13880,103 @@ enifed("ember-debug/testing", ["exports"], function (exports) {
13879
13880
  enifed('ember-debug/warn', ['exports', 'ember-console', 'ember-debug/deprecate', 'ember-debug/handlers'], function (exports, _emberConsole, _deprecate, _handlers) {
13880
13881
  'use strict';
13881
13882
 
13882
- exports.missingOptionsIdDeprecation = exports.missingOptionsDeprecation = undefined;
13883
- exports.registerHandler = registerHandler;
13884
- exports.default = warn;
13883
+ exports.missingOptionsDeprecation = exports.missingOptionsIdDeprecation = exports.registerHandler = undefined;
13885
13884
 
13886
13885
 
13887
- /**
13888
- Allows for runtime registration of handler functions that override the default warning behavior.
13889
- Warnings are invoked by calls made to [Ember.warn](http://emberjs.com/api/classes/Ember.html#method_warn).
13890
- The following example demonstrates its usage by registering a handler that does nothing overriding Ember's
13891
- default warning behavior.
13892
-
13893
- ```javascript
13894
- // next is not called, so no warnings get the default behavior
13895
- Ember.Debug.registerWarnHandler(() => {});
13896
- ```
13897
-
13898
- The handler function takes the following arguments:
13899
-
13900
- <ul>
13901
- <li> <code>message</code> - The message received from the warn call. </li>
13902
- <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>
13903
- <ul>
13904
- <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>
13905
- </ul>
13906
- <li> <code>next</code> - A function that calls into the previously registered handler.</li>
13907
- </ul>
13908
-
13909
- @public
13910
- @static
13911
- @method registerWarnHandler
13912
- @param handler {Function} A function to handle warnings.
13913
- @since 2.1.0
13914
- */
13915
- function registerHandler(handler) {
13916
- (0, _handlers.registerHandler)('warn', handler);
13917
- }
13918
-
13919
- registerHandler(function logWarning(message, options) {
13920
- _emberConsole.default.warn('WARNING: ' + message);
13921
- if ('trace' in _emberConsole.default) {
13922
- _emberConsole.default.trace();
13923
- }
13924
- });
13925
-
13926
- var missingOptionsDeprecation = exports.missingOptionsDeprecation = 'When calling `Ember.warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
13927
- var missingOptionsIdDeprecation = exports.missingOptionsIdDeprecation = 'When calling `Ember.warn` you must provide `id` in options.';
13886
+ var registerHandler = function () {};
13887
+ var warn = function () {};
13888
+ var missingOptionsDeprecation = void 0,
13889
+ missingOptionsIdDeprecation = void 0;
13928
13890
 
13929
13891
  /**
13930
13892
  @module ember
13931
13893
  @submodule ember-debug
13932
13894
  */
13933
13895
 
13934
- /**
13935
- Display a warning with the provided message.
13936
-
13937
- * In a production build, this method is defined as an empty function (NOP).
13938
- Uses of this method in Ember itself are stripped from the ember.prod.js build.
13939
-
13940
- @method warn
13941
- @param {String} message A warning to display.
13942
- @param {Boolean} test An optional boolean. If falsy, the warning
13943
- will be displayed.
13944
- @param {Object} options An object that can be used to pass a unique
13945
- `id` for this warning. The `id` can be used by Ember debugging tools
13946
- to change the behavior (raise, log, or silence) for that specific warning.
13947
- The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
13948
- @for Ember
13949
- @public
13950
- @since 1.0.0
13951
- */
13952
- function warn(message, test, options) {
13953
- if (arguments.length === 2 && typeof test === 'object') {
13954
- options = test;
13955
- test = false;
13956
- }
13957
- if (!options) {
13958
- (0, _deprecate.default)(missingOptionsDeprecation, false, {
13959
- id: 'ember-debug.warn-options-missing',
13960
- until: '3.0.0',
13961
- url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13962
- });
13963
- }
13896
+ if (true) {
13897
+ /**
13898
+ Allows for runtime registration of handler functions that override the default warning behavior.
13899
+ Warnings are invoked by calls made to [Ember.warn](http://emberjs.com/api/classes/Ember.html#method_warn).
13900
+ The following example demonstrates its usage by registering a handler that does nothing overriding Ember's
13901
+ default warning behavior.
13902
+ ```javascript
13903
+ // next is not called, so no warnings get the default behavior
13904
+ Ember.Debug.registerWarnHandler(() => {});
13905
+ ```
13906
+ The handler function takes the following arguments:
13907
+ <ul>
13908
+ <li> <code>message</code> - The message received from the warn call. </li>
13909
+ <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>
13910
+ <ul>
13911
+ <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>
13912
+ </ul>
13913
+ <li> <code>next</code> - A function that calls into the previously registered handler.</li>
13914
+ </ul>
13915
+ @public
13916
+ @static
13917
+ @method registerWarnHandler
13918
+ @param handler {Function} A function to handle warnings.
13919
+ @since 2.1.0
13920
+ */
13921
+ exports.registerHandler = registerHandler = function registerHandler(handler) {
13922
+ (0, _handlers.registerHandler)('warn', handler);
13923
+ };
13964
13924
 
13965
- if (options && !options.id) {
13966
- (0, _deprecate.default)(missingOptionsIdDeprecation, false, {
13967
- id: 'ember-debug.warn-id-missing',
13968
- until: '3.0.0',
13969
- url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13970
- });
13971
- }
13925
+ registerHandler(function logWarning(message, options) {
13926
+ _emberConsole.default.warn('WARNING: ' + message);
13927
+ if ('trace' in _emberConsole.default) {
13928
+ _emberConsole.default.trace();
13929
+ }
13930
+ });
13972
13931
 
13973
- (0, _handlers.invoke)('warn', message, test, options);
13932
+ exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `Ember.warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
13933
+ exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `Ember.warn` you must provide `id` in options.';
13934
+
13935
+ /**
13936
+ Display a warning with the provided message.
13937
+ * In a production build, this method is defined as an empty function (NOP).
13938
+ Uses of this method in Ember itself are stripped from the ember.prod.js build.
13939
+ @method warn
13940
+ @param {String} message A warning to display.
13941
+ @param {Boolean} test An optional boolean. If falsy, the warning
13942
+ will be displayed.
13943
+ @param {Object} options An object that can be used to pass a unique
13944
+ `id` for this warning. The `id` can be used by Ember debugging tools
13945
+ to change the behavior (raise, log, or silence) for that specific warning.
13946
+ The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped"
13947
+ @for Ember
13948
+ @public
13949
+ @since 1.0.0
13950
+ */
13951
+ warn = function warn(message, test, options) {
13952
+ if (arguments.length === 2 && typeof test === 'object') {
13953
+ options = test;
13954
+ test = false;
13955
+ }
13956
+ if (!options) {
13957
+ (0, _deprecate.default)(missingOptionsDeprecation, false, {
13958
+ id: 'ember-debug.warn-options-missing',
13959
+ until: '3.0.0',
13960
+ url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13961
+ });
13962
+ }
13963
+
13964
+ if (options && !options.id) {
13965
+ (0, _deprecate.default)(missingOptionsIdDeprecation, false, {
13966
+ id: 'ember-debug.warn-id-missing',
13967
+ until: '3.0.0',
13968
+ url: 'http://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options'
13969
+ });
13970
+ }
13971
+
13972
+ (0, _handlers.invoke)('warn', message, test, options);
13973
+ };
13974
13974
  }
13975
+
13976
+ exports.default = warn;
13977
+ exports.registerHandler = registerHandler;
13978
+ exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;
13979
+ exports.missingOptionsDeprecation = missingOptionsDeprecation;
13975
13980
  });
13976
13981
  enifed('ember-environment', ['exports'], function (exports) {
13977
13982
  'use strict';
@@ -14078,9 +14083,6 @@ enifed('ember-environment', ['exports'], function (exports) {
14078
14083
  */
14079
14084
  ENV.LOG_VERSION = defaultTrue(ENV.LOG_VERSION);
14080
14085
 
14081
- // default false
14082
- ENV.MODEL_FACTORY_INJECTIONS = defaultFalse(ENV.MODEL_FACTORY_INJECTIONS);
14083
-
14084
14086
  /**
14085
14087
  Debug parameter you can turn on. This will log all bindings that fire to
14086
14088
  the console. This should be disabled in production code. Note that you
@@ -14541,7 +14543,6 @@ enifed('ember-extension-support/data_adapter', ['exports', 'ember-utils', 'ember
14541
14543
  }
14542
14544
  // Even though we will filter again in `getModelTypes`,
14543
14545
  // we should not call `lookupFactory` on non-models
14544
- // (especially when `EmberENV.MODEL_FACTORY_INJECTIONS` is `true`)
14545
14546
  if (!_this5.detect(namespace[key])) {
14546
14547
  continue;
14547
14548
  }
@@ -15202,7 +15203,7 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
15202
15203
  }
15203
15204
 
15204
15205
  // If in a tagless component, assert that no event handlers are defined
15205
- (true && (0, _emberDebug.assert)('You can not define a function that handles DOM events in the `' + this + '` tagless component since it doesn\'t have any DOM element.', this.tagName !== '' || !this.renderer._destinedForDOM || !function () {
15206
+ (true && !(this.tagName !== '' || !this.renderer._destinedForDOM || !function () {
15206
15207
  var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main');
15207
15208
  var events = eventDispatcher && eventDispatcher._finalEvents || {};
15208
15209
 
@@ -15213,8 +15214,14 @@ enifed('ember-glimmer/component', ['exports', 'ember-utils', 'ember-views', 'emb
15213
15214
  return true; // indicate that the assertion should be triggered
15214
15215
  }
15215
15216
  }
15217
+ }()) && (0, _emberDebug.assert)('You can not define a function that handles DOM events in the `' + this + '` tagless component since it doesn\'t have any DOM element.', this.tagName !== '' || !this.renderer._destinedForDOM || !function () {
15218
+ var eventDispatcher = (0, _emberUtils.getOwner)(_this).lookup('event_dispatcher:main');var events = eventDispatcher && eventDispatcher._finalEvents || {};for (var key in events) {
15219
+ var methodName = events[key];if (typeof _this[methodName] === 'function') {
15220
+ return true;
15221
+ }
15222
+ }
15216
15223
  }()));
15217
- (true && (0, _emberDebug.assert)('You cannot use a computed property for the component\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor)));
15224
+ (true && !(!(this.tagName && this.tagName.isDescriptor)) && (0, _emberDebug.assert)('You cannot use a computed property for the component\'s `tagName` (' + this + ').', !(this.tagName && this.tagName.isDescriptor)));
15218
15225
  },
15219
15226
  rerender: function () {
15220
15227
  this[DIRTY_TAG].dirty();
@@ -15648,7 +15655,7 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
15648
15655
  try {
15649
15656
  routing.generateURL(qualifiedRouteName, models, queryParams);
15650
15657
  } catch (e) {
15651
- (true && (0, _emberDebug.assert)('You attempted to define a `{{link-to "' + qualifiedRouteName + '"}}` but did not pass the parameters required for generating its dynamic segments. ' + e.message));
15658
+ (true && !(false) && (0, _emberDebug.assert)('You attempted to define a `{{link-to "' + qualifiedRouteName + '"}}` but did not pass the parameters required for generating its dynamic segments. ' + e.message));
15652
15659
  }
15653
15660
  }
15654
15661
 
@@ -15715,12 +15722,16 @@ enifed('ember-glimmer/components/link-to', ['exports', 'ember-console', 'ember-d
15715
15722
  params = params.slice();
15716
15723
  }
15717
15724
 
15718
- (true && (0, _emberDebug.assert)('You must provide one or more parameters to the link-to component.', function () {
15725
+ (true && !(function () {
15719
15726
  if (!params) {
15720
15727
  return false;
15721
15728
  }
15722
15729
 
15723
15730
  return params.length;
15731
+ }()) && (0, _emberDebug.assert)('You must provide one or more parameters to the link-to component.', function () {
15732
+ if (!params) {
15733
+ return false;
15734
+ }return params.length;
15724
15735
  }()));
15725
15736
 
15726
15737
 
@@ -17104,7 +17115,7 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
17104
17115
  var self = void 0,
17105
17116
  fn = void 0;
17106
17117
 
17107
- (true && (0, _emberDebug.assert)('Action passed is null or undefined in (action) from ' + target + '.', !(0, _emberMetal.isNone)(action)));
17118
+ (true && !(!(0, _emberMetal.isNone)(action)) && (0, _emberDebug.assert)('Action passed is null or undefined in (action) from ' + target + '.', !(0, _emberMetal.isNone)(action)));
17108
17119
 
17109
17120
 
17110
17121
  if (typeof action[INVOKE] === 'function') {
@@ -17117,12 +17128,12 @@ enifed('ember-glimmer/helpers/action', ['exports', 'ember-utils', 'ember-metal',
17117
17128
  self = target;
17118
17129
  fn = target.actions && target.actions[action];
17119
17130
 
17120
- (true && (0, _emberDebug.assert)('An action named \'' + action + '\' was not found in ' + target, fn));
17131
+ (true && !(fn) && (0, _emberDebug.assert)('An action named \'' + action + '\' was not found in ' + target, fn));
17121
17132
  } else if (typeofAction === 'function') {
17122
17133
  self = context;
17123
17134
  fn = action;
17124
17135
  } else {
17125
- (true && (0, _emberDebug.assert)('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \'' + (debugKey || 'myAction') + '\')`) or a function available in ' + target + '.', false));
17136
+ (true && !(false) && (0, _emberDebug.assert)('An action could not be made for `' + (debugKey || action) + '` in ' + target + '. Please confirm that you are using either a quoted action name (i.e. `(action \'' + (debugKey || 'myAction') + '\')`) or a function available in ' + target + '.', false));
17126
17137
  }
17127
17138
  }
17128
17139
 
@@ -17191,15 +17202,15 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-babel', 'ember-util
17191
17202
  this.lastName = nameOrDef;
17192
17203
 
17193
17204
  if (typeof nameOrDef === 'string') {
17194
- (true && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend Ember.TextField or Ember.Checkbox to use it as a contextual component.', nameOrDef !== 'input'));
17195
- (true && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend Ember.TextArea to use it as a contextual component.', nameOrDef !== 'textarea'));
17205
+ (true && !(nameOrDef !== 'input') && (0, _emberDebug.assert)('You cannot use the input helper as a contextual helper. Please extend Ember.TextField or Ember.Checkbox to use it as a contextual component.', nameOrDef !== 'input'));
17206
+ (true && !(nameOrDef !== 'textarea') && (0, _emberDebug.assert)('You cannot use the textarea helper as a contextual helper. Please extend Ember.TextArea to use it as a contextual component.', nameOrDef !== 'textarea'));
17196
17207
 
17197
17208
  definition = env.getComponentDefinition([nameOrDef], symbolTable);
17198
- (true && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used "' + nameOrDef + '" via (component "' + nameOrDef + '")', definition));
17209
+ (true && !(definition) && (0, _emberDebug.assert)('The component helper cannot be used without a valid component name. You used "' + nameOrDef + '" via (component "' + nameOrDef + '")', definition));
17199
17210
  } else if ((0, _runtime.isComponentDefinition)(nameOrDef)) {
17200
17211
  definition = nameOrDef;
17201
17212
  } else {
17202
- (true && (0, _emberDebug.assert)('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef));
17213
+ (true && !(nameOrDef) && (0, _emberDebug.assert)('You cannot create a component from ' + nameOrDef + ' using the {{component}} helper', nameOrDef));
17203
17214
 
17204
17215
  return null;
17205
17216
  }
@@ -17603,7 +17614,7 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-babel', 'ember-debu
17603
17614
  case 3:
17604
17615
  return ConditionalHelperReference.create(positional.at(0), positional.at(1), positional.at(2));
17605
17616
  default:
17606
- (true && (0, _emberDebug.assert)('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired "Expired" expiryDate}}`.'));
17617
+ (true && !(false) && (0, _emberDebug.assert)('The inline form of the `if` helper expects two or three arguments, e.g. ' + '`{{if trialExpired "Expired" expiryDate}}`.'));
17607
17618
 
17608
17619
  }
17609
17620
  }
@@ -17637,7 +17648,7 @@ enifed('ember-glimmer/helpers/if-unless', ['exports', 'ember-babel', 'ember-debu
17637
17648
  case 3:
17638
17649
  return ConditionalHelperReference.create(positional.at(0), positional.at(2), positional.at(1));
17639
17650
  default:
17640
- (true && (0, _emberDebug.assert)('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin "Welcome back!"}}`.'));
17651
+ (true && !(false) && (0, _emberDebug.assert)('The inline form of the `unless` helper expects two or three arguments, e.g. ' + '`{{unless isFirstLogin "Welcome back!"}}`.'));
17641
17652
 
17642
17653
  }
17643
17654
  }
@@ -17747,7 +17758,7 @@ enifed('ember-glimmer/helpers/mut', ['exports', 'ember-utils', 'ember-debug', 'e
17747
17758
  //
17748
17759
  // This message is alright for the first case, but could be quite
17749
17760
  // confusing for the second case.
17750
- (true && (0, _emberDebug.assert)('You can only pass a path to mut', rawRef[_references.UPDATE]));
17761
+ (true && !(rawRef[_references.UPDATE]) && (0, _emberDebug.assert)('You can only pass a path to mut', rawRef[_references.UPDATE]));
17751
17762
 
17752
17763
 
17753
17764
  var wrappedRef = Object.create(rawRef);
@@ -17873,7 +17884,7 @@ enifed('ember-glimmer/helpers/query-param', ['exports', 'ember-utils', 'ember-gl
17873
17884
  function queryParams(_ref) {
17874
17885
  var positional = _ref.positional,
17875
17886
  named = _ref.named;
17876
- (true && (0, _emberDebug.assert)('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\'foo\') as opposed to just (query-params \'foo\')', positional.value().length === 0));
17887
+ (true && !(positional.value().length === 0) && (0, _emberDebug.assert)('The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName=\'foo\') as opposed to just (query-params \'foo\')', positional.value().length === 0));
17877
17888
 
17878
17889
 
17879
17890
  return _emberRouting.QueryParams.create({
@@ -17898,7 +17909,7 @@ enifed('ember-glimmer/helpers/unbound', ['exports', 'ember-debug', 'ember-glimme
17898
17909
  'use strict';
17899
17910
 
17900
17911
  exports.default = function (vm, args) {
17901
- (true && (0, _emberDebug.assert)('unbound helper cannot be called with multiple params or hash params', args.positional.values.length === 1 && args.named.keys.length === 0));
17912
+ (true && !(args.positional.values.length === 1 && args.named.keys.length === 0) && (0, _emberDebug.assert)('unbound helper cannot be called with multiple params or hash params', args.positional.values.length === 1 && args.named.keys.length === 0));
17902
17913
 
17903
17914
 
17904
17915
  return _references.UnboundReference.create(args.positional.at(0).value());
@@ -18237,7 +18248,7 @@ enifed('ember-glimmer/modifiers/action', ['exports', 'ember-babel', 'ember-utils
18237
18248
  target.send.apply(target, [actionName].concat(args));
18238
18249
  });
18239
18250
  } else {
18240
- (true && (0, _emberDebug.assert)('The action \'' + actionName + '\' did not exist on ' + target, typeof target[actionName] === 'function'));
18251
+ (true && !(typeof target[actionName] === 'function') && (0, _emberDebug.assert)('The action \'' + actionName + '\' did not exist on ' + target, typeof target[actionName] === 'function'));
18241
18252
 
18242
18253
  (0, _emberMetal.flaggedInstrument)('interaction.ember-action', payload, function () {
18243
18254
  target[actionName].apply(target, args);
@@ -18275,7 +18286,7 @@ enifed('ember-glimmer/modifiers/action', ['exports', 'ember-babel', 'ember-utils
18275
18286
  var actionLabel = actionNameRef._propertyKey;
18276
18287
  actionName = actionNameRef.value();
18277
18288
 
18278
- (true && (0, _emberDebug.assert)('You specified a quoteless path, `' + actionLabel + '`, 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 "' + actionLabel + '"}}).', typeof actionName === 'string' || typeof actionName === 'function'));
18289
+ (true && !(typeof actionName === 'string' || typeof actionName === 'function') && (0, _emberDebug.assert)('You specified a quoteless path, `' + actionLabel + '`, 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 "' + actionLabel + '"}}).', typeof actionName === 'string' || typeof actionName === 'function'));
18279
18290
  }
18280
18291
  }
18281
18292
 
@@ -18397,13 +18408,13 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
18397
18408
  };
18398
18409
 
18399
18410
  DynamicScope.prototype.get = function get(key) {
18400
- (true && (0, _emberDebug.assert)('Using `-get-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState'));
18411
+ (true && !(key === 'outletState') && (0, _emberDebug.assert)('Using `-get-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState'));
18401
18412
 
18402
18413
  return this.outletState;
18403
18414
  };
18404
18415
 
18405
18416
  DynamicScope.prototype.set = function set(key, value) {
18406
- (true && (0, _emberDebug.assert)('Using `-with-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState'));
18417
+ (true && !(key === 'outletState') && (0, _emberDebug.assert)('Using `-with-dynamic-scope` is only supported for `outletState` (you used `' + key + '`).', key === 'outletState'));
18407
18418
 
18408
18419
  this.outletState = value;
18409
18420
  return value;
@@ -18417,7 +18428,7 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
18417
18428
  var _this = this;
18418
18429
 
18419
18430
  (0, _emberBabel.classCallCheck)(this, RootState);
18420
- (true && (0, _emberDebug.assert)('You cannot render `' + self.value() + '` without a template.', template));
18431
+ (true && !(template) && (0, _emberDebug.assert)('You cannot render `' + self.value() + '` without a template.', template));
18421
18432
 
18422
18433
 
18423
18434
  this.id = (0, _emberViews.getViewId)(root);
@@ -18498,14 +18509,14 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
18498
18509
  });
18499
18510
 
18500
18511
  function register(renderer) {
18501
- (true && (0, _emberDebug.assert)('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1));
18512
+ (true && !(renderers.indexOf(renderer) === -1) && (0, _emberDebug.assert)('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1));
18502
18513
 
18503
18514
  renderers.push(renderer);
18504
18515
  }
18505
18516
 
18506
18517
  function deregister(renderer) {
18507
18518
  var index = renderers.indexOf(renderer);
18508
- (true && (0, _emberDebug.assert)('Cannot deregister unknown unregistered renderer', index !== -1));
18519
+ (true && !(index !== -1) && (0, _emberDebug.assert)('Cannot deregister unknown unregistered renderer', index !== -1));
18509
18520
 
18510
18521
  renderers.splice(index, 1);
18511
18522
  }
@@ -18589,7 +18600,7 @@ enifed('ember-glimmer/renderer', ['exports', 'ember-babel', 'ember-glimmer/utils
18589
18600
 
18590
18601
  Renderer.prototype.register = function register(view) {
18591
18602
  var id = (0, _emberViews.getViewId)(view);
18592
- (true && (0, _emberDebug.assert)('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]));
18603
+ (true && !(!this._viewRegistry[id]) && (0, _emberDebug.assert)('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]));
18593
18604
 
18594
18605
  this._viewRegistry[id] = view;
18595
18606
  };
@@ -18914,7 +18925,7 @@ enifed('ember-glimmer/syntax', ['exports', 'ember-glimmer/syntax/render', 'ember
18914
18925
 
18915
18926
  function refineInlineSyntax(path, params, hash, builder) {
18916
18927
  var name = path[0];
18917
- (true && (0, _emberDebug.assert)('You attempted to overwrite the built-in helper "' + name + '" which is not allowed. Please rename the helper.', !(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name))));
18928
+ (true && !(!(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name))) && (0, _emberDebug.assert)('You attempted to overwrite the built-in helper "' + name + '" which is not allowed. Please rename the helper.', !(builder.env.builtInHelpers[name] && builder.env.owner.hasRegistration('helper:' + name))));
18918
18929
 
18919
18930
 
18920
18931
  if (path.length > 1) {
@@ -18968,8 +18979,8 @@ enifed('ember-glimmer/syntax', ['exports', 'ember-glimmer/syntax/render', 'ember
18968
18979
  return true;
18969
18980
  }
18970
18981
 
18971
- (true && (0, _emberDebug.assert)('A component or helper named "' + name + '" could not be found', builder.env.hasHelper(path, symbolTable)));
18972
- (true && (0, _emberDebug.assert)('Helpers may not be used in the block form, for example {{#' + name + '}}{{/' + name + '}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (' + name + ')}}{{/if}}.', !builder.env.hasHelper(path, symbolTable)));
18982
+ (true && !(builder.env.hasHelper(path, symbolTable)) && (0, _emberDebug.assert)('A component or helper named "' + name + '" could not be found', builder.env.hasHelper(path, symbolTable)));
18983
+ (true && !(!builder.env.hasHelper(path, symbolTable)) && (0, _emberDebug.assert)('Helpers may not be used in the block form, for example {{#' + name + '}}{{/' + name + '}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (' + name + ')}}{{/if}}.', !builder.env.hasHelper(path, symbolTable)));
18973
18984
 
18974
18985
 
18975
18986
  return false;
@@ -19092,7 +19103,7 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
19092
19103
  var DEFAULT_LAYOUT = (0, _container.privatize)(_templateObject);
19093
19104
 
19094
19105
  function processComponentInitializationAssertions(component, props) {
19095
- (true && (0, _emberDebug.assert)('classNameBindings must not have spaces in them: ' + component.toString(), function () {
19106
+ (true && !(function () {
19096
19107
  var classNameBindings = component.classNameBindings;
19097
19108
 
19098
19109
  for (var i = 0; i < classNameBindings.length; i++) {
@@ -19102,24 +19113,43 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
19102
19113
  }
19103
19114
  }
19104
19115
  return true;
19116
+ }()) && (0, _emberDebug.assert)('classNameBindings must not have spaces in them: ' + component.toString(), function () {
19117
+ var classNameBindings = component.classNameBindings;
19118
+ for (var i = 0; i < classNameBindings.length; i++) {
19119
+ var binding = classNameBindings[i];if (binding.split(' ').length > 1) {
19120
+ return false;
19121
+ }
19122
+ }return true;
19105
19123
  }()));
19106
- (true && (0, _emberDebug.assert)('You cannot use `classNameBindings` on a tag-less component: ' + component.toString(), function () {
19124
+ (true && !(function () {
19107
19125
  var classNameBindings = component.classNameBindings,
19108
19126
  tagName = component.tagName;
19109
19127
 
19110
19128
  return tagName !== '' || !classNameBindings || classNameBindings.length === 0;
19129
+ }()) && (0, _emberDebug.assert)('You cannot use `classNameBindings` on a tag-less component: ' + component.toString(), function () {
19130
+ var classNameBindings = component.classNameBindings,
19131
+ tagName = component.tagName;
19132
+ return tagName !== '' || !classNameBindings || classNameBindings.length === 0;
19111
19133
  }()));
19112
- (true && (0, _emberDebug.assert)('You cannot use `elementId` on a tag-less component: ' + component.toString(), function () {
19134
+ (true && !(function () {
19113
19135
  var elementId = component.elementId,
19114
19136
  tagName = component.tagName;
19115
19137
 
19116
19138
  return tagName !== '' || props.id === elementId || !elementId && elementId !== '';
19139
+ }()) && (0, _emberDebug.assert)('You cannot use `elementId` on a tag-less component: ' + component.toString(), function () {
19140
+ var elementId = component.elementId,
19141
+ tagName = component.tagName;
19142
+ return tagName !== '' || props.id === elementId || !elementId && elementId !== '';
19117
19143
  }()));
19118
- (true && (0, _emberDebug.assert)('You cannot use `attributeBindings` on a tag-less component: ' + component.toString(), function () {
19144
+ (true && !(function () {
19119
19145
  var attributeBindings = component.attributeBindings,
19120
19146
  tagName = component.tagName;
19121
19147
 
19122
19148
  return tagName !== '' || !attributeBindings || attributeBindings.length === 0;
19149
+ }()) && (0, _emberDebug.assert)('You cannot use `attributeBindings` on a tag-less component: ' + component.toString(), function () {
19150
+ var attributeBindings = component.attributeBindings,
19151
+ tagName = component.tagName;
19152
+ return tagName !== '' || !attributeBindings || attributeBindings.length === 0;
19123
19153
  }()));
19124
19154
  }
19125
19155
 
@@ -19132,7 +19162,7 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
19132
19162
  var paramType = typeof positionalParamsDefinition;
19133
19163
 
19134
19164
  if (paramType === 'string') {
19135
- (true && (0, _emberDebug.assert)('You cannot specify positional parameters and the hash argument `' + positionalParamsDefinition + '`.', !named.has(positionalParamsDefinition)));
19165
+ (true && !(!named.has(positionalParamsDefinition)) && (0, _emberDebug.assert)('You cannot specify positional parameters and the hash argument `' + positionalParamsDefinition + '`.', !named.has(positionalParamsDefinition)));
19136
19166
  } else {
19137
19167
  if (positional.length < positionalParamsDefinition.length) {
19138
19168
  positionalParamsDefinition = positionalParamsDefinition.slice(0, positional.length);
@@ -19141,7 +19171,7 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
19141
19171
  for (var i = 0; i < positionalParamsDefinition.length; i++) {
19142
19172
  var name = positionalParamsDefinition[i];
19143
19173
 
19144
- (true && (0, _emberDebug.assert)('You cannot specify both a positional param (at position ' + i + ') and the hash argument `' + name + '`.', !named.has(name)));
19174
+ (true && !(!named.has(name)) && (0, _emberDebug.assert)('You cannot specify both a positional param (at position ' + i + ') and the hash argument `' + name + '`.', !named.has(name)));
19145
19175
  }
19146
19176
  }
19147
19177
  }
@@ -19149,7 +19179,7 @@ enifed('ember-glimmer/syntax/curly-component', ['exports', 'ember-babel', 'ember
19149
19179
 
19150
19180
  function aliasIdToElementId(args, props) {
19151
19181
  if (args.named.has('id')) {
19152
- (true && (0, _emberDebug.assert)('You cannot invoke a component with both \'id\' and \'elementId\' at the same time.', !args.named.has('elementId')));
19182
+ (true && !(!args.named.has('elementId')) && (0, _emberDebug.assert)('You cannot invoke a component with both \'id\' and \'elementId\' at the same time.', !args.named.has('elementId')));
19153
19183
 
19154
19184
  props.elementId = props.id;
19155
19185
  }
@@ -19656,7 +19686,7 @@ enifed('ember-glimmer/syntax/dynamic-component', ['exports', 'ember-babel', '@gl
19656
19686
  if (typeof nameOrDef === 'string') {
19657
19687
  var definition = env.getComponentDefinition([nameOrDef], symbolTable);
19658
19688
 
19659
- (true && (0, _emberDebug.assert)('Could not find component named "' + nameOrDef + '" (no component or template with that name was found)', definition));
19689
+ (true && !(definition) && (0, _emberDebug.assert)('Could not find component named "' + nameOrDef + '" (no component or template with that name was found)', definition));
19660
19690
 
19661
19691
 
19662
19692
  return definition;
@@ -19844,7 +19874,7 @@ enifed('ember-glimmer/syntax/input', ['exports', 'ember-debug', 'ember-glimmer/u
19844
19874
  var typeArg = values[typeIndex];
19845
19875
  if (!Array.isArray(typeArg)) {
19846
19876
  if (typeArg === 'checkbox') {
19847
- (true && (0, _emberDebug.assert)('{{input type=\'checkbox\'}} does not support setting `value=someBooleanValue`; ' + 'you must use `checked=someBooleanValue` instead.', valueIndex === -1));
19877
+ (true && !(valueIndex === -1) && (0, _emberDebug.assert)('{{input type=\'checkbox\'}} does not support setting `value=someBooleanValue`; ' + 'you must use `checked=someBooleanValue` instead.', valueIndex === -1));
19848
19878
 
19849
19879
 
19850
19880
  (0, _bindings.wrapComponentClassAttribute)(hash);
@@ -19902,7 +19932,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
19902
19932
  @submodule ember-glimmer
19903
19933
  */
19904
19934
  function mountMacro(path, params, hash, builder) {
19905
- (true && (0, _emberDebug.assert)('You can only pass a single argument to the {{mount}} helper, e.g. {{mount "chat-engine"}}.', params.length === 1 && hash === null));
19935
+ (true && !(params.length === 1 && hash === null) && (0, _emberDebug.assert)('You can only pass a single argument to the {{mount}} helper, e.g. {{mount "chat-engine"}}.', params.length === 1 && hash === null));
19906
19936
 
19907
19937
 
19908
19938
  var definitionArgs = [params.slice(0, 1), null, null, null];
@@ -19938,7 +19968,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
19938
19968
  return this._lastDef;
19939
19969
  }
19940
19970
 
19941
- (true && (0, _emberDebug.assert)('You used `{{mount \'' + nameOrDef + '\'}}`, but the engine \'' + nameOrDef + '\' can not be found.', env.owner.hasRegistration('engine:' + nameOrDef)));
19971
+ (true && !(env.owner.hasRegistration('engine:' + nameOrDef)) && (0, _emberDebug.assert)('You used `{{mount \'' + nameOrDef + '\'}}`, but the engine \'' + nameOrDef + '\' can not be found.', env.owner.hasRegistration('engine:' + nameOrDef)));
19942
19972
 
19943
19973
 
19944
19974
  if (!env.owner.hasRegistration('engine:' + nameOrDef)) {
@@ -19950,7 +19980,7 @@ enifed('ember-glimmer/syntax/mount', ['exports', 'ember-babel', '@glimmer/runtim
19950
19980
 
19951
19981
  return this._lastDef;
19952
19982
  } else {
19953
- (true && (0, _emberDebug.assert)('Invalid engine name \'' + nameOrDef + '\' specified, engine name must be either a string, null or undefined.', nameOrDef === null || nameOrDef === undefined));
19983
+ (true && !(nameOrDef === null || nameOrDef === undefined) && (0, _emberDebug.assert)('Invalid engine name \'' + nameOrDef + '\' specified, engine name must be either a string, null or undefined.', nameOrDef === null || nameOrDef === undefined));
19954
19984
 
19955
19985
 
19956
19986
  return null;
@@ -20376,13 +20406,13 @@ enifed('ember-glimmer/syntax/render', ['exports', 'ember-babel', '@glimmer/runti
20376
20406
  var args = vm.getArgs();
20377
20407
  var nameRef = args.positional.at(0);
20378
20408
 
20379
- (true && (0, _emberDebug.assert)('The first argument of {{render}} must be quoted, e.g. {{render "sidebar"}}.', (0, _reference.isConst)(nameRef)));
20380
- (true && (0, _emberDebug.assert)('The second argument of {{render}} must be a path, e.g. {{render "post" post}}.', args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1))));
20409
+ (true && !((0, _reference.isConst)(nameRef)) && (0, _emberDebug.assert)('The first argument of {{render}} must be quoted, e.g. {{render "sidebar"}}.', (0, _reference.isConst)(nameRef)));
20410
+ (true && !(args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1))) && (0, _emberDebug.assert)('The second argument of {{render}} must be a path, e.g. {{render "post" post}}.', args.positional.length === 1 || !(0, _reference.isConst)(args.positional.at(1))));
20381
20411
 
20382
20412
 
20383
20413
  var templateName = nameRef.value();
20384
20414
 
20385
- (true && (0, _emberDebug.assert)('You used `{{render \'' + templateName + '\'}}`, but \'' + templateName + '\' can not be found as a template.', env.owner.hasRegistration('template:' + templateName)));
20415
+ (true && !(env.owner.hasRegistration('template:' + templateName)) && (0, _emberDebug.assert)('You used `{{render \'' + templateName + '\'}}`, but \'' + templateName + '\' can not be found as a template.', env.owner.hasRegistration('template:' + templateName)));
20386
20416
 
20387
20417
 
20388
20418
  var template = env.owner.lookup('template:' + templateName);
@@ -20392,12 +20422,12 @@ enifed('ember-glimmer/syntax/render', ['exports', 'ember-babel', '@glimmer/runti
20392
20422
  if (args.named.has('controller')) {
20393
20423
  var controllerNameRef = args.named.get('controller');
20394
20424
 
20395
- (true && (0, _emberDebug.assert)('The controller argument for {{render}} must be quoted, e.g. {{render "sidebar" controller="foo"}}.', (0, _reference.isConst)(controllerNameRef)));
20425
+ (true && !((0, _reference.isConst)(controllerNameRef)) && (0, _emberDebug.assert)('The controller argument for {{render}} must be quoted, e.g. {{render "sidebar" controller="foo"}}.', (0, _reference.isConst)(controllerNameRef)));
20396
20426
 
20397
20427
 
20398
20428
  controllerName = controllerNameRef.value();
20399
20429
 
20400
- (true && (0, _emberDebug.assert)('The controller name you supplied \'' + controllerName + '\' did not resolve to a controller.', env.owner.hasRegistration('controller:' + controllerName)));
20430
+ (true && !(env.owner.hasRegistration('controller:' + controllerName)) && (0, _emberDebug.assert)('The controller name you supplied \'' + controllerName + '\' did not resolve to a controller.', env.owner.hasRegistration('controller:' + controllerName)));
20401
20431
  } else {
20402
20432
  controllerName = templateName;
20403
20433
  }
@@ -20770,14 +20800,14 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
20770
20800
  var colonIndex = microsyntax.indexOf(':');
20771
20801
 
20772
20802
  if (colonIndex === -1) {
20773
- (true && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class'));
20803
+ (true && !(microsyntax !== 'class') && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class'));
20774
20804
 
20775
20805
  return [microsyntax, microsyntax, true];
20776
20806
  } else {
20777
20807
  var prop = microsyntax.substring(0, colonIndex);
20778
20808
  var attribute = microsyntax.substring(colonIndex + 1);
20779
20809
 
20780
- (true && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class'));
20810
+ (true && !(attribute !== 'class') && (0, _emberDebug.assert)('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class'));
20781
20811
 
20782
20812
 
20783
20813
  return [prop, attribute, false];
@@ -20801,7 +20831,7 @@ enifed('ember-glimmer/utils/bindings', ['exports', 'ember-babel', '@glimmer/refe
20801
20831
  var isPath = prop.indexOf('.') > -1;
20802
20832
  var reference = isPath ? referenceForParts(component, prop.split('.')) : referenceForKey(component, prop);
20803
20833
 
20804
- (true && (0, _emberDebug.assert)('Illegal attributeBinding: \'' + prop + '\' is not a valid attribute name.', !(isSimple && isPath)));
20834
+ (true && !(!(isSimple && isPath)) && (0, _emberDebug.assert)('Illegal attributeBinding: \'' + prop + '\' is not a valid attribute name.', !(isSimple && isPath)));
20805
20835
 
20806
20836
 
20807
20837
  if (attribute === 'style') {
@@ -22601,7 +22631,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
22601
22631
  @public
22602
22632
  */
22603
22633
  function addListener(obj, eventName, target, method, once) {
22604
- true && emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);
22634
+ true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.addListener', !!obj && !!eventName);
22605
22635
  true && !(eventName !== 'didInitAttrs') && emberDebug.deprecate('didInitAttrs called in ' + (obj && obj.toString && obj.toString()) + '.', eventName !== 'didInitAttrs', {
22606
22636
  id: 'ember-views.did-init-attrs',
22607
22637
  until: '3.0.0',
@@ -22639,7 +22669,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
22639
22669
  @public
22640
22670
  */
22641
22671
  function removeListener(obj, eventName, target, method) {
22642
- true && emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);
22672
+ true && !(!!obj && !!eventName) && emberDebug.assert('You must pass at least an object and event name to Ember.removeListener', !!obj && !!eventName);
22643
22673
 
22644
22674
  if (!method && 'function' === typeof target) {
22645
22675
  method = target;
@@ -23078,7 +23108,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
23078
23108
  if (ember_features.EMBER_GLIMMER_ALLOW_BACKTRACKING_RERENDER) {
23079
23109
  true && !false && emberDebug.deprecate(message + ' will be removed in Ember 3.0.', false, { id: 'ember-views.render-double-modify', until: '3.0.0' });
23080
23110
  } else {
23081
- true && emberDebug.assert(message + ' is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.', false);
23111
+ true && !false && emberDebug.assert(message + ' is no longer supported. See https://github.com/emberjs/ember.js/issues/13948 for more details.', false);
23082
23112
  }
23083
23113
  }
23084
23114
 
@@ -23414,7 +23444,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
23414
23444
  if (!m.isInitialized(this)) {
23415
23445
  m.writeValues(name, value);
23416
23446
  } else {
23417
- true && emberDebug.assert('You must use Ember.set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);
23447
+ true && !false && emberDebug.assert('You must use Ember.set() to set the `' + name + '` property (of ' + this + ') to `' + value + '`.', false);
23418
23448
  }
23419
23449
  }
23420
23450
 
@@ -24391,7 +24421,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24391
24421
 
24392
24422
 
24393
24423
  Meta.prototype.writeDeps = function writeDeps(subkey, itemkey, value) {
24394
- true && emberDebug.assert('Cannot call writeDeps after the object is destroyed.', !this.isMetaDestroyed());
24424
+ true && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writeDeps after the object is destroyed.', !this.isMetaDestroyed());
24395
24425
 
24396
24426
  var outerMap = this._getOrCreateOwnMap('_deps');
24397
24427
  var innerMap = outerMap[subkey];
@@ -24538,7 +24568,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24538
24568
  var capitalized = capitalize(name);
24539
24569
 
24540
24570
  Meta.prototype['write' + capitalized] = function (subkey, value) {
24541
- true && emberDebug.assert('Cannot call write' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24571
+ true && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call write' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24542
24572
 
24543
24573
  var map = this._getOrCreateOwnMap(key);
24544
24574
  map[subkey] = value;
@@ -24567,7 +24597,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24567
24597
  };
24568
24598
 
24569
24599
  Meta.prototype['clear' + capitalized] = function () {
24570
- true && emberDebug.assert('Cannot call clear' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24600
+ true && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call clear' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24571
24601
 
24572
24602
  this[key] = undefined;
24573
24603
  };
@@ -24589,7 +24619,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24589
24619
  var key = memberProperty(name);
24590
24620
  var capitalized = capitalize(name);
24591
24621
  Meta.prototype['writable' + capitalized] = function (create) {
24592
- true && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24622
+ true && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24593
24623
 
24594
24624
  var ret = this[key];
24595
24625
  if (ret === undefined) {
@@ -24609,7 +24639,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24609
24639
  var key = memberProperty(name);
24610
24640
  var capitalized = capitalize(name);
24611
24641
  Meta.prototype['writable' + capitalized] = function (create) {
24612
- true && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24642
+ true && !!this.isMetaDestroyed() && emberDebug.assert('Cannot call writable' + capitalized + ' after the object is destroyed.', !this.isMetaDestroyed());
24613
24643
 
24614
24644
  var ret = this[key];
24615
24645
  if (ret === undefined) {
@@ -24977,11 +25007,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
24977
25007
  @public
24978
25008
  */
24979
25009
  function get(obj, keyName) {
24980
- true && emberDebug.assert('Get must be called with two arguments; an object and a property key', arguments.length === 2);
24981
- true && emberDebug.assert('Cannot call get with \'' + keyName + '\' on an undefined object.', obj !== undefined && obj !== null);
24982
- true && emberDebug.assert('The key provided to get must be a string, you passed ' + keyName, typeof keyName === 'string');
24983
- true && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
24984
- true && emberDebug.assert('Cannot call `Ember.get` with an empty string', keyName !== '');
25010
+ true && !(arguments.length === 2) && emberDebug.assert('Get must be called with two arguments; an object and a property key', arguments.length === 2);
25011
+ true && !(obj !== undefined && obj !== null) && emberDebug.assert('Cannot call get with \'' + keyName + '\' on an undefined object.', obj !== undefined && obj !== null);
25012
+ true && !(typeof keyName === 'string') && emberDebug.assert('The key provided to get must be a string, you passed ' + keyName, typeof keyName === 'string');
25013
+ true && !!hasThis(keyName) && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
25014
+ true && !(keyName !== '') && emberDebug.assert('Cannot call `Ember.get` with an empty string', keyName !== '');
24985
25015
 
24986
25016
  var value = obj[keyName];
24987
25017
  var desc = value !== null && typeof value === 'object' && value.isDescriptor ? value : undefined;
@@ -25075,11 +25105,11 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25075
25105
  @public
25076
25106
  */
25077
25107
  function set(obj, keyName, value, tolerant) {
25078
- true && emberDebug.assert('Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false', arguments.length === 3 || arguments.length === 4);
25079
- true && emberDebug.assert('Cannot call set with \'' + keyName + '\' on an undefined object.', obj && typeof obj === 'object' || typeof obj === 'function');
25080
- true && emberDebug.assert('The key provided to set must be a string, you passed ' + keyName, typeof keyName === 'string');
25081
- true && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
25082
- true && emberDebug.assert('calling set on destroyed object: ' + emberUtils.toString(obj) + '.' + keyName + ' = ' + emberUtils.toString(value), !obj.isDestroyed);
25108
+ true && !(arguments.length === 3 || arguments.length === 4) && emberDebug.assert('Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false', arguments.length === 3 || arguments.length === 4);
25109
+ true && !(obj && typeof obj === 'object' || typeof obj === 'function') && emberDebug.assert('Cannot call set with \'' + keyName + '\' on an undefined object.', obj && typeof obj === 'object' || typeof obj === 'function');
25110
+ true && !(typeof keyName === 'string') && emberDebug.assert('The key provided to set must be a string, you passed ' + keyName, typeof keyName === 'string');
25111
+ true && !!hasThis(keyName) && emberDebug.assert('\'this\' in paths is not supported', !hasThis(keyName));
25112
+ true && !!obj.isDestroyed && emberDebug.assert('calling set on destroyed object: ' + emberUtils.toString(obj) + '.' + keyName + ' = ' + emberUtils.toString(value), !obj.isDestroyed);
25083
25113
 
25084
25114
  if (isPath(keyName)) {
25085
25115
  return setPath(obj, keyName, value, tolerant);
@@ -25101,7 +25131,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25101
25131
  desc.set(obj, keyName, value);
25102
25132
  } else if (obj.setUnknownProperty && currentValue === undefined && !(keyName in obj)) {
25103
25133
  /* unknown property */
25104
- true && emberDebug.assert('setUnknownProperty must be a function', typeof obj.setUnknownProperty === 'function');
25134
+ true && !(typeof obj.setUnknownProperty === 'function') && emberDebug.assert('setUnknownProperty must be a function', typeof obj.setUnknownProperty === 'function');
25105
25135
 
25106
25136
  obj.setUnknownProperty(keyName, value);
25107
25137
  } else if (currentValue === value) {
@@ -25223,56 +25253,37 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25223
25253
  expansion, and is passed the expansion.
25224
25254
  */
25225
25255
  function expandProperties(pattern, callback) {
25226
- true && emberDebug.assert('A computed property key must be a string, you passed ' + typeof pattern + ' ' + pattern, typeof pattern === 'string');
25227
- true && emberDebug.assert('Brace expanded properties cannot contain spaces, e.g. "user.{firstName, lastName}" should be "user.{firstName,lastName}"', pattern.indexOf(' ') === -1);
25228
-
25229
- var unbalancedNestedError = 'Brace expanded properties have to be balanced and cannot be nested, pattern: ' + pattern;
25230
- var properties = [pattern];
25231
-
25232
- // Iterating backward over the pattern makes dealing with indices easier.
25233
- var bookmark = void 0;
25234
- var inside = false;
25235
- for (var i = pattern.length; i > 0; --i) {
25236
- var current = pattern[i - 1];
25237
-
25238
- switch (current) {
25239
- // Closing curly brace will be the first character of the brace expansion we encounter.
25240
- // Bookmark its index so long as we're not already inside a brace expansion.
25241
- case '}':
25242
- if (!inside) {
25243
- bookmark = i - 1;
25244
- inside = true;
25245
- } else {
25246
- true && emberDebug.assert(unbalancedNestedError, false);
25247
- }
25248
- break;
25249
- // Opening curly brace will be the last character of the brace expansion we encounter.
25250
- // Apply the brace expansion so long as we've already seen a closing curly brace.
25251
- case '{':
25252
- if (inside) {
25253
- var expansion = pattern.slice(i, bookmark).split(',');
25254
- // Iterating backward allows us to push new properties w/out affecting our "cursor".
25255
- for (var j = properties.length; j > 0; --j) {
25256
- // Extract the unexpanded property from the array.
25257
- var property = properties.splice(j - 1, 1)[0];
25258
- // Iterate over the expansion, pushing the newly formed properties onto the array.
25259
- for (var k = 0; k < expansion.length; ++k) {
25260
- properties.push(property.slice(0, i - 1) + expansion[k] + property.slice(bookmark + 1));
25261
- }
25262
- }
25263
- inside = false;
25264
- } else {
25265
- true && emberDebug.assert(unbalancedNestedError, false);
25266
- }
25267
- break;
25268
- }
25269
- }
25270
- if (inside) {
25271
- true && emberDebug.assert(unbalancedNestedError, false);
25256
+ true && !(typeof pattern === 'string') && emberDebug.assert('A computed property key must be a string, you passed ' + typeof pattern + ' ' + pattern, typeof pattern === 'string');
25257
+ true && !(pattern.indexOf(' ') === -1) && emberDebug.assert('Brace expanded properties cannot contain spaces, e.g. "user.{firstName, lastName}" should be "user.{firstName,lastName}"', pattern.indexOf(' ') === -1);
25258
+ // regex to look for double open, double close, or unclosed braces
25259
+
25260
+ true && !(pattern.match(/\{[^}{]*\{|\}[^}{]*\}|\{[^}]*$/g) === null) && emberDebug.assert('Brace expanded properties have to be balanced and cannot be nested, pattern: ' + pattern, pattern.match(/\{[^}{]*\{|\}[^}{]*\}|\{[^}]*$/g) === null);
25261
+
25262
+ var start = pattern.indexOf('{');
25263
+ if (start < 0) {
25264
+ callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));
25265
+ } else {
25266
+ dive('', pattern, start, callback);
25272
25267
  }
25268
+ }
25273
25269
 
25274
- for (var _i = 0; _i < properties.length; _i++) {
25275
- callback(properties[_i].replace(END_WITH_EACH_REGEX, '.[]'));
25270
+ function dive(prefix, pattern, start, callback) {
25271
+ var end = pattern.indexOf('}'),
25272
+ i = 0,
25273
+ newStart = void 0,
25274
+ arrayLength = void 0;
25275
+ var tempArr = pattern.substring(start + 1, end).split(',');
25276
+ var after = pattern.substring(end + 1);
25277
+ prefix = prefix + pattern.substring(0, start);
25278
+
25279
+ arrayLength = tempArr.length;
25280
+ while (i < arrayLength) {
25281
+ newStart = after.indexOf('{');
25282
+ if (newStart < 0) {
25283
+ callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));
25284
+ } else {
25285
+ dive(prefix + tempArr[i++], after, newStart, callback);
25286
+ }
25276
25287
  }
25277
25288
  }
25278
25289
 
@@ -25497,8 +25508,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25497
25508
  if (typeof config === 'function') {
25498
25509
  this._getter = config;
25499
25510
  } else {
25500
- true && emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
25501
- true && emberDebug.assert('Config object passed to an Ember.computed can only contain `get` or `set` keys.', function () {
25511
+ true && !(typeof config === 'object' && !Array.isArray(config)) && emberDebug.assert('Ember.computed expects a function or an object as last argument.', typeof config === 'object' && !Array.isArray(config));
25512
+ true && !function () {
25502
25513
  var keys = Object.keys(config);
25503
25514
  for (var i = 0; i < keys.length; i++) {
25504
25515
  if (keys[i] !== 'get' && keys[i] !== 'set') {
@@ -25506,12 +25517,18 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25506
25517
  }
25507
25518
  }
25508
25519
  return true;
25520
+ }() && emberDebug.assert('Config object passed to an Ember.computed can only contain `get` or `set` keys.', function () {
25521
+ var keys = Object.keys(config);for (var i = 0; i < keys.length; i++) {
25522
+ if (keys[i] !== 'get' && keys[i] !== 'set') {
25523
+ return false;
25524
+ }
25525
+ }return true;
25509
25526
  }());
25510
25527
 
25511
25528
  this._getter = config.get;
25512
25529
  this._setter = config.set;
25513
25530
  }
25514
- true && emberDebug.assert('Computed properties must receive a getter or a setter, you passed none.', !!this._getter || !!this._setter);
25531
+ true && !(!!this._getter || !!this._setter) && emberDebug.assert('Computed properties must receive a getter or a setter, you passed none.', !!this._getter || !!this._setter);
25515
25532
 
25516
25533
  this._dependentKeys = undefined;
25517
25534
  this._suspended = undefined;
@@ -25577,7 +25594,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25577
25594
  */
25578
25595
  ComputedPropertyPrototype.readOnly = function () {
25579
25596
  this._readOnly = true;
25580
- true && emberDebug.assert('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));
25597
+ true && !!(this._readOnly && this._setter && this._setter !== this._getter) && emberDebug.assert('Computed properties that define a setter using the new syntax cannot be read-only', !(this._readOnly && this._setter && this._setter !== this._getter));
25581
25598
 
25582
25599
  return this;
25583
25600
  };
@@ -25977,7 +25994,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
25977
25994
  }
25978
25995
 
25979
25996
  AliasedProperty.prototype.setup = function setup(obj, keyName) {
25980
- true && emberDebug.assert('Setting alias \'' + keyName + '\' on self', this.altKey !== keyName);
25997
+ true && !(this.altKey !== keyName) && emberDebug.assert('Setting alias \'' + keyName + '\' on self', this.altKey !== keyName);
25981
25998
 
25982
25999
  var meta$$1 = meta(obj);
25983
26000
  if (meta$$1.peekWatching(keyName)) {
@@ -26958,7 +26975,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
26958
26975
  @public
26959
26976
  */
26960
26977
  run$1.schedule = function () /* queue, target, method */{
26961
- true && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
26978
+ true && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
26962
26979
 
26963
26980
  return backburner.schedule.apply(backburner, arguments);
26964
26981
  };
@@ -27040,7 +27057,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
27040
27057
  @public
27041
27058
  */
27042
27059
  run$1.once = function () {
27043
- true && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
27060
+ true && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
27044
27061
 
27045
27062
  for (var _len3 = arguments.length, args = Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
27046
27063
  args[_key3] = arguments[_key3];
@@ -27103,7 +27120,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
27103
27120
  @public
27104
27121
  */
27105
27122
  run$1.scheduleOnce = function () /*queue, target, method*/{
27106
- true && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
27123
+ true && !(run$1.currentRunLoop || !emberDebug.isTesting()) && emberDebug.assert('You have turned on testing mode, which disabled the run-loop\'s autorun. ' + 'You will need to wrap any code with asynchronous side-effects in a run', run$1.currentRunLoop || !emberDebug.isTesting());
27107
27124
 
27108
27125
  return backburner.scheduleOnce.apply(backburner, arguments);
27109
27126
  };
@@ -28226,7 +28243,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
28226
28243
  */
28227
28244
 
28228
28245
  Binding.prototype.connect = function connect(obj) {
28229
- true && emberDebug.assert('Must pass a valid object to Ember.Binding.connect()', !!obj);
28246
+ true && !!!obj && emberDebug.assert('Must pass a valid object to Ember.Binding.connect()', !!obj);
28230
28247
 
28231
28248
  var fromObj = void 0,
28232
28249
  fromPath = void 0,
@@ -28280,7 +28297,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
28280
28297
  */
28281
28298
 
28282
28299
  Binding.prototype.disconnect = function disconnect() {
28283
- true && emberDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);
28300
+ true && !!!this._toObj && emberDebug.assert('Must pass a valid object to Ember.Binding.disconnect()', !!this._toObj);
28284
28301
 
28285
28302
  // Remove an observer on the object so we're no longer notified of
28286
28303
  // changes that should update bindings.
@@ -28711,7 +28728,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
28711
28728
  {
28712
28729
  if (isArray(value)) {
28713
28730
  // use conditional to avoid stringifying every time
28714
- true && emberDebug.assert('You passed in `' + JSON.stringify(value) + '` as the value for `' + key + '` but `' + key + '` cannot be an Array', false);
28731
+ true && !false && emberDebug.assert('You passed in `' + JSON.stringify(value) + '` as the value for `' + key + '` but `' + key + '` cannot be an Array', false);
28715
28732
  }
28716
28733
  }
28717
28734
 
@@ -28786,7 +28803,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
28786
28803
 
28787
28804
  for (var i = 0; i < mixins.length; i++) {
28788
28805
  currentMixin = mixins[i];
28789
- true && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
28806
+ true && !(typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]') && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
28790
28807
 
28791
28808
  props = mixinProperties(meta$$1, currentMixin);
28792
28809
  if (props === CONTINUE) {
@@ -29156,7 +29173,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
29156
29173
 
29157
29174
  for (idx = 0; idx < arguments.length; idx++) {
29158
29175
  currentMixin = arguments[idx];
29159
- true && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
29176
+ true && !(typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]') && emberDebug.assert('Expected hash or Mixin instance, got ' + Object.prototype.toString.call(currentMixin), typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');
29160
29177
 
29161
29178
  if (currentMixin instanceof Mixin) {
29162
29179
  mixins.push(currentMixin);
@@ -29407,7 +29424,7 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
29407
29424
 
29408
29425
  for (var i = 0; i < arguments.length; i++) {
29409
29426
  var arg = arguments[i];
29410
- true && emberDebug.assert('Immediate observers must observe internal properties only, not properties on other objects.', typeof arg !== 'string' || arg.indexOf('.') === -1);
29427
+ true && !(typeof arg !== 'string' || arg.indexOf('.') === -1) && emberDebug.assert('Immediate observers must observe internal properties only, not properties on other objects.', typeof arg !== 'string' || arg.indexOf('.') === -1);
29411
29428
  }
29412
29429
 
29413
29430
  return observer.apply(this, arguments);
@@ -29487,8 +29504,8 @@ enifed('ember-metal', ['exports', 'ember-environment', 'ember-utils', 'ember-deb
29487
29504
  var desc = this[keyName];
29488
29505
  var owner = emberUtils.getOwner(this) || this.container; // fallback to `container` for backwards compat
29489
29506
 
29490
- true && emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
29491
- true && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
29507
+ true && !(desc && desc.isDescriptor && desc.type) && emberDebug.assert('InjectedProperties should be defined with the Ember.inject computed property macros.', desc && desc.isDescriptor && desc.type);
29508
+ true && !owner && emberDebug.assert('Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.', owner);
29492
29509
 
29493
29510
  return owner.lookup(desc.type + ':' + (desc.name || keyName));
29494
29511
  }
@@ -29889,11 +29906,11 @@ enifed('ember-routing/location/api', ['exports', 'ember-debug', 'ember-environme
29889
29906
  */
29890
29907
  create: function (options) {
29891
29908
  var implementation = options && options.implementation;
29892
- (true && (0, _emberDebug.assert)('Ember.Location.create: you must specify a \'implementation\' option', !!implementation));
29909
+ (true && !(!!implementation) && (0, _emberDebug.assert)('Ember.Location.create: you must specify a \'implementation\' option', !!implementation));
29893
29910
 
29894
29911
 
29895
29912
  var implementationClass = this.implementations[implementation];
29896
- (true && (0, _emberDebug.assert)('Ember.Location.create: ' + implementation + ' is not a valid implementation', !!implementationClass));
29913
+ (true && !(!!implementationClass) && (0, _emberDebug.assert)('Ember.Location.create: ' + implementation + ' is not a valid implementation', !!implementationClass));
29897
29914
 
29898
29915
 
29899
29916
  return implementationClass.create.apply(implementationClass, arguments);
@@ -29988,7 +30005,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
29988
30005
  detect: function () {
29989
30006
  var rootURL = this.rootURL;
29990
30007
 
29991
- (true && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
30008
+ (true && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
29992
30009
 
29993
30010
 
29994
30011
  var implementation = detectImplementation({
@@ -30008,7 +30025,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
30008
30025
  var concrete = (0, _emberUtils.getOwner)(this).lookup('location:' + implementation);
30009
30026
  (0, _emberMetal.set)(concrete, 'rootURL', rootURL);
30010
30027
 
30011
- (true && (0, _emberDebug.assert)('Could not find location \'' + implementation + '\'.', !!concrete));
30028
+ (true && !(!!concrete) && (0, _emberDebug.assert)('Could not find location \'' + implementation + '\'.', !!concrete));
30012
30029
 
30013
30030
 
30014
30031
  (0, _emberMetal.set)(this, 'concreteImplementation', concrete);
@@ -30035,7 +30052,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
30035
30052
  function delegateToConcreteImplementation(methodName) {
30036
30053
  return function () {
30037
30054
  var concreteImplementation = (0, _emberMetal.get)(this, 'concreteImplementation');
30038
- (true && (0, _emberDebug.assert)('AutoLocation\'s detect() method should be called before calling any other hooks.', !!concreteImplementation));
30055
+ (true && !(!!concreteImplementation) && (0, _emberDebug.assert)('AutoLocation\'s detect() method should be called before calling any other hooks.', !!concreteImplementation));
30039
30056
 
30040
30057
  for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
30041
30058
  args[_key] = arguments[_key];
@@ -30125,7 +30142,7 @@ enifed('ember-routing/location/auto_location', ['exports', 'ember-utils', 'ember
30125
30142
  var routeHash = void 0,
30126
30143
  hashParts = void 0;
30127
30144
 
30128
- (true && (0, _emberDebug.assert)('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0));
30145
+ (true && !(rootURLIndex === 0) && (0, _emberDebug.assert)('Path ' + path + ' does not start with the provided rootURL ' + rootURL, rootURLIndex === 0));
30129
30146
 
30130
30147
 
30131
30148
  // By convention, Ember.js routes using HashLocation are required to start
@@ -30590,7 +30607,7 @@ enifed('ember-routing/location/none_location', ['exports', 'ember-metal', 'ember
30590
30607
  detect: function () {
30591
30608
  var rootURL = this.rootURL;
30592
30609
 
30593
- (true && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
30610
+ (true && !(rootURL.charAt(rootURL.length - 1) === '/') && (0, _emberDebug.assert)('rootURL must end with a trailing forward slash e.g. "/app/"', rootURL.charAt(rootURL.length - 1) === '/'));
30594
30611
  },
30595
30612
 
30596
30613
 
@@ -31009,12 +31026,16 @@ enifed('ember-routing/system/dsl', ['exports', 'ember-babel', 'ember-utils', 'em
31009
31026
  options = {};
31010
31027
  }
31011
31028
 
31012
- (true && (0, _emberDebug.assert)('\'' + name + '\' cannot be used as a route name.', function () {
31029
+ (true && !(function () {
31013
31030
  if (options.overrideNameAssertion === true) {
31014
31031
  return true;
31015
31032
  }
31016
31033
 
31017
31034
  return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;
31035
+ }()) && (0, _emberDebug.assert)('\'' + name + '\' cannot be used as a route name.', function () {
31036
+ if (options.overrideNameAssertion === true) {
31037
+ return true;
31038
+ }return ['array', 'basic', 'object', 'application'].indexOf(name) === -1;
31018
31039
  }()));
31019
31040
 
31020
31041
 
@@ -31560,7 +31581,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
31560
31581
  var queryParams = getQueryParamsFor(route, state);
31561
31582
 
31562
31583
  return Object.keys(queryParams).reduce(function (params, key) {
31563
- (true && (0, _emberDebug.assert)('The route \'' + _this2.routeName + '\' has both a dynamic segment and query param with name \'' + key + '\'. Please rename one to avoid collisions.', !params[key]));
31584
+ (true && !(!params[key]) && (0, _emberDebug.assert)('The route \'' + _this2.routeName + '\' has both a dynamic segment and query param with name \'' + key + '\'. Please rename one to avoid collisions.', !params[key]));
31564
31585
 
31565
31586
  params[key] = queryParams[key];
31566
31587
  return params;
@@ -32242,7 +32263,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
32242
32263
  find: function (name, value) {
32243
32264
  var modelClass = owner.factoryFor('model:' + name);
32244
32265
 
32245
- (true && (0, _emberDebug.assert)('You used the dynamic segment ' + name + '_id in your route ' + routeName + ', but ' + namespace + '.' + _emberRuntime.String.classify(name) + ' did not exist and you did not override your route\'s `model` hook.', !!modelClass));
32266
+ (true && !(!!modelClass) && (0, _emberDebug.assert)('You used the dynamic segment ' + name + '_id in your route ' + routeName + ', but ' + namespace + '.' + _emberRuntime.String.classify(name) + ' did not exist and you did not override your route\'s `model` hook.', !!modelClass));
32246
32267
 
32247
32268
 
32248
32269
  if (!modelClass) {
@@ -32251,7 +32272,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
32251
32272
 
32252
32273
  modelClass = modelClass.class;
32253
32274
 
32254
- (true && (0, _emberDebug.assert)(_emberRuntime.String.classify(name) + ' has no method `find`.', typeof modelClass.find === 'function'));
32275
+ (true && !(typeof modelClass.find === 'function') && (0, _emberDebug.assert)(_emberRuntime.String.classify(name) + ' has no method `find`.', typeof modelClass.find === 'function'));
32255
32276
 
32256
32277
 
32257
32278
  return modelClass.find(value);
@@ -32316,7 +32337,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
32316
32337
  // NOTE: We're specifically checking that skipAssert is true, because according
32317
32338
  // to the old API the second parameter was model. We do not want people who
32318
32339
  // passed a model to skip the assertion.
32319
- (true && (0, _emberDebug.assert)('The controller named \'' + name + '\' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.', controller || _skipAssert === true));
32340
+ (true && !(controller || _skipAssert === true) && (0, _emberDebug.assert)('The controller named \'' + name + '\' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.', controller || _skipAssert === true));
32320
32341
 
32321
32342
 
32322
32343
  return controller;
@@ -32356,7 +32377,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
32356
32377
  this.render();
32357
32378
  },
32358
32379
  render: function (_name, options) {
32359
- (true && (0, _emberDebug.assert)('The name in the given arguments is undefined', arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true));
32380
+ (true && !(arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true) && (0, _emberDebug.assert)('The name in the given arguments is undefined', arguments.length > 0 ? !(0, _emberMetal.isNone)(arguments[0]) : true));
32360
32381
 
32361
32382
 
32362
32383
  var namePassed = typeof _name === 'string' && !!_name;
@@ -32520,7 +32541,7 @@ enifed('ember-routing/system/route', ['exports', 'ember-utils', 'ember-metal', '
32520
32541
  ViewClass: undefined
32521
32542
  };
32522
32543
 
32523
- (true && (0, _emberDebug.assert)('Could not find "' + name + '" template, view, or component.', isDefaultRender || template));
32544
+ (true && !(isDefaultRender || template) && (0, _emberDebug.assert)('Could not find "' + name + '" template, view, or component.', isDefaultRender || template));
32524
32545
 
32525
32546
 
32526
32547
  if (true) {
@@ -33208,7 +33229,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33208
33229
  var _routerMicrolib5;
33209
33230
 
33210
33231
  var targetRouteName = _targetRouteName || (0, _utils.getActiveTargetName)(this._routerMicrolib);
33211
- (true && (0, _emberDebug.assert)('The route ' + targetRouteName + ' was not found', targetRouteName && this._routerMicrolib.hasRoute(targetRouteName)));
33232
+ (true && !(targetRouteName && this._routerMicrolib.hasRoute(targetRouteName)) && (0, _emberDebug.assert)('The route ' + targetRouteName + ' was not found', targetRouteName && this._routerMicrolib.hasRoute(targetRouteName)));
33212
33233
 
33213
33234
 
33214
33235
  var queryParams = {};
@@ -33284,7 +33305,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33284
33305
 
33285
33306
  if (qpOther && qpOther.controllerName !== qp.controllerName) {
33286
33307
  var otherQP = qpsByUrlKey[urlKey];
33287
- (true && (0, _emberDebug.assert)('You\'re not allowed to have more than one controller property map to the same query param key, but both `' + otherQP.scopedPropertyName + '` and `' + qp.scopedPropertyName + '` map to `' + urlKey + '`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `' + otherQP.prop + ': { as: \'other-' + otherQP.prop + '\' }`', false));
33308
+ (true && !(false) && (0, _emberDebug.assert)('You\'re not allowed to have more than one controller property map to the same query param key, but both `' + otherQP.scopedPropertyName + '` and `' + qp.scopedPropertyName + '` map to `' + urlKey + '`. You can fix this by mapping one of the controller properties to a different query param key via the `as` config option, e.g. `' + otherQP.prop + ': { as: \'other-' + otherQP.prop + '\' }`', false));
33288
33309
  }
33289
33310
 
33290
33311
  qpsByUrlKey[urlKey] = qp;
@@ -33413,7 +33434,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33413
33434
  if (!engineInstance) {
33414
33435
  var owner = (0, _emberUtils.getOwner)(this);
33415
33436
 
33416
- (true && (0, _emberDebug.assert)('You attempted to mount the engine \'' + name + '\' in your router map, but the engine can not be found.', owner.hasRegistration('engine:' + name)));
33437
+ (true && !(owner.hasRegistration('engine:' + name)) && (0, _emberDebug.assert)('You attempted to mount the engine \'' + name + '\' in your router map, but the engine can not be found.', owner.hasRegistration('engine:' + name)));
33417
33438
 
33418
33439
 
33419
33440
  engineInstance = owner.buildChildEngineInstance(name, {
@@ -33627,7 +33648,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33627
33648
  if (ignoreFailure) {
33628
33649
  return;
33629
33650
  }
33630
- throw new _emberDebug.EmberError('Can\'t trigger action \'' + name + '\' because your app hasn\'t finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.');
33651
+ throw new _emberDebug.Error('Can\'t trigger action \'' + name + '\' because your app hasn\'t finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call `.send()` on the `Transition` object passed to the `model/beforeModel/afterModel` hooks.');
33631
33652
  }
33632
33653
 
33633
33654
  var eventWasHandled = false;
@@ -33658,7 +33679,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33658
33679
  }
33659
33680
 
33660
33681
  if (!eventWasHandled && !ignoreFailure) {
33661
- throw new _emberDebug.EmberError('Nothing handled the action \'' + name + '\'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.');
33682
+ throw new _emberDebug.Error('Nothing handled the action \'' + name + '\'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.');
33662
33683
  }
33663
33684
  }
33664
33685
 
@@ -33877,7 +33898,7 @@ enifed('ember-routing/system/router', ['exports', 'ember-utils', 'ember-console'
33877
33898
  }
33878
33899
  liveRoutes.outlets.__ember_orphans__.outlets[into] = myState;
33879
33900
  _emberMetal.run.schedule('afterRender', function () {
33880
- (true && (0, _emberDebug.assert)('You attempted to render into \'' + into + '\' but it was not found', liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed));
33901
+ (true && !(liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed) && (0, _emberDebug.assert)('You attempted to render into \'' + into + '\' but it was not found', liveRoutes.outlets.__ember_orphans__.outlets[into].wasUsed));
33881
33902
  });
33882
33903
  }
33883
33904
 
@@ -34344,7 +34365,7 @@ enifed('ember-runtime/computed/computed_macros', ['exports', 'ember-metal', 'emb
34344
34365
 
34345
34366
  for (var i = 0; i < properties.length; i++) {
34346
34367
  var property = properties[i];
34347
- (true && (0, _emberDebug.assert)('Dependent keys passed to Ember.computed.' + predicateName + '() can\'t have spaces.', property.indexOf(' ') < 0));
34368
+ (true && !(property.indexOf(' ') < 0) && (0, _emberDebug.assert)('Dependent keys passed to Ember.computed.' + predicateName + '() can\'t have spaces.', property.indexOf(' ') < 0));
34348
34369
 
34349
34370
 
34350
34371
  (0, _emberMetal.expandProperties)(property, extractProperty);
@@ -35241,7 +35262,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35241
35262
  @public
35242
35263
  */
35243
35264
  function mapBy(dependentKey, propertyKey) {
35244
- (true && (0, _emberDebug.assert)('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string'));
35265
+ (true && !(typeof propertyKey === 'string') && (0, _emberDebug.assert)('Ember.computed.mapBy expects a property string for its second argument, ' + 'perhaps you meant to use "map"', typeof propertyKey === 'string'));
35245
35266
 
35246
35267
 
35247
35268
  return map(dependentKey + '.@each.' + propertyKey, function (item) {
@@ -35725,7 +35746,7 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35725
35746
  @public
35726
35747
  */
35727
35748
  function sort(itemsKey, sortDefinition) {
35728
- (true && (0, _emberDebug.assert)('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2));
35749
+ (true && !(arguments.length === 2) && (0, _emberDebug.assert)('Ember.computed.sort requires two arguments: an array key to sort and ' + 'either a sort properties key or sort function', arguments.length === 2));
35729
35750
 
35730
35751
 
35731
35752
  if (typeof sortDefinition === 'function') {
@@ -35754,7 +35775,9 @@ enifed('ember-runtime/computed/reduce_computed_macros', ['exports', 'ember-utils
35754
35775
  var itemsKeyIsAtThis = itemsKey === '@this';
35755
35776
  var sortProperties = (0, _emberMetal.get)(this, sortPropertiesKey);
35756
35777
 
35757
- (true && (0, _emberDebug.assert)('The sort definition for \'' + key + '\' on ' + this + ' must be a function or an array of strings', (0, _utils.isArray)(sortProperties) && sortProperties.every(function (s) {
35778
+ (true && !((0, _utils.isArray)(sortProperties) && sortProperties.every(function (s) {
35779
+ return typeof s === 'string';
35780
+ })) && (0, _emberDebug.assert)('The sort definition for \'' + key + '\' on ' + this + ' must be a function or an array of strings', (0, _utils.isArray)(sortProperties) && sortProperties.every(function (s) {
35758
35781
  return typeof s === 'string';
35759
35782
  })));
35760
35783
 
@@ -35850,7 +35873,7 @@ enifed('ember-runtime/controllers/controller', ['exports', 'ember-debug', 'ember
35850
35873
  (0, _action_handler.deprecateUnderscoreActions)(Controller);
35851
35874
 
35852
35875
  function controllerInjectionHelper(factory) {
35853
- (true && (0, _emberDebug.assert)('Defining an injected controller property on a ' + 'non-controller is not allowed.', _controller.default.detect(factory.PrototypeMixin)));
35876
+ (true && !(_controller.default.detect(factory.PrototypeMixin)) && (0, _emberDebug.assert)('Defining an injected controller property on a ' + 'non-controller is not allowed.', _controller.default.detect(factory.PrototypeMixin)));
35854
35877
  }
35855
35878
 
35856
35879
  /**
@@ -35909,7 +35932,7 @@ enifed('ember-runtime/copy', ['exports', 'ember-debug', 'ember-runtime/system/ob
35909
35932
  return copies[loc];
35910
35933
  }
35911
35934
 
35912
- (true && (0, _emberDebug.assert)('Cannot clone an Ember.Object that does not implement Ember.Copyable', !(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj)));
35935
+ (true && !(!(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj)) && (0, _emberDebug.assert)('Cannot clone an Ember.Object that does not implement Ember.Copyable', !(obj instanceof _object.default) || _copyable.default && _copyable.default.detect(obj)));
35913
35936
 
35914
35937
 
35915
35938
  // IMPORTANT: this specific test will detect a native array only. Any other
@@ -36080,13 +36103,19 @@ enifed('ember-runtime/ext/function', ['ember-environment', 'ember-metal', 'ember
36080
36103
  };
36081
36104
 
36082
36105
  FunctionPrototype._observesImmediately = function () {
36083
- (true && (0, _emberDebug.assert)('Immediate observers must observe internal properties only, ' + 'not properties on other objects.', function checkIsInternalProperty() {
36106
+ (true && !(function checkIsInternalProperty() {
36084
36107
  for (var i = 0; i < arguments.length; i++) {
36085
36108
  if (arguments[i].indexOf('.') !== -1) {
36086
36109
  return false;
36087
36110
  }
36088
36111
  }
36089
36112
  return true;
36113
+ }) && (0, _emberDebug.assert)('Immediate observers must observe internal properties only, ' + 'not properties on other objects.', function checkIsInternalProperty() {
36114
+ for (var i = 0; i < arguments.length; i++) {
36115
+ if (arguments[i].indexOf('.') !== -1) {
36116
+ return false;
36117
+ }
36118
+ }return true;
36090
36119
  }));
36091
36120
 
36092
36121
 
@@ -36177,7 +36206,7 @@ enifed('ember-runtime/ext/rsvp', ['exports', 'rsvp', 'ember-metal', 'ember-debug
36177
36206
  }
36178
36207
 
36179
36208
  if (reason.name === 'UnrecognizedURLError') {
36180
- (true && (0, _emberDebug.assert)('The URL \'' + reason.message + '\' did not match any routes in your application', false));
36209
+ (true && !(false) && (0, _emberDebug.assert)('The URL \'' + reason.message + '\' did not match any routes in your application', false));
36181
36210
 
36182
36211
  return;
36183
36212
  }
@@ -36816,7 +36845,7 @@ enifed('ember-runtime/inject', ['exports', 'ember-metal', 'ember-debug'], functi
36816
36845
  @public
36817
36846
  */
36818
36847
  function inject() {
36819
- (true && (0, _emberDebug.assert)('Injected properties must be created through helpers, see \'' + Object.keys(inject).join('"', '"') + '\''));
36848
+ (true && !(false) && (0, _emberDebug.assert)('Injected properties must be created through helpers, see \'' + Object.keys(inject).join('"', '"') + '\''));
36820
36849
  }
36821
36850
 
36822
36851
  // Dictionary of injection validations by type, added to by `createInjectionHelper`
@@ -37035,7 +37064,7 @@ enifed('ember-runtime/mixins/-proxy', ['exports', 'ember-babel', '@glimmer/refer
37035
37064
  }
37036
37065
 
37037
37066
  var content = (0, _emberMetal.get)(this, 'content');
37038
- (true && (0, _emberDebug.assert)('Cannot delegate set(\'' + key + '\', ' + value + ') to the \'content\' property of object proxy ' + this + ': its \'content\' is undefined.', content));
37067
+ (true && !(content) && (0, _emberDebug.assert)('Cannot delegate set(\'' + key + '\', ' + value + ') to the \'content\' property of object proxy ' + this + ': its \'content\' is undefined.', content));
37039
37068
  (true && !(!this.isController) && (0, _emberDebug.deprecate)('You attempted to set `' + key + '` from `' + this + '`, but object proxying is deprecated. Please use `model.' + key + '` instead.', !this.isController, { id: 'ember-runtime.controller-proxy', until: '3.0.0' }));
37040
37069
 
37041
37070
 
@@ -37082,13 +37111,13 @@ enifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-
37082
37111
 
37083
37112
  var target = (0, _emberMetal.get)(this, 'target');
37084
37113
  if (target) {
37085
- (true && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function'));
37114
+ (true && !(typeof target.send === 'function') && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function'));
37086
37115
 
37087
37116
  target.send.apply(target, arguments);
37088
37117
  }
37089
37118
  },
37090
37119
  willMergeMixin: function (props) {
37091
- (true && (0, _emberDebug.assert)('Specifying `_actions` and `actions` in the same mixin is not supported.', !props.actions || !props._actions));
37120
+ (true && !(!props.actions || !props._actions) && (0, _emberDebug.assert)('Specifying `_actions` and `actions` in the same mixin is not supported.', !props.actions || !props._actions));
37092
37121
 
37093
37122
 
37094
37123
  if (props._actions) {
@@ -37107,7 +37136,7 @@ enifed('ember-runtime/mixins/action_handler', ['exports', 'ember-metal', 'ember-
37107
37136
  configurable: true,
37108
37137
  enumerable: false,
37109
37138
  set: function (value) {
37110
- (true && (0, _emberDebug.assert)('You cannot set `_actions` on ' + this + ', please use `actions` instead.'));
37139
+ (true && !(false) && (0, _emberDebug.assert)('You cannot set `_actions` on ' + this + ', please use `actions` instead.'));
37111
37140
  },
37112
37141
  get: function () {
37113
37142
  (true && !(false) && (0, _emberDebug.deprecate)('Usage of `_actions` is deprecated, use `actions` instead.', false, { id: 'ember-runtime.action-handler-_actions', until: '3.0.0' }));
@@ -37517,7 +37546,7 @@ enifed('ember-runtime/mixins/array', ['exports', 'ember-utils', 'ember-metal', '
37517
37546
  while (--loc >= idx) {
37518
37547
  var item = objectAt(content, loc);
37519
37548
  if (item) {
37520
- (true && (0, _emberDebug.assert)('When using @each to observe the array ' + content + ', the array must return an object', typeof item === 'object'));
37549
+ (true && !(typeof item === 'object') && (0, _emberDebug.assert)('When using @each to observe the array ' + content + ', the array must return an object', typeof item === 'object'));
37521
37550
 
37522
37551
  (0, _emberMetal._addBeforeObserver)(item, keyName, proxy, 'contentKeyWillChange');
37523
37552
  (0, _emberMetal.addObserver)(item, keyName, proxy, 'contentKeyDidChange');
@@ -38307,7 +38336,7 @@ enifed('ember-runtime/mixins/enumerable', ['exports', 'ember-utils', 'ember-meta
38307
38336
  return ret;
38308
38337
  },
38309
38338
  includes: function (obj) {
38310
- (true && (0, _emberDebug.assert)('Enumerable#includes cannot accept a second argument "startAt" as enumerable items are unordered.', arguments.length === 1));
38339
+ (true && !(arguments.length === 1) && (0, _emberDebug.assert)('Enumerable#includes cannot accept a second argument "startAt" as enumerable items are unordered.', arguments.length === 1));
38311
38340
 
38312
38341
 
38313
38342
  var len = (0, _emberMetal.get)(this, 'length');
@@ -39301,7 +39330,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
39301
39330
  if ((0, _emberMetal.isNone)(increment)) {
39302
39331
  increment = 1;
39303
39332
  }
39304
- (true && (0, _emberDebug.assert)('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment)));
39333
+ (true && !(!isNaN(parseFloat(increment)) && isFinite(increment)) && (0, _emberDebug.assert)('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment)));
39305
39334
 
39306
39335
  return (0, _emberMetal.set)(this, keyName, (parseFloat((0, _emberMetal.get)(this, keyName)) || 0) + increment);
39307
39336
  },
@@ -39323,7 +39352,7 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal', 'ember-debu
39323
39352
  if ((0, _emberMetal.isNone)(decrement)) {
39324
39353
  decrement = 1;
39325
39354
  }
39326
- (true && (0, _emberDebug.assert)('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement)));
39355
+ (true && !(!isNaN(parseFloat(decrement)) && isFinite(decrement)) && (0, _emberDebug.assert)('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement)));
39327
39356
 
39328
39357
  return (0, _emberMetal.set)(this, keyName, ((0, _emberMetal.get)(this, keyName) || 0) - decrement);
39329
39358
  },
@@ -39750,10 +39779,6 @@ enifed('ember-runtime/mixins/registry_proxy', ['exports', 'ember-metal', 'ember-
39750
39779
  classes that are instantiated by Ember itself. Instantiating a class
39751
39780
  directly (via `create` or `new`) bypasses the dependency injection
39752
39781
  system.
39753
- **Note:** Ember-Data instantiates its models in a unique manner, and consequently
39754
- injections onto models (or all models) will not work as expected. Injections
39755
- on models can be enabled by setting `EmberENV.MODEL_FACTORY_INJECTIONS`
39756
- to `true`.
39757
39782
  @public
39758
39783
  @method inject
39759
39784
  @param factoryNameOrType {String}
@@ -39910,7 +39935,7 @@ enifed('ember-runtime/mixins/target_action_support', ['exports', 'ember-environm
39910
39935
  } else {
39911
39936
  var _target2;
39912
39937
 
39913
- (true && (0, _emberDebug.assert)('The action \'' + action + '\' did not exist on ' + target, typeof target[action] === 'function'));
39938
+ (true && !(typeof target[action] === 'function') && (0, _emberDebug.assert)('The action \'' + action + '\' did not exist on ' + target, typeof target[action] === 'function'));
39914
39939
 
39915
39940
  ret = (_target2 = target)[action].apply(_target2, args(actionContext));
39916
39941
  }
@@ -40145,7 +40170,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
40145
40170
  _contentDidChange: (0, _emberMetal.observer)('content', function () {
40146
40171
  var content = (0, _emberMetal.get)(this, 'content');
40147
40172
 
40148
- (true && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', content !== this));
40173
+ (true && !(content !== this) && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', content !== this));
40149
40174
 
40150
40175
 
40151
40176
  this._setupContent();
@@ -40155,7 +40180,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
40155
40180
  var content = (0, _emberMetal.get)(this, 'content');
40156
40181
 
40157
40182
  if (content) {
40158
- (true && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof content, (0, _utils.isArray)(content) || content.isDestroyed));
40183
+ (true && !((0, _utils.isArray)(content) || content.isDestroyed) && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof content, (0, _utils.isArray)(content) || content.isDestroyed));
40159
40184
 
40160
40185
 
40161
40186
  (0, _array.addArrayObserver)(content, this, {
@@ -40180,7 +40205,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
40180
40205
  var arrangedContent = (0, _emberMetal.get)(this, 'arrangedContent');
40181
40206
  var len = arrangedContent ? (0, _emberMetal.get)(arrangedContent, 'length') : 0;
40182
40207
 
40183
- (true && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', arrangedContent !== this));
40208
+ (true && !(arrangedContent !== this) && (0, _emberDebug.assert)('Can\'t set ArrayProxy\'s content to itself', arrangedContent !== this));
40184
40209
 
40185
40210
 
40186
40211
  this._setupArrangedContent();
@@ -40193,7 +40218,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
40193
40218
  var arrangedContent = (0, _emberMetal.get)(this, 'arrangedContent');
40194
40219
 
40195
40220
  if (arrangedContent) {
40196
- (true && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof arrangedContent, (0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed));
40221
+ (true && !((0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed) && (0, _emberDebug.assert)('ArrayProxy expects an Array or Ember.ArrayProxy, but you passed ' + typeof arrangedContent, (0, _utils.isArray)(arrangedContent) || arrangedContent.isDestroyed));
40197
40222
 
40198
40223
 
40199
40224
  (0, _array.addArrayObserver)(arrangedContent, this, {
@@ -40230,7 +40255,7 @@ enifed('ember-runtime/system/array_proxy', ['exports', 'ember-metal', 'ember-run
40230
40255
 
40231
40256
  _replace: function (idx, amt, objects) {
40232
40257
  var content = (0, _emberMetal.get)(this, 'content');
40233
- (true && (0, _emberDebug.assert)('The content property of ' + this.constructor + ' should be set before modifying it', content));
40258
+ (true && !(content) && (0, _emberDebug.assert)('The content property of ' + this.constructor + ' should be set before modifying it', content));
40234
40259
 
40235
40260
  if (content) {
40236
40261
  this.replaceContent(idx, amt, objects);
@@ -40399,7 +40424,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40399
40424
 
40400
40425
  for (var i = 0; i < props.length; i++) {
40401
40426
  var properties = props[i];
40402
- (true && (0, _emberDebug.assert)('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetal.Mixin)));
40427
+ (true && !(!(properties instanceof _emberMetal.Mixin)) && (0, _emberDebug.assert)('Ember.Object.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof _emberMetal.Mixin)));
40403
40428
 
40404
40429
 
40405
40430
  if (typeof properties !== 'object' && properties !== undefined) {
@@ -40423,9 +40448,9 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40423
40448
  var possibleDesc = this[keyName];
40424
40449
  var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;
40425
40450
 
40426
- (true && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(value instanceof _emberMetal.ComputedProperty)));
40427
- (true && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1)));
40428
- (true && (0, _emberDebug.assert)('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _action_handler.default.detect(this))));
40451
+ (true && !(!(value instanceof _emberMetal.ComputedProperty)) && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !(value instanceof _emberMetal.ComputedProperty)));
40452
+ (true && !(!(typeof value === 'function' && value.toString().indexOf('._super') !== -1)) && (0, _emberDebug.assert)('Ember.Object.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1)));
40453
+ (true && !(!(keyName === 'actions' && _action_handler.default.detect(this))) && (0, _emberDebug.assert)('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && _action_handler.default.detect(this))));
40429
40454
 
40430
40455
 
40431
40456
  if (concatenatedProperties && concatenatedProperties.length > 0 && concatenatedProperties.indexOf(keyName) >= 0) {
@@ -40546,7 +40571,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40546
40571
  return;
40547
40572
  }
40548
40573
 
40549
- (true && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false));
40574
+ (true && !(false) && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroyed` directly, please use ').destroy()(_templateObject), false));
40550
40575
  }
40551
40576
  }), _Mixin$create.isDestroying = (0, _emberMetal.descriptor)({
40552
40577
  get: function () {
@@ -40558,7 +40583,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40558
40583
  return;
40559
40584
  }
40560
40585
 
40561
- (true && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false));
40586
+ (true && !(false) && (0, _emberDebug.assert)(('You cannot set `' + this + '.isDestroying` directly, please use ').destroy()(_templateObject), false));
40562
40587
  }
40563
40588
  }), _Mixin$create.destroy = function () {
40564
40589
  var m = (0, _emberMetal.meta)(this);
@@ -40664,7 +40689,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40664
40689
  var possibleDesc = proto[key];
40665
40690
  var desc = possibleDesc !== null && typeof possibleDesc === 'object' && possibleDesc.isDescriptor ? possibleDesc : undefined;
40666
40691
 
40667
- (true && (0, _emberDebug.assert)('metaForProperty() could not find a computed property with key \'' + key + '\'.', !!desc && desc instanceof _emberMetal.ComputedProperty));
40692
+ (true && !(!!desc && desc instanceof _emberMetal.ComputedProperty) && (0, _emberDebug.assert)('metaForProperty() could not find a computed property with key \'' + key + '\'.', !!desc && desc instanceof _emberMetal.ComputedProperty));
40668
40693
 
40669
40694
  return desc._meta || {};
40670
40695
  }, _ClassMixinProps._computedProperties = (0, _emberMetal.computed)(function () {
@@ -40697,7 +40722,7 @@ enifed('ember-runtime/system/core_object', ['exports', 'ember-babel', 'ember-uti
40697
40722
  }, _ClassMixinProps);
40698
40723
 
40699
40724
  function injectedPropertyAssertion() {
40700
- (true && (0, _emberDebug.assert)('Injected properties are invalid', (0, _inject.validatePropertyInjections)(this)));
40725
+ (true && !((0, _inject.validatePropertyInjections)(this)) && (0, _emberDebug.assert)('Injected properties are invalid', (0, _inject.validatePropertyInjections)(this)));
40701
40726
  }
40702
40727
 
40703
40728
  if (true) {
@@ -41262,7 +41287,7 @@ enifed('ember-runtime/system/object', ['exports', 'ember-utils', 'ember-metal',
41262
41287
  this[INIT_WAS_CALLED] = true;
41263
41288
  }
41264
41289
  }, _EmberObject$extend[ASSERT_INIT_WAS_CALLED] = (0, _emberMetal.on)('init', function () {
41265
- (true && (0, _emberDebug.assert)('You must call `this._super(...arguments);` when overriding `init` on a framework object. Please update ' + this + ' to call `this._super(...arguments);` from `init`.', this[INIT_WAS_CALLED]));
41290
+ (true && !(this[INIT_WAS_CALLED]) && (0, _emberDebug.assert)('You must call `this._super(...arguments);` when overriding `init` on a framework object. Please update ' + this + ' to call `this._super(...arguments);` from `init`.', this[INIT_WAS_CALLED]));
41266
41291
  }), _EmberObject$extend));
41267
41292
  }
41268
41293
 
@@ -41860,7 +41885,7 @@ enifed('ember-template-compiler/plugins/assert-reserved-named-arguments', ['expo
41860
41885
  this.syntax.traverse(ast, {
41861
41886
  PathExpression: function (node) {
41862
41887
  if (node.original[0] === '@') {
41863
- (true && (0, _emberDebug.assert)(assertMessage(moduleName, node)));
41888
+ (true && !(false) && (0, _emberDebug.assert)(assertMessage(moduleName, node)));
41864
41889
  }
41865
41890
  }
41866
41891
  });
@@ -42740,7 +42765,7 @@ enifed('ember-template-compiler/plugins/transform-old-binding-syntax', ['exports
42740
42765
  return;
42741
42766
  }
42742
42767
 
42743
- (true && (0, _emberDebug.assert)('Setting \'attributeBindings\' via template helpers is not allowed ' + sourceInformation, key !== 'attributeBindings'));
42768
+ (true && !(key !== 'attributeBindings') && (0, _emberDebug.assert)('Setting \'attributeBindings\' via template helpers is not allowed ' + sourceInformation, key !== 'attributeBindings'));
42744
42769
 
42745
42770
 
42746
42771
  if (key.substr(-7) === 'Binding') {
@@ -43940,7 +43965,7 @@ enifed('ember-testing/helpers/pause_test', ['exports', 'ember-runtime', 'ember-c
43940
43965
  @submodule ember-testing
43941
43966
  */
43942
43967
  function resumeTest() {
43943
- (true && (0, _emberDebug.assert)('Testing has not been paused. There is nothing to resume.', resume));
43968
+ (true && !(resume) && (0, _emberDebug.assert)('Testing has not been paused. There is nothing to resume.', resume));
43944
43969
 
43945
43970
  resume();
43946
43971
  resume = undefined;
@@ -45577,13 +45602,13 @@ enifed('ember-views/component_lookup', ['exports', 'ember-debug', 'ember-runtime
45577
45602
 
45578
45603
  exports.default = _emberRuntime.Object.extend({
45579
45604
  componentFor: function (name, owner, options) {
45580
- (true && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-')));
45605
+ (true && !(~name.indexOf('-')) && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-')));
45581
45606
 
45582
45607
  var fullName = 'component:' + name;
45583
45608
  return owner.factoryFor(fullName, options);
45584
45609
  },
45585
45610
  layoutFor: function (name, owner, options) {
45586
- (true && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-')));
45611
+ (true && !(~name.indexOf('-')) && (0, _emberDebug.assert)('You cannot use \'' + name + '\' as a component name. Component names must contain a hyphen.', ~name.indexOf('-')));
45587
45612
 
45588
45613
 
45589
45614
  var templateFullName = 'template:components/' + name;
@@ -45770,7 +45795,7 @@ enifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-me
45770
45795
  actionName = actionName.value;
45771
45796
  }
45772
45797
 
45773
- (true && (0, _emberDebug.assert)('The default action was triggered on the component ' + component.toString() + ', but the action name (' + actionName + ') was not a string.', (0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function'));
45798
+ (true && !((0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function') && (0, _emberDebug.assert)('The default action was triggered on the component ' + component.toString() + ', but the action name (' + actionName + ') was not a string.', (0, _emberMetal.isNone)(actionName) || typeof actionName === 'string' || typeof actionName === 'function'));
45774
45799
 
45775
45800
  return actionName;
45776
45801
  }
@@ -45894,11 +45919,11 @@ enifed('ember-views/mixins/action_support', ['exports', 'ember-utils', 'ember-me
45894
45919
 
45895
45920
  var target = (0, _emberMetal.get)(this, 'target');
45896
45921
  if (target) {
45897
- (true && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function'));
45922
+ (true && !(typeof target.send === 'function') && (0, _emberDebug.assert)('The `target` for ' + this + ' (' + target + ') does not have a `send` method', typeof target.send === 'function'));
45898
45923
 
45899
45924
  target.send.apply(target, arguments);
45900
45925
  } else {
45901
- (true && (0, _emberDebug.assert)((0, _emberUtils.inspect)(this) + ' had no action handler for: ' + actionName, action));
45926
+ (true && !(action) && (0, _emberDebug.assert)((0, _emberUtils.inspect)(this) + ' had no action handler for: ' + actionName, action));
45902
45927
  }
45903
45928
  }
45904
45929
  });
@@ -45960,8 +45985,8 @@ enifed('ember-views/mixins/class_names_support', ['exports', 'ember-metal', 'emb
45960
45985
  init: function () {
45961
45986
  this._super.apply(this, arguments);
45962
45987
 
45963
- (true && (0, _emberDebug.assert)('Only arrays are allowed for \'classNameBindings\'', Array.isArray(this.classNameBindings)));
45964
- (true && (0, _emberDebug.assert)('Only arrays of static class strings are allowed for \'classNames\'. For dynamic classes, use \'classNameBindings\'.', Array.isArray(this.classNames)));
45988
+ (true && !(Array.isArray(this.classNameBindings)) && (0, _emberDebug.assert)('Only arrays are allowed for \'classNameBindings\'', Array.isArray(this.classNameBindings)));
45989
+ (true && !(Array.isArray(this.classNames)) && (0, _emberDebug.assert)('Only arrays of static class strings are allowed for \'classNames\'. For dynamic classes, use \'classNameBindings\'.', Array.isArray(this.classNames)));
45965
45990
  },
45966
45991
 
45967
45992
 
@@ -46504,7 +46529,7 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-babel', 'ember-util
46504
46529
  return this.renderer.getElement(this);
46505
46530
  }
46506
46531
  }), _Mixin$create.$ = function (sel) {
46507
- (true && (0, _emberDebug.assert)('You cannot access this.$() on a component with `tagName: \'\'` specified.', this.tagName !== ''));
46532
+ (true && !(this.tagName !== '') && (0, _emberDebug.assert)('You cannot access this.$() on a component with `tagName: \'\'` specified.', this.tagName !== ''));
46508
46533
 
46509
46534
  if (this.element) {
46510
46535
  return sel ? (0, _jquery.default)(sel, this.element) : (0, _jquery.default)(this.element);
@@ -46516,9 +46541,9 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-babel', 'ember-util
46516
46541
  if (env.hasDOM) {
46517
46542
  target = typeof selector === 'string' ? document.querySelector(selector) : selector;
46518
46543
 
46519
- (true && (0, _emberDebug.assert)('You tried to append to (' + selector + ') but that isn\'t in the DOM', target));
46520
- (true && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', !(0, _utils.matches)(target, '.ember-view')));
46521
- (true && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', function () {
46544
+ (true && !(target) && (0, _emberDebug.assert)('You tried to append to (' + selector + ') but that isn\'t in the DOM', target));
46545
+ (true && !(!(0, _utils.matches)(target, '.ember-view')) && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', !(0, _utils.matches)(target, '.ember-view')));
46546
+ (true && !(function () {
46522
46547
  var node = target.parentNode;
46523
46548
  while (node) {
46524
46549
  if (node.nodeType !== 9 && (0, _utils.matches)(node, '.ember-view')) {
@@ -46529,12 +46554,18 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-babel', 'ember-util
46529
46554
  }
46530
46555
 
46531
46556
  return true;
46557
+ }()) && (0, _emberDebug.assert)('You cannot append to an existing Ember.View.', function () {
46558
+ var node = target.parentNode;while (node) {
46559
+ if (node.nodeType !== 9 && (0, _utils.matches)(node, '.ember-view')) {
46560
+ return false;
46561
+ }node = node.parentNode;
46562
+ }return true;
46532
46563
  }()));
46533
46564
  } else {
46534
46565
  target = selector;
46535
46566
 
46536
- (true && (0, _emberDebug.assert)('You tried to append to a selector string (' + selector + ') in an environment without jQuery', typeof target !== 'string'));
46537
- (true && (0, _emberDebug.assert)('You tried to append to a non-Element (' + selector + ') in an environment without jQuery', typeof selector.appendChild === 'function'));
46567
+ (true && !(typeof target !== 'string') && (0, _emberDebug.assert)('You tried to append to a selector string (' + selector + ') in an environment without jQuery', typeof target !== 'string'));
46568
+ (true && !(typeof selector.appendChild === 'function') && (0, _emberDebug.assert)('You tried to append to a non-Element (' + selector + ') in an environment without jQuery', typeof selector.appendChild === 'function'));
46538
46569
  }
46539
46570
 
46540
46571
  this.renderer.appendTo(this, target);
@@ -46606,7 +46637,7 @@ enifed('ember-views/mixins/view_support', ['exports', 'ember-babel', 'ember-util
46606
46637
  until: '2.13.0',
46607
46638
  url: 'http://emberjs.com/deprecations/v2.x/#toc_arguments-in-component-lifecycle-hooks'
46608
46639
  }));
46609
- (true && (0, _emberDebug.assert)('Using a custom `.render` function is no longer supported.', !this.render));
46640
+ (true && !(!this.render) && (0, _emberDebug.assert)('Using a custom `.render` function is no longer supported.', !this.render));
46610
46641
  }, _Mixin$create.__defineNonEnumerable = function (property) {
46611
46642
  this[property.name] = property.descriptor.value;
46612
46643
  }, _Mixin$create.handleEvent = function (eventName, evt) {
@@ -46753,7 +46784,7 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
46753
46784
 
46754
46785
  init: function () {
46755
46786
  this._super();
46756
- (true && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM));
46787
+ (true && !(_emberEnvironment.environment.hasDOM) && (0, _emberDebug.assert)('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', _emberEnvironment.environment.hasDOM));
46757
46788
  (true && !(!('canDispatchToEventManager' in this)) && (0, _emberDebug.deprecate)('`canDispatchToEventManager` has been deprecated in ' + this + '.', !('canDispatchToEventManager' in this), {
46758
46789
  id: 'ember-views.event-dispatcher.canDispatchToEventManager',
46759
46790
  until: '2.16.0'
@@ -46783,9 +46814,9 @@ enifed('ember-views/system/event_dispatcher', ['exports', 'ember-utils', 'ember-
46783
46814
 
46784
46815
  rootElement = (0, _jquery.default)(rootElement);
46785
46816
 
46786
- (true && (0, _emberDebug.assert)('You cannot use the same root element (' + (rootElement.selector || rootElement[0].tagName) + ') multiple times in an Ember.Application', !rootElement.is(ROOT_ELEMENT_SELECTOR)));
46787
- (true && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length));
46788
- (true && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length));
46817
+ (true && !(!rootElement.is(ROOT_ELEMENT_SELECTOR)) && (0, _emberDebug.assert)('You cannot use the same root element (' + (rootElement.selector || rootElement[0].tagName) + ') multiple times in an Ember.Application', !rootElement.is(ROOT_ELEMENT_SELECTOR)));
46818
+ (true && !(!rootElement.closest(ROOT_ELEMENT_SELECTOR).length) && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length));
46819
+ (true && !(!rootElement.find(ROOT_ELEMENT_SELECTOR).length) && (0, _emberDebug.assert)('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length));
46789
46820
 
46790
46821
 
46791
46822
  rootElement.addClass(ROOT_ELEMENT_CLASS);
@@ -46971,7 +47002,7 @@ enifed('ember-views/system/lookup_partial', ['exports', 'ember-debug'], function
46971
47002
 
46972
47003
  var template = templateFor(owner, parseUnderscoredName(templateName), templateName);
46973
47004
 
46974
- (true && (0, _emberDebug.assert)('Unable to find partial with name "' + templateName + '"', !!template));
47005
+ (true && !(!!template) && (0, _emberDebug.assert)('Unable to find partial with name "' + templateName + '"', !!template));
46975
47006
 
46976
47007
 
46977
47008
  return template;
@@ -46989,7 +47020,7 @@ enifed('ember-views/system/lookup_partial', ['exports', 'ember-debug'], function
46989
47020
  if (!name) {
46990
47021
  return;
46991
47022
  }
46992
- (true && (0, _emberDebug.assert)('templateNames are not allowed to contain periods: ' + name, name.indexOf('.') === -1));
47023
+ (true && !(name.indexOf('.') === -1) && (0, _emberDebug.assert)('templateNames are not allowed to contain periods: ' + name, name.indexOf('.') === -1));
46993
47024
 
46994
47025
 
46995
47026
  if (!owner) {
@@ -47291,7 +47322,7 @@ enifed('ember-views/views/core_view', ['exports', 'ember-runtime', 'ember-views/
47291
47322
  this._super.apply(this, arguments);
47292
47323
  var name = arguments[0];
47293
47324
  var method = this[name];
47294
- if (method) {
47325
+ if (typeof method === 'function') {
47295
47326
  var args = new Array(arguments.length - 1);
47296
47327
  for (var i = 1; i < arguments.length; i++) {
47297
47328
  args[i - 1] = arguments[i];
@@ -47300,7 +47331,7 @@ enifed('ember-views/views/core_view', ['exports', 'ember-runtime', 'ember-views/
47300
47331
  }
47301
47332
  },
47302
47333
  has: function (name) {
47303
- return (0, _emberRuntime.typeOf)(this[name]) === 'function' || this._super(name);
47334
+ return typeof this[name] === 'function' || this._super(name);
47304
47335
  }
47305
47336
  });
47306
47337
 
@@ -47535,12 +47566,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
47535
47566
  _emberMetal.default.assert = _emberDebug.assert;
47536
47567
  _emberMetal.default.warn = _emberDebug.warn;
47537
47568
  _emberMetal.default.debug = _emberDebug.debug;
47538
- _emberMetal.default.deprecate = function () {};
47539
- _emberMetal.default.deprecateFunc = function () {};
47540
- if (true) {
47541
- _emberMetal.default.deprecate = _emberDebug.deprecate;
47542
- _emberMetal.default.deprecateFunc = _emberDebug.deprecateFunc;
47543
- }
47569
+ _emberMetal.default.deprecate = _emberDebug.deprecate;
47544
47570
  _emberMetal.default.deprecateFunc = _emberDebug.deprecateFunc;
47545
47571
  _emberMetal.default.runInDebug = _emberDebug.runInDebug;
47546
47572
  /**
@@ -47687,16 +47713,22 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
47687
47713
  enumerable: false
47688
47714
  });
47689
47715
 
47690
- Object.defineProperty(_emberMetal.default, 'MODEL_FACTORY_INJECTIONS', {
47691
- get: function () {
47692
- return _emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS;
47693
- },
47694
- set: function (value) {
47695
- _emberEnvironment.ENV.MODEL_FACTORY_INJECTIONS = !!value;
47696
- },
47716
+ if (true) {
47717
+ Object.defineProperty(_emberMetal.default, 'MODEL_FACTORY_INJECTIONS', {
47718
+ get: function () {
47719
+ return false;
47720
+ },
47721
+ set: function (value) {
47722
+ (true && !(false) && (0, _emberDebug.deprecate)('Ember.MODEL_FACTORY_INJECTIONS is no longer required', false, {
47723
+ id: 'ember-metal.model_factory_injections',
47724
+ until: '2.17.0',
47725
+ url: 'https://emberjs.com/deprecations/v2.x/#toc_ember-model-em-factory-em-injections-removed'
47726
+ }));
47727
+ },
47697
47728
 
47698
- enumerable: false
47699
- });
47729
+ enumerable: false
47730
+ });
47731
+ }
47700
47732
 
47701
47733
  Object.defineProperty(_emberMetal.default, 'LOG_BINDINGS', {
47702
47734
  get: function () {
@@ -48046,7 +48078,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'node-module',
48046
48078
  enifed("ember/version", ["exports"], function (exports) {
48047
48079
  "use strict";
48048
48080
 
48049
- exports.default = "2.14.0-beta.2";
48081
+ exports.default = "2.14.0-beta.3";
48050
48082
  });
48051
48083
  enifed("handlebars", ["exports"], function (exports) {
48052
48084
  "use strict";
@@ -50714,7 +50746,18 @@ enifed('router', ['exports', 'route-recognizer', 'rsvp'], function (exports, _ro
50714
50746
  // TODO: add tests for merged state retry()s
50715
50747
  this.abort();
50716
50748
  var newTransition = this.router.transitionByIntent(this.intent, false);
50717
- newTransition.method(this.urlMethod);
50749
+
50750
+ // inheriting a `null` urlMethod is not valid
50751
+ // the urlMethod is only set to `null` when
50752
+ // the transition is initiated *after* the url
50753
+ // has been updated (i.e. `router.handleURL`)
50754
+ //
50755
+ // in that scenario, the url method cannot be
50756
+ // inherited for a new transition because then
50757
+ // the url would not update even though it should
50758
+ if (this.urlMethod !== null) {
50759
+ newTransition.method(this.urlMethod);
50760
+ }
50718
50761
  return newTransition;
50719
50762
  },
50720
50763