@digipair/skill-web 0.136.3 → 0.136.5
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/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import { JSDOM } from 'jsdom';
|
|
|
2
2
|
import { readFile } from 'fs/promises';
|
|
3
3
|
import require$$1 from 'path';
|
|
4
4
|
|
|
5
|
-
function _mergeNamespaces
|
|
5
|
+
function _mergeNamespaces(n, m) {
|
|
6
6
|
m.forEach(function(e) {
|
|
7
7
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
8
8
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -22,7 +22,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
22
22
|
function getDefaultExportFromCjs(x) {
|
|
23
23
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
24
24
|
}
|
|
25
|
-
var handlebars_min = {
|
|
25
|
+
var handlebars_min$1 = {
|
|
26
26
|
exports: {}
|
|
27
27
|
};
|
|
28
28
|
/**!
|
|
@@ -50,7 +50,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
50
50
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
51
51
|
THE SOFTWARE.
|
|
52
52
|
|
|
53
|
-
*/ handlebars_min.exports;
|
|
53
|
+
*/ handlebars_min$1.exports;
|
|
54
54
|
(function(module1, exports1) {
|
|
55
55
|
function _instanceof(left, right) {
|
|
56
56
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8131,12 +8131,12 @@ THE SOFTWARE.
|
|
|
8131
8131
|
}
|
|
8132
8132
|
]);
|
|
8133
8133
|
});
|
|
8134
|
-
})(handlebars_min, handlebars_min.exports);
|
|
8135
|
-
var handlebars_minExports = handlebars_min.exports;
|
|
8136
|
-
var
|
|
8137
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces
|
|
8134
|
+
})(handlebars_min$1, handlebars_min$1.exports);
|
|
8135
|
+
var handlebars_minExports = handlebars_min$1.exports;
|
|
8136
|
+
var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8137
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8138
8138
|
__proto__: null,
|
|
8139
|
-
default:
|
|
8139
|
+
default: handlebars_min
|
|
8140
8140
|
}, [
|
|
8141
8141
|
handlebars_minExports
|
|
8142
8142
|
]);
|
|
@@ -17299,7 +17299,6 @@ class represent prop names.
|
|
|
17299
17299
|
this.deserialize = config.deserialize || function() {
|
|
17300
17300
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17301
17301
|
};
|
|
17302
|
-
this.combine = config.combine || null;
|
|
17303
17302
|
}
|
|
17304
17303
|
_create_class$u(NodeProp, [
|
|
17305
17304
|
{
|
|
@@ -17412,16 +17411,10 @@ represented by another tree.
|
|
|
17412
17411
|
*/ overlay, /**
|
|
17413
17412
|
The parser used to create this subtree.
|
|
17414
17413
|
*/ parser) {
|
|
17415
|
-
var /**
|
|
17416
|
-
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17417
|
-
content is delineated with some kind
|
|
17418
|
-
of bracket token.
|
|
17419
|
-
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17420
17414
|
_class_call_check$z(this, MountedTree);
|
|
17421
17415
|
this.tree = tree;
|
|
17422
17416
|
this.overlay = overlay;
|
|
17423
17417
|
this.parser = parser;
|
|
17424
|
-
this.bracketed = bracketed;
|
|
17425
17418
|
}
|
|
17426
17419
|
_create_class$u(MountedTree, null, [
|
|
17427
17420
|
{
|
|
@@ -17637,9 +17630,7 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17637
17630
|
var add = source(type);
|
|
17638
17631
|
if (add) {
|
|
17639
17632
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17640
|
-
|
|
17641
|
-
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17642
|
-
newProps[prop.id] = value;
|
|
17633
|
+
newProps[add[0].id] = add[1];
|
|
17643
17634
|
}
|
|
17644
17635
|
}
|
|
17645
17636
|
} catch (err) {
|
|
@@ -17705,12 +17696,6 @@ operator to enable multiple ones.
|
|
|
17705
17696
|
library to not enter mounted overlays if one covers the given
|
|
17706
17697
|
position.
|
|
17707
17698
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17708
|
-
/**
|
|
17709
|
-
When set, positions on the boundary of a mounted overlay tree
|
|
17710
|
-
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17711
|
-
set will enter that tree regardless of side. Only supported in
|
|
17712
|
-
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17713
|
-
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17714
17699
|
})(IterMode || (IterMode = {}));
|
|
17715
17700
|
/**
|
|
17716
17701
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18269,17 +18254,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18269
18254
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18270
18255
|
for(var parent = this;;){
|
|
18271
18256
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18272
|
-
var next = children[i], start = positions[i] + parent.from
|
|
18273
|
-
if (!
|
|
18257
|
+
var next = children[i], start = positions[i] + parent.from;
|
|
18258
|
+
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18274
18259
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18275
18260
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18276
18261
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18277
18262
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18278
18263
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18279
|
-
var
|
|
18280
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18264
|
+
var mounted = void 0;
|
|
18265
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
|
|
18281
18266
|
var inner = new TreeNode(next, start, i, parent);
|
|
18282
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side
|
|
18267
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18283
18268
|
}
|
|
18284
18269
|
}
|
|
18285
18270
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18314,24 +18299,18 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18314
18299
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18315
18300
|
}
|
|
18316
18301
|
},
|
|
18317
|
-
{
|
|
18318
|
-
key: "prop",
|
|
18319
|
-
value: function prop(prop) {
|
|
18320
|
-
return this._tree.prop(prop);
|
|
18321
|
-
}
|
|
18322
|
-
},
|
|
18323
18302
|
{
|
|
18324
18303
|
key: "enter",
|
|
18325
18304
|
value: function enter(pos, side) {
|
|
18326
18305
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18327
18306
|
var mounted;
|
|
18328
18307
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18329
|
-
var rPos = pos - this.from
|
|
18308
|
+
var rPos = pos - this.from;
|
|
18330
18309
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18331
18310
|
try {
|
|
18332
18311
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18333
18312
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18334
|
-
if ((side > 0
|
|
18313
|
+
if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
18335
18314
|
}
|
|
18336
18315
|
} catch (err) {
|
|
18337
18316
|
_didIteratorError = true;
|
|
@@ -18495,12 +18474,6 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18495
18474
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18496
18475
|
}
|
|
18497
18476
|
},
|
|
18498
|
-
{
|
|
18499
|
-
key: "prop",
|
|
18500
|
-
value: function prop(prop) {
|
|
18501
|
-
return this.type.prop(prop);
|
|
18502
|
-
}
|
|
18503
|
-
},
|
|
18504
18477
|
{
|
|
18505
18478
|
key: "enter",
|
|
18506
18479
|
value: function enter(pos, side) {
|
|
@@ -18631,8 +18604,11 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18631
18604
|
allows you to move to adjacent nodes.
|
|
18632
18605
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18633
18606
|
function TreeCursor(node) {
|
|
18634
|
-
var
|
|
18607
|
+
var /**
|
|
18608
|
+
@internal
|
|
18609
|
+
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18635
18610
|
_class_call_check$z(this, TreeCursor);
|
|
18611
|
+
this.mode = mode;
|
|
18636
18612
|
/**
|
|
18637
18613
|
@internal
|
|
18638
18614
|
*/ this.buffer = null;
|
|
@@ -18641,7 +18617,6 @@ allows you to move to adjacent nodes.
|
|
|
18641
18617
|
@internal
|
|
18642
18618
|
*/ this.index = 0;
|
|
18643
18619
|
this.bufferNode = null;
|
|
18644
|
-
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18645
18620
|
if (_instanceof$i(node, TreeNode)) {
|
|
18646
18621
|
this.yieldNode(node);
|
|
18647
18622
|
} else {
|
|
@@ -18985,7 +18960,7 @@ function buildTree(data) {
|
|
|
18985
18960
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18986
18961
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18987
18962
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18988
|
-
|
|
18963
|
+
while(size < 0){
|
|
18989
18964
|
cursor.next();
|
|
18990
18965
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18991
18966
|
var node = reused[id];
|
|
@@ -19152,7 +19127,7 @@ function buildTree(data) {
|
|
|
19152
19127
|
fork.next();
|
|
19153
19128
|
while(fork.pos > startPos){
|
|
19154
19129
|
if (fork.size < 0) {
|
|
19155
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */
|
|
19130
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19156
19131
|
else break scan;
|
|
19157
19132
|
} else if (fork.id >= minRepeatType) {
|
|
19158
19133
|
localSkipped += 4;
|
|
@@ -19591,11 +19566,11 @@ about the parse state.
|
|
|
19591
19566
|
var _a;
|
|
19592
19567
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19593
19568
|
var parser = this.p.parser;
|
|
19594
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */
|
|
19569
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19570
|
+
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19595
19571
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19596
19572
|
if (dPrec) this.score += dPrec;
|
|
19597
19573
|
if (depth == 0) {
|
|
19598
|
-
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19599
19574
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19600
19575
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19601
19576
|
// the stack without popping anything off.
|
|
@@ -19609,9 +19584,7 @@ about the parse state.
|
|
|
19609
19584
|
// expression and the state that we'll be staying in, which should
|
|
19610
19585
|
// be moved to `this.state`).
|
|
19611
19586
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19612
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19613
|
-
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19614
|
-
var size = this.reducePos - start;
|
|
19587
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
|
|
19615
19588
|
// This is a kludge to try and detect overly deep left-associative
|
|
19616
19589
|
// trees, which will not increase the parse stack depth and thus
|
|
19617
19590
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19650,11 +19623,15 @@ about the parse state.
|
|
|
19650
19623
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19651
19624
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19652
19625
|
// Try to omit/merge adjacent error nodes
|
|
19653
|
-
var top = this.buffer.length;
|
|
19654
|
-
if (top
|
|
19626
|
+
var cur = this, top = this.buffer.length;
|
|
19627
|
+
if (top == 0 && cur.parent) {
|
|
19628
|
+
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19629
|
+
cur = cur.parent;
|
|
19630
|
+
}
|
|
19631
|
+
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19655
19632
|
if (start == end) return;
|
|
19656
|
-
if (
|
|
19657
|
-
|
|
19633
|
+
if (cur.buffer[top - 2] >= start) {
|
|
19634
|
+
cur.buffer[top - 2] = end;
|
|
19658
19635
|
return;
|
|
19659
19636
|
}
|
|
19660
19637
|
}
|
|
@@ -19663,7 +19640,7 @@ about the parse state.
|
|
|
19663
19640
|
this.buffer.push(term, start, end, size);
|
|
19664
19641
|
} else {
|
|
19665
19642
|
var index = this.buffer.length;
|
|
19666
|
-
if (index > 0 &&
|
|
19643
|
+
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19667
19644
|
var mustMove = false;
|
|
19668
19645
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19669
19646
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19698,11 +19675,11 @@ about the parse state.
|
|
|
19698
19675
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19699
19676
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19700
19677
|
var nextState = action, parser = this.p.parser;
|
|
19701
|
-
this.pos
|
|
19702
|
-
|
|
19703
|
-
|
|
19704
|
-
|
|
19705
|
-
this.pushState(nextState,
|
|
19678
|
+
if (end > this.pos || type <= parser.maxNode) {
|
|
19679
|
+
this.pos = end;
|
|
19680
|
+
if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
|
|
19681
|
+
}
|
|
19682
|
+
this.pushState(nextState, start);
|
|
19706
19683
|
this.shiftContext(type, start);
|
|
19707
19684
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19708
19685
|
} else {
|
|
@@ -19750,9 +19727,6 @@ about the parse state.
|
|
|
19750
19727
|
value: function split() {
|
|
19751
19728
|
var parent = this;
|
|
19752
19729
|
var off = parent.buffer.length;
|
|
19753
|
-
// Leave off top error node, if there, because that might be
|
|
19754
|
-
// merged with other nodes.
|
|
19755
|
-
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19756
19730
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19757
19731
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19758
19732
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -19996,10 +19970,10 @@ about the parse state.
|
|
|
19996
19970
|
@internal
|
|
19997
19971
|
*/ key: "setLookAhead",
|
|
19998
19972
|
value: function setLookAhead(lookAhead) {
|
|
19999
|
-
if (lookAhead
|
|
20000
|
-
|
|
20001
|
-
|
|
20002
|
-
|
|
19973
|
+
if (lookAhead > this.lookAhead) {
|
|
19974
|
+
this.emitLookAhead();
|
|
19975
|
+
this.lookAhead = lookAhead;
|
|
19976
|
+
}
|
|
20003
19977
|
}
|
|
20004
19978
|
},
|
|
20005
19979
|
{
|
|
@@ -20892,12 +20866,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20892
20866
|
}
|
|
20893
20867
|
}
|
|
20894
20868
|
}
|
|
20895
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20896
|
-
newStacks.sort(function(a, b) {
|
|
20897
|
-
return b.score - a.score;
|
|
20898
|
-
});
|
|
20899
|
-
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20900
|
-
}
|
|
20869
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20901
20870
|
}
|
|
20902
20871
|
this.minStackPos = newStacks[0].pos;
|
|
20903
20872
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20992,7 +20961,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20992
20961
|
if (done) continue;
|
|
20993
20962
|
}
|
|
20994
20963
|
var force = stack.split(), forceBase = base;
|
|
20995
|
-
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */
|
|
20964
|
+
for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
|
|
20996
20965
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
20997
20966
|
var done1 = this.advanceFully(force, newStacks);
|
|
20998
20967
|
if (done1) break;
|
|
@@ -21027,8 +20996,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
21027
20996
|
stack.recoverByDelete(token, tokenEnd);
|
|
21028
20997
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
21029
20998
|
pushStackDedup(stack, newStacks);
|
|
21030
|
-
} else if (!finished || finished.score <
|
|
21031
|
-
finished =
|
|
20999
|
+
} else if (!finished || finished.score < stack.score) {
|
|
21000
|
+
finished = stack;
|
|
21032
21001
|
}
|
|
21033
21002
|
}
|
|
21034
21003
|
return finished;
|
|
@@ -21877,7 +21846,7 @@ must be quoted as JSON strings.
|
|
|
21877
21846
|
For example:
|
|
21878
21847
|
|
|
21879
21848
|
```javascript
|
|
21880
|
-
parser.
|
|
21849
|
+
parser.withProps(
|
|
21881
21850
|
styleTags({
|
|
21882
21851
|
// Style Number and BigNumber nodes
|
|
21883
21852
|
"Number BigNumber": tags.number,
|
|
@@ -21892,7 +21861,7 @@ parser.configure({props: [
|
|
|
21892
21861
|
// Style the node named "/" as punctuation
|
|
21893
21862
|
'"/"': tags.punctuation
|
|
21894
21863
|
})
|
|
21895
|
-
|
|
21864
|
+
)
|
|
21896
21865
|
```
|
|
21897
21866
|
*/ function styleTags(spec) {
|
|
21898
21867
|
var byName = Object.create(null);
|
|
@@ -21948,26 +21917,7 @@ parser.configure({props: [
|
|
|
21948
21917
|
}
|
|
21949
21918
|
return ruleNodeProp.add(byName);
|
|
21950
21919
|
}
|
|
21951
|
-
var ruleNodeProp = new NodeProp(
|
|
21952
|
-
combine: function combine(a, b) {
|
|
21953
|
-
var cur, root, take;
|
|
21954
|
-
while(a || b){
|
|
21955
|
-
if (!a || b && a.depth >= b.depth) {
|
|
21956
|
-
take = b;
|
|
21957
|
-
b = b.next;
|
|
21958
|
-
} else {
|
|
21959
|
-
take = a;
|
|
21960
|
-
a = a.next;
|
|
21961
|
-
}
|
|
21962
|
-
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21963
|
-
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21964
|
-
if (cur) cur.next = copy;
|
|
21965
|
-
else root = copy;
|
|
21966
|
-
cur = copy;
|
|
21967
|
-
}
|
|
21968
|
-
return root;
|
|
21969
|
-
}
|
|
21970
|
-
});
|
|
21920
|
+
var ruleNodeProp = new NodeProp();
|
|
21971
21921
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21972
21922
|
function Rule(tags, mode, context, next) {
|
|
21973
21923
|
_class_call_check$x(this, Rule);
|
|
@@ -22892,14 +22842,14 @@ function indent(str, spaces) {
|
|
|
22892
22842
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22893
22843
|
// match is required
|
|
22894
22844
|
if (!match) {
|
|
22895
|
-
return
|
|
22845
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
22896
22846
|
v: nextMatch1
|
|
22897
22847
|
};
|
|
22898
22848
|
}
|
|
22899
22849
|
var token = match.token, offset = match.offset;
|
|
22900
22850
|
i1 += offset;
|
|
22901
22851
|
if (token === ' ') {
|
|
22902
|
-
return
|
|
22852
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22903
22853
|
}
|
|
22904
22854
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22905
22855
|
token
|
|
@@ -22918,7 +22868,7 @@ function indent(str, spaces) {
|
|
|
22918
22868
|
if (contextKeys.some(function(el) {
|
|
22919
22869
|
return el.startsWith(name);
|
|
22920
22870
|
})) {
|
|
22921
|
-
return
|
|
22871
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22922
22872
|
}
|
|
22923
22873
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22924
22874
|
return el === name;
|
|
@@ -22937,9 +22887,9 @@ function indent(str, spaces) {
|
|
|
22937
22887
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22938
22888
|
return el.startsWith(name);
|
|
22939
22889
|
})) {
|
|
22940
|
-
return
|
|
22890
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, "continue";
|
|
22941
22891
|
}
|
|
22942
|
-
return
|
|
22892
|
+
return tokens = tokens1, i = i1, nextMatch = nextMatch1, {
|
|
22943
22893
|
v: nextMatch1
|
|
22944
22894
|
};
|
|
22945
22895
|
};
|
|
@@ -44443,7 +44393,7 @@ function _object_spread_props(target, source) {
|
|
|
44443
44393
|
prefix: '_'
|
|
44444
44394
|
})).join('').toLowerCase();
|
|
44445
44395
|
}
|
|
44446
|
-
const Handlebars =
|
|
44396
|
+
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
44447
44397
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
44448
44398
|
return JSON.stringify(value);
|
|
44449
44399
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-web.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-web.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAA4C,MAAM,kBAAkB,CAAC;AAuS1F,eAAO,MAAM,IAAI,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACtB,CAAC"}
|