ember-source 2.11.2 → 2.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/dist/ember-runtime.js +19 -13
- data/dist/ember-template-compiler.js +10 -6
- data/dist/ember-testing.js +2 -2
- data/dist/ember-tests.js +86 -20
- data/dist/ember-tests.prod.js +84 -20
- data/dist/ember.debug.js +33 -26
- data/dist/ember.js +33 -26
- data/dist/ember.min.js +737 -735
- data/dist/ember.prod.js +31 -24
- metadata +2 -2
data/dist/ember.debug.js
CHANGED
@@ -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.11.
|
9
|
+
* @version 2.11.3
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -174,7 +174,7 @@ function defaults(obj, defaults) {
|
|
174
174
|
return obj;
|
175
175
|
}
|
176
176
|
|
177
|
-
babelHelpers = {
|
177
|
+
var babelHelpers = {
|
178
178
|
classCallCheck: classCallCheck,
|
179
179
|
inherits: inherits,
|
180
180
|
taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
|
@@ -8916,7 +8916,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
8916
8916
|
this.isInteractive = owner.lookup('-environment:main').isInteractive;
|
8917
8917
|
|
8918
8918
|
// can be removed once https://github.com/tildeio/glimmer/pull/305 lands
|
8919
|
-
this.destroyedComponents =
|
8919
|
+
this.destroyedComponents = [];
|
8920
8920
|
|
8921
8921
|
_emberGlimmerProtocolForUrl.default(this);
|
8922
8922
|
|
@@ -9268,16 +9268,16 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9268
9268
|
this.inTransaction = true;
|
9269
9269
|
|
9270
9270
|
_GlimmerEnvironment.prototype.begin.call(this);
|
9271
|
-
|
9272
|
-
this.destroyedComponents = [];
|
9273
9271
|
};
|
9274
9272
|
|
9275
9273
|
Environment.prototype.commit = function commit() {
|
9274
|
+
var destroyedComponents = this.destroyedComponents;
|
9275
|
+
this.destroyedComponents = [];
|
9276
9276
|
// components queued for destruction must be destroyed before firing
|
9277
9277
|
// `didCreate` to prevent errors when removing and adding a component
|
9278
9278
|
// with the same name (would throw an error when added to view registry)
|
9279
|
-
for (var i = 0; i <
|
9280
|
-
|
9279
|
+
for (var i = 0; i < destroyedComponents.length; i++) {
|
9280
|
+
destroyedComponents[i].destroy();
|
9281
9281
|
}
|
9282
9282
|
|
9283
9283
|
_GlimmerEnvironment.prototype.commit.call(this);
|
@@ -9303,7 +9303,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9303
9303
|
StyleAttributeManager.prototype.setAttribute = function setAttribute(dom, element, value) {
|
9304
9304
|
var _AttributeManager$prototype$setAttribute;
|
9305
9305
|
|
9306
|
-
_emberMetal.warn(_emberViews.
|
9306
|
+
_emberMetal.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {
|
9307
9307
|
if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {
|
9308
9308
|
return true;
|
9309
9309
|
}
|
@@ -9315,7 +9315,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9315
9315
|
StyleAttributeManager.prototype.updateAttribute = function updateAttribute(dom, element, value) {
|
9316
9316
|
var _AttributeManager$prototype$updateAttribute;
|
9317
9317
|
|
9318
|
-
_emberMetal.warn(_emberViews.
|
9318
|
+
_emberMetal.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {
|
9319
9319
|
if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {
|
9320
9320
|
return true;
|
9321
9321
|
}
|
@@ -10039,7 +10039,7 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-utils', 'ember-glim
|
|
10039
10039
|
)}}
|
10040
10040
|
```
|
10041
10041
|
|
10042
|
-
When yielding the component via the `hash` helper, the component is
|
10042
|
+
When yielding the component via the `hash` helper, the component is invoked directly.
|
10043
10043
|
See the following snippet:
|
10044
10044
|
|
10045
10045
|
```
|
@@ -17577,6 +17577,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
17577
17577
|
exports.getOnerror = getOnerror;
|
17578
17578
|
exports.setOnerror = setOnerror;
|
17579
17579
|
exports.dispatchError = dispatchError;
|
17580
|
+
exports.getDispatchOverride = getDispatchOverride;
|
17580
17581
|
exports.setDispatchOverride = setDispatchOverride;
|
17581
17582
|
|
17582
17583
|
// To maintain stacktrace consistency across browsers
|
@@ -17617,6 +17618,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
17617
17618
|
|
17618
17619
|
// allows testing adapter to override dispatch
|
17619
17620
|
|
17621
|
+
function getDispatchOverride() {
|
17622
|
+
return dispatchOverride;
|
17623
|
+
}
|
17624
|
+
|
17620
17625
|
function setDispatchOverride(handler) {
|
17621
17626
|
dispatchOverride = handler;
|
17622
17627
|
}
|
@@ -22187,7 +22192,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
|
|
22187
22192
|
|
22188
22193
|
var onErrorTarget = {
|
22189
22194
|
get onerror() {
|
22190
|
-
return _emberMetalError_handler.
|
22195
|
+
return _emberMetalError_handler.dispatchError;
|
22191
22196
|
},
|
22192
22197
|
set onerror(handler) {
|
22193
22198
|
return _emberMetalError_handler.setOnerror(handler);
|
@@ -34859,9 +34864,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
34859
34864
|
only a sender and key value as parameters or, if you aren't interested in
|
34860
34865
|
any of these values, to write an observer that has no parameters at all.
|
34861
34866
|
@method addObserver
|
34862
|
-
@param {String} key The key to
|
34867
|
+
@param {String} key The key to observe
|
34863
34868
|
@param {Object} target The target object to invoke
|
34864
|
-
@param {String|Function} method The method to invoke
|
34869
|
+
@param {String|Function} method The method to invoke
|
34865
34870
|
@public
|
34866
34871
|
*/
|
34867
34872
|
addObserver: function (key, target, method) {
|
@@ -34873,9 +34878,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
34873
34878
|
the same key, target, and method you passed to `addObserver()` and your
|
34874
34879
|
target will no longer receive notifications.
|
34875
34880
|
@method removeObserver
|
34876
|
-
@param {String} key The key to
|
34881
|
+
@param {String} key The key to observe
|
34877
34882
|
@param {Object} target The target object to invoke
|
34878
|
-
@param {String|Function} method The method to invoke
|
34883
|
+
@param {String|Function} method The method to invoke
|
34879
34884
|
@public
|
34880
34885
|
*/
|
34881
34886
|
removeObserver: function (key, target, method) {
|
@@ -40311,8 +40316,7 @@ enifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports
|
|
40311
40316
|
For example, this component dynamically looks up a service based on the
|
40312
40317
|
`audioType` passed as an attribute:
|
40313
40318
|
|
40314
|
-
```
|
40315
|
-
// app/components/play-audio.js
|
40319
|
+
```app/components/play-audio.js
|
40316
40320
|
import Ember from 'ember';
|
40317
40321
|
|
40318
40322
|
// Usage:
|
@@ -40531,7 +40535,7 @@ enifed('ember-views/index', ['exports', 'ember-views/system/ext', 'ember-views/s
|
|
40531
40535
|
exports.getViewId = _emberViewsSystemUtils.getViewId;
|
40532
40536
|
exports.getViewElement = _emberViewsSystemUtils.getViewElement;
|
40533
40537
|
exports.setViewElement = _emberViewsSystemUtils.setViewElement;
|
40534
|
-
exports.
|
40538
|
+
exports.constructStyleDeprecationMessage = _emberViewsSystemUtils.constructStyleDeprecationMessage;
|
40535
40539
|
exports.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;
|
40536
40540
|
exports.ComponentLookup = _emberViewsComponent_lookup.default;
|
40537
40541
|
exports.TextSupport = _emberViewsMixinsText_support.default;
|
@@ -41949,6 +41953,7 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
41949
41953
|
'use strict';
|
41950
41954
|
|
41951
41955
|
exports.isSimpleClick = isSimpleClick;
|
41956
|
+
exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;
|
41952
41957
|
exports.getRootViews = getRootViews;
|
41953
41958
|
exports.getViewId = getViewId;
|
41954
41959
|
exports.getViewElement = getViewElement;
|
@@ -41976,9 +41981,10 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
41976
41981
|
return !modifier && !secondaryClick;
|
41977
41982
|
}
|
41978
41983
|
|
41979
|
-
|
41984
|
+
function constructStyleDeprecationMessage(affectedStyle) {
|
41985
|
+
return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: "' + affectedStyle + '"';
|
41986
|
+
}
|
41980
41987
|
|
41981
|
-
exports.STYLE_WARNING = STYLE_WARNING;
|
41982
41988
|
/**
|
41983
41989
|
@private
|
41984
41990
|
@method getRootViews
|
@@ -42993,7 +42999,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
|
|
42993
42999
|
enifed("ember/version", ["exports"], function (exports) {
|
42994
43000
|
"use strict";
|
42995
43001
|
|
42996
|
-
exports.default = "2.11.
|
43002
|
+
exports.default = "2.11.3";
|
42997
43003
|
});
|
42998
43004
|
enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
|
42999
43005
|
'use strict';
|
@@ -58413,6 +58419,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
58413
58419
|
} else {
|
58414
58420
|
if (then$$ === GET_THEN_ERROR) {
|
58415
58421
|
reject(promise, GET_THEN_ERROR.error);
|
58422
|
+
GET_THEN_ERROR.error = null;
|
58416
58423
|
} else if (then$$ === undefined) {
|
58417
58424
|
fulfill(promise, maybeThenable);
|
58418
58425
|
} else if (isFunction(then$$)) {
|
@@ -58540,10 +58547,10 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
58540
58547
|
if (value === TRY_CATCH_ERROR) {
|
58541
58548
|
failed = true;
|
58542
58549
|
error = value.error;
|
58543
|
-
value = null;
|
58550
|
+
value.error = null; // release
|
58544
58551
|
} else {
|
58545
|
-
|
58546
|
-
|
58552
|
+
succeeded = true;
|
58553
|
+
}
|
58547
58554
|
|
58548
58555
|
if (promise === value) {
|
58549
58556
|
reject(promise, withOwnPromise());
|
@@ -59327,7 +59334,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
59327
59334
|
try {
|
59328
59335
|
return findAuthor(); // succeed or fail
|
59329
59336
|
} catch(error) {
|
59330
|
-
return
|
59337
|
+
return findOtherAuthor();
|
59331
59338
|
} finally {
|
59332
59339
|
// always runs
|
59333
59340
|
// doesn't affect the return value
|
@@ -59338,7 +59345,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
59338
59345
|
|
59339
59346
|
```js
|
59340
59347
|
findAuthor().catch(function(reason){
|
59341
|
-
return
|
59348
|
+
return findOtherAuthor();
|
59342
59349
|
}).finally(function(){
|
59343
59350
|
// author was either found, or not
|
59344
59351
|
});
|
data/dist/ember.js
CHANGED
@@ -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.11.
|
9
|
+
* @version 2.11.3
|
10
10
|
*/
|
11
11
|
|
12
12
|
var enifed, requireModule, Ember;
|
@@ -174,7 +174,7 @@ function defaults(obj, defaults) {
|
|
174
174
|
return obj;
|
175
175
|
}
|
176
176
|
|
177
|
-
babelHelpers = {
|
177
|
+
var babelHelpers = {
|
178
178
|
classCallCheck: classCallCheck,
|
179
179
|
inherits: inherits,
|
180
180
|
taggedTemplateLiteralLoose: taggedTemplateLiteralLoose,
|
@@ -8916,7 +8916,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
8916
8916
|
this.isInteractive = owner.lookup('-environment:main').isInteractive;
|
8917
8917
|
|
8918
8918
|
// can be removed once https://github.com/tildeio/glimmer/pull/305 lands
|
8919
|
-
this.destroyedComponents =
|
8919
|
+
this.destroyedComponents = [];
|
8920
8920
|
|
8921
8921
|
_emberGlimmerProtocolForUrl.default(this);
|
8922
8922
|
|
@@ -9268,16 +9268,16 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9268
9268
|
this.inTransaction = true;
|
9269
9269
|
|
9270
9270
|
_GlimmerEnvironment.prototype.begin.call(this);
|
9271
|
-
|
9272
|
-
this.destroyedComponents = [];
|
9273
9271
|
};
|
9274
9272
|
|
9275
9273
|
Environment.prototype.commit = function commit() {
|
9274
|
+
var destroyedComponents = this.destroyedComponents;
|
9275
|
+
this.destroyedComponents = [];
|
9276
9276
|
// components queued for destruction must be destroyed before firing
|
9277
9277
|
// `didCreate` to prevent errors when removing and adding a component
|
9278
9278
|
// with the same name (would throw an error when added to view registry)
|
9279
|
-
for (var i = 0; i <
|
9280
|
-
|
9279
|
+
for (var i = 0; i < destroyedComponents.length; i++) {
|
9280
|
+
destroyedComponents[i].destroy();
|
9281
9281
|
}
|
9282
9282
|
|
9283
9283
|
_GlimmerEnvironment.prototype.commit.call(this);
|
@@ -9303,7 +9303,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9303
9303
|
StyleAttributeManager.prototype.setAttribute = function setAttribute(dom, element, value) {
|
9304
9304
|
var _AttributeManager$prototype$setAttribute;
|
9305
9305
|
|
9306
|
-
_emberMetal.warn(_emberViews.
|
9306
|
+
_emberMetal.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {
|
9307
9307
|
if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {
|
9308
9308
|
return true;
|
9309
9309
|
}
|
@@ -9315,7 +9315,7 @@ enifed('ember-glimmer/environment', ['exports', 'ember-utils', 'ember-metal', 'e
|
|
9315
9315
|
StyleAttributeManager.prototype.updateAttribute = function updateAttribute(dom, element, value) {
|
9316
9316
|
var _AttributeManager$prototype$updateAttribute;
|
9317
9317
|
|
9318
|
-
_emberMetal.warn(_emberViews.
|
9318
|
+
_emberMetal.warn(_emberViews.constructStyleDeprecationMessage(value), (function () {
|
9319
9319
|
if (value === null || value === undefined || _glimmerRuntime.isSafeString(value)) {
|
9320
9320
|
return true;
|
9321
9321
|
}
|
@@ -10039,7 +10039,7 @@ enifed('ember-glimmer/helpers/component', ['exports', 'ember-utils', 'ember-glim
|
|
10039
10039
|
)}}
|
10040
10040
|
```
|
10041
10041
|
|
10042
|
-
When yielding the component via the `hash` helper, the component is
|
10042
|
+
When yielding the component via the `hash` helper, the component is invoked directly.
|
10043
10043
|
See the following snippet:
|
10044
10044
|
|
10045
10045
|
```
|
@@ -17577,6 +17577,7 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
17577
17577
|
exports.getOnerror = getOnerror;
|
17578
17578
|
exports.setOnerror = setOnerror;
|
17579
17579
|
exports.dispatchError = dispatchError;
|
17580
|
+
exports.getDispatchOverride = getDispatchOverride;
|
17580
17581
|
exports.setDispatchOverride = setDispatchOverride;
|
17581
17582
|
|
17582
17583
|
// To maintain stacktrace consistency across browsers
|
@@ -17617,6 +17618,10 @@ enifed('ember-metal/error_handler', ['exports', 'ember-console', 'ember-metal/te
|
|
17617
17618
|
|
17618
17619
|
// allows testing adapter to override dispatch
|
17619
17620
|
|
17621
|
+
function getDispatchOverride() {
|
17622
|
+
return dispatchOverride;
|
17623
|
+
}
|
17624
|
+
|
17620
17625
|
function setDispatchOverride(handler) {
|
17621
17626
|
dispatchOverride = handler;
|
17622
17627
|
}
|
@@ -22187,7 +22192,7 @@ enifed('ember-metal/run_loop', ['exports', 'ember-utils', 'ember-metal/debug', '
|
|
22187
22192
|
|
22188
22193
|
var onErrorTarget = {
|
22189
22194
|
get onerror() {
|
22190
|
-
return _emberMetalError_handler.
|
22195
|
+
return _emberMetalError_handler.dispatchError;
|
22191
22196
|
},
|
22192
22197
|
set onerror(handler) {
|
22193
22198
|
return _emberMetalError_handler.setOnerror(handler);
|
@@ -34859,9 +34864,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
34859
34864
|
only a sender and key value as parameters or, if you aren't interested in
|
34860
34865
|
any of these values, to write an observer that has no parameters at all.
|
34861
34866
|
@method addObserver
|
34862
|
-
@param {String} key The key to
|
34867
|
+
@param {String} key The key to observe
|
34863
34868
|
@param {Object} target The target object to invoke
|
34864
|
-
@param {String|Function} method The method to invoke
|
34869
|
+
@param {String|Function} method The method to invoke
|
34865
34870
|
@public
|
34866
34871
|
*/
|
34867
34872
|
addObserver: function (key, target, method) {
|
@@ -34873,9 +34878,9 @@ enifed('ember-runtime/mixins/observable', ['exports', 'ember-metal'], function (
|
|
34873
34878
|
the same key, target, and method you passed to `addObserver()` and your
|
34874
34879
|
target will no longer receive notifications.
|
34875
34880
|
@method removeObserver
|
34876
|
-
@param {String} key The key to
|
34881
|
+
@param {String} key The key to observe
|
34877
34882
|
@param {Object} target The target object to invoke
|
34878
|
-
@param {String|Function} method The method to invoke
|
34883
|
+
@param {String|Function} method The method to invoke
|
34879
34884
|
@public
|
34880
34885
|
*/
|
34881
34886
|
removeObserver: function (key, target, method) {
|
@@ -40311,8 +40316,7 @@ enifed('ember-utils/owner', ['exports', 'ember-utils/symbol'], function (exports
|
|
40311
40316
|
For example, this component dynamically looks up a service based on the
|
40312
40317
|
`audioType` passed as an attribute:
|
40313
40318
|
|
40314
|
-
```
|
40315
|
-
// app/components/play-audio.js
|
40319
|
+
```app/components/play-audio.js
|
40316
40320
|
import Ember from 'ember';
|
40317
40321
|
|
40318
40322
|
// Usage:
|
@@ -40531,7 +40535,7 @@ enifed('ember-views/index', ['exports', 'ember-views/system/ext', 'ember-views/s
|
|
40531
40535
|
exports.getViewId = _emberViewsSystemUtils.getViewId;
|
40532
40536
|
exports.getViewElement = _emberViewsSystemUtils.getViewElement;
|
40533
40537
|
exports.setViewElement = _emberViewsSystemUtils.setViewElement;
|
40534
|
-
exports.
|
40538
|
+
exports.constructStyleDeprecationMessage = _emberViewsSystemUtils.constructStyleDeprecationMessage;
|
40535
40539
|
exports.EventDispatcher = _emberViewsSystemEvent_dispatcher.default;
|
40536
40540
|
exports.ComponentLookup = _emberViewsComponent_lookup.default;
|
40537
40541
|
exports.TextSupport = _emberViewsMixinsText_support.default;
|
@@ -41949,6 +41953,7 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
41949
41953
|
'use strict';
|
41950
41954
|
|
41951
41955
|
exports.isSimpleClick = isSimpleClick;
|
41956
|
+
exports.constructStyleDeprecationMessage = constructStyleDeprecationMessage;
|
41952
41957
|
exports.getRootViews = getRootViews;
|
41953
41958
|
exports.getViewId = getViewId;
|
41954
41959
|
exports.getViewElement = getViewElement;
|
@@ -41976,9 +41981,10 @@ enifed('ember-views/system/utils', ['exports', 'ember-utils'], function (exports
|
|
41976
41981
|
return !modifier && !secondaryClick;
|
41977
41982
|
}
|
41978
41983
|
|
41979
|
-
|
41984
|
+
function constructStyleDeprecationMessage(affectedStyle) {
|
41985
|
+
return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: "' + affectedStyle + '"';
|
41986
|
+
}
|
41980
41987
|
|
41981
|
-
exports.STYLE_WARNING = STYLE_WARNING;
|
41982
41988
|
/**
|
41983
41989
|
@private
|
41984
41990
|
@method getRootViews
|
@@ -42993,7 +42999,7 @@ enifed('ember/index', ['exports', 'require', 'ember-environment', 'ember-utils',
|
|
42993
42999
|
enifed("ember/version", ["exports"], function (exports) {
|
42994
43000
|
"use strict";
|
42995
43001
|
|
42996
|
-
exports.default = "2.11.
|
43002
|
+
exports.default = "2.11.3";
|
42997
43003
|
});
|
42998
43004
|
enifed('internal-test-helpers/apply-mixins', ['exports', 'ember-utils'], function (exports, _emberUtils) {
|
42999
43005
|
'use strict';
|
@@ -58413,6 +58419,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
58413
58419
|
} else {
|
58414
58420
|
if (then$$ === GET_THEN_ERROR) {
|
58415
58421
|
reject(promise, GET_THEN_ERROR.error);
|
58422
|
+
GET_THEN_ERROR.error = null;
|
58416
58423
|
} else if (then$$ === undefined) {
|
58417
58424
|
fulfill(promise, maybeThenable);
|
58418
58425
|
} else if (isFunction(then$$)) {
|
@@ -58540,10 +58547,10 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
58540
58547
|
if (value === TRY_CATCH_ERROR) {
|
58541
58548
|
failed = true;
|
58542
58549
|
error = value.error;
|
58543
|
-
value = null;
|
58550
|
+
value.error = null; // release
|
58544
58551
|
} else {
|
58545
|
-
|
58546
|
-
|
58552
|
+
succeeded = true;
|
58553
|
+
}
|
58547
58554
|
|
58548
58555
|
if (promise === value) {
|
58549
58556
|
reject(promise, withOwnPromise());
|
@@ -59327,7 +59334,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
59327
59334
|
try {
|
59328
59335
|
return findAuthor(); // succeed or fail
|
59329
59336
|
} catch(error) {
|
59330
|
-
return
|
59337
|
+
return findOtherAuthor();
|
59331
59338
|
} finally {
|
59332
59339
|
// always runs
|
59333
59340
|
// doesn't affect the return value
|
@@ -59338,7 +59345,7 @@ enifed('rsvp', ['exports'], function (exports) {
|
|
59338
59345
|
|
59339
59346
|
```js
|
59340
59347
|
findAuthor().catch(function(reason){
|
59341
|
-
return
|
59348
|
+
return findOtherAuthor();
|
59342
59349
|
}).finally(function(){
|
59343
59350
|
// author was either found, or not
|
59344
59351
|
});
|
data/dist/ember.min.js
CHANGED
@@ -10,7 +10,9 @@ for(var c=u.deps,p=u.callback,h=new Array(c.length),f=0;f<c.length;f++)"exports"
|
|
10
10
|
return p.apply(this,h),l}var n="undefined"==typeof window&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)
|
11
11
|
if(n||(u=this.Ember=this.Ember||{}),"undefined"==typeof u&&(u={}),"undefined"==typeof u.__loader){var r={},i={}
|
12
12
|
s=function(e,t,n){var i={}
|
13
|
-
n?(i.deps=t,i.callback=n):(i.deps=[],i.callback=t),r[e]=i},a=function(e){return t(e,null)},a.default=a,a.has=function(e){return!!r[e]||!!r[e+"/index"]},a._eak_seen=r,u.__loader={define:s,require:a,registry:r}}else s=u.__loader.define,a=u.__loader.require})()
|
13
|
+
n?(i.deps=t,i.callback=n):(i.deps=[],i.callback=t),r[e]=i},a=function(e){return t(e,null)},a.default=a,a.has=function(e){return!!r[e]||!!r[e+"/index"]},a._eak_seen=r,u.__loader={define:s,require:a,registry:r}}else s=u.__loader.define,a=u.__loader.require})()
|
14
|
+
var c={inherits:e,taggedTemplateLiteralLoose:t,slice:Array.prototype.slice,createClass:r,interopExportWildcard:i,defaults:o}
|
15
|
+
s("backburner",["exports"],function(e){"use strict"
|
14
16
|
function t(e,t){for(var n=0;n<e.length;n++)t(e[n])}function n(e){return"string"==typeof e}function r(e){return"function"==typeof e}function i(e){return"number"==typeof e}function o(e){return i(e)||y.test(e)}function s(e,t){for(var n,r,i=0,o=t.length-2;i<o;)r=(o-i)/2,n=i+r-r%2,e>=t[n]?i=n+2:o=n
|
15
17
|
return e>=t[i]?i+2:i}function a(e,t,n){this.name=e,this.globalOptions=n||{},this.options=t,this._queue=[],this.targetQueues={},this._queueBeingFlushed=void 0}function u(e,n){var r=this.queues={}
|
16
18
|
this.queueNames=e=e||[],this.options=n,t(e,function(e){r[e]=new a(e,n[e],n)})}function l(e){throw new Error("You attempted to schedule an action in a queue ("+e+") that doesn't exist")}function c(e){throw new Error("You attempted to schedule an action in a queue ("+e+") for a method that doesn't exist")}function p(e,t){this.queueNames=e,this.options=t||{},this.options.defaultQueue||(this.options.defaultQueue=e[0]),this.instanceStack=[],this._debouncees=[],this._throttlers=[],this._eventCallbacks={end:[],begin:[]}
|
@@ -225,10 +227,10 @@ u.reopenClass({setupRegistry:function(e){var t=arguments.length<=1||void 0===arg
|
|
225
227
|
t.toEnvironment||(t=new a(t)),e.register("-environment:main",t.toEnvironment(),{instantiate:!1}),e.register("service:-document",t.document,{instantiate:!1}),this._super(e,t)}}),a=function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]
|
226
228
|
this.jQuery=o.jQuery,this.isInteractive=i.environment.hasDOM,void 0!==e.isBrowser?this.isBrowser=!!e.isBrowser:this.isBrowser=i.environment.hasDOM,this.isBrowser||(this.jQuery=null,this.isInteractive=!1,this.location="none"),void 0!==e.shouldRender?this.shouldRender=!!e.shouldRender:this.shouldRender=!0,this.shouldRender||(this.jQuery=null,this.isInteractive=!1),e.document?this.document=e.document:this.document="undefined"!=typeof document?document:null,e.rootElement&&(this.rootElement=e.rootElement),void 0!==e.location&&(this.location=e.location),void 0!==e.jQuery&&(this.jQuery=e.jQuery),void 0!==e.isInteractive&&(this.isInteractive=!!e.isInteractive)},a.prototype.toEnvironment=function(){var e=t.assign({},i.environment)
|
227
229
|
return e.hasDOM=this.isBrowser,e.isInteractive=this.isInteractive,e.options=this,e},Object.defineProperty(u.prototype,"container",{configurable:!0,enumerable:!1,get:function(){var e=this
|
228
|
-
return{lookup:function(){return e.lookup.apply(e,arguments)}}}}),Object.defineProperty(u.prototype,"registry",{configurable:!0,enumerable:!1,get:function(){return r.buildFakeRegistryWithDeprecations(this,"ApplicationInstance")}}),e.default=u}),s("ember-application/system/application",["exports","ember-utils","ember-environment","ember-metal","ember-runtime","ember-views","ember-routing","ember-application/system/application-instance","container","ember-application/system/engine","ember-glimmer"],function(e,t,n,r,i,o,s,a,u,l,
|
229
|
-
function
|
230
|
+
return{lookup:function(){return e.lookup.apply(e,arguments)}}}}),Object.defineProperty(u.prototype,"registry",{configurable:!0,enumerable:!1,get:function(){return r.buildFakeRegistryWithDeprecations(this,"ApplicationInstance")}}),e.default=u}),s("ember-application/system/application",["exports","ember-utils","ember-environment","ember-metal","ember-runtime","ember-views","ember-routing","ember-application/system/application-instance","container","ember-application/system/engine","ember-glimmer"],function(e,t,n,r,i,o,s,a,u,l,p){"use strict"
|
231
|
+
function h(e){e.register("-view-registry:main",{create:function(){return t.dictionary(null)}}),e.register("route:basic",s.Route),e.register("event_dispatcher:main",o.EventDispatcher),e.injection("router:main","namespace","application:main"),e.register("location:auto",s.AutoLocation),e.register("location:hash",s.HashLocation),e.register("location:history",s.HistoryLocation),e.register("location:none",s.NoneLocation),e.register(u.privatize(d),s.BucketCache)}function f(){g||(g=!0,n.environment.hasDOM&&"function"==typeof o.jQuery&&r.libraries.registerCoreLibrary("jQuery",o.jQuery().jquery))}function m(){if(n.ENV.LOG_VERSION){n.ENV.LOG_VERSION=!1
|
230
232
|
for(var e=r.libraries._registry,t=e.map(function(e){return r.get(e,"name.length")}),i=Math.max.apply(this,t),o=0;o<e.length;o++){var s=e[o]
|
231
|
-
new Array(i-s.name.length+1).join(" ")}}}var
|
233
|
+
new Array(i-s.name.length+1).join(" ")}}}var d=c.taggedTemplateLiteralLoose(["-bucket-cache:main"],["-bucket-cache:main"]),g=!1,v=l.default.extend({_suppressDeferredDeprecation:!0,rootElement:"body",eventDispatcher:null,customEvents:null,autoboot:!0,_globalsMode:!0,init:function(e){this._super.apply(this,arguments),this.$||(this.$=o.jQuery),f(),m(),this._readinessDeferrals=1,this._booted=!1,this.autoboot=this._globalsMode=!!this.autoboot,this._globalsMode&&this._prepareForGlobalsMode(),this.autoboot&&this.waitForDOMReady()},buildInstance:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]
|
232
234
|
return e.base=this,e.application=this,a.default.create(e)},_prepareForGlobalsMode:function(){this.Router=(this.Router||s.Router).extend(),this._buildDeprecatedInstance()},_buildDeprecatedInstance:function(){var e=this.buildInstance()
|
233
235
|
this.__deprecatedInstance__=e,this.__container__=e.__container__},waitForDOMReady:function(){!this.$||this.$.isReady?r.run.schedule("actions",this,"domReady"):this.$().ready(r.run.bind(this,"domReady"))},domReady:function(){this.isDestroyed||this._bootSync()},deferReadiness:function(){this._readinessDeferrals++},advanceReadiness:function(){this._readinessDeferrals--,0===this._readinessDeferrals&&r.run.once(this,this.didBecomeReady)},boot:function(){if(this._bootPromise)return this._bootPromise
|
234
236
|
try{this._bootSync()}catch(e){}return this._bootPromise},_bootSync:function(){if(!this._booted){var e=this._bootResolver=new i.RSVP.defer
|
@@ -238,9 +240,9 @@ this._readinessDeferrals=1,this._bootPromise=null,this._bootResolver=null,this._
|
|
238
240
|
e=this._globalsMode?this.__deprecatedInstance__:this.buildInstance(),e._bootSync(),this.ready(),e.startRouting()}this._bootResolver.resolve(this),this._booted=!0}catch(e){throw this._bootResolver.reject(e),e}},ready:function(){return this},willDestroy:function(){this._super.apply(this,arguments),i.setNamespaceSearchDisabled(!1),this._booted=!1,this._bootPromise=null,this._bootResolver=null,i._loaded.application===this&&(i._loaded.application=void 0),this._globalsMode&&this.__deprecatedInstance__&&this.__deprecatedInstance__.destroy()},visit:function(e,t){var n=this
|
239
241
|
return this.boot().then(function(){var i=n.buildInstance()
|
240
242
|
return i.boot(t).then(function(){return i.visit(e)}).catch(function(e){throw r.run(i,"destroy"),e})})}})
|
241
|
-
Object.defineProperty(
|
242
|
-
return
|
243
|
-
var s=
|
243
|
+
Object.defineProperty(v.prototype,"registry",{configurable:!0,enumerable:!1,get:function(){return i.buildFakeRegistryWithDeprecations(this,"Application")}}),v.reopenClass({buildRegistry:function(e){var t=(arguments.length<=1||void 0===arguments[1]?{}:arguments[1],this._super.apply(this,arguments))
|
244
|
+
return h(t),p.setupApplicationRegistry(t),t}}),e.default=v}),s("ember-application/system/engine-instance",["exports","ember-utils","ember-runtime","ember-metal","container","ember-application/system/engine-parent"],function(e,t,n,r,i,o){"use strict"
|
245
|
+
var s=c.taggedTemplateLiteralLoose(["-bucket-cache:main"],["-bucket-cache:main"]),a=n.Object.extend(n.RegistryProxyMixin,n.ContainerProxyMixin,{base:null,init:function(){this._super.apply(this,arguments),t.guidFor(this)
|
244
246
|
var e=this.base
|
245
247
|
e||(e=this.application,this.base=e)
|
246
248
|
var n=this.__registry__=new i.Registry({fallback:e.__registry__})
|
@@ -258,18 +260,18 @@ a.forEach(function(n){return e.register(n,t.lookup(n),{instantiate:!1})}),this.i
|
|
258
260
|
a.reopenClass({setupRegistry:function(e,t){t&&(e.injection("view","_environment","-environment:main"),e.injection("route","_environment","-environment:main"),t.isInteractive?(e.injection("view","renderer","renderer:-dom"),e.injection("component","renderer","renderer:-dom")):(e.injection("view","renderer","renderer:-inert"),e.injection("component","renderer","renderer:-inert")))}}),e.default=a}),s("ember-application/system/engine-parent",["exports","ember-utils"],function(e,t){"use strict"
|
259
261
|
function n(e){return e[i]}function r(e,t){e[i]=t}e.getEngineParent=n,e.setEngineParent=r
|
260
262
|
var i=t.symbol("ENGINE_PARENT")
|
261
|
-
e.ENGINE_PARENT=i}),s("ember-application/system/engine",["exports","ember-utils","ember-runtime","container","dag-map","ember-metal","ember-application/system/resolver","ember-application/system/engine-instance","ember-routing","ember-extension-support","ember-views","ember-glimmer"],function(e,t,n,r,i,o,s,a,u,l,
|
262
|
-
function
|
263
|
+
e.ENGINE_PARENT=i}),s("ember-application/system/engine",["exports","ember-utils","ember-runtime","container","dag-map","ember-metal","ember-application/system/resolver","ember-application/system/engine-instance","ember-routing","ember-extension-support","ember-views","ember-glimmer"],function(e,t,n,r,i,o,s,a,u,l,p,h){"use strict"
|
264
|
+
function f(e){var t=[]
|
263
265
|
for(var n in e)t.push(n)
|
264
|
-
return t}function
|
265
|
-
return t.create({namespace:e})}function
|
266
|
-
n[e]=Object.create(this[e]),this.reopenClass(n)}this[e][t.name]=t}}function
|
266
|
+
return t}function m(e){var t=e.get("Resolver")||s.default
|
267
|
+
return t.create({namespace:e})}function d(e,t){return function(t){if(void 0!==this.superclass[e]&&this.superclass[e]===this[e]){var n={}
|
268
|
+
n[e]=Object.create(this[e]),this.reopenClass(n)}this[e][t.name]=t}}function g(e){e.optionsForType("component",{singleton:!1}),e.optionsForType("view",{singleton:!1}),e.register("controller:basic",n.Controller,{instantiate:!1}),e.injection("view","_viewRegistry","-view-registry:main"),e.injection("renderer","_viewRegistry","-view-registry:main"),e.injection("event_dispatcher:main","_viewRegistry","-view-registry:main"),e.injection("route","_topLevelViewTemplate","template:-outlet"),e.injection("view:-outlet","namespace","application:main"),e.injection("controller","target","router:main"),e.injection("controller","namespace","application:main"),e.injection("router","_bucketCache",r.privatize(v)),e.injection("route","_bucketCache",r.privatize(v)),e.injection("route","router","router:main"),e.register("service:-routing",u.RoutingService),e.injection("service:-routing","router","router:main"),e.register("resolver-for-debugging:main",e.resolver,{instantiate:!1}),e.injection("container-debug-adapter:main","resolver","resolver-for-debugging:main"),e.injection("data-adapter:main","containerDebugAdapter","container-debug-adapter:main"),e.register("container-debug-adapter:main",l.ContainerDebugAdapter),e.register("component-lookup:main",p.ComponentLookup)}var v=c.taggedTemplateLiteralLoose(["-bucket-cache:main"],["-bucket-cache:main"]),y=n.Namespace.extend(n.RegistryProxyMixin,{init:function(){this._super.apply(this,arguments),this.buildRegistry()},_initializersRan:!1,ensureInitializers:function(){this._initializersRan||(this.runInitializers(),this._initializersRan=!0)},buildInstance:function(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0]
|
267
269
|
return this.ensureInitializers(),e.base=this,a.default.create(e)},buildRegistry:function(){var e=this.__registry__=this.constructor.buildRegistry(this)
|
268
270
|
return e},initializer:function(e){this.constructor.initializer(e)},instanceInitializer:function(e){this.constructor.instanceInitializer(e)},runInitializers:function(){var e=this
|
269
|
-
this._runInitializer("initializers",function(t,n){2===n.initialize.length?n.initialize(e.__registry__,e):n.initialize(e)})},runInstanceInitializers:function(e){this._runInitializer("instanceInitializers",function(t,n){n.initialize(e)})},_runInitializer:function(e,t){for(var n=o.get(this.constructor,e),r=
|
271
|
+
this._runInitializer("initializers",function(t,n){2===n.initialize.length?n.initialize(e.__registry__,e):n.initialize(e)})},runInstanceInitializers:function(e){this._runInitializer("instanceInitializers",function(t,n){n.initialize(e)})},_runInitializer:function(e,t){for(var n=o.get(this.constructor,e),r=f(n),s=new i.default,a=void 0,u=0;u<r.length;u++)a=n[r[u]],s.add(a.name,a,a.before,a.after)
|
270
272
|
s.topsort(t)}})
|
271
|
-
|
272
|
-
return t.set=o.set,t.register("application:main",e,{instantiate:!1}),
|
273
|
+
y.reopenClass({initializers:new t.EmptyObject,instanceInitializers:new t.EmptyObject,initializer:d("initializers","initializer"),instanceInitializer:d("instanceInitializers","instance initializer"),buildRegistry:function(e){var t=(arguments.length<=1||void 0===arguments[1]?{}:arguments[1],new r.Registry({resolver:m(e)}))
|
274
|
+
return t.set=o.set,t.register("application:main",e,{instantiate:!1}),g(t),h.setupEngineRegistry(t),t},resolver:null,Resolver:null}),e.default=y}),s("ember-application/system/resolver",["exports","ember-utils","ember-metal","ember-runtime","ember-application/utils/validate-type","ember-glimmer"],function(e,t,n,r,i,o){"use strict"
|
273
275
|
var s=r.Object.extend({namespace:null,normalize:null,resolve:null,parseName:null,lookupDescription:null,makeToString:null,resolveOther:null,_logLookup:null})
|
274
276
|
e.Resolver=s,e.default=r.Object.extend({namespace:null,init:function(){this._parseNameCache=t.dictionary(null)},normalize:function(e){var t=e.split(":",2),n=t[0],r=t[1]
|
275
277
|
if("template"!==n){var i=r
|
@@ -384,52 +386,54 @@ u||(u=document.createElement("input"))
|
|
384
386
|
try{u.type=e}catch(e){}return l[e]=u.type===e}var u=void 0,l=new t.EmptyObject
|
385
387
|
e.default=i.default.extend(s.TextSupport,{layout:o.default,classNames:["ember-text-field"],tagName:"input",attributeBindings:["accept","autocomplete","autosave","dir","formaction","formenctype","formmethod","formnovalidate","formtarget","height","inputmode","lang","list","max","min","multiple","name","pattern","size","step","type","value","width"],value:"",type:n.computed({get:function(){return"text"},set:function(e,t){var n="text"
|
386
388
|
return a(t)&&(n=t),n}}),size:null,pattern:null,min:null,max:null})}),s("ember-glimmer/dom",["exports","glimmer-runtime","glimmer-node"],function(e,t,n){"use strict"
|
387
|
-
e.DOMChanges=t.DOMChanges,e.DOMTreeConstruction=t.DOMTreeConstruction,e.NodeDOMTreeConstruction=n.NodeDOMTreeConstruction}),s("ember-glimmer/environment",["exports","ember-utils","ember-metal","ember-views","glimmer-runtime","ember-glimmer/syntax/curly-component","ember-glimmer/syntax","ember-glimmer/syntax/dynamic-component","ember-glimmer/utils/iterable","ember-glimmer/utils/references","ember-glimmer/utils/debug-stack","ember-glimmer/helpers/if-unless","ember-glimmer/utils/bindings","ember-glimmer/helpers/action","ember-glimmer/helpers/component","ember-glimmer/helpers/concat","ember-glimmer/helpers/debugger","ember-glimmer/helpers/get","ember-glimmer/helpers/hash","ember-glimmer/helpers/loc","ember-glimmer/helpers/log","ember-glimmer/helpers/mut","ember-glimmer/helpers/readonly","ember-glimmer/helpers/unbound","ember-glimmer/helpers/-class","ember-glimmer/helpers/-input-type","ember-glimmer/helpers/query-param","ember-glimmer/helpers/each-in","ember-glimmer/helpers/-normalize-class","ember-glimmer/helpers/-html-safe","ember-glimmer/protocol-for-url","ember-glimmer/modifiers/action"],function(e,t,n,r,i,o,s,a,u,l,
|
388
|
-
var
|
389
|
-
e.apply(this,arguments),this.owner=u,this.isInteractive=u.lookup("-environment:main").isInteractive,this.destroyedComponents=
|
389
|
+
e.DOMChanges=t.DOMChanges,e.DOMTreeConstruction=t.DOMTreeConstruction,e.NodeDOMTreeConstruction=n.NodeDOMTreeConstruction}),s("ember-glimmer/environment",["exports","ember-utils","ember-metal","ember-views","glimmer-runtime","ember-glimmer/syntax/curly-component","ember-glimmer/syntax","ember-glimmer/syntax/dynamic-component","ember-glimmer/utils/iterable","ember-glimmer/utils/references","ember-glimmer/utils/debug-stack","ember-glimmer/helpers/if-unless","ember-glimmer/utils/bindings","ember-glimmer/helpers/action","ember-glimmer/helpers/component","ember-glimmer/helpers/concat","ember-glimmer/helpers/debugger","ember-glimmer/helpers/get","ember-glimmer/helpers/hash","ember-glimmer/helpers/loc","ember-glimmer/helpers/log","ember-glimmer/helpers/mut","ember-glimmer/helpers/readonly","ember-glimmer/helpers/unbound","ember-glimmer/helpers/-class","ember-glimmer/helpers/-input-type","ember-glimmer/helpers/query-param","ember-glimmer/helpers/each-in","ember-glimmer/helpers/-normalize-class","ember-glimmer/helpers/-html-safe","ember-glimmer/protocol-for-url","ember-glimmer/modifiers/action"],function(e,t,n,r,i,o,s,a,u,l,p,h,f,m,d,g,v,y,b,_,w,E,O,S,x,C,A,k,T,N,R,P){"use strict"
|
390
|
+
var D={textarea:"-text-area"},I=function(e){function p(s){var a=this,u=s[t.OWNER]
|
391
|
+
e.apply(this,arguments),this.owner=u,this.isInteractive=u.lookup("-environment:main").isInteractive,this.destroyedComponents=[],R.default(this),this._definitionCache=new n.Cache(2e3,function(e){var t=e.name,n=e.source,i=e.owner,s=r.lookupComponent(i,t,{source:n}),a=s.component,u=s.layout
|
390
392
|
if(a||u)return new o.CurlyComponentDefinition(t,a,u)},function(e){var n=e.name,r=e.source,i=e.owner,o=r&&i._resolveLocalLookupName(n,r)||n,s=t.guidFor(i)
|
391
393
|
return s+"|"+o}),this._templateCache=new n.Cache(1e3,function(e){var n=e.Template,r=e.owner
|
392
394
|
if(n.create){var i
|
393
395
|
return n.create((i={env:a},i[t.OWNER]=r,i))}return n},function(e){var n=e.Template,r=e.owner
|
394
396
|
return t.guidFor(r)+"|"+n.id}),this._compilerCache=new n.Cache(10,function(e){return new n.Cache(2e3,function(t){var n=new e(t)
|
395
397
|
return i.compileLayout(n,a)},function(e){var n=e.meta.owner
|
396
|
-
return t.guidFor(n)+"|"+e.id})},function(e){return e.id}),this.builtInModifiers={action:new
|
398
|
+
return t.guidFor(n)+"|"+e.id})},function(e){return e.id}),this.builtInModifiers={action:new P.default},this.builtInHelpers={if:h.inlineIf,action:m.default,component:d.default,concat:g.default,debugger:v.default,get:y.default,hash:b.default,loc:_.default,log:w.default,mut:E.default,"query-params":A.default,readonly:O.default,unbound:S.default,unless:h.inlineUnless,"-class":x.default,"-each-in":k.default,"-input-type":C.default,"-normalize-class":T.default,"-html-safe":N.default,"-get-dynamic-var":i.getDynamicVar}}return c.inherits(p,e),p.create=function(e){return new p(e)},p.prototype.refineStatement=function(t,n){var r=e.prototype.refineStatement.call(this,t,n)
|
397
399
|
if(r)return r
|
398
|
-
var i=t.appendType,u=t.isSimple,l=t.isInline,c=t.isBlock,p=(t.isModifier,t.key),
|
400
|
+
var i=t.appendType,u=t.isSimple,l=t.isInline,c=t.isBlock,p=(t.isModifier,t.key),h=t.path,m=t.args
|
399
401
|
if(u&&(l||c)&&"get"!==i){var d=s.findSyntaxBuilder(p)
|
400
402
|
if(d)return d.create(this,m,n)
|
401
|
-
var g=
|
402
|
-
if(g?v=this.getComponentDefinition([g],n):p.indexOf("-")>=0&&(v=this.getComponentDefinition(
|
403
|
-
return this._definitionCache.get({name:n,source:o,owner:i})},
|
404
|
-
return n.get(t)},
|
405
|
-
return r.hasPartial(e,i)},
|
403
|
+
var g=D[p],v=null
|
404
|
+
if(g?v=this.getComponentDefinition([g],n):p.indexOf("-")>=0&&(v=this.getComponentDefinition(h,n)),v)return f.wrapComponentClassAttribute(m),new o.CurlyComponentSyntax(m,v,n)}return l&&!u&&"helper"!==i?t.original.deopt():!u&&h?a.DynamicComponentSyntax.fromPath(this,h,m,n):void 0},p.prototype.hasComponentDefinition=function(){return!1},p.prototype.getComponentDefinition=function(e,t){var n=e[0],r=t.getMeta(),i=r.owner,o=r.moduleName&&"template:"+r.moduleName
|
405
|
+
return this._definitionCache.get({name:n,source:o,owner:i})},p.prototype.getTemplate=function(e,t){return this._templateCache.get({Template:e,owner:t})},p.prototype.getCompiledBlock=function(e,t){var n=this._compilerCache.get(e)
|
406
|
+
return n.get(t)},p.prototype.hasPartial=function(e,t){var n=t.getMeta(),i=n.owner
|
407
|
+
return r.hasPartial(e,i)},p.prototype.lookupPartial=function(e,t){var n=t.getMeta(),i=n.owner,o={template:r.lookupPartial(e,i)}
|
406
408
|
if(o.template)return o
|
407
|
-
throw new Error(e+" is not a partial")},
|
409
|
+
throw new Error(e+" is not a partial")},p.prototype.hasHelper=function(e,t){if(e.length>1)return!1
|
408
410
|
var n=e[0]
|
409
411
|
if(this.builtInHelpers[n])return!0
|
410
412
|
var r=t.getMeta(),i=r.owner,o={source:"template:"+r.moduleName}
|
411
|
-
return i.hasRegistration("helper:"+n,o)||i.hasRegistration("helper:"+n)},
|
413
|
+
return i.hasRegistration("helper:"+n,o)||i.hasRegistration("helper:"+n)},p.prototype.lookupHelper=function(e,t){var n=e[0],r=this.builtInHelpers[n]
|
412
414
|
if(r)return r
|
413
415
|
var i=t.getMeta(),o=i.owner,s=i.moduleName&&{source:"template:"+i.moduleName}||{}
|
414
416
|
if(r=o.lookup("helper:"+n,s)||o.lookup("helper:"+n),r.isHelperInstance)return function(e,t){return l.SimpleHelperReference.create(r.compute,t)}
|
415
417
|
if(r.isHelperFactory)return function(e,t){return l.ClassBasedHelperReference.create(r,e,t)}
|
416
|
-
throw new Error(e+" is not a helper")},
|
418
|
+
throw new Error(e+" is not a helper")},p.prototype.hasModifier=function(e){return!(e.length>1)&&!!this.builtInModifiers[e[0]]},p.prototype.lookupModifier=function(e){var t=this.builtInModifiers[e[0]]
|
417
419
|
if(t)return t
|
418
|
-
throw new Error(e+" is not a modifier")},
|
419
|
-
return u.default(e,n)},
|
420
|
-
|
421
|
-
|
422
|
-
|
420
|
+
throw new Error(e+" is not a modifier")},p.prototype.toConditionalReference=function(e){return l.ConditionalReference.create(e)},p.prototype.iterableFor=function(e,t){var n=t.named.get("key").value()
|
421
|
+
return u.default(e,n)},p.prototype.scheduleInstallModifier=function(){if(this.isInteractive){var t;(t=e.prototype.scheduleInstallModifier).call.apply(t,[this].concat(c.slice.call(arguments)))}},p.prototype.scheduleUpdateModifier=function(){if(this.isInteractive){var t;(t=e.prototype.scheduleUpdateModifier).call.apply(t,[this].concat(c.slice.call(arguments)))}},p.prototype.didDestroy=function(e){e.destroy()},p.prototype.begin=function(){this.inTransaction=!0,e.prototype.begin.call(this)},p.prototype.commit=function(){var t=this.destroyedComponents
|
422
|
+
this.destroyedComponents=[]
|
423
|
+
for(var n=0;n<t.length;n++)t[n].destroy()
|
424
|
+
e.prototype.commit.call(this),this.inTransaction=!1},p}(i.Environment)
|
425
|
+
e.default=I}),s("ember-glimmer/helper",["exports","ember-utils","ember-runtime","glimmer-reference"],function(e,t,n,r){"use strict"
|
423
426
|
function i(e){return{isHelperInstance:!0,compute:e}}e.helper=i
|
424
427
|
var o=t.symbol("RECOMPUTE_TAG")
|
425
428
|
e.RECOMPUTE_TAG=o
|
426
429
|
var s=n.FrameworkObject.extend({isHelperInstance:!0,init:function(){this._super.apply(this,arguments),this[o]=new r.DirtyableTag},recompute:function(){this[o].dirty()}})
|
427
|
-
s.reopenClass({isHelperFactory:!0}),e.default=s})
|
428
|
-
s("ember-glimmer/helpers/-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,n){"use strict"
|
430
|
+
s.reopenClass({isHelperFactory:!0}),e.default=s}),s("ember-glimmer/helpers/-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,n){"use strict"
|
429
431
|
function r(e){var t=e.positional,r=t.at(0),i=t.length,o=r.value()
|
430
|
-
return o===!0?i>1?n.String.dasherize(t.at(1).value()):null:o===!1?i>2?n.String.dasherize(t.at(2).value()):null:o}e.default=function(e,n){return new t.InternalHelperReference(r,n)}})
|
432
|
+
return o===!0?i>1?n.String.dasherize(t.at(1).value()):null:o===!1?i>2?n.String.dasherize(t.at(2).value()):null:o}e.default=function(e,n){return new t.InternalHelperReference(r,n)}})
|
433
|
+
s("ember-glimmer/helpers/-html-safe",["exports","ember-glimmer/utils/references","ember-glimmer/utils/string"],function(e,t,n){"use strict"
|
431
434
|
function r(e){var t=e.positional,r=t.at(0)
|
432
|
-
return new n.SafeString(r.value())}e.default=function(e,n){return new t.InternalHelperReference(r,n)}})
|
435
|
+
return new n.SafeString(r.value())}e.default=function(e,n){return new t.InternalHelperReference(r,n)}})
|
436
|
+
s("ember-glimmer/helpers/-input-type",["exports","ember-glimmer/utils/references"],function(e,t){"use strict"
|
433
437
|
function n(e){var t=e.positional,n=(e.named,t.at(0).value())
|
434
438
|
return"checkbox"===n?"-checkbox":"-text-field"}e.default=function(e,r){return new t.InternalHelperReference(n,r)}}),s("ember-glimmer/helpers/-normalize-class",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,n){"use strict"
|
435
439
|
function r(e){var t=e.positional,r=(e.named,t.at(0).value().split(".")),i=r[r.length-1],o=t.at(1).value()
|
@@ -458,7 +462,7 @@ if(!c&&a&&a.length>0){for(var h=Math.min(a.length,l.length),f=0;f<h;f++){var m=a
|
|
458
462
|
p[m]=l[f]}l.length=0}var d=o&&o.named&&o.named.map||{},g=o&&o.positional&&o.positional.values||[],v=new Array(Math.max(g.length,l.length))
|
459
463
|
v.splice.apply(v,[0,g.length].concat(g)),v.splice.apply(v,[0,l.length].concat(l))
|
460
464
|
var y=t.assign({},d,p,n.named.map),b=i.EvaluatedArgs.create(i.EvaluatedPositionalArgs.create(v),i.EvaluatedNamedArgs.create(y),i.Blocks.empty())
|
461
|
-
return b}var u=function(e){function t(t,n,r){e.call(this),this.defRef=t.positional.at(0),this.env=r,this.tag=t.positional.at(0).tag,this.symbolTable=n,this.args=t,this.lastDefinition=void 0,this.lastName=void 0}return
|
465
|
+
return b}var u=function(e){function t(t,n,r){e.call(this),this.defRef=t.positional.at(0),this.env=r,this.tag=t.positional.at(0).tag,this.symbolTable=n,this.args=t,this.lastDefinition=void 0,this.lastName=void 0}return c.inherits(t,e),t.create=function(e,n,r){return new t(e,n,r)},t.prototype.compute=function(){var e=this.args,t=this.defRef,n=this.env,r=this.symbolTable,o=this.lastDefinition,a=this.lastName,u=t.value(),l=null
|
462
466
|
if(u&&u===a)return o
|
463
467
|
if(this.lastName=u,"string"==typeof u)l=n.getComponentDefinition([u],r)
|
464
468
|
else{if(!i.isComponentDefinition(u))return null
|
@@ -477,7 +481,7 @@ return n[r]=!0,n}}),s("ember-glimmer/helpers/get",["exports","ember-metal","embe
|
|
477
481
|
e.default=function(e,t){return i.create(t.positional.at(0),t.positional.at(1))}
|
478
482
|
var i=function(e){function i(t,n){e.call(this),this.sourceReference=t,this.pathReference=n,this.lastPath=null,this.innerReference=null
|
479
483
|
var i=this.innerTag=new r.UpdatableTag(r.CONSTANT_TAG)
|
480
|
-
this.tag=r.combine([t.tag,n.tag,i])}return
|
484
|
+
this.tag=r.combine([t.tag,n.tag,i])}return c.inherits(i,e),i.create=function(e,t){if(r.isConst(t)){var n=t.value().split(".")
|
481
485
|
return r.referenceFromParts(e,n)}return new i(e,t)},i.prototype.compute=function(){var e=this.lastPath,t=this.innerReference,n=this.innerTag,i=this.lastPath=this.pathReference.value()
|
482
486
|
if(i!==e)if(i){var o=typeof i
|
483
487
|
"string"===o?t=this.innerReference=r.referenceFromParts(this.sourceReference,i.split(".")):"number"===o&&(t=this.innerReference=this.sourceReference.get(i)),n.update(t.tag)}else t=this.innerReference=null,n.update(r.CONSTANT_TAG)
|
@@ -488,7 +492,7 @@ switch(n.length){case 2:return s.create(n.at(0),n.at(1),null)
|
|
488
492
|
case 3:return s.create(n.at(0),n.at(1),n.at(2))}}function o(e,t){var n=t.positional
|
489
493
|
switch(n.length){case 2:return s.create(n.at(0),null,n.at(1))
|
490
494
|
case 3:return s.create(n.at(0),n.at(2),n.at(1))}}e.inlineIf=i,e.inlineUnless=o
|
491
|
-
var s=function(e){function t(t,n,i){e.call(this),this.branchTag=new r.UpdatableTag(r.CONSTANT_TAG),this.tag=r.combine([t.tag,this.branchTag]),this.cond=t,this.truthy=n,this.falsy=i}return
|
495
|
+
var s=function(e){function t(t,n,i){e.call(this),this.branchTag=new r.UpdatableTag(r.CONSTANT_TAG),this.tag=r.combine([t.tag,this.branchTag]),this.cond=t,this.truthy=n,this.falsy=i}return c.inherits(t,e),t.create=function(e,i,o){var s=n.ConditionalReference.create(e),a=i||n.UNDEFINED_REFERENCE,u=o||n.UNDEFINED_REFERENCE
|
492
496
|
return r.isConst(s)?s.value()?a:u:new t(s,a,u)},t.prototype.compute=function(){var e=this.cond,t=this.truthy,n=this.falsy,r=e.value()?t:n
|
493
497
|
return this.branchTag.update(r.tag),r.value()},t}(n.CachedReference)}),s("ember-glimmer/helpers/loc",["exports","ember-glimmer/utils/references","ember-runtime"],function(e,t,n){"use strict"
|
494
498
|
function r(e){var t=e.positional
|
@@ -539,24 +543,24 @@ else{if("object"!=typeof module||"function"!=typeof module.require)throw new Err
|
|
539
543
|
o=module.require("url"),e.protocolForURL=i}}function r(e){return s||(s=document.createElement("a")),s.href=e,s.protocol}function i(e){var t=null
|
540
544
|
return"string"==typeof e&&(t=o.parse(e).protocol),null===t?":":t}e.default=n
|
541
545
|
var o=void 0,s=void 0}),s("ember-glimmer/renderer",["exports","ember-glimmer/utils/references","ember-metal","glimmer-reference","ember-views","ember-glimmer/component","ember-glimmer/syntax/curly-component","ember-glimmer/syntax/outlet"],function(e,t,n,r,i,o,s,a){"use strict"
|
542
|
-
function u(e){
|
543
|
-
|
544
|
-
return
|
545
|
-
|
546
|
-
var
|
546
|
+
function u(e){y.push(e)}function l(e){var t=y.indexOf(e)
|
547
|
+
y.splice(t,1)}function p(){for(var e=0;e<y.length;e++)y[e]._scheduleRevalidate()}function h(){}function f(e,t){for(var n=0;n<y.length;n++)if(!y[n]._isValid()){if(b>10)throw b=0,y[n].destroy(),new Error("infinite rendering invalidation detected")
|
548
|
+
return b++,d.join(null,h)}b=0}var m=void 0
|
549
|
+
m=function(e,t){return e[t](),!1}
|
550
|
+
var d=n.run.backburner,g=function(){function e(e,t,n,r){this.view=e,this.outletState=t,this.rootOutletState=n}return e.prototype.child=function(){return new e(this.view,this.outletState,this.rootOutletState)},e.prototype.get=function(e){return this.outletState},e.prototype.set=function(e,t){return this.outletState=t,t},e}(),v=function(){function e(e,t,n,r,o,s){var a=this
|
547
551
|
this.id=i.getViewId(e),this.env=t,this.root=e,this.result=void 0,this.shouldReflush=!1,this.destroyed=!1,this._removing=!1
|
548
552
|
var u=this.options={alwaysRevalidate:!1}
|
549
553
|
this.render=function(){var e=a.result=n.render(r,o,s)
|
550
554
|
a.render=function(){e.rerender(u)}}}return e.prototype.isFor=function(e){return this.root===e},e.prototype.destroy=function(){var e=this.result,t=this.env
|
551
555
|
if(this.destroyed=!0,this.env=null,this.root=null,this.result=null,this.render=null,e){var n=!t.inTransaction
|
552
|
-
n&&t.begin(),e.destroy(),n&&t.commit()}},e}(),
|
553
|
-
n.setHasViews(function(){return
|
554
|
-
var
|
555
|
-
|
556
|
-
var
|
556
|
+
n&&t.begin(),e.destroy(),n&&t.commit()}},e}(),y=[]
|
557
|
+
n.setHasViews(function(){return y.length>0})
|
558
|
+
var b=0
|
559
|
+
d.on("begin",p),d.on("end",f)
|
560
|
+
var _=function(){function e(e,t){var n=arguments.length<=2||void 0===arguments[2]?i.fallbackViewRegistry:arguments[2],r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3]
|
557
561
|
this._env=e,this._rootTemplate=t,this._viewRegistry=n,this._destinedForDOM=r,this._destroyed=!1,this._roots=[],this._lastRevision=null,this._isRenderingRoots=!1,this._removedRoots=[]}return e.prototype.appendOutletView=function(e,t){var n=new a.TopLevelOutletComponentDefinition(e),r=e.toReference(),i=e.outletState.render.controller
|
558
562
|
this._appendDefinition(e,n,t,r,i)},e.prototype.appendTo=function(e,t){var n=new s.RootComponentDefinition(e)
|
559
|
-
this._appendDefinition(e,n,t)},e.prototype._appendDefinition=function(e,n,i){var o=arguments.length<=3||void 0===arguments[3]?r.UNDEFINED_REFERENCE:arguments[3],s=arguments.length<=4||void 0===arguments[4]?null:arguments[4],a=new t.RootReference(n),u=new
|
563
|
+
this._appendDefinition(e,n,t)},e.prototype._appendDefinition=function(e,n,i){var o=arguments.length<=3||void 0===arguments[3]?r.UNDEFINED_REFERENCE:arguments[3],s=arguments.length<=4||void 0===arguments[4]?null:arguments[4],a=new t.RootReference(n),u=new g(null,o,o,!0,s),l=new v(e,this._env,this._rootTemplate,a,i,u)
|
560
564
|
this._renderRoot(l)},e.prototype.rerender=function(e){this._scheduleRevalidate()},e.prototype.register=function(e){var t=i.getViewId(e)
|
561
565
|
this._viewRegistry[t]=e},e.prototype.unregister=function(e){delete this._viewRegistry[i.getViewId(e)]},e.prototype.remove=function(e){e._transitionTo("destroying"),this.cleanupRootFor(e),i.setViewElement(e,null),this._destinedForDOM&&e.trigger("didDestroyElement"),e.isDestroying||e.destroy()},e.prototype.cleanupRootFor=function(e){if(!this._destroyed)for(var t=this._roots,n=this._roots.length;n--;){var r=t[n]
|
562
566
|
r.isFor(e)&&r.destroy()}},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._clearAllRoots())},e.prototype.getElement=function(e){},e.prototype.getBounds=function(e){var t=e[o.BOUNDS],n=t.parentElement(),r=t.firstNode(),i=t.lastNode()
|
@@ -566,65 +570,65 @@ do{t.begin(),o=e.length,i=!1
|
|
566
570
|
for(var s=0;s<e.length;s++){var a=e[s]
|
567
571
|
if(a.destroyed)n.push(a)
|
568
572
|
else{var u=a.shouldReflush
|
569
|
-
s>=o&&!u||(a.options.alwaysRevalidate=u,u=a.shouldReflush=
|
573
|
+
s>=o&&!u||(a.options.alwaysRevalidate=u,u=a.shouldReflush=m(a,"render"),i=i||u)}}this._lastRevision=r.CURRENT_TAG.value(),t.commit()}while(i||e.length>o)
|
570
574
|
for(;n.length;){var a=n.pop(),c=e.indexOf(a)
|
571
575
|
e.splice(c,1)}0===this._roots.length&&l(this)},e.prototype._renderRootsTransaction=function(){if(!this._isRenderingRoots){this._isRenderingRoots=!0
|
572
576
|
var e=!1
|
573
577
|
try{this._renderRoots(),e=!0}finally{e||(this._lastRevision=r.CURRENT_TAG.value()),this._isRenderingRoots=!1}}},e.prototype._clearAllRoots=function(){for(var e=this._roots,t=0;t<e.length;t++){var n=e[t]
|
574
|
-
n.destroy()}this._removedRoots.length=0,this._roots=null,e.length&&l(this)},e.prototype._scheduleRevalidate=function(){
|
575
|
-
return new this(t,n,r,!1)},t.prototype.getElement=function(e){throw new Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")},t}(
|
576
|
-
e.InertRenderer=
|
577
|
-
var
|
578
|
-
return new this(t,n,r,!0)},t.prototype.getElement=function(e){return i.getViewElement(e)},t}(
|
579
|
-
e.InteractiveRenderer=
|
580
|
-
function
|
578
|
+
n.destroy()}this._removedRoots.length=0,this._roots=null,e.length&&l(this)},e.prototype._scheduleRevalidate=function(){d.scheduleOnce("render",this,this._revalidate)},e.prototype._isValid=function(){return this._destroyed||0===this._roots.length||r.CURRENT_TAG.validate(this._lastRevision)},e.prototype._revalidate=function(){this._isValid()||this._renderRootsTransaction()},e}(),w=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.create=function(e){var t=e.env,n=e.rootTemplate,r=e._viewRegistry
|
579
|
+
return new this(t,n,r,!1)},t.prototype.getElement=function(e){throw new Error("Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).")},t}(_)
|
580
|
+
e.InertRenderer=w
|
581
|
+
var E=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.create=function(e){var t=e.env,n=e.rootTemplate,r=e._viewRegistry
|
582
|
+
return new this(t,n,r,!0)},t.prototype.getElement=function(e){return i.getViewElement(e)},t}(_)
|
583
|
+
e.InteractiveRenderer=E}),s("ember-glimmer/setup-registry",["exports","ember-environment","container","ember-glimmer/renderer","ember-glimmer/dom","ember-glimmer/views/outlet","ember-glimmer/components/text_field","ember-glimmer/components/text_area","ember-glimmer/components/checkbox","ember-glimmer/components/link-to","ember-glimmer/component","ember-glimmer/templates/component","ember-glimmer/templates/root","ember-glimmer/templates/outlet","ember-glimmer/environment"],function(e,t,n,r,i,o,s,a,u,l,p,h,f,m,d){"use strict"
|
584
|
+
function g(e){e.injection("service:-glimmer-environment","appendOperations","service:-dom-tree-construction"),e.injection("renderer","env","service:-glimmer-environment"),e.register(n.privatize(y),f.default),e.injection("renderer","rootTemplate",n.privatize(y)),e.register("renderer:-dom",r.InteractiveRenderer),e.register("renderer:-inert",r.InertRenderer),t.environment.hasDOM&&e.injection("service:-glimmer-environment","updateOperations","service:-dom-changes"),e.register("service:-dom-changes",{create:function(e){var t=e.document
|
581
585
|
return new i.DOMChanges(t)}}),e.register("service:-dom-tree-construction",{create:function(e){var n=e.document,r=t.environment.hasDOM?i.DOMTreeConstruction:i.NodeDOMTreeConstruction
|
582
|
-
return new r(n)}})}function
|
583
|
-
var
|
586
|
+
return new r(n)}})}function v(e){e.register("view:-outlet",o.default),e.register("template:-outlet",m.default),e.injection("view:-outlet","template","template:-outlet"),e.injection("service:-dom-changes","document","service:-document"),e.injection("service:-dom-tree-construction","document","service:-document"),e.register(n.privatize(b),h.default),e.register("service:-glimmer-environment",d.default),e.injection("template","env","service:-glimmer-environment"),e.optionsForType("helper",{instantiate:!1}),e.register("component:-text-field",s.default),e.register("component:-text-area",a.default),e.register("component:-checkbox",u.default),e.register("component:link-to",l.default),e.register(n.privatize(_),p.default)}e.setupApplicationRegistry=g,e.setupEngineRegistry=v
|
587
|
+
var y=c.taggedTemplateLiteralLoose(["template:-root"],["template:-root"]),b=c.taggedTemplateLiteralLoose(["template:components/-default"],["template:components/-default"]),_=c.taggedTemplateLiteralLoose(["component:-default"],["component:-default"])}),s("ember-glimmer/syntax",["exports","ember-glimmer/syntax/render","ember-glimmer/syntax/outlet","ember-glimmer/syntax/mount","ember-glimmer/syntax/dynamic-component","ember-glimmer/syntax/input","glimmer-runtime"],function(e,t,n,r,i,o,s){"use strict"
|
584
588
|
function a(e,t){l.push(e),c.push(t)}function u(e){var t=l.indexOf(e)
|
585
589
|
if(t>-1)return c[t]}e.registerSyntax=a,e.findSyntaxBuilder=u
|
586
590
|
var l=[],c=[]
|
587
591
|
a("render",t.RenderSyntax),a("outlet",n.OutletSyntax),a("mount",r.MountSyntax),a("component",i.DynamicComponentSyntax),a("input",o.InputSyntax),a("-with-dynamic-vars",function(){function e(){}return e.create=function(e,t,n){return new s.WithDynamicVarsSyntax(t)},e}()),a("-in-element",function(){function e(){}return e.create=function(e,t,n){return new s.InElementSyntax(t)},e}())}),s("ember-glimmer/syntax/abstract-manager",["exports","ember-metal"],function(e,t){"use strict"
|
588
592
|
var n=function(){}
|
589
593
|
e.default=n}),s("ember-glimmer/syntax/curly-component",["exports","ember-utils","glimmer-runtime","ember-glimmer/utils/bindings","ember-glimmer/component","ember-metal","ember-views","ember-glimmer/utils/process-args","container","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s,a,u,l){"use strict"
|
590
|
-
function
|
591
|
-
o.indexOf(l)===-1&&(o.push(l),r.AttributeBinding.install(e,n,u,i)),s--}o.indexOf("id")===-1&&i.addStaticAttribute(e,"id",n.elementId),o.indexOf("style")===-1&&r.IsVisibleBinding.install(e,n,i)}function
|
592
|
-
return n.PrimitiveReference.create(""===t?null:t||"div")}function
|
593
|
-
var
|
594
|
-
e.CurlyComponentSyntax=
|
595
|
-
var
|
594
|
+
function p(e,t){}function h(e,t,n){}function f(e,t){e.named.has("id")&&(t.elementId=t.id)}function m(e,t,n,i){for(var o=[],s=t.length-1;s!==-1;){var a=t[s],u=r.AttributeBinding.parse(a),l=u[1]
|
595
|
+
o.indexOf(l)===-1&&(o.push(l),r.AttributeBinding.install(e,n,u,i)),s--}o.indexOf("id")===-1&&i.addStaticAttribute(e,"id",n.elementId),o.indexOf("style")===-1&&r.IsVisibleBinding.install(e,n,i)}function d(){}function g(e){return e.instrumentDetails({initialRender:!0})}function v(e){return e.instrumentDetails({initialRender:!1})}function y(e){var t=e.dynamicScope().view.tagName
|
596
|
+
return n.PrimitiveReference.create(""===t?null:t||"div")}function b(e){return e.getSelf().get("ariaRole")}e.validatePositionalParameters=h
|
597
|
+
var _=c.taggedTemplateLiteralLoose(["template:components/-default"],["template:components/-default"]),w=u.privatize(_),E=function(e){function t(t,n,r){e.call(this),this.args=t,this.definition=n,this.symbolTable=r,this.shadow=null}return c.inherits(t,e),t.prototype.compile=function(e){e.component.static(this.definition,this.args,this.symbolTable,this.shadow)},t}(n.StatementSyntax)
|
598
|
+
e.CurlyComponentSyntax=E
|
599
|
+
var O=function(){function e(e,t,n,r){this.environment=e,this.component=t,this.classRef=null,this.args=n,this.argsRevision=n.tag.value(),this.finalizer=r}return e.prototype.destroy=function(){var e=this.component,t=this.environment
|
596
600
|
t.isInteractive&&(e.trigger("willDestroyElement"),e.trigger("willClearRender")),t.destroyedComponents.push(e)},e.prototype.finalize=function(){var e=this.finalizer
|
597
|
-
e(),this.finalizer=
|
598
|
-
|
599
|
-
var v=
|
601
|
+
e(),this.finalizer=d},e}(),S=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.prototype.prepareArgs=function(e,t){return h(t.named,t.positional.values,e.ComponentClass.positionalParams),a.gatherArgs(t,e)},n.prototype.create=function(e,t,n,r,s,u){var l=r.view,c=t.ComponentClass,h=a.ComponentArgs.create(n),m=h.value(),d=m.props
|
602
|
+
f(n,d),d.parentView=l,d[i.HAS_BLOCK]=u,d._targetObject=s.value()
|
603
|
+
var v=c.create(d),y=o._instrumentStart("render.component",g,v)
|
600
604
|
r.view=v,null!==l&&l.appendChild(v),""===v.tagName&&(e.isInteractive&&v.trigger("willRender"),v._transitionTo("hasElement"),e.isInteractive&&v.trigger("willInsertElement"))
|
601
|
-
var b=new
|
602
|
-
return n.named.has("class")&&(b.classRef=n.named.get("class")),
|
605
|
+
var b=new O(e,v,h,y)
|
606
|
+
return n.named.has("class")&&(b.classRef=n.named.get("class")),p(v,d),e.isInteractive&&""!==v.tagName&&v.trigger("willRender"),b},n.prototype.layoutFor=function(e,t,n){var r=e.template
|
603
607
|
if(!r){var i=t.component
|
604
|
-
r=this.templateFor(i,n)}return n.getCompiledBlock(
|
608
|
+
r=this.templateFor(i,n)}return n.getCompiledBlock(N,r)},n.prototype.templateFor=function(e,n){var r=o.get(e,"layout"),i=e[t.OWNER]
|
605
609
|
if(r)return n.getTemplate(r,i)
|
606
610
|
var s=o.get(e,"layoutName")
|
607
611
|
if(s){var a=i.lookup("template:"+s)
|
608
|
-
if(a)return a}return i.lookup(
|
612
|
+
if(a)return a}return i.lookup(w)},n.prototype.getSelf=function(e){var t=e.component
|
609
613
|
return t[i.ROOT_REF]},n.prototype.didCreateElement=function(e,t,n){var i=e.component,o=e.classRef,a=e.environment
|
610
614
|
s.setViewElement(i,t)
|
611
615
|
var u=i.attributeBindings,l=i.classNames,c=i.classNameBindings
|
612
|
-
u&&u.length?
|
616
|
+
u&&u.length?m(t,u,i,n):(n.addStaticAttribute(t,"id",i.elementId),r.IsVisibleBinding.install(t,i,n)),o&&n.addDynamicAttribute(t,"class",o),l&&l.length&&l.forEach(function(e){n.addStaticAttribute(t,"class",e)}),c&&c.length&&c.forEach(function(e){r.ClassNameBinding.install(t,i,e,n)}),i._transitionTo("hasElement"),a.isInteractive&&i.trigger("willInsertElement")},n.prototype.didRenderLayout=function(e,t){e.component[i.BOUNDS]=t,e.finalize()},n.prototype.getTag=function(e){var t=e.component
|
613
617
|
return t[i.DIRTY_TAG]},n.prototype.didCreate=function(e){var t=e.component,n=e.environment
|
614
618
|
n.isInteractive&&(t._transitionTo("inDOM"),t.trigger("didInsertElement"),t.trigger("didRender"))},n.prototype.update=function(e,t,n){var r=e.component,s=e.args,a=e.argsRevision,u=e.environment
|
615
|
-
if(e.finalizer=o._instrumentStart("render.component",
|
619
|
+
if(e.finalizer=o._instrumentStart("render.component",v,r),!s.tag.validate(a)){var l=s.value(),c=l.attrs,p=l.props
|
616
620
|
e.argsRevision=s.tag.value()
|
617
621
|
var h=r.attrs,f=c
|
618
622
|
r[i.IS_DISPATCHING_ATTRS]=!0,r.setProperties(p),r[i.IS_DISPATCHING_ATTRS]=!1,r.trigger("didUpdateAttrs",{oldAttrs:h,newAttrs:f}),r.trigger("didReceiveAttrs",{oldAttrs:h,newAttrs:f})}u.isInteractive&&(r.trigger("willUpdate"),r.trigger("willRender"))},n.prototype.didUpdateLayout=function(e){e.finalize()},n.prototype.didUpdate=function(e){var t=e.component,n=e.environment
|
619
|
-
n.isInteractive&&(t.trigger("didUpdate"),t.trigger("didRender"))},n.prototype.getDestructor=function(e){return e},n}(l.default),
|
620
|
-
return r.view=a,""===a.tagName&&(e.isInteractive&&a.trigger("willRender"),a._transitionTo("hasElement"),e.isInteractive&&a.trigger("willInsertElement")),
|
621
|
-
e.CurlyComponentDefinition=
|
622
|
-
var
|
623
|
-
e.RootComponentDefinition=
|
624
|
-
var
|
625
|
-
|
623
|
+
n.isInteractive&&(t.trigger("didUpdate"),t.trigger("didRender"))},n.prototype.getDestructor=function(e){return e},n}(l.default),x=new S,C=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.create=function(e,t,n,r,i,s){var a=t.ComponentClass,u=o._instrumentStart("render.component",g,a)
|
624
|
+
return r.view=a,""===a.tagName&&(e.isInteractive&&a.trigger("willRender"),a._transitionTo("hasElement"),e.isInteractive&&a.trigger("willInsertElement")),p(a,{}),new O(e,a,n,u)},t}(S),A=new C,k=function(e){function t(t,n,r,i){e.call(this,t,x,n),this.template=r,this.args=i}return c.inherits(t,e),t}(n.ComponentDefinition)
|
625
|
+
e.CurlyComponentDefinition=k
|
626
|
+
var T=function(e){function t(t){e.call(this,"-root",A,t),this.template=void 0,this.args=void 0}return c.inherits(t,e),t}(n.ComponentDefinition)
|
627
|
+
e.RootComponentDefinition=T
|
628
|
+
var N=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template.asLayout()),e.tag.dynamic(y),e.attrs.dynamic("role",b),e.attrs.static("class","ember-view")},e}()
|
629
|
+
N.id="curly"}),s("ember-glimmer/syntax/dynamic-component",["exports","glimmer-runtime","glimmer-reference","ember-metal"],function(e,t,n,r){"use strict"
|
626
630
|
function i(e,t){var n=e.env,r=e.getArgs(),i=r.positional.at(0)
|
627
|
-
return new s({nameRef:i,env:n,symbolTable:t})}var o=function(e){function n(t,n,r){e.call(this),this.definition=i,this.definitionArgs=t,this.args=n,this.symbolTable=r,this.shadow=null}return
|
631
|
+
return new s({nameRef:i,env:n,symbolTable:t})}var o=function(e){function n(t,n,r){e.call(this),this.definition=i,this.definitionArgs=t,this.args=n,this.symbolTable=r,this.shadow=null}return c.inherits(n,e),n.create=function(e,n,r){var i=t.ArgsSyntax.fromPositionalArgs(n.positional.slice(0,1)),o=t.ArgsSyntax.build(n.positional.slice(1),n.named,n.blocks)
|
628
632
|
return new this(i,o,r)},n.fromPath=function(e,n,r,i){var o=t.ArgsSyntax.fromPositionalArgs(t.PositionalArgsSyntax.build([t.GetSyntax.build(n.join("."))]))
|
629
633
|
return new this(o,r,i)},n.prototype.compile=function(e){e.component.dynamic(this.definitionArgs,this.definition,this.args,this.symbolTable,this.shadow)},n}(t.StatementSyntax)
|
630
634
|
e.DynamicComponentSyntax=o
|
@@ -640,50 +644,50 @@ if("value"===u.type){if("checkbox"===u.value){i.wrapComponentClassAttribute(t)
|
|
640
644
|
var l=a("-checkbox")
|
641
645
|
return new n.CurlyComponentSyntax(t,l,s)}return o(t,a,s)}return r.DynamicComponentSyntax.create(e,t,s)}}
|
642
646
|
e.InputSyntax=s}),s("ember-glimmer/syntax/mount",["exports","glimmer-runtime","glimmer-reference","ember-metal","ember-glimmer/utils/references","ember-routing","ember-glimmer/syntax/outlet","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s,a){"use strict"
|
643
|
-
var u=function(e){function n(t,n){e.call(this),this.definition=t,this.symbolTable=n}return
|
647
|
+
var u=function(e){function n(t,n){e.call(this),this.definition=t,this.symbolTable=n}return c.inherits(n,e),n.create=function(e,t,r){var i=t.positional.at(0).inner(),o=new h(i,e)
|
644
648
|
return new n(o,r)},n.prototype.compile=function(e){e.component.static(this.definition,t.ArgsSyntax.empty(),null,this.symbolTable,null)},n}(t.StatementSyntax)
|
645
649
|
e.MountSyntax=u
|
646
|
-
var l=function(e){function t(){e.apply(this,arguments)}return
|
650
|
+
var l=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.prepareArgs=function(e,t){return t},t.prototype.create=function(e,t,r,i){var o=t.name,s=t.env
|
647
651
|
i.outletState=n.UNDEFINED_REFERENCE
|
648
652
|
var a=s.owner.buildChildEngineInstance(o)
|
649
653
|
return a.boot(),{engine:a}},t.prototype.layoutFor=function(e,t,n){var r=t.engine,i=r.lookup("template:application")
|
650
654
|
return n.getCompiledBlock(s.OutletLayoutCompiler,i)},t.prototype.getSelf=function(e){var t=e.engine,n=t._lookupFactory("controller:application")||o.generateControllerFactory(t,"application")
|
651
655
|
return new i.RootReference(n.create())},t.prototype.getTag=function(){return null},t.prototype.getDestructor=function(e){var t=e.engine
|
652
|
-
return t},t.prototype.didCreateElement=function(){},t.prototype.didRenderLayout=function(){},t.prototype.didCreate=function(e){},t.prototype.update=function(e,t,n){},t.prototype.didUpdateLayout=function(){},t.prototype.didUpdate=function(e){},t}(a.default),
|
653
|
-
s("ember-glimmer/syntax/outlet",["exports","ember-utils","glimmer-runtime","ember-metal","ember-glimmer/utils/references","glimmer-reference","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s){"use strict"
|
656
|
+
return t},t.prototype.didCreateElement=function(){},t.prototype.didRenderLayout=function(){},t.prototype.didCreate=function(e){},t.prototype.update=function(e,t,n){},t.prototype.didUpdateLayout=function(){},t.prototype.didUpdate=function(e){},t}(a.default),p=new l,h=function(e){function t(t,n){e.call(this,t,p,null),this.env=n}return c.inherits(t,e),t}(t.ComponentDefinition)}),s("ember-glimmer/syntax/outlet",["exports","ember-utils","glimmer-runtime","ember-metal","ember-glimmer/utils/references","glimmer-reference","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s){"use strict"
|
654
657
|
function a(e){var t=e.dynamicScope(),n=t.outletState,r=e.getArgs(),i=void 0
|
655
|
-
return i=0===r.positional.length?new o.ConstReference("main"):r.positional.at(0),new
|
656
|
-
return{object:n+":"+r}}function
|
658
|
+
return i=0===r.positional.length?new o.ConstReference("main"):r.positional.at(0),new f(i,n)}function u(e,t,n){return t||n?!t&&n||t&&!n?null:n.render.template===t.render.template&&n.render.controller===t.render.controller?e:null:e}function l(e){var t=e.render,n=t.name,r=t.outlet
|
659
|
+
return{object:n+":"+r}}function p(){}var h=function(e){function t(t,r,i){e.call(this),this.definitionArgs=r,this.definition=a,this.args=n.ArgsSyntax.empty(),this.symbolTable=i,this.shadow=null}return c.inherits(t,e),t.create=function(e,t,r){var i=n.ArgsSyntax.fromPositionalArgs(t.positional.slice(0,1))
|
657
660
|
return new this(e,i,r)},t.prototype.compile=function(e){e.component.dynamic(this.definitionArgs,this.definition,this.args,this.symbolTable,this.shadow)},t}(n.StatementSyntax)
|
658
|
-
e.OutletSyntax=
|
659
|
-
var
|
661
|
+
e.OutletSyntax=h
|
662
|
+
var f=function(){function e(e,t){this.outletNameRef=e,this.parentOutletStateRef=t,this.definition=null,this.lastState=null
|
660
663
|
var n=this.outletStateTag=new o.UpdatableTag(t.tag)
|
661
664
|
this.tag=o.combine([n.tag,e.tag])}return e.prototype.value=function(){var e=this.outletNameRef,t=this.parentOutletStateRef,n=this.definition,r=this.lastState,i=e.value(),o=t.get("outlets").get(i),s=this.lastState=o.value()
|
662
665
|
this.outletStateTag.update(o.tag),n=u(n,r,s)
|
663
666
|
var a=s&&s.render.template
|
664
|
-
return n?n:a?this.definition=new
|
665
|
-
e(),this.finalizer=
|
666
|
-
return new
|
667
|
-
return new i.RootReference(t.render.controller)},t.prototype.getTag=function(){return null},t.prototype.getDestructor=function(){return null},t.prototype.didRenderLayout=function(e){e.finalize()},t.prototype.didCreateElement=function(){},t.prototype.didCreate=function(e){},t.prototype.update=function(e){},t.prototype.didUpdateLayout=function(e){},t.prototype.didUpdate=function(e){},t}(s.default),
|
668
|
-
e.TopLevelOutletComponentDefinition=
|
669
|
-
var
|
670
|
-
|
671
|
-
var
|
672
|
-
e.OutletLayoutCompiler=
|
673
|
-
s("ember-glimmer/syntax/render",["exports","glimmer-runtime","glimmer-reference","ember-metal","ember-glimmer/utils/references","ember-routing","ember-glimmer/syntax/outlet","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s,a){"use strict"
|
667
|
+
return n?n:a?this.definition=new w(i,s.render.template):this.definition=null},e}(),m=function(){function e(e){this.outletState=e,this.instrument()}return e.prototype.instrument=function(){this.finalizer=r._instrumentStart("render.outlet",l,this.outletState)},e.prototype.finalize=function(){var e=this.finalizer
|
668
|
+
e(),this.finalizer=p},e}(),d=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.prepareArgs=function(e,t){return t},t.prototype.create=function(e,t,n,r){var i=r.outletState=r.outletState.get("outlets").get(t.outletName),o=i.value()
|
669
|
+
return new m(o)},t.prototype.layoutFor=function(e,t,n){return n.getCompiledBlock(E,e.template)},t.prototype.getSelf=function(e){var t=e.outletState
|
670
|
+
return new i.RootReference(t.render.controller)},t.prototype.getTag=function(){return null},t.prototype.getDestructor=function(){return null},t.prototype.didRenderLayout=function(e){e.finalize()},t.prototype.didCreateElement=function(){},t.prototype.didCreate=function(e){},t.prototype.update=function(e){},t.prototype.didUpdateLayout=function(e){},t.prototype.didUpdate=function(e){},t}(s.default),g=new d,v=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.create=function(e,t,n,r){return new m(r.outletState.value())},t.prototype.layoutFor=function(e,t,n){return n.getCompiledBlock(_,e.template)},t}(d),y=new v,b=function(e){function n(n){e.call(this,"outlet",y,n),this.template=n.template,t.generateGuid(this)}return c.inherits(n,e),n}(n.ComponentDefinition)
|
671
|
+
e.TopLevelOutletComponentDefinition=b
|
672
|
+
var _=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template.asLayout()),e.tag.static("div"),e.attrs.static("id",t.guidFor(this)),e.attrs.static("class","ember-view")},e}()
|
673
|
+
_.id="top-level-outlet"
|
674
|
+
var w=function(e){function n(n,r){e.call(this,"outlet",g,null),this.outletName=n,this.template=r,t.generateGuid(this)}return c.inherits(n,e),n}(n.ComponentDefinition),E=function(){function e(e){this.template=e}return e.prototype.compile=function(e){e.wrapLayout(this.template.asLayout())},e}()
|
675
|
+
e.OutletLayoutCompiler=E,E.id="outlet"}),s("ember-glimmer/syntax/render",["exports","glimmer-runtime","glimmer-reference","ember-metal","ember-glimmer/utils/references","ember-routing","ember-glimmer/syntax/outlet","ember-glimmer/syntax/abstract-manager"],function(e,t,n,r,i,o,s,a){"use strict"
|
674
676
|
function u(e){var t=e.env,r=e.getArgs(),i=r.positional.at(0),o=i.value(),s=t.owner.lookup("template:"+o),a=void 0
|
675
677
|
if(r.named.has("controller")){var u=r.named.get("controller")
|
676
678
|
a=u.value()}else a=o
|
677
|
-
return 1===r.positional.length?new n.ConstReference(new
|
679
|
+
return 1===r.positional.length?new n.ConstReference(new g(a,s,t,f)):new n.ConstReference(new g(a,s,t,d))}var l=function(e){function n(n,r,i){e.call(this),this.definitionArgs=r,this.definition=u,this.args=t.ArgsSyntax.fromPositionalArgs(r.positional.slice(1,2)),this.symbolTable=i,this.shadow=null}return c.inherits(n,e),n.create=function(e,t,n){return new this(e,t,n)},n.prototype.compile=function(e){e.component.dynamic(this.definitionArgs,this.definition,this.args,this.symbolTable,this.shadow)},n}(t.StatementSyntax)
|
678
680
|
e.RenderSyntax=l
|
679
|
-
var
|
680
|
-
return new i.RootReference(t)},t.prototype.getTag=function(){return null},t.prototype.getDestructor=function(){return null},t.prototype.didCreateElement=function(){},t.prototype.didRenderLayout=function(){},t.prototype.didCreate=function(){},t.prototype.update=function(){},t.prototype.didUpdateLayout=function(){},t.prototype.didUpdate=function(){},t}(a.default),
|
681
|
-
return r.rootOutletState&&(r.outletState=r.rootOutletState.getOrphan(i)),{controller:a}},t}(
|
681
|
+
var p=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.prepareArgs=function(e,t){return t},t.prototype.layoutFor=function(e,t,n){return n.getCompiledBlock(s.OutletLayoutCompiler,e.template)},t.prototype.getSelf=function(e){var t=e.controller
|
682
|
+
return new i.RootReference(t)},t.prototype.getTag=function(){return null},t.prototype.getDestructor=function(){return null},t.prototype.didCreateElement=function(){},t.prototype.didRenderLayout=function(){},t.prototype.didCreate=function(){},t.prototype.update=function(){},t.prototype.didUpdateLayout=function(){},t.prototype.didUpdate=function(){},t}(a.default),h=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.create=function(e,t,n,r){var i=t.name,s=t.env,a=s.owner.lookup("controller:"+i)||o.generateController(s.owner,i)
|
683
|
+
return r.rootOutletState&&(r.outletState=r.rootOutletState.getOrphan(i)),{controller:a}},t}(p),f=new h,m=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.create=function(e,t,n,r){var i=t.name,s=t.env,a=n.positional.at(0),u=s.owner._lookupFactory("controller:"+i)||o.generateControllerFactory(s.owner,i),l=u.create({model:a.value()})
|
682
684
|
return r.rootOutletState&&(r.outletState=r.rootOutletState.getOrphan(i)),{controller:l}},t.prototype.update=function(e,t,n){var r=e.controller
|
683
685
|
r.set("model",t.positional.at(0).value())},t.prototype.getDestructor=function(e){var t=e.controller
|
684
|
-
return t},t}(
|
686
|
+
return t},t}(p),d=new m,g=function(e){function t(t,n,r,i){e.call(this,"render",i,null),this.name=t,this.template=n,this.env=r}return c.inherits(t,e),t}(t.ComponentDefinition)})
|
687
|
+
s("ember-glimmer/template",["exports","ember-utils","glimmer-runtime"],function(e,t,n){"use strict"
|
685
688
|
function r(e){var r=n.templateFactory(e)
|
686
|
-
return{id:r.id,meta:r.meta,create:function(e){return r.create(e.env,{owner:e[t.OWNER]})}}}e.default=r})
|
689
|
+
return{id:r.id,meta:r.meta,create:function(e){return r.create(e.env,{owner:e[t.OWNER]})}}}e.default=r})
|
690
|
+
s("ember-glimmer/template_registry",["exports"],function(e){"use strict"
|
687
691
|
function t(e){s=e}function n(){return s}function r(e){if(s.hasOwnProperty(e))return s[e]}function i(e){return s.hasOwnProperty(e)}function o(e,t){return s[e]=t}e.setTemplates=t,e.getTemplates=n,e.getTemplate=r,e.hasTemplate=i,e.setTemplate=o
|
688
692
|
var s={}}),s("ember-glimmer/templates/component",["exports","ember-glimmer/template"],function(e,t){"use strict"
|
689
693
|
e.default=t.default({id:"ZoGfVsSJ",block:'{"statements":[["yield","default"]],"locals":[],"named":[],"yields":["default"],"blocks":[],"hasPartials":false}',meta:{moduleName:"ember-glimmer/templates/component.hbs"}})}),s("ember-glimmer/templates/empty",["exports","ember-glimmer/template"],function(e,t){"use strict"
|
@@ -696,28 +700,28 @@ return r&&(n.shift(),1===n.length)?a(e,n[0]):t.referenceFromParts(e[o.ROOT_REF],
|
|
696
700
|
if(r!==-1){var i=t.values[r],o=i.ref,s=i.type
|
697
701
|
if("get"===s){var a=o.parts[o.parts.length-1]
|
698
702
|
t.values[r]=n.HelperSyntax.fromSpec(["helper",["-class"],[["get",o.parts],a],null])}}return e}e.wrapComponentClassAttribute=l
|
699
|
-
var
|
703
|
+
var p={parse:function(e){var t=e.indexOf(":")
|
700
704
|
if(t===-1)return[e,e,!0]
|
701
705
|
var n=e.substring(0,t),r=e.substring(t+1)
|
702
706
|
return[n,r,!1]},install:function(e,t,n,i){var o=n[0],s=n[1]
|
703
707
|
n[2]
|
704
708
|
if("id"===s){var l=r.get(t,o)
|
705
709
|
return void 0!==l&&null!==l||(l=t.elementId),void i.addStaticAttribute(e,"id",l)}var c=o.indexOf(".")>-1,p=c?u(t,o.split(".")):a(t,o)
|
706
|
-
"style"===s&&(p=new
|
707
|
-
e.AttributeBinding=
|
708
|
-
var
|
710
|
+
"style"===s&&(p=new m(p,a(t,"isVisible"))),i.addDynamicAttribute(e,s,p)}}
|
711
|
+
e.AttributeBinding=p
|
712
|
+
var h="display: none;",f=s.htmlSafe(h),m=function(e){function n(n,r){e.call(this),this.tag=t.combine([n.tag,r.tag]),this.inner=n,this.isVisible=r}return c.inherits(n,e),n.prototype.compute=function(){var e=this.inner.value(),t=this.isVisible.value()
|
709
713
|
if(t!==!1)return e
|
710
|
-
if(e||0===e){var n=e+" "+
|
711
|
-
return s.isHTMLSafe(e)?s.htmlSafe(n):n}return
|
712
|
-
e.IsVisibleBinding=
|
713
|
-
var
|
714
|
+
if(e||0===e){var n=e+" "+h
|
715
|
+
return s.isHTMLSafe(e)?s.htmlSafe(n):n}return f},n}(t.CachedReference),d={install:function(e,n,r){r.addDynamicAttribute(e,"style",t.map(a(n,"isVisible"),this.mapStyleValue))},mapStyleValue:function(e){return e===!1?f:null}}
|
716
|
+
e.IsVisibleBinding=d
|
717
|
+
var g={install:function(e,t,n,r){var i=n.split(":"),o=i[0],s=i[1],l=i[2],c=""===o
|
714
718
|
if(c)r.addStaticAttribute(e,"class",s)
|
715
719
|
else{var p=o.indexOf(".")>-1,h=p&&o.split("."),f=p?u(t,h):a(t,o),m=void 0
|
716
|
-
m=void 0===s?new
|
717
|
-
e.ClassNameBinding=
|
718
|
-
var
|
720
|
+
m=void 0===s?new v(f,p?h[h.length-1]:o):new y(f,s,l),r.addDynamicAttribute(e,"class",m)}}}
|
721
|
+
e.ClassNameBinding=g
|
722
|
+
var v=function(e){function t(t,n){e.call(this),this.tag=t.tag,this.inner=t,this.path=n,this.dasherizedPath=null}return c.inherits(t,e),t.prototype.compute=function(){var e=this.inner.value()
|
719
723
|
if(e===!0){var t=this.path,n=this.dasherizedPath
|
720
|
-
return n||(this.dasherizedPath=i.String.dasherize(t))}return e||0===e?e:null},t}(t.CachedReference),
|
724
|
+
return n||(this.dasherizedPath=i.String.dasherize(t))}return e||0===e?e:null},t}(t.CachedReference),y=function(e){function t(t,n,r){e.call(this),this.tag=t.tag,this.inner=t,this.truthy=n||null,this.falsy=r||null}return c.inherits(t,e),t.prototype.compute=function(){var e=this.inner,t=this.truthy,n=this.falsy
|
721
725
|
return e.value()?t:n},t}(t.CachedReference)}),s("ember-glimmer/utils/debug-stack",["exports","ember-metal"],function(e,t){"use strict"
|
722
726
|
var n=void 0
|
723
727
|
e.default=n}),s("ember-glimmer/utils/iterable",["exports","ember-utils","ember-metal","ember-runtime","ember-glimmer/utils/references","ember-glimmer/helpers/each-in","glimmer-reference"],function(e,t,n,r,i,o,s){"use strict"
|
@@ -771,45 +775,45 @@ e.ComponentArgs=d
|
|
771
775
|
var g=t.symbol("REF"),v=function(){function e(e,t){this[o.MUTABLE_CELL]=!0,this[g]=e,this.value=t}return e.prototype.update=function(e){this[g][i.UPDATE](e)},e}()}),s("ember-glimmer/utils/references",["exports","ember-utils","ember-metal","glimmer-reference","glimmer-runtime","ember-glimmer/utils/to-bool","ember-glimmer/helper"],function(e,t,n,r,i,o,s){"use strict"
|
772
776
|
var a=t.symbol("UPDATE")
|
773
777
|
e.UPDATE=a,e.NULL_REFERENCE=i.NULL_REFERENCE,e.UNDEFINED_REFERENCE=i.UNDEFINED_REFERENCE
|
774
|
-
var u=function(){function e(){}return e.prototype.get=function(e){return
|
778
|
+
var u=function(){function e(){}return e.prototype.get=function(e){return h.create(this,e)},e}(),l=function(e){function t(){e.call(this),this._lastRevision=null,this._lastValue=null}return c.inherits(t,e),t.prototype.value=function(){var e=this.tag,t=this._lastRevision,n=this._lastValue
|
775
779
|
return t&&e.validate(t)||(n=this._lastValue=this.compute(),this._lastRevision=e.value()),n},t}(u)
|
776
780
|
e.CachedReference=l
|
777
|
-
var
|
778
|
-
return t||(t=this.children[e]=new
|
779
|
-
e.RootReference=
|
780
|
-
var
|
781
|
-
e.PropertyReference=
|
782
|
-
var
|
783
|
-
return n.get(e,t)},t.prototype[a]=function(e){n.set(this._parentValue,this._propertyKey,e)},t}(
|
784
|
-
e.RootPropertyReference=
|
785
|
-
var
|
781
|
+
var p=function(e){function n(n){e.call(this,n),this.children=new t.EmptyObject}return c.inherits(n,e),n.prototype.get=function(e){var t=this.children[e]
|
782
|
+
return t||(t=this.children[e]=new f(this.inner,e)),t},n}(r.ConstReference)
|
783
|
+
e.RootReference=p
|
784
|
+
var h=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.create=function(e,t){return r.isConst(e)?new f(e.value(),t):new m(e,t)},t.prototype.get=function(e){return new m(this,e)},t}(l)
|
785
|
+
e.PropertyReference=h
|
786
|
+
var f=function(e){function t(t,r){e.call(this),this._parentValue=t,this._propertyKey=r,this.tag=n.tagForProperty(t,r)}return c.inherits(t,e),t.prototype.compute=function(){var e=this._parentValue,t=this._propertyKey
|
787
|
+
return n.get(e,t)},t.prototype[a]=function(e){n.set(this._parentValue,this._propertyKey,e)},t}(h)
|
788
|
+
e.RootPropertyReference=f
|
789
|
+
var m=function(e){function t(t,n){e.call(this)
|
786
790
|
var i=t.tag,o=new r.UpdatableTag(r.CONSTANT_TAG)
|
787
791
|
this._parentReference=t,this._parentObjectTag=o,this._propertyKey=n
|
788
|
-
this.tag=r.combine([i,o])}return
|
792
|
+
this.tag=r.combine([i,o])}return c.inherits(t,e),t.prototype.compute=function(){var e=this._parentReference,t=this._parentObjectTag,r=this._propertyKey,i=e.value()
|
789
793
|
return t.update(n.tagForProperty(i,r)),"string"==typeof i&&"length"===r?i.length:"object"==typeof i&&i?n.get(i,r):void 0},t.prototype[a]=function(e){var t=this._parentReference.value()
|
790
|
-
n.set(t,this._propertyKey,e)},t}(
|
791
|
-
e.NestedPropertyReference=
|
792
|
-
var
|
794
|
+
n.set(t,this._propertyKey,e)},t}(h)
|
795
|
+
e.NestedPropertyReference=m
|
796
|
+
var d=function(e){function t(t){e.call(this),this.tag=new r.DirtyableTag,this._value=t}return c.inherits(t,e),t.prototype.value=function(){return this._value},t.prototype.update=function(e){var t=this._value
|
793
797
|
e!==t&&(this.tag.dirty(),this._value=e)},t}(u)
|
794
|
-
e.UpdatableReference=
|
795
|
-
var
|
796
|
-
e.UpdatablePrimitiveReference=
|
797
|
-
var
|
798
|
-
return n.isProxy(s)?new
|
799
|
-
e.ConditionalReference=
|
800
|
-
var
|
801
|
-
return null===l?i.NULL_REFERENCE:void 0===l?i.UNDEFINED_REFERENCE:"object"==typeof l?new
|
798
|
+
e.UpdatableReference=d
|
799
|
+
var g=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.get=function(){return i.UNDEFINED_REFERENCE},t}(d)
|
800
|
+
e.UpdatablePrimitiveReference=g
|
801
|
+
var v=function(e){function t(t){e.call(this,t),this.objectTag=new r.UpdatableTag(r.CONSTANT_TAG),this.tag=r.combine([t.tag,this.objectTag])}return c.inherits(t,e),t.create=function(e){if(r.isConst(e)){var s=e.value()
|
802
|
+
return n.isProxy(s)?new f(s,"isTruthy"):i.PrimitiveReference.create(o.default(s))}return new t(e)},t.prototype.toBool=function(e){return n.isProxy(e)?(this.objectTag.update(n.tagForProperty(e,"isTruthy")),n.get(e,"isTruthy")):(this.objectTag.update(n.tagFor(e)),o.default(e))},t}(i.ConditionalReference)
|
803
|
+
e.ConditionalReference=v
|
804
|
+
var y=function(e){function t(t,n){e.call(this),this.tag=n.tag,this.helper=t,this.args=n}return c.inherits(t,e),t.create=function(e,n){if(r.isConst(n)){var o=n.positional,s=n.named,a=o.value(),u=s.value(),l=e(a,u)
|
805
|
+
return null===l?i.NULL_REFERENCE:void 0===l?i.UNDEFINED_REFERENCE:"object"==typeof l?new p(l):i.PrimitiveReference.create(l)}return new t(e,n)},t.prototype.compute=function(){var e=this.helper,t=this.args,n=t.positional,r=t.named,i=n.value(),o=r.value()
|
802
806
|
return e(i,o)},t}(l)
|
803
|
-
e.SimpleHelperReference=
|
804
|
-
var
|
807
|
+
e.SimpleHelperReference=y
|
808
|
+
var b=function(e){function t(t,n){e.call(this),this.tag=r.combine([t[s.RECOMPUTE_TAG],n.tag]),this.instance=t,this.args=n}return c.inherits(t,e),t.create=function(e,n,r){var i=e.create()
|
805
809
|
return n.newDestroyable(i),new t(i,r)},t.prototype.compute=function(){var e=this.instance,t=this.args,n=t.positional,r=t.named,i=n.value(),o=r.value()
|
806
810
|
return e.compute(i,o)},t}(l)
|
807
|
-
e.ClassBasedHelperReference=
|
808
|
-
var
|
811
|
+
e.ClassBasedHelperReference=b
|
812
|
+
var _=function(e){function t(t,n){e.call(this),this.tag=n.tag,this.helper=t,this.args=n}return c.inherits(t,e),t.prototype.compute=function(){var e=this.helper,t=this.args
|
809
813
|
return e(t)},t}(l)
|
810
|
-
e.InternalHelperReference=
|
811
|
-
var
|
812
|
-
e.UnboundReference=
|
814
|
+
e.InternalHelperReference=_
|
815
|
+
var w=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.create=function(e){return null===e?i.NULL_REFERENCE:void 0===e?i.UNDEFINED_REFERENCE:"object"==typeof e?new t(e):i.PrimitiveReference.create(e)},t.prototype.get=function(e){return new t(n.get(this.inner,e))},t}(r.ConstReference)
|
816
|
+
e.UnboundReference=w}),s("ember-glimmer/utils/string",["exports","ember-metal"],function(e,t){"use strict"
|
813
817
|
function n(){return a}function r(e){return u[e]}function i(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML()
|
814
818
|
if(null==e)return""
|
815
819
|
if(!e)return e+""
|
@@ -818,12 +822,12 @@ var a=function(){function e(e){this.string=e}return e.prototype.toString=functio
|
|
818
822
|
e.SafeString=a
|
819
823
|
var u={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},l=/[&<>"'`=]/,c=/[&<>"'`=]/g}),s("ember-glimmer/utils/to-bool",["exports","ember-runtime","ember-metal"],function(e,t,n){"use strict"
|
820
824
|
function r(e){return!!e&&(e===!0||(!t.isArray(e)||0!==n.get(e,"length")))}e.default=r}),s("ember-glimmer/views/outlet",["exports","ember-utils","glimmer-reference","ember-environment","ember-metal"],function(e,t,n,r,i){"use strict"
|
821
|
-
var o=function(){function e(e){this.outletView=e,this.tag=e._tag}return e.prototype.get=function(e){return new a(this,e)},e.prototype.value=function(){return this.outletView.outletState},e.prototype.getOrphan=function(e){return new s(this,e)},e.prototype.update=function(e){this.outletView.setOutletState(e)},e}(),s=function(e){function n(t,n){e.call(this,t.outletView),this.root=t,this.name=n}return
|
825
|
+
var o=function(){function e(e){this.outletView=e,this.tag=e._tag}return e.prototype.get=function(e){return new a(this,e)},e.prototype.value=function(){return this.outletView.outletState},e.prototype.getOrphan=function(e){return new s(this,e)},e.prototype.update=function(e){this.outletView.setOutletState(e)},e}(),s=function(e){function n(t,n){e.call(this,t.outletView),this.root=t,this.name=n}return c.inherits(n,e),n.prototype.value=function(){var e=this.root.value(),n=e.outlets.main.outlets.__ember_orphans__
|
822
826
|
if(!n)return null
|
823
827
|
var r=n.outlets[this.name]
|
824
828
|
if(!r)return null
|
825
829
|
var i=new t.EmptyObject
|
826
|
-
return i[r.render.outlet]=r,r.wasUsed=!0,{outlets:i}},n}(o),a=function(){function e(e,t){this.parent=e,this.key=t,this.tag=e.tag}return e.prototype.get=function(t){return new e(this,t)},e.prototype.value=function(){return this.parent.value()[this.key]},e}(),u=function(){function e(e,t,r,i){this._environment=e,this.renderer=t,this.owner=r,this.template=i,this.outletState=null,this._tag=new n.DirtyableTag}return e.extend=function(n){return function(e){function r(){e.apply(this,arguments)}return
|
830
|
+
return i[r.render.outlet]=r,r.wasUsed=!0,{outlets:i}},n}(o),a=function(){function e(e,t){this.parent=e,this.key=t,this.tag=e.tag}return e.prototype.get=function(t){return new e(this,t)},e.prototype.value=function(){return this.parent.value()[this.key]},e}(),u=function(){function e(e,t,r,i){this._environment=e,this.renderer=t,this.owner=r,this.template=i,this.outletState=null,this._tag=new n.DirtyableTag}return e.extend=function(n){return function(e){function r(){e.apply(this,arguments)}return c.inherits(r,e),r.create=function(r){return r?e.create.call(this,t.assign({},n,r)):e.create.call(this,n)},r}(e)},e.reopenClass=function(e){t.assign(this,e)},e.create=function(n){var r=n._environment,i=n.renderer,o=n.template,s=n[t.OWNER]
|
827
831
|
return new e(r,i,s,o)},e.prototype.appendTo=function(e){var t=this._environment||r.environment,n=void 0
|
828
832
|
n=t.hasDOM&&"string"==typeof e?document.querySelector(e):e,i.run.schedule("render",this.renderer,"appendOutletView",this,n)},e.prototype.rerender=function(){},e.prototype.setOutletState=function(e){this.outletState={outlets:{main:e},render:{owner:void 0,into:void 0,outlet:"main",name:"-top-level",controller:void 0,ViewClass:void 0,template:void 0}},this._tag.dirty()},e.prototype.toReference=function(){return new o(this)},e.prototype.destroy=function(){},e}()
|
829
833
|
e.default=u}),s("ember-metal/alias",["exports","ember-utils","ember-metal/debug","ember-metal/property_get","ember-metal/property_set","ember-metal/error","ember-metal/properties","ember-metal/computed","ember-metal/meta","ember-metal/dependent_keys"],function(e,t,n,r,i,o,s,a,u,l){"use strict"
|
@@ -926,14 +930,14 @@ if(o)for(var s=0;s<o.length;s++){var a=o[s]
|
|
926
930
|
i.writeDeps(a,r,(i.peekDeps(a,r)||0)-1),t.unwatch(n,a,i)}}e.addDependentKeys=n,e.removeDependentKeys=r}),s("ember-metal/deprecate_property",["exports","ember-metal/debug","ember-metal/property_get","ember-metal/property_set"],function(e,t,n,r){"use strict"
|
927
931
|
function i(e,t,i,o){function s(){}Object.defineProperty(e,t,{configurable:!0,enumerable:!1,set:function(e){s(),r.set(this,i,e)},get:function(){return s(),n.get(this,i)}})}e.deprecateProperty=i}),s("ember-metal/descriptor",["exports","ember-metal/properties"],function(e,t){"use strict"
|
928
932
|
function n(e){return new r(e)}e.default=n
|
929
|
-
var r=function(e){function t(t){e.call(this),this.desc=t}return
|
933
|
+
var r=function(e){function t(t){e.call(this),this.desc=t}return c.inherits(t,e),t.prototype.setup=function(e,t){Object.defineProperty(e,t,this.desc)},t.prototype.teardown=function(e,t){},t}(t.Descriptor)}),s("ember-metal/error",["exports"],function(e){"use strict"
|
930
934
|
function t(e){if(!(this instanceof t))return new t(e)
|
931
935
|
var n=Error.call(this,e)
|
932
936
|
Error.captureStackTrace?Error.captureStackTrace(this,t):this.stack=n.stack,this.description=n.description,this.fileName=n.fileName,this.lineNumber=n.lineNumber,this.message=n.message,this.name=n.name,this.number=n.number,this.code=n.code}e.default=t,t.prototype=Object.create(Error.prototype)}),s("ember-metal/error_handler",["exports","ember-console","ember-metal/testing"],function(e,t,n){"use strict"
|
933
|
-
function r(){return
|
934
|
-
|
935
|
-
var
|
936
|
-
return t&&t.indexOf(n)===-1&&(t=n+"\n"+t),t},
|
937
|
+
function r(){return c}function i(e){c=e}function o(e){p?p(e):u(e)}function s(){return p}function a(e){p=e}function u(e){if(n.isTesting())throw e
|
938
|
+
c?c(e):t.default.error(l(e))}e.getOnerror=r,e.setOnerror=i,e.dispatchError=o,e.getDispatchOverride=s,e.setDispatchOverride=a
|
939
|
+
var l=function(e){var t=e.stack,n=e.message
|
940
|
+
return t&&t.indexOf(n)===-1&&(t=n+"\n"+t),t},c=void 0,p=void 0}),s("ember-metal/events",["exports","ember-utils","ember-metal/debug","ember-metal/meta","ember-metal/meta_listeners"],function(e,t,n,r,i){"no use strict"
|
937
941
|
function o(e,t,n){for(var r=-1,i=e.length-3;i>=0;i-=3)if(t===e[i]&&n===e[i+1]){r=i
|
938
942
|
break}return r}function s(e,t,n){var i=r.peekMeta(e)
|
939
943
|
if(i){for(var s=i.matchingListeners(t),a=[],u=s.length-3;u>=0;u-=3){var l=s[u],c=s[u+1],p=s[u+2],h=o(n,l,c)
|
@@ -952,23 +956,23 @@ function n(e,t){for(var n=e.split(i),s=[n],a=0;a<n.length;a++){var u=n[a]
|
|
952
956
|
u.indexOf(",")>=0&&(s=r(s,u.split(","),a))}for(var a=0;a<s.length;a++)t(s[a].join("").replace(o,".[]"))}function r(e,t,n){var r=[]
|
953
957
|
return e.forEach(function(e){t.forEach(function(t){var i=e.slice(0)
|
954
958
|
i[n]=t,r.push(i)})}),r}e.default=n
|
955
|
-
var i=/\{|\}/,o=/\.@each$/})
|
956
|
-
s("ember-metal/features",["exports","ember-utils","ember-environment","ember/features"],function(e,t,n,r){"use strict"
|
959
|
+
var i=/\{|\}/,o=/\.@each$/}),s("ember-metal/features",["exports","ember-utils","ember-environment","ember/features"],function(e,t,n,r){"use strict"
|
957
960
|
function i(e){var t=o[e]
|
958
961
|
return t===!0||t===!1||void 0===t?t:!!n.ENV.ENABLE_OPTIONAL_FEATURES}e.default=i
|
959
962
|
var o=t.assign(r.default,n.ENV.FEATURES)
|
960
|
-
e.FEATURES=o,e.DEFAULT_FEATURES=r.default})
|
961
|
-
s("ember-metal/get_properties",["exports","ember-metal/property_get"],function(e,t){"use strict"
|
963
|
+
e.FEATURES=o,e.DEFAULT_FEATURES=r.default}),s("ember-metal/get_properties",["exports","ember-metal/property_get"],function(e,t){"use strict"
|
962
964
|
function n(e){var n={},r=arguments,i=1
|
963
965
|
for(2===arguments.length&&Array.isArray(arguments[1])&&(i=0,r=arguments[1]);i<r.length;i++)n[r[i]]=t.get(e,r[i])
|
964
|
-
return n}e.default=n})
|
966
|
+
return n}e.default=n})
|
967
|
+
s("ember-metal/index",["exports","require","ember-metal/core","ember-metal/computed","ember-metal/alias","ember-metal/merge","ember-metal/debug","ember-metal/instrumentation","ember-metal/testing","ember-metal/error_handler","ember-metal/meta","ember-metal/error","ember-metal/cache","ember-metal/features","ember-metal/property_get","ember-metal/property_set","ember-metal/weak_map","ember-metal/events","ember-metal/is_none","ember-metal/is_empty","ember-metal/is_blank","ember-metal/is_present","ember-metal/run_loop","ember-metal/observer_set","ember-metal/property_events","ember-metal/properties","ember-metal/watch_key","ember-metal/chains","ember-metal/watch_path","ember-metal/watching","ember-metal/libraries","ember-metal/map","ember-metal/get_properties","ember-metal/set_properties","ember-metal/expand_properties","ember-metal/observer","ember-metal/mixin","ember-metal/binding","ember-metal/path_cache","ember-metal/injected_property","ember-metal/tags","ember-metal/replace","ember-metal/transaction","ember-metal/is_proxy","ember-metal/descriptor"],function(e,t,n,r,i,o,s,a,u,l,c,p,h,f,m,d,g,v,y,b,_,w,E,O,S,x,C,A,k,T,N,R,P,D,I,L,M,j,F,U,B,z,V,q,H){"use strict"
|
965
968
|
e.default=n.default,e.computed=r.default,e.cacheFor=r.cacheFor,e.ComputedProperty=r.ComputedProperty,e.alias=i.default,e.merge=o.default,e.assert=s.assert,e.info=s.info,e.warn=s.warn,e.debug=s.debug,e.deprecate=s.deprecate,e.deprecateFunc=s.deprecateFunc,e.runInDebug=s.runInDebug,e.setDebugFunction=s.setDebugFunction,e.getDebugFunction=s.getDebugFunction,e.debugSeal=s.debugSeal,e.debugFreeze=s.debugFreeze,e.instrument=a.instrument,e.flaggedInstrument=a.flaggedInstrument,e._instrumentStart=a._instrumentStart,e.instrumentationReset=a.reset,e.instrumentationSubscribe=a.subscribe,e.instrumentationUnsubscribe=a.unsubscribe,e.isTesting=u.isTesting,e.setTesting=u.setTesting,e.getOnerror=l.getOnerror,e.setOnerror=l.setOnerror,e.dispatchError=l.dispatchError,e.setDispatchOverride=l.setDispatchOverride,e.META_DESC=c.META_DESC
|
966
969
|
e.meta=c.meta
|
967
970
|
e.peekMeta=c.peekMeta,e.Error=p.default,e.Cache=h.default,e.isFeatureEnabled=f.default,e.FEATURES=f.FEATURES,e.DEFAULT_FEATURES=f.DEFAULT_FEATURES,e._getPath=m._getPath,e.get=m.get,e.getWithDefault=m.getWithDefault,e.set=d.set,e.trySet=d.trySet,e.WeakMap=g.default,e.accumulateListeners=v.accumulateListeners,e.addListener=v.addListener,e.hasListeners=v.hasListeners,e.listenersFor=v.listenersFor,e.on=v.on,e.removeListener=v.removeListener,e.sendEvent=v.sendEvent,e.suspendListener=v.suspendListener,e.suspendListeners=v.suspendListeners,e.watchedEvents=v.watchedEvents,e.isNone=y.default,e.isEmpty=b.default,e.isBlank=_.default,e.isPresent=w.default,e.run=E.default,e.ObserverSet=O.default,e.beginPropertyChanges=S.beginPropertyChanges,e.changeProperties=S.changeProperties
|
968
971
|
e.endPropertyChanges=S.endPropertyChanges
|
969
972
|
e.overrideChains=S.overrideChains,e.propertyDidChange=S.propertyDidChange,e.propertyWillChange=S.propertyWillChange,e.PROPERTY_DID_CHANGE=S.PROPERTY_DID_CHANGE,e.defineProperty=x.defineProperty,e.Descriptor=x.Descriptor,e.watchKey=C.watchKey,e.unwatchKey=C.unwatchKey,e.ChainNode=A.ChainNode,e.finishChains=A.finishChains,e.removeChainWatcher=A.removeChainWatcher,e.watchPath=k.watchPath,e.unwatchPath=k.unwatchPath,e.destroy=T.destroy,e.isWatching=T.isWatching,e.unwatch=T.unwatch,e.watch=T.watch,e.watcherCount=T.watcherCount,e.libraries=N.default,e.Map=R.Map,e.MapWithDefault=R.MapWithDefault,e.OrderedSet=R.OrderedSet,e.getProperties=P.default,e.setProperties=D.default,e.expandProperties=I.default,e._suspendObserver=L._suspendObserver,e._suspendObservers=L._suspendObservers,e.addObserver=L.addObserver,e.observersFor=L.observersFor,e.removeObserver=L.removeObserver
|
970
973
|
e._addBeforeObserver=L._addBeforeObserver
|
971
|
-
e._removeBeforeObserver=L._removeBeforeObserver,e.Mixin=M.Mixin,e.aliasMethod=M.aliasMethod,e._immediateObserver=M._immediateObserver,e._beforeObserver=M._beforeObserver,e.mixin=M.mixin,e.observer=M.observer,e.required=M.required,e.REQUIRED=M.REQUIRED,e.hasUnprocessedMixins=M.hasUnprocessedMixins,e.clearUnprocessedMixins=M.clearUnprocessedMixins,e.detectBinding=M.detectBinding,e.Binding=j.Binding,e.bind=j.bind,e.isGlobalPath=
|
974
|
+
e._removeBeforeObserver=L._removeBeforeObserver,e.Mixin=M.Mixin,e.aliasMethod=M.aliasMethod,e._immediateObserver=M._immediateObserver,e._beforeObserver=M._beforeObserver,e.mixin=M.mixin,e.observer=M.observer,e.required=M.required,e.REQUIRED=M.REQUIRED,e.hasUnprocessedMixins=M.hasUnprocessedMixins,e.clearUnprocessedMixins=M.clearUnprocessedMixins,e.detectBinding=M.detectBinding,e.Binding=j.Binding,e.bind=j.bind,e.isGlobalPath=F.isGlobalPath,e.InjectedProperty=U.default,e.setHasViews=B.setHasViews,e.tagForProperty=B.tagForProperty,e.tagFor=B.tagFor,e.markObjectAsDirty=B.markObjectAsDirty,e.replace=z.default,e.runInTransaction=V.default,e.didRender=V.didRender,e.assertNotRendered=V.assertNotRendered,e.isProxy=q.isProxy,e.descriptor=H.default,t.has("ember-debug")&&t.default("ember-debug")})
|
975
|
+
s("ember-metal/injected_property",["exports","ember-utils","ember-metal/debug","ember-metal/computed","ember-metal/alias","ember-metal/properties"],function(e,t,n,r,i,o){"use strict"
|
972
976
|
function s(e,t){this.type=e,this.name=t,this._super$Constructor(a),c.oneWay.call(this)}function a(e){var n=this[e],r=t.getOwner(this)||this.container
|
973
977
|
return r.lookup(n.type+":"+(n.name||e))}e.default=s,s.prototype=Object.create(o.Descriptor.prototype)
|
974
978
|
var u=s.prototype,l=r.ComputedProperty.prototype,c=i.AliasedProperty.prototype
|
@@ -1107,7 +1111,7 @@ if(e._listenersFinalized)break
|
|
1107
1111
|
e=e.parent}return Object.keys(t)},_initializeListeners:function(){this._listeners=void 0,this._listenersFinalized=void 0,this._suspendedListeners=void 0}}
|
1108
1112
|
e.protoMethods=i}),s("ember-metal/mixin",["exports","ember-utils","ember-metal/error","ember-metal/debug","ember-metal/meta","ember-metal/expand_properties","ember-metal/properties","ember-metal/computed","ember-metal/binding","ember-metal/observer","ember-metal/events"],function(e,t,n,r,i,o,s,a,u,l,c){"no use strict"
|
1109
1113
|
function p(){}function h(e){return"function"==typeof e&&e.isMethod!==!1&&e!==Boolean&&e!==Object&&e!==Number&&e!==Array&&e!==Date&&e!==String}function f(e,n){var r=void 0
|
1110
|
-
return n instanceof T?(r=t.guidFor(n),e.peekMixins(r)?
|
1114
|
+
return n instanceof T?(r=t.guidFor(n),e.peekMixins(r)?z:(e.writeMixins(r,n),n.properties)):n}function m(e,t,n,r){var i=void 0
|
1111
1115
|
return i=n[e]||r[e],t[e]&&(i=i?i.concat(t[e]):t[e]),i}function d(e,n,r,i,o,s){var u=void 0
|
1112
1116
|
if(void 0===i[n]&&(u=o[n]),!u){var l=s[n],c=null!==l&&"object"==typeof l&&l.isDescriptor?l:void 0
|
1113
1117
|
u=c}return void 0!==u&&u instanceof a.ComputedProperty?(r=Object.create(r),r._getter=t.wrap(r._getter,u._getter),u._setter&&(r._setter?r._setter=t.wrap(r._setter,u._setter):r._setter=u._setter),r):r}function g(e,n,r,i,o){var s=void 0
|
@@ -1116,8 +1120,8 @@ return s=o?"function"==typeof o.concat?null===r||void 0===r?o:o.concat(r):t.make
|
|
1116
1120
|
if(!o)return r
|
1117
1121
|
var s=t.assign({},o),a=!1
|
1118
1122
|
for(var u in r)if(r.hasOwnProperty(u)){var l=r[u]
|
1119
|
-
h(l)?(a=!0,s[u]=g(e,u,l,o,{})):s[u]=l}return a&&(s._super=p),s}function b(e,t,n,r,i,o,a,u){if(n instanceof s.Descriptor){if(n===
|
1120
|
-
n._getter&&(n=d(r,t,n,o,i,e)),i[t]=n,o[t]=void 0}else a&&a.indexOf(t)>=0||"concatenatedProperties"===t||"mergedProperties"===t?n=v(e,t,n,o):u&&u.indexOf(t)>=0?n=y(e,t,n,o):h(n)&&(n=g(e,t,n,o,i)),i[t]=void 0,o[t]=n}function _(e,t,n,r,i,o){function s(e){delete n[e],delete r[e]}for(var a=void 0,u=void 0,l=void 0,c=void 0,p=void 0,h=0;h<e.length;h++)if(a=e[h],u=f(t,a),u!==
|
1123
|
+
h(l)?(a=!0,s[u]=g(e,u,l,o,{})):s[u]=l}return a&&(s._super=p),s}function b(e,t,n,r,i,o,a,u){if(n instanceof s.Descriptor){if(n===H&&i[t])return z
|
1124
|
+
n._getter&&(n=d(r,t,n,o,i,e)),i[t]=n,o[t]=void 0}else a&&a.indexOf(t)>=0||"concatenatedProperties"===t||"mergedProperties"===t?n=v(e,t,n,o):u&&u.indexOf(t)>=0?n=y(e,t,n,o):h(n)&&(n=g(e,t,n,o,i)),i[t]=void 0,o[t]=n}function _(e,t,n,r,i,o){function s(e){delete n[e],delete r[e]}for(var a=void 0,u=void 0,l=void 0,c=void 0,p=void 0,h=0;h<e.length;h++)if(a=e[h],u=f(t,a),u!==z)if(u){i.willMergeMixin&&i.willMergeMixin(u),c=m("concatenatedProperties",u,r,i),p=m("mergedProperties",u,r,i)
|
1121
1125
|
for(l in u)u.hasOwnProperty(l)&&(o.push(l),b(i,l,u[l],t,n,r,c,p))
|
1122
1126
|
u.hasOwnProperty("toString")&&(i.toString=u.toString)}else a.mixins&&(_(a.mixins,t,n,r,i,o),a._without&&a._without.forEach(s))}function w(e){var t=e.length
|
1123
1127
|
return t>7&&66===e.charCodeAt(t-7)&&e.indexOf("inding",t-6)!==-1}function E(e,t){t.forEachBindings(function(t,n){if(n){var r=t.slice(0,-7)
|
@@ -1126,51 +1130,51 @@ return r[o]||i[o]?(s=i[o],t=r[o]):(a=e[o])&&null!==a&&"object"==typeof a&&a.isDe
|
|
1126
1130
|
if(o)for(var s=0;s<o.length;s++)i(e,o[s],null,t)}function C(e,t,n){var r=e[t]
|
1127
1131
|
"function"==typeof r&&(x(e,t,r,"__ember_observesBefore__",l._removeBeforeObserver),x(e,t,r,"__ember_observes__",l.removeObserver),x(e,t,r,"__ember_listens__",c.removeListener)),"function"==typeof n&&(x(e,t,n,"__ember_observesBefore__",l._addBeforeObserver),x(e,t,n,"__ember_observes__",l.addObserver),x(e,t,n,"__ember_listens__",c.addListener))}function A(e,t,n){var r={},o={},a=i.meta(e),u=[],l=void 0,c=void 0,h=void 0
|
1128
1132
|
e._super=p,_(t,a,r,o,e,u)
|
1129
|
-
for(var f=0;f<u.length;f++)if(l=u[f],"constructor"!==l&&o.hasOwnProperty(l)&&(h=r[l],c=o[l],h!==
|
1133
|
+
for(var f=0;f<u.length;f++)if(l=u[f],"constructor"!==l&&o.hasOwnProperty(l)&&(h=r[l],c=o[l],h!==H)){for(;h&&h instanceof L;){var m=S(e,h,a,r,o)
|
1130
1134
|
h=m.desc,c=m.value}void 0===h&&void 0===c||(C(e,l,c),w(l)&&a.writeBindings(l,c),s.defineProperty(e,l,h,c,a))}return n||O(e,a),e}function k(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r]
|
1131
1135
|
return A(e,n,!1),e}function T(e,n){this.properties=n
|
1132
1136
|
var r=e&&e.length
|
1133
1137
|
if(r>0){for(var i=new Array(r),o=0;o<r;o++){var s=e[o]
|
1134
1138
|
s instanceof T?i[o]=s:i[o]=new T(void 0,s)}this.mixins=i}else this.mixins=void 0
|
1135
|
-
this.ownerConstructor=void 0,this._without=void 0,this[t.GUID_KEY]=null,this[t.NAME_KEY]=null}function N(){return
|
1139
|
+
this.ownerConstructor=void 0,this._without=void 0,this[t.GUID_KEY]=null,this[t.NAME_KEY]=null}function N(){return V}function R(){V=!1}function P(e,n,r){var i=t.guidFor(e)
|
1136
1140
|
if(r[i])return!1
|
1137
1141
|
if(r[i]=!0,e===n)return!0
|
1138
1142
|
for(var o=e.mixins,s=o?o.length:0;--s>=0;)if(P(o[s],n,r))return!0
|
1139
1143
|
return!1}function D(e,n,r){if(!r[t.guidFor(n)])if(r[t.guidFor(n)]=!0,n.properties)for(var i=Object.keys(n.properties),o=0;o<i.length;o++){var s=i[o]
|
1140
|
-
e[s]=!0}else n.mixins&&n.mixins.forEach(function(t){return D(e,t,r)})}function I(){return
|
1144
|
+
e[s]=!0}else n.mixins&&n.mixins.forEach(function(t){return D(e,t,r)})}function I(){return H}function L(e){this.isDescriptor=!0,this.methodName=e}function M(e){return new L(e)}function j(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]
|
1141
1145
|
var i=t.slice(-1)[0],s=void 0,a=function(e){s.push(e)},u=t.slice(0,-1)
|
1142
1146
|
"function"!=typeof i&&(i=t[0],u=t.slice(1)),s=[]
|
1143
1147
|
for(var l=0;l<u.length;++l)o.default(u[l],a)
|
1144
1148
|
if("function"!=typeof i)throw new n.default("Ember.observer called without a function")
|
1145
|
-
return i.__ember_observes__=s,i}function
|
1149
|
+
return i.__ember_observes__=s,i}function F(){for(var e=0;e<arguments.length;e++){arguments[e]}return j.apply(this,arguments)}function U(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]
|
1146
1150
|
var i=t.slice(-1)[0],s=void 0,a=function(e){s.push(e)},u=t.slice(0,-1)
|
1147
1151
|
"function"!=typeof i&&(i=t[0],u=t.slice(1)),s=[]
|
1148
1152
|
for(var l=0;l<u.length;++l)o.default(u[l],a)
|
1149
1153
|
if("function"!=typeof i)throw new n.default("_beforeObserver called without a function")
|
1150
|
-
return i.__ember_observesBefore__=s,i}e.detectBinding=w,e.mixin=k,e.default=T,e.hasUnprocessedMixins=N,e.clearUnprocessedMixins=R,e.required=I,e.aliasMethod=M,e.observer=j,e._immediateObserver=
|
1151
|
-
var
|
1152
|
-
w("notbound"),w("fooBinding"),T._apply=A,T.applyPartial=function(e){var t=
|
1154
|
+
return i.__ember_observesBefore__=s,i}e.detectBinding=w,e.mixin=k,e.default=T,e.hasUnprocessedMixins=N,e.clearUnprocessedMixins=R,e.required=I,e.aliasMethod=M,e.observer=j,e._immediateObserver=F,e._beforeObserver=U,p.__hasSuper=!1
|
1155
|
+
var B=[].slice,z={}
|
1156
|
+
w("notbound"),w("fooBinding"),T._apply=A,T.applyPartial=function(e){var t=B.call(arguments,1)
|
1153
1157
|
return A(e,t,!0)},T.finishPartial=O
|
1154
|
-
var
|
1155
|
-
T.create=function(){
|
1158
|
+
var V=!1
|
1159
|
+
T.create=function(){V=!0
|
1156
1160
|
for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r]
|
1157
1161
|
return new e(n,void 0)}
|
1158
|
-
var
|
1159
|
-
|
1162
|
+
var q=T.prototype
|
1163
|
+
q.reopen=function(){var e=void 0
|
1160
1164
|
this.properties?(e=new T(void 0,this.properties),this.properties=void 0,this.mixins=[e]):this.mixins||(this.mixins=[])
|
1161
1165
|
var t=this.mixins,n=void 0
|
1162
1166
|
for(n=0;n<arguments.length;n++)e=arguments[n],e instanceof T?t.push(e):t.push(new T(void 0,e))
|
1163
|
-
return this},
|
1167
|
+
return this},q.apply=function(e){return A(e,[this],!1)},q.applyPartial=function(e){return A(e,[this],!0)},q.toString=Object.toString,q.detect=function(e){if("object"!=typeof e||null===e)return!1
|
1164
1168
|
if(e instanceof T)return P(e,this,{})
|
1165
1169
|
var n=i.peekMeta(e)
|
1166
|
-
return!!n&&!!n.peekMixins(t.guidFor(this))},
|
1167
|
-
return e._without=n,e},
|
1170
|
+
return!!n&&!!n.peekMixins(t.guidFor(this))},q.without=function(){for(var e=new T([this]),t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r]
|
1171
|
+
return e._without=n,e},q.keys=function(){var e={},t={}
|
1168
1172
|
D(e,this,t)
|
1169
1173
|
var n=Object.keys(e)
|
1170
1174
|
return n},T.mixins=function(e){var t=i.peekMeta(e),n=[]
|
1171
1175
|
return t?(t.forEachMixins(function(e,t){t.properties||n.push(t)}),n):n}
|
1172
|
-
var
|
1173
|
-
|
1176
|
+
var H=new s.Descriptor
|
1177
|
+
H.toString=function(){return"(Required Property)"},L.prototype=new s.Descriptor,e.Mixin=T,e.required=I,e.REQUIRED=H}),s("ember-metal/observer",["exports","ember-metal/watching","ember-metal/events"],function(e,t,n){"use strict"
|
1174
1178
|
function r(e){return e+h}function i(e){return e+f}function o(e,i,o,s){return n.addListener(e,r(i),o,s),t.watch(e,i),this}function s(e,t){return n.listenersFor(e,r(t))}function a(e,i,o,s){return t.unwatch(e,i),n.removeListener(e,r(i),o,s),this}function u(e,r,o,s){return n.addListener(e,i(r),o,s),t.watch(e,r),this}function l(e,t,i,o,s){return n.suspendListener(e,r(t),i,o,s)}function c(e,t,i,o,s){var a=t.map(r)
|
1175
1179
|
return n.suspendListeners(e,a,i,o,s)}function p(e,r,o,s){return t.unwatch(e,r),n.removeListener(e,i(r),o,s),this}e.addObserver=o,e.observersFor=s,e.removeObserver=a,e._addBeforeObserver=u,e._suspendObserver=l,e._suspendObservers=c,e._removeBeforeObserver=p
|
1176
1180
|
var h=":change",f=":before"}),s("ember-metal/observer_set",["exports","ember-utils","ember-metal/events"],function(e,t,n){"use strict"
|
@@ -1230,7 +1234,7 @@ function t(e,t,r,i){for(var o=[].concat(i),s=[],a=6e4,u=t,l=r,c=void 0,p=void 0;
|
|
1230
1234
|
return s}e.default=t
|
1231
1235
|
var n=Array.prototype.splice}),s("ember-metal/run_loop",["exports","ember-utils","ember-metal/debug","ember-metal/testing","ember-metal/error_handler","ember-metal/property_events","backburner"],function(e,t,n,r,i,o,s){"use strict"
|
1232
1236
|
function a(e){l.currentRunLoop=e}function u(e,t){l.currentRunLoop=t}function l(){return p.run.apply(p,arguments)}e.default=l
|
1233
|
-
var c={get onerror(){return i.
|
1237
|
+
var c={get onerror(){return i.dispatchError},set onerror(e){return i.setOnerror(e)}},p=new s.default(["sync","actions","destroy"],{GUID_KEY:t.GUID_KEY,sync:{before:o.beginPropertyChanges,after:o.endPropertyChanges},defaultQueue:"actions",onBegin:a,onEnd:u,onErrorTarget:c,onErrorMethod:"onerror"})
|
1234
1238
|
l.join=function(){return p.join.apply(p,arguments)},l.bind=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]
|
1235
1239
|
return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r]
|
1236
1240
|
return l.join.apply(l,t.concat(n))}},l.backburner=p,l.currentRunLoop=null,l.queues=p.queueNames,l.begin=function(){p.begin()},l.end=function(){p.end()},l.schedule=function(){return p.schedule.apply(p,arguments)},l.hasScheduledTimers=function(){return p.hasTimers()},l.cancelTimers=function(){p.cancelTimers()},l.sync=function(){p.currentInstance&&p.currentInstance.queues.sync.flush()},l.later=function(){return p.later.apply(p,arguments)},l.once=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n]
|
@@ -1261,13 +1265,11 @@ var s=e[t],a=null!==s&&"object"==typeof s&&s.isDescriptor?s:void 0
|
|
1261
1265
|
a&&a.didUnwatch&&a.didUnwatch(e,t),"function"==typeof e.didUnwatchProperty&&e.didUnwatchProperty(t)}else o>1&&i.writeWatching(t,o-1)}}}e.watchKey=o,e.unwatchKey=s}),s("ember-metal/watch_path",["exports","ember-metal/meta","ember-metal/chains"],function(e,t,n){"use strict"
|
1262
1266
|
function r(e,n){return(n||t.meta(e)).writableChains(i)}function i(e){return new n.ChainNode(null,null,e)}function o(e,n,i){if("object"==typeof e&&null!==e){var o=i||t.meta(e),s=o.peekWatching(n)||0
|
1263
1267
|
s?o.writeWatching(n,s+1):(o.writeWatching(n,1),r(e,o).add(n))}}function s(e,n,i){if("object"==typeof e&&null!==e){var o=i||t.meta(e),s=o.peekWatching(n)||0
|
1264
|
-
1===s?(o.writeWatching(n,0),r(e,o).remove(n)):s>1&&o.writeWatching(n,s-1)}}e.makeChainNode=i,e.watchPath=o,e.unwatchPath=s})
|
1265
|
-
s("ember-metal/watching",["exports","ember-metal/watch_key","ember-metal/watch_path","ember-metal/path_cache","ember-metal/meta"],function(e,t,n,r,i){"use strict"
|
1268
|
+
1===s?(o.writeWatching(n,0),r(e,o).remove(n)):s>1&&o.writeWatching(n,s-1)}}e.makeChainNode=i,e.watchPath=o,e.unwatchPath=s}),s("ember-metal/watching",["exports","ember-metal/watch_key","ember-metal/watch_path","ember-metal/path_cache","ember-metal/meta"],function(e,t,n,r,i){"use strict"
|
1266
1269
|
function o(e,i,o){r.isPath(i)?n.watchPath(e,i,o):t.watchKey(e,i,o)}function s(e,t){if("object"!=typeof e||null===e)return!1
|
1267
1270
|
var n=i.peekMeta(e)
|
1268
1271
|
return(n&&n.peekWatching(t))>0}function a(e,t){var n=i.peekMeta(e)
|
1269
|
-
return n&&n.peekWatching(t)||0}function u(e,i,o){r.isPath(i)?n.unwatchPath(e,i,o):t.unwatchKey(e,i,o)}function l(e){i.deleteMeta(e)}e.isWatching=s,e.watcherCount=a,e.unwatch=u,e.destroy=l,e.watch=o})
|
1270
|
-
s("ember-metal/weak_map",["exports","ember-utils","ember-metal/meta"],function(e,t,n){"use strict"
|
1272
|
+
return n&&n.peekWatching(t)||0}function u(e,i,o){r.isPath(i)?n.unwatchPath(e,i,o):t.unwatchKey(e,i,o)}function l(e){i.deleteMeta(e)}e.isWatching=s,e.watcherCount=a,e.unwatch=u,e.destroy=l,e.watch=o}),s("ember-metal/weak_map",["exports","ember-utils","ember-metal/meta"],function(e,t,n){"use strict"
|
1271
1273
|
function r(e){return"object"==typeof e&&null!==e||"function"==typeof e}function i(e){if(!(this instanceof i))throw new TypeError("Constructor WeakMap requires 'new'")
|
1272
1274
|
if(this._id=t.GUID_KEY+o++,null!==e&&void 0!==e){if(!Array.isArray(e))throw new TypeError("The weak map constructor polyfill only supports an array argument")
|
1273
1275
|
for(var n=0;n<e.length;n++){var r=e[n],s=r[0],a=r[1]
|
@@ -1280,11 +1282,13 @@ return i[this._id]}}}},i.prototype.set=function(e,t){if(!r(e))throw new TypeErro
|
|
1280
1282
|
return void 0===t&&(t=n.UNDEFINED),n.meta(e).writableWeak()[this._id]=t,this},i.prototype.has=function(e){if(!r(e))return!1
|
1281
1283
|
var t=n.peekMeta(e)
|
1282
1284
|
if(t){var i=t.readableWeak()
|
1283
|
-
if(i)return void 0!==i[this._id]}return!1},i.prototype.delete=function(e){return!!this.has(e)&&(delete n.meta(e).writableWeak()[this._id],!0)},i.prototype.toString=function(){return"[object WeakMap]"}})
|
1285
|
+
if(i)return void 0!==i[this._id]}return!1},i.prototype.delete=function(e){return!!this.has(e)&&(delete n.meta(e).writableWeak()[this._id],!0)},i.prototype.toString=function(){return"[object WeakMap]"}})
|
1286
|
+
s("ember-routing/ext/controller",["exports","ember-metal","ember-runtime","ember-routing/utils"],function(e,t,n,r){"use strict"
|
1284
1287
|
n.ControllerMixin.reopen({concatenatedProperties:["queryParams"],queryParams:null,_qpDelegate:null,_qpChanged:function(e,n){var r=n.substr(0,n.length-3),i=e._qpDelegate,o=t.get(e,r)
|
1285
1288
|
i(r,o)},transitionToRoute:function(){for(var e=t.get(this,"target"),n=e.transitionToRoute||e.transitionTo,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s]
|
1286
1289
|
return n.apply(e,r.prefixRouteNameArg(this,o))},replaceRoute:function(){for(var e=t.get(this,"target"),n=e.replaceRoute||e.replaceWith,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s]
|
1287
|
-
return n.apply(e,r.prefixRouteNameArg(e,o))}}),e.default=n.ControllerMixin})
|
1290
|
+
return n.apply(e,r.prefixRouteNameArg(e,o))}}),e.default=n.ControllerMixin})
|
1291
|
+
s("ember-routing/ext/run_loop",["exports","ember-metal"],function(e,t){"use strict"
|
1288
1292
|
t.run._addQueue("routerTransitions","actions")}),s("ember-routing/index",["exports","ember-routing/ext/run_loop","ember-routing/ext/controller","ember-routing/location/api","ember-routing/location/none_location","ember-routing/location/hash_location","ember-routing/location/history_location","ember-routing/location/auto_location","ember-routing/system/generate_controller","ember-routing/system/controller_for","ember-routing/system/dsl","ember-routing/system/router","ember-routing/system/route","ember-routing/system/query_params","ember-routing/services/routing","ember-routing/system/cache"],function(e,t,n,r,i,o,s,a,u,l,c,p,h,f,m,d){"use strict"
|
1289
1293
|
e.Location=r.default,e.NoneLocation=i.default,e.HashLocation=o.default,e.HistoryLocation=s.default,e.AutoLocation=a.default,e.generateController=u.default,e.generateControllerFactory=u.generateControllerFactory,e.controllerFor=l.default,e.RouterDSL=c.default,e.Router=p.default,e.Route=h.default,e.QueryParams=f.default,e.RoutingService=m.default,e.BucketCache=d.default}),s("ember-routing/location/api",["exports","ember-metal","ember-environment","ember-routing/location/util"],function(e,t,n,r){"use strict"
|
1290
1294
|
e.default={create:function(e){var t=e&&e.implementation,n=this.implementations[t]
|
@@ -1696,15 +1700,13 @@ function n(){}function r(e,r){o[e]=r,n[e]=function(n){return new t.InjectedPrope
|
|
1696
1700
|
for(var i in n){var s=n[i]
|
1697
1701
|
s instanceof t.InjectedProperty&&r.indexOf(s.type)===-1&&r.push(s.type)}if(r.length)for(var a=0;a<r.length;a++){var u=o[r[a]]
|
1698
1702
|
"function"==typeof u&&u(e)}return!0}e.default=n,e.createInjectionHelper=r,e.validatePropertyInjections=i
|
1699
|
-
var o={}})
|
1700
|
-
s("ember-runtime/
|
1701
|
-
function t(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t}e.default=t})
|
1702
|
-
s("ember-runtime/mixins/-proxy",["exports","glimmer-reference","ember-metal","ember-runtime/computed/computed_macros"],function(e,t,n,r){"use strict"
|
1703
|
+
var o={}}),s("ember-runtime/is-equal",["exports"],function(e){"use strict"
|
1704
|
+
function t(e,t){return e&&"function"==typeof e.isEqual?e.isEqual(t):e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():e===t}e.default=t}),s("ember-runtime/mixins/-proxy",["exports","glimmer-reference","ember-metal","ember-runtime/computed/computed_macros"],function(e,t,n,r){"use strict"
|
1703
1705
|
function i(e,t){var r=t.slice(8)
|
1704
1706
|
r in this||n.propertyWillChange(this,r)}function o(e,t){var r=t.slice(8)
|
1705
1707
|
r in this||n.propertyDidChange(this,r)}var s=function(e){function r(r){e.call(this)
|
1706
1708
|
var i=n.get(r,"content")
|
1707
|
-
this.proxy=r,this.proxyWrapperTag=new t.DirtyableTag,this.proxyContentTag=new t.UpdatableTag(n.tagFor(i))}return
|
1709
|
+
this.proxy=r,this.proxyWrapperTag=new t.DirtyableTag,this.proxyContentTag=new t.UpdatableTag(n.tagFor(i))}return c.inherits(r,e),r.prototype.compute=function(){return Math.max(this.proxyWrapperTag.value(),this.proxyContentTag.value())},r.prototype.dirty=function(){this.proxyWrapperTag.dirty()},r.prototype.contentDidChange=function(){var e=n.get(this.proxy,"content")
|
1708
1710
|
this.proxyContentTag.update(n.tagFor(e))},r}(t.CachedTag)
|
1709
1711
|
e.default=n.Mixin.create({content:null,init:function(){this._super.apply(this,arguments),n.meta(this).setProxy()},_initializeTag:n.on("init",function(){n.meta(this)._tag=new s(this)}),_contentDidChange:n.observer("content",function(){n.tagFor(this).contentDidChange()}),isTruthy:r.bool("content"),_debugContainerKey:null,willWatchProperty:function(e){var t="content."+e
|
1710
1712
|
n._addBeforeObserver(this,t,null,i),n.addObserver(this,t,null,o)},didUnwatchProperty:function(e){var t="content."+e
|
@@ -1712,13 +1714,15 @@ n._removeBeforeObserver(this,t,null,i),n.removeObserver(this,t,null,o)},unknownP
|
|
1712
1714
|
if(t)return n.get(t,e)},setUnknownProperty:function(e,t){var r=n.meta(this)
|
1713
1715
|
if(r.proto===this)return n.defineProperty(this,e,null,t),t
|
1714
1716
|
var i=n.get(this,"content")
|
1715
|
-
return n.set(i,e,t)}})})
|
1717
|
+
return n.set(i,e,t)}})})
|
1718
|
+
s("ember-runtime/mixins/action_handler",["exports","ember-metal"],function(e,t){"use strict"
|
1716
1719
|
function n(e){Object.defineProperty(e.prototype,"_actions",{configurable:!0,enumerable:!1,set:function(e){},get:function(){return t.get(this,"actions")}})}e.deprecateUnderscoreActions=n
|
1717
1720
|
var r=t.Mixin.create({mergedProperties:["actions"],send:function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i]
|
1718
1721
|
if(this.actions&&this.actions[e]){var o=this.actions[e].apply(this,r)===!0
|
1719
1722
|
if(!o)return}var s=t.get(this,"target")
|
1720
1723
|
s&&s.send.apply(s,arguments)},willMergeMixin:function(e){e._actions&&(e.actions=e._actions,delete e._actions)}})
|
1721
|
-
e.default=r})
|
1724
|
+
e.default=r})
|
1725
|
+
s("ember-runtime/mixins/array",["exports","ember-utils","ember-metal","ember-runtime/mixins/enumerable","ember-runtime/system/each_proxy"],function(e,t,n,r,i){"use strict"
|
1722
1726
|
function o(e,t,r,i,o){var s=r&&r.willChange||"arrayWillChange",a=r&&r.didChange||"arrayDidChange",u=n.get(e,"hasArrayObservers")
|
1723
1727
|
return u===o&&n.propertyWillChange(e,"hasArrayObservers"),i(e,"@array:before",t,s),i(e,"@array:change",t,a),u===o&&n.propertyDidChange(e,"hasArrayObservers"),e}function s(e,t,r){return o(e,t,r,n.addListener,!1)}function a(e,t,r){return o(e,t,r,n.removeListener,!0)}function u(e,t){return e.objectAt?e.objectAt(t):e[t]}function l(e,t,r,i){var o=void 0,s=void 0
|
1724
1728
|
if(void 0===t?(t=0,r=i=-1):(void 0===r&&(r=-1),void 0===i&&(i=-1)),e.__each&&e.__each.arrayWillChange(e,t,r,i),n.sendEvent(e,"@array:before",[e,t,r,i]),t>=0&&r>=0&&n.get(e,"hasEnumerableObservers")){o=[],s=t+r
|
@@ -1975,8 +1979,7 @@ return"array"===n||void 0!==e.length&&"object"===n}function i(e){if(null===e)ret
|
|
1975
1979
|
if(void 0===e)return"undefined"
|
1976
1980
|
var t=o[s.call(e)]||"object"
|
1977
1981
|
return"function"===t?n.default.detect(e)&&(t="class"):"object"===t&&(e instanceof Error?t="error":e instanceof n.default?t="instance":e instanceof Date&&(t="date")),t}e.isArray=r,e.typeOf=i
|
1978
|
-
var o={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},s=Object.prototype.toString})
|
1979
|
-
s("ember-utils/apply-str",["exports"],function(e){"use strict"
|
1982
|
+
var o={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regexp","[object Object]":"object","[object FileList]":"filelist"},s=Object.prototype.toString}),s("ember-utils/apply-str",["exports"],function(e){"use strict"
|
1980
1983
|
function t(e,t,n){var r=n&&n.length
|
1981
1984
|
if(!n||!r)return e[t]()
|
1982
1985
|
switch(r){case 1:return e[t](n[0])
|
@@ -1984,13 +1987,14 @@ case 2:return e[t](n[0],n[1])
|
|
1984
1987
|
case 3:return e[t](n[0],n[1],n[2])
|
1985
1988
|
case 4:return e[t](n[0],n[1],n[2],n[3])
|
1986
1989
|
case 5:return e[t](n[0],n[1],n[2],n[3],n[4])
|
1987
|
-
default:return e[t].apply(e,n)}}e.default=t})
|
1988
|
-
s("ember-utils/assign",["exports"],function(e){"use strict"
|
1990
|
+
default:return e[t].apply(e,n)}}e.default=t}),s("ember-utils/assign",["exports"],function(e){"use strict"
|
1989
1991
|
function t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]
|
1990
1992
|
if(n)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i]
|
1991
|
-
e[o]=n[o]}}return e}e.default=t})
|
1993
|
+
e[o]=n[o]}}return e}e.default=t})
|
1994
|
+
s("ember-utils/dictionary",["exports","ember-utils/empty-object"],function(e,t){"use strict"
|
1992
1995
|
function n(e){var n=void 0
|
1993
|
-
return n=null===e?new t.default:Object.create(e),n._dict=null,delete n._dict,n}e.default=n})
|
1996
|
+
return n=null===e?new t.default:Object.create(e),n._dict=null,delete n._dict,n}e.default=n})
|
1997
|
+
s("ember-utils/empty-object",["exports"],function(e){"use strict"
|
1994
1998
|
function t(){}var n=Object.create(null,{constructor:{value:void 0,enumerable:!1,writable:!0}})
|
1995
1999
|
t.prototype=n,e.default=t}),s("ember-utils/guid",["exports","ember-utils/intern"],function(e,t){"use strict"
|
1996
2000
|
function n(){return++o}function r(e,t){t||(t=s)
|
@@ -2056,7 +2060,7 @@ e.default=t.dictionary(null)}),s("ember-views/component_lookup",["exports","embe
|
|
2056
2060
|
e.default=n.Object.extend({componentFor:function(e,t,n){var r="component:"+e
|
2057
2061
|
return t._lookupFactory(r,n)},layoutFor:function(e,t,n){var r="template:components/"+e
|
2058
2062
|
return t.lookup(r,n)}})}),s("ember-views/index",["exports","ember-views/system/ext","ember-views/system/jquery","ember-views/system/utils","ember-views/system/event_dispatcher","ember-views/component_lookup","ember-views/mixins/text_support","ember-views/views/core_view","ember-views/mixins/class_names_support","ember-views/mixins/child_views_support","ember-views/mixins/view_state_support","ember-views/mixins/view_support","ember-views/mixins/action_support","ember-views/compat/attrs","ember-views/system/lookup_partial","ember-views/utils/lookup-component","ember-views/system/action_manager","ember-views/compat/fallback-view-registry"],function(e,t,n,r,i,o,s,a,u,l,c,p,h,f,m,d,g,v){"use strict"
|
2059
|
-
e.jQuery=n.default,e.isSimpleClick=r.isSimpleClick,e.getViewBounds=r.getViewBounds,e.getViewClientRects=r.getViewClientRects,e.getViewBoundingClientRect=r.getViewBoundingClientRect,e.getRootViews=r.getRootViews,e.getChildViews=r.getChildViews,e.getViewId=r.getViewId,e.getViewElement=r.getViewElement,e.setViewElement=r.setViewElement,e.
|
2063
|
+
e.jQuery=n.default,e.isSimpleClick=r.isSimpleClick,e.getViewBounds=r.getViewBounds,e.getViewClientRects=r.getViewClientRects,e.getViewBoundingClientRect=r.getViewBoundingClientRect,e.getRootViews=r.getRootViews,e.getChildViews=r.getChildViews,e.getViewId=r.getViewId,e.getViewElement=r.getViewElement,e.setViewElement=r.setViewElement,e.constructStyleDeprecationMessage=r.constructStyleDeprecationMessage,e.EventDispatcher=i.default,e.ComponentLookup=o.default,e.TextSupport=s.default,e.CoreView=a.default,e.ClassNamesSupport=u.default,e.ChildViewsSupport=l.default,e.ViewStateSupport=c.default,e.ViewMixin=p.default,e.ActionSupport=h.default,e.MUTABLE_CELL=f.MUTABLE_CELL,e.lookupPartial=m.default,e.hasPartial=m.hasPartial,e.lookupComponent=d.default,e.ActionManager=g.default,e.fallbackViewRegistry=v.default}),s("ember-views/mixins/action_support",["exports","ember-utils","ember-metal","ember-views/compat/attrs"],function(e,t,n,r){"use strict"
|
2060
2064
|
function i(e,t){return t&&t[r.MUTABLE_CELL]&&(t=t.value),t}e.default=n.Mixin.create({sendAction:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o]
|
2061
2065
|
var s=void 0
|
2062
2066
|
void 0===e&&(e="action"),s=n.get(this,"attrs."+e)||n.get(this,e),s=i(this,s),void 0!==s&&("function"==typeof s?s.apply(void 0,r):this.triggerAction({action:s,actionContext:r}))},send:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i]
|
@@ -2098,33 +2102,31 @@ return"function"==typeof s?(o=n.run(e,s,t,i),t.stopPropagation()):o=this._bubble
|
|
2098
2102
|
return i.default(e).off(".ember","**").removeClass(u),this._super.apply(this,arguments)},toString:function(){return"(EventDispatcher)"}})}),s("ember-views/system/ext",["exports","ember-metal"],function(e,t){"use strict"
|
2099
2103
|
t.run._addQueue("render","actions"),t.run._addQueue("afterRender","render")}),s("ember-views/system/jquery",["exports","ember-environment"],function(e,t){"use strict"
|
2100
2104
|
var n=void 0
|
2101
|
-
t.environment.hasDOM&&(n=t.context.imports.jQuery,n&&(n.event.addProp?n.event.addProp("dataTransfer"):["dragstart","drag","dragenter","dragleave","dragover","drop","dragend"].forEach(function(e){n.event.fixHooks[e]={props:["dataTransfer"]}}))),e.default=n})
|
2102
|
-
s("ember-views/system/lookup_partial",["exports","ember-metal"],function(e,t){"use strict"
|
2105
|
+
t.environment.hasDOM&&(n=t.context.imports.jQuery,n&&(n.event.addProp?n.event.addProp("dataTransfer"):["dragstart","drag","dragenter","dragleave","dragover","drop","dragend"].forEach(function(e){n.event.fixHooks[e]={props:["dataTransfer"]}}))),e.default=n}),s("ember-views/system/lookup_partial",["exports","ember-metal"],function(e,t){"use strict"
|
2103
2106
|
function n(e){var t=e.split("/"),n=t[t.length-1]
|
2104
2107
|
return t[t.length-1]="_"+n,t.join("/")}function r(e,t){if(null!=e){var r=o(t,n(e),e)
|
2105
2108
|
return r}}function i(e,r){if(!r)throw new t.Error("Container was not found when looking up a views template. This is most likely due to manually instantiating an Ember.View. See: http://git.io/EKPpnA")
|
2106
2109
|
return r.hasRegistration("template:"+n(e))||r.hasRegistration("template:"+e)}function o(e,n,r){if(r){if(!e)throw new t.Error("Container was not found when looking up a views template. This is most likely due to manually instantiating an Ember.View. See: http://git.io/EKPpnA")
|
2107
|
-
return e.lookup("template:"+n)||e.lookup("template:"+r)}}e.default=r,e.hasPartial=i})
|
2108
|
-
s("ember-views/system/utils",["exports","ember-utils"],function(e,t){"use strict"
|
2110
|
+
return e.lookup("template:"+n)||e.lookup("template:"+r)}}e.default=r,e.hasPartial=i}),s("ember-views/system/utils",["exports","ember-utils"],function(e,t){"use strict"
|
2109
2111
|
function n(e){var t=e.shiftKey||e.metaKey||e.altKey||e.ctrlKey,n=e.which>1
|
2110
|
-
return!t&&!n}function r(e){var t=e.lookup("-view-registry:main"),n=[]
|
2112
|
+
return!t&&!n}function r(e){return'Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. Style affected: "'+e+'"'}function i(e){var t=e.lookup("-view-registry:main"),n=[]
|
2111
2113
|
return Object.keys(t).forEach(function(e){var r=t[e]
|
2112
|
-
null===r.parentView&&n.push(r)}),n}function
|
2113
|
-
return
|
2114
|
+
null===r.parentView&&n.push(r)}),n}function o(e){return""===e.tagName?t.guidFor(e):e.elementId||t.guidFor(e)}function s(e){return e[y]}function a(e){e[y]=null}function u(e,t){return e[y]=t}function l(e){var n=t.getOwner(e),r=n.lookup("-view-registry:main")
|
2115
|
+
return h(e,r)}function c(e){e[b]=[]}function p(e,t){e[b].push(o(t))}function h(e,t){var n=[],r=[]
|
2114
2116
|
return e[b].forEach(function(e){var i=t[e]
|
2115
|
-
!i||i.isDestroying||i.isDestroyed||n.indexOf(e)!==-1||(n.push(e),r.push(i))}),e[b]=n,r}function
|
2116
|
-
return n.setStartBefore(t.firstNode),n.setEndAfter(t.lastNode),n}function
|
2117
|
-
return t.getClientRects()}function
|
2118
|
-
return t.getBoundingClientRect()}function
|
2119
|
-
var v="Binding style attributes may introduce cross-site scripting vulnerabilities; please ensure that values being bound are properly escaped. For more information, including how to disable this warning, see http://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes."
|
2120
|
-
e.STYLE_WARNING=v
|
2117
|
+
!i||i.isDestroying||i.isDestroyed||n.indexOf(e)!==-1||(n.push(e),r.push(i))}),e[b]=n,r}function f(e){return e.renderer.getBounds(e)}function m(e){var t=f(e),n=document.createRange()
|
2118
|
+
return n.setStartBefore(t.firstNode),n.setEndAfter(t.lastNode),n}function d(e){var t=m(e)
|
2119
|
+
return t.getClientRects()}function g(e){var t=m(e)
|
2120
|
+
return t.getBoundingClientRect()}function v(e,t){return _.call(e,t)}e.isSimpleClick=n,e.constructStyleDeprecationMessage=r,e.getRootViews=i,e.getViewId=o,e.getViewElement=s,e.initViewElement=a,e.setViewElement=u,e.getChildViews=l,e.initChildViews=c,e.addChildView=p,e.collectChildViews=h,e.getViewBounds=f,e.getViewRange=m,e.getViewClientRects=d,e.getViewBoundingClientRect=g,e.matches=v
|
2121
2121
|
var y=t.symbol("VIEW_ELEMENT"),b=t.symbol("CHILD_VIEW_IDS"),_="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector)
|
2122
|
-
e.elMatches=_})
|
2122
|
+
e.elMatches=_})
|
2123
|
+
s("ember-views/utils/lookup-component",["exports","container"],function(e,t){"use strict"
|
2123
2124
|
function n(e,n,r,o){var s=e.componentFor(r,n,o),a=e.layoutFor(r,n,o),u={layout:a,component:s}
|
2124
2125
|
return a&&!s&&(u.component=n._lookupFactory(t.privatize(i))),u}function r(e,t,r){var i=e.lookup("component-lookup:main"),o=r&&r.source
|
2125
2126
|
if(o){var s=n(i,e,t,r)
|
2126
2127
|
if(s.component||s.layout)return s}return n(i,e,t)}e.default=r
|
2127
|
-
var i=
|
2128
|
+
var i=c.taggedTemplateLiteralLoose(["component:-default"],["component:-default"])})
|
2129
|
+
s("ember-views/views/core_view",["exports","ember-runtime","ember-views/system/utils","ember-views/views/states"],function(e,t,n,r){"use strict"
|
2128
2130
|
var i=t.FrameworkObject.extend(t.Evented,t.ActionHandler,{isView:!0,_states:r.cloneStates(r.states),init:function(){if(this._super.apply(this,arguments),this._state="preRender",this._currentState=this._states.preRender,n.initViewElement(this),!this.renderer)throw new Error("Cannot instantiate a component without a renderer. Please ensure that you are creating "+this+" with a proper container/registry.")},parentView:null,instrumentDetails:function(e){return e.object=this.toString(),e.containerKey=this._debugContainerKey,e.view=this,e},trigger:function(){this._super.apply(this,arguments)
|
2129
2131
|
var e=arguments[0],t=this[e]
|
2130
2132
|
if(t){for(var n=new Array(arguments.length-1),r=1;r<arguments.length;r++)n[r-1]=arguments[r]
|
@@ -2161,7 +2163,7 @@ d.setDiff=u.setDiff,d.mapBy=u.mapBy,d.filter=u.filter,d.filterBy=u.filterBy,d.un
|
|
2161
2163
|
var g=o.default.Handlebars=o.default.Handlebars||{},v=o.default.HTMLBars=o.default.HTMLBars||{},y=g.Utils=g.Utils||{}
|
2162
2164
|
if(Object.defineProperty(g,"SafeString",{get:l._getSafeString}),v.template=g.template=l.template,y.escapeExpression=l.escapeExpression,u.String.htmlSafe=l.htmlSafe,u.String.isHTMLSafe=l.isHTMLSafe,v.makeBoundHelper=l.makeBoundHelper,Object.defineProperty(o.default,"TEMPLATES",{get:l.getTemplates,set:l.setTemplates,configurable:!1,enumerable:!1}),e.VERSION=c.default,o.default.VERSION=c.default,o.libraries.registerCoreLibrary("Ember",c.default),o.default.create=o.deprecateFunc("Ember.create is deprecated in favor of Object.create",{id:"ember-metal.ember-create",until:"3.0.0"},Object.create),o.default.keys=o.deprecateFunc("Ember.keys is deprecated in favor of Object.keys",{id:"ember-metal.ember.keys",until:"3.0.0"},Object.keys),o.default.$=p.jQuery,o.default.ViewTargetActionSupport=p.ViewTargetActionSupport,o.default.ViewUtils={isSimpleClick:p.isSimpleClick,getViewElement:p.getViewElement,getViewBounds:p.getViewBounds,getViewClientRects:p.getViewClientRects,getViewBoundingClientRect:p.getViewBoundingClientRect,getRootViews:p.getRootViews,getChildViews:p.getChildViews},o.default.TextSupport=p.TextSupport,o.default.ComponentLookup=p.ComponentLookup,o.default.EventDispatcher=p.EventDispatcher,o.default.Location=h.Location,o.default.AutoLocation=h.AutoLocation,o.default.HashLocation=h.HashLocation,o.default.HistoryLocation=h.HistoryLocation,o.default.NoneLocation=h.NoneLocation,o.default.controllerFor=h.controllerFor,o.default.generateControllerFactory=h.generateControllerFactory,o.default.generateController=h.generateController,o.default.RouterDSL=h.RouterDSL,o.default.Router=h.Router,o.default.Route=h.Route,o.default.Application=f.Application,o.default.ApplicationInstance=f.ApplicationInstance,o.default.Engine=f.Engine,o.default.EngineInstance=f.EngineInstance,o.default.DefaultResolver=o.default.Resolver=f.Resolver,u.runLoadHooks("Ember.Application",f.Application),o.default.DataAdapter=m.DataAdapter,o.default.ContainerDebugAdapter=m.ContainerDebugAdapter,t.has("ember-template-compiler")&&t.default("ember-template-compiler"),t.has("ember-testing")){var b=t.default("ember-testing")
|
2163
2165
|
o.default.Test=b.Test,o.default.Test.Adapter=b.Adapter,o.default.Test.QUnitAdapter=b.QUnitAdapter,o.default.setupForTesting=b.setupForTesting}u.runLoadHooks("Ember"),e.default=o.default,"object"==typeof module&&module.exports?module.exports=o.default:n.context.exports.Ember=n.context.exports.Em=o.default}),s("ember/version",["exports"],function(e){"use strict"
|
2164
|
-
e.default="2.11.
|
2166
|
+
e.default="2.11.3"}),s("internal-test-helpers/apply-mixins",["exports","ember-utils"],function(e,t){"use strict"
|
2165
2167
|
function n(e){return Array.isArray(e.cases)&&"function"==typeof e.generate}function r(e){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o]
|
2166
2168
|
return i.forEach(function(r){var i=void 0
|
2167
2169
|
n(r)?function(){var e=r
|
@@ -2215,13 +2217,13 @@ function t(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=a
|
|
2215
2217
|
var i=e,o=i.map(function(e,t){var r=n[t]
|
2216
2218
|
return e+(void 0!==r?r:"")}).join("")
|
2217
2219
|
return o.split("\n").map(function(e){return e.trim()}).join("")}e.default=t}),s("internal-test-helpers/test-cases/abstract-application",["exports","ember-metal","ember-views","ember-application","ember-routing","ember-template-compiler","internal-test-helpers/test-cases/abstract","internal-test-helpers/run"],function(e,t,n,r,i,o,s,a){"use strict"
|
2218
|
-
var u=function(e){function s(){e.call(this),this.element=n.jQuery("#qunit-fixture")[0],this.application=t.run(r.Application,"create",this.applicationOptions),this.router=this.application.Router=i.Router.extend(this.routerOptions),this.applicationInstance=null}return
|
2219
|
-
return i?t.run(i,"visit",e,n):t.run(this.application,"visit",e,n).then(function(e){r.applicationInstance=e})},s.prototype.transitionTo=function(){return t.run.apply(void 0,[this.appRouter,"transitionTo"].concat(
|
2220
|
-
r&&this.application.register("component:"+e,r),"string"==typeof o&&this.application.register("template:components/"+e,this.compile(o,{moduleName:"components/"+e}))},s.prototype.registerController=function(e,t){this.application.register("controller:"+e,t)},s.prototype.registerEngine=function(e,t){this.application.register("engine:"+e,t)},
|
2220
|
+
var u=function(e){function s(){e.call(this),this.element=n.jQuery("#qunit-fixture")[0],this.application=t.run(r.Application,"create",this.applicationOptions),this.router=this.application.Router=i.Router.extend(this.routerOptions),this.applicationInstance=null}return c.inherits(s,e),s.prototype.teardown=function(){this.applicationInstance&&a.runDestroy(this.applicationInstance),a.runDestroy(this.application)},s.prototype.visit=function(e,n){var r=this,i=this.applicationInstance
|
2221
|
+
return i?t.run(i,"visit",e,n):t.run(this.application,"visit",e,n).then(function(e){r.applicationInstance=e})},s.prototype.transitionTo=function(){return t.run.apply(void 0,[this.appRouter,"transitionTo"].concat(c.slice.call(arguments)))},s.prototype.compile=function(e,t){return o.compile.apply(void 0,arguments)},s.prototype.registerRoute=function(e,t){this.application.register("route:"+e,t)},s.prototype.registerTemplate=function(e,t){this.application.register("template:"+e,this.compile(t,{moduleName:e}))},s.prototype.registerComponent=function(e,t){var n=t.ComponentClass,r=void 0===n?null:n,i=t.template,o=void 0===i?null:i
|
2222
|
+
r&&this.application.register("component:"+e,r),"string"==typeof o&&this.application.register("template:components/"+e,this.compile(o,{moduleName:"components/"+e}))},s.prototype.registerController=function(e,t){this.application.register("controller:"+e,t)},s.prototype.registerEngine=function(e,t){this.application.register("engine:"+e,t)},c.createClass(s,[{key:"applicationOptions",get:function(){return{rootElement:"#qunit-fixture",autoboot:!1}}},{key:"routerOptions",get:function(){return{location:"none"}}},{key:"appRouter",get:function(){return this.applicationInstance.lookup("router:main")}}]),s}(s.default)
|
2221
2223
|
e.default=u}),s("internal-test-helpers/test-cases/abstract-rendering",["exports","ember-utils","ember-template-compiler","ember-views","ember-glimmer","internal-test-helpers/test-cases/abstract","internal-test-helpers/build-owner","internal-test-helpers/run"],function(e,t,n,r,i,o,s,a){"use strict"
|
2222
2224
|
var u=window.Text,l=function(e){function o(){e.call(this)
|
2223
2225
|
var t=this.owner=s.default({ownerOptions:this.getOwnerOptions(),bootOptions:this.getBootOptions(),resolver:this.getResolver()})
|
2224
|
-
this.renderer=this.owner.lookup("renderer:-dom"),this.element=r.jQuery("#qunit-fixture")[0],this.component=null,t.register("event_dispatcher:main",r.EventDispatcher),t.inject("event_dispatcher:main","_viewRegistry","-view-registry:main"),t.lookup("event_dispatcher:main").setup(this.getCustomDispatcherEvents(),this.element)}return
|
2226
|
+
this.renderer=this.owner.lookup("renderer:-dom"),this.element=r.jQuery("#qunit-fixture")[0],this.component=null,t.register("event_dispatcher:main",r.EventDispatcher),t.inject("event_dispatcher:main","_viewRegistry","-view-registry:main"),t.lookup("event_dispatcher:main").setup(this.getCustomDispatcherEvents(),this.element)}return c.inherits(o,e),o.prototype.compile=function(){return n.compile.apply(void 0,arguments)},o.prototype.getCustomDispatcherEvents=function(){return{}},o.prototype.getOwnerOptions=function(){},o.prototype.getBootOptions=function(){},o.prototype.getResolver=function(){},o.prototype.teardown=function(){this.component&&a.runDestroy(this.component),this.owner&&a.runDestroy(this.owner)},o.prototype.render=function(e){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=this.owner
|
2225
2227
|
r.register("template:-top-level",this.compile(e,{moduleName:"-top-level"}))
|
2226
2228
|
var o=t.assign({},n,{tagName:"",layoutName:"-top-level"})
|
2227
2229
|
r.register("component:-top-level",i.Component.extend(o)),this.component=r.lookup("component:-top-level"),a.runAppend(this.component)},o.prototype.rerender=function(){this.component.rerender()},o.prototype.registerHelper=function(e,t){var n=typeof t
|
@@ -2233,46 +2235,46 @@ n.register(r,this.compile(t,{moduleName:r}))}},o.prototype.registerComponent=fun
|
|
2233
2235
|
r&&s.register("component:"+e,r),"string"==typeof o&&s.register("template:components/"+e,this.compile(o,{moduleName:"components/"+e}))},o.prototype.registerTemplate=function(e,t){var n=this.owner
|
2234
2236
|
if("string"!=typeof t)throw new Error('Registered template "'+e+'" must be a string')
|
2235
2237
|
n.register("template:"+e,this.compile(t,{moduleName:e}))},o.prototype.registerService=function(e,t){this.owner.register("service:"+e,t)},o.prototype.assertTextNode=function(e,t){if(!(e instanceof u))throw new Error("Expecting a text node, but got "+e)
|
2236
|
-
this.assert.strictEqual(e.textContent,t,"node.textContent")},
|
2238
|
+
this.assert.strictEqual(e.textContent,t,"node.textContent")},c.createClass(o,[{key:"context",get:function(){return this.component}}]),o}(o.default)
|
2237
2239
|
e.default=l}),s("internal-test-helpers/test-cases/abstract",["exports","ember-utils","ember-metal","ember-views","internal-test-helpers/equal-inner-html","internal-test-helpers/equal-tokens","internal-test-helpers/matchers"],function(e,t,n,r,i,o,s){"use strict"
|
2238
|
-
function a(e){return e instanceof
|
2240
|
+
function a(e){return e instanceof p&&""===e.textContent||e instanceof u&&""===e.textContent}var u=window.Text,l=window.HTMLElement,p=window.Comment,h=function(){function e(){this.element=null,this.snapshot=null,this.assert=QUnit.config.current.assert}return e.prototype.teardown=function(){},e.prototype.runTask=function(e){n.run(e)},e.prototype.runTaskNext=function(e){n.run.next(e)},e.prototype.nthChild=function(e){for(var t=0,n=this.element.firstChild;n&&(a(n)||t++,!(t>e));)n=n.nextSibling
|
2239
2241
|
return n},e.prototype.$=function(e){return e?r.jQuery(e,this.element):r.jQuery(this.element)},e.prototype.textValue=function(){return this.$().text()},e.prototype.takeSnapshot=function(){for(var e=this.snapshot=[],t=this.element.firstChild;t;)a(t)||e.push(t),t=t.nextSibling
|
2240
2242
|
return e},e.prototype.assertText=function(e){this.assert.strictEqual(this.textValue(),e,"#qunit-fixture content should be: `"+e+"`")},e.prototype.assertInnerHTML=function(e){i.default(this.element,e)},e.prototype.assertHTML=function(e){o.default(this.element,e,"#qunit-fixture content should be: `"+e+"`")},e.prototype.assertElement=function(e,t){var n=t.ElementType,r=void 0===n?l:n,i=t.tagName,o=t.attrs,a=void 0===o?null:o,u=t.content,c=void 0===u?null:u
|
2241
2243
|
if(!(e instanceof r))throw new Error("Expecting a "+r.name+", but got "+e)
|
2242
2244
|
s.equalsElement(e,i,a,c)},e.prototype.assertComponentElement=function(e,n){var r=n.ElementType,i=void 0===r?l:r,o=n.tagName,a=void 0===o?"div":o,u=n.attrs,c=void 0===u?null:u,p=n.content,h=void 0===p?null:p
|
2243
2245
|
c=t.assign({},{id:s.regex(/^ember\d*$/),class:s.classes("ember-view")},c||{}),this.assertElement(e,{ElementType:i,tagName:a,attrs:c,content:h})},e.prototype.assertSameNode=function(e,t){this.assert.strictEqual(e,t,"DOM node stability")},e.prototype.assertInvariants=function(e,t){e=e||this.snapshot,t=t||this.takeSnapshot(),this.assert.strictEqual(t.length,e.length,"Same number of nodes")
|
2244
2246
|
for(var n=0;n<e.length;n++)this.assertSameNode(t[n],e[n])},e.prototype.assertPartialInvariants=function(e,t){this.assertInvariants(this.snapshot,this.takeSnapshot().slice(e,t))},e.prototype.assertStableRerender=function(){var e=this
|
2245
|
-
this.takeSnapshot(),this.runTask(function(){return e.rerender()}),this.assertInvariants()},
|
2247
|
+
this.takeSnapshot(),this.runTask(function(){return e.rerender()}),this.assertInvariants()},c.createClass(e,[{key:"firstChild",get:function(){return this.nthChild(0)}},{key:"nodesCount",get:function(){for(var e=0,t=this.element.firstChild;t;)a(t)||e++,t=t.nextSibling
|
2246
2248
|
return e}}]),e}()
|
2247
|
-
e.default=
|
2248
|
-
var n=function(e){function t(){e.apply(this,arguments)}return
|
2249
|
+
e.default=h}),s("internal-test-helpers/test-cases/application",["exports","internal-test-helpers/test-cases/abstract-application"],function(e,t){"use strict"
|
2250
|
+
var n=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t}(t.default)
|
2249
2251
|
e.default=n}),s("internal-test-helpers/test-cases/query-param",["exports","ember-runtime","ember-routing","ember-metal","internal-test-helpers/test-cases/application"],function(e,t,n,r,i){"use strict"
|
2250
2252
|
var o=function(e){function i(){e.call(this)
|
2251
2253
|
var t=this
|
2252
|
-
t.expectedPushURL=null,t.expectedReplaceURL=null,this.application.register("location:test",n.NoneLocation.extend({setURL:function(e){t.expectedReplaceURL&&t.assert.ok(!1,"pushState occurred but a replaceState was expected"),t.expectedPushURL&&(t.assert.equal(e,t.expectedPushURL,"an expected pushState occurred"),t.expectedPushURL=null),this.set("path",e)},replaceURL:function(e){t.expectedPushURL&&t.assert.ok(!1,"replaceState occurred but a pushState was expected"),t.expectedReplaceURL&&(t.assert.equal(e,t.expectedReplaceURL,"an expected replaceState occurred"),t.expectedReplaceURL=null),this.set("path",e)}}))}return
|
2254
|
+
t.expectedPushURL=null,t.expectedReplaceURL=null,this.application.register("location:test",n.NoneLocation.extend({setURL:function(e){t.expectedReplaceURL&&t.assert.ok(!1,"pushState occurred but a replaceState was expected"),t.expectedPushURL&&(t.assert.equal(e,t.expectedPushURL,"an expected pushState occurred"),t.expectedPushURL=null),this.set("path",e)},replaceURL:function(e){t.expectedPushURL&&t.assert.ok(!1,"replaceState occurred but a pushState was expected"),t.expectedReplaceURL&&(t.assert.equal(e,t.expectedReplaceURL,"an expected replaceState occurred"),t.expectedReplaceURL=null),this.set("path",e)}}))}return c.inherits(i,e),i.prototype.visitAndAssert=function(e){var t=this
|
2253
2255
|
return this.visit.apply(this,arguments).then(function(){t.assertCurrentPath(e)})},i.prototype.getController=function(e){return this.applicationInstance.lookup("controller:"+e)},i.prototype.getRoute=function(e){return this.applicationInstance.lookup("route:"+e)},i.prototype.setAndFlush=function(e,t,n){return r.run(e,"set",t,n)},i.prototype.assertCurrentPath=function(e){var t=arguments.length<=1||void 0===arguments[1]?"current path equals '"+e+"'":arguments[1]
|
2254
2256
|
return function(){this.assert.equal(this.appRouter.get("location.path"),e,t)}.apply(this,arguments)},i.prototype.setSingleQPController=function(e){var n,r=arguments.length<=1||void 0===arguments[1]?"foo":arguments[1],i=arguments.length<=2||void 0===arguments[2]?"bar":arguments[2],o=arguments.length<=3||void 0===arguments[3]?{}:arguments[3]
|
2255
2257
|
this.registerController(e,t.Controller.extend((n={queryParams:[r]},n[r]=i,n),o))},i.prototype.setMappedQPController=function(e){var n,r,i=arguments.length<=1||void 0===arguments[1]?"page":arguments[1],o=arguments.length<=2||void 0===arguments[2]?"parentPage":arguments[2],s=arguments.length<=3||void 0===arguments[3]?1:arguments[3],a=arguments.length<=4||void 0===arguments[4]?{}:arguments[4]
|
2256
|
-
this.registerController(e,t.Controller.extend((r={queryParams:(n={},n[i]=o,n)},r[i]=s,r),a))},
|
2258
|
+
this.registerController(e,t.Controller.extend((r={queryParams:(n={},n[i]=o,n)},r[i]=s,r),a))},c.createClass(i,[{key:"routerOptions",get:function(){return{location:"test"}}}]),i}(i.default)
|
2257
2259
|
e.default=o}),s("internal-test-helpers/test-cases/rendering",["exports","ember-views","internal-test-helpers/test-cases/abstract-rendering"],function(e,t,n){"use strict"
|
2258
2260
|
var r=function(e){function n(){e.call(this)
|
2259
2261
|
var n=this.owner
|
2260
|
-
this.env=n.lookup("service:-glimmer-environment"),n.register("component-lookup:main",t.ComponentLookup),n.registerOptionsForType("helper",{instantiate:!1}),n.registerOptionsForType("component",{singleton:!1})}return
|
2261
|
-
e.default=r})
|
2262
|
-
s("
|
2263
|
-
|
2264
|
-
s("glimmer-node/
|
2265
|
-
e.
|
2266
|
-
var n=function(e){function n(t){e.call(this,t)}return babelHelpers.inherits(n,e),n.prototype.setupUselessElement=function(){},n.prototype.insertHTMLBefore=function(e,n,r){var i=r?r.previousSibling:e.lastChild,o=this.document.createRawHTMLSection(n)
|
2262
|
+
this.env=n.lookup("service:-glimmer-environment"),n.register("component-lookup:main",t.ComponentLookup),n.registerOptionsForType("helper",{instantiate:!1}),n.registerOptionsForType("component",{singleton:!1})}return c.inherits(n,e),n}(n.default)
|
2263
|
+
e.default=r}),s("internal-test-helpers/test-groups",["exports","ember-environment","ember-metal"],function(e,t,n){"use strict"
|
2264
|
+
function r(e,r){function i(e,t){return n.get(e,t)}function o(e,t,r){return n.set(e,t,r)}function s(e,t){return e[t]}function a(e,t,n){return e[t]=n}QUnit.test(e+" using getFromEmberMetal()/Ember.set()",function(){r(i,o)}),QUnit.test(e+" using accessors",function(){t.ENV.USES_ACCESSORS?r(s,a):ok("SKIPPING ACCESSORS")})}function i(e,r){function i(e,t){return n.get(e,t)}function o(e,t,r){return n.getWithDefault(e,t,r)}function s(e,t,n){return e.getWithDefault(t,n)}function a(e,t,r){return n.set(e,t,r)}function u(e,t){return e[t]}function l(e,t,n){return e[t]=n}QUnit.test(e+" using obj.get()",function(){r(i,a)}),QUnit.test(e+" using obj.getWithDefault()",function(){r(s,a)}),QUnit.test(e+" using getFromEmberMetal()",function(){r(i,a)}),QUnit.test(e+" using Ember.getWithDefault()",function(){r(o,a)}),QUnit.test(e+" using accessors",function(){t.ENV.USES_ACCESSORS?r(u,l):ok("SKIPPING ACCESSORS")})}e.testBoth=r,e.testWithDefault=i}),s("glimmer-node/index",["exports","glimmer-node/lib/node-dom-helper"],function(e,t){"use strict"
|
2265
|
+
e.NodeDOMTreeConstruction=t.default})
|
2266
|
+
s("glimmer-node/lib/node-dom-helper",["exports","glimmer-runtime"],function(e,t){"use strict"
|
2267
|
+
var n=function(e){function n(t){e.call(this,t)}return c.inherits(n,e),n.prototype.setupUselessElement=function(){},n.prototype.insertHTMLBefore=function(e,n,r){var i=r?r.previousSibling:e.lastChild,o=this.document.createRawHTMLSection(n)
|
2267
2268
|
e.insertBefore(o,r)
|
2268
2269
|
var s=i?i.nextSibling:e.firstChild,a=r?r.previousSibling:e.lastChild
|
2269
2270
|
return new t.ConcreteBounds(e,s,a)},n.prototype.createElement=function(e){return this.document.createElement(e)},n.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},n}(t.DOMTreeConstruction)
|
2270
|
-
e.default=n})
|
2271
|
-
|
2271
|
+
e.default=n})
|
2272
|
+
s("glimmer-reference/index",["exports","glimmer-reference/lib/reference","glimmer-reference/lib/const","glimmer-reference/lib/validators","glimmer-reference/lib/utils","glimmer-reference/lib/iterable"],function(e,t,n,r,i,o){"use strict"
|
2273
|
+
e.BasicReference=t.Reference,e.BasicPathReference=t.PathReference,e.ConstReference=n.ConstReference,e.isConst=n.isConst,c.defaults(e,c.interopExportWildcard(r,c.defaults)),e.Reference=r.VersionedReference,e.PathReference=r.VersionedPathReference,e.referenceFromParts=i.referenceFromParts,e.IterationItem=o.IterationItem,e.Iterator=o.Iterator,e.Iterable=o.Iterable,e.OpaqueIterator=o.OpaqueIterator,e.OpaqueIterable=o.OpaqueIterable,e.AbstractIterator=o.AbstractIterator,e.AbstractIterable=o.AbstractIterable,e.IterationArtifacts=o.IterationArtifacts,e.ReferenceIterator=o.ReferenceIterator,e.IteratorSynchronizer=o.IteratorSynchronizer,e.IteratorSynchronizerDelegate=o.IteratorSynchronizerDelegate}),s("glimmer-reference/lib/const",["exports","glimmer-reference/lib/validators"],function(e,t){"use strict"
|
2272
2274
|
function n(e){return e.tag===t.CONSTANT_TAG}e.isConst=n
|
2273
2275
|
var r=function(){function e(e){this.inner=e,this.tag=t.CONSTANT_TAG}return e.prototype.value=function(){return this.inner},e}()
|
2274
2276
|
e.ConstReference=r}),s("glimmer-reference/lib/iterable",["exports","glimmer-util"],function(e,t){"use strict"
|
2275
|
-
var n=function(e){function t(t,n){e.call(this,t.valueReferenceFor(n)),this.retained=!1,this.seen=!1,this.key=n.key,this.iterable=t,this.memo=t.memoReferenceFor(n)}return
|
2277
|
+
var n=function(e){function t(t,n){e.call(this,t.valueReferenceFor(n)),this.retained=!1,this.seen=!1,this.key=n.key,this.iterable=t,this.memo=t.memoReferenceFor(n)}return c.inherits(t,e),t.prototype.update=function(e){this.retained=!0,this.iterable.updateValueReference(this.value,e),this.iterable.updateMemoReference(this.memo,e)},t.prototype.shouldRemove=function(){return!this.retained},t.prototype.reset=function(){this.retained=!1,this.seen=!1},t}(t.ListNode)
|
2276
2278
|
e.ListItem=n
|
2277
2279
|
var r=function(){function e(e){this.map=t.dict(),this.list=new t.LinkedList,this.tag=e.tag,this.iterable=e}return e.prototype.isEmpty=function(){var e=this.iterator=this.iterable.iterate()
|
2278
2280
|
return e.isEmpty()},e.prototype.iterate=function(){var e=this.iterator||this.iterable.iterate()
|
@@ -2309,51 +2311,51 @@ e.IteratorSynchronizer=s}),s("glimmer-reference/lib/reference",["exports"],funct
|
|
2309
2311
|
function t(e,t){for(var n=e,r=0;r<t.length;r++)n=n.get(t[r])
|
2310
2312
|
return n}e.referenceFromParts=t}),s("glimmer-reference/lib/validators",["exports"],function(e){"use strict"
|
2311
2313
|
function t(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n].tag
|
2312
|
-
if(o===
|
2313
|
-
o!==
|
2314
|
-
if(r===
|
2315
|
-
r!==
|
2316
|
-
if(o===
|
2317
|
-
o!==
|
2314
|
+
if(o===b)return b
|
2315
|
+
o!==y&&t.push(o)}return i(t)}function n(e){for(var t=[],n=e.head();null!==n;){var r=n.tag
|
2316
|
+
if(r===b)return b
|
2317
|
+
r!==y&&t.push(r),n=e.nextNode(n)}return i(t)}function r(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n]
|
2318
|
+
if(o===b)return b
|
2319
|
+
o!==y&&t.push(o)}return i(t)}function i(e){switch(e.length){case 0:return y
|
2318
2320
|
case 1:return e[0]
|
2319
|
-
case 2:return new
|
2320
|
-
default:return new
|
2321
|
+
case 2:return new d(e[0],e[1])
|
2322
|
+
default:return new g(e)}}function o(e,t){return new E(e,t)}function s(e){return e!==S}e.combineTagged=t,e.combineSlice=n,e.combine=r,e.map=o,e.isModified=s
|
2321
2323
|
var a=0
|
2322
2324
|
e.CONSTANT=a
|
2323
2325
|
var u=1
|
2324
2326
|
e.INITIAL=u
|
2325
2327
|
var l=NaN
|
2326
2328
|
e.VOLATILE=l
|
2327
|
-
var
|
2328
|
-
e.RevisionTag=
|
2329
|
-
var
|
2330
|
-
e.call(this),this.revision=t}return
|
2331
|
-
e.DirtyableTag=
|
2332
|
-
var
|
2333
|
-
return e!==
|
2334
|
-
e.CachedTag=
|
2335
|
-
var
|
2336
|
-
t=Math.max(r,t)}return t},t}(
|
2337
|
-
e.UpdatableTag=
|
2338
|
-
var
|
2339
|
-
e.CONSTANT_TAG=
|
2340
|
-
var
|
2341
|
-
e.VOLATILE_TAG=
|
2342
|
-
var
|
2343
|
-
e.CURRENT_TAG=
|
2344
|
-
var
|
2329
|
+
var p=function(){function e(){}return e.prototype.validate=function(e){return this.value()===e},e}()
|
2330
|
+
e.RevisionTag=p
|
2331
|
+
var h=u,f=function(e){function t(){var t=arguments.length<=0||void 0===arguments[0]?h:arguments[0]
|
2332
|
+
e.call(this),this.revision=t}return c.inherits(t,e),t.prototype.value=function(){return this.revision},t.prototype.dirty=function(){this.revision=++h},t}(p)
|
2333
|
+
e.DirtyableTag=f
|
2334
|
+
var m=function(e){function t(){e.apply(this,arguments),this.lastChecked=null,this.lastValue=null}return c.inherits(t,e),t.prototype.value=function(){var e=this.lastChecked,t=this.lastValue
|
2335
|
+
return e!==h&&(this.lastChecked=h,this.lastValue=t=this.compute()),this.lastValue},t.prototype.invalidate=function(){this.lastChecked=null},t}(p)
|
2336
|
+
e.CachedTag=m
|
2337
|
+
var d=function(e){function t(t,n){e.call(this),this.first=t,this.second=n}return c.inherits(t,e),t.prototype.compute=function(){return Math.max(this.first.value(),this.second.value())},t}(m),g=function(e){function t(t){e.call(this),this.tags=t}return c.inherits(t,e),t.prototype.compute=function(){for(var e=this.tags,t=-1,n=0;n<e.length;n++){var r=e[n].value()
|
2338
|
+
t=Math.max(r,t)}return t},t}(m),v=function(e){function t(t){e.call(this),this.tag=t,this.lastUpdated=u}return c.inherits(t,e),t.prototype.compute=function(){return Math.max(this.lastUpdated,this.tag.value())},t.prototype.update=function(e){e!==this.tag&&(this.tag=e,this.lastUpdated=h,this.invalidate())},t}(m)
|
2339
|
+
e.UpdatableTag=v
|
2340
|
+
var y=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return a},t}(p))
|
2341
|
+
e.CONSTANT_TAG=y
|
2342
|
+
var b=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return l},t}(p))
|
2343
|
+
e.VOLATILE_TAG=b
|
2344
|
+
var _=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return h},t}(f))
|
2345
|
+
e.CURRENT_TAG=_
|
2346
|
+
var w=function(){function e(){this.lastRevision=null,this.lastValue=null}return e.prototype.value=function(){var e=this.tag,t=this.lastRevision,n=this.lastValue
|
2345
2347
|
return t&&e.validate(t)||(n=this.lastValue=this.compute(),this.lastRevision=e.value()),n},e.prototype.invalidate=function(){this.lastRevision=null},e}()
|
2346
|
-
e.CachedReference=
|
2347
|
-
var
|
2348
|
-
return t(e.value())},t}(
|
2348
|
+
e.CachedReference=w
|
2349
|
+
var E=function(e){function t(t,n){e.call(this),this.tag=t.tag,this.reference=t,this.mapper=n}return c.inherits(t,e),t.prototype.compute=function(){var e=this.reference,t=this.mapper
|
2350
|
+
return t(e.value())},t}(w),O=function(){function e(e){this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=e.tag,this.reference=e}return e.prototype.peek=function(){return this.initialized?this.lastValue:this.initialize()},e.prototype.revalidate=function(){if(!this.initialized)return this.initialize()
|
2349
2351
|
var e=this.reference,t=this.lastRevision,n=e.tag
|
2350
|
-
if(n.validate(t))return
|
2352
|
+
if(n.validate(t))return S
|
2351
2353
|
this.lastRevision=n.value()
|
2352
2354
|
var r=this.lastValue,i=e.value()
|
2353
|
-
return i===r?
|
2355
|
+
return i===r?S:(this.lastValue=i,i)},e.prototype.initialize=function(){var e=this.reference,t=this.lastValue=e.value()
|
2354
2356
|
return this.lastRevision=e.tag.value(),this.initialized=!0,t},e}()
|
2355
|
-
e.ReferenceCache=
|
2356
|
-
var
|
2357
|
+
e.ReferenceCache=O
|
2358
|
+
var S="adb3b78e-3d22-4e4b-877a-6317c2c5c145"}),s("glimmer-runtime/index",["exports","glimmer-runtime/lib/dom/interfaces","glimmer-runtime/lib/syntax","glimmer-runtime/lib/template","glimmer-runtime/lib/symbol-table","glimmer-runtime/lib/references","glimmer-runtime/lib/syntax/core","glimmer-runtime/lib/compiled/opcodes/builder","glimmer-runtime/lib/compiler","glimmer-runtime/lib/opcode-builder","glimmer-runtime/lib/compiled/blocks","glimmer-runtime/lib/dom/attribute-managers","glimmer-runtime/lib/compiled/opcodes/content","glimmer-runtime/lib/compiled/expressions","glimmer-runtime/lib/compiled/expressions/args","glimmer-runtime/lib/compiled/expressions/function","glimmer-runtime/lib/helpers/get-dynamic-var","glimmer-runtime/lib/syntax/builtins/with-dynamic-vars","glimmer-runtime/lib/syntax/builtins/in-element","glimmer-runtime/lib/vm","glimmer-runtime/lib/upsert","glimmer-runtime/lib/environment","glimmer-runtime/lib/partial","glimmer-runtime/lib/component/interfaces","glimmer-runtime/lib/modifier/interfaces","glimmer-runtime/lib/dom/helper","glimmer-runtime/lib/builder","glimmer-runtime/lib/bounds"],function(e,t,n,r,i,o,s,a,u,l,c,p,h,f,m,d,g,v,y,b,_,w,E,O,S,x,C,A){"use strict"
|
2357
2359
|
e.ATTRIBUTE_SYNTAX=n.ATTRIBUTE,e.StatementSyntax=n.Statement,e.ExpressionSyntax=n.Expression,e.AttributeSyntax=n.Attribute,e.StatementCompilationBuffer=n.StatementCompilationBuffer,e.SymbolLookup=n.SymbolLookup,e.CompileInto=n.CompileInto,e.isAttribute=n.isAttribute,e.templateFactory=r.default,e.TemplateFactory=r.TemplateFactory,e.Template=r.Template,e.SymbolTable=i.default,e.NULL_REFERENCE=o.NULL_REFERENCE,e.UNDEFINED_REFERENCE=o.UNDEFINED_REFERENCE,e.PrimitiveReference=o.PrimitiveReference,e.ConditionalReference=o.ConditionalReference,e.Blocks=s.Blocks,e.OptimizedAppend=s.OptimizedAppend,e.UnoptimizedAppend=s.UnoptimizedAppend,e.Unknown=s.Unknown,e.StaticAttr=s.StaticAttr,e.DynamicAttr=s.DynamicAttr,e.ArgsSyntax=s.Args,e.NamedArgsSyntax=s.NamedArgs,e.PositionalArgsSyntax=s.PositionalArgs,e.RefSyntax=s.Ref,e.GetNamedParameterSyntax=s.GetArgument,e.GetSyntax=s.Get,e.ValueSyntax=s.Value,e.OpenElement=s.OpenElement
|
2358
2360
|
e.HelperSyntax=s.Helper
|
2359
2361
|
e.BlockSyntax=s.Block,e.OpenPrimitiveElementSyntax=s.OpenPrimitiveElement,e.CloseElementSyntax=s.CloseElement,e.OpcodeBuilderDSL=a.default,e.Compiler=u.default,e.Compilable=u.Compilable,e.CompileIntoList=u.CompileIntoList,e.compileLayout=u.compileLayout,e.ComponentBuilder=l.ComponentBuilder,e.StaticDefinition=l.StaticDefinition,e.DynamicDefinition=l.DynamicDefinition,e.Block=c.Block,e.CompiledBlock=c.CompiledBlock,e.Layout=c.Layout,e.InlineBlock=c.InlineBlock,e.EntryPoint=c.EntryPoint,e.IAttributeManager=p.AttributeManager,e.AttributeManager=p.AttributeManager,e.PropertyManager=p.PropertyManager,e.INPUT_VALUE_PROPERTY_MANAGER=p.INPUT_VALUE_PROPERTY_MANAGER,e.defaultManagers=p.defaultManagers,e.defaultAttributeManagers=p.defaultAttributeManagers,e.defaultPropertyManagers=p.defaultPropertyManagers,e.readDOMAttr=p.readDOMAttr,e.normalizeTextValue=h.normalizeTextValue,e.CompiledExpression=f.CompiledExpression,e.CompiledArgs=m.CompiledArgs,e.CompiledNamedArgs=m.CompiledNamedArgs,e.CompiledPositionalArgs=m.CompiledPositionalArgs,e.EvaluatedArgs=m.EvaluatedArgs
|
@@ -2379,9 +2381,9 @@ e.Fragment=s
|
|
2379
2381
|
var a=function(){function e(e,t,i){this.constructing=null,this.operations=null,this.elementStack=new n.Stack,this.nextSiblingStack=new n.Stack,this.blockStack=new n.Stack,this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM(),this.element=t,this.nextSibling=i,this.defaultOperations=new r.SimpleElementOperations(e),this.elementStack.push(this.element),this.nextSiblingStack.push(this.nextSibling)}return e.forInitialRender=function(t,n,r){return new e(t,n,r)},e.resume=function(t,n,r){var i=n.parentElement(),o=new e(t,i,r)
|
2380
2382
|
return o.pushBlockTracker(n),o},e.prototype.block=function(){return this.blockStack.current},e.prototype.popElement=function(){var e=this.elementStack,t=this.nextSiblingStack,n=e.pop()
|
2381
2383
|
return t.pop(),this.element=e.current,this.nextSibling=t.current,n},e.prototype.pushSimpleBlock=function(){var e=new u(this.element)
|
2382
|
-
return this.pushBlockTracker(e),e},e.prototype.pushUpdatableBlock=function(){var e=new
|
2384
|
+
return this.pushBlockTracker(e),e},e.prototype.pushUpdatableBlock=function(){var e=new p(this.element)
|
2383
2385
|
return this.pushBlockTracker(e),e},e.prototype.pushBlockTracker=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=this.blockStack.current
|
2384
|
-
return null!==n&&(n.newDestroyable(e),t||n.newBounds(e)),this.blockStack.push(e),e},e.prototype.pushBlockList=function(e){var t=new
|
2386
|
+
return null!==n&&(n.newDestroyable(e),t||n.newBounds(e)),this.blockStack.push(e),e},e.prototype.pushBlockList=function(e){var t=new h(this.element,e),n=this.blockStack.current
|
2385
2387
|
return null!==n&&(n.newDestroyable(t),n.newBounds(t)),this.blockStack.push(t),t},e.prototype.popBlock=function(){return this.blockStack.current.finalize(this),this.blockStack.pop()},e.prototype.openElement=function(e){var t=arguments.length<=1||void 0===arguments[1]?this.defaultOperations:arguments[1],n=this.dom.createElement(e,this.element)
|
2386
2388
|
return this.constructing=n,this.operations=t,n},e.prototype.flushElement=function(){var e=this.element,t=this.constructing
|
2387
2389
|
this.dom.insertBefore(e,t,this.nextSibling),this.constructing=null,this.operations=null,this.pushElement(t),this.blockStack.current.openElement(t)},e.prototype.pushRemoteElement=function(e){this.pushElement(e)
|
@@ -2393,21 +2395,21 @@ e.ElementStack=a
|
|
2393
2395
|
var u=function(){function e(e){this.parent=e,this.first=null,this.last=null,this.destroyables=null,this.nesting=0}return e.prototype.destroy=function(){var e=this.destroyables
|
2394
2396
|
if(e&&e.length)for(var t=0;t<e.length;t++)e[t].destroy()},e.prototype.parentElement=function(){return this.parent},e.prototype.firstNode=function(){return this.first&&this.first.firstNode()},e.prototype.lastNode=function(){return this.last&&this.last.lastNode()},e.prototype.openElement=function(e){this.newNode(e),this.nesting++},e.prototype.closeElement=function(){this.nesting--},e.prototype.newNode=function(e){0===this.nesting&&(this.first||(this.first=new i(e)),this.last=new o(e))},e.prototype.newBounds=function(e){0===this.nesting&&(this.first||(this.first=e),this.last=e)},e.prototype.newDestroyable=function(e){this.destroyables=this.destroyables||[],this.destroyables.push(e)},e.prototype.finalize=function(e){this.first||e.appendComment("")},e}()
|
2395
2397
|
e.SimpleBlockTracker=u
|
2396
|
-
var l=function(e){function n(){e.apply(this,arguments)}return
|
2398
|
+
var l=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.prototype.destroy=function(){e.prototype.destroy.call(this),t.clear(this)},n}(u),p=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.prototype.reset=function(e){var n=this.destroyables
|
2397
2399
|
if(n&&n.length)for(var r=0;r<n.length;r++)e.didDestroy(n[r])
|
2398
2400
|
var i=t.clear(this)
|
2399
2401
|
return this.destroyables=null,this.first=null,this.last=null,i},n}(u)
|
2400
|
-
e.UpdatableBlockTracker=
|
2401
|
-
var
|
2402
|
+
e.UpdatableBlockTracker=p
|
2403
|
+
var h=function(){function e(e,t){this.parent=e,this.boundList=t,this.parent=e,this.boundList=t}return e.prototype.destroy=function(){this.boundList.forEachNode(function(e){return e.destroy()})},e.prototype.parentElement=function(){return this.parent},e.prototype.firstNode=function(){return this.boundList.head().firstNode()},e.prototype.lastNode=function(){return this.boundList.tail().lastNode()},e.prototype.openElement=function(e){n.assert(!1,"Cannot openElement directly inside a block list")},e.prototype.closeElement=function(){n.assert(!1,"Cannot closeElement directly inside a block list")},e.prototype.newNode=function(e){n.assert(!1,"Cannot create a new node directly inside a block list")},e.prototype.newBounds=function(e){},e.prototype.newDestroyable=function(e){},e.prototype.finalize=function(e){},e}()}),s("glimmer-runtime/lib/compat/inner-html-fix",["exports","glimmer-runtime/lib/bounds","glimmer-runtime/lib/dom/helper"],function(e,t,n){"use strict"
|
2402
2404
|
function r(e,t){if(!e)return t
|
2403
2405
|
if(!s(e))return t
|
2404
2406
|
var n=e.createElement("div")
|
2405
|
-
return function(e){function t(){e.apply(this,arguments)}return
|
2407
|
+
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,r,i){if(null===i||""===i)return e.prototype.insertHTMLBefore.call(this,t,r,i)
|
2406
2408
|
var s=t.tagName.toLowerCase(),u=a[s]
|
2407
2409
|
return void 0===u?e.prototype.insertHTMLBefore.call(this,t,r,i):o(t,u,n,i,r)},t}(t)}function i(e,t){if(!e)return t
|
2408
2410
|
if(!s(e))return t
|
2409
2411
|
var n=e.createElement("div")
|
2410
|
-
return function(e){function t(){e.apply(this,arguments)}return
|
2412
|
+
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,r,i){if(null===r||""===r)return e.prototype.insertHTMLBefore.call(this,t,r,i)
|
2411
2413
|
var s=t.tagName.toLowerCase(),u=a[s]
|
2412
2414
|
return void 0===u?e.prototype.insertHTMLBefore.call(this,t,r,i):o(t,u,n,r,i)},t}(t)}function o(e,r,i,o,s){var a=r.before+o+r.after
|
2413
2415
|
i.innerHTML=a
|
@@ -2419,20 +2421,20 @@ var a={colgroup:{depth:2,before:"<table><colgroup>",after:"</colgroup></table>"}
|
|
2419
2421
|
function r(e,t,n){if(!e)return t
|
2420
2422
|
if(!s(e,n))return t
|
2421
2423
|
var r=e.createElement("div")
|
2422
|
-
return function(e){function t(){e.apply(this,arguments)}return
|
2424
|
+
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,i,s){return null===s||""===s?e.prototype.insertHTMLBefore.call(this,t,i,s):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,s):o(t,r,s,i)},t}(t)}function i(e,t,n){if(!e)return t
|
2423
2425
|
if(!s(e,n))return t
|
2424
2426
|
var r=e.createElement("div")
|
2425
|
-
return function(e){function t(){e.apply(this,arguments)}return
|
2427
|
+
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,i,s){return null===i||""===i?e.prototype.insertHTMLBefore.call(this,t,i,s):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,s):o(t,r,i,s)},t}(t)}function o(e,r,i,o){var s="<svg>"+i+"</svg>"
|
2426
2428
|
r.innerHTML=s
|
2427
2429
|
var a=n.moveNodesBefore(r.firstChild,e,o),u=a[0],l=a[1]
|
2428
2430
|
return new t.ConcreteBounds(e,u,l)}function s(e,t){var n=e.createElementNS(t,"svg")
|
2429
2431
|
try{n.insertAdjacentHTML("beforeEnd","<circle></circle>")}catch(e){}finally{return(1!==n.childNodes.length||n.firstChild.namespaceURI!==a)&&(n=null,!0)}}e.domChanges=r,e.treeConstruction=i
|
2430
2432
|
var a="http://www.w3.org/2000/svg"}),s("glimmer-runtime/lib/compat/text-node-merging-fix",["exports"],function(e){"use strict"
|
2431
|
-
function t(e,t){return e&&r(e)?function(e){function t(t){e.call(this,t),this.uselessComment=t.createComment("")}return
|
2433
|
+
function t(e,t){return e&&r(e)?function(e){function t(t){e.call(this,t),this.uselessComment=t.createComment("")}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,n,r){if(null===r)return e.prototype.insertHTMLBefore.call(this,t,n,r)
|
2432
2434
|
var i=!1,o=n?n.previousSibling:t.lastChild
|
2433
2435
|
o&&o instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,n))
|
2434
2436
|
var s=e.prototype.insertHTMLBefore.call(this,t,n,r)
|
2435
|
-
return i&&t.removeChild(this.uselessComment),s},t}(t):t}function n(e,t){return e&&r(e)?function(e){function t(t){e.call(this,t),this.uselessComment=this.createComment("")}return
|
2437
|
+
return i&&t.removeChild(this.uselessComment),s},t}(t):t}function n(e,t){return e&&r(e)?function(e){function t(t){e.call(this,t),this.uselessComment=this.createComment("")}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,n,r){if(null===n)return e.prototype.insertHTMLBefore.call(this,t,n,r)
|
2436
2438
|
var i=!1,o=r?r.previousSibling:t.lastChild
|
2437
2439
|
o&&o instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,r))
|
2438
2440
|
var s=e.prototype.insertHTMLBefore.call(this,t,n,r)
|
@@ -2443,28 +2445,28 @@ e.CompiledBlock=r
|
|
2443
2445
|
var i=function(e,t){this.program=e,this.symbolTable=t,this.compiled=null}
|
2444
2446
|
e.Block=i
|
2445
2447
|
var o=function(e){function i(n,r){var i=arguments.length<=2||void 0===arguments[2]?t.EMPTY_ARRAY:arguments[2]
|
2446
|
-
e.call(this,n,r),this.locals=i}return
|
2448
|
+
e.call(this,n,r),this.locals=i}return c.inherits(i,e),i.prototype.hasPositionalParameters=function(){return!!this.locals.length},i.prototype.compile=function(e){var t=this.compiled
|
2447
2449
|
if(t)return t
|
2448
2450
|
var i=new n.InlineBlockCompiler(this,e).compile()
|
2449
2451
|
return this.compiled=new r(i,this.symbolTable.size)},i}(i)
|
2450
2452
|
e.InlineBlock=o
|
2451
|
-
var s=function(e){function t(){e.apply(this,arguments)}return
|
2453
|
+
var s=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t}(o)
|
2452
2454
|
e.PartialBlock=s
|
2453
|
-
var a=function(e){function t(){e.apply(this,arguments)}return
|
2455
|
+
var a=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t}(i)
|
2454
2456
|
e.TopLevelTemplate=a
|
2455
|
-
var u=function(e){function t(){e.apply(this,arguments)}return
|
2457
|
+
var u=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.compile=function(e){var t=this.compiled
|
2456
2458
|
if(t)return t
|
2457
2459
|
var i=new n.EntryPointCompiler(this,e).compile()
|
2458
2460
|
return this.compiled=new r(i,this.symbolTable.size)},t}(a)
|
2459
2461
|
e.EntryPoint=u
|
2460
|
-
var l=function(e){function t(t,n,r,i,o){e.call(this,t,n),this.named=r,this.yields=i,this.hasPartials=o,this.hasNamedParameters=!!this.named.length,this.hasYields=!!this.yields.length}return
|
2462
|
+
var l=function(e){function t(t,n,r,i,o){e.call(this,t,n),this.named=r,this.yields=i,this.hasPartials=o,this.hasNamedParameters=!!this.named.length,this.hasYields=!!this.yields.length}return c.inherits(t,e),t}(a)
|
2461
2463
|
e.Layout=l}),s("glimmer-runtime/lib/compiled/expressions",["exports"],function(e){"use strict"
|
2462
2464
|
var t=function(){function e(){}return e.prototype.toJSON=function(){return"UNIMPL: "+this.type.toUpperCase()},e}()
|
2463
2465
|
e.CompiledExpression=t}),s("glimmer-runtime/lib/compiled/expressions/args",["exports","glimmer-runtime/lib/compiled/expressions/positional-args","glimmer-runtime/lib/compiled/expressions/named-args","glimmer-runtime/lib/syntax/core","glimmer-reference"],function(e,t,n,r,i){"use strict"
|
2464
2466
|
var o=function(){function e(e,t,n){this.positional=e,this.named=t,this.blocks=n}return e.create=function(e,i,o){return e===t.COMPILED_EMPTY_POSITIONAL_ARGS&&i===n.COMPILED_EMPTY_NAMED_ARGS&&o===r.EMPTY_BLOCKS?this.empty():new this(e,i,o)},e.empty=function(){return s},e.prototype.evaluate=function(e){var t=this.positional,n=this.named,r=this.blocks
|
2465
2467
|
return a.create(t.evaluate(e),n.evaluate(e),r)},e}()
|
2466
2468
|
e.CompiledArgs=o
|
2467
|
-
var s=new(function(e){function i(){e.call(this,t.COMPILED_EMPTY_POSITIONAL_ARGS,n.COMPILED_EMPTY_NAMED_ARGS,r.EMPTY_BLOCKS)}return
|
2469
|
+
var s=new(function(e){function i(){e.call(this,t.COMPILED_EMPTY_POSITIONAL_ARGS,n.COMPILED_EMPTY_NAMED_ARGS,r.EMPTY_BLOCKS)}return c.inherits(i,e),i.prototype.evaluate=function(e){return u},i}(o)),a=function(){function e(e,t,n){this.positional=e,this.named=t,this.blocks=n,this.tag=i.combineTagged([e,t])}return e.empty=function(){return u},e.create=function(e,t,n){return new this(e,t,n)},e.positional=function(e){var i=arguments.length<=1||void 0===arguments[1]?r.EMPTY_BLOCKS:arguments[1]
|
2468
2470
|
return new this(t.EvaluatedPositionalArgs.create(e),n.EVALUATED_EMPTY_NAMED_ARGS,i)},e.named=function(e){var i=arguments.length<=1||void 0===arguments[1]?r.EMPTY_BLOCKS:arguments[1]
|
2469
2471
|
return new this(t.EVALUATED_EMPTY_POSITIONAL_ARGS,n.EvaluatedNamedArgs.create(e),i)},e}()
|
2470
2472
|
e.EvaluatedArgs=a
|
@@ -2473,16 +2475,16 @@ e.CompiledPositionalArgs=t.CompiledPositionalArgs,e.EvaluatedPositionalArgs=t.Ev
|
|
2473
2475
|
function n(e){return"function"!=typeof e.toString?"":String(e)}var r=function(){function e(e){this.parts=e,this.type="concat"}return e.prototype.evaluate=function(e){for(var t=new Array(this.parts.length),n=0;n<this.parts.length;n++)t[n]=this.parts[n].evaluate(e)
|
2474
2476
|
return new i(t)},e.prototype.toJSON=function(){return"concat("+this.parts.map(function(e){return e.toJSON()}).join(", ")+")"},e}()
|
2475
2477
|
e.default=r
|
2476
|
-
var i=function(e){function r(n){e.call(this),this.parts=n,this.tag=t.combineTagged(n)}return
|
2478
|
+
var i=function(e){function r(n){e.call(this),this.parts=n,this.tag=t.combineTagged(n)}return c.inherits(r,e),r.prototype.compute=function(){for(var e=new Array,t=0;t<this.parts.length;t++){var r=this.parts[t].value()
|
2477
2479
|
null!==r&&void 0!==r&&(e[t]=n(this.parts[t].value()))}return e.length>0?e.join(""):null},r}(t.CachedReference)}),s("glimmer-runtime/lib/compiled/expressions/function",["exports","glimmer-runtime/lib/syntax","glimmer-runtime/lib/compiled/expressions"],function(e,t,n){"use strict"
|
2478
2480
|
function r(e){return new i(e)}e.default=r
|
2479
|
-
var i=function(e){function t(t){e.call(this),this.type="function-expression",this.func=t}return
|
2481
|
+
var i=function(e){function t(t){e.call(this),this.type="function-expression",this.func=t}return c.inherits(t,e),t.prototype.compile=function(e,t,n){return new o(this.func,n)},t}(t.Expression),o=function(e){function t(t,n){e.call(this),this.func=t,this.symbolTable=n,this.type="function",this.func=t}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.func,n=this.symbolTable
|
2480
2482
|
return t(e,n)},t.prototype.toJSON=function(){var e=this.func
|
2481
2483
|
return e.name?"`"+e.name+"(...)`":"`func(...)`"},t}(n.CompiledExpression)}),s("glimmer-runtime/lib/compiled/expressions/has-block",["exports","glimmer-runtime/lib/compiled/expressions","glimmer-runtime/lib/references"],function(e,t,n){"use strict"
|
2482
|
-
var r=function(e){function t(t){e.call(this),this.inner=t,this.type="has-block"}return
|
2484
|
+
var r=function(e){function t(t){e.call(this),this.inner=t,this.type="has-block"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.inner.evaluate(e)
|
2483
2485
|
return n.PrimitiveReference.create(!!t)},t.prototype.toJSON=function(){return"has-block("+this.inner.toJSON()+")"},t}(t.CompiledExpression)
|
2484
2486
|
e.default=r
|
2485
|
-
var i=function(e){function t(t){e.call(this),this.inner=t,this.type="has-block-params"}return
|
2487
|
+
var i=function(e){function t(t){e.call(this),this.inner=t,this.type="has-block-params"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.inner.evaluate(e)
|
2486
2488
|
return n.PrimitiveReference.create(!!(t&&t.locals.length>0))},t.prototype.toJSON=function(){return"has-block-params("+this.inner.toJSON()+")"},t}(t.CompiledExpression)
|
2487
2489
|
e.CompiledHasBlockParams=i
|
2488
2490
|
var o=function(){function e(e,t){this.symbol=e,this.debug=t}return e.prototype.evaluate=function(e){return e.scope().getBlock(this.symbol)},e.prototype.toJSON=function(){return"get-block($"+this.symbol+"("+this.debug+"))"},e}()
|
@@ -2490,17 +2492,17 @@ e.CompiledGetBlockBySymbol=o
|
|
2490
2492
|
var s=function(){function e(e,t){this.symbol=e,this.name=t}return e.prototype.evaluate=function(e){var t=this.symbol,n=this.name,r=e.scope().getPartialArgs(t)
|
2491
2493
|
return r.blocks[n]},e.prototype.toJSON=function(){return"get-block($"+this.symbol+"($ARGS)."+this.name+"))"},e}()
|
2492
2494
|
e.CompiledInPartialGetBlock=s}),s("glimmer-runtime/lib/compiled/expressions/helper",["exports","glimmer-runtime/lib/compiled/expressions"],function(e,t){"use strict"
|
2493
|
-
var n=function(e){function t(t,n,r,i){e.call(this),this.name=t,this.helper=n,this.args=r,this.symbolTable=i,this.type="helper"}return
|
2495
|
+
var n=function(e){function t(t,n,r,i){e.call(this),this.name=t,this.helper=n,this.args=r,this.symbolTable=i,this.type="helper"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.helper
|
2494
2496
|
return t(e,this.args.evaluate(e),this.symbolTable)},t.prototype.toJSON=function(){return"`"+this.name.join(".")+"($ARGS)`"},t}(t.CompiledExpression)
|
2495
2497
|
e.default=n}),s("glimmer-runtime/lib/compiled/expressions/lookups",["exports","glimmer-runtime/lib/compiled/expressions","glimmer-reference"],function(e,t,n){"use strict"
|
2496
|
-
var r=function(e){function t(t,n){e.call(this),this.base=t,this.path=n,this.type="lookup"}return
|
2498
|
+
var r=function(e){function t(t,n){e.call(this),this.base=t,this.path=n,this.type="lookup"}return c.inherits(t,e),t.create=function(e,t){return 0===t.length?e:new this(e,t)},t.prototype.evaluate=function(e){var t=this.base,r=this.path
|
2497
2499
|
return n.referenceFromParts(t.evaluate(e),r)},t.prototype.toJSON=function(){return this.base.toJSON()+"."+this.path.join(".")},t}(t.CompiledExpression)
|
2498
2500
|
e.default=r
|
2499
|
-
var i=function(e){function t(){e.apply(this,arguments)}return
|
2501
|
+
var i=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.evaluate=function(e){return e.getSelf()},t.prototype.toJSON=function(){return"self"},t}(t.CompiledExpression)
|
2500
2502
|
e.CompiledSelf=i
|
2501
|
-
var o=function(e){function t(t,n){e.call(this),this.symbol=t,this.debug=n}return
|
2503
|
+
var o=function(e){function t(t,n){e.call(this),this.symbol=t,this.debug=n}return c.inherits(t,e),t.prototype.evaluate=function(e){return e.referenceForSymbol(this.symbol)},t.prototype.toJSON=function(){return"$"+this.symbol+"("+this.debug+")"},t}(t.CompiledExpression)
|
2502
2504
|
e.CompiledSymbol=o
|
2503
|
-
var s=function(e){function t(t,n){e.call(this),this.symbol=t,this.name=n}return
|
2505
|
+
var s=function(e){function t(t,n){e.call(this),this.symbol=t,this.name=n}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.symbol,n=this.name,r=e.scope().getPartialArgs(t)
|
2504
2506
|
return r.named.get(n)},t.prototype.toJSON=function(){return"$"+this.symbol+"($ARGS)."+this.name},t}(t.CompiledExpression)
|
2505
2507
|
e.CompiledInPartialName=s}),s("glimmer-runtime/lib/compiled/expressions/named-args",["exports","glimmer-runtime/lib/references","glimmer-runtime/lib/utils","glimmer-reference","glimmer-util"],function(e,t,n,r,i){"use strict"
|
2506
2508
|
var o=function(){function e(e,t){this.keys=e,this.values=t,this.length=e.length,i.assert(e.length===t.length,"Keys and values do not have the same length")}return e.empty=function(){return s},e.create=function(e){var t=Object.keys(e),n=t.length
|
@@ -2509,336 +2511,336 @@ return new this(t,r)}return s},e.prototype.evaluate=function(e){for(var t=this.k
|
|
2509
2511
|
return new a(t,i)},e.prototype.toJSON=function(){var e=this.keys,t=this.values,n=e.map(function(e,n){return e+": "+t[n].toJSON()}).join(", ")
|
2510
2512
|
return"{"+n+"}"},e}()
|
2511
2513
|
e.CompiledNamedArgs=o
|
2512
|
-
var s=new(function(e){function t(){e.call(this,n.EMPTY_ARRAY,n.EMPTY_ARRAY)}return
|
2514
|
+
var s=new(function(e){function t(){e.call(this,n.EMPTY_ARRAY,n.EMPTY_ARRAY)}return c.inherits(t,e),t.prototype.evaluate=function(e){return u},t.prototype.toJSON=function(){return"<EMPTY>"},t}(o))
|
2513
2515
|
e.COMPILED_EMPTY_NAMED_ARGS=s
|
2514
2516
|
var a=function(){function e(e,t){var n=arguments.length<=2||void 0===arguments[2]?void 0:arguments[2]
|
2515
2517
|
this.keys=e,this.values=t,this._map=n,this.tag=r.combineTagged(t),this.length=e.length,i.assert(e.length===t.length,"Keys and values do not have the same length")}return e.create=function(e){var t=Object.keys(e),n=t.length
|
2516
2518
|
if(n>0){for(var r=new Array(n),i=0;i<n;i++)r[i]=e[t[i]]
|
2517
2519
|
return new this(t,r,e)}return u},e.empty=function(){return u},e.prototype.get=function(e){var n=this.keys,r=this.values,i=n.indexOf(e)
|
2518
2520
|
return i===-1?t.UNDEFINED_REFERENCE:r[i]},e.prototype.has=function(e){return this.keys.indexOf(e)!==-1},e.prototype.value=function(){for(var e=this.keys,t=this.values,n=i.dict(),r=0;r<e.length;r++){var o=e[r],s=t[r]
|
2519
|
-
n[o]=s.value()}return n},
|
2521
|
+
n[o]=s.value()}return n},c.createClass(e,[{key:"map",get:function(){var e=this._map
|
2520
2522
|
if(e)return e
|
2521
2523
|
e=this._map=i.dict()
|
2522
2524
|
for(var t=this.keys,n=this.values,r=this.length,o=0;o<r;o++)e[t[o]]=n[o]
|
2523
2525
|
return e}}]),e}()
|
2524
2526
|
e.EvaluatedNamedArgs=a
|
2525
|
-
var u=new(function(e){function r(){e.call(this,n.EMPTY_ARRAY,n.EMPTY_ARRAY,n.EMPTY_DICT)}return
|
2527
|
+
var u=new(function(e){function r(){e.call(this,n.EMPTY_ARRAY,n.EMPTY_ARRAY,n.EMPTY_DICT)}return c.inherits(r,e),r.prototype.get=function(){return t.UNDEFINED_REFERENCE},r.prototype.has=function(e){return!1},r.prototype.value=function(){return n.EMPTY_DICT},r}(a))
|
2526
2528
|
e.EVALUATED_EMPTY_NAMED_ARGS=u}),s("glimmer-runtime/lib/compiled/expressions/positional-args",["exports","glimmer-runtime/lib/references","glimmer-runtime/lib/utils","glimmer-reference"],function(e,t,n,r){"use strict"
|
2527
2529
|
var i=function(){function e(e){this.values=e,this.length=e.length}return e.create=function(e){return e.length?new this(e):o},e.empty=function(){return o},e.prototype.evaluate=function(e){for(var t=this.values,n=this.length,r=new Array(n),i=0;i<n;i++)r[i]=t[i].evaluate(e)
|
2528
2530
|
return s.create(r)},e.prototype.toJSON=function(){return"["+this.values.map(function(e){return e.toJSON()}).join(", ")+"]"},e}()
|
2529
2531
|
e.CompiledPositionalArgs=i
|
2530
|
-
var o=new(function(e){function t(){e.call(this,n.EMPTY_ARRAY)}return
|
2532
|
+
var o=new(function(e){function t(){e.call(this,n.EMPTY_ARRAY)}return c.inherits(t,e),t.prototype.evaluate=function(e){return a},t.prototype.toJSON=function(){return"<EMPTY>"},t}(i))
|
2531
2533
|
e.COMPILED_EMPTY_POSITIONAL_ARGS=o
|
2532
2534
|
var s=function(){function e(e){this.values=e,this.tag=r.combineTagged(e),this.length=e.length}return e.create=function(e){return new this(e)},e.empty=function(){return a},e.prototype.at=function(e){var n=this.values,r=this.length
|
2533
2535
|
return e<r?n[e]:t.UNDEFINED_REFERENCE},e.prototype.value=function(){for(var e=this.values,t=this.length,n=new Array(t),r=0;r<t;r++)n[r]=e[r].value()
|
2534
2536
|
return n},e}()
|
2535
2537
|
e.EvaluatedPositionalArgs=s
|
2536
|
-
var a=new(function(e){function r(){e.call(this,n.EMPTY_ARRAY)}return
|
2538
|
+
var a=new(function(e){function r(){e.call(this,n.EMPTY_ARRAY)}return c.inherits(r,e),r.prototype.at=function(){return t.UNDEFINED_REFERENCE},r.prototype.value=function(){return this.values},r}(s))
|
2537
2539
|
e.EVALUATED_EMPTY_POSITIONAL_ARGS=a}),s("glimmer-runtime/lib/compiled/expressions/value",["exports","glimmer-runtime/lib/compiled/expressions","glimmer-runtime/lib/references"],function(e,t,n){"use strict"
|
2538
|
-
var r=function(e){function t(t){e.call(this),this.type="value",this.reference=n.PrimitiveReference.create(t)}return
|
2540
|
+
var r=function(e){function t(t){e.call(this),this.type="value",this.reference=n.PrimitiveReference.create(t)}return c.inherits(t,e),t.prototype.evaluate=function(e){return this.reference},t.prototype.toJSON=function(){return JSON.stringify(this.reference.value())},t}(t.CompiledExpression)
|
2539
2541
|
e.default=r}),s("glimmer-runtime/lib/compiled/opcodes/builder",["exports","glimmer-runtime/lib/compiled/opcodes/component","glimmer-runtime/lib/compiled/opcodes/partial","glimmer-runtime/lib/compiled/opcodes/content","glimmer-runtime/lib/compiled/opcodes/dom","glimmer-runtime/lib/compiled/opcodes/lists","glimmer-runtime/lib/compiled/opcodes/vm","glimmer-util","glimmer-runtime/lib/utils"],function(e,t,n,r,i,o,s,a,u){"use strict"
|
2540
|
-
function l(e){return e&&"function"==typeof e.compile}var
|
2541
|
-
e.StatementCompilationBufferProxy=
|
2542
|
-
var
|
2542
|
+
function l(e){return e&&"function"==typeof e.compile}var p=function(){function e(e){this.inner=e}return e.prototype.toOpSeq=function(){return this.inner.toOpSeq()},e.prototype.append=function(e){this.inner.append(e)},e.prototype.getLocalSymbol=function(e){return this.inner.getLocalSymbol(e)},e.prototype.hasLocalSymbol=function(e){return this.inner.hasLocalSymbol(e)},e.prototype.getNamedSymbol=function(e){return this.inner.getNamedSymbol(e)},e.prototype.hasNamedSymbol=function(e){return this.inner.hasNamedSymbol(e)},e.prototype.getBlockSymbol=function(e){return this.inner.getBlockSymbol(e)},e.prototype.hasBlockSymbol=function(e){return this.inner.hasBlockSymbol(e)},e.prototype.getPartialArgsSymbol=function(){return this.inner.getPartialArgsSymbol()},e.prototype.hasPartialArgsSymbol=function(){return this.inner.hasPartialArgsSymbol()},c.createClass(e,[{key:"component",get:function(){return this.inner.component}}]),e}()
|
2543
|
+
e.StatementCompilationBufferProxy=p
|
2544
|
+
var h=function(e){function l(t,n,r){e.call(this,t),this.symbolTable=n,this.env=r,this.labelsStack=new a.Stack}return c.inherits(l,e),l.prototype.startLabels=function(){this.labelsStack.push(a.dict())},l.prototype.stopLabels=function(){this.labelsStack.pop()},l.prototype.labelFor=function(e){var t=this.labels,n=t[e]
|
2543
2545
|
return n||(n=t[e]=new s.LabelOpcode(e)),n},l.prototype.putPartialDefinition=function(e){this.append(new n.PutPartialDefinitionOpcode(e))},l.prototype.putDynamicPartialDefinition=function(){this.append(new n.PutDynamicPartialDefinitionOpcode(this.symbolTable))},l.prototype.evaluatePartial=function(){this.append(new n.EvaluatePartialOpcode(this.symbolTable))},l.prototype.putComponentDefinition=function(e){this.append(new t.PutComponentDefinitionOpcode(e))},l.prototype.putDynamicComponentDefinition=function(){this.append(new t.PutDynamicComponentDefinitionOpcode)},l.prototype.openComponent=function(e){var n=arguments.length<=1||void 0===arguments[1]?u.EMPTY_ARRAY:arguments[1]
|
2544
2546
|
this.append(new t.OpenComponentOpcode(this.compile(e),n))},l.prototype.didCreateElement=function(){this.append(new t.DidCreateElementOpcode)},l.prototype.shadowAttributes=function(){this.append(new t.ShadowAttributesOpcode)},l.prototype.didRenderLayout=function(){this.append(new t.DidRenderLayoutOpcode)},l.prototype.closeComponent=function(){this.append(new t.CloseComponentOpcode)},l.prototype.cautiousAppend=function(){this.append(new r.OptimizedCautiousAppendOpcode)},l.prototype.trustingAppend=function(){this.append(new r.OptimizedTrustingAppendOpcode)},l.prototype.text=function(e){this.append(new i.TextOpcode(e))},l.prototype.openPrimitiveElement=function(e){this.append(new i.OpenPrimitiveElementOpcode(e))},l.prototype.openComponentElement=function(e){this.append(new i.OpenComponentElementOpcode(e))},l.prototype.openDynamicPrimitiveElement=function(){this.append(new i.OpenDynamicPrimitiveElementOpcode)},l.prototype.flushElement=function(){this.append(new i.FlushElementOpcode)},l.prototype.closeElement=function(){this.append(new i.CloseElementOpcode)},l.prototype.staticAttr=function(e,t,n){this.append(new i.StaticAttrOpcode(e,t,n))},l.prototype.dynamicAttrNS=function(e,t,n){this.append(new i.DynamicAttrNSOpcode(e,t,n))},l.prototype.dynamicAttr=function(e,t){this.append(new i.DynamicAttrOpcode(e,t))},l.prototype.comment=function(e){this.append(new i.CommentOpcode(e))},l.prototype.putIterator=function(){this.append(new o.PutIteratorOpcode)},l.prototype.enterList=function(e,t){this.append(new o.EnterListOpcode(this.labelFor(e),this.labelFor(t)))},l.prototype.exitList=function(){this.append(new o.ExitListOpcode)},l.prototype.enterWithKey=function(e,t){this.append(new o.EnterWithKeyOpcode(this.labelFor(e),this.labelFor(t)))},l.prototype.nextIter=function(e){this.append(new o.NextIterOpcode(this.labelFor(e)))},l.prototype.pushRemoteElement=function(){this.append(new i.PushRemoteElementOpcode)},l.prototype.popRemoteElement=function(){this.append(new i.PopRemoteElementOpcode)},l.prototype.popElement=function(){this.append(new i.PopElementOpcode)},l.prototype.label=function(e){this.append(this.labelFor(e))},l.prototype.pushChildScope=function(){this.append(new s.PushChildScopeOpcode)},l.prototype.popScope=function(){this.append(new s.PopScopeOpcode)},l.prototype.pushDynamicScope=function(){this.append(new s.PushDynamicScopeOpcode)},l.prototype.popDynamicScope=function(){this.append(new s.PopDynamicScopeOpcode)},l.prototype.putNull=function(){this.append(new s.PutNullOpcode)},l.prototype.putValue=function(e){this.append(new s.PutValueOpcode(this.compile(e)))},l.prototype.putArgs=function(e){this.append(new s.PutArgsOpcode(this.compile(e)))},l.prototype.bindDynamicScope=function(e){this.append(new s.BindDynamicScopeOpcode(e))},l.prototype.bindPositionalArgs=function(e,t){this.append(new s.BindPositionalArgsOpcode(e,t))},l.prototype.bindNamedArgs=function(e,t){this.append(new s.BindNamedArgsOpcode(e,t))},l.prototype.bindBlocks=function(e,t){this.append(new s.BindBlocksOpcode(e,t))},l.prototype.enter=function(e,t){this.append(new s.EnterOpcode(this.labelFor(e),this.labelFor(t)))},l.prototype.exit=function(){this.append(new s.ExitOpcode)},l.prototype.evaluate=function(e,t){this.append(new s.EvaluateOpcode(e,t))},l.prototype.test=function(e){if("const"===e)this.append(new s.TestOpcode(s.ConstTest))
|
2545
2547
|
else if("simple"===e)this.append(new s.TestOpcode(s.SimpleTest))
|
2546
2548
|
else if("environment"===e)this.append(new s.TestOpcode(s.EnvironmentTest))
|
2547
2549
|
else{if("function"!=typeof e)throw new Error("unreachable")
|
2548
|
-
this.append(new s.TestOpcode(e))}},l.prototype.jump=function(e){this.append(new s.JumpOpcode(this.labelFor(e)))},l.prototype.jumpIf=function(e){this.append(new s.JumpIfOpcode(this.labelFor(e)))},l.prototype.jumpUnless=function(e){this.append(new s.JumpUnlessOpcode(this.labelFor(e)))},
|
2549
|
-
e.BasicOpcodeBuilder=
|
2550
|
-
var
|
2551
|
-
e.default=
|
2552
|
-
var i=function(e){function t(){e.apply(this,arguments),this.type="put-dynamic-component-definition"}return
|
2550
|
+
this.append(new s.TestOpcode(e))}},l.prototype.jump=function(e){this.append(new s.JumpOpcode(this.labelFor(e)))},l.prototype.jumpIf=function(e){this.append(new s.JumpIfOpcode(this.labelFor(e)))},l.prototype.jumpUnless=function(e){this.append(new s.JumpUnlessOpcode(this.labelFor(e)))},c.createClass(l,[{key:"labels",get:function(){return this.labelsStack.current}}]),l}(p)
|
2551
|
+
e.BasicOpcodeBuilder=h
|
2552
|
+
var f=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.compile=function(e){return l(e)?e.compile(this,this.env,this.symbolTable):e},t.prototype.bindPositionalArgsForBlock=function(e){this.append(s.BindPositionalArgsOpcode.create(e))},t.prototype.preludeForLayout=function(e){e.hasNamedParameters&&this.append(s.BindNamedArgsOpcode.create(e)),(e.hasYields||e.hasPartials)&&this.append(new s.BindCallerScopeOpcode),e.hasYields&&this.append(s.BindBlocksOpcode.create(e)),e.hasPartials&&this.append(s.BindPartialArgsOpcode.create(e))},t.prototype.block=function(e,t){e&&this.putArgs(e),this.startLabels(),this.enter("BEGIN","END"),this.label("BEGIN"),t(this,"BEGIN","END"),this.label("END"),this.exit(),this.stopLabels()},t.prototype.iter=function(e){this.startLabels(),this.enterList("BEGIN","END"),this.label("ITER"),this.nextIter("BREAK"),this.enterWithKey("BEGIN","END"),this.label("BEGIN"),e(this,"BEGIN","END"),this.label("END"),this.exit(),this.jump("ITER"),this.label("BREAK"),this.exitList(),this.stopLabels()},t.prototype.unit=function(e){this.startLabels(),e(this),this.stopLabels()},t}(h)
|
2553
|
+
e.default=f}),s("glimmer-runtime/lib/compiled/opcodes/component",["exports","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/compiled/opcodes/vm","glimmer-reference"],function(e,t,n,r){"use strict"
|
2554
|
+
var i=function(e){function t(){e.apply(this,arguments),this.type="put-dynamic-component-definition"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getOperand(),i=r.isConst(t)?void 0:new r.ReferenceCache(t),o=i?i.peek():t.value()
|
2553
2555
|
e.frame.setImmediate(o),i&&e.updateWith(new n.Assert(i))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(t.Opcode)
|
2554
2556
|
e.PutDynamicComponentDefinitionOpcode=i
|
2555
|
-
var o=function(e){function t(t){e.call(this),this.definition=t,this.type="put-component-definition"}return
|
2557
|
+
var o=function(e){function t(t){e.call(this),this.definition=t,this.type="put-component-definition"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.frame.setImmediate(this.definition)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.definition.name)]}},t}(t.Opcode)
|
2556
2558
|
e.PutComponentDefinitionOpcode=o
|
2557
|
-
var s=function(e){function t(t,n){e.call(this),this.args=t,this.shadow=n,this.type="open-component"}return
|
2559
|
+
var s=function(e){function t(t,n){e.call(this),this.args=t,this.shadow=n,this.type="open-component"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.args,n=this.shadow,r=e.frame.getImmediate(),i=e.pushDynamicScope(),o=e.scope(),s=r.manager,u=s.prepareArgs(r,t.evaluate(e),i),l=!!u.blocks.default,c=s.create(e.env,r,u,i,e.getSelf(),l),p=s.getDestructor(c)
|
2558
2560
|
p&&e.newDestroyable(p)
|
2559
2561
|
var h=s.layoutFor(r,c,e.env),f=s.getSelf(c)
|
2560
2562
|
e.beginCacheGroup(),e.stack().pushSimpleBlock(),e.pushRootScope(f,h.symbols),e.invokeLayout(u,h,o,c,s,n),e.updateWith(new a(r.name,c,s,u,i))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(t.Opcode)
|
2561
2563
|
e.OpenComponentOpcode=s
|
2562
2564
|
var a=function(e){function t(t,n,i,o,s){e.call(this),this.name=t,this.component=n,this.manager=i,this.args=o,this.dynamicScope=s,this.type="update-component"
|
2563
2565
|
var a=i.getTag(n)
|
2564
|
-
a?this.tag=r.combine([o.tag,a]):this.tag=o.tag}return
|
2566
|
+
a?this.tag=r.combine([o.tag,a]):this.tag=o.tag}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.component,n=this.manager,r=this.args,i=this.dynamicScope
|
2565
2567
|
n.update(t,r,i)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.name)]}},t}(t.UpdatingOpcode)
|
2566
2568
|
e.UpdateComponentOpcode=a
|
2567
|
-
var u=function(e){function t(){e.apply(this,arguments),this.type="did-create-element"}return
|
2569
|
+
var u=function(e){function t(){e.apply(this,arguments),this.type="did-create-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getManager(),n=e.frame.getComponent()
|
2568
2570
|
t.didCreateElement(n,e.stack().constructing,e.stack().operations)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$ARGS"]}},t}(t.Opcode)
|
2569
2571
|
e.DidCreateElementOpcode=u
|
2570
|
-
var l=function(e){function t(){e.apply(this,arguments),this.type="shadow-attributes"}return
|
2572
|
+
var l=function(e){function t(){e.apply(this,arguments),this.type="shadow-attributes"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getShadow()
|
2571
2573
|
if(t){var n=e.frame.getArgs(),r=n.named
|
2572
2574
|
t.forEach(function(t){e.stack().setDynamicAttribute(t,r.get(t),!1)})}},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$ARGS"]}},t}(t.Opcode)
|
2573
2575
|
e.ShadowAttributesOpcode=l
|
2574
|
-
var
|
2575
|
-
t.didRenderLayout(n,r),e.env.didCreate(n,t),e.updateWith(new
|
2576
|
-
e.DidRenderLayoutOpcode=
|
2577
|
-
var
|
2576
|
+
var p=function(e){function t(){e.apply(this,arguments),this.type="did-render-layout"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getManager(),n=e.frame.getComponent(),r=e.stack().popBlock()
|
2577
|
+
t.didRenderLayout(n,r),e.env.didCreate(n,t),e.updateWith(new h(t,n,r))},t}(t.Opcode)
|
2578
|
+
e.DidRenderLayoutOpcode=p
|
2579
|
+
var h=function(e){function t(t,n,i){e.call(this),this.manager=t,this.component=n,this.bounds=i,this.type="did-update-layout",this.tag=r.CONSTANT_TAG}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.manager,n=this.component,r=this.bounds
|
2578
2580
|
t.didUpdateLayout(n,r),e.env.didUpdate(n,t)},t}(t.UpdatingOpcode)
|
2579
|
-
e.DidUpdateLayoutOpcode=
|
2580
|
-
var
|
2581
|
-
e.CloseComponentOpcode=
|
2582
|
-
function
|
2583
|
-
var
|
2581
|
+
e.DidUpdateLayoutOpcode=h
|
2582
|
+
var f=function(e){function t(){e.apply(this,arguments),this.type="close-component"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.popScope(),e.popDynamicScope(),e.commitCacheGroup()},t}(t.Opcode)
|
2583
|
+
e.CloseComponentOpcode=f}),s("glimmer-runtime/lib/compiled/opcodes/content",["exports","glimmer-runtime/lib/upsert","glimmer-runtime/lib/component/interfaces","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/vm/update","glimmer-reference","glimmer-util","glimmer-runtime/lib/bounds","glimmer-runtime/lib/builder","glimmer-runtime/lib/compiler","glimmer-runtime/lib/compiled/opcodes/builder","glimmer-runtime/lib/references","glimmer-runtime/lib/syntax/core"],function(e,t,n,r,i,o,s,a,u,l,p,h,f){"use strict"
|
2584
|
+
function m(e){return null===e||void 0===e||"function"!=typeof e.toString}function d(e){return m(e)?"":String(e)}function g(e){return m(e)?"":t.isString(e)?e:t.isSafeString(e)?e.toHTML():t.isNode(e)?e:String(e)}function v(e){return m(e)?"":t.isString(e)?e:t.isSafeString(e)||t.isNode(e)?e:String(e)}e.normalizeTextValue=d
|
2585
|
+
var y=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getOperand(),n=this.normalize(t),r=void 0,i=void 0
|
2584
2586
|
o.isConst(t)?r=n.value():(i=new o.ReferenceCache(n),r=i.peek())
|
2585
2587
|
var s=e.stack(),a=this.insert(e.env.getAppendOperations(),s,r),l=new u.Fragment(a.bounds)
|
2586
2588
|
s.newBounds(l),i&&e.updateWith(this.updateWith(e,t,i,l,a))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(r.Opcode)
|
2587
|
-
e.AppendOpcode=
|
2588
|
-
var
|
2589
|
+
e.AppendOpcode=y
|
2590
|
+
var b=function(e){function t(t,n){e.call(this),this.expression=t,this.symbolTable=n,this.deopted=null}return c.inherits(t,e),t.prototype.evaluate=function(t){if(this.deopted)t.pushEvalFrame(this.deopted)
|
2589
2591
|
else{t.evaluateOperand(this.expression)
|
2590
2592
|
var r=t.frame.getOperand().value()
|
2591
|
-
n.isComponentDefinition(r)?t.pushEvalFrame(this.deopt(t.env)):e.prototype.evaluate.call(this,t)}},t.prototype.deopt=function(e){var t=this,n=new l.CompileIntoList(e,null),r=new
|
2592
|
-
r.putValue(this.expression),r.test(
|
2593
|
+
n.isComponentDefinition(r)?t.pushEvalFrame(this.deopt(t.env)):e.prototype.evaluate.call(this,t)}},t.prototype.deopt=function(e){var t=this,n=new l.CompileIntoList(e,null),r=new p.default(n,this.symbolTable,e)
|
2594
|
+
r.putValue(this.expression),r.test(_.create),r.block(null,function(e,n,r){e.jumpUnless("VALUE"),e.putDynamicComponentDefinition(),e.openComponent(f.Args.empty()),e.closeComponent(),e.jump(r),e.label("VALUE"),e.append(new t.AppendOpcode)})
|
2593
2595
|
var i=this.deopted=r.toOpSeq()
|
2594
2596
|
return this.expression=null,i},t.prototype.toJSON=function(){var e=this._guid,t=this.type,n=this.deopted
|
2595
|
-
return n?{guid:e,type:t,deopted:!0,children:n.toArray().map(function(e){return e.toJSON()})}:{guid:e,type:t,args:[this.expression.toJSON()]}},t}(
|
2596
|
-
e.GuardedAppendOpcode=
|
2597
|
-
var
|
2597
|
+
return n?{guid:e,type:t,deopted:!0,children:n.toArray().map(function(e){return e.toJSON()})}:{guid:e,type:t,args:[this.expression.toJSON()]}},t}(y)
|
2598
|
+
e.GuardedAppendOpcode=b
|
2599
|
+
var _=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.create=function(e){return new t(e)},t.prototype.toBool=function(e){return n.isComponentDefinition(e)},t}(h.ConditionalReference),w=function(e){function t(t,n,r){e.call(this),this.cache=t,this.bounds=n,this.upsert=r,this.tag=t.tag}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.cache.revalidate()
|
2598
2600
|
if(o.isModified(t)){var n=this.bounds,r=this.upsert,i=e.dom
|
2599
2601
|
if(!this.upsert.update(i,t)){var s=new a.Cursor(n.parentElement(),a.clear(n))
|
2600
2602
|
r=this.upsert=this.insert(e.env.getAppendOperations(),s,t)}n.update(r.bounds)}},t.prototype.toJSON=function(){var e=this._guid,t=this.type,n=this.cache
|
2601
|
-
return{guid:e,type:t,details:{lastValue:JSON.stringify(n.peek())}}},t}(r.UpdatingOpcode),
|
2603
|
+
return{guid:e,type:t,details:{lastValue:JSON.stringify(n.peek())}}},t}(r.UpdatingOpcode),E=function(e){function t(t,n,r,i,s,a){e.call(this,n,r,i),this.reference=t,this.appendOpcode=s,this.state=a,this.deopted=null,this.tag=this._tag=new o.UpdatableTag(this.tag)}return c.inherits(t,e),t.prototype.evaluate=function(t){this.deopted?t.evaluateOpcode(this.deopted):n.isComponentDefinition(this.reference.value())?this.lazyDeopt(t):e.prototype.evaluate.call(this,t)},t.prototype.lazyDeopt=function(e){var t=this.bounds,n=this.appendOpcode,r=this.state,o=n.deopt(e.env),a=o.head().next.next,l=a.slice,c=new u.UpdatableBlockTracker(t.parentElement())
|
2602
2604
|
c.newBounds(this.bounds)
|
2603
2605
|
var p=new s.LinkedList
|
2604
|
-
r.frame.condition=
|
2606
|
+
r.frame.condition=_.create(r.frame.operand)
|
2605
2607
|
var h=this.deopted=new i.TryOpcode(l,r,c,p)
|
2606
2608
|
this._tag.update(h.tag),e.evaluateOpcode(h),e.throw(),this._tag=null,this.reference=null,this.cache=null,this.bounds=null,this.upsert=null,this.appendOpcode=null,this.state=null},t.prototype.toJSON=function(){var t=this._guid,n=this.type,r=this.deopted
|
2607
|
-
return r?{guid:t,type:n,deopted:!0,children:[r.toJSON()]}:e.prototype.toJSON.call(this)},t}(
|
2608
|
-
e.OptimizedCautiousAppendOpcode=
|
2609
|
-
var
|
2610
|
-
e.GuardedCautiousAppendOpcode=
|
2611
|
-
var
|
2612
|
-
e.OptimizedTrustingAppendOpcode=
|
2613
|
-
var
|
2614
|
-
e.GuardedTrustingAppendOpcode=
|
2615
|
-
var
|
2609
|
+
return r?{guid:t,type:n,deopted:!0,children:[r.toJSON()]}:e.prototype.toJSON.call(this)},t}(w),O=function(e){function n(){e.apply(this,arguments),this.type="optimized-cautious-append"}return c.inherits(n,e),n.prototype.normalize=function(e){return o.map(e,v)},n.prototype.insert=function(e,n,r){return t.cautiousInsert(e,n,r)},n.prototype.updateWith=function(e,t,n,r,i){return new S(n,r,i)},n}(y)
|
2610
|
+
e.OptimizedCautiousAppendOpcode=O
|
2611
|
+
var S=function(e){function n(){e.apply(this,arguments),this.type="optimized-cautious-update"}return c.inherits(n,e),n.prototype.insert=function(e,n,r){return t.cautiousInsert(e,n,r)},n}(w),x=function(e){function n(){e.apply(this,arguments),this.type="guarded-cautious-append",this.AppendOpcode=O}return c.inherits(n,e),n.prototype.normalize=function(e){return o.map(e,v)},n.prototype.insert=function(e,n,r){return t.cautiousInsert(e,n,r)},n.prototype.updateWith=function(e,t,n,r,i){return new C(t,n,r,i,this,e.capture())},n}(b)
|
2612
|
+
e.GuardedCautiousAppendOpcode=x
|
2613
|
+
var C=function(e){function n(){e.apply(this,arguments),this.type="guarded-cautious-update"}return c.inherits(n,e),n.prototype.insert=function(e,n,r){return t.cautiousInsert(e,n,r)},n}(E),A=function(e){function n(){e.apply(this,arguments),this.type="optimized-trusting-append"}return c.inherits(n,e),n.prototype.normalize=function(e){return o.map(e,g)},n.prototype.insert=function(e,n,r){return t.trustingInsert(e,n,r)},n.prototype.updateWith=function(e,t,n,r,i){return new k(n,r,i)},n}(y)
|
2614
|
+
e.OptimizedTrustingAppendOpcode=A
|
2615
|
+
var k=function(e){function n(){e.apply(this,arguments),this.type="optimized-trusting-update"}return c.inherits(n,e),n.prototype.insert=function(e,n,r){return t.trustingInsert(e,n,r)},n}(w),T=function(e){function n(){e.apply(this,arguments),this.type="guarded-trusting-append",this.AppendOpcode=A}return c.inherits(n,e),n.prototype.normalize=function(e){return o.map(e,g)},n.prototype.insert=function(e,n,r){return t.trustingInsert(e,n,r)},n.prototype.updateWith=function(e,t,n,r,i){return new N(t,n,r,i,this,e.capture())},n}(b)
|
2616
|
+
e.GuardedTrustingAppendOpcode=T
|
2617
|
+
var N=function(e){function n(){e.apply(this,arguments),this.type="trusting-update"}return c.inherits(n,e),n.prototype.insert=function(e,n,r){return t.trustingInsert(e,n,r)},n}(E)}),s("glimmer-runtime/lib/compiled/opcodes/dom",["exports","glimmer-runtime/lib/opcodes","glimmer-util","glimmer-reference","glimmer-runtime/lib/references","glimmer-runtime/lib/compiled/opcodes/vm"],function(e,t,n,r,i,o){"use strict"
|
2616
2618
|
function s(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].value()
|
2617
|
-
r!==!1&&null!==r&&void 0!==r&&t.push(r)}return 0===t.length?null:t.join(" ")}function a(e){return JSON.stringify("<"+e.tagName.toLowerCase()+" />")}var u=function(e){function t(t){e.call(this),this.text=t,this.type="text"}return
|
2619
|
+
r!==!1&&null!==r&&void 0!==r&&t.push(r)}return 0===t.length?null:t.join(" ")}function a(e){return JSON.stringify("<"+e.tagName.toLowerCase()+" />")}var u=function(e){function t(t){e.call(this),this.text=t,this.type="text"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().appendText(this.text)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.text)]}},t}(t.Opcode)
|
2618
2620
|
e.TextOpcode=u
|
2619
|
-
var l=function(e){function t(t){e.call(this),this.tag=t,this.type="open-primitive-element"}return
|
2621
|
+
var l=function(e){function t(t){e.call(this),this.tag=t,this.type="open-primitive-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().openElement(this.tag)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.tag)]}},t}(t.Opcode)
|
2620
2622
|
e.OpenPrimitiveElementOpcode=l
|
2621
|
-
var
|
2623
|
+
var p=function(e){function t(){e.apply(this,arguments),this.type="push-remote-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getOperand(),n=r.isConst(t)?void 0:new r.ReferenceCache(t),i=n?n.peek():t.value()
|
2622
2624
|
e.stack().pushRemoteElement(i),n&&e.updateWith(new o.Assert(n))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(t.Opcode)
|
2623
|
-
e.PushRemoteElementOpcode=
|
2624
|
-
var
|
2625
|
-
e.PopRemoteElementOpcode=
|
2626
|
-
var
|
2627
|
-
e.OpenComponentElementOpcode=
|
2628
|
-
var
|
2625
|
+
e.PushRemoteElementOpcode=p
|
2626
|
+
var h=function(e){function t(){e.apply(this,arguments),this.type="pop-remote-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().popRemoteElement()},t}(t.Opcode)
|
2627
|
+
e.PopRemoteElementOpcode=h
|
2628
|
+
var f=function(e){function t(t){e.call(this),this.tag=t,this.type="open-component-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().openElement(this.tag,new y(e.env))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.tag)]}},t}(t.Opcode)
|
2629
|
+
e.OpenComponentElementOpcode=f
|
2630
|
+
var m=function(e){function t(){e.apply(this,arguments),this.type="open-dynamic-primitive-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getOperand().value()
|
2629
2631
|
e.stack().openElement(t)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(t.Opcode)
|
2630
|
-
e.OpenDynamicPrimitiveElementOpcode=
|
2631
|
-
var
|
2632
|
+
e.OpenDynamicPrimitiveElementOpcode=m
|
2633
|
+
var d=function(){function e(){this.list=null,this.isConst=!0}return e.prototype.append=function(e){var t=this.list,n=this.isConst
|
2632
2634
|
null===t&&(t=this.list=[]),t.push(e),this.isConst=n&&r.isConst(e)},e.prototype.toReference=function(){var e=this.list,t=this.isConst
|
2633
|
-
return e?t?i.PrimitiveReference.create(s(e)):new
|
2634
|
-
else{var i=this.env.attributeFor(e,t,r),o=new
|
2635
|
-
this.addAttribute(o)}},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){var o=this.env.attributeFor(e,n,i,t),s=new
|
2635
|
+
return e?t?i.PrimitiveReference.create(s(e)):new g(e):i.NULL_REFERENCE},e}(),g=function(e){function t(t){e.call(this),this.list=[],this.tag=r.combineTagged(t),this.list=t}return c.inherits(t,e),t.prototype.compute=function(){return s(this.list)},t}(r.CachedReference),v=function(){function e(e){this.env=e,this.opcodes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(i.PrimitiveReference.create(n)):this.env.getAppendOperations().setAttribute(e,t,n)},e.prototype.addStaticAttributeNS=function(e,t,n,r){this.env.getAppendOperations().setAttribute(e,n,r,t)},e.prototype.addDynamicAttribute=function(e,t,n,r){if("class"===t)this.addClass(n)
|
2636
|
+
else{var i=this.env.attributeFor(e,t,r),o=new C(e,i,t,n)
|
2637
|
+
this.addAttribute(o)}},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){var o=this.env.attributeFor(e,n,i,t),s=new C(e,o,n,r,t)
|
2636
2638
|
this.addAttribute(s)},e.prototype.flush=function(e,t){for(var n=t.env,r=this.opcodes,i=this.classList,o=0;r&&o<r.length;o++)t.updateWith(r[o])
|
2637
|
-
if(i){var s=n.attributeFor(e,"class",!1),a=new
|
2639
|
+
if(i){var s=n.attributeFor(e,"class",!1),a=new C(e,s,"class",i.toReference()),u=a.flush(n)
|
2638
2640
|
u&&t.updateWith(u)}this.opcodes=null,this.classList=null},e.prototype.addClass=function(e){var t=this.classList
|
2639
|
-
t||(t=this.classList=new
|
2641
|
+
t||(t=this.classList=new d),t.append(e)},e.prototype.addAttribute=function(e){var t=e.flush(this.env)
|
2640
2642
|
if(t){var n=this.opcodes
|
2641
2643
|
n||(n=this.opcodes=[]),n.push(t)}},e}()
|
2642
|
-
e.SimpleElementOperations=
|
2643
|
-
var
|
2644
|
-
else if(this.shouldAddAttribute(t)){var i=this.env.attributeFor(e,t,r),o=new
|
2645
|
-
this.addAttribute(t,o)}},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){if(this.shouldAddAttribute(n)){var o=this.env.attributeFor(e,n,i,t),s=new
|
2644
|
+
e.SimpleElementOperations=v
|
2645
|
+
var y=function(){function e(e){this.env=e,this.attributeNames=null,this.attributes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(i.PrimitiveReference.create(n)):this.shouldAddAttribute(t)&&this.addAttribute(t,new x(e,t,n))},e.prototype.addStaticAttributeNS=function(e,t,n,r){this.shouldAddAttribute(n)&&this.addAttribute(n,new x(e,n,r,t))},e.prototype.addDynamicAttribute=function(e,t,n,r){if("class"===t)this.addClass(n)
|
2646
|
+
else if(this.shouldAddAttribute(t)){var i=this.env.attributeFor(e,t,r),o=new C(e,i,t,n)
|
2647
|
+
this.addAttribute(t,o)}},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){if(this.shouldAddAttribute(n)){var o=this.env.attributeFor(e,n,i,t),s=new C(e,o,n,r,t)
|
2646
2648
|
this.addAttribute(n,s)}},e.prototype.flush=function(e,t){for(var n=this.env,r=this.attributes,i=this.classList,o=0;r&&o<r.length;o++){var s=r[o].flush(n)
|
2647
|
-
s&&t.updateWith(s)}if(i){var a=n.attributeFor(e,"class",!1),u=new
|
2649
|
+
s&&t.updateWith(s)}if(i){var a=n.attributeFor(e,"class",!1),u=new C(e,a,"class",i.toReference()),s=u.flush(n)
|
2648
2650
|
s&&t.updateWith(s)}},e.prototype.shouldAddAttribute=function(e){return!this.attributeNames||this.attributeNames.indexOf(e)===-1},e.prototype.addClass=function(e){var t=this.classList
|
2649
|
-
t||(t=this.classList=new
|
2651
|
+
t||(t=this.classList=new d),t.append(e)},e.prototype.addAttribute=function(e,t){var n=this.attributeNames,r=this.attributes
|
2650
2652
|
n||(n=this.attributeNames=[],r=this.attributes=[]),n.push(e),r.push(t)},e}()
|
2651
|
-
e.ComponentElementOperations=
|
2652
|
-
var
|
2653
|
+
e.ComponentElementOperations=y
|
2654
|
+
var b=function(e){function t(){e.apply(this,arguments),this.type="flush-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.stack()
|
2653
2655
|
t.operations.flush(t.constructing,e),t.flushElement()},t}(t.Opcode)
|
2654
|
-
e.FlushElementOpcode=
|
2655
|
-
var
|
2656
|
-
e.CloseElementOpcode=
|
2657
|
-
var
|
2658
|
-
e.PopElementOpcode=
|
2659
|
-
var
|
2656
|
+
e.FlushElementOpcode=b
|
2657
|
+
var _=function(e){function t(){e.apply(this,arguments),this.type="close-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().closeElement()},t}(t.Opcode)
|
2658
|
+
e.CloseElementOpcode=_
|
2659
|
+
var w=function(e){function t(){e.apply(this,arguments),this.type="pop-element"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().popElement()},t}(t.Opcode)
|
2660
|
+
e.PopElementOpcode=w
|
2661
|
+
var E=function(e){function t(t,n,r){e.call(this),this.namespace=t,this.name=n,this.value=r,this.type="static-attr"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.name,n=this.value,r=this.namespace
|
2660
2662
|
r?e.stack().setStaticAttributeNS(r,t,n):e.stack().setStaticAttribute(t,n)},t.prototype.toJSON=function(){var e=this._guid,t=this.type,r=this.namespace,i=this.name,o=this.value,s=n.dict()
|
2661
2663
|
return r&&(s.namespace=JSON.stringify(r)),s.name=JSON.stringify(i),s.value=JSON.stringify(o),{guid:e,type:t,details:s}},t}(t.Opcode)
|
2662
|
-
e.StaticAttrOpcode=
|
2663
|
-
var
|
2664
|
+
e.StaticAttrOpcode=E
|
2665
|
+
var O=function(e){function t(t,n,r){e.call(this),this.name=t,this.manager=n,this.args=r,this.type="modifier"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.manager,n=e.stack(),r=n.constructing,i=n.updateOperations,o=this.args.evaluate(e),s=e.dynamicScope(),a=t.create(r,o,s,i)
|
2664
2666
|
e.env.scheduleInstallModifier(a,t)
|
2665
2667
|
var u=t.getDestructor(a)
|
2666
|
-
u&&e.newDestroyable(u),e.updateWith(new
|
2668
|
+
u&&e.newDestroyable(u),e.updateWith(new S(t,a,o))},t.prototype.toJSON=function(){var e=this._guid,t=this.type,r=this.name,i=this.args,o=n.dict()
|
2667
2669
|
return o.type=JSON.stringify(t),o.name=JSON.stringify(r),o.args=JSON.stringify(i),{guid:e,type:t,details:o}},t}(t.Opcode)
|
2668
|
-
e.ModifierOpcode=
|
2669
|
-
var
|
2670
|
+
e.ModifierOpcode=O
|
2671
|
+
var S=function(e){function t(t,n,r){e.call(this),this.manager=t,this.modifier=n,this.args=r,this.type="update-modifier",this.tag=r.tag,this.lastUpdated=r.tag.value()}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.manager,n=this.modifier,r=this.tag,i=this.lastUpdated
|
2670
2672
|
r.validate(i)||(e.env.scheduleUpdateModifier(n,t),this.lastUpdated=r.value())},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.args)]}},t}(t.UpdatingOpcode)
|
2671
|
-
e.UpdateModifierOpcode=
|
2672
|
-
var
|
2673
|
-
e.StaticAttribute=
|
2674
|
-
var
|
2673
|
+
e.UpdateModifierOpcode=S
|
2674
|
+
var x=function(){function e(e,t,n,r){this.element=e,this.name=t,this.value=n,this.namespace=r}return e.prototype.flush=function(e){return e.getAppendOperations().setAttribute(this.element,this.name,this.value,this.namespace),null},e}()
|
2675
|
+
e.StaticAttribute=x
|
2676
|
+
var C=function(){function e(e,t,n,r,i){this.element=e,this.attributeManager=t,this.name=n,this.reference=r,this.namespace=i,this.tag=r.tag,this.cache=null}return e.prototype.patch=function(e){var t=this.element,n=this.cache,i=n.revalidate()
|
2675
2677
|
r.isModified(i)&&this.attributeManager.updateAttribute(e,t,i,this.namespace)},e.prototype.flush=function(e){var t=this.reference,n=this.element
|
2676
2678
|
if(r.isConst(t)){var i=t.value()
|
2677
2679
|
return this.attributeManager.setAttribute(e,n,i,this.namespace),null}var o=this.cache=new r.ReferenceCache(t),i=o.peek()
|
2678
|
-
return this.attributeManager.setAttribute(e,n,i,this.namespace),new
|
2680
|
+
return this.attributeManager.setAttribute(e,n,i,this.namespace),new T(this)},e.prototype.toJSON=function(){var e=this.element,t=this.namespace,n=this.name,r=this.cache,i=a(e),o=r.peek()
|
2679
2681
|
return t?{element:i,type:"attribute",namespace:t,name:n,lastValue:o}:{element:i,type:"attribute",namespace:t,name:n,lastValue:o}},e}()
|
2680
|
-
e.DynamicAttribute=
|
2681
|
-
var
|
2682
|
+
e.DynamicAttribute=C
|
2683
|
+
var A=function(e){function t(t,n,r){e.call(this),this.name=t,this.namespace=n,this.isTrusting=r,this.type="dynamic-attr"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.name,n=this.namespace,r=this.isTrusting,i=e.frame.getOperand()
|
2682
2684
|
e.stack().setDynamicAttributeNS(n,t,i,r)},t.prototype.toJSON=function(){var e=this._guid,t=this.type,r=this.name,i=this.namespace,o=n.dict()
|
2683
2685
|
return o.name=JSON.stringify(r),o.value="$OPERAND",i&&(o.namespace=JSON.stringify(i)),{guid:e,type:t,details:o}},t}(t.Opcode)
|
2684
|
-
e.DynamicAttrNSOpcode=
|
2685
|
-
var
|
2686
|
+
e.DynamicAttrNSOpcode=A
|
2687
|
+
var k=function(e){function t(t,n){e.call(this),this.name=t,this.isTrusting=n,this.type="dynamic-attr"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.name,n=this.isTrusting,r=e.frame.getOperand()
|
2686
2688
|
e.stack().setDynamicAttribute(t,r,n)},t.prototype.toJSON=function(){var e=this._guid,t=this.type,r=this.name,i=n.dict()
|
2687
2689
|
return i.name=JSON.stringify(r),i.value="$OPERAND",{guid:e,type:t,details:i}},t}(t.Opcode)
|
2688
|
-
e.DynamicAttrOpcode=
|
2689
|
-
var
|
2690
|
+
e.DynamicAttrOpcode=k
|
2691
|
+
var T=function(e){function t(t){e.call(this),this.type="patch-element",this.tag=t.tag,this.operation=t}return c.inherits(t,e),t.prototype.evaluate=function(e){this.operation.patch(e.env)},t.prototype.toJSON=function(){var e=this._guid,t=this.type,n=this.operation
|
2690
2692
|
return{guid:e,type:t,details:n.toJSON()}},t}(t.UpdatingOpcode)
|
2691
|
-
e.PatchElementOpcode=
|
2692
|
-
var
|
2693
|
-
e.CommentOpcode=
|
2694
|
-
var o=function(){function e(e){this.tag=e.tag,this.artifacts=e}return e.prototype.value=function(){return!this.artifacts.isEmpty()},e}(),s=function(e){function t(){e.apply(this,arguments),this.type="put-iterator"}return
|
2693
|
+
e.PatchElementOpcode=T
|
2694
|
+
var N=function(e){function t(t){e.call(this),this.comment=t,this.type="comment"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.stack().appendComment(this.comment)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.comment)]}},t}(t.Opcode)
|
2695
|
+
e.CommentOpcode=N}),s("glimmer-runtime/lib/compiled/opcodes/lists",["exports","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/compiled/expressions/args","glimmer-util","glimmer-reference"],function(e,t,n,r,i){"use strict"
|
2696
|
+
var o=function(){function e(e){this.tag=e.tag,this.artifacts=e}return e.prototype.value=function(){return!this.artifacts.isEmpty()},e}(),s=function(e){function t(){e.apply(this,arguments),this.type="put-iterator"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getOperand(),n=e.frame.getArgs(),r=e.env.iterableFor(t,n),s=new i.ReferenceIterator(r)
|
2695
2697
|
e.frame.setIterator(s),e.frame.setCondition(new o(s.artifacts))},t}(t.Opcode)
|
2696
2698
|
e.PutIteratorOpcode=s
|
2697
|
-
var a=function(e){function t(t,n){e.call(this),this.type="enter-list",this.slice=new r.ListSlice(t,n)}return
|
2699
|
+
var a=function(e){function t(t,n){e.call(this),this.type="enter-list",this.slice=new r.ListSlice(t,n)}return c.inherits(t,e),t.prototype.evaluate=function(e){e.enterList(this.slice)},t.prototype.toJSON=function(){var e=this.slice,t=this.type,n=this._guid,r=e.head(),i=e.tail()
|
2698
2700
|
return{guid:n,type:t,args:[JSON.stringify(r.inspect()),JSON.stringify(i.inspect())]}},t}(t.Opcode)
|
2699
2701
|
e.EnterListOpcode=a
|
2700
|
-
var u=function(e){function t(){e.apply(this,arguments),this.type="exit-list"}return
|
2702
|
+
var u=function(e){function t(){e.apply(this,arguments),this.type="exit-list"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.exitList()},t}(t.Opcode)
|
2701
2703
|
e.ExitListOpcode=u
|
2702
|
-
var l=function(e){function t(t,n){e.call(this),this.type="enter-with-key",this.slice=new r.ListSlice(t,n)}return
|
2704
|
+
var l=function(e){function t(t,n){e.call(this),this.type="enter-with-key",this.slice=new r.ListSlice(t,n)}return c.inherits(t,e),t.prototype.evaluate=function(e){e.enterWithKey(e.frame.getKey(),this.slice)},t.prototype.toJSON=function(){var e=this.slice,t=this._guid,n=this.type,r=e.head(),i=e.tail()
|
2703
2705
|
return{guid:t,type:n,args:[JSON.stringify(r.inspect()),JSON.stringify(i.inspect())]}},t}(t.Opcode)
|
2704
2706
|
e.EnterWithKeyOpcode=l
|
2705
|
-
var
|
2706
|
-
t?(e.frame.setCondition(
|
2707
|
-
e.NextIterOpcode=
|
2708
|
-
|
2709
|
-
var o=function(e){function t(t){e.call(this),this.symbolTable=t,this.type="put-dynamic-partial-definition"}return babelHelpers.inherits(t,e),t.prototype.evaluate=function(e){function t(e){var t=String(e)
|
2707
|
+
var p=new i.ConstReference(!0),h=new i.ConstReference(!1),f=function(e){function t(t){e.call(this),this.type="next-iter",this.end=t}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=e.frame.getIterator().next()
|
2708
|
+
t?(e.frame.setCondition(p),e.frame.setKey(t.key),e.frame.setOperand(t.value),e.frame.setArgs(n.EvaluatedArgs.positional([t.value,t.memo]))):(e.frame.setCondition(h),e.goto(this.end))},t}(t.Opcode)
|
2709
|
+
e.NextIterOpcode=f}),s("glimmer-runtime/lib/compiled/opcodes/partial",["exports","glimmer-util","glimmer-reference","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/compiled/opcodes/vm"],function(e,t,n,r,i){"use strict"
|
2710
|
+
var o=function(e){function t(t){e.call(this),this.symbolTable=t,this.type="put-dynamic-partial-definition"}return c.inherits(t,e),t.prototype.evaluate=function(e){function t(e){var t=String(e)
|
2710
2711
|
if(!r.hasPartial(t,o))throw new Error('Could not find a partial named "'+t+'"')
|
2711
2712
|
return r.lookupPartial(t,o)}var r=e.env,o=this.symbolTable,s=n.map(e.frame.getOperand(),t),a=n.isConst(s)?void 0:new n.ReferenceCache(s),u=a?a.peek():s.value()
|
2712
2713
|
e.frame.setImmediate(u),a&&e.updateWith(new i.Assert(a))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},t}(r.Opcode)
|
2713
2714
|
e.PutDynamicPartialDefinitionOpcode=o
|
2714
|
-
var s=function(e){function t(t){e.call(this),this.definition=t,this.type="put-partial-definition"}return
|
2715
|
+
var s=function(e){function t(t){e.call(this),this.definition=t,this.type="put-partial-definition"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.frame.setImmediate(this.definition)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.definition.name)]}},t}(r.Opcode)
|
2715
2716
|
e.PutPartialDefinitionOpcode=s
|
2716
|
-
var a=function(e){function n(n){e.call(this),this.symbolTable=n,this.type="evaluate-partial",this.cache=t.dict()}return
|
2717
|
+
var a=function(e){function n(n){e.call(this),this.symbolTable=n,this.type="evaluate-partial",this.cache=t.dict()}return c.inherits(n,e),n.prototype.evaluate=function(e){var t=e.frame.getImmediate(),n=t.template,r=this.cache[n.id]
|
2717
2718
|
r||(r=n.asPartial(this.symbolTable)),e.invokePartial(r)},n.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND"]}},n}(r.Opcode)
|
2718
|
-
e.EvaluatePartialOpcode=a})
|
2719
|
-
|
2720
|
-
var o=function(e){function t(){e.apply(this,arguments),this.type="push-child-scope"}return babelHelpers.inherits(t,e),t.prototype.evaluate=function(e){e.pushChildScope()},t}(t.Opcode)
|
2719
|
+
e.EvaluatePartialOpcode=a}),s("glimmer-runtime/lib/compiled/opcodes/vm",["exports","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/references","glimmer-reference","glimmer-util"],function(e,t,n,r,i){"use strict"
|
2720
|
+
var o=function(e){function t(){e.apply(this,arguments),this.type="push-child-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.pushChildScope()},t}(t.Opcode)
|
2721
2721
|
e.PushChildScopeOpcode=o
|
2722
|
-
var s=function(e){function t(){e.apply(this,arguments),this.type="pop-scope"}return
|
2722
|
+
var s=function(e){function t(){e.apply(this,arguments),this.type="pop-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.popScope()},t}(t.Opcode)
|
2723
2723
|
e.PopScopeOpcode=s
|
2724
|
-
var a=function(e){function t(){e.apply(this,arguments),this.type="push-dynamic-scope"}return
|
2724
|
+
var a=function(e){function t(){e.apply(this,arguments),this.type="push-dynamic-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.pushDynamicScope()},t}(t.Opcode)
|
2725
2725
|
e.PushDynamicScopeOpcode=a
|
2726
|
-
var u=function(e){function t(){e.apply(this,arguments),this.type="pop-dynamic-scope"}return
|
2726
|
+
var u=function(e){function t(){e.apply(this,arguments),this.type="pop-dynamic-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.popDynamicScope()},t}(t.Opcode)
|
2727
2727
|
e.PopDynamicScopeOpcode=u
|
2728
|
-
var l=function(e){function t(){e.apply(this,arguments),this.type="put-null"}return
|
2728
|
+
var l=function(e){function t(){e.apply(this,arguments),this.type="put-null"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.frame.setOperand(n.NULL_REFERENCE)},t}(t.Opcode)
|
2729
2729
|
e.PutNullOpcode=l
|
2730
|
-
var
|
2731
|
-
e.PutValueOpcode=
|
2732
|
-
var
|
2733
|
-
e.PutArgsOpcode=
|
2734
|
-
var
|
2730
|
+
var p=function(e){function t(t){e.call(this),this.expression=t,this.type="put-value"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.evaluateOperand(this.expression)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[this.expression.toJSON()]}},t}(t.Opcode)
|
2731
|
+
e.PutValueOpcode=p
|
2732
|
+
var h=function(e){function t(t){e.call(this),this.args=t,this.type="put-args"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.evaluateArgs(this.args)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,details:{positional:this.args.positional.toJSON(),named:this.args.named.toJSON()}}},t}(t.Opcode)
|
2733
|
+
e.PutArgsOpcode=h
|
2734
|
+
var f=function(e){function t(t,n){e.call(this),this.names=t,this.symbols=n,this.type="bind-positional-args"}return c.inherits(t,e),t.create=function(e){var t=e.locals,n=t.map(function(t){return e.symbolTable.getLocal(t)})
|
2735
2735
|
return new this(t,n)},t.prototype.evaluate=function(e){e.bindPositionalArgs(this.symbols)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["["+this.names.map(function(e){return JSON.stringify(e)}).join(", ")+"]"]}},t}(t.Opcode)
|
2736
|
-
e.BindPositionalArgsOpcode=
|
2737
|
-
var
|
2736
|
+
e.BindPositionalArgsOpcode=f
|
2737
|
+
var m=function(e){function t(t,n){e.call(this),this.names=t,this.symbols=n,this.type="bind-named-args"}return c.inherits(t,e),t.create=function(e){var t=e.named,n=t.map(function(t){return e.symbolTable.getNamed(t)})
|
2738
2738
|
return new this(t,n)},t.prototype.evaluate=function(e){e.bindNamedArgs(this.names,this.symbols)},t.prototype.toJSON=function(){var e=this.names,t=this.symbols,n=e.map(function(e,n){return"$"+t[n]+": $ARGS["+e+"]"})
|
2739
2739
|
return{guid:this._guid,type:this.type,args:n}},t}(t.Opcode)
|
2740
|
-
e.BindNamedArgsOpcode=
|
2741
|
-
var
|
2740
|
+
e.BindNamedArgsOpcode=m
|
2741
|
+
var d=function(e){function t(t,n){e.call(this),this.names=t,this.symbols=n,this.type="bind-blocks"}return c.inherits(t,e),t.create=function(e){var t=e.yields,n=t.map(function(t){return e.symbolTable.getYield(t)})
|
2742
2742
|
return new this(t,n)},t.prototype.evaluate=function(e){e.bindBlocks(this.names,this.symbols)},t.prototype.toJSON=function(){var e=this.names,t=this.symbols,n=e.map(function(e,n){return"$"+t[n]+": $BLOCKS["+e+"]"})
|
2743
2743
|
return{guid:this._guid,type:this.type,args:n}},t}(t.Opcode)
|
2744
|
-
e.BindBlocksOpcode=
|
2745
|
-
var
|
2746
|
-
e.BindPartialArgsOpcode=
|
2747
|
-
var
|
2748
|
-
e.BindCallerScopeOpcode=
|
2749
|
-
var
|
2750
|
-
e.BindDynamicScopeOpcode=
|
2751
|
-
var
|
2744
|
+
e.BindBlocksOpcode=d
|
2745
|
+
var g=function(e){function t(t){e.call(this),this.symbol=t,this.type="bind-partial-args"}return c.inherits(t,e),t.create=function(e){return new this(e.symbolTable.getPartialArgs())},t.prototype.evaluate=function(e){e.bindPartialArgs(this.symbol)},t}(t.Opcode)
|
2746
|
+
e.BindPartialArgsOpcode=g
|
2747
|
+
var v=function(e){function t(){e.apply(this,arguments),this.type="bind-caller-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.bindCallerScope()},t}(t.Opcode)
|
2748
|
+
e.BindCallerScopeOpcode=v
|
2749
|
+
var y=function(e){function t(t){e.call(this),this.names=t,this.type="bind-dynamic-scope"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.bindDynamicScope(this.names)},t}(t.Opcode)
|
2750
|
+
e.BindDynamicScopeOpcode=y
|
2751
|
+
var b=function(e){function t(t,n){e.call(this),this.type="enter",this.slice=new i.ListSlice(t,n)}return c.inherits(t,e),t.prototype.evaluate=function(e){e.enter(this.slice)},t.prototype.toJSON=function(){var e=this.slice,t=this.type,n=this._guid,r=e.head(),i=e.tail()
|
2752
2752
|
return{guid:n,type:t,args:[JSON.stringify(r.inspect()),JSON.stringify(i.inspect())]}},t}(t.Opcode)
|
2753
|
-
e.EnterOpcode=
|
2754
|
-
var
|
2755
|
-
e.ExitOpcode=
|
2756
|
-
var
|
2757
|
-
e.LabelOpcode=
|
2758
|
-
var
|
2753
|
+
e.EnterOpcode=b
|
2754
|
+
var _=function(e){function t(){e.apply(this,arguments),this.type="exit"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.exit()},t}(t.Opcode)
|
2755
|
+
e.ExitOpcode=_
|
2756
|
+
var w=function(e){function t(t){e.call(this),this.tag=r.CONSTANT_TAG,this.type="label",this.label=null,this.prev=null,this.next=null,t&&(this.label=t)}return c.inherits(t,e),t.prototype.evaluate=function(){},t.prototype.inspect=function(){return this.label+" ["+this._guid+"]"},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.inspect())]}},t}(t.Opcode)
|
2757
|
+
e.LabelOpcode=w
|
2758
|
+
var E=function(e){function t(t,n){e.call(this),this.debug=t,this.block=n,this.type="evaluate"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.invokeBlock(this.block,e.frame.getArgs())},t.prototype.toJSON=function(){var e=this._guid,t=this.type,n=this.debug,r=this.block,i=r.compiled,o=void 0
|
2759
2759
|
return o=i?i.ops.toArray().map(function(e){return e.toJSON()}):[{guid:null,type:"[ UNCOMPILED BLOCK ]"}],{guid:e,type:t,args:[n],children:o}},t}(t.Opcode)
|
2760
|
-
e.EvaluateOpcode=
|
2761
|
-
var
|
2762
|
-
e.ConstTest=
|
2763
|
-
var
|
2764
|
-
e.SimpleTest=
|
2765
|
-
var
|
2766
|
-
e.EnvironmentTest=
|
2767
|
-
var
|
2768
|
-
e.TestOpcode=
|
2769
|
-
var
|
2770
|
-
e.JumpOpcode=
|
2771
|
-
var
|
2760
|
+
e.EvaluateOpcode=E
|
2761
|
+
var O=function(e,t){return new r.ConstReference(!!e.value())}
|
2762
|
+
e.ConstTest=O
|
2763
|
+
var S=function(e,t){return e}
|
2764
|
+
e.SimpleTest=S
|
2765
|
+
var x=function(e,t){return t.toConditionalReference(e)}
|
2766
|
+
e.EnvironmentTest=x
|
2767
|
+
var C=function(e){function t(t){e.call(this),this.testFunc=t,this.type="test"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.frame.setCondition(this.testFunc(e.frame.getOperand(),e.env))},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:["$OPERAND",this.testFunc.name]}},t}(t.Opcode)
|
2768
|
+
e.TestOpcode=C
|
2769
|
+
var A=function(e){function t(t){e.call(this),this.target=t,this.type="jump"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.goto(this.target)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.target.inspect())]}},t}(t.Opcode)
|
2770
|
+
e.JumpOpcode=A
|
2771
|
+
var k=function(e){function t(){e.apply(this,arguments),this.type="jump-if"}return c.inherits(t,e),t.prototype.evaluate=function(t){var n=t.frame.getCondition()
|
2772
2772
|
if(r.isConst(n))n.value()&&e.prototype.evaluate.call(this,t)
|
2773
2773
|
else{var i=new r.ReferenceCache(n)
|
2774
|
-
i.peek()&&e.prototype.evaluate.call(this,t),t.updateWith(new
|
2775
|
-
e.JumpIfOpcode=
|
2776
|
-
var
|
2774
|
+
i.peek()&&e.prototype.evaluate.call(this,t),t.updateWith(new N(i))}},t}(A)
|
2775
|
+
e.JumpIfOpcode=k
|
2776
|
+
var T=function(e){function t(){e.apply(this,arguments),this.type="jump-unless"}return c.inherits(t,e),t.prototype.evaluate=function(t){var n=t.frame.getCondition()
|
2777
2777
|
if(r.isConst(n))n.value()||e.prototype.evaluate.call(this,t)
|
2778
2778
|
else{var i=new r.ReferenceCache(n)
|
2779
|
-
i.peek()||e.prototype.evaluate.call(this,t),t.updateWith(new
|
2780
|
-
e.JumpUnlessOpcode=
|
2781
|
-
var
|
2779
|
+
i.peek()||e.prototype.evaluate.call(this,t),t.updateWith(new N(i))}},t}(A)
|
2780
|
+
e.JumpUnlessOpcode=T
|
2781
|
+
var N=function(e){function t(t){e.call(this),this.type="assert",this.tag=t.tag,this.cache=t}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.cache
|
2782
2782
|
r.isModified(t.revalidate())&&e.throw()},t.prototype.toJSON=function(){var e=this.type,t=this._guid,n=this.cache,r=void 0
|
2783
2783
|
try{r=JSON.stringify(n.peek())}catch(e){r=String(n.peek())}return{guid:t,type:e,args:[],details:{expected:r}}},t}(t.UpdatingOpcode)
|
2784
|
-
e.Assert=
|
2785
|
-
var
|
2784
|
+
e.Assert=N
|
2785
|
+
var R=function(e){function t(t,n){e.call(this),this.target=n,this.type="jump-if-not-modified",this.tag=t,this.lastRevision=t.value()}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.tag,n=this.target,r=this.lastRevision
|
2786
2786
|
!e.alwaysRevalidate&&t.validate(r)&&e.goto(n)},t.prototype.didModify=function(){this.lastRevision=this.tag.value()},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.target.inspect())]}},t}(t.UpdatingOpcode)
|
2787
|
-
e.JumpIfNotModifiedOpcode=
|
2788
|
-
var
|
2789
|
-
e.DidModifyOpcode=
|
2790
|
-
function
|
2787
|
+
e.JumpIfNotModifiedOpcode=R
|
2788
|
+
var P=function(e){function t(t){e.call(this),this.target=t,this.type="did-modify",this.tag=r.CONSTANT_TAG}return c.inherits(t,e),t.prototype.evaluate=function(){this.target.didModify()},t}(t.UpdatingOpcode)
|
2789
|
+
e.DidModifyOpcode=P})
|
2790
|
+
s("glimmer-runtime/lib/compiler",["exports","glimmer-util","glimmer-runtime/lib/utils","glimmer-runtime/lib/syntax/core","glimmer-runtime/lib/compiled/blocks","glimmer-runtime/lib/compiled/expressions/function","glimmer-runtime/lib/compiled/opcodes/builder"],function(e,t,n,r,i,o,s){"use strict"
|
2791
|
+
function a(e,t,n,r){e.statement(t,r.symbolTable).compile(n,e,r.symbolTable)}function u(e,t){var n=new m(t)
|
2791
2792
|
return e.compile(n),n.compile()}function l(e){return e instanceof r.OpenElement||e instanceof r.OpenPrimitiveElement}e.compileLayout=u
|
2792
|
-
var
|
2793
|
-
e.default=
|
2794
|
-
var
|
2795
|
-
var r=new
|
2796
|
-
this.ops=new s.default(r,t.symbolTable,n)}return
|
2797
|
-
this.compileStatement(r,t),r=i}return t.toOpSeq()},t.prototype.append=function(e){this.ops.append(e)},t.prototype.getLocalSymbol=function(e){return this.symbolTable.getLocal(e)},t.prototype.getNamedSymbol=function(e){return this.symbolTable.getNamed(e)},t.prototype.getYieldSymbol=function(e){return this.symbolTable.getYield(e)},t}(
|
2798
|
-
e.EntryPointCompiler=
|
2799
|
-
var
|
2800
|
-
var r=new
|
2801
|
-
this.ops=new s.default(r,t.symbolTable,n)}return
|
2793
|
+
var p=function(){function e(e,t){this.block=e,this.env=t,this.current=e.program.head(),this.symbolTable=e.symbolTable}return e.prototype.compileStatement=function(e,t){this.env.statement(e,this.symbolTable).compile(t,this.env,this.symbolTable)},e}()
|
2794
|
+
e.default=p
|
2795
|
+
var h=function(e){function t(t,n){e.call(this,t,n)
|
2796
|
+
var r=new w(n,t.symbolTable)
|
2797
|
+
this.ops=new s.default(r,t.symbolTable,n)}return c.inherits(t,e),t.prototype.compile=function(){for(var e=this.block,t=this.ops,n=e.program,r=n.head();r;){var i=n.nextNode(r)
|
2798
|
+
this.compileStatement(r,t),r=i}return t.toOpSeq()},t.prototype.append=function(e){this.ops.append(e)},t.prototype.getLocalSymbol=function(e){return this.symbolTable.getLocal(e)},t.prototype.getNamedSymbol=function(e){return this.symbolTable.getNamed(e)},t.prototype.getYieldSymbol=function(e){return this.symbolTable.getYield(e)},t}(p)
|
2799
|
+
e.EntryPointCompiler=h
|
2800
|
+
var f=function(e){function t(t,n){e.call(this,t,n),this.block=t
|
2801
|
+
var r=new w(n,t.symbolTable)
|
2802
|
+
this.ops=new s.default(r,t.symbolTable,n)}return c.inherits(t,e),t.prototype.compile=function(){var e=this.block,t=this.ops,n=e.program,r=e.hasPositionalParameters()
|
2802
2803
|
r&&(t.pushChildScope(),t.bindPositionalArgsForBlock(e))
|
2803
2804
|
for(var i=n.head();i;){var o=n.nextNode(i)
|
2804
|
-
this.compileStatement(i,t),i=o}return r&&t.popScope(),t.toOpSeq()},t}(
|
2805
|
-
e.InlineBlockCompiler=
|
2806
|
-
var
|
2807
|
-
return new i.CompiledBlock(t,0)},
|
2805
|
+
this.compileStatement(i,t),i=o}return r&&t.popScope(),t.toOpSeq()},t}(p)
|
2806
|
+
e.InlineBlockCompiler=f
|
2807
|
+
var m=function(){function e(e){this.env=e}return e.prototype.empty=function(){this.inner=new d(this.env)},e.prototype.wrapLayout=function(e){this.inner=new g(this.env,e)},e.prototype.fromLayout=function(e){this.inner=new v(this.env,e)},e.prototype.compile=function(){return this.inner.compile()},c.createClass(e,[{key:"tag",get:function(){return this.inner.tag}},{key:"attrs",get:function(){return this.inner.attrs}}]),e}(),d=function(){function e(e){this.env=e}return e.prototype.compile=function(){var e=this.env,t=new w(e,null)
|
2808
|
+
return new i.CompiledBlock(t,0)},c.createClass(e,[{key:"tag",get:function(){throw new Error("Nope")}},{key:"attrs",get:function(){throw new Error("Nope")}}]),e}(),g=function(){function e(e,t){this.env=e,this.layout=t,this.tag=new y,this.attrs=new b}return e.prototype.compile=function(){var e=this.env,t=this.layout,n=t.symbolTable,r=new w(e,t.symbolTable),o=new s.default(r,t.symbolTable,e)
|
2808
2809
|
if(o.startLabels(),this.tag.isDynamic)o.putValue(this.tag.dynamicTagName),o.test("simple"),o.jumpUnless("BODY"),o.openDynamicPrimitiveElement(),o.didCreateElement(),this.attrs.buffer.forEach(function(n){return a(e,n,o,t)}),o.flushElement(),o.label("BODY")
|
2809
2810
|
else if(this.tag.isStatic){var u=this.tag.staticTagName
|
2810
|
-
o.openPrimitiveElement(u),o.didCreateElement(),this.attrs.buffer.forEach(function(n){return a(e,n,o,t)}),o.flushElement()}return o.preludeForLayout(t),t.program.forEachNode(function(n){return a(e,n,o,t)}),this.tag.isDynamic?(o.putValue(this.tag.dynamicTagName),o.test("simple"),o.jumpUnless("END"),o.closeElement(),o.label("END")):this.tag.isStatic&&o.closeElement(),o.didRenderLayout(),o.stopLabels(),new i.CompiledBlock(o.toOpSeq(),n.size)},e}(),
|
2811
|
+
o.openPrimitiveElement(u),o.didCreateElement(),this.attrs.buffer.forEach(function(n){return a(e,n,o,t)}),o.flushElement()}return o.preludeForLayout(t),t.program.forEachNode(function(n){return a(e,n,o,t)}),this.tag.isDynamic?(o.putValue(this.tag.dynamicTagName),o.test("simple"),o.jumpUnless("END"),o.closeElement(),o.label("END")):this.tag.isStatic&&o.closeElement(),o.didRenderLayout(),o.stopLabels(),new i.CompiledBlock(o.toOpSeq(),n.size)},e}(),v=function(){function e(e,t){this.env=e,this.layout=t,this.attrs=new b}return e.prototype.compile=function(){var e=this.env,t=this.layout,n=new w(e,t.symbolTable),r=new s.default(n,t.symbolTable,e)
|
2811
2812
|
r.startLabels(),r.preludeForLayout(t)
|
2812
2813
|
var o=this.attrs.buffer,u=!1
|
2813
|
-
return this.layout.program.forEachNode(function(n){!u&&l(n)?(r.openComponentElement(n.tag),r.didCreateElement(),r.shadowAttributes(),o.forEach(function(n){return a(e,n,r,t)}),u=!0):a(e,n,r,t)}),r.didRenderLayout(),r.stopLabels(),new i.CompiledBlock(r.toOpSeq(),t.symbolTable.size)},
|
2814
|
+
return this.layout.program.forEachNode(function(n){!u&&l(n)?(r.openComponentElement(n.tag),r.didCreateElement(),r.shadowAttributes(),o.forEach(function(n){return a(e,n,r,t)}),u=!0):a(e,n,r,t)}),r.didRenderLayout(),r.stopLabels(),new i.CompiledBlock(r.toOpSeq(),t.symbolTable.size)},c.createClass(e,[{key:"tag",get:function(){throw new Error("BUG: Cannot call `tag` on an UnwrappedBuilder")}}]),e}(),y=function(){function e(){this.isDynamic=null,this.isStatic=null,this.staticTagName=null,this.dynamicTagName=null}return e.prototype.static=function(e){this.isStatic=!0,this.staticTagName=e},e.prototype.dynamic=function(e){this.isDynamic=!0,this.dynamicTagName=o.default(e)},e}(),b=function(){function e(){this.buffer=[]}return e.prototype.static=function(e,t){this.buffer.push(new r.StaticAttr(e,t,null))},e.prototype.dynamic=function(e,t){this.buffer.push(new r.DynamicAttr(e,o.default(t),null,!1))},e}(),_=function(){function e(e){this.dsl=e,this.env=e.env}return e.prototype.static=function(e,t,r){var i=arguments.length<=3||void 0===arguments[3]?n.EMPTY_ARRAY:arguments[3]
|
2814
2815
|
this.dsl.unit(function(n){n.putComponentDefinition(e),n.openComponent(t,i),n.closeComponent()})},e.prototype.dynamic=function(e,t,r,i){var s=arguments.length<=4||void 0===arguments[4]?n.EMPTY_ARRAY:arguments[4]
|
2815
|
-
this.dsl.unit(function(n){n.putArgs(e),n.putValue(o.default(t)),n.test("simple"),n.enter("BEGIN","END"),n.label("BEGIN"),n.jumpUnless("END"),n.putDynamicComponentDefinition(),n.openComponent(r,s),n.closeComponent(),n.label("END"),n.exit()})},e}(),
|
2816
|
+
this.dsl.unit(function(n){n.putArgs(e),n.putValue(o.default(t)),n.test("simple"),n.enter("BEGIN","END"),n.label("BEGIN"),n.jumpUnless("END"),n.putDynamicComponentDefinition(),n.openComponent(r,s),n.closeComponent(),n.label("END"),n.exit()})},e}(),w=function(e){function t(t,n){e.call(this),this.env=t,this.symbolTable=n
|
2816
2817
|
var r=new s.default(this,n,t)
|
2817
|
-
this.component=new
|
2818
|
-
e.CompileIntoList=
|
2818
|
+
this.component=new _(r)}return c.inherits(t,e),t.prototype.getLocalSymbol=function(e){return this.symbolTable.getLocal(e)},t.prototype.hasLocalSymbol=function(e){return"number"==typeof this.symbolTable.getLocal(e)},t.prototype.getNamedSymbol=function(e){return this.symbolTable.getNamed(e)},t.prototype.hasNamedSymbol=function(e){return"number"==typeof this.symbolTable.getNamed(e)},t.prototype.getBlockSymbol=function(e){return this.symbolTable.getYield(e)},t.prototype.hasBlockSymbol=function(e){return"number"==typeof this.symbolTable.getYield(e)},t.prototype.getPartialArgsSymbol=function(){return this.symbolTable.getPartialArgs()},t.prototype.hasPartialArgsSymbol=function(){return"number"==typeof this.symbolTable.getPartialArgs()},t.prototype.toOpSeq=function(){return this},t}(t.LinkedList)
|
2819
|
+
e.CompileIntoList=w})
|
2820
|
+
s("glimmer-runtime/lib/component/interfaces",["exports"],function(e){"use strict"
|
2819
2821
|
function t(e){return"object"==typeof e&&e&&e[n]}e.isComponentDefinition=t
|
2820
2822
|
var n="COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]",r=function(e,t,n){this["COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]"]=!0,this.name=e,this.manager=t,this.ComponentClass=n}
|
2821
2823
|
e.ComponentDefinition=r}),s("glimmer-runtime/lib/dom/attribute-managers",["exports","glimmer-runtime/lib/dom/sanitized-values","glimmer-runtime/lib/dom/props","glimmer-runtime/lib/dom/helper","glimmer-runtime/lib/compiled/opcodes/content"],function(e,t,n,r,i){"use strict"
|
2822
2824
|
function o(e,t,i,o){var u=e.tagName,l=e.namespaceURI===r.SVG_NAMESPACE
|
2823
2825
|
if(l)return a(u,t)
|
2824
2826
|
var c=n.normalizeProperty(e,t),p=c.type,h=c.normalized
|
2825
|
-
return"attr"===p?a(u,h):s(u,h)}function s(e,n){return t.requiresSanitization(e,n)?new
|
2826
|
-
return i?e.getAttribute(a):"attr"===s?e.getAttribute(a):e[a]}function l(e){return e===!1||void 0===e||null===e?null:e===!0?"":"function"==typeof e?null:String(e)}function
|
2827
|
-
var
|
2828
|
-
|
2829
|
-
e.AttributeManager=
|
2830
|
-
var
|
2831
|
-
n?e.getDOM().removeAttributeNS(t,n,r):e.getDOM().removeAttribute(t,r)},t.prototype.updateAttribute=function(e,t,n,r){t[this.attr]=n,
|
2832
|
-
e.PropertyManager=
|
2833
|
-
var
|
2827
|
+
return"attr"===p?a(u,h):s(u,h)}function s(e,n){return t.requiresSanitization(e,n)?new g(n):h(e,n)?y:f(e,n)?_:new d(n)}function a(e,n){return t.requiresSanitization(e,n)?new w(n):new m(n)}function u(e,t){var i=e.namespaceURI===r.SVG_NAMESPACE,o=n.normalizeProperty(e,t),s=o.type,a=o.normalized
|
2828
|
+
return i?e.getAttribute(a):"attr"===s?e.getAttribute(a):e[a]}function l(e){return e===!1||void 0===e||null===e?null:e===!0?"":"function"==typeof e?null:String(e)}function p(e){return null===e||void 0===e}function h(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}function f(e,t){return"OPTION"===e&&"selected"===t}e.defaultManagers=o,e.defaultPropertyManagers=s,e.defaultAttributeManagers=a,e.readDOMAttr=u
|
2829
|
+
var m=function(){function e(e){this.attr=e}return e.prototype.setAttribute=function(e,t,n,r){var i=e.getAppendOperations(),o=l(n)
|
2830
|
+
p(o)||i.setAttribute(t,this.attr,o,r)},e.prototype.updateAttribute=function(e,t,n,r){null===n||void 0===n||n===!1?r?e.getDOM().removeAttributeNS(t,r,this.attr):e.getDOM().removeAttribute(t,this.attr):this.setAttribute(e,t,n)},e}()
|
2831
|
+
e.AttributeManager=m
|
2832
|
+
var d=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.setAttribute=function(e,t,n,r){p(n)||(t[this.attr]=n)},t.prototype.removeAttribute=function(e,t,n){var r=this.attr
|
2833
|
+
n?e.getDOM().removeAttributeNS(t,n,r):e.getDOM().removeAttribute(t,r)},t.prototype.updateAttribute=function(e,t,n,r){t[this.attr]=n,p(n)&&this.removeAttribute(e,t,r)},t}(m)
|
2834
|
+
e.PropertyManager=d
|
2835
|
+
var g=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.prototype.setAttribute=function(n,r,i){e.prototype.setAttribute.call(this,n,r,t.sanitizeAttributeValue(n,r,this.attr,i))},n.prototype.updateAttribute=function(n,r,i){e.prototype.updateAttribute.call(this,n,r,t.sanitizeAttributeValue(n,r,this.attr,i))},n}(d),v=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.setAttribute=function(e,t,n){var r=t
|
2834
2836
|
r.value=i.normalizeTextValue(n)},t.prototype.updateAttribute=function(e,t,n){var r=t,o=r.value,s=i.normalizeTextValue(n)
|
2835
|
-
o!==s&&(r.value=s)},t}(
|
2836
|
-
e.INPUT_VALUE_PROPERTY_MANAGER=
|
2837
|
-
var
|
2837
|
+
o!==s&&(r.value=s)},t}(m),y=new v("value")
|
2838
|
+
e.INPUT_VALUE_PROPERTY_MANAGER=y
|
2839
|
+
var b=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.setAttribute=function(e,t,n){if(null!==n&&void 0!==n&&n!==!1){var r=t
|
2838
2840
|
r.selected=!0}},t.prototype.updateAttribute=function(e,t,n){var r=t
|
2839
|
-
n?r.selected=!0:r.selected=!1},t}(
|
2840
|
-
e.OPTION_SELECTED_MANAGER=
|
2841
|
-
var
|
2841
|
+
n?r.selected=!0:r.selected=!1},t}(d),_=new b("selected")
|
2842
|
+
e.OPTION_SELECTED_MANAGER=_
|
2843
|
+
var w=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.prototype.setAttribute=function(n,r,i){e.prototype.setAttribute.call(this,n,r,t.sanitizeAttributeValue(n,r,this.attr,i))},n.prototype.updateAttribute=function(n,r,i,o){e.prototype.updateAttribute.call(this,n,r,t.sanitizeAttributeValue(n,r,this.attr,i))},n}(m)}),s("glimmer-runtime/lib/dom/helper",["exports","glimmer-runtime/lib/bounds","glimmer-runtime/lib/compat/inner-html-fix","glimmer-runtime/lib/compat/svg-inner-html-fix","glimmer-runtime/lib/compat/text-node-merging-fix","glimmer-runtime/lib/dom/interfaces"],function(e,t,n,r,i,o){"use strict"
|
2842
2844
|
function s(e){return m.test(e)}function a(e,t,n){for(var r=e.firstChild,i=null,o=r;o;)i=o,o=o.nextSibling,t.insertBefore(i,n)
|
2843
2845
|
return[r,i]}function u(e,n,r,i){var o=n,s=e,a=r,u=a?a.previousSibling:o.lastChild,l=void 0
|
2844
2846
|
if(null===i||""===i)return new t.ConcreteBounds(o,null,null)
|
@@ -2917,16 +2919,16 @@ if(t.push.apply(t,o),t.push(i+1+". "+e.type.toUpperCase()),e.args||e.details){if
|
|
2917
2919
|
a.length&&(e.args&&e.args.length&&t.push(", "),t.push(a.map(function(t){return t+"="+e.details[t]}).join(", ")))}t.push(")")}if(t.push("\n"),e.children&&e.children.length)for(var s=0;s<e.children.length;s++)r(e.children[s],t,n+1,s)}e.inspect=n
|
2918
2920
|
var i=function(){function e(){t.initializeGuid(this)}return e.prototype.toJSON=function(){return{guid:this._guid,type:this.type}},e}()
|
2919
2921
|
e.AbstractOpcode=i
|
2920
|
-
var o=function(e){function t(){e.apply(this,arguments),this.next=null,this.prev=null}return
|
2922
|
+
var o=function(e){function t(){e.apply(this,arguments),this.next=null,this.prev=null}return c.inherits(t,e),t}(i)
|
2921
2923
|
e.Opcode=o
|
2922
|
-
var s=function(e){function t(){e.apply(this,arguments),this.next=null,this.prev=null}return
|
2924
|
+
var s=function(e){function t(){e.apply(this,arguments),this.next=null,this.prev=null}return c.inherits(t,e),t}(i)
|
2923
2925
|
e.UpdatingOpcode=s}),s("glimmer-runtime/lib/partial",["exports"],function(e){"use strict"
|
2924
2926
|
var t=function(e,t){this.name=e,this.template=t}
|
2925
2927
|
e.PartialDefinition=t}),s("glimmer-runtime/lib/references",["exports","glimmer-reference"],function(e,t){"use strict"
|
2926
|
-
var n=function(e){function t(t){e.call(this,t)}return
|
2928
|
+
var n=function(e){function t(t){e.call(this,t)}return c.inherits(t,e),t.create=function(e){return void 0===e?o:null===e?s:e===!0?a:e===!1?u:"number"==typeof e?new i(e):new r(e)},t.prototype.get=function(e){return o},t}(t.ConstReference)
|
2927
2929
|
e.PrimitiveReference=n
|
2928
|
-
var r=function(e){function t(){e.apply(this,arguments),this.lengthReference=null}return
|
2929
|
-
return null===n&&(n=this.lengthReference=new i(this.inner.length)),n}return e.prototype.get.call(this,t)},t}(n),i=function(e){function t(t){e.call(this,t)}return
|
2930
|
+
var r=function(e){function t(){e.apply(this,arguments),this.lengthReference=null}return c.inherits(t,e),t.prototype.get=function(t){if("length"===t){var n=this.lengthReference
|
2931
|
+
return null===n&&(n=this.lengthReference=new i(this.inner.length)),n}return e.prototype.get.call(this,t)},t}(n),i=function(e){function t(t){e.call(this,t)}return c.inherits(t,e),t}(n),o=new i(void 0)
|
2930
2932
|
e.UNDEFINED_REFERENCE=o
|
2931
2933
|
var s=new i(null)
|
2932
2934
|
e.NULL_REFERENCE=s
|
@@ -2968,179 +2970,179 @@ var i="e1185d30-7cac-4b12-b26a-35327d905d92"
|
|
2968
2970
|
e.ATTRIBUTE=i
|
2969
2971
|
var o="0f3802314-d747-bbc5-0168-97875185c3rt"
|
2970
2972
|
e.ARGUMENT=o
|
2971
|
-
var s=function(e){function t(){e.apply(this,arguments),this["e1185d30-7cac-4b12-b26a-35327d905d92"]=!0}return
|
2973
|
+
var s=function(e){function t(){e.apply(this,arguments),this["e1185d30-7cac-4b12-b26a-35327d905d92"]=!0}return c.inherits(t,e),t}(n)
|
2972
2974
|
e.Attribute=s
|
2973
|
-
var a=function(e){function t(){e.apply(this,arguments),this["0f3802314-d747-bbc5-0168-97875185c3rt"]=!0}return
|
2975
|
+
var a=function(e){function t(){e.apply(this,arguments),this["0f3802314-d747-bbc5-0168-97875185c3rt"]=!0}return c.inherits(t,e),t}(n)
|
2974
2976
|
e.Argument=a}),s("glimmer-runtime/lib/syntax/builtins/each",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2975
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="each-statement"}return
|
2977
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="each-statement"}return c.inherits(t,e),t.prototype.compile=function(e,t){var n=this.args,r=this.args.blocks
|
2976
2978
|
e.block(n,function(e,t,n){e.putIterator(),r.inverse?e.jumpUnless("ELSE"):e.jumpUnless(n),e.iter(function(e,t,n){e.evaluate("default",r.default)}),r.inverse&&(e.jump(n),e.label("ELSE"),e.evaluate("inverse",r.inverse))})},t}(t.Statement)
|
2977
2979
|
e.default=n}),s("glimmer-runtime/lib/syntax/builtins/if",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2978
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="if-statement"}return
|
2980
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="if-statement"}return c.inherits(t,e),t.prototype.compile=function(e){var t=this.args,n=this.args.blocks
|
2979
2981
|
e.putArgs(t),e.test("environment"),e.block(null,function(e,t,r){n.inverse?(e.jumpUnless("ELSE"),e.evaluate("default",n.default),e.jump(r),e.label("ELSE"),e.evaluate("inverse",n.inverse)):(e.jumpUnless(r),e.evaluate("default",n.default))})},t}(t.Statement)
|
2980
2982
|
e.default=n}),s("glimmer-runtime/lib/syntax/builtins/in-element",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2981
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="in-element-statement"}return
|
2983
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="in-element-statement"}return c.inherits(t,e),t.prototype.compile=function(e,t){var n=this.args,r=this.args.blocks
|
2982
2984
|
e.putArgs(n),e.test("simple"),e.block(null,function(e,t,n){e.jumpUnless(n),e.pushRemoteElement(),e.evaluate("default",r.default),e.popRemoteElement()})},t}(t.Statement)
|
2983
2985
|
e.default=n}),s("glimmer-runtime/lib/syntax/builtins/partial",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2984
|
-
var n=function(e){function t(t){e.call(this),this.name=t,this.type="static-partial"}return
|
2986
|
+
var n=function(e){function t(t){e.call(this),this.name=t,this.type="static-partial"}return c.inherits(t,e),t.prototype.compile=function(e,t,n){var r=String(this.name.inner())
|
2985
2987
|
if(!t.hasPartial(r,n))throw new Error("Compile Error: "+r+" is not a partial")
|
2986
2988
|
var i=t.lookupPartial(r,n)
|
2987
2989
|
e.putPartialDefinition(i),e.evaluatePartial()},t}(t.Statement)
|
2988
2990
|
e.StaticPartialSyntax=n
|
2989
|
-
var r=function(e){function t(t){e.call(this),this.name=t,this.type="dynamic-partial"}return
|
2991
|
+
var r=function(e){function t(t){e.call(this),this.name=t,this.type="dynamic-partial"}return c.inherits(t,e),t.prototype.compile=function(e){var t=this.name
|
2990
2992
|
e.startLabels(),e.putValue(t),e.test("simple"),e.enter("BEGIN","END"),e.label("BEGIN"),e.jumpUnless("END"),e.putDynamicPartialDefinition(),e.evaluatePartial(),e.label("END"),e.exit(),e.stopLabels()},t}(t.Statement)
|
2991
2993
|
e.DynamicPartialSyntax=r}),s("glimmer-runtime/lib/syntax/builtins/unless",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2992
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="unless-statement"}return
|
2994
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="unless-statement"}return c.inherits(t,e),t.prototype.compile=function(e,t){var n=this.args,r=this.args.blocks
|
2993
2995
|
e.putArgs(n),e.test("environment"),e.block(null,function(e){r.inverse?(e.jumpIf("ELSE"),e.evaluate("default",r.default),e.jump("END"),e.label("ELSE"),e.evaluate("inverse",r.inverse)):(e.jumpIf("END"),e.evaluate("default",r.default))})},t}(t.Statement)
|
2994
2996
|
e.default=n}),s("glimmer-runtime/lib/syntax/builtins/with-dynamic-vars",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2995
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="with-dynamic-vars-statement"}return
|
2997
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="with-dynamic-vars-statement"}return c.inherits(t,e),t.prototype.compile=function(e,t){var n=this.args,r=this.args.blocks
|
2996
2998
|
e.unit(function(e){e.putArgs(n),e.pushDynamicScope(),e.bindDynamicScope(n.named.keys),e.evaluate("default",r.default),e.popDynamicScope()})},t}(t.Statement)
|
2997
2999
|
e.default=n}),s("glimmer-runtime/lib/syntax/builtins/with",["exports","glimmer-runtime/lib/syntax"],function(e,t){"use strict"
|
2998
|
-
var n=function(e){function t(t){e.call(this),this.args=t,this.type="with-statement"}return
|
3000
|
+
var n=function(e){function t(t){e.call(this),this.args=t,this.type="with-statement"}return c.inherits(t,e),t.prototype.compile=function(e,t){var n=this.args,r=this.args.blocks
|
2999
3001
|
e.putArgs(n),e.test("environment"),e.block(null,function(e,t,n){r.inverse?(e.jumpUnless("ELSE"),e.evaluate("default",r.default),e.jump(n),e.label("ELSE"),e.evaluate("inverse",r.inverse)):(e.jumpUnless(n),e.evaluate("default",r.default))})},t}(t.Statement)
|
3000
|
-
e.default=n}),s("glimmer-runtime/lib/syntax/core",["exports","glimmer-runtime/lib/syntax","glimmer-runtime/lib/syntax/builtins/partial","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/compiled/opcodes/vm","glimmer-runtime/lib/compiled/opcodes/component","glimmer-runtime/lib/compiled/opcodes/dom","glimmer-runtime/lib/syntax/expressions","glimmer-runtime/lib/compiled/expressions/args","glimmer-runtime/lib/compiled/expressions/value","glimmer-runtime/lib/compiled/expressions/lookups","glimmer-runtime/lib/compiled/expressions/has-block","glimmer-runtime/lib/compiled/expressions/helper","glimmer-runtime/lib/compiled/expressions/concat","glimmer-runtime/lib/utils","glimmer-runtime/lib/compiled/opcodes/content"],function(e,t,n,r,i,o,s,a,u,l,
|
3001
|
-
function
|
3002
|
-
return new t(i
|
3002
|
+
e.default=n}),s("glimmer-runtime/lib/syntax/core",["exports","glimmer-runtime/lib/syntax","glimmer-runtime/lib/syntax/builtins/partial","glimmer-runtime/lib/opcodes","glimmer-runtime/lib/compiled/opcodes/vm","glimmer-runtime/lib/compiled/opcodes/component","glimmer-runtime/lib/compiled/opcodes/dom","glimmer-runtime/lib/syntax/expressions","glimmer-runtime/lib/compiled/expressions/args","glimmer-runtime/lib/compiled/expressions/value","glimmer-runtime/lib/compiled/expressions/lookups","glimmer-runtime/lib/compiled/expressions/has-block","glimmer-runtime/lib/compiled/expressions/helper","glimmer-runtime/lib/compiled/expressions/concat","glimmer-runtime/lib/utils","glimmer-runtime/lib/compiled/opcodes/content"],function(e,t,n,r,i,o,s,a,u,l,p,h,f,m,d,g){"use strict"
|
3003
|
+
function v(e){return"value"===e.type}var y=function(e){function t(t,n){e.call(this),this.path=t,this.args=n,this.type="block"}return c.inherits(t,e),t.fromSpec=function(e,n,r){var i=e[1],o=e[2],s=e[3],a=e[4],u=e[5],l=r.blockFor(n,a),c="number"==typeof u?r.blockFor(n,u):null,p=Q.fromSpec(l,c)
|
3004
|
+
return new t(i,$.fromSpec(o,s,p))},t.build=function(e,t){return new this(e,t)},t.prototype.scan=function(e){var t=this.args.blocks,n=t.default,r=t.inverse
|
3003
3005
|
return n&&e.addChild(n),r&&e.addChild(r),this},t.prototype.compile=function(e){throw new Error("SyntaxError")},t}(t.Statement)
|
3004
|
-
e.Block=
|
3005
|
-
var
|
3006
|
-
e.call(this),this.value=n,this.trustingMorph=r}return
|
3007
|
-
return new
|
3008
|
-
e.Append=
|
3009
|
-
var
|
3010
|
-
e.OptimizedAppend=
|
3011
|
-
var
|
3012
|
-
this.trustingMorph?e.append(new
|
3013
|
-
e.UnoptimizedAppend=
|
3014
|
-
var
|
3015
|
-
return new t({path:n,args
|
3006
|
+
e.Block=y
|
3007
|
+
var b=function(e){function t(t){var n=t.value,r=t.trustingMorph
|
3008
|
+
e.call(this),this.value=n,this.trustingMorph=r}return c.inherits(t,e),t.fromSpec=function(e){var t=e[1],n=e[2]
|
3009
|
+
return new _({value:a.default(t),trustingMorph:n})},t}(t.Statement)
|
3010
|
+
e.Append=b
|
3011
|
+
var _=function(e){function t(){e.apply(this,arguments),this.type="optimized-append"}return c.inherits(t,e),t.prototype.deopt=function(){return new w(this)},t.prototype.compile=function(e,t,n){e.append(new i.PutValueOpcode(this.value.compile(e,t,n))),this.trustingMorph?e.append(new g.OptimizedTrustingAppendOpcode):e.append(new g.OptimizedCautiousAppendOpcode)},t}(b)
|
3012
|
+
e.OptimizedAppend=_
|
3013
|
+
var w=function(e){function t(){e.apply(this,arguments),this.type="unoptimized-append"}return c.inherits(t,e),t.prototype.compile=function(e,t,n){var r=this.value.compile(e,t,n)
|
3014
|
+
this.trustingMorph?e.append(new g.GuardedTrustingAppendOpcode(r,n)):e.append(new g.GuardedCautiousAppendOpcode(r,n))},t}(b)
|
3015
|
+
e.UnoptimizedAppend=w
|
3016
|
+
var E="c0420397-8ff1-4241-882b-4b7a107c9632",O=function(e){function t(t){e.call(this),this["c0420397-8ff1-4241-882b-4b7a107c9632"]=!0,this.type="modifier",this.path=t.path,this.args=t.args}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2],i=e[3]
|
3017
|
+
return new t({path:n,args:$.fromSpec(r,i,J)})},t.build=function(e,n){return new t({path:e,params:n.params,hash:n.hash})},t.prototype.compile=function(e,t,n){var r=this.args.compile(e,t,n)
|
3016
3018
|
if(!t.hasModifier(this.path,n))throw new Error("Compile Error: "+this.path.join(".")+" is not a modifier")
|
3017
3019
|
e.append(new s.ModifierOpcode(this.path[0],t.lookupModifier(this.path,n),r))},t}(t.Statement)
|
3018
|
-
e.Modifier=
|
3019
|
-
var
|
3020
|
+
e.Modifier=O
|
3021
|
+
var S=function(e){function t(t,n){e.call(this),this.name=t,this.value=n,this.type="static-arg"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2]
|
3020
3022
|
return new t(n,r)},t.build=function(e,t){arguments.length<=2||void 0===arguments[2]?null:arguments[2]
|
3021
|
-
return new this(e,t)},t.prototype.compile=function(){throw new Error('Cannot compiler StaticArg "'+this.name+'" as it is a delegate for ValueSyntax<string>.')},t.prototype.valueSyntax=function(){return
|
3022
|
-
e.StaticArg=
|
3023
|
-
var
|
3024
|
-
e.call(this),this.name=t,this.value=n,this.namespace=r,this.type="dynamic-arg"}return
|
3023
|
+
return new this(e,t)},t.prototype.compile=function(){throw new Error('Cannot compiler StaticArg "'+this.name+'" as it is a delegate for ValueSyntax<string>.')},t.prototype.valueSyntax=function(){return B.build(this.value)},t}(t.Argument)
|
3024
|
+
e.StaticArg=S
|
3025
|
+
var x=function(e){function t(t,n){var r=arguments.length<=2||void 0===arguments[2]?null:arguments[2]
|
3026
|
+
e.call(this),this.name=t,this.value=n,this.namespace=r,this.type="dynamic-arg"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2]
|
3025
3027
|
return new t(n,a.default(r))},t.build=function(e,t){return new this(e,t)},t.prototype.compile=function(){throw new Error('Cannot compile DynamicArg for "'+this.name+'" as it is delegate for ExpressionSyntax<Opaque>.')},t.prototype.valueSyntax=function(){return this.value},t}(t.Argument)
|
3026
|
-
e.DynamicArg=
|
3027
|
-
var
|
3028
|
-
return new
|
3029
|
-
return new
|
3030
|
-
e.TrustingAttr=
|
3031
|
-
var
|
3028
|
+
e.DynamicArg=x
|
3029
|
+
var C=function(){function e(){}return e.fromSpec=function(e){var t=e[1],n=e[2],r=e[3]
|
3030
|
+
return new k(t,a.default(n),r,!0)},e.build=function(e,t,n){var r=arguments.length<=3||void 0===arguments[3]?null:arguments[3]
|
3031
|
+
return new k(e,t,r,n)},e.prototype.compile=function(){throw new Error("Attempting to compile a TrustingAttr which is just a delegate for DynamicAttr.")},e}()
|
3032
|
+
e.TrustingAttr=C
|
3033
|
+
var A=function(e){function t(t,n,r){e.call(this),this.name=t,this.value=n,this.namespace=r,this["e1185d30-7cac-4b12-b26a-35327d905d92"]=!0,this.type="static-attr",this.isTrusting=!1}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2],i=e[3]
|
3032
3034
|
return new t(n,r,i)},t.build=function(e,t){var n=arguments.length<=2||void 0===arguments[2]?null:arguments[2]
|
3033
|
-
return new this(e,t,n)},t.prototype.compile=function(e){e.append(new s.StaticAttrOpcode(this.namespace,this.name,this.value))},t.prototype.valueSyntax=function(){return
|
3034
|
-
e.StaticAttr=
|
3035
|
-
var
|
3035
|
+
return new this(e,t,n)},t.prototype.compile=function(e){e.append(new s.StaticAttrOpcode(this.namespace,this.name,this.value))},t.prototype.valueSyntax=function(){return B.build(this.value)},t}(t.Attribute)
|
3036
|
+
e.StaticAttr=A
|
3037
|
+
var k=function(e){function t(t,n,r,i){void 0===r&&(r=void 0),e.call(this),this.name=t,this.value=n,this.namespace=r,this.isTrusting=i,this["e1185d30-7cac-4b12-b26a-35327d905d92"]=!0,this.type="dynamic-attr"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2],i=e[3]
|
3036
3038
|
return new t(n,a.default(r),i)},t.build=function(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3]
|
3037
3039
|
return new this(e,t,r,n)},t.prototype.compile=function(e,t,n){var r=this.namespace,o=this.value
|
3038
3040
|
e.append(new i.PutValueOpcode(o.compile(e,t,n))),r?e.append(new s.DynamicAttrNSOpcode(this.name,this.namespace,this.isTrusting)):e.append(new s.DynamicAttrOpcode(this.name,this.isTrusting))},t.prototype.valueSyntax=function(){return this.value},t}(t.Attribute)
|
3039
|
-
e.DynamicAttr=
|
3040
|
-
var
|
3041
|
-
e.FlushElement=
|
3042
|
-
var
|
3043
|
-
e.CloseElement=
|
3044
|
-
var
|
3041
|
+
e.DynamicAttr=k
|
3042
|
+
var T=function(e){function t(){e.apply(this,arguments),this.type="flush-element"}return c.inherits(t,e),t.fromSpec=function(){return new t},t.build=function(){return new this},t.prototype.compile=function(e){e.append(new s.FlushElementOpcode)},t}(t.Statement)
|
3043
|
+
e.FlushElement=T
|
3044
|
+
var N=function(e){function t(){e.apply(this,arguments),this.type="close-element"}return c.inherits(t,e),t.fromSpec=function(){return new t},t.build=function(){return new this},t.prototype.compile=function(e){e.append(new s.CloseElementOpcode)},t}(t.Statement)
|
3045
|
+
e.CloseElement=N
|
3046
|
+
var R=function(e){function t(t){e.call(this),this.content=t,this.type="text"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1]
|
3045
3047
|
return new t(n)},t.build=function(e){return new this(e)},t.prototype.compile=function(e){e.text(this.content)},t}(t.Statement)
|
3046
|
-
e.Text=
|
3047
|
-
var
|
3048
|
+
e.Text=R
|
3049
|
+
var P=function(e){function t(t){e.call(this),this.comment=t,this.type="comment"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1]
|
3048
3050
|
return new t(n)},t.build=function(e){return new this(e)},t.prototype.compile=function(e){e.comment(this.comment)},t}(t.Statement)
|
3049
|
-
e.Comment=
|
3050
|
-
var
|
3051
|
+
e.Comment=P
|
3052
|
+
var D=function(e){function n(t,n,r){e.call(this),this.tag=t,this.blockParams=n,this.symbolTable=r,this.type="open-element"}return c.inherits(n,e),n.fromSpec=function(e,t){var r=e[1],i=e[2]
|
3051
3053
|
return new n(r,i,t)},n.build=function(e,t,n){return new this(e,t,n)},n.prototype.scan=function(e){var t=this.tag
|
3052
3054
|
if(e.env.hasComponentDefinition([t],this.symbolTable)){var n=this.parameters(e),r=n.args,i=n.attrs
|
3053
3055
|
e.startBlock(this.blockParams),this.tagContents(e)
|
3054
3056
|
var o=e.endBlock(this.blockParams)
|
3055
|
-
return r.blocks=
|
3056
|
-
return new
|
3057
|
+
return r.blocks=Q.fromSpec(o),new I(t,i,r)}return new L(t)},n.prototype.compile=function(e,t){e.append(new s.OpenPrimitiveElementOpcode(this.tag))},n.prototype.toIdentity=function(){var e=this.tag
|
3058
|
+
return new L(e)},n.prototype.parameters=function(e){for(var n=e.next(),r=[],i=[],o=[];!(n instanceof T);){if(n[E])throw new Error("Compile Error: Element modifiers are not allowed in components")
|
3057
3059
|
var s=n
|
3058
3060
|
if(n[t.ATTRIBUTE])r.push(s.name),i.push(s.name),o.push(s.valueSyntax())
|
3059
3061
|
else{if(!n[t.ARGUMENT])throw new Error("Expected FlushElement, but got ${current}")
|
3060
|
-
i.push(s.name),o.push(s.valueSyntax())}n=e.next()}return{args
|
3061
|
-
if(r instanceof
|
3062
|
-
e.addStatement(r),(r instanceof n||r instanceof
|
3063
|
-
e.OpenElement=
|
3064
|
-
var
|
3062
|
+
i.push(s.name),o.push(s.valueSyntax())}n=e.next()}return{args:$.fromNamedArgs(ee.build(i,o)),attrs:r}},n.prototype.tagContents=function(e){for(var t=1;;){var r=e.next()
|
3063
|
+
if(r instanceof N&&0===--t)break
|
3064
|
+
e.addStatement(r),(r instanceof n||r instanceof L)&&t++}},n}(t.Statement)
|
3065
|
+
e.OpenElement=D
|
3066
|
+
var I=function(e){function t(t,n,r){e.call(this),this.tag=t,this.attrs=n,this.args=r,this.type="component"}return c.inherits(t,e),t.prototype.compile=function(e,t,n){var r=t.getComponentDefinition([this.tag],n),i=this.args.compile(e,t,n),s=this.attrs
|
3065
3067
|
e.append(new o.PutComponentDefinitionOpcode(r)),e.append(new o.OpenComponentOpcode(i,s)),e.append(new o.CloseComponentOpcode)},t}(t.Statement)
|
3066
|
-
e.Component=
|
3067
|
-
var
|
3068
|
-
e.OpenPrimitiveElement=
|
3069
|
-
var
|
3070
|
-
return new t(n,i)},t.build=function(e,t){var n
|
3068
|
+
e.Component=I
|
3069
|
+
var L=function(e){function t(t){e.call(this),this.tag=t,this.type="open-primitive-element"}return c.inherits(t,e),t.build=function(e){return new this(e)},t.prototype.compile=function(e){e.append(new s.OpenPrimitiveElementOpcode(this.tag))},t}(t.Statement)
|
3070
|
+
e.OpenPrimitiveElement=L
|
3071
|
+
var M=function(e){function t(t,n){e.call(this),this.to=t,this.args=n,this.type="yield"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2],i=$.fromSpec(r,null,J)
|
3072
|
+
return new t(n,i)},t.build=function(e,t){var n=$.fromPositionalArgs(Z.build(e))
|
3071
3073
|
return new this(t,n)},t.prototype.compile=function(e,t,n){var r=this.to,i=this.args.compile(e,t,n)
|
3072
|
-
if(e.hasBlockSymbol(r)){var o=e.getBlockSymbol(r),s=new
|
3073
|
-
e.append(new
|
3074
|
-
var o=e.getPartialArgsSymbol(),s=new
|
3075
|
-
e.append(new
|
3076
|
-
e.Yield=
|
3077
|
-
var
|
3078
|
-
return
|
3079
|
-
e.Partial=
|
3080
|
-
var
|
3081
|
-
t&&(n=this.args.evaluate(e)),e.pushCallerScope(),t&&e.invokeBlock(t,n)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,details:{block:this.inner.toJSON(),positional:this.args.positional.toJSON(),named:this.args.named.toJSON()}}},t}(r.Opcode),
|
3082
|
-
e.CloseBlockOpcode=
|
3083
|
-
var
|
3084
|
-
e.Value=
|
3085
|
-
var
|
3074
|
+
if(e.hasBlockSymbol(r)){var o=e.getBlockSymbol(r),s=new h.CompiledGetBlockBySymbol(o,r)
|
3075
|
+
e.append(new F(s,i)),e.append(new U)}else{if(!e.hasPartialArgsSymbol())throw new Error("[BUG] ${to} is not a valid block name.")
|
3076
|
+
var o=e.getPartialArgsSymbol(),s=new h.CompiledInPartialGetBlock(o,r)
|
3077
|
+
e.append(new F(s,i)),e.append(new U)}},t}(t.Statement)
|
3078
|
+
e.Yield=M
|
3079
|
+
var j=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.fromSpec=function(e){var t=e[1],r=a.default(t)
|
3080
|
+
return v(r)?new n.StaticPartialSyntax(r):new n.DynamicPartialSyntax(r)},t}(t.Statement)
|
3081
|
+
e.Partial=j
|
3082
|
+
var F=function(e){function t(t,n){e.call(this),this.inner=t,this.args=n,this.type="open-block"}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.inner.evaluate(e),n=void 0
|
3083
|
+
t&&(n=this.args.evaluate(e)),e.pushCallerScope(),t&&e.invokeBlock(t,n)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,details:{block:this.inner.toJSON(),positional:this.args.positional.toJSON(),named:this.args.named.toJSON()}}},t}(r.Opcode),U=function(e){function t(){e.apply(this,arguments),this.type="close-block"}return c.inherits(t,e),t.prototype.evaluate=function(e){e.popScope()},t}(r.Opcode)
|
3084
|
+
e.CloseBlockOpcode=U
|
3085
|
+
var B=function(e){function t(t){e.call(this),this.value=t,this.type="value"}return c.inherits(t,e),t.fromSpec=function(e){return new t(e)},t.build=function(e){return new this(e)},t.prototype.inner=function(){return this.value},t.prototype.compile=function(e){return new l.default(this.value)},t}(t.Expression)
|
3086
|
+
e.Value=B
|
3087
|
+
var z=function(e){function t(t){e.call(this),this.parts=t,this.type="get-argument"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1]
|
3086
3088
|
return new t(n)},t.build=function(e){return new this(e.split("."))},t.prototype.compile=function(e){var t=this.parts,n=t[0]
|
3087
|
-
if(e.hasNamedSymbol(n)){var r=e.getNamedSymbol(n),i=t.slice(1),o=new
|
3088
|
-
return
|
3089
|
-
return
|
3090
|
-
e.GetArgument=
|
3091
|
-
var
|
3089
|
+
if(e.hasNamedSymbol(n)){var r=e.getNamedSymbol(n),i=t.slice(1),o=new p.CompiledSymbol(r,n)
|
3090
|
+
return p.default.create(o,i)}if(e.hasPartialArgsSymbol()){var r=e.getPartialArgsSymbol(),i=t.slice(1),o=new p.CompiledInPartialName(r,n)
|
3091
|
+
return p.default.create(o,i)}throw new Error("[BUG] @"+this.parts.join(".")+" is not a valid lookup path.")},t}(t.Expression)
|
3092
|
+
e.GetArgument=z
|
3093
|
+
var V=function(e){function t(t){e.call(this),this.parts=t,this.type="ref"}return c.inherits(t,e),t.build=function(e){var t=e.split(".")
|
3092
3094
|
return"this"===t[0]&&(t[0]=null),new this(t)},t.prototype.compile=function(e){var t=this.parts,n=t[0]
|
3093
|
-
if(null===n){var r=new
|
3094
|
-
return
|
3095
|
-
return
|
3096
|
-
return
|
3097
|
-
e.Ref=
|
3098
|
-
var
|
3099
|
-
return new this(new
|
3100
|
-
e.Get=
|
3101
|
-
var
|
3102
|
-
return new this(new
|
3103
|
-
return t.hasHelper(r.parts,n)?new
|
3104
|
-
e.Unknown=
|
3105
|
-
var
|
3106
|
-
return new t(new
|
3107
|
-
return new
|
3108
|
-
e.Helper=
|
3109
|
-
var
|
3095
|
+
if(null===n){var r=new p.CompiledSelf,i=t.slice(1)
|
3096
|
+
return p.default.create(r,i)}if(e.hasLocalSymbol(n)){var o=e.getLocalSymbol(n),i=t.slice(1),r=new p.CompiledSymbol(o,n)
|
3097
|
+
return p.default.create(r,i)}var r=new p.CompiledSelf
|
3098
|
+
return p.default.create(r,t)},t}(t.Expression)
|
3099
|
+
e.Ref=V
|
3100
|
+
var q=function(e){function t(t){e.call(this),this.ref=t,this.type="get"}return c.inherits(t,e),t.fromSpec=function(e){var t=e[1]
|
3101
|
+
return new this(new V(t))},t.build=function(e){return new this(V.build(e))},t.prototype.compile=function(e){return this.ref.compile(e)},t}(t.Expression)
|
3102
|
+
e.Get=q
|
3103
|
+
var H=function(e){function t(t){e.call(this),this.ref=t,this.type="unknown"}return c.inherits(t,e),t.fromSpec=function(e){var t=e[1]
|
3104
|
+
return new this(new V(t))},t.build=function(e){return new this(V.build(e))},t.prototype.compile=function(e,t,n){var r=this.ref
|
3105
|
+
return t.hasHelper(r.parts,n)?new f.default(r.parts,t.lookupHelper(r.parts,n),u.CompiledArgs.empty(),n):this.ref.compile(e)},t}(t.Expression)
|
3106
|
+
e.Unknown=H
|
3107
|
+
var G=function(e){function t(t,n){e.call(this),this.ref=t,this.args=n,this.type="helper"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1],r=e[2],i=e[3]
|
3108
|
+
return new t(new V(n),$.fromSpec(r,i,J))},t.build=function(e,t,n){return new this(V.build(e),$.build(t,n,J))},t.prototype.compile=function(e,t,n){if(t.hasHelper(this.ref.parts,n)){var r=this.args,i=this.ref
|
3109
|
+
return new f.default(i.parts,t.lookupHelper(i.parts,n),r.compile(e,t,n),n)}throw new Error("Compile Error: "+this.ref.parts.join(".")+" is not a helper")},t}(t.Expression)
|
3110
|
+
e.Helper=G
|
3111
|
+
var W=function(e){function t(t){e.call(this),this.blockName=t,this.type="has-block"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1]
|
3110
3112
|
return new t(n)},t.build=function(e){return new this(e)},t.prototype.compile=function(e,t){var n=this.blockName
|
3111
|
-
if(e.hasBlockSymbol(n)){var r=e.getBlockSymbol(n),i=new
|
3112
|
-
return new
|
3113
|
-
return new
|
3114
|
-
e.HasBlock=
|
3115
|
-
var
|
3113
|
+
if(e.hasBlockSymbol(n)){var r=e.getBlockSymbol(n),i=new h.CompiledGetBlockBySymbol(r,n)
|
3114
|
+
return new h.default(i)}if(e.hasPartialArgsSymbol()){var r=e.getPartialArgsSymbol(),i=new h.CompiledInPartialGetBlock(r,n)
|
3115
|
+
return new h.default(i)}throw new Error("[BUG] ${blockName} is not a valid block name.")},t}(t.Expression)
|
3116
|
+
e.HasBlock=W
|
3117
|
+
var K=function(e){function t(t){e.call(this),this.blockName=t,this.type="has-block-params"}return c.inherits(t,e),t.fromSpec=function(e){var n=e[1]
|
3116
3118
|
return new t(n)},t.build=function(e){return new this(e)},t.prototype.compile=function(e,t){var n=this.blockName
|
3117
|
-
if(e.hasBlockSymbol(n)){var r=e.getBlockSymbol(n),i=new
|
3118
|
-
return new
|
3119
|
-
return new
|
3120
|
-
e.HasBlockParams=
|
3121
|
-
var
|
3122
|
-
return new e(n.map(a.default))},e.build=function(e){return new this(e)},e.prototype.compile=function(e,t,n){return new
|
3123
|
-
e.Concat=
|
3124
|
-
var
|
3119
|
+
if(e.hasBlockSymbol(n)){var r=e.getBlockSymbol(n),i=new h.CompiledGetBlockBySymbol(r,n)
|
3120
|
+
return new h.CompiledHasBlockParams(i)}if(e.hasPartialArgsSymbol()){var r=e.getPartialArgsSymbol(),i=new h.CompiledInPartialGetBlock(r,n)
|
3121
|
+
return new h.CompiledHasBlockParams(i)}throw new Error("[BUG] ${blockName} is not a valid block name.")},t}(t.Expression)
|
3122
|
+
e.HasBlockParams=K
|
3123
|
+
var Y=function(){function e(e){this.parts=e,this.type="concat"}return e.fromSpec=function(t){var n=t[1]
|
3124
|
+
return new e(n.map(a.default))},e.build=function(e){return new this(e)},e.prototype.compile=function(e,t,n){return new m.default(this.parts.map(function(r){return r.compile(e,t,n)}))},e}()
|
3125
|
+
e.Concat=Y
|
3126
|
+
var Q=function(){function e(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1]
|
3125
3127
|
this.type="blocks",this.default=e,this.inverse=t}return e.fromSpec=function(t){var n=arguments.length<=1||void 0===arguments[1]?null:arguments[1]
|
3126
|
-
return new e(t,n)},e.empty=function(){return
|
3127
|
-
e.Blocks=
|
3128
|
-
var
|
3129
|
-
e.EMPTY_BLOCKS=
|
3130
|
-
var
|
3131
|
-
return new e(t,
|
3132
|
-
return new e(
|
3128
|
+
return new e(t,n)},e.empty=function(){return J},e}()
|
3129
|
+
e.Blocks=Q
|
3130
|
+
var J=new(function(e){function t(){e.call(this,null,null)}return c.inherits(t,e),t}(Q))
|
3131
|
+
e.EMPTY_BLOCKS=J
|
3132
|
+
var $=function(){function e(e,t,n){this.positional=e,this.named=t,this.blocks=n,this.type="args"}return e.empty=function(){return ne},e.fromSpec=function(t,n,r){return new e(Z.fromSpec(t),ee.fromSpec(n),r)},e.fromPositionalArgs=function(t){var n=arguments.length<=1||void 0===arguments[1]?J:arguments[1]
|
3133
|
+
return new e(t,te,n)},e.fromNamedArgs=function(t){var n=arguments.length<=1||void 0===arguments[1]?J:arguments[1]
|
3134
|
+
return new e(X,t,n)},e.build=function(e,t,n){return e===X&&t===te&&n===J?ne:new this(e,t,n)},e.prototype.compile=function(e,t,n){var r=this.positional,i=this.named,o=this.blocks
|
3133
3135
|
return u.CompiledArgs.create(r.compile(e,t,n),i.compile(e,t,n),o)},e}()
|
3134
|
-
e.Args
|
3135
|
-
var
|
3136
|
-
e.PositionalArgs
|
3137
|
-
var
|
3136
|
+
e.Args=$
|
3137
|
+
var Z=function(){function e(e){this.values=e,this.type="positional",this.length=e.length}return e.empty=function(){return X},e.fromSpec=function(t){return t&&0!==t.length?new e(t.map(a.default)):X},e.build=function(e){return 0===e.length?X:new this(e)},e.prototype.slice=function(t,n){return e.build(this.values.slice(t,n))},e.prototype.at=function(e){return this.values[e]},e.prototype.compile=function(e,t,n){return u.CompiledPositionalArgs.create(this.values.map(function(r){return r.compile(e,t,n)}))},e}()
|
3138
|
+
e.PositionalArgs=Z
|
3139
|
+
var X=new(function(e){function t(){e.call(this,d.EMPTY_ARRAY)}return c.inherits(t,e),t.prototype.slice=function(e,t){return this},t.prototype.at=function(e){},t.prototype.compile=function(e,t){return u.CompiledPositionalArgs.empty()},t}(Z)),ee=function(){function e(e,t){this.keys=e,this.values=t,this.type="named",this.length=e.length}return e.empty=function(){return te},e.fromSpec=function(e){if(null===e||void 0===e)return te
|
3138
3140
|
var t=e[0],n=e[1]
|
3139
|
-
return 0===t.length?
|
3141
|
+
return 0===t.length?te:new this(t,n.map(function(e){return a.default(e)}))},e.build=function(e,t){return 0===e.length?te:new this(e,t)},e.prototype.at=function(e){var t=this.keys,n=this.values,r=t.indexOf(e)
|
3140
3142
|
return n[r]},e.prototype.has=function(e){return this.keys.indexOf(e)!==-1},e.prototype.compile=function(e,t,n){for(var r=this.keys,i=this.values,o=new Array(i.length),s=0;s<o.length;s++)o[s]=i[s].compile(e,t,n)
|
3141
3143
|
return new u.CompiledNamedArgs(r,o)},e}()
|
3142
|
-
e.NamedArgs=
|
3143
|
-
var
|
3144
|
+
e.NamedArgs=ee
|
3145
|
+
var te=new(function(e){function t(){e.call(this,d.EMPTY_ARRAY,d.EMPTY_ARRAY)}return c.inherits(t,e),t.prototype.at=function(e){},t.prototype.has=function(e){return!1},t.prototype.compile=function(e,t){return u.CompiledNamedArgs.empty()},t}(ee)),ne=new(function(e){function t(){e.call(this,X,te,J)}return c.inherits(t,e),t.prototype.compile=function(e,t){return u.CompiledArgs.empty()},t}($))}),s("glimmer-runtime/lib/syntax/expressions",["exports","glimmer-runtime/lib/syntax/core","glimmer-wire-format"],function(e,t,n){"use strict"
|
3144
3146
|
var r=n.Expressions.isArg,i=n.Expressions.isConcat,o=n.Expressions.isGet,s=n.Expressions.isHasBlock,a=n.Expressions.isHasBlockParams,u=n.Expressions.isHelper,l=n.Expressions.isUnknown,c=n.Expressions.isPrimitiveValue,p=n.Expressions.isUndefined
|
3145
3147
|
e.default=function(e){if(c(e))return t.Value.fromSpec(e)
|
3146
3148
|
if(p(e))return t.Value.build(void 0)
|
@@ -3162,21 +3164,20 @@ return{id:n,meta:r,create:u}}function s(e,t,o,s){var a=new i.default(e,o,s),u=vo
|
|
3162
3164
|
return u.execute(a.ops)}
|
3163
3165
|
return{id:t,meta:o,_block:e,asEntryPoint:l,asLayout:p,asPartial:h,render:f}}e.default=o
|
3164
3166
|
var a=0}),s("glimmer-runtime/lib/upsert",["exports","glimmer-runtime/lib/bounds"],function(e,t){"use strict"
|
3165
|
-
function n(e){return e&&"function"==typeof e.toHTML}function r(e){return null!==e&&"object"==typeof e&&"number"==typeof e.nodeType}function i(e){return"string"==typeof e}function o(e,t,o){return i(o)?u.insert(e,t,o):n(o)?
|
3167
|
+
function n(e){return e&&"function"==typeof e.toHTML}function r(e){return null!==e&&"object"==typeof e&&"number"==typeof e.nodeType}function i(e){return"string"==typeof e}function o(e,t,o){return i(o)?u.insert(e,t,o):n(o)?p.insert(e,t,o):r(o)?h.insert(e,t,o):void 0}function s(e,t,n){return i(n)?l.insert(e,t,n):r(n)?h.insert(e,t,n):void 0}e.isSafeString=n,e.isNode=r,e.isString=i,e.cautiousInsert=o,e.trustingInsert=s
|
3166
3168
|
var a=function(e){this.bounds=e}
|
3167
3169
|
e.default=a
|
3168
|
-
var u=function(e){function n(t,n){e.call(this,t),this.textNode=n}return
|
3170
|
+
var u=function(e){function n(t,n){e.call(this,t),this.textNode=n}return c.inherits(n,e),n.insert=function(e,r,i){var o=e.createTextNode(i)
|
3169
3171
|
e.insertBefore(r.element,o,r.nextSibling)
|
3170
3172
|
var s=new t.SingleNodeBounds(r.element,o)
|
3171
3173
|
return new n(s,o)},n.prototype.update=function(e,t){if(i(t)){var n=this.textNode
|
3172
|
-
return n.nodeValue=t,!0}return!1},n}(a),l=function(e){function n(){e.apply(this,arguments)}return
|
3174
|
+
return n.nodeValue=t,!0}return!1},n}(a),l=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.insert=function(e,t,r){var i=e.insertHTMLBefore(t.element,r,t.nextSibling)
|
3173
3175
|
return new n(i)},n.prototype.update=function(e,n){if(i(n)){var r=this.bounds,o=r.parentElement(),s=t.clear(r)
|
3174
|
-
return this.bounds=e.insertHTMLBefore(o,s,n),!0}return!1},n}(a),
|
3176
|
+
return this.bounds=e.insertHTMLBefore(o,s,n),!0}return!1},n}(a),p=function(e){function r(t,n){e.call(this,t),this.lastStringValue=n}return c.inherits(r,e),r.insert=function(e,t,n){var i=n.toHTML(),o=e.insertHTMLBefore(t.element,i,t.nextSibling)
|
3175
3177
|
return new r(o,i)},r.prototype.update=function(e,r){if(n(r)){var i=r.toHTML()
|
3176
3178
|
if(i!==this.lastStringValue){var o=this.bounds,s=o.parentElement(),a=t.clear(o)
|
3177
|
-
this.bounds=e.insertHTMLBefore(s,a,i),this.lastStringValue=i}return!0}return!1},r}(a),
|
3178
|
-
return this.bounds=e.insertNodeBefore(o,n,s),!0}return!1},n}(a)})
|
3179
|
-
s("glimmer-runtime/lib/utils",["exports","glimmer-util"],function(e,t){"use strict"
|
3179
|
+
this.bounds=e.insertHTMLBefore(s,a,i),this.lastStringValue=i}return!0}return!1},r}(a),h=function(e){function n(){e.apply(this,arguments)}return c.inherits(n,e),n.insert=function(e,r,i){return e.insertBefore(r.element,i,r.nextSibling),new n(t.single(r.element,i))},n.prototype.update=function(e,n){if(r(n)){var i=this.bounds,o=i.parentElement(),s=t.clear(i)
|
3180
|
+
return this.bounds=e.insertNodeBefore(o,n,s),!0}return!1},n}(a)}),s("glimmer-runtime/lib/utils",["exports","glimmer-util"],function(e,t){"use strict"
|
3180
3181
|
var n=function(){var e="function"==typeof WeakMap
|
3181
3182
|
if(!e)return!1
|
3182
3183
|
var t=new WeakMap
|
@@ -3185,9 +3186,9 @@ e.EMPTY_ARRAY=r
|
|
3185
3186
|
var i=n?Object.freeze(t.dict()):t.dict()
|
3186
3187
|
e.EMPTY_DICT=i
|
3187
3188
|
var o=function(){function e(e,t,n){this.list=e,this.start=t,this.end=n}return e.prototype.at=function(e){return e>=this.list.length?null:this.list[e]},e.prototype.min=function(){return this.start},e.prototype.max=function(){return this.end},e}()
|
3188
|
-
e.ListRange=o})
|
3189
|
-
|
3190
|
-
|
3189
|
+
e.ListRange=o}),s("glimmer-runtime/lib/vm",["exports","glimmer-runtime/lib/vm/append","glimmer-runtime/lib/vm/update","glimmer-runtime/lib/vm/render-result"],function(e,t,n,r){"use strict"
|
3190
|
+
e.VM=t.default,e.PublicVM=t.PublicVM,e.UpdatingVM=n.default,e.RenderResult=r.default})
|
3191
|
+
s("glimmer-runtime/lib/vm/append",["exports","glimmer-runtime/lib/environment","glimmer-util","glimmer-reference","glimmer-runtime/lib/compiled/opcodes/vm","glimmer-runtime/lib/vm/update","glimmer-runtime/lib/vm/render-result","glimmer-runtime/lib/vm/frame"],function(e,t,n,r,i,o,s,a){"use strict"
|
3191
3192
|
var u=function(){function e(e,t,r,i){this.env=e,this.elementStack=i,this.dynamicScopeStack=new n.Stack,this.scopeStack=new n.Stack,this.updatingOpcodeStack=new n.Stack,this.cacheGroups=new n.Stack,this.listBlockStack=new n.Stack,this.frame=new a.FrameStack,this.env=e,this.elementStack=i,this.scopeStack.push(t),this.dynamicScopeStack.push(r)}return e.initial=function(n,r,i,o,s){var a=t.Scope.root(r,s)
|
3192
3193
|
return new e(n,a,i,o)},e.prototype.capture=function(){return{env:this.env,scope:this.scope(),dynamicScope:this.dynamicScope(),frame:this.frame.capture()}},e.prototype.goto=function(e){this.frame.goto(e)},e.prototype.beginCacheGroup=function(){this.cacheGroups.push(this.updatingOpcodeStack.current.tail())},e.prototype.commitCacheGroup=function(){var e=new i.LabelOpcode("END"),t=this.updatingOpcodeStack.current,o=this.cacheGroups.pop(),s=o?t.nextNode(o):t.head(),a=t.tail(),u=r.combineSlice(new n.ListSlice(s,a)),l=new i.JumpIfNotModifiedOpcode(u,e)
|
3193
3194
|
t.insertBefore(l,s),t.append(new i.DidModifyOpcode(l)),t.append(e)},e.prototype.enter=function(e){var t=new n.LinkedList,r=this.stack().pushUpdatableBlock(),i=this.capture(),s=new o.TryOpcode(e,i,r,t)
|
@@ -3213,7 +3214,8 @@ n.assert(t,"Cannot bind named args"),r.bindPartialArgs(e,t)},e.prototype.bindCal
|
|
3213
3214
|
n.assert(e,"Cannot bind caller scope"),t.bindCallerScope(e)},e.prototype.bindDynamicScope=function(e){var t=this.frame.getArgs(),r=this.dynamicScope()
|
3214
3215
|
n.assert(t,"Cannot bind dynamic scope")
|
3215
3216
|
for(var i=0;i<e.length;i++)r.set(e[i],t.named.get(e[i]))},e}()
|
3216
|
-
e.default=u})
|
3217
|
+
e.default=u})
|
3218
|
+
s("glimmer-runtime/lib/vm/frame",["exports"],function(e){"use strict"
|
3217
3219
|
var t=function(e,t,n){this.operand=e,this.args=t,this.condition=n}
|
3218
3220
|
e.CapturedFrame=t
|
3219
3221
|
var n=function(){function e(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1],n=arguments.length<=2||void 0===arguments[2]?null:arguments[2],r=arguments.length<=3||void 0===arguments[3]?null:arguments[3]
|
@@ -3230,36 +3232,36 @@ var u=function(){function e(e,t){var n=t.alwaysRevalidate,i=void 0!==n&&n
|
|
3230
3232
|
this.frameStack=new r.Stack,this.env=e,this.dom=e.getDOM(),this.alwaysRevalidate=i}return e.prototype.execute=function(e,t){var n=this.frameStack
|
3231
3233
|
for(this.try(e,t);;){if(n.isEmpty())break
|
3232
3234
|
var i=this.frameStack.current.nextStatement()
|
3233
|
-
null!==i?(r.LOGGER.debug("[VM] OP "+i.type),r.LOGGER.trace(i),i.evaluate(this)):this.frameStack.pop()}},e.prototype.goto=function(e){this.frameStack.current.goto(e)},e.prototype.try=function(e,t){this.frameStack.push(new
|
3235
|
+
null!==i?(r.LOGGER.debug("[VM] OP "+i.type),r.LOGGER.trace(i),i.evaluate(this)):this.frameStack.pop()}},e.prototype.goto=function(e){this.frameStack.current.goto(e)},e.prototype.try=function(e,t){this.frameStack.push(new m(this,e,t))},e.prototype.throw=function(){this.frameStack.current.handleException(),this.frameStack.pop()},e.prototype.evaluateOpcode=function(e){e.evaluate(this)},e}()
|
3234
3236
|
e.default=u
|
3235
3237
|
var l=function(e){function t(t,n,r,i){e.call(this),this.type="block",this.next=null,this.prev=null
|
3236
3238
|
var o=n.env,s=n.scope,a=n.dynamicScope,u=n.frame
|
3237
|
-
this.ops=t,this.children=i,this.env=o,this.scope=s,this.dynamicScope=a,this.frame=u,this.bounds=r}return
|
3239
|
+
this.ops=t,this.children=i,this.env=o,this.scope=s,this.dynamicScope=a,this.frame=u,this.bounds=r}return c.inherits(t,e),t.prototype.parentElement=function(){return this.bounds.parentElement()},t.prototype.firstNode=function(){return this.bounds.firstNode()},t.prototype.lastNode=function(){return this.bounds.lastNode()},t.prototype.evaluate=function(e){e.try(this.children,null)},t.prototype.destroy=function(){this.bounds.destroy()},t.prototype.didDestroy=function(){this.env.didDestroy(this.bounds)},t.prototype.toJSON=function(){var e=this.ops.head(),t=this.ops.tail(),n=r.dict()
|
3238
3240
|
return n.guid=""+this._guid,n.begin=e.inspect(),n.end=t.inspect(),{guid:this._guid,type:this.type,details:n,children:this.children.toArray().map(function(e){return e.toJSON()})}},t}(s.UpdatingOpcode)
|
3239
3241
|
e.BlockOpcode=l
|
3240
|
-
var
|
3242
|
+
var p=function(e){function t(t,n,r,o){e.call(this,t,n,r,o),this.type="try",this.tag=this._tag=new i.UpdatableTag(i.CONSTANT_TAG)}return c.inherits(t,e),t.prototype.didInitializeChildren=function(){this._tag.update(i.combineSlice(this.children))},t.prototype.evaluate=function(e){e.try(this.children,this)},t.prototype.handleException=function(){var e=this.env,t=this.scope,r=this.ops,i=this.dynamicScope,o=this.frame,s=n.ElementStack.resume(this.env,this.bounds,this.bounds.reset(e)),u=new a.default(e,t,i,s),l=u.resume(r,o)
|
3241
3243
|
this.children=l.opcodes(),this.didInitializeChildren()},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this),n=this.ops.head(),r=this.ops.tail()
|
3242
3244
|
return t.details.begin=JSON.stringify(n.inspect()),t.details.end=JSON.stringify(r.inspect()),e.prototype.toJSON.call(this)},t}(l)
|
3243
|
-
e.TryOpcode=
|
3244
|
-
var
|
3245
|
-
r?(
|
3245
|
+
e.TryOpcode=p
|
3246
|
+
var h=function(){function e(e,t){this.opcode=e,this.marker=t,this.didInsert=!1,this.didDelete=!1,this.map=e.map,this.updating=e.children}return e.prototype.insert=function(e,t,n,r){var s=this.map,a=this.opcode,u=this.updating,l=null,c=null
|
3247
|
+
r?(c=s[r],l=c.bounds.firstNode()):l=this.marker
|
3246
3248
|
var h=a.vmForInsertion(l),f=void 0
|
3247
3249
|
h.execute(a.ops,function(r){r.frame.setArgs(o.EvaluatedArgs.positional([t,n])),r.frame.setOperand(t),r.frame.setCondition(new i.ConstReference(!0)),r.frame.setKey(e)
|
3248
3250
|
var s=r.capture(),u=r.stack().pushUpdatableBlock()
|
3249
|
-
f=new
|
3251
|
+
f=new p(a.ops,s,u,r.updatingOpcodeStack.current)}),f.didInitializeChildren(),u.insertBefore(f,c),s[e]=f,this.didInsert=!0},e.prototype.retain=function(e,t,n){},e.prototype.move=function(e,n,r,i){var o=this.map,s=this.updating,a=o[e],u=o[i]||null
|
3250
3252
|
i?t.move(a,u.firstNode()):t.move(a,this.marker),s.remove(a),s.insertBefore(a,u)},e.prototype.delete=function(e){var n=this.map,r=n[e]
|
3251
|
-
r.didDestroy(),t.clear(r),this.updating.remove(r),delete n[e],this.didDelete=!0},e.prototype.done=function(){this.opcode.didInitializeChildren(this.didInsert||this.didDelete)},e}(),
|
3253
|
+
r.didDestroy(),t.clear(r),this.updating.remove(r),delete n[e],this.didDelete=!0},e.prototype.done=function(){this.opcode.didInitializeChildren(this.didInsert||this.didDelete)},e}(),f=function(e){function t(t,n,o,s,a){e.call(this,t,n,o,s),this.type="list-block",this.map=r.dict(),this.lastIterated=i.INITIAL,this.artifacts=a
|
3252
3254
|
var u=this._tag=new i.UpdatableTag(i.CONSTANT_TAG)
|
3253
|
-
this.tag=i.combine([a.tag,u])}return
|
3255
|
+
this.tag=i.combine([a.tag,u])}return c.inherits(t,e),t.prototype.didInitializeChildren=function(){var e=arguments.length<=0||void 0===arguments[0]||arguments[0]
|
3254
3256
|
this.lastIterated=this.artifacts.tag.value(),e&&this._tag.update(i.combineSlice(this.children))},t.prototype.evaluate=function(t){var n=this.artifacts,r=this.lastIterated
|
3255
3257
|
if(!n.tag.validate(r)){var o=this.bounds,s=t.dom,a=s.createComment("")
|
3256
3258
|
s.insertAfter(o.parentElement(),a,o.lastNode())
|
3257
|
-
var u=new
|
3259
|
+
var u=new h(this,a),l=new i.IteratorSynchronizer({target:u,artifacts:n})
|
3258
3260
|
l.sync(),this.parentElement().removeChild(a)}e.prototype.evaluate.call(this,t)},t.prototype.vmForInsertion=function(e){var t=this.env,r=this.scope,i=this.dynamicScope,o=n.ElementStack.forInitialRender(this.env,this.bounds.parentElement(),e)
|
3259
3261
|
return new a.default(t,r,i,o)},t.prototype.toJSON=function(){var t=e.prototype.toJSON.call(this),n=this.map,r=Object.keys(n).map(function(e){return JSON.stringify(e)+": "+n[e]._guid}).join(", ")
|
3260
3262
|
return t.details.map="{"+r+"}",t},t}(l)
|
3261
|
-
e.ListBlockOpcode=
|
3262
|
-
var
|
3263
|
+
e.ListBlockOpcode=f
|
3264
|
+
var m=function(){function e(e,t,n){this.vm=e,this.ops=t,this.current=t.head(),this.exceptionHandler=n}return e.prototype.goto=function(e){this.current=e},e.prototype.nextStatement=function(){var e=this.current,t=this.ops
|
3263
3265
|
return e&&(this.current=t.nextNode(e)),e},e.prototype.handleException=function(){this.exceptionHandler.handleException()},e}()}),s("glimmer-util/index",["exports","glimmer-util/lib/namespaces","glimmer-util/lib/platform-utils","glimmer-util/lib/assert","glimmer-util/lib/logger","glimmer-util/lib/object-utils","glimmer-util/lib/guid","glimmer-util/lib/collections","glimmer-util/lib/list-utils"],function(e,t,n,r,i,o,s,a,u){"use strict"
|
3264
3266
|
e.getAttrNamespace=t.getAttrNamespace,e.Option=n.Option,e.Maybe=n.Maybe,e.Opaque=n.Opaque,e.assert=r.default,e.LOGGER=i.default,e.Logger=i.Logger,e.LogLevel=i.LogLevel,e.assign=o.assign,e.ensureGuid=s.ensureGuid,e.initializeGuid=s.initializeGuid,e.HasGuid=s.HasGuid,e.Stack=a.Stack,e.Dict=a.Dict,e.Set=a.Set,e.DictSet=a.DictSet,e.dict=a.dict,e.EMPTY_SLICE=u.EMPTY_SLICE,e.LinkedList=u.LinkedList,e.LinkedListNode=u.LinkedListNode,e.ListNode=u.ListNode,e.CloneableListNode=u.CloneableListNode,e.ListSlice=u.ListSlice,e.Slice=u.Slice}),s("glimmer-util/lib/assert",["exports"],function(e){"use strict"
|
3265
3267
|
function t(e,t){if(!e)throw new Error(t||"assertion failure")}function n(){}e.debugAssert=t,e.prodAssert=n,e.default=t}),s("glimmer-util/lib/collections",["exports","glimmer-util/lib/guid"],function(e,t){"use strict"
|
@@ -3380,9 +3382,9 @@ o=y(p)
|
|
3380
3382
|
var h=p[0]
|
3381
3383
|
if(h&&h.handlers)return u&&"(.+)$"===h.regex.source.slice(-5)&&(c+="/"),w(h,c,a)}},T.prototype.map=O,T.VERSION="0.2.10",T.ENCODE_AND_DECODE_PATH_SEGMENTS=!0,T.Normalizer={normalizeSegment:a,normalizePath:s,encodePathSegment:u},e.default=T,Object.defineProperty(e,"__esModule",{value:!0})}),s("router",["exports","route-recognizer","rsvp"],function(e,t,n){"use strict"
|
3382
3384
|
function r(e){return("object"==typeof e&&null!==e||"function"==typeof e)&&"function"==typeof e.then}function i(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}function o(e){var t,n,r=e&&e.length
|
3383
|
-
return r&&r>0&&e[r-1]&&e[r-1].hasOwnProperty("queryParams")?(n=e[r-1].queryParams,t=
|
3384
|
-
else if(
|
3385
|
-
return function(r){var i=
|
3385
|
+
return r&&r>0&&e[r-1]&&e[r-1].hasOwnProperty("queryParams")?(n=e[r-1].queryParams,t=z.call(e,0,r-1),[t,n]):[e,null]}function s(e){for(var t in e)if("number"==typeof e[t])e[t]=""+e[t]
|
3386
|
+
else if(V(e[t]))for(var n=0,r=e[t].length;n<r;n++)e[t][n]=""+e[t][n]}function a(e,t,n){e.log&&(3===arguments.length?e.log("Transition #"+t+": "+n):(n=t,e.log(n)))}function u(e,t){var n=arguments
|
3387
|
+
return function(r){var i=z.call(n,2)
|
3386
3388
|
return i.push(r),t.apply(e,i)}}function l(e){return"string"==typeof e||e instanceof String||"number"==typeof e||e instanceof Number}function c(e,t){for(var n=0,r=e.length;n<r&&!1!==t(e[n]);n++);}function p(e,t,n,r){function i(e,t,n){n.events[e].apply(n,t)}if(e.triggerEvent)return void e.triggerEvent(t,n,r)
|
3387
3389
|
var o=r.shift()
|
3388
3390
|
if(!t){if(n)return
|
@@ -3394,10 +3396,10 @@ i(r.all,t)
|
|
3394
3396
|
var o=!1
|
3395
3397
|
s(e),s(t)
|
3396
3398
|
for(n in e)e.hasOwnProperty(n)&&(t.hasOwnProperty(n)||(o=!0,r.removed[n]=e[n]))
|
3397
|
-
for(n in t)if(t.hasOwnProperty(n))if(
|
3399
|
+
for(n in t)if(t.hasOwnProperty(n))if(V(e[n])&&V(t[n]))if(e[n].length!==t[n].length)r.changed[n]=t[n],o=!0
|
3398
3400
|
else for(var a=0,u=e[n].length;a<u;a++)e[n][a]!==t[n][a]&&(r.changed[n]=t[n],o=!0)
|
3399
3401
|
else e[n]!==t[n]&&(r.changed[n]=t[n],o=!0)
|
3400
|
-
return o&&r}function f(e){return"Router: "+e}function m(e,t){function n(t){e.call(this,t||{})}return n.prototype=
|
3402
|
+
return o&&r}function f(e){return"Router: "+e}function m(e,t){function n(t){e.call(this,t||{})}return n.prototype=q(e.prototype),i(n.prototype,t),n}function d(e,t){if(e){var n="_"+t
|
3401
3403
|
return e[n]&&n||e[t]&&t}}function g(e,t,n,r){var i=d(e,t)
|
3402
3404
|
return i&&e[i].call(e,n,r)}function v(e,t,n){var r=d(e,t)
|
3403
3405
|
if(r)return 0===n.length?e[r].call(e):1===n.length?e[r].call(e,n[0]):2===n.length?e[r].call(e,n[0],n[1]):e[r].apply(e,n)}function y(){this.handlerInfos=[],this.queryParams={},this.params={}}function b(e){if(!(this instanceof b))return new b(e)
|
@@ -3410,7 +3412,7 @@ u&&(this.targetName=r.handlerInfos[u-1].name)
|
|
3410
3412
|
for(var l=0;l<u;++l){var c=r.handlerInfos[l]
|
3411
3413
|
if(!c.isResolved)break
|
3412
3414
|
this.pivotHandler=c.handler}this.sequence=e.currentSequence++,this.promise=r.resolve(s,this).catch(w(a),f("Handle Abort"))}else this.promise=n.Promise.resolve(this.state),this.params={}}function w(e){return function(t){return t.wasAborted||e.isAborted?n.Promise.reject(E(e)):(e.trigger("error",t.error,e,t.handlerWithError),e.abort(),n.Promise.reject(t.error))}}function E(e){return a(e.router,e.sequence,"detected abort."),new b}function O(e){this.initialize(e),this.data=this.data||{}}function S(e){var t=e||{}
|
3413
|
-
if(this._handler=
|
3415
|
+
if(this._handler=H,t.handler){var o=t.name
|
3414
3416
|
this.handlerPromise=n.Promise.resolve(t.handler),r(t.handler)?(this.handlerPromise=this.handlerPromise.then(u(this,this.updateHandler)),t.handler=void 0):t.handler&&(t.handler._handlerName=o)}i(this,t),this.initialize(t)}function x(e,t){if(!e^!t)return!1
|
3415
3417
|
if(!e)return!0
|
3416
3418
|
for(var n in e)if(e.hasOwnProperty(n)&&e[n]!==t[n])return!1
|
@@ -3419,14 +3421,14 @@ return r.factory=C,r}function A(e){if(!(this instanceof A))return new A(e)
|
|
3419
3421
|
var t=Error.call(this,e)
|
3420
3422
|
Error.captureStackTrace?Error.captureStackTrace(this,A):this.stack=t.stack,this.description=t.description,this.fileName=t.fileName,this.lineNumber=t.lineNumber,this.message=t.message||"UnrecognizedURL",this.name="UnrecognizedURLError",this.number=t.number,this.code=t.code}function k(e){var n=e||{}
|
3421
3423
|
this.getHandler=n.getHandler||this.getHandler,this.getSerializer=n.getSerializer||this.getSerializer,this.updateURL=n.updateURL||this.updateURL,this.replaceURL=n.replaceURL||this.replaceURL,this.didTransition=n.didTransition||this.didTransition,this.willTransition=n.willTransition||this.willTransition,this.delegate=n.delegate||this.delegate,this.triggerEvent=n.triggerEvent||this.triggerEvent,this.log=n.log||this.log,this.dslCallBacks=[],this.state=void 0,this.activeTransition=void 0,this._changedQueryParams=void 0,this.oldState=void 0,this.currentHandlerInfos=void 0,this.state=void 0,this.currentSequence=0,this.recognizer=new t,this.reset()}function T(e,t){var n,r=!!this.activeTransition,i=r?this.activeTransition.state:this.state,o=e.applyToState(i,this.recognizer,this.getHandler,t,this.getSerializer),s=h(i.queryParams,o.queryParams)
|
3422
|
-
return j(o.handlerInfos,i.handlerInfos)?s&&(n=this.queryParamsTransition(s,r,i,o))?n:this.activeTransition||new _(this):t?void R(this,o):(n=new _(this,e,o,void 0,this.activeTransition),this.activeTransition&&this.activeTransition.abort(),this.activeTransition=n,n.promise=n.promise.then(function(e){return L(n,e.state)},null,f("Settle transition promise when transition is finalized")),r||
|
3424
|
+
return j(o.handlerInfos,i.handlerInfos)?s&&(n=this.queryParamsTransition(s,r,i,o))?n:this.activeTransition||new _(this):t?void R(this,o):(n=new _(this,e,o,void 0,this.activeTransition),this.activeTransition&&this.activeTransition.abort(),this.activeTransition=n,n.promise=n.promise.then(function(e){return L(n,e.state)},null,f("Settle transition promise when transition is finalized")),r||U(this,o,n),N(this,o,s),n)}function N(e,t,n){n&&(e._changedQueryParams=n.all,p(e,t.handlerInfos,!0,["queryParamsDidChange",n.changed,n.all,n.removed]),e._changedQueryParams=null)}function R(e,t,n){var r,i,o,s=D(e.state,t)
|
3423
3425
|
for(r=0,i=s.exited.length;r<i;r++)o=s.exited[r].handler,delete o.context,g(o,"reset",!0,n),g(o,"exit",n)
|
3424
3426
|
var a=e.oldState=e.state
|
3425
3427
|
e.state=t
|
3426
3428
|
var u=e.currentHandlerInfos=s.unchanged.slice()
|
3427
3429
|
try{for(r=0,i=s.reset.length;r<i;r++)o=s.reset[r].handler,g(o,"reset",!1,n)
|
3428
3430
|
for(r=0,i=s.updatedContext.length;r<i;r++)P(u,s.updatedContext[r],!1,n)
|
3429
|
-
for(r=0,i=s.entered.length;r<i;r++)P(u,s.entered[r],!0,n)}catch(t){throw e.state=a,e.currentHandlerInfos=a.handlerInfos,t}e.state.queryParams=
|
3431
|
+
for(r=0,i=s.entered.length;r<i;r++)P(u,s.entered[r],!0,n)}catch(t){throw e.state=a,e.currentHandlerInfos=a.handlerInfos,t}e.state.queryParams=F(e,u,t.queryParams,n)}function P(e,t,n,r){function i(i){if(n&&g(i,"enter",r),r&&r.isAborted)throw new b
|
3430
3432
|
if(i.context=s,g(i,"contextDidChange"),g(i,"setup",s,r),r&&r.isAborted)throw new b
|
3431
3433
|
e.push(t)}var o=t.handler,s=t.context
|
3432
3434
|
return o?i(o):t.handlerPromise=t.handlerPromise.then(i),!0}function D(e,t){var n,r,i,o=e.handlerInfos,s=t.handlerInfos,a={updatedContext:[],exited:[],entered:[],unchanged:[],reset:void 0},u=!1
|
@@ -3444,20 +3446,20 @@ i&&i.hasOwnProperty("queryParams")&&(o=J.call(t).queryParams)
|
|
3444
3446
|
var s
|
3445
3447
|
if(0===t.length){a(e,"Updating query params")
|
3446
3448
|
var u=e.state.handlerInfos
|
3447
|
-
s=new Y({name:u[u.length-1].name,contexts:[],queryParams:o})}else"/"===r.charAt(0)?(a(e,"Attempting URL transition to "+r),s=new Q({url:r})):(a(e,"Attempting transition to "+r),s=new Y({name:t[0],contexts:
|
3449
|
+
s=new Y({name:u[u.length-1].name,contexts:[],queryParams:o})}else"/"===r.charAt(0)?(a(e,"Attempting URL transition to "+r),s=new Q({url:r})):(a(e,"Attempting transition to "+r),s=new Y({name:t[0],contexts:z.call(t,1),queryParams:o}))
|
3448
3450
|
return e.transitionByIntent(s,n)}function j(e,t){if(e.length!==t.length)return!1
|
3449
3451
|
for(var n=0,r=e.length;n<r;++n)if(e[n]!==t[n])return!1
|
3450
|
-
return!0}function
|
3452
|
+
return!0}function F(e,t,n,r){for(var i in n)n.hasOwnProperty(i)&&null===n[i]&&delete n[i]
|
3451
3453
|
var o=[]
|
3452
3454
|
p(e,t,!0,["finalizeQueryParamChange",n,o,r]),r&&(r._visibleQueryParams={})
|
3453
3455
|
for(var s={},a=0,u=o.length;a<u;++a){var l=o[a]
|
3454
|
-
s[l.key]=l.value,r&&l.visible!==!1&&(r._visibleQueryParams[l.key]=l.value)}return s}function
|
3456
|
+
s[l.key]=l.value,r&&l.visible!==!1&&(r._visibleQueryParams[l.key]=l.value)}return s}function U(e,t,n){var r,i,o,s,a,u,l=e.state.handlerInfos,c=[],h=null
|
3455
3457
|
for(s=l.length,o=0;o<s;o++){if(a=l[o],u=t.handlerInfos[o],!u||a.name!==u.name){h=o
|
3456
3458
|
break}u.isResolved||c.push(a)}null!==h&&(r=l.slice(h,s),i=function(e){for(var t=0,n=r.length;t<n;t++)if(r[t].name===e)return!0
|
3457
3459
|
return!1}),p(e,l,!0,["willTransition",n]),e.willTransition&&e.willTransition(l,t.handlerInfos,n)}t="default"in t?t.default:t
|
3458
|
-
var
|
3459
|
-
|
3460
|
-
var
|
3460
|
+
var B,z=Array.prototype.slice
|
3461
|
+
B=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)}
|
3462
|
+
var V=B,q=Object.create||function(e){function t(){}return t.prototype=e,new t}
|
3461
3463
|
y.prototype={promiseLabel:function(e){var t=""
|
3462
3464
|
return c(this.handlerInfos,function(e){""!==t&&(t+="."),t+=e.name}),f("'"+t+"': "+e)},resolve:function(e,t){function r(){return n.Promise.resolve(e(),u.promiseLabel("Check if should continue")).catch(function(e){return l=!0,n.Promise.reject(e)},u.promiseLabel("Handle abort"))}function i(e){var r=u.handlerInfos,i=t.resolveIndex>=r.length?r.length-1:t.resolveIndex
|
3463
3465
|
return n.Promise.reject({error:e,handlerWithError:u.handlerInfos[i].handler,wasAborted:l,state:u})}function o(e){var n=u.handlerInfos[t.resolveIndex].isResolved
|
@@ -3467,11 +3469,11 @@ var e=u.handlerInfos[t.resolveIndex]
|
|
3467
3469
|
return e.resolve(r,t).then(o,null,u.promiseLabel("Proceed"))}var a=this.params
|
3468
3470
|
c(this.handlerInfos,function(e){a[e.name]=e.params||{}}),t=t||{},t.resolveIndex=0
|
3469
3471
|
var u=this,l=!1
|
3470
|
-
return n.Promise.resolve(null,this.promiseLabel("Start transition")).then(s,null,this.promiseLabel("Resolve handler")).catch(i,this.promiseLabel("Handle error"))}},b.prototype=
|
3471
|
-
if(i.name===e||i.handler===e)return!1}return!0},promise:null,data:null,then:function(e,t,n){return this.promise.then(e,t,n)},catch:function(e,t){return this.promise.catch(e,t)},finally:function(e,t){return this.promise.finally(e,t)},abort:function(){return this.isAborted?this:(a(this.router,this.sequence,this.targetName+": transition was aborted"),this.intent.preTransitionState=this.router.state,this.isAborted=!0,this.isActive=!1,this.router.activeTransition=null,this)},retry:function(){return this.abort(),this.router.transitionByIntent(this.intent,!1)},method:function(e){return this.urlMethod=e,this},trigger:function(e){var t=
|
3472
|
+
return n.Promise.resolve(null,this.promiseLabel("Start transition")).then(s,null,this.promiseLabel("Resolve handler")).catch(i,this.promiseLabel("Handle error"))}},b.prototype=q(Error.prototype),_.prototype={targetName:null,urlMethod:"update",intent:null,pivotHandler:null,resolveIndex:0,resolvedModels:null,state:null,queryParamsOnly:!1,isTransition:!0,isExiting:function(e){for(var t=this.handlerInfos,n=0,r=t.length;n<r;++n){var i=t[n]
|
3473
|
+
if(i.name===e||i.handler===e)return!1}return!0},promise:null,data:null,then:function(e,t,n){return this.promise.then(e,t,n)},catch:function(e,t){return this.promise.catch(e,t)},finally:function(e,t){return this.promise.finally(e,t)},abort:function(){return this.isAborted?this:(a(this.router,this.sequence,this.targetName+": transition was aborted"),this.intent.preTransitionState=this.router.state,this.isAborted=!0,this.isActive=!1,this.router.activeTransition=null,this)},retry:function(){return this.abort(),this.router.transitionByIntent(this.intent,!1)},method:function(e){return this.urlMethod=e,this},trigger:function(e){var t=z.call(arguments)
|
3472
3474
|
"boolean"==typeof e?t.shift():e=!1,p(this.router,this.state.handlerInfos.slice(0,this.resolveIndex+1),e,t)},followRedirects:function(){var e=this.router
|
3473
3475
|
return this.promise.catch(function(t){return e.activeTransition?e.activeTransition.followRedirects():n.Promise.reject(t)})},toString:function(){return"Transition (sequence "+this.sequence+")"},log:function(e){a(this.router,this.sequence,e)}},_.prototype.send=_.prototype.trigger,O.prototype={initialize:null,applyToState:null}
|
3474
|
-
var
|
3476
|
+
var H=Object.freeze({})
|
3475
3477
|
S.prototype={name:null,getHandler:function(){},fetchHandler:function(){var e=this.getHandler(this.name)
|
3476
3478
|
if(this.handlerPromise=n.Promise.resolve(e),r(e))this.handlerPromise=this.handlerPromise.then(u(this,this.updateHandler))
|
3477
3479
|
else if(e)return e._handlerName=this.name,this.handler=e
|
@@ -3482,7 +3484,7 @@ var i=v(this.handler,t,r)
|
|
3482
3484
|
return i&&i.isTransition&&(i=null),n.Promise.resolve(i,this.promiseLabel("Resolve value returned from one of the model hooks"))},getModel:null,checkForAbort:function(e,t){return n.Promise.resolve(e(),this.promiseLabel("Check for abort")).then(function(){return t},null,this.promiseLabel("Ignore fulfillment value and continue"))},stashResolvedModel:function(e,t){e.resolvedModels=e.resolvedModels||{},e.resolvedModels[this.name]=t},becomeResolved:function(e,t){var n=this.serialize(t)
|
3483
3485
|
return e&&(this.stashResolvedModel(e,t),e.params=e.params||{},e.params[this.name]=n),this.factory("resolved",{context:t,name:this.name,handler:this.handler,params:n})},shouldSupercede:function(e){if(!e)return!0
|
3484
3486
|
var t=e.context===this.context
|
3485
|
-
return e.name!==this.name||this.hasOwnProperty("context")&&!t||this.hasOwnProperty("params")&&!x(this.params,e.params)}},Object.defineProperty(S.prototype,"handler",{get:function(){return this._handler!==
|
3487
|
+
return e.name!==this.name||this.hasOwnProperty("context")&&!t||this.hasOwnProperty("params")&&!x(this.params,e.params)}},Object.defineProperty(S.prototype,"handler",{get:function(){return this._handler!==H?this._handler:this.fetchHandler()},set:function(e){return this._handler=e}}),Object.defineProperty(S.prototype,"handlerPromise",{get:function(){return this._handlerPromise?this._handlerPromise:(this.fetchHandler(),this._handlerPromise)},set:function(e){return this._handlerPromise=e}})
|
3486
3488
|
var G=m(S,{resolve:function(e,t){return t&&t.resolvedModels&&(t.resolvedModels[this.name]=this.context),n.Promise.resolve(this,this.promiseLabel("Resolve"))},getUnresolved:function(){return this.factory("param",{name:this.name,handler:this.handler,params:this.params})},isResolved:!0}),W=m(S,{getModel:function(e){return this.log(e,this.name+": resolving provided model"),n.Promise.resolve(this.context)},initialize:function(e){this.names=e.names||[],this.context=e.context},serialize:function(e){var t=e||this.context,n=this.names,r=this.serializer||this.handler&&this.handler.serialize,i={}
|
3487
3489
|
if(l(t))return i[n[0]]=t,i
|
3488
3490
|
if(r)return r(t,n)
|
@@ -3512,7 +3514,7 @@ u=c&&c.context}return C("object",{name:e,getHandler:t,serializer:a,context:u,nam
|
|
3512
3514
|
if(l(u))o[c]=""+r.pop()
|
3513
3515
|
else{if(!a.hasOwnProperty(c))throw new Error("You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route "+e)
|
3514
3516
|
o[c]=a[c]}}return C("param",{name:e,getHandler:t,params:o})}})
|
3515
|
-
A.prototype=
|
3517
|
+
A.prototype=q(Error.prototype)
|
3516
3518
|
var Q=m(O,{url:null,initialize:function(e){this.url=e.url},applyToState:function(e,t,n){function r(e){if(e&&e.inaccessibleByURL)throw new A(c)
|
3517
3519
|
return e}var o,s,a=new y,u=t.recognize(this.url)
|
3518
3520
|
if(!u)throw new A(this.url)
|
@@ -3525,12 +3527,12 @@ k.prototype={map:function(e){this.recognizer.delegate=this.delegate,this.recogni
|
|
3525
3527
|
e.add(t,{as:i.handler}),r="/"===i.path||""===i.path||".index"===i.handler.slice(-6)}})},hasRoute:function(e){return this.recognizer.hasRoute(e)},getHandler:function(){},getSerializer:function(){},queryParamsTransition:function(e,t,n,r){var i=this
|
3526
3528
|
if(N(this,r,e),!t&&this.activeTransition)return this.activeTransition
|
3527
3529
|
var o=new _(this)
|
3528
|
-
return o.queryParamsOnly=!0,n.queryParams=
|
3529
|
-
g(t,"exit")}),this.oldState=void 0,this.state=new y,this.currentHandlerInfos=null},activeTransition:null,handleURL:function(e){var t=
|
3530
|
+
return o.queryParamsOnly=!0,n.queryParams=F(this,r.handlerInfos,r.queryParams,o),o.promise=o.promise.then(function(e){return I(o,n,!0),i.didTransition&&i.didTransition(i.currentHandlerInfos),e},null,f("Transition complete")),o},transitionByIntent:function(e){try{return T.apply(this,arguments)}catch(t){return new _(this,e,null,t)}},reset:function(){this.state&&c(this.state.handlerInfos.slice().reverse(),function(e){var t=e.handler
|
3531
|
+
g(t,"exit")}),this.oldState=void 0,this.state=new y,this.currentHandlerInfos=null},activeTransition:null,handleURL:function(e){var t=z.call(arguments)
|
3530
3532
|
return"/"!==e.charAt(0)&&(t[0]="/"+e),M(this,t).method(null)},updateURL:function(){throw new Error("updateURL is not implemented")},replaceURL:function(e){this.updateURL(e)},transitionTo:function(){return M(this,arguments)},intermediateTransitionTo:function(){return M(this,arguments,!0)},refresh:function(e){for(var t=this.activeTransition?this.activeTransition.state:this.state,n=t.handlerInfos,r={},i=0,o=n.length;i<o;++i){var s=n[i]
|
3531
3533
|
r[s.name]=s.params||{}}a(this,"Starting a refresh transition")
|
3532
3534
|
var u=new Y({name:n[n.length-1].name,pivotHandler:e||n[0].handler,contexts:[],queryParams:this._changedQueryParams||t.queryParams||{}})
|
3533
|
-
return this.transitionByIntent(u,!1)},replaceWith:function(){return M(this,arguments).method("replace")},generate:function(e){for(var t=o(
|
3535
|
+
return this.transitionByIntent(u,!1)},replaceWith:function(){return M(this,arguments).method("replace")},generate:function(e){for(var t=o(z.call(arguments,1)),n=t[0],r=t[1],s=new Y({name:e,contexts:n}),a=s.applyToState(this.state,this.recognizer,this.getHandler,null,this.getSerializer),u={},l=0,c=a.handlerInfos.length;l<c;++l){var p=a.handlerInfos[l],h=p.serialize()
|
3534
3536
|
i(u,h)}return u.queryParams=r,this.recognizer.generate(e,u)},applyIntent:function(e,t){var n=new Y({name:e,contexts:t}),r=this.activeTransition&&this.activeTransition.state||this.state
|
3535
3537
|
return n.applyToState(r,this.recognizer,this.getHandler,null,this.getSerializer)},isActiveIntent:function(e,t,n,r){var o,s,a=r||this.state,u=a.handlerInfos
|
3536
3538
|
if(!u.length)return!1
|
@@ -3544,89 +3546,89 @@ var v={}
|
|
3544
3546
|
i(v,n)
|
3545
3547
|
var b=a.queryParams
|
3546
3548
|
for(var _ in b)b.hasOwnProperty(_)&&v.hasOwnProperty(_)&&(v[_]=b[_])
|
3547
|
-
return g&&!h(v,n)},isActive:function(e){var t=o(
|
3548
|
-
return this.isActiveIntent(e,t[0],t[1])},trigger:function(){var e=
|
3549
|
+
return g&&!h(v,n)},isActive:function(e){var t=o(z.call(arguments,1))
|
3550
|
+
return this.isActiveIntent(e,t[0],t[1])},trigger:function(){var e=z.call(arguments)
|
3549
3551
|
p(this,this.currentHandlerInfos,!1,e)},log:null},e.default=k,e.Transition=_,Object.defineProperty(e,"__esModule",{value:!0})}),s("rsvp",["exports"],function(e){"use strict"
|
3550
3552
|
function t(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n
|
3551
3553
|
return-1}function n(e){var t=e._promiseCallbacks
|
3552
|
-
return t||(t=e._promiseCallbacks={}),t}function r(e,t){return"onerror"===e?void
|
3553
|
-
n.guid=n.key+n.id,n.childGuid=n.key+n.childId,n.error&&(n.stack=n.error.stack),
|
3554
|
+
return t||(t=e._promiseCallbacks={}),t}function r(e,t){return"onerror"===e?void Ee.on("error",t):2!==arguments.length?Ee[e]:void(Ee[e]=t)}function i(e){return"function"==typeof e||"object"==typeof e&&null!==e}function o(e){return"function"==typeof e}function s(e){return"object"==typeof e&&null!==e}function a(){}function u(){setTimeout(function(){for(var e=0;e<Ae.length;e++){var t=Ae[e],n=t.payload
|
3555
|
+
n.guid=n.key+n.id,n.childGuid=n.key+n.childId,n.error&&(n.stack=n.error.stack),Ee.trigger(t.name,t.payload)}Ae.length=0},50)}function l(e,t,n){1===Ae.push({name:e,payload:{key:t._guidKey,id:t._id,eventName:e,detail:t._result,childId:n&&n._id,label:t._label,timeStamp:xe(),error:Ee["instrument-with-stack"]?new Error(t._label):null}})&&u()}function p(e,t){var n=this
|
3554
3556
|
if(e&&"object"==typeof e&&e.constructor===n)return e
|
3555
|
-
var r=new n(
|
3556
|
-
return
|
3557
|
-
!r&&i&&(r=!0,
|
3558
|
-
e._onError=null,i[o]=t,i[o+
|
3559
|
-
if(
|
3560
|
-
e._subscribers.length=0}}function
|
3561
|
-
if(i){if(s=
|
3562
|
-
t._state!==
|
3563
|
-
try{t(function(t){n||(n=!0,
|
3564
|
-
if(o===
|
3557
|
+
var r=new n(f,t)
|
3558
|
+
return b(r,e),r}function h(){return new TypeError("A promises callback cannot return that same promise.")}function f(){}function m(e){try{return e.then}catch(e){return Re.error=e,Re}}function d(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function g(e,t,n){Ee.async(function(e){var r=!1,i=d(n,t,function(n){r||(r=!0,t!==n?b(e,n,void 0):w(e,n))},function(t){r||(r=!0,E(e,t))},"Settle: "+(e._label||" unknown promise"))
|
3559
|
+
!r&&i&&(r=!0,E(e,i))},e)}function v(e,t){t._state===Te?w(e,t._result):t._state===Ne?(t._onError=null,E(e,t._result)):O(t,void 0,function(n){t!==n?b(e,n,void 0):w(e,n)},function(t){return E(e,t)})}function y(e,t,n){t.constructor===e.constructor&&n===T&&e.constructor.resolve===p?v(e,t):n===Re?(E(e,Re.error),Re.error=null):void 0===n?w(e,t):o(n)?g(e,t,n):w(e,t)}function b(e,t){e===t?w(e,t):i(t)?y(e,t,m(t)):w(e,t)}function _(e){e._onError&&e._onError(e._result),S(e)}function w(e,t){e._state===ke&&(e._result=t,e._state=Te,0===e._subscribers.length?Ee.instrument&&l("fulfilled",e):Ee.async(S,e))}function E(e,t){e._state===ke&&(e._state=Ne,e._result=t,Ee.async(_,e))}function O(e,t,n,r){var i=e._subscribers,o=i.length
|
3560
|
+
e._onError=null,i[o]=t,i[o+Te]=n,i[o+Ne]=r,0===o&&e._state&&Ee.async(S,e)}function S(e){var t=e._subscribers,n=e._state
|
3561
|
+
if(Ee.instrument&&l(n===Te?"fulfilled":"rejected",e),0!==t.length){for(var r=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?A(n,r,i,o):i(o)
|
3562
|
+
e._subscribers.length=0}}function x(){this.error=null}function C(e,t){try{return e(t)}catch(e){return Pe.error=e,Pe}}function A(e,t,n,r){var i=o(n),s=void 0,a=void 0,u=void 0,l=void 0
|
3563
|
+
if(i){if(s=C(n,r),s===Pe?(l=!0,a=s.error,s.error=null):u=!0,t===s)return void E(t,h())}else s=r,u=!0
|
3564
|
+
t._state!==ke||(i&&u?b(t,s):l?E(t,a):e===Te?w(t,s):e===Ne&&E(t,s))}function k(e,t){var n=!1
|
3565
|
+
try{t(function(t){n||(n=!0,b(e,t))},function(t){n||(n=!0,E(e,t))})}catch(t){E(e,t)}}function T(e,t,n){var r=arguments,i=this,o=i._state
|
3566
|
+
if(o===Te&&!e||o===Ne&&!t)return Ee.instrument&&l("chained",i,i),i
|
3565
3567
|
i._onError=null
|
3566
|
-
var s=new i.constructor(
|
3567
|
-
return
|
3568
|
-
|
3569
|
-
if(!
|
3570
|
-
for(var i=0;r._state===
|
3571
|
-
return r}function
|
3572
|
-
return
|
3568
|
+
var s=new i.constructor(f,n),a=i._result
|
3569
|
+
return Ee.instrument&&l("chained",i,s),o?function(){var e=r[o-1]
|
3570
|
+
Ee.async(function(){return A(o,s,e,a)})}():O(i,s,e,t),s}function N(e,t,n){return e===Te?{state:"fulfilled",value:n}:{state:"rejected",reason:n}}function R(e,t,n,r){this._instanceConstructor=e,this.promise=new e(f,r),this._abortOnReject=n,this._validateInput(t)?(this._input=t,this.length=t.length,this._remaining=t.length,this._init(),0===this.length?w(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&w(this.promise,this._result))):E(this.promise,this._validationError())}function P(e,t){return new R(this,e,!0,t).promise}function D(e,t){var n=this,r=new n(f,t)
|
3571
|
+
if(!Se(e))return E(r,new TypeError("You must pass an array to race.")),r
|
3572
|
+
for(var i=0;r._state===ke&&i<e.length;i++)O(n.resolve(e[i]),void 0,function(e){return b(r,e)},function(e){return E(r,e)})
|
3573
|
+
return r}function I(e,t){var n=this,r=new n(f,t)
|
3574
|
+
return E(r,e),r}function L(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function M(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function j(e,t){this._id=Ie++,this._label=t,this._state=void 0,this._result=void 0,this._subscribers=[],Ee.instrument&&l("created",this),f!==e&&("function"!=typeof e&&L(),this instanceof j?k(this,e):M())}function F(){this.value=void 0}function U(e){try{return e.then}catch(e){return Le.value=e,Le}}function B(e,t,n){try{e.apply(t,n)}catch(e){return Le.value=e,Le}}function z(e,t){for(var n={},r=e.length,i=new Array(r),o=0;o<r;o++)i[o]=e[o]
|
3573
3575
|
for(var s=0;s<t.length;s++){var a=t[s]
|
3574
|
-
n[a]=i[s+1]}return n}function
|
3575
|
-
return n}function
|
3576
|
-
if(!o){if(o=
|
3577
|
-
return
|
3578
|
-
return i[r]=function(e,n){e?
|
3579
|
-
return
|
3580
|
-
return i===
|
3581
|
-
return i===
|
3582
|
-
return t.promise=new
|
3576
|
+
n[a]=i[s+1]}return n}function V(e){for(var t=e.length,n=new Array(t-1),r=1;r<t;r++)n[r-1]=e[r]
|
3577
|
+
return n}function q(e,t){return{then:function(n,r){return e.call(t,n,r)}}}function H(e,t){var n=function(){for(var n=this,r=arguments.length,i=new Array(r+1),o=!1,s=0;s<r;++s){var a=arguments[s]
|
3578
|
+
if(!o){if(o=K(a),o===Me){var u=new j(f)
|
3579
|
+
return E(u,Me.value),u}o&&o!==!0&&(a=q(o,a))}i[s]=a}var l=new j(f)
|
3580
|
+
return i[r]=function(e,n){e?E(l,e):void 0===t?b(l,n):t===!0?b(l,V(arguments)):Se(t)?b(l,z(arguments,t)):b(l,n)},o?W(l,i,e,n):G(l,i,e,n)}
|
3581
|
+
return c.defaults(n,e),n}function G(e,t,n,r){var i=B(n,r,t)
|
3582
|
+
return i===Le&&E(e,i.value),e}function W(e,t,n,r){return j.all(t).then(function(t){var i=B(n,r,t)
|
3583
|
+
return i===Le&&E(e,i.value),e})}function K(e){return!(!e||"object"!=typeof e)&&(e.constructor===j||U(e))}function Y(e,t){return j.all(e,t)}function Q(e,t,n){this._superConstructor(e,t,!1,n)}function J(e,t){return new Q(j,e,t).promise}function $(e,t){return j.race(e,t)}function Z(e,t,n){this._superConstructor(e,t,!0,n)}function X(e,t){return new Z(j,e,t).promise}function ee(e,t,n){this._superConstructor(e,t,!1,n)}function te(e,t){return new ee(j,e,t).promise}function ne(e){throw setTimeout(function(){throw e}),e}function re(e){var t={resolve:void 0,reject:void 0}
|
3584
|
+
return t.promise=new j(function(e,n){t.resolve=e,t.reject=n},e),t}function ie(e,t,n){return j.all(e,n).then(function(e){if(!o(t))throw new TypeError("You must pass a function as map's second argument.")
|
3583
3585
|
for(var r=e.length,i=new Array(r),s=0;s<r;s++)i[s]=t(e[s])
|
3584
|
-
return
|
3586
|
+
return j.all(i,n)})}function oe(e,t){return j.resolve(e,t)}function se(e,t){return j.reject(e,t)}function ae(e,t){return j.all(e,t)}function ue(e,t){return j.resolve(e,t).then(function(e){return ae(e,t)})}function le(e,t,n){var r=Se(e)?ae(e,n):ue(e,n)
|
3585
3587
|
return r.then(function(e){if(!o(t))throw new TypeError("You must pass a function as filter's second argument.")
|
3586
3588
|
for(var r=e.length,i=new Array(r),s=0;s<r;s++)i[s]=t(e[s])
|
3587
|
-
return
|
3588
|
-
return n.length=i,n})})}function
|
3589
|
-
return Array.isArray(t)&&"0"===t[1]&&"10"===t[2]&&(e=setImmediate),function(){return e(
|
3590
|
-
return t.observe(n,{characterData:!0}),function(){return n.data=e=++e%2}}function
|
3591
|
-
return e.port1.onmessage=
|
3592
|
-
t(n),
|
3593
|
-
return
|
3589
|
+
return ae(i,n).then(function(t){for(var n=new Array(r),i=0,o=0;o<r;o++)t[o]&&(n[i]=e[o],i++)
|
3590
|
+
return n.length=i,n})})}function ce(e,t){He[je]=e,He[je+1]=t,je+=2,2===je&&Ge()}function pe(){var e=process.nextTick,t=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/)
|
3591
|
+
return Array.isArray(t)&&"0"===t[1]&&"10"===t[2]&&(e=setImmediate),function(){return e(ge)}}function he(){return"undefined"!=typeof Fe?function(){Fe(ge)}:de()}function fe(){var e=0,t=new ze(ge),n=document.createTextNode("")
|
3592
|
+
return t.observe(n,{characterData:!0}),function(){return n.data=e=++e%2}}function me(){var e=new MessageChannel
|
3593
|
+
return e.port1.onmessage=ge,function(){return e.port2.postMessage(0)}}function de(){return function(){return setTimeout(ge,1)}}function ge(){for(var e=0;e<je;e+=2){var t=He[e],n=He[e+1]
|
3594
|
+
t(n),He[e]=void 0,He[e+1]=void 0}je=0}function ve(){try{var e=require,t=e("vertx")
|
3595
|
+
return Fe=t.runOnLoop||t.runOnContext,he()}catch(e){return de()}}function ye(){Ee.on.apply(Ee,arguments)}function be(){Ee.off.apply(Ee,arguments)}var _e,we={mixin:function(e){return e.on=this.on,e.off=this.off,e.trigger=this.trigger,e._promiseCallbacks=void 0,e},on:function(e,r){if("function"!=typeof r)throw new TypeError("Callback must be a function")
|
3594
3596
|
var i=n(this),o=void 0
|
3595
3597
|
o=i[e],o||(o=i[e]=[]),t(o,r)===-1&&o.push(r)},off:function(e,r){var i=n(this),o=void 0,s=void 0
|
3596
3598
|
return r?(o=i[e],s=t(o,r),void(s!==-1&&o.splice(s,1))):void(i[e]=[])},trigger:function(e,t,r){var i=n(this),o=void 0,s=void 0
|
3597
|
-
if(o=i[e])for(var a=0;a<o.length;a++)(s=o[a])(t,r)}},
|
3598
|
-
|
3599
|
-
var
|
3600
|
-
|
3601
|
-
var Oe
|
3599
|
+
if(o=i[e])for(var a=0;a<o.length;a++)(s=o[a])(t,r)}},Ee={instrument:!1}
|
3600
|
+
we.mixin(Ee)
|
3601
|
+
var Oe=void 0
|
3602
|
+
Oe=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)}
|
3603
|
+
var Se=Oe,xe=Date.now||function(){return(new Date).getTime()},Ce=Object.create||function(e){if(arguments.length>1)throw new Error("Second argument not supported")
|
3602
3604
|
if("object"!=typeof e)throw new TypeError("Argument must be an object")
|
3603
|
-
return a.prototype=e,new a},
|
3604
|
-
|
3605
|
-
if(r===
|
3606
|
-
if(i===
|
3607
|
-
else if("function"!=typeof i)this._remaining--,this._result[t]=this._makeResult(
|
3608
|
-
else if(n===
|
3609
|
-
|
3610
|
-
r._state===
|
3611
|
-
|
3612
|
-
var
|
3613
|
-
|
3614
|
-
|
3605
|
+
return a.prototype=e,new a},Ae=[],ke=void 0,Te=1,Ne=2,Re=new x,Pe=new x
|
3606
|
+
R.prototype._validateInput=function(e){return Se(e)},R.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},R.prototype._init=function(){this._result=new Array(this.length)},R.prototype._enumerate=function(){for(var e=this.length,t=this.promise,n=this._input,r=0;t._state===ke&&r<e;r++)this._eachEntry(n[r],r)},R.prototype._settleMaybeThenable=function(e,t){var n=this._instanceConstructor,r=n.resolve
|
3607
|
+
if(r===p){var i=m(e)
|
3608
|
+
if(i===T&&e._state!==ke)e._onError=null,this._settledAt(e._state,t,e._result)
|
3609
|
+
else if("function"!=typeof i)this._remaining--,this._result[t]=this._makeResult(Te,t,e)
|
3610
|
+
else if(n===j){var o=new n(f)
|
3611
|
+
y(o,e,i),this._willSettleAt(o,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(r(e),t)},R.prototype._eachEntry=function(e,t){s(e)?this._settleMaybeThenable(e,t):(this._remaining--,this._result[t]=this._makeResult(Te,t,e))},R.prototype._settledAt=function(e,t,n){var r=this.promise
|
3612
|
+
r._state===ke&&(this._remaining--,this._abortOnReject&&e===Ne?E(r,n):this._result[t]=this._makeResult(e,t,n)),0===this._remaining&&w(r,this._result)},R.prototype._makeResult=function(e,t,n){return n},R.prototype._willSettleAt=function(e,t){var n=this
|
3613
|
+
O(e,void 0,function(e){return n._settledAt(Te,t,e)},function(e){return n._settledAt(Ne,t,e)})}
|
3614
|
+
var De="rsvp_"+xe()+"-",Ie=0
|
3615
|
+
j.cast=p,j.all=P,j.race=D,j.resolve=p,j.reject=I,j.prototype={constructor:j,_guidKey:De,_onError:function(e){var t=this
|
3616
|
+
Ee.after(function(){t._onError&&Ee.trigger("error",e,t._label)})},then:T,catch:function(e,t){return this.then(void 0,e,t)},finally:function(e,t){var n=this,r=n.constructor
|
3615
3617
|
return n.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})},t)}}
|
3616
|
-
var
|
3617
|
-
|
3618
|
-
for(var i in n)t._state===
|
3618
|
+
var Le=new F,Me=new F
|
3619
|
+
Q.prototype=Ce(R.prototype),Q.prototype._superConstructor=R,Q.prototype._makeResult=N,Q.prototype._validationError=function(){return new Error("allSettled must be called with an array")},Z.prototype=Ce(R.prototype),Z.prototype._superConstructor=R,Z.prototype._init=function(){this._result={}},Z.prototype._validateInput=function(e){return e&&"object"==typeof e},Z.prototype._validationError=function(){return new Error("Promise.hash must be called with an object")},Z.prototype._enumerate=function(){var e=this,t=e.promise,n=e._input,r=[]
|
3620
|
+
for(var i in n)t._state===ke&&Object.prototype.hasOwnProperty.call(n,i)&&r.push({position:i,entry:n[i]})
|
3619
3621
|
var o=r.length
|
3620
3622
|
e._remaining=o
|
3621
|
-
for(var s=void 0,a=0;t._state===
|
3622
|
-
var
|
3623
|
-
|
3624
|
-
var
|
3625
|
-
if("object"==typeof self)
|
3623
|
+
for(var s=void 0,a=0;t._state===ke&&a<o;a++)s=r[a],e._eachEntry(s.entry,s.position)},ee.prototype=Ce(Z.prototype),ee.prototype._superConstructor=R,ee.prototype._makeResult=N,ee.prototype._validationError=function(){return new Error("hashSettled must be called with an object")}
|
3624
|
+
var je=0,Fe=void 0,Ue="undefined"!=typeof window?window:void 0,Be=Ue||{},ze=Be.MutationObserver||Be.WebKitMutationObserver,Ve="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),qe="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,He=new Array(1e3),Ge=void 0
|
3625
|
+
Ge=Ve?pe():ze?fe():qe?me():void 0===Ue&&"function"==typeof require?ve():de()
|
3626
|
+
var We=void 0
|
3627
|
+
if("object"==typeof self)We=self
|
3626
3628
|
else{if("object"!=typeof global)throw new Error("no global: `self` or `global` found")
|
3627
|
-
|
3628
|
-
var
|
3629
|
-
if("undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){var
|
3629
|
+
We=global}Ee.async=ce,Ee.after=function(e){return setTimeout(e,0)}
|
3630
|
+
var Ke=oe,Ye=function(e,t){return Ee.async(e,t)}
|
3631
|
+
if("undefined"!=typeof window&&"object"==typeof window.__PROMISE_INSTRUMENTATION__){var Qe=window.__PROMISE_INSTRUMENTATION__
|
3630
3632
|
r("instrument",!0)
|
3631
|
-
for(var
|
3632
|
-
e.cast=
|
3633
|
+
for(var Je in Qe)Qe.hasOwnProperty(Je)&&ye(Je,Qe[Je])}var $e=(_e={cast:Ke,Promise:j,EventTarget:we,all:Y,allSettled:J,race:$,hash:X,hashSettled:te,rethrow:ne,defer:re,denodeify:H,configure:r,on:ye,off:be,resolve:oe,reject:se,map:ie},_e.async=Ye,_e.filter=le,_e)
|
3634
|
+
e.cast=Ke,e.Promise=j,e.EventTarget=we,e.all=Y,e.allSettled=J,e.race=$,e.hash=X,e.hashSettled=te,e.rethrow=ne,e.defer=re,e.denodeify=H,e.configure=r,e.on=ye,e.off=be,e.resolve=oe,e.reject=se,e.map=ie,e.async=Ye,e.filter=le,e.default=$e}),a("ember")})()
|