ember-source 3.28.3 → 3.28.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build-metadata.json +3 -3
- package/dist/ember-template-compiler.js +316 -671
- package/dist/ember-template-compiler.map +1 -1
- package/dist/ember-testing.js +1 -1
- package/dist/ember-testing.map +1 -1
- package/dist/ember.debug.js +50 -12
- package/dist/ember.debug.map +1 -1
- package/dist/header/license.js +1 -1
- package/dist/packages/@ember/-internals/container/index.js +16 -4
- package/dist/packages/@ember/-internals/routing/lib/system/route.js +25 -6
- package/dist/packages/@ember/-internals/routing/lib/system/router.js +1 -2
- package/dist/packages/ember/version.js +1 -1
- package/docs/data.json +68 -68
- package/package.json +20 -17
|
@@ -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 3.28.
|
|
9
|
+
* @version 3.28.7
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
/* eslint-disable no-var */
|
|
@@ -3188,25 +3188,6 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
3188
3188
|
return ResultArray;
|
|
3189
3189
|
}();
|
|
3190
3190
|
|
|
3191
|
-
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
3192
|
-
if (!privateMap.has(receiver)) {
|
|
3193
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
3194
|
-
}
|
|
3195
|
-
|
|
3196
|
-
privateMap.set(receiver, value);
|
|
3197
|
-
return value;
|
|
3198
|
-
};
|
|
3199
|
-
|
|
3200
|
-
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
3201
|
-
if (!privateMap.has(receiver)) {
|
|
3202
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
3203
|
-
}
|
|
3204
|
-
|
|
3205
|
-
return privateMap.get(receiver);
|
|
3206
|
-
};
|
|
3207
|
-
|
|
3208
|
-
var _keywords, _type;
|
|
3209
|
-
|
|
3210
3191
|
var KeywordImpl = /*#__PURE__*/function () {
|
|
3211
3192
|
function KeywordImpl(keyword, type, delegate) {
|
|
3212
3193
|
this.keyword = keyword;
|
|
@@ -3303,23 +3284,20 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
3303
3284
|
|
|
3304
3285
|
var Keywords = /*#__PURE__*/function () {
|
|
3305
3286
|
function Keywords(type) {
|
|
3306
|
-
_keywords
|
|
3307
|
-
|
|
3308
|
-
_type.set(this, void 0);
|
|
3309
|
-
|
|
3310
|
-
__classPrivateFieldSet(this, _type, type);
|
|
3287
|
+
this._keywords = [];
|
|
3288
|
+
this._type = type;
|
|
3311
3289
|
}
|
|
3312
3290
|
|
|
3313
3291
|
var _proto7 = Keywords.prototype;
|
|
3314
3292
|
|
|
3315
3293
|
_proto7.kw = function kw(name, delegate) {
|
|
3316
|
-
|
|
3294
|
+
this._keywords.push(keyword(name, this._type, delegate));
|
|
3317
3295
|
|
|
3318
3296
|
return this;
|
|
3319
3297
|
};
|
|
3320
3298
|
|
|
3321
3299
|
_proto7.translate = function translate(node$$1, state) {
|
|
3322
|
-
for (var _iterator3 = (0, _emberBabel.createForOfIteratorHelperLoose)(
|
|
3300
|
+
for (var _iterator3 = (0, _emberBabel.createForOfIteratorHelperLoose)(this._keywords), _step3; !(_step3 = _iterator3()).done;) {
|
|
3323
3301
|
var _keyword2 = _step3.value;
|
|
3324
3302
|
|
|
3325
3303
|
var _result2 = _keyword2.translate(node$$1, state);
|
|
@@ -3333,9 +3311,7 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
3333
3311
|
|
|
3334
3312
|
if (path && path.type === 'Path' && path.ref.type === 'Free' && (0, _syntax.isKeyword)(path.ref.name)) {
|
|
3335
3313
|
var name = path.ref.name;
|
|
3336
|
-
|
|
3337
|
-
var usedType = __classPrivateFieldGet(this, _type);
|
|
3338
|
-
|
|
3314
|
+
var usedType = this._type;
|
|
3339
3315
|
var validTypes = _syntax.KEYWORDS_TYPES[name];
|
|
3340
3316
|
|
|
3341
3317
|
if (validTypes.indexOf(usedType) === -1) {
|
|
@@ -3349,7 +3325,6 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
3349
3325
|
return Keywords;
|
|
3350
3326
|
}();
|
|
3351
3327
|
|
|
3352
|
-
_keywords = new WeakMap(), _type = new WeakMap();
|
|
3353
3328
|
var typesToReadableName = {
|
|
3354
3329
|
Append: 'an append statement',
|
|
3355
3330
|
Block: 'a block statement',
|
|
@@ -5000,71 +4975,42 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
5000
4975
|
}();
|
|
5001
4976
|
|
|
5002
4977
|
var VISIT_STMTS = new NormalizationStatements();
|
|
5003
|
-
|
|
5004
|
-
var __classPrivateFieldSet$1 = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
5005
|
-
if (!privateMap.has(receiver)) {
|
|
5006
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
5007
|
-
}
|
|
5008
|
-
|
|
5009
|
-
privateMap.set(receiver, value);
|
|
5010
|
-
return value;
|
|
5011
|
-
};
|
|
5012
|
-
|
|
5013
|
-
var __classPrivateFieldGet$1 = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
5014
|
-
if (!privateMap.has(receiver)) {
|
|
5015
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
5016
|
-
}
|
|
5017
|
-
|
|
5018
|
-
return privateMap.get(receiver);
|
|
5019
|
-
};
|
|
5020
|
-
|
|
5021
|
-
var _currentScope, _cursorCount;
|
|
5022
4978
|
/**
|
|
5023
4979
|
* This is the mutable state for this compiler pass.
|
|
5024
4980
|
*/
|
|
5025
4981
|
|
|
5026
|
-
|
|
5027
4982
|
var NormalizationState = /*#__PURE__*/function () {
|
|
5028
4983
|
function NormalizationState(block, isStrict) {
|
|
5029
4984
|
this.isStrict = isStrict;
|
|
5030
|
-
|
|
5031
|
-
_currentScope
|
|
5032
|
-
|
|
5033
|
-
_cursorCount.set(this, 0);
|
|
5034
|
-
|
|
5035
|
-
__classPrivateFieldSet$1(this, _currentScope, block);
|
|
4985
|
+
this._cursorCount = 0;
|
|
4986
|
+
this._currentScope = block;
|
|
5036
4987
|
}
|
|
5037
4988
|
|
|
5038
4989
|
var _proto13 = NormalizationState.prototype;
|
|
5039
4990
|
|
|
5040
4991
|
_proto13.generateUniqueCursor = function generateUniqueCursor() {
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
return "%cursor:" + (__classPrivateFieldSet$1(this, _cursorCount, (_a = +__classPrivateFieldGet$1(this, _cursorCount)) + 1), _a) + "%";
|
|
4992
|
+
return "%cursor:" + this._cursorCount++ + "%";
|
|
5044
4993
|
};
|
|
5045
4994
|
|
|
5046
4995
|
_proto13.visitBlock = function visitBlock(block) {
|
|
5047
|
-
var oldBlock =
|
|
5048
|
-
|
|
5049
|
-
__classPrivateFieldSet$1(this, _currentScope, block.scope);
|
|
4996
|
+
var oldBlock = this._currentScope;
|
|
4997
|
+
this._currentScope = block.scope;
|
|
5050
4998
|
|
|
5051
4999
|
try {
|
|
5052
5000
|
return VISIT_STMTS.visitList(block.body, this);
|
|
5053
5001
|
} finally {
|
|
5054
|
-
|
|
5002
|
+
this._currentScope = oldBlock;
|
|
5055
5003
|
}
|
|
5056
5004
|
};
|
|
5057
5005
|
|
|
5058
5006
|
(0, _emberBabel.createClass)(NormalizationState, [{
|
|
5059
5007
|
key: "scope",
|
|
5060
5008
|
get: function get() {
|
|
5061
|
-
return
|
|
5009
|
+
return this._currentScope;
|
|
5062
5010
|
}
|
|
5063
5011
|
}]);
|
|
5064
5012
|
return NormalizationState;
|
|
5065
5013
|
}();
|
|
5066
|
-
|
|
5067
|
-
_currentScope = new WeakMap(), _cursorCount = new WeakMap();
|
|
5068
5014
|
/**
|
|
5069
5015
|
* Normalize the AST from @glimmer/syntax into the HIR. The HIR has special
|
|
5070
5016
|
* instructions for keywords like `{{yield}}`, `(has-block)` and
|
|
@@ -5104,6 +5050,7 @@ define("@glimmer/compiler", ["exports", "ember-babel", "@glimmer/syntax", "@glim
|
|
|
5104
5050
|
* ```
|
|
5105
5051
|
*/
|
|
5106
5052
|
|
|
5053
|
+
|
|
5107
5054
|
function normalize$1(source, root, isStrict) {
|
|
5108
5055
|
// create a new context for the normalization pass
|
|
5109
5056
|
var state = new NormalizationState(root.table, isStrict);
|
|
@@ -7907,27 +7854,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
7907
7854
|
|
|
7908
7855
|
return SourceSlice;
|
|
7909
7856
|
}();
|
|
7910
|
-
|
|
7911
|
-
_exports.SourceSlice = SourceSlice;
|
|
7912
|
-
|
|
7913
|
-
var __classPrivateFieldSet = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
7914
|
-
if (!privateMap.has(receiver)) {
|
|
7915
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
7916
|
-
}
|
|
7917
|
-
|
|
7918
|
-
privateMap.set(receiver, value);
|
|
7919
|
-
return value;
|
|
7920
|
-
};
|
|
7921
|
-
|
|
7922
|
-
var __classPrivateFieldGet = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
7923
|
-
if (!privateMap.has(receiver)) {
|
|
7924
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
7925
|
-
}
|
|
7926
|
-
|
|
7927
|
-
return privateMap.get(receiver);
|
|
7928
|
-
};
|
|
7929
|
-
|
|
7930
|
-
var _whens, _map, _whens_1;
|
|
7931
7857
|
/**
|
|
7932
7858
|
* This file implements the DSL used by span and offset in places where they need to exhaustively
|
|
7933
7859
|
* consider all combinations of states (Handlebars offsets, character offsets and invisible/broken
|
|
@@ -7938,20 +7864,19 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
7938
7864
|
*/
|
|
7939
7865
|
|
|
7940
7866
|
|
|
7867
|
+
_exports.SourceSlice = SourceSlice;
|
|
7941
7868
|
var MatchAny = 'MATCH_ANY';
|
|
7942
7869
|
var IsInvisible = 'IS_INVISIBLE';
|
|
7943
7870
|
|
|
7944
7871
|
var WhenList = /*#__PURE__*/function () {
|
|
7945
7872
|
function WhenList(whens) {
|
|
7946
|
-
_whens
|
|
7947
|
-
|
|
7948
|
-
__classPrivateFieldSet(this, _whens, whens);
|
|
7873
|
+
this._whens = whens;
|
|
7949
7874
|
}
|
|
7950
7875
|
|
|
7951
7876
|
var _proto2 = WhenList.prototype;
|
|
7952
7877
|
|
|
7953
7878
|
_proto2.first = function first(kind) {
|
|
7954
|
-
for (var _iterator = (0, _emberBabel.createForOfIteratorHelperLoose)(
|
|
7879
|
+
for (var _iterator = (0, _emberBabel.createForOfIteratorHelperLoose)(this._whens), _step; !(_step = _iterator()).done;) {
|
|
7955
7880
|
var _when = _step.value;
|
|
7956
7881
|
|
|
7957
7882
|
var _value = _when.match(kind);
|
|
@@ -7967,17 +7892,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
7967
7892
|
return WhenList;
|
|
7968
7893
|
}();
|
|
7969
7894
|
|
|
7970
|
-
_whens = new WeakMap();
|
|
7971
|
-
|
|
7972
7895
|
var When = /*#__PURE__*/function () {
|
|
7973
7896
|
function When() {
|
|
7974
|
-
_map
|
|
7897
|
+
this._map = new Map();
|
|
7975
7898
|
}
|
|
7976
7899
|
|
|
7977
7900
|
var _proto3 = When.prototype;
|
|
7978
7901
|
|
|
7979
7902
|
_proto3.get = function get(pattern, or) {
|
|
7980
|
-
var value =
|
|
7903
|
+
var value = this._map.get(pattern);
|
|
7981
7904
|
|
|
7982
7905
|
if (value) {
|
|
7983
7906
|
return value;
|
|
@@ -7985,22 +7908,22 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
7985
7908
|
|
|
7986
7909
|
value = or();
|
|
7987
7910
|
|
|
7988
|
-
|
|
7911
|
+
this._map.set(pattern, value);
|
|
7989
7912
|
|
|
7990
7913
|
return value;
|
|
7991
7914
|
};
|
|
7992
7915
|
|
|
7993
7916
|
_proto3.add = function add(pattern, out) {
|
|
7994
|
-
|
|
7917
|
+
this._map.set(pattern, out);
|
|
7995
7918
|
};
|
|
7996
7919
|
|
|
7997
7920
|
_proto3.match = function match(kind) {
|
|
7998
7921
|
var pattern = patternFor(kind);
|
|
7999
7922
|
var out = [];
|
|
8000
7923
|
|
|
8001
|
-
var exact =
|
|
7924
|
+
var exact = this._map.get(pattern);
|
|
8002
7925
|
|
|
8003
|
-
var fallback =
|
|
7926
|
+
var fallback = this._map.get(MatchAny);
|
|
8004
7927
|
|
|
8005
7928
|
if (exact) {
|
|
8006
7929
|
out.push(exact);
|
|
@@ -8016,15 +7939,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8016
7939
|
return When;
|
|
8017
7940
|
}();
|
|
8018
7941
|
|
|
8019
|
-
_map = new WeakMap();
|
|
8020
|
-
|
|
8021
7942
|
function match(callback) {
|
|
8022
7943
|
return callback(new Matcher()).check();
|
|
8023
7944
|
}
|
|
8024
7945
|
|
|
8025
7946
|
var Matcher = /*#__PURE__*/function () {
|
|
8026
7947
|
function Matcher() {
|
|
8027
|
-
|
|
7948
|
+
this._whens = new When();
|
|
8028
7949
|
}
|
|
8029
7950
|
/**
|
|
8030
7951
|
* You didn't exhaustively match all possibilities.
|
|
@@ -8042,7 +7963,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8042
7963
|
};
|
|
8043
7964
|
|
|
8044
7965
|
_proto4.matchFor = function matchFor(left, right) {
|
|
8045
|
-
var nesteds =
|
|
7966
|
+
var nesteds = this._whens.match(left);
|
|
8046
7967
|
|
|
8047
7968
|
var callback = new WhenList(nesteds).first(right);
|
|
8048
7969
|
return callback;
|
|
@@ -8050,7 +7971,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8050
7971
|
|
|
8051
7972
|
_proto4.when = function when(left, right, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
8052
7973
|
callback) {
|
|
8053
|
-
|
|
7974
|
+
this._whens.get(left, function () {
|
|
8054
7975
|
return new When();
|
|
8055
7976
|
}).add(right, callback);
|
|
8056
7977
|
|
|
@@ -8060,8 +7981,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8060
7981
|
return Matcher;
|
|
8061
7982
|
}();
|
|
8062
7983
|
|
|
8063
|
-
_whens_1 = new WeakMap();
|
|
8064
|
-
|
|
8065
7984
|
function patternFor(kind) {
|
|
8066
7985
|
switch (kind) {
|
|
8067
7986
|
case "Broken"
|
|
@@ -8078,26 +7997,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8078
7997
|
default:
|
|
8079
7998
|
return kind;
|
|
8080
7999
|
}
|
|
8081
|
-
}
|
|
8082
|
-
|
|
8083
|
-
var __classPrivateFieldGet$1 = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
8084
|
-
if (!privateMap.has(receiver)) {
|
|
8085
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
8086
|
-
}
|
|
8087
|
-
|
|
8088
|
-
return privateMap.get(receiver);
|
|
8089
|
-
};
|
|
8090
|
-
|
|
8091
|
-
var __classPrivateFieldSet$1 = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
8092
|
-
if (!privateMap.has(receiver)) {
|
|
8093
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
8094
|
-
}
|
|
8095
|
-
|
|
8096
|
-
privateMap.set(receiver, value);
|
|
8097
|
-
return value;
|
|
8098
|
-
};
|
|
8099
|
-
|
|
8100
|
-
var _locPos, _charPos; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
8000
|
+
} // eslint-disable-next-line import/no-extraneous-dependencies
|
|
8101
8001
|
|
|
8102
8002
|
/**
|
|
8103
8003
|
* Used to indicate that an attempt to convert a `SourcePosition` to a character offset failed. It
|
|
@@ -8240,7 +8140,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8240
8140
|
;
|
|
8241
8141
|
/** Computed from char offset */
|
|
8242
8142
|
|
|
8243
|
-
_locPos
|
|
8143
|
+
this._locPos = null;
|
|
8244
8144
|
}
|
|
8245
8145
|
/**
|
|
8246
8146
|
* This is already a `CharPosition`.
|
|
@@ -8284,15 +8184,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8284
8184
|
* computing the `HbsPosition` should be a one-time operation.
|
|
8285
8185
|
*/
|
|
8286
8186
|
_proto6.toHbsPos = function toHbsPos() {
|
|
8287
|
-
var locPos =
|
|
8187
|
+
var locPos = this._locPos;
|
|
8288
8188
|
|
|
8289
8189
|
if (locPos === null) {
|
|
8290
8190
|
var hbsPos = this.source.hbsPosFor(this.charPos);
|
|
8291
8191
|
|
|
8292
8192
|
if (hbsPos === null) {
|
|
8293
|
-
|
|
8193
|
+
this._locPos = locPos = BROKEN;
|
|
8294
8194
|
} else {
|
|
8295
|
-
|
|
8195
|
+
this._locPos = locPos = new HbsPosition(this.source, hbsPos, this.charPos);
|
|
8296
8196
|
}
|
|
8297
8197
|
}
|
|
8298
8198
|
|
|
@@ -8308,8 +8208,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8308
8208
|
return CharPosition;
|
|
8309
8209
|
}();
|
|
8310
8210
|
|
|
8311
|
-
_locPos = new WeakMap();
|
|
8312
|
-
|
|
8313
8211
|
var HbsPosition = /*#__PURE__*/function () {
|
|
8314
8212
|
function HbsPosition(source, hbsPos, charPos) {
|
|
8315
8213
|
if (charPos === void 0) {
|
|
@@ -8321,10 +8219,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8321
8219
|
this.kind = "HbsPosition"
|
|
8322
8220
|
/* HbsPosition */
|
|
8323
8221
|
;
|
|
8324
|
-
|
|
8325
|
-
_charPos.set(this, void 0);
|
|
8326
|
-
|
|
8327
|
-
__classPrivateFieldSet$1(this, _charPos, charPos === null ? null : new CharPosition(source, charPos));
|
|
8222
|
+
this._charPos = charPos === null ? null : new CharPosition(source, charPos);
|
|
8328
8223
|
}
|
|
8329
8224
|
/**
|
|
8330
8225
|
* Lazily compute the character offset from the {@see SourcePosition}. Once an `HbsPosition` has
|
|
@@ -8339,15 +8234,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8339
8234
|
var _proto7 = HbsPosition.prototype;
|
|
8340
8235
|
|
|
8341
8236
|
_proto7.toCharPos = function toCharPos() {
|
|
8342
|
-
var charPos =
|
|
8237
|
+
var charPos = this._charPos;
|
|
8343
8238
|
|
|
8344
8239
|
if (charPos === null) {
|
|
8345
8240
|
var charPosNumber = this.source.charPosFor(this.hbsPos);
|
|
8346
8241
|
|
|
8347
8242
|
if (charPosNumber === null) {
|
|
8348
|
-
|
|
8243
|
+
this._charPos = charPos = BROKEN;
|
|
8349
8244
|
} else {
|
|
8350
|
-
|
|
8245
|
+
this._charPos = charPos = new CharPosition(this.source, charPosNumber);
|
|
8351
8246
|
}
|
|
8352
8247
|
}
|
|
8353
8248
|
|
|
@@ -8382,8 +8277,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8382
8277
|
return HbsPosition;
|
|
8383
8278
|
}();
|
|
8384
8279
|
|
|
8385
|
-
_charPos = new WeakMap();
|
|
8386
|
-
|
|
8387
8280
|
var InvisiblePosition = /*#__PURE__*/function () {
|
|
8388
8281
|
function InvisiblePosition(kind, // whatever was provided, possibly broken
|
|
8389
8282
|
pos) {
|
|
@@ -8472,26 +8365,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8472
8365
|
}).when(MatchAny, MatchAny, function () {
|
|
8473
8366
|
return false;
|
|
8474
8367
|
});
|
|
8475
|
-
});
|
|
8476
|
-
|
|
8477
|
-
var __classPrivateFieldGet$2 = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
8478
|
-
if (!privateMap.has(receiver)) {
|
|
8479
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
8480
|
-
}
|
|
8481
|
-
|
|
8482
|
-
return privateMap.get(receiver);
|
|
8483
|
-
};
|
|
8484
|
-
|
|
8485
|
-
var __classPrivateFieldSet$2 = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
8486
|
-
if (!privateMap.has(receiver)) {
|
|
8487
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
8488
|
-
}
|
|
8489
|
-
|
|
8490
|
-
privateMap.set(receiver, value);
|
|
8491
|
-
return value;
|
|
8492
|
-
};
|
|
8493
|
-
|
|
8494
|
-
var _locPosSpan, _charPosSpan, _providedHbsLoc; // eslint-disable-next-line import/no-extraneous-dependencies
|
|
8368
|
+
}); // eslint-disable-next-line import/no-extraneous-dependencies
|
|
8495
8369
|
|
|
8496
8370
|
/**
|
|
8497
8371
|
* A `SourceSpan` object represents a span of characters inside of a template source.
|
|
@@ -8798,8 +8672,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8798
8672
|
this.kind = "CharPosition"
|
|
8799
8673
|
/* CharPosition */
|
|
8800
8674
|
;
|
|
8801
|
-
|
|
8802
|
-
_locPosSpan.set(this, null);
|
|
8675
|
+
this._locPosSpan = null;
|
|
8803
8676
|
}
|
|
8804
8677
|
|
|
8805
8678
|
var _proto10 = CharPositionSpan.prototype;
|
|
@@ -8827,19 +8700,19 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8827
8700
|
_proto10.locDidUpdate = function locDidUpdate() {};
|
|
8828
8701
|
|
|
8829
8702
|
_proto10.toHbsSpan = function toHbsSpan() {
|
|
8830
|
-
var locPosSpan =
|
|
8703
|
+
var locPosSpan = this._locPosSpan;
|
|
8831
8704
|
|
|
8832
8705
|
if (locPosSpan === null) {
|
|
8833
8706
|
var start = this.charPositions.start.toHbsPos();
|
|
8834
8707
|
var end = this.charPositions.end.toHbsPos();
|
|
8835
8708
|
|
|
8836
8709
|
if (start === null || end === null) {
|
|
8837
|
-
locPosSpan =
|
|
8710
|
+
locPosSpan = this._locPosSpan = BROKEN;
|
|
8838
8711
|
} else {
|
|
8839
|
-
locPosSpan =
|
|
8712
|
+
locPosSpan = this._locPosSpan = new HbsSpan(this.source, {
|
|
8840
8713
|
start: start,
|
|
8841
8714
|
end: end
|
|
8842
|
-
})
|
|
8715
|
+
});
|
|
8843
8716
|
}
|
|
8844
8717
|
}
|
|
8845
8718
|
|
|
@@ -8865,8 +8738,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8865
8738
|
return CharPositionSpan;
|
|
8866
8739
|
}();
|
|
8867
8740
|
|
|
8868
|
-
_locPosSpan = new WeakMap();
|
|
8869
|
-
|
|
8870
8741
|
var HbsSpan = /*#__PURE__*/function () {
|
|
8871
8742
|
function HbsSpan(source, hbsPositions, providedHbsLoc) {
|
|
8872
8743
|
if (providedHbsLoc === void 0) {
|
|
@@ -8878,13 +8749,8 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8878
8749
|
this.kind = "HbsPosition"
|
|
8879
8750
|
/* HbsPosition */
|
|
8880
8751
|
;
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
_providedHbsLoc.set(this, void 0);
|
|
8886
|
-
|
|
8887
|
-
__classPrivateFieldSet$2(this, _providedHbsLoc, providedHbsLoc);
|
|
8752
|
+
this._charPosSpan = null;
|
|
8753
|
+
this._providedHbsLoc = providedHbsLoc;
|
|
8888
8754
|
}
|
|
8889
8755
|
|
|
8890
8756
|
var _proto11 = HbsSpan.prototype;
|
|
@@ -8901,17 +8767,16 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8901
8767
|
};
|
|
8902
8768
|
|
|
8903
8769
|
_proto11.updateProvided = function updateProvided(pos, edge) {
|
|
8904
|
-
if (
|
|
8905
|
-
|
|
8770
|
+
if (this._providedHbsLoc) {
|
|
8771
|
+
this._providedHbsLoc[edge] = pos;
|
|
8906
8772
|
} // invalidate computed character offsets
|
|
8907
8773
|
|
|
8908
8774
|
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
__classPrivateFieldSet$2(this, _providedHbsLoc, {
|
|
8775
|
+
this._charPosSpan = null;
|
|
8776
|
+
this._providedHbsLoc = {
|
|
8912
8777
|
start: pos,
|
|
8913
8778
|
end: pos
|
|
8914
|
-
}
|
|
8779
|
+
};
|
|
8915
8780
|
};
|
|
8916
8781
|
|
|
8917
8782
|
_proto11.locDidUpdate = function locDidUpdate(_ref10) {
|
|
@@ -8958,19 +8823,19 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8958
8823
|
};
|
|
8959
8824
|
|
|
8960
8825
|
_proto11.toCharPosSpan = function toCharPosSpan() {
|
|
8961
|
-
var charPosSpan =
|
|
8826
|
+
var charPosSpan = this._charPosSpan;
|
|
8962
8827
|
|
|
8963
8828
|
if (charPosSpan === null) {
|
|
8964
8829
|
var start = this.hbsPositions.start.toCharPos();
|
|
8965
8830
|
var end = this.hbsPositions.end.toCharPos();
|
|
8966
8831
|
|
|
8967
8832
|
if (start && end) {
|
|
8968
|
-
charPosSpan =
|
|
8833
|
+
charPosSpan = this._charPosSpan = new CharPositionSpan(this.source, {
|
|
8969
8834
|
start: start,
|
|
8970
8835
|
end: end
|
|
8971
|
-
})
|
|
8836
|
+
});
|
|
8972
8837
|
} else {
|
|
8973
|
-
charPosSpan =
|
|
8838
|
+
charPosSpan = this._charPosSpan = BROKEN;
|
|
8974
8839
|
return null;
|
|
8975
8840
|
}
|
|
8976
8841
|
}
|
|
@@ -8981,8 +8846,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
8981
8846
|
return HbsSpan;
|
|
8982
8847
|
}();
|
|
8983
8848
|
|
|
8984
|
-
_charPosSpan = new WeakMap(), _providedHbsLoc = new WeakMap();
|
|
8985
|
-
|
|
8986
8849
|
var InvisibleSpan = /*#__PURE__*/function () {
|
|
8987
8850
|
function InvisibleSpan(kind, // whatever was provided, possibly broken
|
|
8988
8851
|
loc, // if the span represents a synthetic string
|
|
@@ -9230,7 +9093,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
9230
9093
|
this.loc = loc;
|
|
9231
9094
|
this.type = 'PathExpression';
|
|
9232
9095
|
this.this = false;
|
|
9233
|
-
this.data = false;
|
|
9096
|
+
this.data = false; // Cache for the head value.
|
|
9097
|
+
|
|
9098
|
+
this._head = undefined;
|
|
9234
9099
|
var parts = tail.slice();
|
|
9235
9100
|
|
|
9236
9101
|
if (head.type === 'ThisHead') {
|
|
@@ -9248,6 +9113,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
9248
9113
|
(0, _emberBabel.createClass)(PathExpressionImplV1, [{
|
|
9249
9114
|
key: "head",
|
|
9250
9115
|
get: function get() {
|
|
9116
|
+
if (this._head) {
|
|
9117
|
+
return this._head;
|
|
9118
|
+
}
|
|
9119
|
+
|
|
9251
9120
|
var firstPart;
|
|
9252
9121
|
|
|
9253
9122
|
if (this.this) {
|
|
@@ -9261,7 +9130,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
9261
9130
|
var firstPartLoc = this.loc.collapse('start').sliceStartChars({
|
|
9262
9131
|
chars: firstPart.length
|
|
9263
9132
|
}).loc;
|
|
9264
|
-
return publicBuilder.head(firstPart, firstPartLoc);
|
|
9133
|
+
return this._head = publicBuilder.head(firstPart, firstPartLoc);
|
|
9265
9134
|
}
|
|
9266
9135
|
}, {
|
|
9267
9136
|
key: "tail",
|
|
@@ -10054,8 +9923,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10054
9923
|
return /*#__PURE__*/function () {
|
|
10055
9924
|
function _class(fields) {
|
|
10056
9925
|
this.type = type;
|
|
10057
|
-
this
|
|
10058
|
-
copy(fields, this);
|
|
9926
|
+
(0, _util.assign)(this, fields);
|
|
10059
9927
|
}
|
|
10060
9928
|
|
|
10061
9929
|
return _class;
|
|
@@ -10067,8 +9935,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10067
9935
|
fields: function fields() {
|
|
10068
9936
|
return /*#__PURE__*/function () {
|
|
10069
9937
|
function _class2(fields) {
|
|
10070
|
-
this
|
|
10071
|
-
copy(fields, this);
|
|
9938
|
+
(0, _util.assign)(this, fields);
|
|
10072
9939
|
}
|
|
10073
9940
|
|
|
10074
9941
|
return _class2;
|
|
@@ -10077,17 +9944,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10077
9944
|
};
|
|
10078
9945
|
}
|
|
10079
9946
|
}
|
|
10080
|
-
|
|
10081
|
-
function keys(object) {
|
|
10082
|
-
return Object.keys(object);
|
|
10083
|
-
}
|
|
10084
|
-
|
|
10085
|
-
function copy(object1, object2) {
|
|
10086
|
-
for (var _iterator2 = (0, _emberBabel.createForOfIteratorHelperLoose)(keys(object1)), _step2; !(_step2 = _iterator2()).done;) {
|
|
10087
|
-
var _key2 = _step2.value;
|
|
10088
|
-
object2[_key2] = object1[_key2];
|
|
10089
|
-
}
|
|
10090
|
-
}
|
|
10091
9947
|
/**
|
|
10092
9948
|
* Corresponds to syntaxes with positional and named arguments:
|
|
10093
9949
|
*
|
|
@@ -10310,34 +10166,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10310
10166
|
return ElementModifier;
|
|
10311
10167
|
}(node('ElementModifier').fields());
|
|
10312
10168
|
|
|
10313
|
-
var __classPrivateFieldSet$3 = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
10314
|
-
if (!privateMap.has(receiver)) {
|
|
10315
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
10316
|
-
}
|
|
10317
|
-
|
|
10318
|
-
privateMap.set(receiver, value);
|
|
10319
|
-
return value;
|
|
10320
|
-
};
|
|
10321
|
-
|
|
10322
|
-
var __classPrivateFieldGet$3 = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
10323
|
-
if (!privateMap.has(receiver)) {
|
|
10324
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
10325
|
-
}
|
|
10326
|
-
|
|
10327
|
-
return privateMap.get(receiver);
|
|
10328
|
-
};
|
|
10329
|
-
|
|
10330
|
-
var _span;
|
|
10331
|
-
|
|
10332
10169
|
var SpanList = /*#__PURE__*/function () {
|
|
10333
10170
|
function SpanList(span) {
|
|
10334
10171
|
if (span === void 0) {
|
|
10335
10172
|
span = [];
|
|
10336
10173
|
}
|
|
10337
10174
|
|
|
10338
|
-
_span
|
|
10339
|
-
|
|
10340
|
-
__classPrivateFieldSet$3(this, _span, span);
|
|
10175
|
+
this._span = span;
|
|
10341
10176
|
}
|
|
10342
10177
|
|
|
10343
10178
|
SpanList.range = function range(span, fallback) {
|
|
@@ -10351,17 +10186,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10351
10186
|
var _proto20 = SpanList.prototype;
|
|
10352
10187
|
|
|
10353
10188
|
_proto20.add = function add(offset) {
|
|
10354
|
-
|
|
10189
|
+
this._span.push(offset);
|
|
10355
10190
|
};
|
|
10356
10191
|
|
|
10357
10192
|
_proto20.getRangeOffset = function getRangeOffset(fallback) {
|
|
10358
|
-
if (
|
|
10193
|
+
if (this._span.length === 0) {
|
|
10359
10194
|
return fallback;
|
|
10360
10195
|
} else {
|
|
10361
|
-
var first =
|
|
10362
|
-
|
|
10363
|
-
var last = __classPrivateFieldGet$3(this, _span)[__classPrivateFieldGet$3(this, _span).length - 1];
|
|
10364
|
-
|
|
10196
|
+
var first = this._span[0];
|
|
10197
|
+
var last = this._span[this._span.length - 1];
|
|
10365
10198
|
return first.extend(last);
|
|
10366
10199
|
}
|
|
10367
10200
|
};
|
|
@@ -10370,7 +10203,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
10370
10203
|
}();
|
|
10371
10204
|
|
|
10372
10205
|
_exports.SpanList = SpanList;
|
|
10373
|
-
_span = new WeakMap();
|
|
10374
10206
|
|
|
10375
10207
|
function loc(span) {
|
|
10376
10208
|
if (Array.isArray(span)) {
|
|
@@ -11142,8 +10974,8 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11142
10974
|
this.buffer += "<" + el.tag;
|
|
11143
10975
|
var parts = [].concat(el.attributes, el.modifiers, el.comments).sort(sortByLoc);
|
|
11144
10976
|
|
|
11145
|
-
for (var
|
|
11146
|
-
var _part =
|
|
10977
|
+
for (var _iterator2 = (0, _emberBabel.createForOfIteratorHelperLoose)(parts), _step2; !(_step2 = _iterator2()).done;) {
|
|
10978
|
+
var _part = _step2.value;
|
|
11147
10979
|
this.buffer += ' ';
|
|
11148
10980
|
|
|
11149
10981
|
switch (_part.type) {
|
|
@@ -11554,170 +11386,8 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11554
11386
|
return new TraversalError('Replacing and removing in key handlers is not yet supported.', node, null, key);
|
|
11555
11387
|
}
|
|
11556
11388
|
|
|
11557
|
-
function getLocalName(node) {
|
|
11558
|
-
switch (node.type) {
|
|
11559
|
-
case 'ElementNode':
|
|
11560
|
-
// unfortunately the ElementNode stores `tag` as a string
|
|
11561
|
-
// if that changes in glimmer-vm this will need to be updated
|
|
11562
|
-
return node.tag.split('.')[0];
|
|
11563
|
-
|
|
11564
|
-
case 'SubExpression':
|
|
11565
|
-
case 'MustacheStatement':
|
|
11566
|
-
case 'BlockStatement':
|
|
11567
|
-
return getLocalName(node.path);
|
|
11568
|
-
|
|
11569
|
-
case 'UndefinedLiteral':
|
|
11570
|
-
case 'NullLiteral':
|
|
11571
|
-
case 'BooleanLiteral':
|
|
11572
|
-
case 'StringLiteral':
|
|
11573
|
-
case 'NumberLiteral':
|
|
11574
|
-
case 'TextNode':
|
|
11575
|
-
case 'Template':
|
|
11576
|
-
case 'Block':
|
|
11577
|
-
case 'CommentStatement':
|
|
11578
|
-
case 'MustacheCommentStatement':
|
|
11579
|
-
case 'PartialStatement':
|
|
11580
|
-
case 'ElementModifierStatement':
|
|
11581
|
-
case 'AttrNode':
|
|
11582
|
-
case 'ConcatStatement':
|
|
11583
|
-
case 'Program':
|
|
11584
|
-
case 'Hash':
|
|
11585
|
-
case 'HashPair':
|
|
11586
|
-
return undefined;
|
|
11587
|
-
|
|
11588
|
-
case 'PathExpression':
|
|
11589
|
-
default:
|
|
11590
|
-
return node.parts.length ? node.parts[0] : undefined;
|
|
11591
|
-
}
|
|
11592
|
-
}
|
|
11593
|
-
|
|
11594
|
-
function getLocals(node) {
|
|
11595
|
-
switch (node.type) {
|
|
11596
|
-
case 'ElementNode':
|
|
11597
|
-
case 'Program':
|
|
11598
|
-
case 'Block':
|
|
11599
|
-
case 'Template':
|
|
11600
|
-
return node.blockParams;
|
|
11601
|
-
|
|
11602
|
-
case 'BlockStatement':
|
|
11603
|
-
return node.program.blockParams;
|
|
11604
|
-
|
|
11605
|
-
default:
|
|
11606
|
-
return undefined;
|
|
11607
|
-
}
|
|
11608
|
-
}
|
|
11609
|
-
|
|
11610
|
-
var TransformScope = /*#__PURE__*/function () {
|
|
11611
|
-
function TransformScope(locals) {
|
|
11612
|
-
this.locals = locals;
|
|
11613
|
-
this.hasPartial = false;
|
|
11614
|
-
this.usedLocals = {};
|
|
11615
|
-
|
|
11616
|
-
for (var _iterator4 = (0, _emberBabel.createForOfIteratorHelperLoose)(locals), _step4; !(_step4 = _iterator4()).done;) {
|
|
11617
|
-
var _local = _step4.value;
|
|
11618
|
-
this.usedLocals[_local] = false;
|
|
11619
|
-
}
|
|
11620
|
-
}
|
|
11621
|
-
|
|
11622
|
-
var _proto24 = TransformScope.prototype;
|
|
11623
|
-
|
|
11624
|
-
_proto24.child = function child(node) {
|
|
11625
|
-
var locals = getLocals(node);
|
|
11626
|
-
return locals ? new ChildTransformScope(locals, this) : this;
|
|
11627
|
-
};
|
|
11628
|
-
|
|
11629
|
-
_proto24.usePartial = function usePartial() {
|
|
11630
|
-
this.hasPartial = true;
|
|
11631
|
-
};
|
|
11632
|
-
|
|
11633
|
-
return TransformScope;
|
|
11634
|
-
}();
|
|
11635
|
-
|
|
11636
|
-
var RootTransformScope = /*#__PURE__*/function (_TransformScope) {
|
|
11637
|
-
(0, _emberBabel.inheritsLoose)(RootTransformScope, _TransformScope);
|
|
11638
|
-
|
|
11639
|
-
function RootTransformScope(node) {
|
|
11640
|
-
var _a;
|
|
11641
|
-
|
|
11642
|
-
var locals = (_a = getLocals(node)) !== null && _a !== void 0 ? _a : [];
|
|
11643
|
-
return _TransformScope.call(this, locals) || this;
|
|
11644
|
-
}
|
|
11645
|
-
|
|
11646
|
-
var _proto25 = RootTransformScope.prototype;
|
|
11647
|
-
|
|
11648
|
-
_proto25.useLocal = function useLocal(node) {
|
|
11649
|
-
var name = getLocalName(node);
|
|
11650
|
-
|
|
11651
|
-
if (name && name in this.usedLocals) {
|
|
11652
|
-
this.usedLocals[name] = true;
|
|
11653
|
-
}
|
|
11654
|
-
};
|
|
11655
|
-
|
|
11656
|
-
_proto25.isLocal = function isLocal(name) {
|
|
11657
|
-
return this.locals.indexOf(name) !== -1;
|
|
11658
|
-
};
|
|
11659
|
-
|
|
11660
|
-
_proto25.currentUnusedLocals = function currentUnusedLocals() {
|
|
11661
|
-
var _this6 = this;
|
|
11662
|
-
|
|
11663
|
-
if (!this.hasPartial && this.locals.length > 0) {
|
|
11664
|
-
return this.locals.filter(function (local) {
|
|
11665
|
-
return !_this6.usedLocals[local];
|
|
11666
|
-
});
|
|
11667
|
-
}
|
|
11668
|
-
|
|
11669
|
-
return false;
|
|
11670
|
-
};
|
|
11671
|
-
|
|
11672
|
-
return RootTransformScope;
|
|
11673
|
-
}(TransformScope);
|
|
11674
|
-
|
|
11675
|
-
var ChildTransformScope = /*#__PURE__*/function (_TransformScope2) {
|
|
11676
|
-
(0, _emberBabel.inheritsLoose)(ChildTransformScope, _TransformScope2);
|
|
11677
|
-
|
|
11678
|
-
function ChildTransformScope(locals, parent) {
|
|
11679
|
-
var _this7;
|
|
11680
|
-
|
|
11681
|
-
_this7 = _TransformScope2.call(this, locals) || this;
|
|
11682
|
-
_this7.parent = parent;
|
|
11683
|
-
return _this7;
|
|
11684
|
-
}
|
|
11685
|
-
|
|
11686
|
-
var _proto26 = ChildTransformScope.prototype;
|
|
11687
|
-
|
|
11688
|
-
_proto26.useLocal = function useLocal(node) {
|
|
11689
|
-
var name = getLocalName(node);
|
|
11690
|
-
|
|
11691
|
-
if (name && name in this.usedLocals) {
|
|
11692
|
-
this.usedLocals[name] = true;
|
|
11693
|
-
} else {
|
|
11694
|
-
this.parent.useLocal(node);
|
|
11695
|
-
}
|
|
11696
|
-
};
|
|
11697
|
-
|
|
11698
|
-
_proto26.isLocal = function isLocal(name) {
|
|
11699
|
-
return this.locals.indexOf(name) !== -1 || this.parent.isLocal(name);
|
|
11700
|
-
};
|
|
11701
|
-
|
|
11702
|
-
_proto26.currentUnusedLocals = function currentUnusedLocals() {
|
|
11703
|
-
if (!this.hasPartial && this.locals.length > 0) {
|
|
11704
|
-
// We only care about the last local, because if it is used then it implies
|
|
11705
|
-
// usage of the others (specifically when in a child block, |foo bar|)
|
|
11706
|
-
if (!this.usedLocals[this.locals[this.locals.length - 1]]) {
|
|
11707
|
-
return [this.locals[this.locals.length - 1]];
|
|
11708
|
-
}
|
|
11709
|
-
}
|
|
11710
|
-
|
|
11711
|
-
return false;
|
|
11712
|
-
};
|
|
11713
|
-
|
|
11714
|
-
return ChildTransformScope;
|
|
11715
|
-
}(TransformScope);
|
|
11716
|
-
|
|
11717
11389
|
var WalkerPath = /*#__PURE__*/function () {
|
|
11718
11390
|
function WalkerPath(node, parent, parentKey) {
|
|
11719
|
-
var _this8 = this;
|
|
11720
|
-
|
|
11721
11391
|
if (parent === void 0) {
|
|
11722
11392
|
parent = null;
|
|
11723
11393
|
}
|
|
@@ -11729,28 +11399,16 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11729
11399
|
this.node = node;
|
|
11730
11400
|
this.parent = parent;
|
|
11731
11401
|
this.parentKey = parentKey;
|
|
11732
|
-
this.scope = parent ? parent.scope.child(node) : new RootTransformScope(node); // Consume in scope values
|
|
11733
|
-
|
|
11734
|
-
if (node.type === 'PathExpression') {
|
|
11735
|
-
this.scope.useLocal(node);
|
|
11736
|
-
}
|
|
11737
|
-
|
|
11738
|
-
if (node.type === 'ElementNode') {
|
|
11739
|
-
this.scope.useLocal(node);
|
|
11740
|
-
node.children.forEach(function (node) {
|
|
11741
|
-
return _this8.scope.useLocal(node);
|
|
11742
|
-
});
|
|
11743
|
-
}
|
|
11744
11402
|
}
|
|
11745
11403
|
|
|
11746
|
-
var
|
|
11404
|
+
var _proto24 = WalkerPath.prototype;
|
|
11747
11405
|
|
|
11748
|
-
|
|
11749
|
-
var
|
|
11406
|
+
_proto24.parents = function parents() {
|
|
11407
|
+
var _this6 = this,
|
|
11750
11408
|
_ref15;
|
|
11751
11409
|
|
|
11752
11410
|
return _ref15 = {}, _ref15[Symbol.iterator] = function () {
|
|
11753
|
-
return new PathParentsIterator(
|
|
11411
|
+
return new PathParentsIterator(_this6);
|
|
11754
11412
|
}, _ref15;
|
|
11755
11413
|
};
|
|
11756
11414
|
|
|
@@ -11770,9 +11428,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11770
11428
|
this.path = path;
|
|
11771
11429
|
}
|
|
11772
11430
|
|
|
11773
|
-
var
|
|
11431
|
+
var _proto25 = PathParentsIterator.prototype;
|
|
11774
11432
|
|
|
11775
|
-
|
|
11433
|
+
_proto25.next = function next() {
|
|
11776
11434
|
if (this.path.parent) {
|
|
11777
11435
|
this.path = this.path.parent;
|
|
11778
11436
|
return {
|
|
@@ -11867,10 +11525,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11867
11525
|
}
|
|
11868
11526
|
|
|
11869
11527
|
if (result === undefined) {
|
|
11870
|
-
var
|
|
11528
|
+
var keys = visitorKeys[node.type];
|
|
11871
11529
|
|
|
11872
|
-
for (var i = 0; i <
|
|
11873
|
-
var key =
|
|
11530
|
+
for (var i = 0; i < keys.length; i++) {
|
|
11531
|
+
var key = keys[i]; // we know if it has child keys we can widen to a ParentNode
|
|
11874
11532
|
|
|
11875
11533
|
visitKey(visitor, handler, path, key);
|
|
11876
11534
|
}
|
|
@@ -11992,9 +11650,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
11992
11650
|
this.stack = [];
|
|
11993
11651
|
}
|
|
11994
11652
|
|
|
11995
|
-
var
|
|
11653
|
+
var _proto26 = Walker.prototype;
|
|
11996
11654
|
|
|
11997
|
-
|
|
11655
|
+
_proto26.visit = function visit(node, callback) {
|
|
11998
11656
|
if (!node) {
|
|
11999
11657
|
return;
|
|
12000
11658
|
}
|
|
@@ -12012,7 +11670,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12012
11670
|
this.stack.pop();
|
|
12013
11671
|
};
|
|
12014
11672
|
|
|
12015
|
-
|
|
11673
|
+
_proto26.children = function children(node, callback) {
|
|
12016
11674
|
switch (node.type) {
|
|
12017
11675
|
case 'Block':
|
|
12018
11676
|
case 'Template':
|
|
@@ -12165,16 +11823,16 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12165
11823
|
var Builders = /*#__PURE__*/function () {
|
|
12166
11824
|
function Builders() {}
|
|
12167
11825
|
|
|
12168
|
-
var
|
|
11826
|
+
var _proto27 = Builders.prototype;
|
|
12169
11827
|
|
|
12170
|
-
|
|
11828
|
+
_proto27.pos = function pos(line, column) {
|
|
12171
11829
|
return {
|
|
12172
11830
|
line: line,
|
|
12173
11831
|
column: column
|
|
12174
11832
|
};
|
|
12175
11833
|
};
|
|
12176
11834
|
|
|
12177
|
-
|
|
11835
|
+
_proto27.blockItself = function blockItself(_ref16) {
|
|
12178
11836
|
var body = _ref16.body,
|
|
12179
11837
|
blockParams = _ref16.blockParams,
|
|
12180
11838
|
_ref16$chained = _ref16.chained,
|
|
@@ -12189,7 +11847,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12189
11847
|
};
|
|
12190
11848
|
};
|
|
12191
11849
|
|
|
12192
|
-
|
|
11850
|
+
_proto27.template = function template(_ref17) {
|
|
12193
11851
|
var body = _ref17.body,
|
|
12194
11852
|
blockParams = _ref17.blockParams,
|
|
12195
11853
|
loc = _ref17.loc;
|
|
@@ -12201,7 +11859,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12201
11859
|
};
|
|
12202
11860
|
};
|
|
12203
11861
|
|
|
12204
|
-
|
|
11862
|
+
_proto27.mustache = function mustache(_ref18) {
|
|
12205
11863
|
var path = _ref18.path,
|
|
12206
11864
|
params = _ref18.params,
|
|
12207
11865
|
hash = _ref18.hash,
|
|
@@ -12224,7 +11882,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12224
11882
|
};
|
|
12225
11883
|
};
|
|
12226
11884
|
|
|
12227
|
-
|
|
11885
|
+
_proto27.block = function block(_ref19) {
|
|
12228
11886
|
var path = _ref19.path,
|
|
12229
11887
|
params = _ref19.params,
|
|
12230
11888
|
hash = _ref19.hash,
|
|
@@ -12252,7 +11910,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12252
11910
|
};
|
|
12253
11911
|
};
|
|
12254
11912
|
|
|
12255
|
-
|
|
11913
|
+
_proto27.comment = function comment(value, loc) {
|
|
12256
11914
|
return {
|
|
12257
11915
|
type: 'CommentStatement',
|
|
12258
11916
|
value: value,
|
|
@@ -12260,7 +11918,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12260
11918
|
};
|
|
12261
11919
|
};
|
|
12262
11920
|
|
|
12263
|
-
|
|
11921
|
+
_proto27.mustacheComment = function mustacheComment(value, loc) {
|
|
12264
11922
|
return {
|
|
12265
11923
|
type: 'MustacheCommentStatement',
|
|
12266
11924
|
value: value,
|
|
@@ -12268,7 +11926,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12268
11926
|
};
|
|
12269
11927
|
};
|
|
12270
11928
|
|
|
12271
|
-
|
|
11929
|
+
_proto27.concat = function concat(parts, loc) {
|
|
12272
11930
|
return {
|
|
12273
11931
|
type: 'ConcatStatement',
|
|
12274
11932
|
parts: parts,
|
|
@@ -12276,7 +11934,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12276
11934
|
};
|
|
12277
11935
|
};
|
|
12278
11936
|
|
|
12279
|
-
|
|
11937
|
+
_proto27.element = function element(_ref20) {
|
|
12280
11938
|
var tag = _ref20.tag,
|
|
12281
11939
|
selfClosing = _ref20.selfClosing,
|
|
12282
11940
|
attrs = _ref20.attrs,
|
|
@@ -12298,7 +11956,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12298
11956
|
};
|
|
12299
11957
|
};
|
|
12300
11958
|
|
|
12301
|
-
|
|
11959
|
+
_proto27.elementModifier = function elementModifier(_ref21) {
|
|
12302
11960
|
var path = _ref21.path,
|
|
12303
11961
|
params = _ref21.params,
|
|
12304
11962
|
hash = _ref21.hash,
|
|
@@ -12312,7 +11970,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12312
11970
|
};
|
|
12313
11971
|
};
|
|
12314
11972
|
|
|
12315
|
-
|
|
11973
|
+
_proto27.attr = function attr(_ref22) {
|
|
12316
11974
|
var name = _ref22.name,
|
|
12317
11975
|
value = _ref22.value,
|
|
12318
11976
|
loc = _ref22.loc;
|
|
@@ -12324,7 +11982,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12324
11982
|
};
|
|
12325
11983
|
};
|
|
12326
11984
|
|
|
12327
|
-
|
|
11985
|
+
_proto27.text = function text(_ref23) {
|
|
12328
11986
|
var chars = _ref23.chars,
|
|
12329
11987
|
loc = _ref23.loc;
|
|
12330
11988
|
return {
|
|
@@ -12334,7 +11992,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12334
11992
|
};
|
|
12335
11993
|
};
|
|
12336
11994
|
|
|
12337
|
-
|
|
11995
|
+
_proto27.sexpr = function sexpr(_ref24) {
|
|
12338
11996
|
var path = _ref24.path,
|
|
12339
11997
|
params = _ref24.params,
|
|
12340
11998
|
hash = _ref24.hash,
|
|
@@ -12348,7 +12006,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12348
12006
|
};
|
|
12349
12007
|
};
|
|
12350
12008
|
|
|
12351
|
-
|
|
12009
|
+
_proto27.path = function path(_ref25) {
|
|
12352
12010
|
var head = _ref25.head,
|
|
12353
12011
|
tail = _ref25.tail,
|
|
12354
12012
|
loc = _ref25.loc;
|
|
@@ -12360,7 +12018,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12360
12018
|
return new PathExpressionImplV1(original, head, tail, loc);
|
|
12361
12019
|
};
|
|
12362
12020
|
|
|
12363
|
-
|
|
12021
|
+
_proto27.head = function head(_head2, loc) {
|
|
12364
12022
|
if (_head2[0] === '@') {
|
|
12365
12023
|
return this.atName(_head2, loc);
|
|
12366
12024
|
} else if (_head2 === 'this') {
|
|
@@ -12370,14 +12028,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12370
12028
|
}
|
|
12371
12029
|
};
|
|
12372
12030
|
|
|
12373
|
-
|
|
12031
|
+
_proto27.this = function _this(loc) {
|
|
12374
12032
|
return {
|
|
12375
12033
|
type: 'ThisHead',
|
|
12376
12034
|
loc: loc
|
|
12377
12035
|
};
|
|
12378
12036
|
};
|
|
12379
12037
|
|
|
12380
|
-
|
|
12038
|
+
_proto27.atName = function atName(name, loc) {
|
|
12381
12039
|
return {
|
|
12382
12040
|
type: 'AtHead',
|
|
12383
12041
|
name: name,
|
|
@@ -12385,7 +12043,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12385
12043
|
};
|
|
12386
12044
|
};
|
|
12387
12045
|
|
|
12388
|
-
|
|
12046
|
+
_proto27.var = function _var(name, loc) {
|
|
12389
12047
|
return {
|
|
12390
12048
|
type: 'VarHead',
|
|
12391
12049
|
name: name,
|
|
@@ -12393,7 +12051,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12393
12051
|
};
|
|
12394
12052
|
};
|
|
12395
12053
|
|
|
12396
|
-
|
|
12054
|
+
_proto27.hash = function hash(pairs, loc) {
|
|
12397
12055
|
return {
|
|
12398
12056
|
type: 'Hash',
|
|
12399
12057
|
pairs: pairs || [],
|
|
@@ -12401,7 +12059,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12401
12059
|
};
|
|
12402
12060
|
};
|
|
12403
12061
|
|
|
12404
|
-
|
|
12062
|
+
_proto27.pair = function pair(_ref26) {
|
|
12405
12063
|
var key = _ref26.key,
|
|
12406
12064
|
value = _ref26.value,
|
|
12407
12065
|
loc = _ref26.loc;
|
|
@@ -12413,7 +12071,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12413
12071
|
};
|
|
12414
12072
|
};
|
|
12415
12073
|
|
|
12416
|
-
|
|
12074
|
+
_proto27.literal = function literal(_ref27) {
|
|
12417
12075
|
var type = _ref27.type,
|
|
12418
12076
|
value = _ref27.value,
|
|
12419
12077
|
loc = _ref27.loc;
|
|
@@ -12425,7 +12083,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12425
12083
|
};
|
|
12426
12084
|
};
|
|
12427
12085
|
|
|
12428
|
-
|
|
12086
|
+
_proto27.undefined = function (_undefined2) {
|
|
12429
12087
|
function undefined() {
|
|
12430
12088
|
return _undefined2.apply(this, arguments);
|
|
12431
12089
|
}
|
|
@@ -12442,14 +12100,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12442
12100
|
});
|
|
12443
12101
|
});
|
|
12444
12102
|
|
|
12445
|
-
|
|
12103
|
+
_proto27.null = function _null() {
|
|
12446
12104
|
return this.literal({
|
|
12447
12105
|
type: 'NullLiteral',
|
|
12448
12106
|
value: null
|
|
12449
12107
|
});
|
|
12450
12108
|
};
|
|
12451
12109
|
|
|
12452
|
-
|
|
12110
|
+
_proto27.string = function string(value, loc) {
|
|
12453
12111
|
return this.literal({
|
|
12454
12112
|
type: 'StringLiteral',
|
|
12455
12113
|
value: value,
|
|
@@ -12457,7 +12115,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12457
12115
|
});
|
|
12458
12116
|
};
|
|
12459
12117
|
|
|
12460
|
-
|
|
12118
|
+
_proto27.boolean = function boolean(value, loc) {
|
|
12461
12119
|
return this.literal({
|
|
12462
12120
|
type: 'BooleanLiteral',
|
|
12463
12121
|
value: value,
|
|
@@ -12465,7 +12123,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12465
12123
|
});
|
|
12466
12124
|
};
|
|
12467
12125
|
|
|
12468
|
-
|
|
12126
|
+
_proto27.number = function number(value, loc) {
|
|
12469
12127
|
return this.literal({
|
|
12470
12128
|
type: 'NumberLiteral',
|
|
12471
12129
|
value: value,
|
|
@@ -12519,40 +12177,40 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12519
12177
|
this.tokenizer = new _simpleHtmlTokenizer.EventedTokenizer(this, entityParser, mode);
|
|
12520
12178
|
}
|
|
12521
12179
|
|
|
12522
|
-
var
|
|
12180
|
+
var _proto28 = Parser.prototype;
|
|
12523
12181
|
|
|
12524
|
-
|
|
12182
|
+
_proto28.offset = function offset() {
|
|
12525
12183
|
var _this$tokenizer = this.tokenizer,
|
|
12526
12184
|
line = _this$tokenizer.line,
|
|
12527
12185
|
column = _this$tokenizer.column;
|
|
12528
12186
|
return this.source.offsetFor(line, column);
|
|
12529
12187
|
};
|
|
12530
12188
|
|
|
12531
|
-
|
|
12189
|
+
_proto28.pos = function pos(_ref28) {
|
|
12532
12190
|
var line = _ref28.line,
|
|
12533
12191
|
column = _ref28.column;
|
|
12534
12192
|
return this.source.offsetFor(line, column);
|
|
12535
12193
|
};
|
|
12536
12194
|
|
|
12537
|
-
|
|
12195
|
+
_proto28.finish = function finish(node) {
|
|
12538
12196
|
return (0, _util.assign)({}, node, {
|
|
12539
12197
|
loc: node.loc.until(this.offset())
|
|
12540
12198
|
}); // node.loc = node.loc.withEnd(end);
|
|
12541
12199
|
};
|
|
12542
12200
|
|
|
12543
|
-
|
|
12201
|
+
_proto28.acceptTemplate = function acceptTemplate(node) {
|
|
12544
12202
|
return this[node.type](node);
|
|
12545
12203
|
};
|
|
12546
12204
|
|
|
12547
|
-
|
|
12205
|
+
_proto28.acceptNode = function acceptNode(node) {
|
|
12548
12206
|
return this[node.type](node);
|
|
12549
12207
|
};
|
|
12550
12208
|
|
|
12551
|
-
|
|
12209
|
+
_proto28.currentElement = function currentElement() {
|
|
12552
12210
|
return this.elementStack[this.elementStack.length - 1];
|
|
12553
12211
|
};
|
|
12554
12212
|
|
|
12555
|
-
|
|
12213
|
+
_proto28.sourceForNode = function sourceForNode(node, endNode) {
|
|
12556
12214
|
var firstLine = node.loc.start.line - 1;
|
|
12557
12215
|
var currentLine = firstLine - 1;
|
|
12558
12216
|
var firstColumn = node.loc.start.column;
|
|
@@ -12635,9 +12293,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12635
12293
|
return _Parser.apply(this, arguments) || this;
|
|
12636
12294
|
}
|
|
12637
12295
|
|
|
12638
|
-
var
|
|
12296
|
+
var _proto29 = HandlebarsNodeVisitors.prototype;
|
|
12639
12297
|
|
|
12640
|
-
|
|
12298
|
+
_proto29.Program = function Program(program) {
|
|
12641
12299
|
var body = [];
|
|
12642
12300
|
var node;
|
|
12643
12301
|
|
|
@@ -12679,7 +12337,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12679
12337
|
return node;
|
|
12680
12338
|
};
|
|
12681
12339
|
|
|
12682
|
-
|
|
12340
|
+
_proto29.BlockStatement = function BlockStatement(block) {
|
|
12683
12341
|
if (this.tokenizer.state === "comment"
|
|
12684
12342
|
/* comment */
|
|
12685
12343
|
) {
|
|
@@ -12726,7 +12384,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12726
12384
|
appendChild(parentProgram, node);
|
|
12727
12385
|
};
|
|
12728
12386
|
|
|
12729
|
-
|
|
12387
|
+
_proto29.MustacheStatement = function MustacheStatement(rawMustache) {
|
|
12730
12388
|
var tokenizer = this.tokenizer;
|
|
12731
12389
|
|
|
12732
12390
|
if (tokenizer.state === 'comment') {
|
|
@@ -12835,14 +12493,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12835
12493
|
return mustache;
|
|
12836
12494
|
};
|
|
12837
12495
|
|
|
12838
|
-
|
|
12496
|
+
_proto29.appendDynamicAttributeValuePart = function appendDynamicAttributeValuePart(part) {
|
|
12839
12497
|
this.finalizeTextPart();
|
|
12840
12498
|
var attr = this.currentAttr;
|
|
12841
12499
|
attr.isDynamic = true;
|
|
12842
12500
|
attr.parts.push(part);
|
|
12843
12501
|
};
|
|
12844
12502
|
|
|
12845
|
-
|
|
12503
|
+
_proto29.finalizeTextPart = function finalizeTextPart() {
|
|
12846
12504
|
var attr = this.currentAttr;
|
|
12847
12505
|
var text = attr.currentPart;
|
|
12848
12506
|
|
|
@@ -12852,17 +12510,17 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12852
12510
|
}
|
|
12853
12511
|
};
|
|
12854
12512
|
|
|
12855
|
-
|
|
12513
|
+
_proto29.startTextPart = function startTextPart() {
|
|
12856
12514
|
this.currentAttr.currentPart = null;
|
|
12857
12515
|
};
|
|
12858
12516
|
|
|
12859
|
-
|
|
12517
|
+
_proto29.ContentStatement = function ContentStatement(content) {
|
|
12860
12518
|
updateTokenizerLocation(this.tokenizer, content);
|
|
12861
12519
|
this.tokenizer.tokenizePart(content.value);
|
|
12862
12520
|
this.tokenizer.flushData();
|
|
12863
12521
|
};
|
|
12864
12522
|
|
|
12865
|
-
|
|
12523
|
+
_proto29.CommentStatement = function CommentStatement(rawComment) {
|
|
12866
12524
|
var tokenizer = this.tokenizer;
|
|
12867
12525
|
|
|
12868
12526
|
if (tokenizer.state === "comment"
|
|
@@ -12902,23 +12560,23 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12902
12560
|
return comment;
|
|
12903
12561
|
};
|
|
12904
12562
|
|
|
12905
|
-
|
|
12563
|
+
_proto29.PartialStatement = function PartialStatement(partial) {
|
|
12906
12564
|
throw generateSyntaxError("Handlebars partials are not supported", this.source.spanFor(partial.loc));
|
|
12907
12565
|
};
|
|
12908
12566
|
|
|
12909
|
-
|
|
12567
|
+
_proto29.PartialBlockStatement = function PartialBlockStatement(partialBlock) {
|
|
12910
12568
|
throw generateSyntaxError("Handlebars partial blocks are not supported", this.source.spanFor(partialBlock.loc));
|
|
12911
12569
|
};
|
|
12912
12570
|
|
|
12913
|
-
|
|
12571
|
+
_proto29.Decorator = function Decorator(decorator) {
|
|
12914
12572
|
throw generateSyntaxError("Handlebars decorators are not supported", this.source.spanFor(decorator.loc));
|
|
12915
12573
|
};
|
|
12916
12574
|
|
|
12917
|
-
|
|
12575
|
+
_proto29.DecoratorBlock = function DecoratorBlock(decoratorBlock) {
|
|
12918
12576
|
throw generateSyntaxError("Handlebars decorator blocks are not supported", this.source.spanFor(decoratorBlock.loc));
|
|
12919
12577
|
};
|
|
12920
12578
|
|
|
12921
|
-
|
|
12579
|
+
_proto29.SubExpression = function SubExpression(sexpr) {
|
|
12922
12580
|
var _acceptCallNodes3 = acceptCallNodes(this, sexpr),
|
|
12923
12581
|
path = _acceptCallNodes3.path,
|
|
12924
12582
|
params = _acceptCallNodes3.params,
|
|
@@ -12932,7 +12590,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
12932
12590
|
});
|
|
12933
12591
|
};
|
|
12934
12592
|
|
|
12935
|
-
|
|
12593
|
+
_proto29.PathExpression = function PathExpression(path) {
|
|
12936
12594
|
var original = path.original;
|
|
12937
12595
|
var parts;
|
|
12938
12596
|
|
|
@@ -13025,7 +12683,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13025
12683
|
return new PathExpressionImplV1(path.original, pathHead, parts, this.source.spanFor(path.loc));
|
|
13026
12684
|
};
|
|
13027
12685
|
|
|
13028
|
-
|
|
12686
|
+
_proto29.Hash = function Hash(hash) {
|
|
13029
12687
|
var pairs = [];
|
|
13030
12688
|
|
|
13031
12689
|
for (var i = 0; i < hash.pairs.length; i++) {
|
|
@@ -13040,7 +12698,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13040
12698
|
return b.hash(pairs, this.source.spanFor(hash.loc));
|
|
13041
12699
|
};
|
|
13042
12700
|
|
|
13043
|
-
|
|
12701
|
+
_proto29.StringLiteral = function StringLiteral(string) {
|
|
13044
12702
|
return b.literal({
|
|
13045
12703
|
type: 'StringLiteral',
|
|
13046
12704
|
value: string.value,
|
|
@@ -13048,7 +12706,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13048
12706
|
});
|
|
13049
12707
|
};
|
|
13050
12708
|
|
|
13051
|
-
|
|
12709
|
+
_proto29.BooleanLiteral = function BooleanLiteral(boolean) {
|
|
13052
12710
|
return b.literal({
|
|
13053
12711
|
type: 'BooleanLiteral',
|
|
13054
12712
|
value: boolean.value,
|
|
@@ -13056,7 +12714,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13056
12714
|
});
|
|
13057
12715
|
};
|
|
13058
12716
|
|
|
13059
|
-
|
|
12717
|
+
_proto29.NumberLiteral = function NumberLiteral(number) {
|
|
13060
12718
|
return b.literal({
|
|
13061
12719
|
type: 'NumberLiteral',
|
|
13062
12720
|
value: number.value,
|
|
@@ -13064,7 +12722,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13064
12722
|
});
|
|
13065
12723
|
};
|
|
13066
12724
|
|
|
13067
|
-
|
|
12725
|
+
_proto29.UndefinedLiteral = function UndefinedLiteral(undef) {
|
|
13068
12726
|
return b.literal({
|
|
13069
12727
|
type: 'UndefinedLiteral',
|
|
13070
12728
|
value: undefined,
|
|
@@ -13072,7 +12730,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13072
12730
|
});
|
|
13073
12731
|
};
|
|
13074
12732
|
|
|
13075
|
-
|
|
12733
|
+
_proto29.NullLiteral = function NullLiteral(nul) {
|
|
13076
12734
|
return b.literal({
|
|
13077
12735
|
type: 'NullLiteral',
|
|
13078
12736
|
value: null,
|
|
@@ -13172,57 +12830,57 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13172
12830
|
(0, _emberBabel.inheritsLoose)(TokenizerEventHandlers, _HandlebarsNodeVisito);
|
|
13173
12831
|
|
|
13174
12832
|
function TokenizerEventHandlers() {
|
|
13175
|
-
var
|
|
12833
|
+
var _this7;
|
|
13176
12834
|
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
return
|
|
12835
|
+
_this7 = _HandlebarsNodeVisito.apply(this, arguments) || this;
|
|
12836
|
+
_this7.tagOpenLine = 0;
|
|
12837
|
+
_this7.tagOpenColumn = 0;
|
|
12838
|
+
return _this7;
|
|
13181
12839
|
}
|
|
13182
12840
|
|
|
13183
|
-
var
|
|
12841
|
+
var _proto30 = TokenizerEventHandlers.prototype;
|
|
13184
12842
|
|
|
13185
|
-
|
|
12843
|
+
_proto30.reset = function reset() {
|
|
13186
12844
|
this.currentNode = null;
|
|
13187
12845
|
} // Comment
|
|
13188
12846
|
;
|
|
13189
12847
|
|
|
13190
|
-
|
|
12848
|
+
_proto30.beginComment = function beginComment() {
|
|
13191
12849
|
this.currentNode = b.comment('', this.source.offsetFor(this.tagOpenLine, this.tagOpenColumn));
|
|
13192
12850
|
};
|
|
13193
12851
|
|
|
13194
|
-
|
|
12852
|
+
_proto30.appendToCommentData = function appendToCommentData(char) {
|
|
13195
12853
|
this.currentComment.value += char;
|
|
13196
12854
|
};
|
|
13197
12855
|
|
|
13198
|
-
|
|
12856
|
+
_proto30.finishComment = function finishComment() {
|
|
13199
12857
|
appendChild(this.currentElement(), this.finish(this.currentComment));
|
|
13200
12858
|
} // Data
|
|
13201
12859
|
;
|
|
13202
12860
|
|
|
13203
|
-
|
|
12861
|
+
_proto30.beginData = function beginData() {
|
|
13204
12862
|
this.currentNode = b.text({
|
|
13205
12863
|
chars: '',
|
|
13206
12864
|
loc: this.offset().collapsed()
|
|
13207
12865
|
});
|
|
13208
12866
|
};
|
|
13209
12867
|
|
|
13210
|
-
|
|
12868
|
+
_proto30.appendToData = function appendToData(char) {
|
|
13211
12869
|
this.currentData.chars += char;
|
|
13212
12870
|
};
|
|
13213
12871
|
|
|
13214
|
-
|
|
12872
|
+
_proto30.finishData = function finishData() {
|
|
13215
12873
|
this.currentData.loc = this.currentData.loc.withEnd(this.offset());
|
|
13216
12874
|
appendChild(this.currentElement(), this.currentData);
|
|
13217
12875
|
} // Tags - basic
|
|
13218
12876
|
;
|
|
13219
12877
|
|
|
13220
|
-
|
|
12878
|
+
_proto30.tagOpen = function tagOpen() {
|
|
13221
12879
|
this.tagOpenLine = this.tokenizer.line;
|
|
13222
12880
|
this.tagOpenColumn = this.tokenizer.column;
|
|
13223
12881
|
};
|
|
13224
12882
|
|
|
13225
|
-
|
|
12883
|
+
_proto30.beginStartTag = function beginStartTag() {
|
|
13226
12884
|
this.currentNode = {
|
|
13227
12885
|
type: 'StartTag',
|
|
13228
12886
|
name: '',
|
|
@@ -13234,7 +12892,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13234
12892
|
};
|
|
13235
12893
|
};
|
|
13236
12894
|
|
|
13237
|
-
|
|
12895
|
+
_proto30.beginEndTag = function beginEndTag() {
|
|
13238
12896
|
this.currentNode = {
|
|
13239
12897
|
type: 'EndTag',
|
|
13240
12898
|
name: '',
|
|
@@ -13246,7 +12904,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13246
12904
|
};
|
|
13247
12905
|
};
|
|
13248
12906
|
|
|
13249
|
-
|
|
12907
|
+
_proto30.finishTag = function finishTag() {
|
|
13250
12908
|
var tag = this.finish(this.currentTag);
|
|
13251
12909
|
|
|
13252
12910
|
if (tag.type === 'StartTag') {
|
|
@@ -13267,7 +12925,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13267
12925
|
}
|
|
13268
12926
|
};
|
|
13269
12927
|
|
|
13270
|
-
|
|
12928
|
+
_proto30.finishStartTag = function finishStartTag() {
|
|
13271
12929
|
var _this$finish = this.finish(this.currentStartTag),
|
|
13272
12930
|
name = _this$finish.name,
|
|
13273
12931
|
attrs = _this$finish.attributes,
|
|
@@ -13289,7 +12947,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13289
12947
|
this.elementStack.push(element);
|
|
13290
12948
|
};
|
|
13291
12949
|
|
|
13292
|
-
|
|
12950
|
+
_proto30.finishEndTag = function finishEndTag(isVoid) {
|
|
13293
12951
|
var tag = this.finish(this.currentTag);
|
|
13294
12952
|
var element = this.elementStack.pop();
|
|
13295
12953
|
var parent = this.currentElement();
|
|
@@ -13299,17 +12957,17 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13299
12957
|
appendChild(parent, element);
|
|
13300
12958
|
};
|
|
13301
12959
|
|
|
13302
|
-
|
|
12960
|
+
_proto30.markTagAsSelfClosing = function markTagAsSelfClosing() {
|
|
13303
12961
|
this.currentTag.selfClosing = true;
|
|
13304
12962
|
} // Tags - name
|
|
13305
12963
|
;
|
|
13306
12964
|
|
|
13307
|
-
|
|
12965
|
+
_proto30.appendToTagName = function appendToTagName(char) {
|
|
13308
12966
|
this.currentTag.name += char;
|
|
13309
12967
|
} // Tags - attributes
|
|
13310
12968
|
;
|
|
13311
12969
|
|
|
13312
|
-
|
|
12970
|
+
_proto30.beginAttribute = function beginAttribute() {
|
|
13313
12971
|
var offset = this.offset();
|
|
13314
12972
|
this.currentAttribute = {
|
|
13315
12973
|
name: '',
|
|
@@ -13322,17 +12980,17 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13322
12980
|
};
|
|
13323
12981
|
};
|
|
13324
12982
|
|
|
13325
|
-
|
|
12983
|
+
_proto30.appendToAttributeName = function appendToAttributeName(char) {
|
|
13326
12984
|
this.currentAttr.name += char;
|
|
13327
12985
|
};
|
|
13328
12986
|
|
|
13329
|
-
|
|
12987
|
+
_proto30.beginAttributeValue = function beginAttributeValue(isQuoted) {
|
|
13330
12988
|
this.currentAttr.isQuoted = isQuoted;
|
|
13331
12989
|
this.startTextPart();
|
|
13332
12990
|
this.currentAttr.valueSpan = this.offset().collapsed();
|
|
13333
12991
|
};
|
|
13334
12992
|
|
|
13335
|
-
|
|
12993
|
+
_proto30.appendToAttributeValue = function appendToAttributeValue(char) {
|
|
13336
12994
|
var parts = this.currentAttr.parts;
|
|
13337
12995
|
var lastPart = parts[parts.length - 1];
|
|
13338
12996
|
var current = this.currentAttr.currentPart;
|
|
@@ -13359,7 +13017,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13359
13017
|
}
|
|
13360
13018
|
};
|
|
13361
13019
|
|
|
13362
|
-
|
|
13020
|
+
_proto30.finishAttributeValue = function finishAttributeValue() {
|
|
13363
13021
|
this.finalizeTextPart();
|
|
13364
13022
|
var tag = this.currentTag;
|
|
13365
13023
|
var tokenizerPos = this.offset();
|
|
@@ -13388,11 +13046,11 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13388
13046
|
this.currentStartTag.attributes.push(attribute);
|
|
13389
13047
|
};
|
|
13390
13048
|
|
|
13391
|
-
|
|
13049
|
+
_proto30.reportSyntaxError = function reportSyntaxError(message) {
|
|
13392
13050
|
throw generateSyntaxError(message, this.offset().collapsed());
|
|
13393
13051
|
};
|
|
13394
13052
|
|
|
13395
|
-
|
|
13053
|
+
_proto30.assembleConcatenatedValue = function assembleConcatenatedValue(parts) {
|
|
13396
13054
|
for (var i = 0; i < parts.length; i++) {
|
|
13397
13055
|
var part = parts[i];
|
|
13398
13056
|
|
|
@@ -13407,7 +13065,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13407
13065
|
return b.concat(parts, this.source.spanFor(first.loc).extend(this.source.spanFor(last.loc)));
|
|
13408
13066
|
};
|
|
13409
13067
|
|
|
13410
|
-
|
|
13068
|
+
_proto30.validateEndTag = function validateEndTag(tag, element, selfClosing) {
|
|
13411
13069
|
var error;
|
|
13412
13070
|
|
|
13413
13071
|
if (voidMap[tag.name] && !selfClosing) {
|
|
@@ -13426,7 +13084,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13426
13084
|
}
|
|
13427
13085
|
};
|
|
13428
13086
|
|
|
13429
|
-
|
|
13087
|
+
_proto30.assembleAttributeValue = function assembleAttributeValue(parts, isQuoted, isDynamic, span) {
|
|
13430
13088
|
if (isDynamic) {
|
|
13431
13089
|
if (isQuoted) {
|
|
13432
13090
|
return this.assembleConcatenatedValue(parts);
|
|
@@ -13464,9 +13122,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13464
13122
|
return _EntityParser.call(this, {}) || this;
|
|
13465
13123
|
}
|
|
13466
13124
|
|
|
13467
|
-
var
|
|
13125
|
+
var _proto31 = CodemodEntityParser.prototype;
|
|
13468
13126
|
|
|
13469
|
-
|
|
13127
|
+
_proto31.parse = function parse() {
|
|
13470
13128
|
return undefined;
|
|
13471
13129
|
};
|
|
13472
13130
|
|
|
@@ -13539,25 +13197,6 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13539
13197
|
return program;
|
|
13540
13198
|
}
|
|
13541
13199
|
|
|
13542
|
-
var __classPrivateFieldSet$4 = undefined && undefined.__classPrivateFieldSet || function (receiver, privateMap, value) {
|
|
13543
|
-
if (!privateMap.has(receiver)) {
|
|
13544
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
13545
|
-
}
|
|
13546
|
-
|
|
13547
|
-
privateMap.set(receiver, value);
|
|
13548
|
-
return value;
|
|
13549
|
-
};
|
|
13550
|
-
|
|
13551
|
-
var __classPrivateFieldGet$4 = undefined && undefined.__classPrivateFieldGet || function (receiver, privateMap) {
|
|
13552
|
-
if (!privateMap.has(receiver)) {
|
|
13553
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
13554
|
-
}
|
|
13555
|
-
|
|
13556
|
-
return privateMap.get(receiver);
|
|
13557
|
-
};
|
|
13558
|
-
|
|
13559
|
-
var _hasEval;
|
|
13560
|
-
|
|
13561
13200
|
var SymbolTable = /*#__PURE__*/function () {
|
|
13562
13201
|
function SymbolTable() {}
|
|
13563
13202
|
|
|
@@ -13565,13 +13204,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13565
13204
|
return new ProgramSymbolTable(locals, customizeComponentName);
|
|
13566
13205
|
};
|
|
13567
13206
|
|
|
13568
|
-
var
|
|
13207
|
+
var _proto32 = SymbolTable.prototype;
|
|
13569
13208
|
|
|
13570
|
-
|
|
13571
|
-
var
|
|
13209
|
+
_proto32.child = function child(locals) {
|
|
13210
|
+
var _this8 = this;
|
|
13572
13211
|
|
|
13573
13212
|
var symbols = locals.map(function (name) {
|
|
13574
|
-
return
|
|
13213
|
+
return _this8.allocate(name);
|
|
13575
13214
|
});
|
|
13576
13215
|
return new BlockSymbolTable(this, locals, symbols);
|
|
13577
13216
|
};
|
|
@@ -13585,38 +13224,36 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13585
13224
|
(0, _emberBabel.inheritsLoose)(ProgramSymbolTable, _SymbolTable);
|
|
13586
13225
|
|
|
13587
13226
|
function ProgramSymbolTable(templateLocals, customizeComponentName) {
|
|
13588
|
-
var
|
|
13589
|
-
|
|
13590
|
-
_this12 = _SymbolTable.call(this) || this;
|
|
13591
|
-
_this12.templateLocals = templateLocals;
|
|
13592
|
-
_this12.customizeComponentName = customizeComponentName;
|
|
13593
|
-
_this12.symbols = [];
|
|
13594
|
-
_this12.upvars = [];
|
|
13595
|
-
_this12.size = 1;
|
|
13596
|
-
_this12.named = (0, _util.dict)();
|
|
13597
|
-
_this12.blocks = (0, _util.dict)();
|
|
13598
|
-
_this12.usedTemplateLocals = [];
|
|
13227
|
+
var _this9;
|
|
13599
13228
|
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13229
|
+
_this9 = _SymbolTable.call(this) || this;
|
|
13230
|
+
_this9.templateLocals = templateLocals;
|
|
13231
|
+
_this9.customizeComponentName = customizeComponentName;
|
|
13232
|
+
_this9.symbols = [];
|
|
13233
|
+
_this9.upvars = [];
|
|
13234
|
+
_this9.size = 1;
|
|
13235
|
+
_this9.named = (0, _util.dict)();
|
|
13236
|
+
_this9.blocks = (0, _util.dict)();
|
|
13237
|
+
_this9.usedTemplateLocals = [];
|
|
13238
|
+
_this9._hasEval = false;
|
|
13239
|
+
return _this9;
|
|
13603
13240
|
}
|
|
13604
13241
|
|
|
13605
|
-
var
|
|
13242
|
+
var _proto33 = ProgramSymbolTable.prototype;
|
|
13606
13243
|
|
|
13607
|
-
|
|
13244
|
+
_proto33.getUsedTemplateLocals = function getUsedTemplateLocals() {
|
|
13608
13245
|
return this.usedTemplateLocals;
|
|
13609
13246
|
};
|
|
13610
13247
|
|
|
13611
|
-
|
|
13612
|
-
|
|
13248
|
+
_proto33.setHasEval = function setHasEval() {
|
|
13249
|
+
this._hasEval = true;
|
|
13613
13250
|
};
|
|
13614
13251
|
|
|
13615
|
-
|
|
13252
|
+
_proto33.has = function has(name) {
|
|
13616
13253
|
return this.templateLocals.indexOf(name) !== -1;
|
|
13617
13254
|
};
|
|
13618
13255
|
|
|
13619
|
-
|
|
13256
|
+
_proto33.get = function get(name) {
|
|
13620
13257
|
var index = this.usedTemplateLocals.indexOf(name);
|
|
13621
13258
|
|
|
13622
13259
|
if (index !== -1) {
|
|
@@ -13628,18 +13265,18 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13628
13265
|
return [index, true];
|
|
13629
13266
|
};
|
|
13630
13267
|
|
|
13631
|
-
|
|
13268
|
+
_proto33.getLocalsMap = function getLocalsMap() {
|
|
13632
13269
|
return (0, _util.dict)();
|
|
13633
13270
|
};
|
|
13634
13271
|
|
|
13635
|
-
|
|
13272
|
+
_proto33.getEvalInfo = function getEvalInfo() {
|
|
13636
13273
|
var locals = this.getLocalsMap();
|
|
13637
13274
|
return Object.keys(locals).map(function (symbol) {
|
|
13638
13275
|
return locals[symbol];
|
|
13639
13276
|
});
|
|
13640
13277
|
};
|
|
13641
13278
|
|
|
13642
|
-
|
|
13279
|
+
_proto33.allocateFree = function allocateFree(name, resolution) {
|
|
13643
13280
|
// If the name in question is an uppercase (i.e. angle-bracket) component invocation, run
|
|
13644
13281
|
// the optional `customizeComponentName` function provided to the precompiler.
|
|
13645
13282
|
if (resolution.resolution() === 39
|
|
@@ -13659,7 +13296,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13659
13296
|
return index;
|
|
13660
13297
|
};
|
|
13661
13298
|
|
|
13662
|
-
|
|
13299
|
+
_proto33.allocateNamed = function allocateNamed(name) {
|
|
13663
13300
|
var named = this.named[name];
|
|
13664
13301
|
|
|
13665
13302
|
if (!named) {
|
|
@@ -13669,7 +13306,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13669
13306
|
return named;
|
|
13670
13307
|
};
|
|
13671
13308
|
|
|
13672
|
-
|
|
13309
|
+
_proto33.allocateBlock = function allocateBlock(name) {
|
|
13673
13310
|
if (name === 'inverse') {
|
|
13674
13311
|
name = 'else';
|
|
13675
13312
|
}
|
|
@@ -13683,7 +13320,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13683
13320
|
return block;
|
|
13684
13321
|
};
|
|
13685
13322
|
|
|
13686
|
-
|
|
13323
|
+
_proto33.allocate = function allocate(identifier) {
|
|
13687
13324
|
this.symbols.push(identifier);
|
|
13688
13325
|
return this.size++;
|
|
13689
13326
|
};
|
|
@@ -13691,73 +13328,72 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13691
13328
|
(0, _emberBabel.createClass)(ProgramSymbolTable, [{
|
|
13692
13329
|
key: "hasEval",
|
|
13693
13330
|
get: function get() {
|
|
13694
|
-
return
|
|
13331
|
+
return this._hasEval;
|
|
13695
13332
|
}
|
|
13696
13333
|
}]);
|
|
13697
13334
|
return ProgramSymbolTable;
|
|
13698
13335
|
}(SymbolTable);
|
|
13699
13336
|
|
|
13700
13337
|
_exports.ProgramSymbolTable = ProgramSymbolTable;
|
|
13701
|
-
_hasEval = new WeakMap();
|
|
13702
13338
|
|
|
13703
13339
|
var BlockSymbolTable = /*#__PURE__*/function (_SymbolTable2) {
|
|
13704
13340
|
(0, _emberBabel.inheritsLoose)(BlockSymbolTable, _SymbolTable2);
|
|
13705
13341
|
|
|
13706
13342
|
function BlockSymbolTable(parent, symbols, slots) {
|
|
13707
|
-
var
|
|
13343
|
+
var _this10;
|
|
13708
13344
|
|
|
13709
|
-
|
|
13710
|
-
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
return
|
|
13345
|
+
_this10 = _SymbolTable2.call(this) || this;
|
|
13346
|
+
_this10.parent = parent;
|
|
13347
|
+
_this10.symbols = symbols;
|
|
13348
|
+
_this10.slots = slots;
|
|
13349
|
+
return _this10;
|
|
13714
13350
|
}
|
|
13715
13351
|
|
|
13716
|
-
var
|
|
13352
|
+
var _proto34 = BlockSymbolTable.prototype;
|
|
13717
13353
|
|
|
13718
|
-
|
|
13354
|
+
_proto34.has = function has(name) {
|
|
13719
13355
|
return this.symbols.indexOf(name) !== -1 || this.parent.has(name);
|
|
13720
13356
|
};
|
|
13721
13357
|
|
|
13722
|
-
|
|
13358
|
+
_proto34.get = function get(name) {
|
|
13723
13359
|
var slot = this.symbols.indexOf(name);
|
|
13724
13360
|
return slot === -1 ? this.parent.get(name) : [this.slots[slot], false];
|
|
13725
13361
|
};
|
|
13726
13362
|
|
|
13727
|
-
|
|
13728
|
-
var
|
|
13363
|
+
_proto34.getLocalsMap = function getLocalsMap() {
|
|
13364
|
+
var _this11 = this;
|
|
13729
13365
|
|
|
13730
13366
|
var dict$$1 = this.parent.getLocalsMap();
|
|
13731
13367
|
this.symbols.forEach(function (symbol) {
|
|
13732
|
-
return dict$$1[symbol] =
|
|
13368
|
+
return dict$$1[symbol] = _this11.get(symbol)[0];
|
|
13733
13369
|
});
|
|
13734
13370
|
return dict$$1;
|
|
13735
13371
|
};
|
|
13736
13372
|
|
|
13737
|
-
|
|
13373
|
+
_proto34.getEvalInfo = function getEvalInfo() {
|
|
13738
13374
|
var locals = this.getLocalsMap();
|
|
13739
13375
|
return Object.keys(locals).map(function (symbol) {
|
|
13740
13376
|
return locals[symbol];
|
|
13741
13377
|
});
|
|
13742
13378
|
};
|
|
13743
13379
|
|
|
13744
|
-
|
|
13380
|
+
_proto34.setHasEval = function setHasEval() {
|
|
13745
13381
|
this.parent.setHasEval();
|
|
13746
13382
|
};
|
|
13747
13383
|
|
|
13748
|
-
|
|
13384
|
+
_proto34.allocateFree = function allocateFree(name, resolution) {
|
|
13749
13385
|
return this.parent.allocateFree(name, resolution);
|
|
13750
13386
|
};
|
|
13751
13387
|
|
|
13752
|
-
|
|
13388
|
+
_proto34.allocateNamed = function allocateNamed(name) {
|
|
13753
13389
|
return this.parent.allocateNamed(name);
|
|
13754
13390
|
};
|
|
13755
13391
|
|
|
13756
|
-
|
|
13392
|
+
_proto34.allocateBlock = function allocateBlock(name) {
|
|
13757
13393
|
return this.parent.allocateBlock(name);
|
|
13758
13394
|
};
|
|
13759
13395
|
|
|
13760
|
-
|
|
13396
|
+
_proto34.allocate = function allocate(identifier) {
|
|
13761
13397
|
return this.parent.allocate(identifier);
|
|
13762
13398
|
};
|
|
13763
13399
|
|
|
@@ -13788,10 +13424,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13788
13424
|
var Builder = /*#__PURE__*/function () {
|
|
13789
13425
|
function Builder() {}
|
|
13790
13426
|
|
|
13791
|
-
var
|
|
13427
|
+
var _proto35 = Builder.prototype;
|
|
13792
13428
|
|
|
13793
13429
|
// TEMPLATE //
|
|
13794
|
-
|
|
13430
|
+
_proto35.template = function template(symbols, body, loc$$1) {
|
|
13795
13431
|
return new Template({
|
|
13796
13432
|
table: symbols,
|
|
13797
13433
|
body: body,
|
|
@@ -13800,7 +13436,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13800
13436
|
} // INTERNAL (these nodes cannot be reached when doing general-purpose visiting) //
|
|
13801
13437
|
;
|
|
13802
13438
|
|
|
13803
|
-
|
|
13439
|
+
_proto35.block = function block(symbols, body, loc$$1) {
|
|
13804
13440
|
return new Block({
|
|
13805
13441
|
scope: symbols,
|
|
13806
13442
|
body: body,
|
|
@@ -13808,7 +13444,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13808
13444
|
});
|
|
13809
13445
|
};
|
|
13810
13446
|
|
|
13811
|
-
|
|
13447
|
+
_proto35.namedBlock = function namedBlock(name, block, loc$$1) {
|
|
13812
13448
|
return new NamedBlock({
|
|
13813
13449
|
name: name,
|
|
13814
13450
|
block: block,
|
|
@@ -13819,7 +13455,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13819
13455
|
});
|
|
13820
13456
|
};
|
|
13821
13457
|
|
|
13822
|
-
|
|
13458
|
+
_proto35.simpleNamedBlock = function simpleNamedBlock(name, block, loc$$1) {
|
|
13823
13459
|
return new BuildElement({
|
|
13824
13460
|
selfClosing: false,
|
|
13825
13461
|
attrs: [],
|
|
@@ -13829,14 +13465,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13829
13465
|
}).named(name, block, loc$$1);
|
|
13830
13466
|
};
|
|
13831
13467
|
|
|
13832
|
-
|
|
13468
|
+
_proto35.slice = function slice(chars, loc$$1) {
|
|
13833
13469
|
return new SourceSlice({
|
|
13834
13470
|
loc: loc$$1,
|
|
13835
13471
|
chars: chars
|
|
13836
13472
|
});
|
|
13837
13473
|
};
|
|
13838
13474
|
|
|
13839
|
-
|
|
13475
|
+
_proto35.args = function args(positional, named, loc$$1) {
|
|
13840
13476
|
return new Args({
|
|
13841
13477
|
loc: loc$$1,
|
|
13842
13478
|
positional: positional,
|
|
@@ -13844,28 +13480,28 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13844
13480
|
});
|
|
13845
13481
|
};
|
|
13846
13482
|
|
|
13847
|
-
|
|
13483
|
+
_proto35.positional = function positional(exprs, loc$$1) {
|
|
13848
13484
|
return new PositionalArguments({
|
|
13849
13485
|
loc: loc$$1,
|
|
13850
13486
|
exprs: exprs
|
|
13851
13487
|
});
|
|
13852
13488
|
};
|
|
13853
13489
|
|
|
13854
|
-
|
|
13490
|
+
_proto35.namedArgument = function namedArgument(key, value) {
|
|
13855
13491
|
return new NamedArgument({
|
|
13856
13492
|
name: key,
|
|
13857
13493
|
value: value
|
|
13858
13494
|
});
|
|
13859
13495
|
};
|
|
13860
13496
|
|
|
13861
|
-
|
|
13497
|
+
_proto35.named = function named(entries, loc$$1) {
|
|
13862
13498
|
return new NamedArguments({
|
|
13863
13499
|
loc: loc$$1,
|
|
13864
13500
|
entries: entries
|
|
13865
13501
|
});
|
|
13866
13502
|
};
|
|
13867
13503
|
|
|
13868
|
-
|
|
13504
|
+
_proto35.attr = function attr(_ref29, loc$$1) {
|
|
13869
13505
|
var name = _ref29.name,
|
|
13870
13506
|
value = _ref29.value,
|
|
13871
13507
|
trusting = _ref29.trusting;
|
|
@@ -13877,14 +13513,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13877
13513
|
});
|
|
13878
13514
|
};
|
|
13879
13515
|
|
|
13880
|
-
|
|
13516
|
+
_proto35.splatAttr = function splatAttr(symbol, loc$$1) {
|
|
13881
13517
|
return new SplatAttr({
|
|
13882
13518
|
symbol: symbol,
|
|
13883
13519
|
loc: loc$$1
|
|
13884
13520
|
});
|
|
13885
13521
|
};
|
|
13886
13522
|
|
|
13887
|
-
|
|
13523
|
+
_proto35.arg = function arg(_ref30, loc$$1) {
|
|
13888
13524
|
var name = _ref30.name,
|
|
13889
13525
|
value = _ref30.value,
|
|
13890
13526
|
trusting = _ref30.trusting;
|
|
@@ -13897,7 +13533,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13897
13533
|
} // EXPRESSIONS //
|
|
13898
13534
|
;
|
|
13899
13535
|
|
|
13900
|
-
|
|
13536
|
+
_proto35.path = function path(head, tail, loc$$1) {
|
|
13901
13537
|
return new PathExpression({
|
|
13902
13538
|
loc: loc$$1,
|
|
13903
13539
|
ref: head,
|
|
@@ -13905,13 +13541,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13905
13541
|
});
|
|
13906
13542
|
};
|
|
13907
13543
|
|
|
13908
|
-
|
|
13544
|
+
_proto35.self = function self(loc$$1) {
|
|
13909
13545
|
return new ThisReference({
|
|
13910
13546
|
loc: loc$$1
|
|
13911
13547
|
});
|
|
13912
13548
|
};
|
|
13913
13549
|
|
|
13914
|
-
|
|
13550
|
+
_proto35.at = function at(name, symbol, loc$$1) {
|
|
13915
13551
|
return new ArgReference({
|
|
13916
13552
|
loc: loc$$1,
|
|
13917
13553
|
name: new SourceSlice({
|
|
@@ -13922,7 +13558,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13922
13558
|
});
|
|
13923
13559
|
};
|
|
13924
13560
|
|
|
13925
|
-
|
|
13561
|
+
_proto35.freeVar = function freeVar(_ref31) {
|
|
13926
13562
|
var name = _ref31.name,
|
|
13927
13563
|
context = _ref31.context,
|
|
13928
13564
|
symbol = _ref31.symbol,
|
|
@@ -13935,7 +13571,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13935
13571
|
});
|
|
13936
13572
|
};
|
|
13937
13573
|
|
|
13938
|
-
|
|
13574
|
+
_proto35.localVar = function localVar(name, symbol, isTemplateLocal, loc$$1) {
|
|
13939
13575
|
return new LocalVarReference({
|
|
13940
13576
|
loc: loc$$1,
|
|
13941
13577
|
name: name,
|
|
@@ -13944,7 +13580,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13944
13580
|
});
|
|
13945
13581
|
};
|
|
13946
13582
|
|
|
13947
|
-
|
|
13583
|
+
_proto35.sexp = function sexp(parts, loc$$1) {
|
|
13948
13584
|
return new CallExpression({
|
|
13949
13585
|
loc: loc$$1,
|
|
13950
13586
|
callee: parts.callee,
|
|
@@ -13952,7 +13588,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13952
13588
|
});
|
|
13953
13589
|
};
|
|
13954
13590
|
|
|
13955
|
-
|
|
13591
|
+
_proto35.deprecatedCall = function deprecatedCall(arg, callee, loc$$1) {
|
|
13956
13592
|
return new DeprecatedCallExpression({
|
|
13957
13593
|
loc: loc$$1,
|
|
13958
13594
|
arg: arg,
|
|
@@ -13960,7 +13596,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13960
13596
|
});
|
|
13961
13597
|
};
|
|
13962
13598
|
|
|
13963
|
-
|
|
13599
|
+
_proto35.interpolate = function interpolate(parts, loc$$1) {
|
|
13964
13600
|
(0, _util.assertPresent)(parts);
|
|
13965
13601
|
return new InterpolateExpression({
|
|
13966
13602
|
loc: loc$$1,
|
|
@@ -13968,7 +13604,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13968
13604
|
});
|
|
13969
13605
|
};
|
|
13970
13606
|
|
|
13971
|
-
|
|
13607
|
+
_proto35.literal = function literal(value, loc$$1) {
|
|
13972
13608
|
return new LiteralExpression({
|
|
13973
13609
|
loc: loc$$1,
|
|
13974
13610
|
value: value
|
|
@@ -13976,7 +13612,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13976
13612
|
} // STATEMENTS //
|
|
13977
13613
|
;
|
|
13978
13614
|
|
|
13979
|
-
|
|
13615
|
+
_proto35.append = function append(_ref32, loc$$1) {
|
|
13980
13616
|
var table = _ref32.table,
|
|
13981
13617
|
trusting = _ref32.trusting,
|
|
13982
13618
|
value = _ref32.value;
|
|
@@ -13988,7 +13624,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13988
13624
|
});
|
|
13989
13625
|
};
|
|
13990
13626
|
|
|
13991
|
-
|
|
13627
|
+
_proto35.modifier = function modifier(_ref33, loc$$1) {
|
|
13992
13628
|
var callee = _ref33.callee,
|
|
13993
13629
|
args = _ref33.args;
|
|
13994
13630
|
return new ElementModifier({
|
|
@@ -13998,14 +13634,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
13998
13634
|
});
|
|
13999
13635
|
};
|
|
14000
13636
|
|
|
14001
|
-
|
|
13637
|
+
_proto35.namedBlocks = function namedBlocks(blocks, loc$$1) {
|
|
14002
13638
|
return new NamedBlocks({
|
|
14003
13639
|
loc: loc$$1,
|
|
14004
13640
|
blocks: blocks
|
|
14005
13641
|
});
|
|
14006
13642
|
};
|
|
14007
13643
|
|
|
14008
|
-
|
|
13644
|
+
_proto35.blockStatement = function blockStatement(_a, loc$$1) {
|
|
14009
13645
|
var symbols = _a.symbols,
|
|
14010
13646
|
program = _a.program,
|
|
14011
13647
|
_a$inverse = _a.inverse,
|
|
@@ -14028,7 +13664,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14028
13664
|
});
|
|
14029
13665
|
};
|
|
14030
13666
|
|
|
14031
|
-
|
|
13667
|
+
_proto35.element = function element(options) {
|
|
14032
13668
|
return new BuildElement(options);
|
|
14033
13669
|
};
|
|
14034
13670
|
|
|
@@ -14041,9 +13677,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14041
13677
|
this.builder = new Builder();
|
|
14042
13678
|
}
|
|
14043
13679
|
|
|
14044
|
-
var
|
|
13680
|
+
var _proto36 = BuildElement.prototype;
|
|
14045
13681
|
|
|
14046
|
-
|
|
13682
|
+
_proto36.simple = function simple(tag, body, loc$$1) {
|
|
14047
13683
|
return new SimpleElement((0, _util.assign)({
|
|
14048
13684
|
tag: tag,
|
|
14049
13685
|
body: body,
|
|
@@ -14052,7 +13688,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14052
13688
|
}, this.base));
|
|
14053
13689
|
};
|
|
14054
13690
|
|
|
14055
|
-
|
|
13691
|
+
_proto36.named = function named(name, block, loc$$1) {
|
|
14056
13692
|
return new NamedBlock((0, _util.assign)({
|
|
14057
13693
|
name: name,
|
|
14058
13694
|
block: block,
|
|
@@ -14061,7 +13697,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14061
13697
|
}, this.base));
|
|
14062
13698
|
};
|
|
14063
13699
|
|
|
14064
|
-
|
|
13700
|
+
_proto36.selfClosingComponent = function selfClosingComponent(callee, loc$$1) {
|
|
14065
13701
|
return new InvokeComponent((0, _util.assign)({
|
|
14066
13702
|
loc: loc$$1,
|
|
14067
13703
|
callee: callee,
|
|
@@ -14076,7 +13712,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14076
13712
|
}, this.base));
|
|
14077
13713
|
};
|
|
14078
13714
|
|
|
14079
|
-
|
|
13715
|
+
_proto36.componentWithDefaultBlock = function componentWithDefaultBlock(callee, children, symbols, loc$$1) {
|
|
14080
13716
|
var block = this.builder.block(symbols, children, loc$$1);
|
|
14081
13717
|
var namedBlock = this.builder.namedBlock(SourceSlice.synthetic('default'), block, loc$$1); // BUILDER.simpleNamedBlock('default', children, symbols, loc);
|
|
14082
13718
|
|
|
@@ -14087,7 +13723,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14087
13723
|
}, this.base));
|
|
14088
13724
|
};
|
|
14089
13725
|
|
|
14090
|
-
|
|
13726
|
+
_proto36.componentWithNamedBlocks = function componentWithNamedBlocks(callee, blocks, loc$$1) {
|
|
14091
13727
|
return new InvokeComponent((0, _util.assign)({
|
|
14092
13728
|
loc: loc$$1,
|
|
14093
13729
|
callee: callee,
|
|
@@ -14270,13 +13906,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14270
13906
|
this.builder = new Builder();
|
|
14271
13907
|
}
|
|
14272
13908
|
|
|
14273
|
-
var
|
|
13909
|
+
var _proto37 = BlockContext.prototype;
|
|
14274
13910
|
|
|
14275
|
-
|
|
13911
|
+
_proto37.loc = function loc(loc$$1) {
|
|
14276
13912
|
return this.source.spanFor(loc$$1);
|
|
14277
13913
|
};
|
|
14278
13914
|
|
|
14279
|
-
|
|
13915
|
+
_proto37.resolutionFor = function resolutionFor(node$$1, resolution) {
|
|
14280
13916
|
if (this.strict) {
|
|
14281
13917
|
return {
|
|
14282
13918
|
resolution: STRICT_RESOLUTION
|
|
@@ -14304,7 +13940,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14304
13940
|
}
|
|
14305
13941
|
};
|
|
14306
13942
|
|
|
14307
|
-
|
|
13943
|
+
_proto37.isFreeVar = function isFreeVar(callee) {
|
|
14308
13944
|
if (callee.type === 'PathExpression') {
|
|
14309
13945
|
if (callee.head.type !== 'VarHead') {
|
|
14310
13946
|
return false;
|
|
@@ -14318,15 +13954,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14318
13954
|
}
|
|
14319
13955
|
};
|
|
14320
13956
|
|
|
14321
|
-
|
|
13957
|
+
_proto37.hasBinding = function hasBinding(name) {
|
|
14322
13958
|
return this.table.has(name);
|
|
14323
13959
|
};
|
|
14324
13960
|
|
|
14325
|
-
|
|
13961
|
+
_proto37.child = function child(blockParams) {
|
|
14326
13962
|
return new BlockContext(this.source, this.options, this.table.child(blockParams));
|
|
14327
13963
|
};
|
|
14328
13964
|
|
|
14329
|
-
|
|
13965
|
+
_proto37.customizeComponentName = function customizeComponentName(input) {
|
|
14330
13966
|
if (this.options.customizeComponentName) {
|
|
14331
13967
|
return this.options.customizeComponentName(input);
|
|
14332
13968
|
} else {
|
|
@@ -14354,9 +13990,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14354
13990
|
this.block = block;
|
|
14355
13991
|
}
|
|
14356
13992
|
|
|
14357
|
-
var
|
|
13993
|
+
var _proto38 = ExpressionNormalizer.prototype;
|
|
14358
13994
|
|
|
14359
|
-
|
|
13995
|
+
_proto38.normalize = function normalize(expr, resolution) {
|
|
14360
13996
|
switch (expr.type) {
|
|
14361
13997
|
case 'NullLiteral':
|
|
14362
13998
|
case 'BooleanLiteral':
|
|
@@ -14381,14 +14017,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14381
14017
|
}
|
|
14382
14018
|
};
|
|
14383
14019
|
|
|
14384
|
-
|
|
14020
|
+
_proto38.path = function path(expr, resolution) {
|
|
14385
14021
|
var headOffsets = this.block.loc(expr.head.loc);
|
|
14386
14022
|
var tail = []; // start with the head
|
|
14387
14023
|
|
|
14388
14024
|
var offset = headOffsets;
|
|
14389
14025
|
|
|
14390
|
-
for (var
|
|
14391
|
-
var _part2 =
|
|
14026
|
+
for (var _iterator3 = (0, _emberBabel.createForOfIteratorHelperLoose)(expr.tail), _step3; !(_step3 = _iterator3()).done;) {
|
|
14027
|
+
var _part2 = _step3.value;
|
|
14392
14028
|
offset = offset.sliceStartChars({
|
|
14393
14029
|
chars: _part2.length,
|
|
14394
14030
|
skipStart: 1
|
|
@@ -14407,24 +14043,24 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14407
14043
|
*/
|
|
14408
14044
|
;
|
|
14409
14045
|
|
|
14410
|
-
|
|
14411
|
-
var
|
|
14046
|
+
_proto38.callParts = function callParts(parts, context) {
|
|
14047
|
+
var _this12 = this;
|
|
14412
14048
|
|
|
14413
14049
|
var path = parts.path,
|
|
14414
14050
|
params = parts.params,
|
|
14415
14051
|
hash = parts.hash;
|
|
14416
14052
|
var callee = this.normalize(path, context);
|
|
14417
14053
|
var paramList = params.map(function (p) {
|
|
14418
|
-
return
|
|
14054
|
+
return _this12.normalize(p, ARGUMENT_RESOLUTION);
|
|
14419
14055
|
});
|
|
14420
14056
|
var paramLoc = SpanList.range(paramList, callee.loc.collapse('end'));
|
|
14421
14057
|
var namedLoc = this.block.loc(hash.loc);
|
|
14422
14058
|
var argsLoc = SpanList.range([paramLoc, namedLoc]);
|
|
14423
14059
|
var positional = this.block.builder.positional(params.map(function (p) {
|
|
14424
|
-
return
|
|
14060
|
+
return _this12.normalize(p, ARGUMENT_RESOLUTION);
|
|
14425
14061
|
}), paramLoc);
|
|
14426
14062
|
var named = this.block.builder.named(hash.pairs.map(function (p) {
|
|
14427
|
-
return
|
|
14063
|
+
return _this12.namedArgument(p);
|
|
14428
14064
|
}), this.block.loc(hash.loc));
|
|
14429
14065
|
return {
|
|
14430
14066
|
callee: callee,
|
|
@@ -14432,7 +14068,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14432
14068
|
};
|
|
14433
14069
|
};
|
|
14434
14070
|
|
|
14435
|
-
|
|
14071
|
+
_proto38.namedArgument = function namedArgument(pair) {
|
|
14436
14072
|
var offsets = this.block.loc(pair.loc);
|
|
14437
14073
|
var keyOffsets = offsets.sliceStartChars({
|
|
14438
14074
|
chars: pair.key.length
|
|
@@ -14454,7 +14090,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14454
14090
|
*/
|
|
14455
14091
|
;
|
|
14456
14092
|
|
|
14457
|
-
|
|
14093
|
+
_proto38.ref = function ref(head, resolution) {
|
|
14458
14094
|
var block = this.block;
|
|
14459
14095
|
var builder = block.builder,
|
|
14460
14096
|
table = block.table;
|
|
@@ -14506,9 +14142,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14506
14142
|
this.block = block;
|
|
14507
14143
|
}
|
|
14508
14144
|
|
|
14509
|
-
var
|
|
14145
|
+
var _proto39 = StatementNormalizer.prototype;
|
|
14510
14146
|
|
|
14511
|
-
|
|
14147
|
+
_proto39.normalize = function normalize(node$$1) {
|
|
14512
14148
|
switch (node$$1.type) {
|
|
14513
14149
|
case 'PartialStatement':
|
|
14514
14150
|
throw new Error("Handlebars partial syntax ({{> ...}}) is not allowed in Glimmer");
|
|
@@ -14546,7 +14182,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14546
14182
|
}
|
|
14547
14183
|
};
|
|
14548
14184
|
|
|
14549
|
-
|
|
14185
|
+
_proto39.MustacheCommentStatement = function MustacheCommentStatement(node$$1) {
|
|
14550
14186
|
var loc$$1 = this.block.loc(node$$1.loc);
|
|
14551
14187
|
var textLoc;
|
|
14552
14188
|
|
|
@@ -14572,7 +14208,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14572
14208
|
*/
|
|
14573
14209
|
;
|
|
14574
14210
|
|
|
14575
|
-
|
|
14211
|
+
_proto39.MustacheStatement = function MustacheStatement(mustache) {
|
|
14576
14212
|
var escaped = mustache.escaped;
|
|
14577
14213
|
var loc$$1 = this.block.loc(mustache.loc); // Normalize the call parts in AppendSyntaxContext
|
|
14578
14214
|
|
|
@@ -14593,7 +14229,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14593
14229
|
*/
|
|
14594
14230
|
;
|
|
14595
14231
|
|
|
14596
|
-
|
|
14232
|
+
_proto39.BlockStatement = function BlockStatement(block) {
|
|
14597
14233
|
var program = block.program,
|
|
14598
14234
|
inverse = block.inverse;
|
|
14599
14235
|
var loc$$1 = this.block.loc(block.loc);
|
|
@@ -14611,7 +14247,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14611
14247
|
}, callParts), loc$$1);
|
|
14612
14248
|
};
|
|
14613
14249
|
|
|
14614
|
-
|
|
14250
|
+
_proto39.Block = function Block(_ref34) {
|
|
14615
14251
|
var body = _ref34.body,
|
|
14616
14252
|
loc$$1 = _ref34.loc,
|
|
14617
14253
|
blockParams = _ref34.blockParams;
|
|
@@ -14651,10 +14287,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14651
14287
|
*/
|
|
14652
14288
|
|
|
14653
14289
|
|
|
14654
|
-
var
|
|
14290
|
+
var _proto40 = ElementNormalizer.prototype;
|
|
14655
14291
|
|
|
14656
|
-
|
|
14657
|
-
var
|
|
14292
|
+
_proto40.ElementNode = function ElementNode(element) {
|
|
14293
|
+
var _this13 = this;
|
|
14658
14294
|
|
|
14659
14295
|
var tag = element.tag,
|
|
14660
14296
|
selfClosing = element.selfClosing,
|
|
@@ -14670,15 +14306,15 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14670
14306
|
var attrs = element.attributes.filter(function (a) {
|
|
14671
14307
|
return a.name[0] !== '@';
|
|
14672
14308
|
}).map(function (a) {
|
|
14673
|
-
return
|
|
14309
|
+
return _this13.attr(a);
|
|
14674
14310
|
});
|
|
14675
14311
|
var args = element.attributes.filter(function (a) {
|
|
14676
14312
|
return a.name[0] === '@';
|
|
14677
14313
|
}).map(function (a) {
|
|
14678
|
-
return
|
|
14314
|
+
return _this13.arg(a);
|
|
14679
14315
|
});
|
|
14680
14316
|
var modifiers = element.modifiers.map(function (m) {
|
|
14681
|
-
return
|
|
14317
|
+
return _this13.modifier(m);
|
|
14682
14318
|
}); // the element's block params are in scope for the children
|
|
14683
14319
|
|
|
14684
14320
|
var child = this.ctx.child(element.blockParams);
|
|
@@ -14692,7 +14328,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14692
14328
|
componentArgs: args,
|
|
14693
14329
|
modifiers: modifiers,
|
|
14694
14330
|
comments: comments.map(function (c) {
|
|
14695
|
-
return new StatementNormalizer(
|
|
14331
|
+
return new StatementNormalizer(_this13.ctx).MustacheCommentStatement(c);
|
|
14696
14332
|
})
|
|
14697
14333
|
});
|
|
14698
14334
|
var children = new ElementChildren(el, loc$$1, childNodes, this.ctx);
|
|
@@ -14720,7 +14356,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14720
14356
|
}
|
|
14721
14357
|
};
|
|
14722
14358
|
|
|
14723
|
-
|
|
14359
|
+
_proto40.modifier = function modifier(m) {
|
|
14724
14360
|
var resolution = this.ctx.resolutionFor(m, ModifierSyntaxContext);
|
|
14725
14361
|
|
|
14726
14362
|
if (resolution.resolution === 'error') {
|
|
@@ -14741,7 +14377,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14741
14377
|
*/
|
|
14742
14378
|
;
|
|
14743
14379
|
|
|
14744
|
-
|
|
14380
|
+
_proto40.mustacheAttr = function mustacheAttr(mustache) {
|
|
14745
14381
|
// Normalize the call parts in AttrValueSyntaxContext
|
|
14746
14382
|
var sexp = this.ctx.builder.sexp(this.expr.callParts(mustache, AttrValueSyntaxContext(mustache)), this.ctx.loc(mustache.loc)); // If there are no params or hash, just return the function part as its own expression
|
|
14747
14383
|
|
|
@@ -14757,7 +14393,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14757
14393
|
*/
|
|
14758
14394
|
;
|
|
14759
14395
|
|
|
14760
|
-
|
|
14396
|
+
_proto40.attrPart = function attrPart(part) {
|
|
14761
14397
|
switch (part.type) {
|
|
14762
14398
|
case 'MustacheStatement':
|
|
14763
14399
|
return {
|
|
@@ -14773,14 +14409,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14773
14409
|
}
|
|
14774
14410
|
};
|
|
14775
14411
|
|
|
14776
|
-
|
|
14777
|
-
var
|
|
14412
|
+
_proto40.attrValue = function attrValue(part) {
|
|
14413
|
+
var _this14 = this;
|
|
14778
14414
|
|
|
14779
14415
|
switch (part.type) {
|
|
14780
14416
|
case 'ConcatStatement':
|
|
14781
14417
|
{
|
|
14782
14418
|
var parts = part.parts.map(function (p) {
|
|
14783
|
-
return
|
|
14419
|
+
return _this14.attrPart(p).expr;
|
|
14784
14420
|
});
|
|
14785
14421
|
return {
|
|
14786
14422
|
expr: this.ctx.builder.interpolate(parts, this.ctx.loc(part.loc)),
|
|
@@ -14793,7 +14429,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14793
14429
|
}
|
|
14794
14430
|
};
|
|
14795
14431
|
|
|
14796
|
-
|
|
14432
|
+
_proto40.attr = function attr(m) {
|
|
14797
14433
|
if (m.name === '...attributes') {
|
|
14798
14434
|
return this.ctx.builder.splatAttr(this.ctx.table.allocateBlock('attrs'), this.ctx.loc(m.loc));
|
|
14799
14435
|
}
|
|
@@ -14810,7 +14446,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14810
14446
|
}, offsets);
|
|
14811
14447
|
};
|
|
14812
14448
|
|
|
14813
|
-
|
|
14449
|
+
_proto40.maybeDeprecatedCall = function maybeDeprecatedCall(arg, part) {
|
|
14814
14450
|
if (this.ctx.strict) {
|
|
14815
14451
|
return null;
|
|
14816
14452
|
}
|
|
@@ -14860,7 +14496,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14860
14496
|
};
|
|
14861
14497
|
};
|
|
14862
14498
|
|
|
14863
|
-
|
|
14499
|
+
_proto40.arg = function arg(_arg) {
|
|
14864
14500
|
var offsets = this.ctx.loc(_arg.loc);
|
|
14865
14501
|
var nameSlice = offsets.sliceStartChars({
|
|
14866
14502
|
chars: _arg.name.length
|
|
@@ -14889,7 +14525,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14889
14525
|
*/
|
|
14890
14526
|
;
|
|
14891
14527
|
|
|
14892
|
-
|
|
14528
|
+
_proto40.classifyTag = function classifyTag(variable, tail, loc$$1) {
|
|
14893
14529
|
var uppercase = isUpperCase(variable);
|
|
14894
14530
|
var inScope = variable[0] === '@' || variable === 'this' || this.ctx.hasBinding(variable);
|
|
14895
14531
|
|
|
@@ -14985,9 +14621,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
14985
14621
|
return _Children.apply(this, arguments) || this;
|
|
14986
14622
|
}
|
|
14987
14623
|
|
|
14988
|
-
var
|
|
14624
|
+
var _proto41 = TemplateChildren.prototype;
|
|
14989
14625
|
|
|
14990
|
-
|
|
14626
|
+
_proto41.assertTemplate = function assertTemplate(table) {
|
|
14991
14627
|
if ((0, _util.isPresent)(this.namedBlocks)) {
|
|
14992
14628
|
throw generateSyntaxError("Unexpected named block at the top-level of a template", this.loc);
|
|
14993
14629
|
}
|
|
@@ -15005,9 +14641,9 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
15005
14641
|
return _Children2.apply(this, arguments) || this;
|
|
15006
14642
|
}
|
|
15007
14643
|
|
|
15008
|
-
var
|
|
14644
|
+
var _proto42 = BlockChildren.prototype;
|
|
15009
14645
|
|
|
15010
|
-
|
|
14646
|
+
_proto42.assertBlock = function assertBlock(table) {
|
|
15011
14647
|
if ((0, _util.isPresent)(this.namedBlocks)) {
|
|
15012
14648
|
throw generateSyntaxError("Unexpected named block nested in a normal block", this.loc);
|
|
15013
14649
|
}
|
|
@@ -15022,16 +14658,16 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
15022
14658
|
(0, _emberBabel.inheritsLoose)(ElementChildren, _Children3);
|
|
15023
14659
|
|
|
15024
14660
|
function ElementChildren(el, loc$$1, children, block) {
|
|
15025
|
-
var
|
|
14661
|
+
var _this15;
|
|
15026
14662
|
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
return
|
|
14663
|
+
_this15 = _Children3.call(this, loc$$1, children, block) || this;
|
|
14664
|
+
_this15.el = el;
|
|
14665
|
+
return _this15;
|
|
15030
14666
|
}
|
|
15031
14667
|
|
|
15032
|
-
var
|
|
14668
|
+
var _proto43 = ElementChildren.prototype;
|
|
15033
14669
|
|
|
15034
|
-
|
|
14670
|
+
_proto43.assertNamedBlock = function assertNamedBlock(name, table) {
|
|
15035
14671
|
if (this.el.base.selfClosing) {
|
|
15036
14672
|
throw generateSyntaxError("<:" + name.chars + "/> is not a valid named block: named blocks cannot be self-closing", this.loc);
|
|
15037
14673
|
}
|
|
@@ -15052,7 +14688,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
15052
14688
|
return this.block.builder.namedBlock(name, this.block.builder.block(table, this.nonBlockChildren, offsets), this.loc);
|
|
15053
14689
|
};
|
|
15054
14690
|
|
|
15055
|
-
|
|
14691
|
+
_proto43.assertElement = function assertElement(name, hasBlockParams) {
|
|
15056
14692
|
if (hasBlockParams) {
|
|
15057
14693
|
throw generateSyntaxError("Unexpected block params in <" + name + ">: simple elements cannot have block params", this.loc);
|
|
15058
14694
|
}
|
|
@@ -15075,7 +14711,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
15075
14711
|
return this.el.simple(name, this.nonBlockChildren, this.loc);
|
|
15076
14712
|
};
|
|
15077
14713
|
|
|
15078
|
-
|
|
14714
|
+
_proto43.assertComponent = function assertComponent(name, table, hasBlockParams) {
|
|
15079
14715
|
if ((0, _util.isPresent)(this.namedBlocks) && this.hasSemanticContent) {
|
|
15080
14716
|
throw generateSyntaxError("Unexpected content inside <" + name + "> component invocation: when using named blocks, the tag cannot contain other content", this.loc);
|
|
15081
14717
|
}
|
|
@@ -15087,8 +14723,8 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "simple-ht
|
|
|
15087
14723
|
|
|
15088
14724
|
var seenNames = new Set();
|
|
15089
14725
|
|
|
15090
|
-
for (var
|
|
15091
|
-
var _block =
|
|
14726
|
+
for (var _iterator4 = (0, _emberBabel.createForOfIteratorHelperLoose)(this.namedBlocks), _step4; !(_step4 = _iterator4()).done;) {
|
|
14727
|
+
var _block = _step4.value;
|
|
15092
14728
|
var _name2 = _block.name.chars;
|
|
15093
14729
|
|
|
15094
14730
|
if (seenNames.has(_name2)) {
|
|
@@ -20799,7 +20435,16 @@ define("ember-template-compiler/lib/system/compile-options", ["exports", "@ember
|
|
|
20799
20435
|
) {
|
|
20800
20436
|
options.strictMode = false;
|
|
20801
20437
|
options.locals = undefined;
|
|
20802
|
-
}
|
|
20438
|
+
}
|
|
20439
|
+
|
|
20440
|
+
if ('locals' in options && !options.locals) {
|
|
20441
|
+
// Glimmer's precompile options declare `locals` like:
|
|
20442
|
+
// locals?: string[]
|
|
20443
|
+
// but many in-use versions of babel-plugin-htmlbars-inline-precompile will
|
|
20444
|
+
// set locals to `null`. This used to work but only because glimmer was
|
|
20445
|
+
// ignoring locals for non-strict templates, and now it supports that case.
|
|
20446
|
+
delete options.locals;
|
|
20447
|
+
} // move `moduleName` into `meta` property
|
|
20803
20448
|
|
|
20804
20449
|
|
|
20805
20450
|
if (options.moduleName) {
|
|
@@ -21068,7 +20713,7 @@ define("ember/version", ["exports"], function (_exports) {
|
|
|
21068
20713
|
value: true
|
|
21069
20714
|
});
|
|
21070
20715
|
_exports.default = void 0;
|
|
21071
|
-
var _default = "3.28.
|
|
20716
|
+
var _default = "3.28.7";
|
|
21072
20717
|
_exports.default = _default;
|
|
21073
20718
|
});
|
|
21074
20719
|
define("simple-html-tokenizer", ["exports"], function (_exports) {
|