@supraio/client-daemon-js 0.0.0-mzresolution.238 → 0.0.0-mzresolution.239
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/daemon.html +1 -1
- package/daemon.js +2 -2
- package/package.json +1 -1
- package/screen.css +4 -0
- package/screen.html +1 -1
- package/screen.js +2 -2
- package/sdk.js +4 -4
- package/supra-client-daemon.js +249 -98
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +247 -96
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/supra-client-screen.js
CHANGED
|
@@ -43830,7 +43830,7 @@ $packages["github.com/BurntSushi/toml"] = (function() {
|
|
|
43830
43830
|
return $pkg;
|
|
43831
43831
|
})();
|
|
43832
43832
|
$packages["regexp/syntax"] = (function() {
|
|
43833
|
-
var $pkg = {}, $init, sort, strconv, strings, unicode, utf8, patchList, frag, compiler, Error, ErrorCode, Flags, parser, charGroup, ranges, Prog, InstOp, EmptyOp, Inst, Regexp, Op, sliceType, sliceType$1, sliceType$2, sliceType$3, ptrType, sliceType$4, ptrType$1, sliceType$5, arrayType, arrayType$1, ptrType$2, ptrType$3, ptrType$4, sliceType$6, ptrType$5, ptrType$6, ptrType$7, ptrType$8, anyRuneNotNL, anyRune, _Op_index_0, anyTable, code1, code2, code3, perlGroup, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, posixGroup, instOpNames, makePatchList, Compile, minFoldRune, repeatIsValid, cleanAlt, literalRegexp, Parse, isValidCaptureName, isCharClass, matchRune, mergeCharClass, unicodeTable, cleanClass, appendLiteral, appendRange, appendFoldedRange, appendClass, appendFoldedClass, appendNegatedClass, appendTable, appendNegatedTable, negateClass, checkUTF8, nextRune, isalnum, unhex, IsWordChar, bw, dumpProg, u32, dumpInst, writeRegexp, escape, simplify1;
|
|
43833
|
+
var $pkg = {}, $init, sort, strconv, strings, unicode, utf8, patchList, frag, compiler, Error, ErrorCode, Flags, parser, charGroup, ranges, Prog, InstOp, EmptyOp, Inst, Regexp, Op, sliceType, sliceType$1, sliceType$2, sliceType$3, ptrType, sliceType$4, ptrType$1, sliceType$5, arrayType, arrayType$1, ptrType$2, ptrType$3, ptrType$4, sliceType$6, ptrType$5, ptrType$6, ptrType$7, mapType, ptrType$8, anyRuneNotNL, anyRune, _Op_index_0, anyTable, code1, code2, code3, perlGroup, code4, code5, code6, code7, code8, code9, code10, code11, code12, code13, code14, code15, code16, code17, posixGroup, instOpNames, makePatchList, Compile, minFoldRune, repeatIsValid, cleanAlt, literalRegexp, Parse, parse, isValidCaptureName, isCharClass, matchRune, mergeCharClass, unicodeTable, cleanClass, appendLiteral, appendRange, appendFoldedRange, appendClass, appendFoldedClass, appendNegatedClass, appendTable, appendNegatedTable, negateClass, checkUTF8, nextRune, isalnum, unhex, IsWordChar, bw, dumpProg, u32, dumpInst, writeRegexp, escape, simplify1;
|
|
43834
43834
|
sort = $packages["sort"];
|
|
43835
43835
|
strconv = $packages["strconv"];
|
|
43836
43836
|
strings = $packages["strings"];
|
|
@@ -43876,7 +43876,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
43876
43876
|
});
|
|
43877
43877
|
ErrorCode = $pkg.ErrorCode = $newType(8, $kindString, "syntax.ErrorCode", true, "regexp/syntax", true, null);
|
|
43878
43878
|
Flags = $pkg.Flags = $newType(2, $kindUint16, "syntax.Flags", true, "regexp/syntax", true, null);
|
|
43879
|
-
parser = $pkg.parser = $newType(0, $kindStruct, "syntax.parser", true, "regexp/syntax", false, function(flags_, stack_, free_, numCap_, wholeRegexp_, tmpClass_) {
|
|
43879
|
+
parser = $pkg.parser = $newType(0, $kindStruct, "syntax.parser", true, "regexp/syntax", false, function(flags_, stack_, free_, numCap_, wholeRegexp_, tmpClass_, numRegexp_, height_) {
|
|
43880
43880
|
this.$val = this;
|
|
43881
43881
|
if (arguments.length === 0) {
|
|
43882
43882
|
this.flags = 0;
|
|
@@ -43885,6 +43885,8 @@ $packages["regexp/syntax"] = (function() {
|
|
|
43885
43885
|
this.numCap = 0;
|
|
43886
43886
|
this.wholeRegexp = "";
|
|
43887
43887
|
this.tmpClass = sliceType.nil;
|
|
43888
|
+
this.numRegexp = 0;
|
|
43889
|
+
this.height = false;
|
|
43888
43890
|
return;
|
|
43889
43891
|
}
|
|
43890
43892
|
this.flags = flags_;
|
|
@@ -43893,6 +43895,8 @@ $packages["regexp/syntax"] = (function() {
|
|
|
43893
43895
|
this.numCap = numCap_;
|
|
43894
43896
|
this.wholeRegexp = wholeRegexp_;
|
|
43895
43897
|
this.tmpClass = tmpClass_;
|
|
43898
|
+
this.numRegexp = numRegexp_;
|
|
43899
|
+
this.height = height_;
|
|
43896
43900
|
});
|
|
43897
43901
|
charGroup = $pkg.charGroup = $newType(0, $kindStruct, "syntax.charGroup", true, "regexp/syntax", false, function(sign_, class$1_) {
|
|
43898
43902
|
this.$val = this;
|
|
@@ -43984,6 +43988,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
43984
43988
|
ptrType$5 = $ptrType(compiler);
|
|
43985
43989
|
ptrType$6 = $ptrType(Error);
|
|
43986
43990
|
ptrType$7 = $ptrType(parser);
|
|
43991
|
+
mapType = $mapType(ptrType$1, $Int);
|
|
43987
43992
|
ptrType$8 = $ptrType(Inst);
|
|
43988
43993
|
makePatchList = function(n) {
|
|
43989
43994
|
var n;
|
|
@@ -44296,6 +44301,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44296
44301
|
Regexp.copy(re, new Regexp.ptr(0, 0, sliceType$5.nil, arrayType.zero(), sliceType.nil, arrayType$1.zero(), 0, 0, 0, ""));
|
|
44297
44302
|
} else {
|
|
44298
44303
|
re = new Regexp.ptr(0, 0, sliceType$5.nil, arrayType.zero(), sliceType.nil, arrayType$1.zero(), 0, 0, 0, "");
|
|
44304
|
+
p.numRegexp = p.numRegexp + (1) >> 0;
|
|
44299
44305
|
}
|
|
44300
44306
|
re.Op = op;
|
|
44301
44307
|
return re;
|
|
@@ -44304,10 +44310,62 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44304
44310
|
parser.ptr.prototype.reuse = function(re) {
|
|
44305
44311
|
var p, re;
|
|
44306
44312
|
p = this;
|
|
44313
|
+
if (!(p.height === false)) {
|
|
44314
|
+
delete p.height[ptrType$1.keyFor(re)];
|
|
44315
|
+
}
|
|
44307
44316
|
re.Sub0[0] = p.free;
|
|
44308
44317
|
p.free = re;
|
|
44309
44318
|
};
|
|
44310
44319
|
parser.prototype.reuse = function(re) { return this.$val.reuse(re); };
|
|
44320
|
+
parser.ptr.prototype.checkHeight = function(re) {
|
|
44321
|
+
var _i, _ref, p, re, re$1;
|
|
44322
|
+
p = this;
|
|
44323
|
+
if (p.numRegexp < 1000) {
|
|
44324
|
+
return;
|
|
44325
|
+
}
|
|
44326
|
+
if (p.height === false) {
|
|
44327
|
+
p.height = {};
|
|
44328
|
+
_ref = p.stack;
|
|
44329
|
+
_i = 0;
|
|
44330
|
+
while (true) {
|
|
44331
|
+
if (!(_i < _ref.$length)) { break; }
|
|
44332
|
+
re$1 = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
44333
|
+
p.checkHeight(re$1);
|
|
44334
|
+
_i++;
|
|
44335
|
+
}
|
|
44336
|
+
}
|
|
44337
|
+
if (p.calcHeight(re, true) > 1000) {
|
|
44338
|
+
$panic(new ErrorCode("regexp/syntax: internal error"));
|
|
44339
|
+
}
|
|
44340
|
+
};
|
|
44341
|
+
parser.prototype.checkHeight = function(re) { return this.$val.checkHeight(re); };
|
|
44342
|
+
parser.ptr.prototype.calcHeight = function(re, force) {
|
|
44343
|
+
var _entry, _i, _key, _ref, _tuple, force, h, h$1, hsub, ok, p, re, sub;
|
|
44344
|
+
p = this;
|
|
44345
|
+
if (!force) {
|
|
44346
|
+
_tuple = (_entry = p.height[ptrType$1.keyFor(re)], _entry !== undefined ? [_entry.v, true] : [0, false]);
|
|
44347
|
+
h = _tuple[0];
|
|
44348
|
+
ok = _tuple[1];
|
|
44349
|
+
if (ok) {
|
|
44350
|
+
return h;
|
|
44351
|
+
}
|
|
44352
|
+
}
|
|
44353
|
+
h$1 = 1;
|
|
44354
|
+
_ref = re.Sub;
|
|
44355
|
+
_i = 0;
|
|
44356
|
+
while (true) {
|
|
44357
|
+
if (!(_i < _ref.$length)) { break; }
|
|
44358
|
+
sub = ((_i < 0 || _i >= _ref.$length) ? ($throwRuntimeError("index out of range"), undefined) : _ref.$array[_ref.$offset + _i]);
|
|
44359
|
+
hsub = p.calcHeight(sub, false);
|
|
44360
|
+
if (h$1 < (1 + hsub >> 0)) {
|
|
44361
|
+
h$1 = 1 + hsub >> 0;
|
|
44362
|
+
}
|
|
44363
|
+
_i++;
|
|
44364
|
+
}
|
|
44365
|
+
_key = re; (p.height || $throwRuntimeError("assignment to entry in nil map"))[ptrType$1.keyFor(_key)] = { k: _key, v: h$1 };
|
|
44366
|
+
return h$1;
|
|
44367
|
+
};
|
|
44368
|
+
parser.prototype.calcHeight = function(re, force) { return this.$val.calcHeight(re, force); };
|
|
44311
44369
|
parser.ptr.prototype.push = function(re) {
|
|
44312
44370
|
var p, re, x, x$1, x$10, x$11, x$12, x$13, x$14, x$15, x$16, x$17, x$2, x$3, x$4, x$5, x$6, x$7, x$8, x$9;
|
|
44313
44371
|
p = this;
|
|
@@ -44329,6 +44387,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44329
44387
|
p.maybeConcat(-1, 0);
|
|
44330
44388
|
}
|
|
44331
44389
|
p.stack = $append(p.stack, re);
|
|
44390
|
+
p.checkHeight(re);
|
|
44332
44391
|
return re;
|
|
44333
44392
|
};
|
|
44334
44393
|
parser.prototype.push = function(re) { return this.$val.push(re); };
|
|
@@ -44422,6 +44481,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44422
44481
|
re.Sub = $subslice(new sliceType$5(re.Sub0), 0, 1);
|
|
44423
44482
|
(x$2 = re.Sub, (0 >= x$2.$length ? ($throwRuntimeError("index out of range"), undefined) : x$2.$array[x$2.$offset + 0] = sub));
|
|
44424
44483
|
(x$3 = p.stack, x$4 = n - 1 >> 0, ((x$4 < 0 || x$4 >= x$3.$length) ? ($throwRuntimeError("index out of range"), undefined) : x$3.$array[x$3.$offset + x$4] = re));
|
|
44484
|
+
p.checkHeight(re);
|
|
44425
44485
|
if ((op === 17) && (min >= 2 || max >= 2) && !repeatIsValid(re, 1000)) {
|
|
44426
44486
|
return ["", new Error.ptr("invalid repeat count", $substring(before, 0, (before.length - after.length >> 0)))];
|
|
44427
44487
|
}
|
|
@@ -44852,45 +44912,79 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44852
44912
|
return re;
|
|
44853
44913
|
};
|
|
44854
44914
|
Parse = function(s, flags) {
|
|
44855
|
-
var
|
|
44856
|
-
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true;
|
|
44915
|
+
var _r, flags, s, $s, $r;
|
|
44916
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; flags = $f.flags; s = $f.s; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
44917
|
+
_r = parse(s, flags); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
44918
|
+
$s = -1; return _r;
|
|
44919
|
+
/* */ } return; } if ($f === undefined) { $f = { $blk: Parse }; } $f._r = _r; $f.flags = flags; $f.s = s; $f.$s = $s; $f.$r = $r; return $f;
|
|
44920
|
+
};
|
|
44921
|
+
$pkg.Parse = Parse;
|
|
44922
|
+
parse = function(s, flags) {
|
|
44923
|
+
var _, _2, _3, _4, _r, _r$1, _r$2, _r$3, _r$4, _r$5, _r$6, _r$7, _struct, _tmp, _tmp$1, _tmp$10, _tmp$11, _tmp$12, _tmp$13, _tmp$14, _tmp$15, _tmp$16, _tmp$17, _tmp$18, _tmp$19, _tmp$2, _tmp$20, _tmp$21, _tmp$22, _tmp$23, _tmp$24, _tmp$25, _tmp$26, _tmp$27, _tmp$28, _tmp$29, _tmp$3, _tmp$30, _tmp$31, _tmp$4, _tmp$5, _tmp$6, _tmp$7, _tmp$8, _tmp$9, _tuple, _tuple$1, _tuple$2, _tuple$3, _tuple$4, _tuple$5, _tuple$6, _tuple$7, _tuple$8, _tuple$9, after, after$1, before, before$1, c, c$1, err, err$1, err$2, err$3, flags, i, lastRepeat, lit, max, min, n, ok, op, p, r, r$1, re, repeat, rest, rest$1, rest$2, s, t, x, $s, $deferred, $r;
|
|
44924
|
+
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _ = $f._; _2 = $f._2; _3 = $f._3; _4 = $f._4; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; _r$4 = $f._r$4; _r$5 = $f._r$5; _r$6 = $f._r$6; _r$7 = $f._r$7; _struct = $f._struct; _tmp = $f._tmp; _tmp$1 = $f._tmp$1; _tmp$10 = $f._tmp$10; _tmp$11 = $f._tmp$11; _tmp$12 = $f._tmp$12; _tmp$13 = $f._tmp$13; _tmp$14 = $f._tmp$14; _tmp$15 = $f._tmp$15; _tmp$16 = $f._tmp$16; _tmp$17 = $f._tmp$17; _tmp$18 = $f._tmp$18; _tmp$19 = $f._tmp$19; _tmp$2 = $f._tmp$2; _tmp$20 = $f._tmp$20; _tmp$21 = $f._tmp$21; _tmp$22 = $f._tmp$22; _tmp$23 = $f._tmp$23; _tmp$24 = $f._tmp$24; _tmp$25 = $f._tmp$25; _tmp$26 = $f._tmp$26; _tmp$27 = $f._tmp$27; _tmp$28 = $f._tmp$28; _tmp$29 = $f._tmp$29; _tmp$3 = $f._tmp$3; _tmp$30 = $f._tmp$30; _tmp$31 = $f._tmp$31; _tmp$4 = $f._tmp$4; _tmp$5 = $f._tmp$5; _tmp$6 = $f._tmp$6; _tmp$7 = $f._tmp$7; _tmp$8 = $f._tmp$8; _tmp$9 = $f._tmp$9; _tuple = $f._tuple; _tuple$1 = $f._tuple$1; _tuple$2 = $f._tuple$2; _tuple$3 = $f._tuple$3; _tuple$4 = $f._tuple$4; _tuple$5 = $f._tuple$5; _tuple$6 = $f._tuple$6; _tuple$7 = $f._tuple$7; _tuple$8 = $f._tuple$8; _tuple$9 = $f._tuple$9; after = $f.after; after$1 = $f.after$1; before = $f.before; before$1 = $f.before$1; c = $f.c; c$1 = $f.c$1; err = $f.err; err$1 = $f.err$1; err$2 = $f.err$2; err$3 = $f.err$3; flags = $f.flags; i = $f.i; lastRepeat = $f.lastRepeat; lit = $f.lit; max = $f.max; min = $f.min; n = $f.n; ok = $f.ok; op = $f.op; p = $f.p; r = $f.r; r$1 = $f.r$1; re = $f.re; repeat = $f.repeat; rest = $f.rest; rest$1 = $f.rest$1; rest$2 = $f.rest$2; s = $f.s; t = $f.t; x = $f.x; $s = $f.$s; $deferred = $f.$deferred; $r = $f.$r; } var $err = null; try { s: while (true) { switch ($s) { case 0: $deferred = []; $deferred.index = $curGoroutine.deferStack.length; $curGoroutine.deferStack.push($deferred);
|
|
44925
|
+
err = [err];
|
|
44926
|
+
s = [s];
|
|
44927
|
+
_ = ptrType$1.nil;
|
|
44928
|
+
err[0] = $ifaceNil;
|
|
44929
|
+
$deferred.push([(function(err, s) { return function() {
|
|
44930
|
+
var _1, r;
|
|
44931
|
+
r = $recover();
|
|
44932
|
+
_1 = r;
|
|
44933
|
+
if ($interfaceIsEqual(_1, $ifaceNil)) {
|
|
44934
|
+
} else if ($interfaceIsEqual(_1, new ErrorCode(("regexp/syntax: internal error")))) {
|
|
44935
|
+
err[0] = new Error.ptr("regexp/syntax: internal error", s[0]);
|
|
44936
|
+
} else {
|
|
44937
|
+
$panic(r);
|
|
44938
|
+
}
|
|
44939
|
+
}; })(err, s), []]);
|
|
44857
44940
|
if (!((((flags & 2) >>> 0) === 0))) {
|
|
44858
|
-
err = checkUTF8(s);
|
|
44859
|
-
if (!($interfaceIsEqual(err, $ifaceNil))) {
|
|
44860
|
-
|
|
44941
|
+
err$1 = checkUTF8(s[0]);
|
|
44942
|
+
if (!($interfaceIsEqual(err$1, $ifaceNil))) {
|
|
44943
|
+
_tmp = ptrType$1.nil;
|
|
44944
|
+
_tmp$1 = err$1;
|
|
44945
|
+
_ = _tmp;
|
|
44946
|
+
err[0] = _tmp$1;
|
|
44947
|
+
$s = -1; return [_, err[0]];
|
|
44861
44948
|
}
|
|
44862
|
-
$
|
|
44949
|
+
_tmp$2 = literalRegexp(s[0], flags);
|
|
44950
|
+
_tmp$3 = $ifaceNil;
|
|
44951
|
+
_ = _tmp$2;
|
|
44952
|
+
err[0] = _tmp$3;
|
|
44953
|
+
$s = -1; return [_, err[0]];
|
|
44863
44954
|
}
|
|
44864
|
-
p = new parser.ptr(0, sliceType$5.nil, ptrType$1.nil, 0, "", sliceType.nil);
|
|
44865
|
-
err$1 = $ifaceNil;
|
|
44955
|
+
p = new parser.ptr(0, sliceType$5.nil, ptrType$1.nil, 0, "", sliceType.nil, 0, false);
|
|
44866
44956
|
c = 0;
|
|
44867
44957
|
op = 0;
|
|
44868
44958
|
lastRepeat = "";
|
|
44869
44959
|
p.flags = flags;
|
|
44870
|
-
p.wholeRegexp = s;
|
|
44871
|
-
t = s;
|
|
44960
|
+
p.wholeRegexp = s[0];
|
|
44961
|
+
t = s[0];
|
|
44872
44962
|
/* while (true) { */ case 1:
|
|
44873
44963
|
/* if (!(!(t === ""))) { break; } */ if(!(!(t === ""))) { $s = 2; continue; }
|
|
44874
44964
|
repeat = "";
|
|
44875
|
-
|
|
44876
|
-
/* */ if (
|
|
44877
|
-
/* */ if (
|
|
44878
|
-
/* */ if (
|
|
44879
|
-
/* */ if (
|
|
44880
|
-
/* */ if (
|
|
44881
|
-
/* */ if (
|
|
44882
|
-
/* */ if (
|
|
44883
|
-
/* */ if ((
|
|
44884
|
-
/* */ if (
|
|
44885
|
-
/* */ if (
|
|
44965
|
+
_2 = t.charCodeAt(0);
|
|
44966
|
+
/* */ if (_2 === (40)) { $s = 4; continue; }
|
|
44967
|
+
/* */ if (_2 === (124)) { $s = 5; continue; }
|
|
44968
|
+
/* */ if (_2 === (41)) { $s = 6; continue; }
|
|
44969
|
+
/* */ if (_2 === (94)) { $s = 7; continue; }
|
|
44970
|
+
/* */ if (_2 === (36)) { $s = 8; continue; }
|
|
44971
|
+
/* */ if (_2 === (46)) { $s = 9; continue; }
|
|
44972
|
+
/* */ if (_2 === (91)) { $s = 10; continue; }
|
|
44973
|
+
/* */ if ((_2 === (42)) || (_2 === (43)) || (_2 === (63))) { $s = 11; continue; }
|
|
44974
|
+
/* */ if (_2 === (123)) { $s = 12; continue; }
|
|
44975
|
+
/* */ if (_2 === (92)) { $s = 13; continue; }
|
|
44886
44976
|
/* */ $s = 14; continue;
|
|
44887
|
-
/* if (
|
|
44977
|
+
/* if (_2 === (40)) { */ case 4:
|
|
44888
44978
|
if (!((((p.flags & 64) >>> 0) === 0)) && t.length >= 2 && (t.charCodeAt(1) === 63)) {
|
|
44889
44979
|
_tuple = p.parsePerlFlags(t);
|
|
44890
44980
|
t = _tuple[0];
|
|
44891
|
-
err
|
|
44892
|
-
if (!($interfaceIsEqual(err
|
|
44893
|
-
$
|
|
44981
|
+
err[0] = _tuple[1];
|
|
44982
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
44983
|
+
_tmp$4 = ptrType$1.nil;
|
|
44984
|
+
_tmp$5 = err[0];
|
|
44985
|
+
_ = _tmp$4;
|
|
44986
|
+
err[0] = _tmp$5;
|
|
44987
|
+
$s = -1; return [_, err[0]];
|
|
44894
44988
|
}
|
|
44895
44989
|
/* break; */ $s = 3; continue;
|
|
44896
44990
|
}
|
|
@@ -44898,23 +44992,31 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44898
44992
|
p.op(128).Cap = p.numCap;
|
|
44899
44993
|
t = $substring(t, 1);
|
|
44900
44994
|
$s = 15; continue;
|
|
44901
|
-
/* } else if (
|
|
44995
|
+
/* } else if (_2 === (124)) { */ case 5:
|
|
44902
44996
|
_r = p.parseVerticalBar(); /* */ $s = 16; case 16: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
44903
|
-
err
|
|
44904
|
-
if (!($interfaceIsEqual(err
|
|
44905
|
-
$
|
|
44997
|
+
err[0] = _r;
|
|
44998
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
44999
|
+
_tmp$6 = ptrType$1.nil;
|
|
45000
|
+
_tmp$7 = err[0];
|
|
45001
|
+
_ = _tmp$6;
|
|
45002
|
+
err[0] = _tmp$7;
|
|
45003
|
+
$s = -1; return [_, err[0]];
|
|
44906
45004
|
}
|
|
44907
45005
|
t = $substring(t, 1);
|
|
44908
45006
|
$s = 15; continue;
|
|
44909
|
-
/* } else if (
|
|
45007
|
+
/* } else if (_2 === (41)) { */ case 6:
|
|
44910
45008
|
_r$1 = p.parseRightParen(); /* */ $s = 17; case 17: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
44911
|
-
err
|
|
44912
|
-
if (!($interfaceIsEqual(err
|
|
44913
|
-
$
|
|
45009
|
+
err[0] = _r$1;
|
|
45010
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45011
|
+
_tmp$8 = ptrType$1.nil;
|
|
45012
|
+
_tmp$9 = err[0];
|
|
45013
|
+
_ = _tmp$8;
|
|
45014
|
+
err[0] = _tmp$9;
|
|
45015
|
+
$s = -1; return [_, err[0]];
|
|
44914
45016
|
}
|
|
44915
45017
|
t = $substring(t, 1);
|
|
44916
45018
|
$s = 15; continue;
|
|
44917
|
-
/* } else if (
|
|
45019
|
+
/* } else if (_2 === (94)) { */ case 7:
|
|
44918
45020
|
if (!((((p.flags & 16) >>> 0) === 0))) {
|
|
44919
45021
|
p.op(9);
|
|
44920
45022
|
} else {
|
|
@@ -44922,7 +45024,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44922
45024
|
}
|
|
44923
45025
|
t = $substring(t, 1);
|
|
44924
45026
|
$s = 15; continue;
|
|
44925
|
-
/* } else if (
|
|
45027
|
+
/* } else if (_2 === (36)) { */ case 8:
|
|
44926
45028
|
if (!((((p.flags & 16) >>> 0) === 0))) {
|
|
44927
45029
|
_struct = p.op(10);
|
|
44928
45030
|
_struct.Flags = (_struct.Flags | (256)) >>> 0;
|
|
@@ -44931,7 +45033,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44931
45033
|
}
|
|
44932
45034
|
t = $substring(t, 1);
|
|
44933
45035
|
$s = 15; continue;
|
|
44934
|
-
/* } else if (
|
|
45036
|
+
/* } else if (_2 === (46)) { */ case 9:
|
|
44935
45037
|
if (!((((p.flags & 8) >>> 0) === 0))) {
|
|
44936
45038
|
p.op(6);
|
|
44937
45039
|
} else {
|
|
@@ -44939,36 +45041,44 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44939
45041
|
}
|
|
44940
45042
|
t = $substring(t, 1);
|
|
44941
45043
|
$s = 15; continue;
|
|
44942
|
-
/* } else if (
|
|
45044
|
+
/* } else if (_2 === (91)) { */ case 10:
|
|
44943
45045
|
_r$2 = p.parseClass(t); /* */ $s = 18; case 18: if($c) { $c = false; _r$2 = _r$2.$blk(); } if (_r$2 && _r$2.$blk !== undefined) { break s; }
|
|
44944
45046
|
_tuple$1 = _r$2;
|
|
44945
45047
|
t = _tuple$1[0];
|
|
44946
|
-
err
|
|
44947
|
-
if (!($interfaceIsEqual(err
|
|
44948
|
-
$
|
|
45048
|
+
err[0] = _tuple$1[1];
|
|
45049
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45050
|
+
_tmp$10 = ptrType$1.nil;
|
|
45051
|
+
_tmp$11 = err[0];
|
|
45052
|
+
_ = _tmp$10;
|
|
45053
|
+
err[0] = _tmp$11;
|
|
45054
|
+
$s = -1; return [_, err[0]];
|
|
44949
45055
|
}
|
|
44950
45056
|
$s = 15; continue;
|
|
44951
|
-
/* } else if ((
|
|
45057
|
+
/* } else if ((_2 === (42)) || (_2 === (43)) || (_2 === (63))) { */ case 11:
|
|
44952
45058
|
before = t;
|
|
44953
|
-
|
|
44954
|
-
if (
|
|
45059
|
+
_3 = t.charCodeAt(0);
|
|
45060
|
+
if (_3 === (42)) {
|
|
44955
45061
|
op = 14;
|
|
44956
|
-
} else if (
|
|
45062
|
+
} else if (_3 === (43)) {
|
|
44957
45063
|
op = 15;
|
|
44958
|
-
} else if (
|
|
45064
|
+
} else if (_3 === (63)) {
|
|
44959
45065
|
op = 16;
|
|
44960
45066
|
}
|
|
44961
45067
|
after = $substring(t, 1);
|
|
44962
45068
|
_tuple$2 = p.repeat(op, 0, 0, before, after, lastRepeat);
|
|
44963
45069
|
after = _tuple$2[0];
|
|
44964
|
-
err
|
|
44965
|
-
if (!($interfaceIsEqual(err
|
|
44966
|
-
$
|
|
45070
|
+
err[0] = _tuple$2[1];
|
|
45071
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45072
|
+
_tmp$12 = ptrType$1.nil;
|
|
45073
|
+
_tmp$13 = err[0];
|
|
45074
|
+
_ = _tmp$12;
|
|
45075
|
+
err[0] = _tmp$13;
|
|
45076
|
+
$s = -1; return [_, err[0]];
|
|
44967
45077
|
}
|
|
44968
45078
|
repeat = before;
|
|
44969
45079
|
t = after;
|
|
44970
45080
|
$s = 15; continue;
|
|
44971
|
-
/* } else if (
|
|
45081
|
+
/* } else if (_2 === (123)) { */ case 12:
|
|
44972
45082
|
op = 17;
|
|
44973
45083
|
before$1 = t;
|
|
44974
45084
|
_tuple$3 = p.parseRepeat(t);
|
|
@@ -44982,35 +45092,47 @@ $packages["regexp/syntax"] = (function() {
|
|
|
44982
45092
|
/* break; */ $s = 3; continue;
|
|
44983
45093
|
}
|
|
44984
45094
|
if (min < 0 || min > 1000 || max > 1000 || max >= 0 && min > max) {
|
|
44985
|
-
$
|
|
45095
|
+
_tmp$14 = ptrType$1.nil;
|
|
45096
|
+
_tmp$15 = new Error.ptr("invalid repeat count", $substring(before$1, 0, (before$1.length - after$1.length >> 0)));
|
|
45097
|
+
_ = _tmp$14;
|
|
45098
|
+
err[0] = _tmp$15;
|
|
45099
|
+
$s = -1; return [_, err[0]];
|
|
44986
45100
|
}
|
|
44987
45101
|
_tuple$4 = p.repeat(op, min, max, before$1, after$1, lastRepeat);
|
|
44988
45102
|
after$1 = _tuple$4[0];
|
|
44989
|
-
err
|
|
44990
|
-
if (!($interfaceIsEqual(err
|
|
44991
|
-
$
|
|
45103
|
+
err[0] = _tuple$4[1];
|
|
45104
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45105
|
+
_tmp$16 = ptrType$1.nil;
|
|
45106
|
+
_tmp$17 = err[0];
|
|
45107
|
+
_ = _tmp$16;
|
|
45108
|
+
err[0] = _tmp$17;
|
|
45109
|
+
$s = -1; return [_, err[0]];
|
|
44992
45110
|
}
|
|
44993
45111
|
repeat = before$1;
|
|
44994
45112
|
t = after$1;
|
|
44995
45113
|
$s = 15; continue;
|
|
44996
|
-
/* } else if (
|
|
45114
|
+
/* } else if (_2 === (92)) { */ case 13:
|
|
44997
45115
|
if (!((((p.flags & 64) >>> 0) === 0)) && t.length >= 2) {
|
|
44998
|
-
|
|
44999
|
-
if (
|
|
45116
|
+
_4 = t.charCodeAt(1);
|
|
45117
|
+
if (_4 === (65)) {
|
|
45000
45118
|
p.op(9);
|
|
45001
45119
|
t = $substring(t, 2);
|
|
45002
45120
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
45003
|
-
} else if (
|
|
45121
|
+
} else if (_4 === (98)) {
|
|
45004
45122
|
p.op(11);
|
|
45005
45123
|
t = $substring(t, 2);
|
|
45006
45124
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
45007
|
-
} else if (
|
|
45125
|
+
} else if (_4 === (66)) {
|
|
45008
45126
|
p.op(12);
|
|
45009
45127
|
t = $substring(t, 2);
|
|
45010
45128
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
45011
|
-
} else if (
|
|
45012
|
-
$
|
|
45013
|
-
|
|
45129
|
+
} else if (_4 === (67)) {
|
|
45130
|
+
_tmp$18 = ptrType$1.nil;
|
|
45131
|
+
_tmp$19 = new Error.ptr("invalid escape sequence", $substring(t, 0, 2));
|
|
45132
|
+
_ = _tmp$18;
|
|
45133
|
+
err[0] = _tmp$19;
|
|
45134
|
+
$s = -1; return [_, err[0]];
|
|
45135
|
+
} else if (_4 === (81)) {
|
|
45014
45136
|
lit = "";
|
|
45015
45137
|
i = strings.Index(t, "\\E");
|
|
45016
45138
|
if (i < 0) {
|
|
@@ -45027,13 +45149,17 @@ $packages["regexp/syntax"] = (function() {
|
|
|
45027
45149
|
rest = _tuple$5[1];
|
|
45028
45150
|
err$2 = _tuple$5[2];
|
|
45029
45151
|
if (!($interfaceIsEqual(err$2, $ifaceNil))) {
|
|
45030
|
-
$
|
|
45152
|
+
_tmp$20 = ptrType$1.nil;
|
|
45153
|
+
_tmp$21 = err$2;
|
|
45154
|
+
_ = _tmp$20;
|
|
45155
|
+
err[0] = _tmp$21;
|
|
45156
|
+
$s = -1; return [_, err[0]];
|
|
45031
45157
|
}
|
|
45032
45158
|
p.literal(c$1);
|
|
45033
45159
|
lit = rest;
|
|
45034
45160
|
}
|
|
45035
45161
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
45036
|
-
} else if (
|
|
45162
|
+
} else if (_4 === (122)) {
|
|
45037
45163
|
p.op(10);
|
|
45038
45164
|
t = $substring(t, 2);
|
|
45039
45165
|
/* break BigSwitch; */ $s = 3; continue s;
|
|
@@ -45050,7 +45176,11 @@ $packages["regexp/syntax"] = (function() {
|
|
|
45050
45176
|
rest$1 = _tuple$6[1];
|
|
45051
45177
|
err$3 = _tuple$6[2];
|
|
45052
45178
|
if (!($interfaceIsEqual(err$3, $ifaceNil))) {
|
|
45053
|
-
$
|
|
45179
|
+
_tmp$22 = ptrType$1.nil;
|
|
45180
|
+
_tmp$23 = err$3;
|
|
45181
|
+
_ = _tmp$22;
|
|
45182
|
+
err[0] = _tmp$23;
|
|
45183
|
+
$s = -1; return [_, err[0]];
|
|
45054
45184
|
}
|
|
45055
45185
|
if (!(r === sliceType.nil)) {
|
|
45056
45186
|
re.Rune = r;
|
|
@@ -45073,9 +45203,13 @@ $packages["regexp/syntax"] = (function() {
|
|
|
45073
45203
|
_tuple$8 = p.parseEscape(t);
|
|
45074
45204
|
c = _tuple$8[0];
|
|
45075
45205
|
t = _tuple$8[1];
|
|
45076
|
-
err
|
|
45077
|
-
if (!($interfaceIsEqual(err
|
|
45078
|
-
$
|
|
45206
|
+
err[0] = _tuple$8[2];
|
|
45207
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45208
|
+
_tmp$24 = ptrType$1.nil;
|
|
45209
|
+
_tmp$25 = err[0];
|
|
45210
|
+
_ = _tmp$24;
|
|
45211
|
+
err[0] = _tmp$25;
|
|
45212
|
+
$s = -1; return [_, err[0]];
|
|
45079
45213
|
}
|
|
45080
45214
|
p.literal(c);
|
|
45081
45215
|
$s = 15; continue;
|
|
@@ -45083,9 +45217,13 @@ $packages["regexp/syntax"] = (function() {
|
|
|
45083
45217
|
_tuple$9 = nextRune(t);
|
|
45084
45218
|
c = _tuple$9[0];
|
|
45085
45219
|
t = _tuple$9[1];
|
|
45086
|
-
err
|
|
45087
|
-
if (!($interfaceIsEqual(err
|
|
45088
|
-
$
|
|
45220
|
+
err[0] = _tuple$9[2];
|
|
45221
|
+
if (!($interfaceIsEqual(err[0], $ifaceNil))) {
|
|
45222
|
+
_tmp$26 = ptrType$1.nil;
|
|
45223
|
+
_tmp$27 = err[0];
|
|
45224
|
+
_ = _tmp$26;
|
|
45225
|
+
err[0] = _tmp$27;
|
|
45226
|
+
$s = -1; return [_, err[0]];
|
|
45089
45227
|
}
|
|
45090
45228
|
p.literal(c);
|
|
45091
45229
|
/* } */ case 15:
|
|
@@ -45104,12 +45242,19 @@ $packages["regexp/syntax"] = (function() {
|
|
|
45104
45242
|
_r$7;
|
|
45105
45243
|
n = p.stack.$length;
|
|
45106
45244
|
if (!((n === 1))) {
|
|
45107
|
-
$
|
|
45108
|
-
|
|
45109
|
-
|
|
45110
|
-
|
|
45245
|
+
_tmp$28 = ptrType$1.nil;
|
|
45246
|
+
_tmp$29 = new Error.ptr("missing closing )", s[0]);
|
|
45247
|
+
_ = _tmp$28;
|
|
45248
|
+
err[0] = _tmp$29;
|
|
45249
|
+
$s = -1; return [_, err[0]];
|
|
45250
|
+
}
|
|
45251
|
+
_tmp$30 = (x = p.stack, (0 >= x.$length ? ($throwRuntimeError("index out of range"), undefined) : x.$array[x.$offset + 0]));
|
|
45252
|
+
_tmp$31 = $ifaceNil;
|
|
45253
|
+
_ = _tmp$30;
|
|
45254
|
+
err[0] = _tmp$31;
|
|
45255
|
+
$s = -1; return [_, err[0]];
|
|
45256
|
+
/* */ } return; } } catch(err) { $err = err; $s = -1; } finally { $callDeferred($deferred, $err); if (!$curGoroutine.asleep) { return [_, err[0]]; } if($curGoroutine.asleep) { if ($f === undefined) { $f = { $blk: parse }; } $f._ = _; $f._2 = _2; $f._3 = _3; $f._4 = _4; $f._r = _r; $f._r$1 = _r$1; $f._r$2 = _r$2; $f._r$3 = _r$3; $f._r$4 = _r$4; $f._r$5 = _r$5; $f._r$6 = _r$6; $f._r$7 = _r$7; $f._struct = _struct; $f._tmp = _tmp; $f._tmp$1 = _tmp$1; $f._tmp$10 = _tmp$10; $f._tmp$11 = _tmp$11; $f._tmp$12 = _tmp$12; $f._tmp$13 = _tmp$13; $f._tmp$14 = _tmp$14; $f._tmp$15 = _tmp$15; $f._tmp$16 = _tmp$16; $f._tmp$17 = _tmp$17; $f._tmp$18 = _tmp$18; $f._tmp$19 = _tmp$19; $f._tmp$2 = _tmp$2; $f._tmp$20 = _tmp$20; $f._tmp$21 = _tmp$21; $f._tmp$22 = _tmp$22; $f._tmp$23 = _tmp$23; $f._tmp$24 = _tmp$24; $f._tmp$25 = _tmp$25; $f._tmp$26 = _tmp$26; $f._tmp$27 = _tmp$27; $f._tmp$28 = _tmp$28; $f._tmp$29 = _tmp$29; $f._tmp$3 = _tmp$3; $f._tmp$30 = _tmp$30; $f._tmp$31 = _tmp$31; $f._tmp$4 = _tmp$4; $f._tmp$5 = _tmp$5; $f._tmp$6 = _tmp$6; $f._tmp$7 = _tmp$7; $f._tmp$8 = _tmp$8; $f._tmp$9 = _tmp$9; $f._tuple = _tuple; $f._tuple$1 = _tuple$1; $f._tuple$2 = _tuple$2; $f._tuple$3 = _tuple$3; $f._tuple$4 = _tuple$4; $f._tuple$5 = _tuple$5; $f._tuple$6 = _tuple$6; $f._tuple$7 = _tuple$7; $f._tuple$8 = _tuple$8; $f._tuple$9 = _tuple$9; $f.after = after; $f.after$1 = after$1; $f.before = before; $f.before$1 = before$1; $f.c = c; $f.c$1 = c$1; $f.err = err; $f.err$1 = err$1; $f.err$2 = err$2; $f.err$3 = err$3; $f.flags = flags; $f.i = i; $f.lastRepeat = lastRepeat; $f.lit = lit; $f.max = max; $f.min = min; $f.n = n; $f.ok = ok; $f.op = op; $f.p = p; $f.r = r; $f.r$1 = r$1; $f.re = re; $f.repeat = repeat; $f.rest = rest; $f.rest$1 = rest$1; $f.rest$2 = rest$2; $f.s = s; $f.t = t; $f.x = x; $f.$s = $s; $f.$deferred = $deferred; $f.$r = $r; return $f; } }
|
|
45111
45257
|
};
|
|
45112
|
-
$pkg.Parse = Parse;
|
|
45113
45258
|
parser.ptr.prototype.parseRepeat = function(s) {
|
|
45114
45259
|
var _tuple, _tuple$1, max, min, ok, ok1, p, rest, s;
|
|
45115
45260
|
min = 0;
|
|
@@ -47130,7 +47275,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
47130
47275
|
ptrType$5.methods = [{prop: "init", name: "init", pkg: "regexp/syntax", typ: $funcType([], [], false)}, {prop: "compile", name: "compile", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [frag], false)}, {prop: "inst", name: "inst", pkg: "regexp/syntax", typ: $funcType([InstOp], [frag], false)}, {prop: "nop", name: "nop", pkg: "regexp/syntax", typ: $funcType([], [frag], false)}, {prop: "fail", name: "fail", pkg: "regexp/syntax", typ: $funcType([], [frag], false)}, {prop: "cap", name: "cap", pkg: "regexp/syntax", typ: $funcType([$Uint32], [frag], false)}, {prop: "cat", name: "cat", pkg: "regexp/syntax", typ: $funcType([frag, frag], [frag], false)}, {prop: "alt", name: "alt", pkg: "regexp/syntax", typ: $funcType([frag, frag], [frag], false)}, {prop: "quest", name: "quest", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "star", name: "star", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "plus", name: "plus", pkg: "regexp/syntax", typ: $funcType([frag, $Bool], [frag], false)}, {prop: "empty", name: "empty", pkg: "regexp/syntax", typ: $funcType([EmptyOp], [frag], false)}, {prop: "rune", name: "rune", pkg: "regexp/syntax", typ: $funcType([sliceType, Flags], [frag], false)}];
|
|
47131
47276
|
ptrType$6.methods = [{prop: "Error", name: "Error", pkg: "", typ: $funcType([], [$String], false)}];
|
|
47132
47277
|
ErrorCode.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
47133
|
-
ptrType$7.methods = [{prop: "newRegexp", name: "newRegexp", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "reuse", name: "reuse", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "push", name: "push", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "maybeConcat", name: "maybeConcat", pkg: "regexp/syntax", typ: $funcType([$Int32, Flags], [$Bool], false)}, {prop: "literal", name: "literal", pkg: "regexp/syntax", typ: $funcType([$Int32], [], false)}, {prop: "op", name: "op", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "repeat", name: "repeat", pkg: "regexp/syntax", typ: $funcType([Op, $Int, $Int, $String, $String, $String], [$String, $error], false)}, {prop: "concat", name: "concat", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "alternate", name: "alternate", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "collapse", name: "collapse", pkg: "regexp/syntax", typ: $funcType([sliceType$5, Op], [ptrType$1], false)}, {prop: "factor", name: "factor", pkg: "regexp/syntax", typ: $funcType([sliceType$5], [sliceType$5], false)}, {prop: "leadingString", name: "leadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [sliceType, Flags], false)}, {prop: "removeLeadingString", name: "removeLeadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Int], [ptrType$1], false)}, {prop: "leadingRegexp", name: "leadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "removeLeadingRegexp", name: "removeLeadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [ptrType$1], false)}, {prop: "parseRepeat", name: "parseRepeat", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $Int, $String, $Bool], false)}, {prop: "parsePerlFlags", name: "parsePerlFlags", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}, {prop: "parseInt", name: "parseInt", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $String, $Bool], false)}, {prop: "parseVerticalBar", name: "parseVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "swapVerticalBar", name: "swapVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$Bool], false)}, {prop: "parseRightParen", name: "parseRightParen", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "parseEscape", name: "parseEscape", pkg: "regexp/syntax", typ: $funcType([$String], [$Int32, $String, $error], false)}, {prop: "parseClassChar", name: "parseClassChar", pkg: "regexp/syntax", typ: $funcType([$String, $String], [$Int32, $String, $error], false)}, {prop: "parsePerlClassEscape", name: "parsePerlClassEscape", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String], false)}, {prop: "parseNamedClass", name: "parseNamedClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "appendGroup", name: "appendGroup", pkg: "regexp/syntax", typ: $funcType([sliceType, charGroup], [sliceType], false)}, {prop: "parseUnicodeClass", name: "parseUnicodeClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "parseClass", name: "parseClass", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}];
|
|
47278
|
+
ptrType$7.methods = [{prop: "newRegexp", name: "newRegexp", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "reuse", name: "reuse", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "checkHeight", name: "checkHeight", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [], false)}, {prop: "calcHeight", name: "calcHeight", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [$Int], false)}, {prop: "push", name: "push", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "maybeConcat", name: "maybeConcat", pkg: "regexp/syntax", typ: $funcType([$Int32, Flags], [$Bool], false)}, {prop: "literal", name: "literal", pkg: "regexp/syntax", typ: $funcType([$Int32], [], false)}, {prop: "op", name: "op", pkg: "regexp/syntax", typ: $funcType([Op], [ptrType$1], false)}, {prop: "repeat", name: "repeat", pkg: "regexp/syntax", typ: $funcType([Op, $Int, $Int, $String, $String, $String], [$String, $error], false)}, {prop: "concat", name: "concat", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "alternate", name: "alternate", pkg: "regexp/syntax", typ: $funcType([], [ptrType$1], false)}, {prop: "collapse", name: "collapse", pkg: "regexp/syntax", typ: $funcType([sliceType$5, Op], [ptrType$1], false)}, {prop: "factor", name: "factor", pkg: "regexp/syntax", typ: $funcType([sliceType$5], [sliceType$5], false)}, {prop: "leadingString", name: "leadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [sliceType, Flags], false)}, {prop: "removeLeadingString", name: "removeLeadingString", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Int], [ptrType$1], false)}, {prop: "leadingRegexp", name: "leadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1], [ptrType$1], false)}, {prop: "removeLeadingRegexp", name: "removeLeadingRegexp", pkg: "regexp/syntax", typ: $funcType([ptrType$1, $Bool], [ptrType$1], false)}, {prop: "parseRepeat", name: "parseRepeat", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $Int, $String, $Bool], false)}, {prop: "parsePerlFlags", name: "parsePerlFlags", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}, {prop: "parseInt", name: "parseInt", pkg: "regexp/syntax", typ: $funcType([$String], [$Int, $String, $Bool], false)}, {prop: "parseVerticalBar", name: "parseVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "swapVerticalBar", name: "swapVerticalBar", pkg: "regexp/syntax", typ: $funcType([], [$Bool], false)}, {prop: "parseRightParen", name: "parseRightParen", pkg: "regexp/syntax", typ: $funcType([], [$error], false)}, {prop: "parseEscape", name: "parseEscape", pkg: "regexp/syntax", typ: $funcType([$String], [$Int32, $String, $error], false)}, {prop: "parseClassChar", name: "parseClassChar", pkg: "regexp/syntax", typ: $funcType([$String, $String], [$Int32, $String, $error], false)}, {prop: "parsePerlClassEscape", name: "parsePerlClassEscape", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String], false)}, {prop: "parseNamedClass", name: "parseNamedClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "appendGroup", name: "appendGroup", pkg: "regexp/syntax", typ: $funcType([sliceType, charGroup], [sliceType], false)}, {prop: "parseUnicodeClass", name: "parseUnicodeClass", pkg: "regexp/syntax", typ: $funcType([$String, sliceType], [sliceType, $String, $error], false)}, {prop: "parseClass", name: "parseClass", pkg: "regexp/syntax", typ: $funcType([$String], [$String, $error], false)}];
|
|
47134
47279
|
ranges.methods = [{prop: "Less", name: "Less", pkg: "", typ: $funcType([$Int, $Int], [$Bool], false)}, {prop: "Len", name: "Len", pkg: "", typ: $funcType([], [$Int], false)}, {prop: "Swap", name: "Swap", pkg: "", typ: $funcType([$Int, $Int], [], false)}];
|
|
47135
47280
|
ptrType.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}, {prop: "skipNop", name: "skipNop", pkg: "regexp/syntax", typ: $funcType([$Uint32], [ptrType$8], false)}, {prop: "Prefix", name: "Prefix", pkg: "", typ: $funcType([], [$String, $Bool], false)}, {prop: "StartCond", name: "StartCond", pkg: "", typ: $funcType([], [EmptyOp], false)}];
|
|
47136
47281
|
InstOp.methods = [{prop: "String", name: "String", pkg: "", typ: $funcType([], [$String], false)}];
|
|
@@ -47141,7 +47286,7 @@ $packages["regexp/syntax"] = (function() {
|
|
|
47141
47286
|
frag.init("regexp/syntax", [{prop: "i", name: "i", embedded: false, exported: false, typ: $Uint32, tag: ""}, {prop: "out", name: "out", embedded: false, exported: false, typ: patchList, tag: ""}]);
|
|
47142
47287
|
compiler.init("regexp/syntax", [{prop: "p", name: "p", embedded: false, exported: false, typ: ptrType, tag: ""}]);
|
|
47143
47288
|
Error.init("", [{prop: "Code", name: "Code", embedded: false, exported: true, typ: ErrorCode, tag: ""}, {prop: "Expr", name: "Expr", embedded: false, exported: true, typ: $String, tag: ""}]);
|
|
47144
|
-
parser.init("regexp/syntax", [{prop: "flags", name: "flags", embedded: false, exported: false, typ: Flags, tag: ""}, {prop: "stack", name: "stack", embedded: false, exported: false, typ: sliceType$5, tag: ""}, {prop: "free", name: "free", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "numCap", name: "numCap", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "wholeRegexp", name: "wholeRegexp", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tmpClass", name: "tmpClass", embedded: false, exported: false, typ: sliceType, tag: ""}]);
|
|
47289
|
+
parser.init("regexp/syntax", [{prop: "flags", name: "flags", embedded: false, exported: false, typ: Flags, tag: ""}, {prop: "stack", name: "stack", embedded: false, exported: false, typ: sliceType$5, tag: ""}, {prop: "free", name: "free", embedded: false, exported: false, typ: ptrType$1, tag: ""}, {prop: "numCap", name: "numCap", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "wholeRegexp", name: "wholeRegexp", embedded: false, exported: false, typ: $String, tag: ""}, {prop: "tmpClass", name: "tmpClass", embedded: false, exported: false, typ: sliceType, tag: ""}, {prop: "numRegexp", name: "numRegexp", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "height", name: "height", embedded: false, exported: false, typ: mapType, tag: ""}]);
|
|
47145
47290
|
charGroup.init("regexp/syntax", [{prop: "sign", name: "sign", embedded: false, exported: false, typ: $Int, tag: ""}, {prop: "class$1", name: "class", embedded: false, exported: false, typ: sliceType, tag: ""}]);
|
|
47146
47291
|
ranges.init("regexp/syntax", [{prop: "p", name: "p", embedded: false, exported: false, typ: ptrType$2, tag: ""}]);
|
|
47147
47292
|
Prog.init("", [{prop: "Inst", name: "Inst", embedded: false, exported: true, typ: sliceType$4, tag: ""}, {prop: "Start", name: "Start", embedded: false, exported: true, typ: $Int, tag: ""}, {prop: "NumCap", name: "NumCap", embedded: false, exported: true, typ: $Int, tag: ""}]);
|
|
@@ -72568,6 +72713,9 @@ $packages["crypto/elliptic"] = (function() {
|
|
|
72568
72713
|
var _r, _r$1, _r$2, _r$3, curve, x, y, y2, $s, $r;
|
|
72569
72714
|
/* */ $s = 0; var $f, $c = false; if (this !== undefined && this.$blk !== undefined) { $f = this; $c = true; _r = $f._r; _r$1 = $f._r$1; _r$2 = $f._r$2; _r$3 = $f._r$3; curve = $f.curve; x = $f.x; y = $f.y; y2 = $f.y2; $s = $f.$s; $r = $f.$r; } s: while (true) { switch ($s) { case 0:
|
|
72570
72715
|
curve = this;
|
|
72716
|
+
if (x.Sign() < 0 || x.Cmp(curve.P) >= 0 || y.Sign() < 0 || y.Cmp(curve.P) >= 0) {
|
|
72717
|
+
$s = -1; return false;
|
|
72718
|
+
}
|
|
72571
72719
|
_r = new big.Int.ptr(false, big.nat.nil).Mul(y, y); /* */ $s = 1; case 1: if($c) { $c = false; _r = _r.$blk(); } if (_r && _r.$blk !== undefined) { break s; }
|
|
72572
72720
|
y2 = _r;
|
|
72573
72721
|
_r$1 = y2.Mod(y2, curve.P); /* */ $s = 2; case 2: if($c) { $c = false; _r$1 = _r$1.$blk(); } if (_r$1 && _r$1.$blk !== undefined) { break s; }
|
|
@@ -73130,6 +73278,9 @@ $packages["crypto/elliptic"] = (function() {
|
|
|
73130
73278
|
p224Curve.ptr.prototype.IsOnCurve = function(bigX, bigY) {
|
|
73131
73279
|
var _tmp, _tmp$1, bigX, bigY, curve, i, i$1, tmp, x, x3, y;
|
|
73132
73280
|
curve = this;
|
|
73281
|
+
if (bigX.Sign() < 0 || bigX.Cmp(curve.CurveParams.P) >= 0 || bigY.Sign() < 0 || bigY.Cmp(curve.CurveParams.P) >= 0) {
|
|
73282
|
+
return false;
|
|
73283
|
+
}
|
|
73133
73284
|
_tmp = arrayType.zero();
|
|
73134
73285
|
_tmp$1 = arrayType.zero();
|
|
73135
73286
|
x = $clone(_tmp, p224FieldElement);
|
|
@@ -108478,7 +108629,7 @@ $packages["net/http/internal"] = (function() {
|
|
|
108478
108629
|
$r = io.$init(); /* */ $s = 5; case 5: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
108479
108630
|
$r = strings.$init(); /* */ $s = 6; case 6: if($c) { $c = false; $r = $r.$blk(); } if ($r && $r.$blk !== undefined) { break s; }
|
|
108480
108631
|
$pkg.ErrLineTooLong = errors.New("header line too long");
|
|
108481
|
-
$pkg.LocalhostKey = (new sliceType($stringToBytes(testingKey("-----BEGIN RSA TESTING KEY-----\
|
|
108632
|
+
$pkg.LocalhostKey = (new sliceType($stringToBytes(testingKey("-----BEGIN RSA TESTING KEY-----\nMIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDoZtrm0dXV0Aqi\n4Bpc7f95sNRTiu/AJSD8I1onY9PnEsPg3VVxvytsVJbYdcqr4w99V3AgpH/UNzMS\ngAZ/8lZBNbsSDOVesJ3euVqMRfYPvd9pYl6QPRRpSDPm+2tNdn3QFAvta9EgJ3sW\nURnoU85w+W6aLI2bNSq3AaE771p3VbkGolpEjo9h+i42TBHo1rhPNKPkGupR8/QX\nAOLMpInRdeaHyDwb2a3DE5I3dG7VAVzrVfJ6W6Q84YoFX+rpEE2SVM17SAjy6xQy\nVjKgLvK2mk0xbtfa+h0B6VK7bmODHZqeP18NVm6HsBcXn7iclLgAC3SfWU1jucZK\nx1lqzw9tAgMBAAECggEABWzxS1Y2wckblnXY57Z+sl6YdmLV+gxj2r8Qib7g4ZIk\nlIlWR1OJNfw7kU4eryib4fc6nOh6O4AWZyYqAK6tqNQSS/eVG0LQTLTTEldHyVJL\ndvBe+MsUQOj4nTndZW+QvFzbcm2D8lY5n2nBSxU5ypVoKZ1EqQzytFcLZpTN7d89\nEPj0qDyrV4NZlWAwL1AygCwnlwhMQjXEalVF1ylXwU3QzyZ/6MgvF6d3SSUlh+sq\nXefuyigXw484cQQgbzopv6niMOmGP3of+yV4JQqUSb3IDmmT68XjGd2Dkxl4iPki\n6ZwXf3CCi+c+i/zVEcufgZ3SLf8D99kUGE7v7fZ6AQKBgQD1ZX3RAla9hIhxCf+O\n3D+I1j2LMrdjAh0ZKKqwMR4JnHX3mjQI6LwqIctPWTU8wYFECSh9klEclSdCa64s\nuI/GNpcqPXejd0cAAdqHEEeG5sHMDt0oFSurL4lyud0GtZvwlzLuwEweuDtvT9cJ\nWfvl86uyO36IW8JdvUprYDctrQKBgQDycZ697qutBieZlGkHpnYWUAeImVA878sJ\nw44NuXHvMxBPz+lbJGAg8Cn8fcxNAPqHIraK+kx3po8cZGQywKHUWsxi23ozHoxo\n+bGqeQb9U661TnfdDspIXia+xilZt3mm5BPzOUuRqlh4Y9SOBpSWRmEhyw76w4ZP\nOPxjWYAgwQKBgA/FehSYxeJgRjSdo+MWnK66tjHgDJE8bYpUZsP0JC4R9DL5oiaA\nbrd2fI6Y+SbyeNBallObt8LSgzdtnEAbjIH8uDJqyOmknNePRvAvR6mP4xyuR+Bv\nm+Lgp0DMWTw5J9CKpydZDItc49T/mJ5tPhdFVd+am0NAQnmr1MCZ6nHxAoGABS3Y\nLkaC9FdFUUqSU8+Chkd/YbOkuyiENdkvl6t2e52jo5DVc1T7mLiIrRQi4SI8N9bN\n/3oJWCT+uaSLX2ouCtNFunblzWHBrhxnZzTeqVq4SLc8aESAnbslKL4i8/+vYZlN\ns8xtiNcSvL+lMsOBORSXzpj/4Ot8WwTkn1qyGgECgYBKNTypzAHeLE6yVadFp3nQ\nCkq9yzvP/ib05rvgbvrne00YeOxqJ9gtTrzgh7koqJyX1L4NwdkEza4ilDWpucn0\nxiUZS4SoaJq6ZvcBYS62Yr1t8n09iG47YL8ibgtmH3L+svaotvpVxVK+d7BLevA/\nZboOWVe3icTy64BT3OQhmg==\n-----END RSA TESTING KEY-----"))));
|
|
108482
108633
|
/* */ } return; } if ($f === undefined) { $f = { $blk: $init }; } $f.$s = $s; $f.$r = $r; return $f;
|
|
108483
108634
|
};
|
|
108484
108635
|
$pkg.$init = $init;
|
|
@@ -136627,8 +136778,8 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136627
136778
|
/* */ if ($assertType(_ref, sliceType$9, true)[1]) { $s = 10; continue; }
|
|
136628
136779
|
/* */ $s = 11; continue;
|
|
136629
136780
|
/* if ($assertType(_ref, sliceType, true)[1]) { */ case 1:
|
|
136630
|
-
s$
|
|
136631
|
-
h = ($pointerOfStructConversion(((s$
|
|
136781
|
+
s$6[0] = _ref.$val;
|
|
136782
|
+
h = ($pointerOfStructConversion(((s$6.$ptr || (s$6.$ptr = new ptrType$1(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$6)))), ptrType));
|
|
136632
136783
|
$s = -1; return ((h)).$get();
|
|
136633
136784
|
/* } else if ($assertType(_ref, sliceType$1, true)[1]) { */ case 2:
|
|
136634
136785
|
s$7[0] = _ref.$val;
|
|
@@ -136637,14 +136788,14 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136637
136788
|
h$1.Cap = $imul(h$1.Cap, (2));
|
|
136638
136789
|
$s = -1; return ((h$1)).$get();
|
|
136639
136790
|
/* } else if ($assertType(_ref, sliceType$2, true)[1]) { */ case 3:
|
|
136640
|
-
s$
|
|
136641
|
-
h$2 = ($pointerOfStructConversion(((s$
|
|
136791
|
+
s$8[0] = _ref.$val;
|
|
136792
|
+
h$2 = ($pointerOfStructConversion(((s$8.$ptr || (s$8.$ptr = new ptrType$3(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$8)))), ptrType));
|
|
136642
136793
|
h$2.Len = $imul(h$2.Len, (4));
|
|
136643
136794
|
h$2.Cap = $imul(h$2.Cap, (4));
|
|
136644
136795
|
$s = -1; return ((h$2)).$get();
|
|
136645
136796
|
/* } else if ($assertType(_ref, sliceType$3, true)[1]) { */ case 4:
|
|
136646
|
-
s$
|
|
136647
|
-
h$3 = ($pointerOfStructConversion(((s$
|
|
136797
|
+
s$1[0] = _ref.$val;
|
|
136798
|
+
h$3 = ($pointerOfStructConversion(((s$1.$ptr || (s$1.$ptr = new ptrType$4(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$1)))), ptrType));
|
|
136648
136799
|
h$3.Len = $imul(h$3.Len, (8));
|
|
136649
136800
|
h$3.Cap = $imul(h$3.Cap, (8));
|
|
136650
136801
|
$s = -1; return ((h$3)).$get();
|
|
@@ -136652,32 +136803,32 @@ $packages["github.com/nuberu/webgl"] = (function() {
|
|
|
136652
136803
|
s$10 = _ref.$val;
|
|
136653
136804
|
$s = -1; return s$10;
|
|
136654
136805
|
/* } else if ($assertType(_ref, sliceType$5, true)[1]) { */ case 6:
|
|
136655
|
-
s$
|
|
136656
|
-
h$4 = ($pointerOfStructConversion(((s$
|
|
136806
|
+
s$2[0] = _ref.$val;
|
|
136807
|
+
h$4 = ($pointerOfStructConversion(((s$2.$ptr || (s$2.$ptr = new ptrType$5(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$2)))), ptrType));
|
|
136657
136808
|
h$4.Len = $imul(h$4.Len, (2));
|
|
136658
136809
|
h$4.Cap = $imul(h$4.Cap, (2));
|
|
136659
136810
|
$s = -1; return ((h$4)).$get();
|
|
136660
136811
|
/* } else if ($assertType(_ref, sliceType$6, true)[1]) { */ case 7:
|
|
136661
|
-
s$
|
|
136662
|
-
h$5 = ($pointerOfStructConversion(((s$
|
|
136812
|
+
s$9[0] = _ref.$val;
|
|
136813
|
+
h$5 = ($pointerOfStructConversion(((s$9.$ptr || (s$9.$ptr = new ptrType$6(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$9)))), ptrType));
|
|
136663
136814
|
h$5.Len = $imul(h$5.Len, (4));
|
|
136664
136815
|
h$5.Cap = $imul(h$5.Cap, (4));
|
|
136665
136816
|
$s = -1; return ((h$5)).$get();
|
|
136666
136817
|
/* } else if ($assertType(_ref, sliceType$7, true)[1]) { */ case 8:
|
|
136667
|
-
s$
|
|
136668
|
-
h$6 = ($pointerOfStructConversion(((s$
|
|
136818
|
+
s$3[0] = _ref.$val;
|
|
136819
|
+
h$6 = ($pointerOfStructConversion(((s$3.$ptr || (s$3.$ptr = new ptrType$7(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$3)))), ptrType));
|
|
136669
136820
|
h$6.Len = $imul(h$6.Len, (8));
|
|
136670
136821
|
h$6.Cap = $imul(h$6.Cap, (8));
|
|
136671
136822
|
$s = -1; return ((h$6)).$get();
|
|
136672
136823
|
/* } else if ($assertType(_ref, sliceType$8, true)[1]) { */ case 9:
|
|
136673
|
-
s$
|
|
136674
|
-
h$7 = ($pointerOfStructConversion(((s$
|
|
136824
|
+
s$4[0] = _ref.$val;
|
|
136825
|
+
h$7 = ($pointerOfStructConversion(((s$4.$ptr || (s$4.$ptr = new ptrType$8(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$4)))), ptrType));
|
|
136675
136826
|
h$7.Len = $imul(h$7.Len, (4));
|
|
136676
136827
|
h$7.Cap = $imul(h$7.Cap, (4));
|
|
136677
136828
|
$s = -1; return ((h$7)).$get();
|
|
136678
136829
|
/* } else if ($assertType(_ref, sliceType$9, true)[1]) { */ case 10:
|
|
136679
|
-
s$
|
|
136680
|
-
h$8 = ($pointerOfStructConversion(((s$
|
|
136830
|
+
s$5[0] = _ref.$val;
|
|
136831
|
+
h$8 = ($pointerOfStructConversion(((s$5.$ptr || (s$5.$ptr = new ptrType$9(function() { return this.$target[0]; }, function($v) { this.$target[0] = $v; }, s$5)))), ptrType));
|
|
136681
136832
|
h$8.Len = $imul(h$8.Len, (8));
|
|
136682
136833
|
h$8.Cap = $imul(h$8.Cap, (8));
|
|
136683
136834
|
$s = -1; return ((h$8)).$get();
|