kaitai-struct-compiler 0.10.0-SNAPSHOT20220617.120542.c053fb7d → 0.10.0-SNAPSHOT20220706.122302.50f80d7e

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.
@@ -1864,7 +1864,7 @@ function $f_Lio_kaitai_struct_translators_CommonLiterals__strLiteralAsciiChar__C
1864
1864
  } else {
1865
1865
  var x = $m_s_None$();
1866
1866
  if ((x === x1)) {
1867
- return (((code >= 32) && (code < 128)) ? $as_T($g.String.fromCharCode(code)) : $thiz.strLiteralGenericCC__C__T(code))
1867
+ return (((code >= 32) && (code < 127)) ? $as_T($g.String.fromCharCode(code)) : $thiz.strLiteralGenericCC__C__T(code))
1868
1868
  } else {
1869
1869
  throw new $c_s_MatchError().init___O(x1)
1870
1870
  }
@@ -2192,30 +2192,6 @@ function $isArrayOf_ju_Formattable(obj, depth) {
2192
2192
  function $asArrayOf_ju_Formattable(obj, depth) {
2193
2193
  return (($isArrayOf_ju_Formattable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.util.Formattable;", depth))
2194
2194
  }
2195
- function $is_ju_Map(obj) {
2196
- return (!(!((obj && obj.$classData) && obj.$classData.ancestors.ju_Map)))
2197
- }
2198
- function $as_ju_Map(obj) {
2199
- return (($is_ju_Map(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.util.Map"))
2200
- }
2201
- function $isArrayOf_ju_Map(obj, depth) {
2202
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.ju_Map)))
2203
- }
2204
- function $asArrayOf_ju_Map(obj, depth) {
2205
- return (($isArrayOf_ju_Map(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.util.Map;", depth))
2206
- }
2207
- function $is_ju_Map$Entry(obj) {
2208
- return (!(!((obj && obj.$classData) && obj.$classData.ancestors.ju_Map$Entry)))
2209
- }
2210
- function $as_ju_Map$Entry(obj) {
2211
- return (($is_ju_Map$Entry(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.util.Map$Entry"))
2212
- }
2213
- function $isArrayOf_ju_Map$Entry(obj, depth) {
2214
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.ju_Map$Entry)))
2215
- }
2216
- function $asArrayOf_ju_Map$Entry(obj, depth) {
2217
- return (($isArrayOf_ju_Map$Entry(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.util.Map$Entry;", depth))
2218
- }
2219
2195
  function $f_s_Proxy__equals__O__Z($thiz, that) {
2220
2196
  return ((that !== null) && (((that === $thiz) || (that === $thiz.self__O())) || $objectEquals(that, $thiz.self__O())))
2221
2197
  }
@@ -2352,17 +2328,6 @@ function $isArrayOf_sc_GenTraversableOnce(obj, depth) {
2352
2328
  function $asArrayOf_sc_GenTraversableOnce(obj, depth) {
2353
2329
  return (($isArrayOf_sc_GenTraversableOnce(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.GenTraversableOnce;", depth))
2354
2330
  }
2355
- function $f_sc_convert_LowPriorityWrapAsJava__mapAsJavaMap__sc_Map__ju_Map($thiz, m) {
2356
- if ((m === null)) {
2357
- return null
2358
- } else if (((m instanceof $c_sc_convert_Wrappers$JMapWrapper) && ($as_sc_convert_Wrappers$JMapWrapper(m).scala$collection$convert$Wrappers$JMapWrapper$$$outer__sc_convert_Wrappers() === $m_sc_convert_Wrappers$()))) {
2359
- var x2 = $as_sc_convert_Wrappers$JMapWrapper(m);
2360
- var wrapped = x2.underlying__ju_Map();
2361
- return wrapped
2362
- } else {
2363
- return new $c_sc_convert_Wrappers$MapWrapper().init___sc_convert_Wrappers__sc_Map($m_sc_convert_Wrappers$(), m)
2364
- }
2365
- }
2366
2331
  function $f_sci_VectorPointer__copyOf__AO__AO($thiz, a) {
2367
2332
  var copy = $newArrayObject($d_O.getArrayOf(), [a.u.length]);
2368
2333
  $systemArraycopy(a, 0, copy, 0, a.u.length);
@@ -4430,9 +4395,9 @@ function $h_Lio_kaitai_struct_Version$() {
4430
4395
  $h_Lio_kaitai_struct_Version$.prototype = $c_Lio_kaitai_struct_Version$.prototype;
4431
4396
  $c_Lio_kaitai_struct_Version$.prototype.init___ = (function() {
4432
4397
  this.name$1 = "kaitai-struct-compiler-js";
4433
- this.version$1 = "0.10-SNAPSHOT20220617.120542.c053fb7d";
4434
- this.gitCommit$1 = "c053fb7d";
4435
- this.gitTime$1 = "2022-06-17T12:05:42+00:00";
4398
+ this.version$1 = "0.10-SNAPSHOT20220706.122302.50f80d7e";
4399
+ this.gitCommit$1 = "50f80d7e";
4400
+ this.gitTime$1 = "2022-07-06T12:23:02+00:00";
4436
4401
  return this
4437
4402
  });
4438
4403
  var $d_Lio_kaitai_struct_Version$ = new $TypeData().initClass({
@@ -7883,9 +7848,28 @@ $c_Lio_kaitai_struct_format_JavaScriptKSYParser$.prototype.yamlToSpecs__O__Lio_k
7883
7848
  var firstSpec = this$1.fromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_ClassSpec(yamlScala, fileName, $m_sci_Nil$(), $m_Lio_kaitai_struct_format_MetaSpec$().OPAQUE$1);
7884
7849
  var specs = new $c_Lio_kaitai_struct_format_JavaScriptClassSpecs().init___Lio_kaitai_struct_JavaScriptImporter__Lio_kaitai_struct_format_ClassSpec(importer, firstSpec);
7885
7850
  return $m_Lio_kaitai_struct_Main$().importAndPrecompile__Lio_kaitai_struct_format_ClassSpecs__Lio_kaitai_struct_RuntimeConfig__s_concurrent_Future(specs, config).map__F1__s_concurrent_ExecutionContext__s_concurrent_Future(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, specs$1) {
7886
- return (function(x$1$2) {
7887
- $as_sc_Iterable(x$1$2);
7888
- return specs$1
7851
+ return (function(problems$2) {
7852
+ var problems = $as_sc_Iterable(problems$2);
7853
+ var x1 = problems.find__F1__s_Option(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this$1) {
7854
+ return (function(p$2) {
7855
+ var p = $as_Lio_kaitai_struct_problems_CompilationProblem(p$2);
7856
+ var x = p.severity__Lio_kaitai_struct_problems_ProblemSeverity();
7857
+ var x$2 = $m_Lio_kaitai_struct_problems_ProblemSeverity$Warning$();
7858
+ return (!((x !== null) && (x === x$2)))
7859
+ })
7860
+ })($this)));
7861
+ if ((x1 instanceof $c_s_Some)) {
7862
+ var x2 = $as_s_Some(x1);
7863
+ var problem = $as_Lio_kaitai_struct_problems_CompilationProblem(x2.value$2);
7864
+ throw new $c_Lio_kaitai_struct_problems_CompilationProblemException().init___Lio_kaitai_struct_problems_CompilationProblem(problem)
7865
+ } else {
7866
+ var x$1 = $m_s_None$();
7867
+ if ((x$1 === x1)) {
7868
+ return specs$1
7869
+ } else {
7870
+ throw new $c_s_MatchError().init___O(x1)
7871
+ }
7872
+ }
7889
7873
  })
7890
7874
  })(this, specs)), $m_s_concurrent_ExecutionContext$Implicits$().global__s_concurrent_ExecutionContext())
7891
7875
  });
@@ -15227,18 +15211,6 @@ function $m_ju_Arrays$() {
15227
15211
  };
15228
15212
  return $n_ju_Arrays$
15229
15213
  }
15230
- function $is_ju_Collection(obj) {
15231
- return (!(!((obj && obj.$classData) && obj.$classData.ancestors.ju_Collection)))
15232
- }
15233
- function $as_ju_Collection(obj) {
15234
- return (($is_ju_Collection(obj) || (obj === null)) ? obj : $throwClassCastException(obj, "java.util.Collection"))
15235
- }
15236
- function $isArrayOf_ju_Collection(obj, depth) {
15237
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.ju_Collection)))
15238
- }
15239
- function $asArrayOf_ju_Collection(obj, depth) {
15240
- return (($isArrayOf_ju_Collection(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.util.Collection;", depth))
15241
- }
15242
15214
  /** @constructor */
15243
15215
  function $c_ju_Formatter$() {
15244
15216
  $c_O.call(this);
@@ -23802,7 +23774,7 @@ $c_Lio_kaitai_struct_problems_CompilationProblem.prototype.localizedInType__Lio_
23802
23774
  }
23803
23775
  });
23804
23776
  $c_Lio_kaitai_struct_problems_CompilationProblem.prototype.message__T = (function() {
23805
- return ((((this.coords__Lio_kaitai_struct_problems_ProblemCoords().message__T() + ": ") + this.severity__Lio_kaitai_struct_problems_ProblemSeverity().message__T()) + ": ") + this.text__T())
23777
+ return (((((this.coords__Lio_kaitai_struct_problems_ProblemCoords().message__T() + ":\n\t") + this.severity__Lio_kaitai_struct_problems_ProblemSeverity().message__T()) + ": ") + this.text__T()) + "\n")
23806
23778
  });
23807
23779
  function $as_Lio_kaitai_struct_problems_CompilationProblem(obj) {
23808
23780
  return (((obj instanceof $c_Lio_kaitai_struct_problems_CompilationProblem) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.problems.CompilationProblem"))
@@ -24498,73 +24470,6 @@ function $asArrayOf_jl_Throwable(obj, depth) {
24498
24470
  return (($isArrayOf_jl_Throwable(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Ljava.lang.Throwable;", depth))
24499
24471
  }
24500
24472
  /** @constructor */
24501
- function $c_ju_AbstractMap() {
24502
- $c_O.call(this)
24503
- }
24504
- $c_ju_AbstractMap.prototype = new $h_O();
24505
- $c_ju_AbstractMap.prototype.constructor = $c_ju_AbstractMap;
24506
- /** @constructor */
24507
- function $h_ju_AbstractMap() {
24508
- /*<skip>*/
24509
- }
24510
- $h_ju_AbstractMap.prototype = $c_ju_AbstractMap.prototype;
24511
- $c_ju_AbstractMap.prototype.equals__O__Z = (function(o) {
24512
- if ((o === this)) {
24513
- return true
24514
- } else if ($is_ju_Map(o)) {
24515
- var x2 = $as_ju_Map(o);
24516
- if ((this.size__I() === x2.size__I())) {
24517
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2().init___sc_convert_Wrappers$MapWrapper(this);
24518
- var __self$1 = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(__self);
24519
- inlinereturn$8: {
24520
- while (__self$1.ui$1.hasNext__Z()) {
24521
- var arg1 = __self$1.next__ju_Map$Entry();
24522
- var a = x2.get__O__O(arg1.k$1$1);
24523
- var b = arg1.v$1$1;
24524
- if ((!((a === null) ? (b === null) : $objectEquals(a, b)))) {
24525
- var jsx$1 = true;
24526
- break inlinereturn$8
24527
- }
24528
- };
24529
- var jsx$1 = false
24530
- };
24531
- return (!jsx$1)
24532
- } else {
24533
- return false
24534
- }
24535
- } else {
24536
- return false
24537
- }
24538
- });
24539
- $c_ju_AbstractMap.prototype.toString__T = (function() {
24540
- var result = "{";
24541
- var first = true;
24542
- var this$1 = new $c_sc_convert_Wrappers$MapWrapper$$anon$2().init___sc_convert_Wrappers$MapWrapper(this);
24543
- var iter = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(this$1);
24544
- while (iter.ui$1.hasNext__Z()) {
24545
- var entry = iter.next__ju_Map$Entry();
24546
- if (first) {
24547
- first = false
24548
- } else {
24549
- result = (result + ", ")
24550
- };
24551
- result = (((("" + result) + entry.k$1$1) + "=") + entry.v$1$1)
24552
- };
24553
- return (result + "}")
24554
- });
24555
- $c_ju_AbstractMap.prototype.hashCode__I = (function() {
24556
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2().init___sc_convert_Wrappers$MapWrapper(this);
24557
- var __self$1 = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(__self);
24558
- var result = 0;
24559
- while (__self$1.ui$1.hasNext__Z()) {
24560
- var arg1 = result;
24561
- var arg2 = __self$1.next__ju_Map$Entry();
24562
- var prev = $uI(arg1);
24563
- result = ((arg2.hashCode__I() + prev) | 0)
24564
- };
24565
- return $uI(result)
24566
- });
24567
- /** @constructor */
24568
24473
  function $c_ju_regex_Matcher() {
24569
24474
  $c_O.call(this);
24570
24475
  this.pattern0$1 = null;
@@ -25132,6 +25037,15 @@ function $f_sc_Iterator__foreach__F1__V($thiz, f) {
25132
25037
  f.apply__O__O($thiz.next__O())
25133
25038
  }
25134
25039
  }
25040
+ function $f_sc_Iterator__find__F1__s_Option($thiz, p) {
25041
+ while ($thiz.hasNext__Z()) {
25042
+ var a = $thiz.next__O();
25043
+ if ($uZ(p.apply__O__O(a))) {
25044
+ return new $c_s_Some().init___O(a)
25045
+ }
25046
+ };
25047
+ return $m_s_None$()
25048
+ }
25135
25049
  function $f_sc_Iterator__toStream__sci_Stream($thiz) {
25136
25050
  if ($thiz.hasNext__Z()) {
25137
25051
  var hd = $thiz.next__O();
@@ -25399,91 +25313,6 @@ var $d_sc_TraversableOnce$reducer$1$ = new $TypeData().initClass({
25399
25313
  });
25400
25314
  $c_sc_TraversableOnce$reducer$1$.prototype.$classData = $d_sc_TraversableOnce$reducer$1$;
25401
25315
  /** @constructor */
25402
- function $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3() {
25403
- $c_O.call(this);
25404
- this.ui$1 = null;
25405
- this.prev$1 = null;
25406
- this.$$outer$1 = null
25407
- }
25408
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype = new $h_O();
25409
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype.constructor = $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3;
25410
- /** @constructor */
25411
- function $h_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3() {
25412
- /*<skip>*/
25413
- }
25414
- $h_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype = $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype;
25415
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype.next__ju_Map$Entry = (function() {
25416
- var x1 = $as_T2(this.ui$1.next__O());
25417
- if ((x1 === null)) {
25418
- throw new $c_s_MatchError().init___O(x1)
25419
- };
25420
- var k = x1.$$und1__O();
25421
- var v = x1.$$und2__O();
25422
- this.prev$1 = new $c_s_Some().init___O(k);
25423
- return new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4().init___sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3__O__O(this, k, v)
25424
- });
25425
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype.init___sc_convert_Wrappers$MapWrapper$$anon$2 = (function($$outer) {
25426
- if (($$outer === null)) {
25427
- throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null)
25428
- } else {
25429
- this.$$outer$1 = $$outer
25430
- };
25431
- this.ui$1 = $$outer.$$outer$3.scala$collection$convert$Wrappers$MapWrapper$$underlying$f.iterator__sc_Iterator();
25432
- this.prev$1 = $m_s_None$();
25433
- return this
25434
- });
25435
- var $d_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3 = new $TypeData().initClass({
25436
- sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3: 0
25437
- }, false, "scala.collection.convert.Wrappers$MapWrapper$$anon$2$$anon$3", {
25438
- sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3: 1,
25439
- O: 1,
25440
- ju_Iterator: 1
25441
- });
25442
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3.prototype.$classData = $d_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3;
25443
- /** @constructor */
25444
- function $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4() {
25445
- $c_O.call(this);
25446
- this.$$outer$1 = null;
25447
- this.k$1$1 = null;
25448
- this.v$1$1 = null
25449
- }
25450
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype = new $h_O();
25451
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype.constructor = $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4;
25452
- /** @constructor */
25453
- function $h_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4() {
25454
- /*<skip>*/
25455
- }
25456
- $h_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype = $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype;
25457
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype.equals__O__Z = (function(other) {
25458
- if ($is_ju_Map$Entry(other)) {
25459
- var x2 = $as_ju_Map$Entry(other);
25460
- return ($m_sr_BoxesRunTime$().equals__O__O__Z(this.k$1$1, x2.k$1$1) && $m_sr_BoxesRunTime$().equals__O__O__Z(this.v$1$1, x2.v$1$1))
25461
- } else {
25462
- return false
25463
- }
25464
- });
25465
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype.hashCode__I = (function() {
25466
- return (((this.k$1$1 === null) ? 0 : $objectHashCode(this.k$1$1)) ^ ((this.v$1$1 === null) ? 0 : $objectHashCode(this.v$1$1)))
25467
- });
25468
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype.init___sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3__O__O = (function($$outer, k$1, v$1) {
25469
- if (($$outer === null)) {
25470
- throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null)
25471
- } else {
25472
- this.$$outer$1 = $$outer
25473
- };
25474
- this.k$1$1 = k$1;
25475
- this.v$1$1 = v$1;
25476
- return this
25477
- });
25478
- var $d_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4 = new $TypeData().initClass({
25479
- sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4: 0
25480
- }, false, "scala.collection.convert.Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4", {
25481
- sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4: 1,
25482
- O: 1,
25483
- ju_Map$Entry: 1
25484
- });
25485
- $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4.prototype.$classData = $d_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3$$anon$4;
25486
- /** @constructor */
25487
25316
  function $c_sc_package$WrappedCanBuildFrom() {
25488
25317
  /*<skip>*/
25489
25318
  }
@@ -27838,8 +27667,7 @@ $c_Lio_kaitai_struct_format_AttrSpec$.prototype.parseSwitch__p1__sci_Map__sci_Li
27838
27667
  })(this, path, metaDef, arg));
27839
27668
  var bf = $m_sci_Map$().ReusableCBF$4;
27840
27669
  var cases = $as_sci_Map($f_sc_TraversableLike__map__F1__scg_CanBuildFrom__O(_cases, f, bf));
27841
- var this$10 = $m_sc_JavaConversions$();
27842
- if ($f_sc_convert_LowPriorityWrapAsJava__mapAsJavaMap__sc_Map__ju_Map(this$10, cases).containsKey__O__Z($m_Lio_kaitai_struct_datatype_DataType$SwitchType$().ELSE$undCONST$1)) {
27670
+ if (cases.contains__O__Z($m_Lio_kaitai_struct_datatype_DataType$SwitchType$().ELSE$undCONST$1)) {
27843
27671
  var addCases = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
27844
27672
  } else {
27845
27673
  var x1 = new $c_T2().init___O__O(arg.size$1, arg.sizeEos$1);
@@ -27854,16 +27682,16 @@ $c_Lio_kaitai_struct_format_AttrSpec$.prototype.parseSwitch__p1__sci_Map__sci_Li
27854
27682
  var self$1 = $m_Lio_kaitai_struct_datatype_DataType$SwitchType$().ELSE$undCONST$1;
27855
27683
  var y = new $c_Lio_kaitai_struct_datatype_DataType$BytesLimitType().init___Lio_kaitai_struct_exprlang_Ast$expr__s_Option__Z__s_Option__s_Option(sizeValue, $m_s_None$(), false, $m_s_None$(), arg.process$1);
27856
27684
  var array$1 = [new $c_T2().init___O__O(self$1, y)];
27857
- var this$16 = new $c_scm_MapBuilder().init___sc_GenMap($m_sci_Map$EmptyMap$());
27685
+ var this$15 = new $c_scm_MapBuilder().init___sc_GenMap($m_sci_Map$EmptyMap$());
27858
27686
  var i$1 = 0;
27859
27687
  var len = $uI(array$1.length);
27860
27688
  while ((i$1 < len)) {
27861
27689
  var index$1 = i$1;
27862
27690
  var arg1 = array$1[index$1];
27863
- this$16.$$plus$eq__T2__scm_MapBuilder($as_T2(arg1));
27691
+ this$15.$$plus$eq__T2__scm_MapBuilder($as_T2(arg1));
27864
27692
  i$1 = ((1 + i$1) | 0)
27865
27693
  };
27866
- var addCases = $as_sci_Map(this$16.elems$1);
27694
+ var addCases = $as_sci_Map(this$15.elems$1);
27867
27695
  break matchEnd20
27868
27696
  }
27869
27697
  };
@@ -27874,16 +27702,16 @@ $c_Lio_kaitai_struct_format_AttrSpec$.prototype.parseSwitch__p1__sci_Map__sci_Li
27874
27702
  var self$2 = $m_Lio_kaitai_struct_datatype_DataType$SwitchType$().ELSE$undCONST$1;
27875
27703
  var y$1 = new $c_Lio_kaitai_struct_datatype_DataType$BytesEosType().init___s_Option__Z__s_Option__s_Option($m_s_None$(), false, $m_s_None$(), arg.process$1);
27876
27704
  var array$2 = [new $c_T2().init___O__O(self$2, y$1)];
27877
- var this$22 = new $c_scm_MapBuilder().init___sc_GenMap($m_sci_Map$EmptyMap$());
27705
+ var this$21 = new $c_scm_MapBuilder().init___sc_GenMap($m_sci_Map$EmptyMap$());
27878
27706
  var i$2 = 0;
27879
27707
  var len$1 = $uI(array$2.length);
27880
27708
  while ((i$2 < len$1)) {
27881
27709
  var index$2 = i$2;
27882
27710
  var arg1$1 = array$2[index$2];
27883
- this$22.$$plus$eq__T2__scm_MapBuilder($as_T2(arg1$1));
27711
+ this$21.$$plus$eq__T2__scm_MapBuilder($as_T2(arg1$1));
27884
27712
  i$2 = ((1 + i$2) | 0)
27885
27713
  };
27886
- var addCases = $as_sci_Map(this$22.elems$1);
27714
+ var addCases = $as_sci_Map(this$21.elems$1);
27887
27715
  break matchEnd20
27888
27716
  };
27889
27717
  var p7 = $as_s_Option(x1.$$und1$f);
@@ -28030,85 +27858,40 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.opaquePlaceholder__sci_List__Li
28030
27858
  placeholder.name$1 = typeName;
28031
27859
  return placeholder
28032
27860
  });
28033
- $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupSeqInstIds__sci_List__sci_Map__V = (function(seq, instances) {
28034
- var f = (function($this) {
28035
- return (function(attr$2) {
28036
- var attr = $as_Lio_kaitai_struct_format_AttrSpec(attr$2);
28037
- var x1 = attr.id$1;
28038
- if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
28039
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
28040
- var id = x2.name$2;
28041
- var xo = new $c_s_Some().init___O(new $c_T2().init___O__O(id, attr));
28042
- return xo.toList__sci_List()
28043
- } else {
28044
- var xo$1 = $m_s_None$();
28045
- return xo$1.toList__sci_List()
28046
- }
28047
- })
28048
- })(this);
28049
- var this$5 = $m_sci_List$();
28050
- var bf = this$5.ReusableCBFInstance$2;
28051
- if ((bf === $m_sci_List$().ReusableCBFInstance$2)) {
28052
- if ((seq === $m_sci_Nil$())) {
28053
- var jsx$1 = $m_sci_Nil$()
27861
+ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupMemberIds__sci_List__V = (function(attrs) {
27862
+ var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
27863
+ var these = attrs;
27864
+ while ((!these.isEmpty__Z())) {
27865
+ var arg1 = these.head__O();
27866
+ var attr = $as_Lio_kaitai_struct_format_MemberSpec(arg1);
27867
+ var x1 = attr.id__Lio_kaitai_struct_format_Identifier();
27868
+ if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
27869
+ var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
27870
+ var name = x2.name$2;
27871
+ var idOpt = new $c_s_Some().init___O(name)
27872
+ } else if ((x1 instanceof $c_Lio_kaitai_struct_format_InstanceIdentifier)) {
27873
+ var x3 = $as_Lio_kaitai_struct_format_InstanceIdentifier(x1);
27874
+ var name$2 = x3.name$2;
27875
+ var idOpt = new $c_s_Some().init___O(name$2)
28054
27876
  } else {
28055
- var rest = seq;
28056
- var found = new $c_sr_BooleanRef().init___Z(false);
28057
- var h = new $c_sr_ObjectRef().init___O(null);
28058
- var t = new $c_sr_ObjectRef().init___O(null);
28059
- while ((rest !== $m_sci_Nil$())) {
28060
- var arg1 = rest.head__O();
28061
- $as_sc_GenTraversableOnce(f(arg1)).seq__sc_TraversableOnce().foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this$1, found$1, h$1, t$1) {
28062
- return (function(b$2) {
28063
- if ((!found$1.elem$1)) {
28064
- h$1.elem$1 = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
28065
- t$1.elem$1 = $as_sci_$colon$colon(h$1.elem$1);
28066
- found$1.elem$1 = true
28067
- } else {
28068
- var nx = new $c_sci_$colon$colon().init___O__sci_List(b$2, $m_sci_Nil$());
28069
- $as_sci_$colon$colon(t$1.elem$1).tl$5 = nx;
28070
- t$1.elem$1 = nx
28071
- }
28072
- })
28073
- })(seq, found, h, t)));
28074
- var this$9 = rest;
28075
- rest = this$9.tail__sci_List()
28076
- };
28077
- var jsx$1 = ((!found.elem$1) ? $m_sci_Nil$() : $as_sci_$colon$colon(h.elem$1))
28078
- }
28079
- } else {
28080
- $m_sci_List$();
28081
- var b = new $c_scm_ListBuffer().init___();
28082
- var these = seq;
28083
- while ((!these.isEmpty__Z())) {
28084
- var arg1$1 = these.head__O();
28085
- var xs = $as_sc_GenTraversableOnce(f(arg1$1)).seq__sc_TraversableOnce();
28086
- b.$$plus$plus$eq__sc_TraversableOnce__scm_ListBuffer(xs);
28087
- var this$11 = these;
28088
- these = this$11.tail__sci_List()
27877
+ var idOpt = $m_s_None$()
28089
27878
  };
28090
- var jsx$1 = b.toList__sci_List()
28091
- };
28092
- var attrIds = $as_sc_TraversableOnce(jsx$1).toMap__s_Predef$$less$colon$less__sci_Map($m_s_Predef$().singleton$und$less$colon$less$2);
28093
- instances.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2$1, attrIds$1) {
28094
- return (function(x0$1$2) {
28095
- var x0$1 = $as_T2(x0$1$2);
28096
- if ((x0$1 !== null)) {
28097
- var id$1 = $as_Lio_kaitai_struct_format_InstanceIdentifier(x0$1.$$und1__O());
28098
- var instSpec = $as_Lio_kaitai_struct_format_InstanceSpec(x0$1.$$und2__O());
28099
- $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds$1.get__O__s_Option(id$1.name$2), id$1.name$2, instSpec)
28100
- } else {
28101
- throw new $c_s_MatchError().init___O(x0$1)
28102
- }
28103
- })
28104
- })(this, attrIds)))
27879
+ if ((!idOpt.isEmpty__Z())) {
27880
+ var arg1$1 = idOpt.get__O();
27881
+ var id = $as_T(arg1$1);
27882
+ $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
27883
+ attrIds.put__O__O__s_Option(id, attr)
27884
+ };
27885
+ var this$1 = these;
27886
+ these = this$1.tail__sci_List()
27887
+ }
28105
27888
  });
28106
27889
  $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V = (function(prevAttrOpt, id, nowAttr) {
28107
27890
  if ((prevAttrOpt instanceof $c_s_Some)) {
28108
27891
  var x2 = $as_s_Some(prevAttrOpt);
28109
- var prevAttr = $as_Lio_kaitai_struct_format_AttrSpec(x2.value$2);
27892
+ var prevAttr = $as_Lio_kaitai_struct_format_MemberSpec(x2.value$2);
28110
27893
  var jsx$1 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28111
- var this$1 = prevAttr.path$1;
27894
+ var this$1 = prevAttr.path__sci_List();
28112
27895
  throw jsx$1.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(((("duplicate attribute ID '" + id) + "', previously defined at /") + $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "/", "")), nowAttr.path__sci_List())
28113
27896
  } else {
28114
27897
  var x = $m_s_None$();
@@ -28195,12 +27978,12 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28195
27978
  };
28196
27979
  var seq = $m_sci_Nil$()
28197
27980
  };
28198
- var x1$3 = srcMap.get__O__s_Option("types");
27981
+ var x1$3 = srcMap.get__O__s_Option("instances");
28199
27982
  if ((x1$3 instanceof $c_s_Some)) {
28200
27983
  var x2$3 = $as_s_Some(x1$3);
28201
27984
  var value$3 = x2$3.value$2;
28202
27985
  $m_sci_List$();
28203
- var array$3 = ["types"];
27986
+ var array$3 = ["instances"];
28204
27987
  var i$3 = (((-1) + $uI(array$3.length)) | 0);
28205
27988
  var result$3 = $m_sci_Nil$();
28206
27989
  while ((i$3 >= 0)) {
@@ -28212,38 +27995,43 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28212
27995
  };
28213
27996
  var jsx$4 = result$3;
28214
27997
  var this$23 = $m_sci_List$();
28215
- var types = this.typesFromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$3, fileName, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$23.ReusableCBFInstance$2)), meta)
27998
+ var instances = this.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$3, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$4, this$23.ReusableCBFInstance$2)), meta)
28216
27999
  } else {
28217
28000
  var x$5 = $m_s_None$();
28218
28001
  if ((!(x$5 === x1$3))) {
28219
28002
  throw new $c_s_MatchError().init___O(x1$3)
28220
28003
  };
28221
- var types = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28004
+ var instances = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28222
28005
  };
28223
- var x1$4 = srcMap.get__O__s_Option("instances");
28006
+ var this$24 = $m_sci_List$();
28007
+ var jsx$6 = $as_sci_List(params.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(seq, this$24.ReusableCBFInstance$2));
28008
+ var jsx$5 = instances.values__sc_Iterable();
28009
+ var this$25 = $m_sci_List$();
28010
+ this.checkDupMemberIds__sci_List__V($as_sci_List(jsx$6.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$25.ReusableCBFInstance$2)));
28011
+ var x1$4 = srcMap.get__O__s_Option("types");
28224
28012
  if ((x1$4 instanceof $c_s_Some)) {
28225
28013
  var x2$4 = $as_s_Some(x1$4);
28226
28014
  var value$4 = x2$4.value$2;
28227
28015
  $m_sci_List$();
28228
- var array$4 = ["instances"];
28016
+ var array$4 = ["types"];
28229
28017
  var i$4 = (((-1) + $uI(array$4.length)) | 0);
28230
28018
  var result$4 = $m_sci_Nil$();
28231
28019
  while ((i$4 >= 0)) {
28232
- var this$27 = result$4;
28020
+ var this$29 = result$4;
28233
28021
  var index$4 = i$4;
28234
28022
  var x$6 = array$4[index$4];
28235
- result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$27);
28023
+ result$4 = new $c_sci_$colon$colon().init___O__sci_List(x$6, this$29);
28236
28024
  i$4 = (((-1) + i$4) | 0)
28237
28025
  };
28238
- var jsx$5 = result$4;
28239
- var this$28 = $m_sci_List$();
28240
- var instances = this.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$4, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$28.ReusableCBFInstance$2)), meta)
28026
+ var jsx$7 = result$4;
28027
+ var this$30 = $m_sci_List$();
28028
+ var types = this.typesFromYaml__O__s_Option__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map(value$4, fileName, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$7, this$30.ReusableCBFInstance$2)), meta)
28241
28029
  } else {
28242
28030
  var x$7 = $m_s_None$();
28243
28031
  if ((!(x$7 === x1$4))) {
28244
28032
  throw new $c_s_MatchError().init___O(x1$4)
28245
28033
  };
28246
- var instances = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28034
+ var types = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28247
28035
  };
28248
28036
  var x1$5 = srcMap.get__O__s_Option("enums");
28249
28037
  if ((x1$5 instanceof $c_s_Some)) {
@@ -28254,15 +28042,15 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28254
28042
  var i$5 = (((-1) + $uI(array$5.length)) | 0);
28255
28043
  var result$5 = $m_sci_Nil$();
28256
28044
  while ((i$5 >= 0)) {
28257
- var this$32 = result$5;
28045
+ var this$34 = result$5;
28258
28046
  var index$5 = i$5;
28259
28047
  var x$8 = array$5[index$5];
28260
- result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$32);
28048
+ result$5 = new $c_sci_$colon$colon().init___O__sci_List(x$8, this$34);
28261
28049
  i$5 = (((-1) + i$5) | 0)
28262
28050
  };
28263
- var jsx$6 = result$5;
28264
- var this$33 = $m_sci_List$();
28265
- var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$6, this$33.ReusableCBFInstance$2)))
28051
+ var jsx$8 = result$5;
28052
+ var this$35 = $m_sci_List$();
28053
+ var enums = this.enumsFromYaml__O__sci_List__sci_Map(value$5, $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$8, this$35.ReusableCBFInstance$2)))
28266
28054
  } else {
28267
28055
  var x$9 = $m_s_None$();
28268
28056
  if ((!(x$9 === x1$5))) {
@@ -28270,27 +28058,26 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28270
28058
  };
28271
28059
  var enums = $as_sci_Map($m_s_Predef$().Map$2.apply__sc_Seq__sc_GenMap($m_sci_Nil$()))
28272
28060
  };
28273
- this.checkDupSeqInstIds__sci_List__sci_Map__V(seq, instances);
28274
28061
  var cs = new $c_Lio_kaitai_struct_format_ClassSpec().init___s_Option__sci_List__Z__Lio_kaitai_struct_format_MetaSpec__Lio_kaitai_struct_format_DocSpec__s_Option__sci_List__sci_List__sci_Map__sci_Map__sci_Map(fileName, path, path.isEmpty__Z(), meta, doc, toStringExpr, params, seq, types, instances, enums);
28275
28062
  if (path.isEmpty__Z()) {
28276
28063
  var x1$6 = explicitMeta.id$1;
28277
28064
  var x$11 = $m_s_None$();
28278
28065
  if ((x$11 === x1$6)) {
28279
- var jsx$8 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28066
+ var jsx$10 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28280
28067
  $m_sci_List$();
28281
28068
  var array$6 = ["meta", "id"];
28282
28069
  var i$6 = (((-1) + $uI(array$6.length)) | 0);
28283
28070
  var result$6 = $m_sci_Nil$();
28284
28071
  while ((i$6 >= 0)) {
28285
- var this$37 = result$6;
28072
+ var this$39 = result$6;
28286
28073
  var index$6 = i$6;
28287
28074
  var x$10 = array$6[index$6];
28288
- result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$37);
28075
+ result$6 = new $c_sci_$colon$colon().init___O__sci_List(x$10, this$39);
28289
28076
  i$6 = (((-1) + i$6) | 0)
28290
28077
  };
28291
- var jsx$7 = result$6;
28292
- var this$38 = $m_sci_List$();
28293
- throw jsx$8.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException("no `meta/id` encountered in top-level class spec", $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$7, this$38.ReusableCBFInstance$2)))
28078
+ var jsx$9 = result$6;
28079
+ var this$40 = $m_sci_List$();
28080
+ throw jsx$10.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException("no `meta/id` encountered in top-level class spec", $as_sci_List(path.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$9, this$40.ReusableCBFInstance$2)))
28294
28081
  } else if ((x1$6 instanceof $c_s_Some)) {
28295
28082
  var x2$6 = $as_s_Some(x1$6);
28296
28083
  var id = $as_T(x2$6.value$2);
@@ -28299,10 +28086,10 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.fromYaml__O__s_Option__sci_List
28299
28086
  var i$7 = (((-1) + $uI(array$7.length)) | 0);
28300
28087
  var result$7 = $m_sci_Nil$();
28301
28088
  while ((i$7 >= 0)) {
28302
- var this$42 = result$7;
28089
+ var this$44 = result$7;
28303
28090
  var index$7 = i$7;
28304
28091
  var x$12 = array$7[index$7];
28305
- result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$42);
28092
+ result$7 = new $c_sci_$colon$colon().init___O__sci_List(x$12, this$44);
28306
28093
  i$7 = (((-1) + i$7) | 0)
28307
28094
  };
28308
28095
  cs.name$1 = result$7
@@ -28376,29 +28163,11 @@ $c_Lio_kaitai_struct_format_ClassSpec$.prototype.seqFromYaml__O__sci_List__Lio_k
28376
28163
  var jsx$3 = b.result__O()
28377
28164
  };
28378
28165
  var seq = $as_sci_List(jsx$3);
28379
- this.checkDupSeqIds__sci_List__V(seq);
28380
28166
  return seq
28381
28167
  } else {
28382
28168
  throw $m_Lio_kaitai_struct_problems_KSYParseError$().withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(("expected array, found " + src), path)
28383
28169
  }
28384
28170
  });
28385
- $c_Lio_kaitai_struct_format_ClassSpec$.prototype.checkDupSeqIds__sci_List__V = (function(seq) {
28386
- var attrIds = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
28387
- var these = seq;
28388
- while ((!these.isEmpty__Z())) {
28389
- var arg1 = these.head__O();
28390
- var attr = $as_Lio_kaitai_struct_format_AttrSpec(arg1);
28391
- var x1 = attr.id$1;
28392
- if ((x1 instanceof $c_Lio_kaitai_struct_format_NamedIdentifier)) {
28393
- var x2 = $as_Lio_kaitai_struct_format_NamedIdentifier(x1);
28394
- var id = x2.name$2;
28395
- $m_Lio_kaitai_struct_format_ClassSpec$().checkDupId__p1__s_Option__T__Lio_kaitai_struct_format_YAMLPath__V(attrIds.get__O__s_Option(id), id, attr);
28396
- attrIds.put__O__O__s_Option(id, attr)
28397
- };
28398
- var this$1 = these;
28399
- these = this$1.tail__sci_List()
28400
- }
28401
- });
28402
28171
  $c_Lio_kaitai_struct_format_ClassSpec$.prototype.instancesFromYaml__O__sci_List__Lio_kaitai_struct_format_MetaSpec__sci_Map = (function(src, path, metaDef) {
28403
28172
  var srcMap = $m_Lio_kaitai_struct_format_ParseUtils$().asMap__O__sci_List__sci_Map(src, path);
28404
28173
  var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1, metaDef$1) {
@@ -28737,7 +28506,8 @@ $c_Lio_kaitai_struct_format_EnumSpec$.prototype.init___ = (function() {
28737
28506
  });
28738
28507
  $c_Lio_kaitai_struct_format_EnumSpec$.prototype.fromYaml__O__sci_List__Lio_kaitai_struct_format_EnumSpec = (function(src, path) {
28739
28508
  var srcMap = $m_Lio_kaitai_struct_format_ParseUtils$().asMap__O__sci_List__sci_Map(src, path);
28740
- var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1) {
28509
+ var memberNameMap = $as_scm_Map($m_scm_Map$().apply__sc_Seq__sc_GenMap($m_sci_Nil$()));
28510
+ var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, path$1, memberNameMap$1) {
28741
28511
  return (function(x0$1$2) {
28742
28512
  var x0$1 = $as_T2(x0$1$2);
28743
28513
  if ((x0$1 !== null)) {
@@ -28761,14 +28531,52 @@ $c_Lio_kaitai_struct_format_EnumSpec$.prototype.fromYaml__O__sci_List__Lio_kaita
28761
28531
  var jsx$1 = result;
28762
28532
  var this$5 = $m_sci_List$();
28763
28533
  var value = jsx$2.fromYaml__O__sci_List__Lio_kaitai_struct_format_EnumValueSpec(desc, $as_sci_List(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$1, this$5.ReusableCBFInstance$2)));
28534
+ var this$6 = memberNameMap$1.get__O__s_Option(value.name$1);
28535
+ if ((!this$6.isEmpty__Z())) {
28536
+ var arg1 = this$6.get__O();
28537
+ var t$1 = $uJ(arg1);
28538
+ var lo$1 = t$1.lo$2;
28539
+ var hi$1 = t$1.hi$2;
28540
+ var jsx$7 = $m_Lio_kaitai_struct_problems_KSYParseError$();
28541
+ var jsx$6 = value.name$1;
28542
+ $m_sci_List$();
28543
+ var array$1 = [$m_sjsr_RuntimeLong$().scala$scalajs$runtime$RuntimeLong$$toString__I__I__T(lo$1, hi$1)];
28544
+ var i$1 = (((-1) + $uI(array$1.length)) | 0);
28545
+ var result$1 = $m_sci_Nil$();
28546
+ while ((i$1 >= 0)) {
28547
+ var this$10 = result$1;
28548
+ var index$1 = i$1;
28549
+ var x$1 = array$1[index$1];
28550
+ result$1 = new $c_sci_$colon$colon().init___O__sci_List(x$1, this$10);
28551
+ i$1 = (((-1) + i$1) | 0)
28552
+ };
28553
+ var jsx$5 = result$1;
28554
+ var this$11 = $m_sci_List$();
28555
+ var jsx$4 = $as_sc_TraversableOnce(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$5, this$11.ReusableCBFInstance$2)).mkString__T__T("/");
28556
+ $m_sci_List$();
28557
+ var array$2 = [$m_sjsr_RuntimeLong$().scala$scalajs$runtime$RuntimeLong$$toString__I__I__T(lo, hi)];
28558
+ var i$2 = (((-1) + $uI(array$2.length)) | 0);
28559
+ var result$2 = $m_sci_Nil$();
28560
+ while ((i$2 >= 0)) {
28561
+ var this$15 = result$2;
28562
+ var index$2 = i$2;
28563
+ var x$2 = array$2[index$2];
28564
+ result$2 = new $c_sci_$colon$colon().init___O__sci_List(x$2, this$15);
28565
+ i$2 = (((-1) + i$2) | 0)
28566
+ };
28567
+ var jsx$3 = result$2;
28568
+ var this$16 = $m_sci_List$();
28569
+ throw jsx$7.withText__T__sci_List__Lio_kaitai_struct_problems_CompilationProblemException(((("duplicate enum member ID: '" + jsx$6) + "', previously defined at /") + jsx$4), $as_sci_List(path$1.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(jsx$3, this$16.ReusableCBFInstance$2)))
28570
+ };
28571
+ memberNameMap$1.put__O__O__s_Option(value.name$1, new $c_sjsr_RuntimeLong().init___I__I(lo, hi));
28764
28572
  return new $c_T2().init___O__O(new $c_sjsr_RuntimeLong().init___I__I(lo, hi), value)
28765
28573
  } else {
28766
28574
  throw new $c_s_MatchError().init___O(x0$1)
28767
28575
  }
28768
28576
  })
28769
- })(this, path));
28577
+ })(this, path, memberNameMap));
28770
28578
  var bf = $m_sci_Map$().ReusableCBF$4;
28771
- return new $c_Lio_kaitai_struct_format_EnumSpec().init___sci_Map($as_sci_Map($f_sc_TraversableLike__map__F1__scg_CanBuildFrom__O(srcMap, f, bf)))
28579
+ return new $c_Lio_kaitai_struct_format_EnumSpec().init___sci_List__sci_Map(path, $as_sci_Map($f_sc_TraversableLike__map__F1__scg_CanBuildFrom__O(srcMap, f, bf)))
28772
28580
  });
28773
28581
  var $d_Lio_kaitai_struct_format_EnumSpec$ = new $TypeData().initClass({
28774
28582
  Lio_kaitai_struct_format_EnumSpec$: 0
@@ -31449,55 +31257,6 @@ function $m_jl_Long$() {
31449
31257
  return $n_jl_Long$
31450
31258
  }
31451
31259
  /** @constructor */
31452
- function $c_ju_AbstractCollection() {
31453
- $c_O.call(this)
31454
- }
31455
- $c_ju_AbstractCollection.prototype = new $h_O();
31456
- $c_ju_AbstractCollection.prototype.constructor = $c_ju_AbstractCollection;
31457
- /** @constructor */
31458
- function $h_ju_AbstractCollection() {
31459
- /*<skip>*/
31460
- }
31461
- $h_ju_AbstractCollection.prototype = $c_ju_AbstractCollection.prototype;
31462
- $c_ju_AbstractCollection.prototype.containsAll__ju_Collection__Z = (function(c) {
31463
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(c);
31464
- inlinereturn$7: {
31465
- while (__self.ui$1.hasNext__Z()) {
31466
- var arg1 = __self.next__ju_Map$Entry();
31467
- if ((!this.contains__O__Z(arg1))) {
31468
- var jsx$1 = true;
31469
- break inlinereturn$7
31470
- }
31471
- };
31472
- var jsx$1 = false
31473
- };
31474
- return (!jsx$1)
31475
- });
31476
- $c_ju_AbstractCollection.prototype.toString__T = (function() {
31477
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(this);
31478
- var result = "[";
31479
- var first = true;
31480
- while (__self.ui$1.hasNext__Z()) {
31481
- if (first) {
31482
- first = false
31483
- } else {
31484
- result = (result + ", ")
31485
- };
31486
- result = (("" + result) + __self.next__ju_Map$Entry())
31487
- };
31488
- return (result + "]")
31489
- });
31490
- $c_ju_AbstractCollection.prototype.contains__O__Z = (function(o) {
31491
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(this);
31492
- while (__self.ui$1.hasNext__Z()) {
31493
- var arg1 = __self.next__ju_Map$Entry();
31494
- if (((o === null) ? (arg1 === null) : $objectEquals(o, arg1))) {
31495
- return true
31496
- }
31497
- };
31498
- return false
31499
- });
31500
- /** @constructor */
31501
31260
  function $c_ju_concurrent_atomic_AtomicReference() {
31502
31261
  $c_O.call(this);
31503
31262
  this.value$1 = null
@@ -34824,9 +34583,22 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34824
34583
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$EnumByLabel)) {
34825
34584
  var x3 = $as_Lio_kaitai_struct_exprlang_Ast$expr$EnumByLabel(v);
34826
34585
  var enumType$2 = x3.enumName$1;
34586
+ var label = x3.label$1;
34827
34587
  var inType$2 = x3.inType$1;
34828
- this.provider$2.resolveEnum__Lio_kaitai_struct_exprlang_Ast$typeId__T__Lio_kaitai_struct_format_EnumSpec(inType$2, enumType$2.name$1);
34829
- break matchEnd36
34588
+ var enumSpec = this.provider$2.resolveEnum__Lio_kaitai_struct_exprlang_Ast$typeId__T__Lio_kaitai_struct_format_EnumSpec(inType$2, enumType$2.name$1);
34589
+ if ((!enumSpec.map$1.values__sc_Iterable().exists__F1__Z(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this, label$1) {
34590
+ return (function(x$1$2) {
34591
+ var x$1 = $as_Lio_kaitai_struct_format_EnumValueSpec(x$1$2);
34592
+ return (x$1.name$1 === label$1.name$1)
34593
+ })
34594
+ })(this, label))))) {
34595
+ var jsx$2 = label.name$1;
34596
+ var jsx$1 = enumType$2.name$1;
34597
+ var this$1 = enumSpec.path$1;
34598
+ throw new $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError().init___T__T__T(jsx$2, jsx$1, $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "/", ""))
34599
+ } else {
34600
+ break matchEnd36
34601
+ }
34830
34602
  };
34831
34603
  if ((v instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Name)) {
34832
34604
  var x4 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Name(v);
@@ -34881,10 +34653,10 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34881
34653
  var op$4 = x8.op$1;
34882
34654
  var values = x8.values$1;
34883
34655
  if (((op$4 !== null) && (values !== null))) {
34884
- values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
34656
+ values.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2) {
34885
34657
  return (function(v$2$2) {
34886
34658
  var v$2 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$2$2);
34887
- $this.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$2)
34659
+ this$2.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$2)
34888
34660
  })
34889
34661
  })(this)));
34890
34662
  break matchEnd36
@@ -34926,10 +34698,10 @@ $c_Lio_kaitai_struct_translators_ExpressionValidator.prototype.validate__Lio_kai
34926
34698
  var x11 = $as_Lio_kaitai_struct_exprlang_Ast$expr$List(v);
34927
34699
  var values$2 = x11.elts$1;
34928
34700
  if ((values$2 !== null)) {
34929
- values$2.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$2) {
34701
+ values$2.foreach__F1__V(new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function(this$3) {
34930
34702
  return (function(v$3$2) {
34931
34703
  var v$3 = $as_Lio_kaitai_struct_exprlang_Ast$expr(v$3$2);
34932
- this$2.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$3)
34704
+ this$3.validate__Lio_kaitai_struct_exprlang_Ast$expr__V(v$3)
34933
34705
  })
34934
34706
  })(this)));
34935
34707
  break matchEnd36
@@ -38277,55 +38049,6 @@ $c_sc_AbstractIterator.prototype.reduceLeft__F2__O = (function(op) {
38277
38049
  return $f_sc_TraversableOnce__reduceLeft__F2__O(this, op)
38278
38050
  });
38279
38051
  /** @constructor */
38280
- function $c_sc_convert_Wrappers$() {
38281
- $c_O.call(this);
38282
- this.IteratorWrapper$module$1 = null;
38283
- this.JIteratorWrapper$module$1 = null;
38284
- this.JEnumerationWrapper$module$1 = null;
38285
- this.IterableWrapper$module$1 = null;
38286
- this.JIterableWrapper$module$1 = null;
38287
- this.JCollectionWrapper$module$1 = null;
38288
- this.SeqWrapper$module$1 = null;
38289
- this.MutableSeqWrapper$module$1 = null;
38290
- this.MutableBufferWrapper$module$1 = null;
38291
- this.JListWrapper$module$1 = null;
38292
- this.MutableSetWrapper$module$1 = null;
38293
- this.JSetWrapper$module$1 = null;
38294
- this.MutableMapWrapper$module$1 = null;
38295
- this.JMapWrapper$module$1 = null;
38296
- this.JConcurrentMapWrapper$module$1 = null;
38297
- this.DictionaryWrapper$module$1 = null;
38298
- this.JDictionaryWrapper$module$1 = null;
38299
- this.JPropertiesWrapper$module$1 = null
38300
- }
38301
- $c_sc_convert_Wrappers$.prototype = new $h_O();
38302
- $c_sc_convert_Wrappers$.prototype.constructor = $c_sc_convert_Wrappers$;
38303
- /** @constructor */
38304
- function $h_sc_convert_Wrappers$() {
38305
- /*<skip>*/
38306
- }
38307
- $h_sc_convert_Wrappers$.prototype = $c_sc_convert_Wrappers$.prototype;
38308
- $c_sc_convert_Wrappers$.prototype.init___ = (function() {
38309
- return this
38310
- });
38311
- var $d_sc_convert_Wrappers$ = new $TypeData().initClass({
38312
- sc_convert_Wrappers$: 0
38313
- }, false, "scala.collection.convert.Wrappers$", {
38314
- sc_convert_Wrappers$: 1,
38315
- O: 1,
38316
- sc_convert_Wrappers: 1,
38317
- s_Serializable: 1,
38318
- Ljava_io_Serializable: 1
38319
- });
38320
- $c_sc_convert_Wrappers$.prototype.$classData = $d_sc_convert_Wrappers$;
38321
- var $n_sc_convert_Wrappers$ = (void 0);
38322
- function $m_sc_convert_Wrappers$() {
38323
- if ((!$n_sc_convert_Wrappers$)) {
38324
- $n_sc_convert_Wrappers$ = new $c_sc_convert_Wrappers$().init___()
38325
- };
38326
- return $n_sc_convert_Wrappers$
38327
- }
38328
- /** @constructor */
38329
38052
  function $c_scg_SetFactory() {
38330
38053
  $c_scg_GenSetFactory.call(this)
38331
38054
  }
@@ -40510,104 +40233,6 @@ var $d_Lio_kaitai_struct_format_DocSpec = new $TypeData().initClass({
40510
40233
  });
40511
40234
  $c_Lio_kaitai_struct_format_DocSpec.prototype.$classData = $d_Lio_kaitai_struct_format_DocSpec;
40512
40235
  /** @constructor */
40513
- function $c_Lio_kaitai_struct_format_EnumSpec() {
40514
- $c_O.call(this);
40515
- this.sortedSeq$1 = null;
40516
- this.map$1 = null;
40517
- this.name$1 = null;
40518
- this.bitmap$0$1 = false
40519
- }
40520
- $c_Lio_kaitai_struct_format_EnumSpec.prototype = new $h_O();
40521
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.constructor = $c_Lio_kaitai_struct_format_EnumSpec;
40522
- /** @constructor */
40523
- function $h_Lio_kaitai_struct_format_EnumSpec() {
40524
- /*<skip>*/
40525
- }
40526
- $h_Lio_kaitai_struct_format_EnumSpec.prototype = $c_Lio_kaitai_struct_format_EnumSpec.prototype;
40527
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productPrefix__T = (function() {
40528
- return "EnumSpec"
40529
- });
40530
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq__sc_Seq = (function() {
40531
- return ((!this.bitmap$0$1) ? this.sortedSeq$lzycompute__p1__sc_Seq() : this.sortedSeq$1)
40532
- });
40533
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productArity__I = (function() {
40534
- return 1
40535
- });
40536
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.equals__O__Z = (function(x$1) {
40537
- if ((this === x$1)) {
40538
- return true
40539
- } else if ((x$1 instanceof $c_Lio_kaitai_struct_format_EnumSpec)) {
40540
- var EnumSpec$1 = $as_Lio_kaitai_struct_format_EnumSpec(x$1);
40541
- var x = this.map$1;
40542
- var x$2 = EnumSpec$1.map$1;
40543
- return ((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))
40544
- } else {
40545
- return false
40546
- }
40547
- });
40548
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productElement__I__O = (function(x$1) {
40549
- switch (x$1) {
40550
- case 0: {
40551
- return this.map$1;
40552
- break
40553
- }
40554
- default: {
40555
- throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
40556
- }
40557
- }
40558
- });
40559
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.init___sci_Map = (function(map) {
40560
- this.map$1 = map;
40561
- this.name$1 = $m_sci_Nil$();
40562
- return this
40563
- });
40564
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.toString__T = (function() {
40565
- return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
40566
- });
40567
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.hashCode__I = (function() {
40568
- var this$2 = $m_s_util_hashing_MurmurHash3$();
40569
- return this$2.productHash__s_Product__I__I(this, (-889275714))
40570
- });
40571
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.productIterator__sc_Iterator = (function() {
40572
- return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
40573
- });
40574
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq$lzycompute__p1__sc_Seq = (function() {
40575
- if ((!this.bitmap$0$1)) {
40576
- var this$1 = this.map$1;
40577
- var this$2 = $f_sc_MapLike__toSeq__sc_Seq(this$1);
40578
- var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
40579
- return (function(x$1$2) {
40580
- var x$1 = $as_T2(x$1$2);
40581
- return x$1.$$und1$mcJ$sp__J()
40582
- })
40583
- })(this));
40584
- var ord = $m_s_math_Ordering$Long$();
40585
- this.sortedSeq$1 = $as_sc_Seq($f_sc_SeqLike__sortBy__F1__s_math_Ordering__O(this$2, f, ord));
40586
- this.bitmap$0$1 = true
40587
- };
40588
- return this.sortedSeq$1
40589
- });
40590
- function $as_Lio_kaitai_struct_format_EnumSpec(obj) {
40591
- return (((obj instanceof $c_Lio_kaitai_struct_format_EnumSpec) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.format.EnumSpec"))
40592
- }
40593
- function $isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
40594
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_format_EnumSpec)))
40595
- }
40596
- function $asArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
40597
- return (($isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.format.EnumSpec;", depth))
40598
- }
40599
- var $d_Lio_kaitai_struct_format_EnumSpec = new $TypeData().initClass({
40600
- Lio_kaitai_struct_format_EnumSpec: 0
40601
- }, false, "io.kaitai.struct.format.EnumSpec", {
40602
- Lio_kaitai_struct_format_EnumSpec: 1,
40603
- O: 1,
40604
- s_Product: 1,
40605
- s_Equals: 1,
40606
- s_Serializable: 1,
40607
- Ljava_io_Serializable: 1
40608
- });
40609
- $c_Lio_kaitai_struct_format_EnumSpec.prototype.$classData = $d_Lio_kaitai_struct_format_EnumSpec;
40610
- /** @constructor */
40611
40236
  function $c_Lio_kaitai_struct_format_EnumValueSpec() {
40612
40237
  $c_O.call(this);
40613
40238
  this.name$1 = null;
@@ -43211,38 +42836,6 @@ var $d_jl_UnsupportedOperationException = new $TypeData().initClass({
43211
42836
  });
43212
42837
  $c_jl_UnsupportedOperationException.prototype.$classData = $d_jl_UnsupportedOperationException;
43213
42838
  /** @constructor */
43214
- function $c_ju_AbstractSet() {
43215
- $c_ju_AbstractCollection.call(this)
43216
- }
43217
- $c_ju_AbstractSet.prototype = new $h_ju_AbstractCollection();
43218
- $c_ju_AbstractSet.prototype.constructor = $c_ju_AbstractSet;
43219
- /** @constructor */
43220
- function $h_ju_AbstractSet() {
43221
- /*<skip>*/
43222
- }
43223
- $h_ju_AbstractSet.prototype = $c_ju_AbstractSet.prototype;
43224
- $c_ju_AbstractSet.prototype.equals__O__Z = (function(that) {
43225
- if ((that === this)) {
43226
- return true
43227
- } else if ($is_ju_Collection(that)) {
43228
- var x2 = $as_ju_Collection(that);
43229
- return ((x2.size__I() === this.size__I()) && this.containsAll__ju_Collection__Z(x2))
43230
- } else {
43231
- return false
43232
- }
43233
- });
43234
- $c_ju_AbstractSet.prototype.hashCode__I = (function() {
43235
- var __self = new $c_sc_convert_Wrappers$MapWrapper$$anon$2$$anon$3().init___sc_convert_Wrappers$MapWrapper$$anon$2(this);
43236
- var result = 0;
43237
- while (__self.ui$1.hasNext__Z()) {
43238
- var arg1 = result;
43239
- var arg2 = __self.next__ju_Map$Entry();
43240
- var prev = $uI(arg1);
43241
- result = ((arg2.hashCode__I() + prev) | 0)
43242
- };
43243
- return $uI(result)
43244
- });
43245
- /** @constructor */
43246
42839
  function $c_ju_NoSuchElementException() {
43247
42840
  $c_jl_RuntimeException.call(this)
43248
42841
  }
@@ -43950,38 +43543,6 @@ var $d_sc_Iterator$$anon$2 = new $TypeData().initClass({
43950
43543
  });
43951
43544
  $c_sc_Iterator$$anon$2.prototype.$classData = $d_sc_Iterator$$anon$2;
43952
43545
  /** @constructor */
43953
- function $c_sc_JavaConversions$() {
43954
- $c_O.call(this)
43955
- }
43956
- $c_sc_JavaConversions$.prototype = new $h_O();
43957
- $c_sc_JavaConversions$.prototype.constructor = $c_sc_JavaConversions$;
43958
- /** @constructor */
43959
- function $h_sc_JavaConversions$() {
43960
- /*<skip>*/
43961
- }
43962
- $h_sc_JavaConversions$.prototype = $c_sc_JavaConversions$.prototype;
43963
- $c_sc_JavaConversions$.prototype.init___ = (function() {
43964
- return this
43965
- });
43966
- var $d_sc_JavaConversions$ = new $TypeData().initClass({
43967
- sc_JavaConversions$: 0
43968
- }, false, "scala.collection.JavaConversions$", {
43969
- sc_JavaConversions$: 1,
43970
- O: 1,
43971
- sc_convert_WrapAsScala: 1,
43972
- sc_convert_LowPriorityWrapAsScala: 1,
43973
- sc_convert_WrapAsJava: 1,
43974
- sc_convert_LowPriorityWrapAsJava: 1
43975
- });
43976
- $c_sc_JavaConversions$.prototype.$classData = $d_sc_JavaConversions$;
43977
- var $n_sc_JavaConversions$ = (void 0);
43978
- function $m_sc_JavaConversions$() {
43979
- if ((!$n_sc_JavaConversions$)) {
43980
- $n_sc_JavaConversions$ = new $c_sc_JavaConversions$().init___()
43981
- };
43982
- return $n_sc_JavaConversions$
43983
- }
43984
- /** @constructor */
43985
43546
  function $c_sc_LinearSeqLike$$anon$1() {
43986
43547
  $c_sc_AbstractIterator.call(this);
43987
43548
  this.these$2 = null
@@ -44176,76 +43737,6 @@ var $d_sc_TraversableOnce$FlattenOps$$anon$2 = new $TypeData().initClass({
44176
43737
  });
44177
43738
  $c_sc_TraversableOnce$FlattenOps$$anon$2.prototype.$classData = $d_sc_TraversableOnce$FlattenOps$$anon$2;
44178
43739
  /** @constructor */
44179
- function $c_sc_convert_Wrappers$MapWrapper() {
44180
- $c_ju_AbstractMap.call(this);
44181
- this.scala$collection$convert$Wrappers$MapWrapper$$underlying$f = null;
44182
- this.$$outer$2 = null
44183
- }
44184
- $c_sc_convert_Wrappers$MapWrapper.prototype = new $h_ju_AbstractMap();
44185
- $c_sc_convert_Wrappers$MapWrapper.prototype.constructor = $c_sc_convert_Wrappers$MapWrapper;
44186
- /** @constructor */
44187
- function $h_sc_convert_Wrappers$MapWrapper() {
44188
- /*<skip>*/
44189
- }
44190
- $h_sc_convert_Wrappers$MapWrapper.prototype = $c_sc_convert_Wrappers$MapWrapper.prototype;
44191
- $c_sc_convert_Wrappers$MapWrapper.prototype.containsKey__O__Z = (function(key) {
44192
- try {
44193
- return this.scala$collection$convert$Wrappers$MapWrapper$$underlying$f.contains__O__Z(key)
44194
- } catch (e) {
44195
- if ((e instanceof $c_jl_ClassCastException)) {
44196
- $as_jl_ClassCastException(e);
44197
- return false
44198
- } else {
44199
- throw e
44200
- }
44201
- }
44202
- });
44203
- $c_sc_convert_Wrappers$MapWrapper.prototype.get__O__O = (function(key) {
44204
- try {
44205
- var x1 = this.scala$collection$convert$Wrappers$MapWrapper$$underlying$f.get__O__s_Option(key);
44206
- var x = $m_s_None$();
44207
- if ((x === x1)) {
44208
- return null
44209
- } else if ((x1 instanceof $c_s_Some)) {
44210
- var x2 = $as_s_Some(x1);
44211
- var v = x2.value$2;
44212
- return v
44213
- } else {
44214
- throw new $c_s_MatchError().init___O(x1)
44215
- }
44216
- } catch (e) {
44217
- if ((e instanceof $c_jl_ClassCastException)) {
44218
- $as_jl_ClassCastException(e);
44219
- return null
44220
- } else {
44221
- throw e
44222
- }
44223
- }
44224
- });
44225
- $c_sc_convert_Wrappers$MapWrapper.prototype.init___sc_convert_Wrappers__sc_Map = (function($$outer, underlying) {
44226
- this.scala$collection$convert$Wrappers$MapWrapper$$underlying$f = underlying;
44227
- if (($$outer === null)) {
44228
- throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null)
44229
- } else {
44230
- this.$$outer$2 = $$outer
44231
- };
44232
- return this
44233
- });
44234
- $c_sc_convert_Wrappers$MapWrapper.prototype.size__I = (function() {
44235
- return this.scala$collection$convert$Wrappers$MapWrapper$$underlying$f.size__I()
44236
- });
44237
- var $d_sc_convert_Wrappers$MapWrapper = new $TypeData().initClass({
44238
- sc_convert_Wrappers$MapWrapper: 0
44239
- }, false, "scala.collection.convert.Wrappers$MapWrapper", {
44240
- sc_convert_Wrappers$MapWrapper: 1,
44241
- ju_AbstractMap: 1,
44242
- O: 1,
44243
- ju_Map: 1,
44244
- s_Serializable: 1,
44245
- Ljava_io_Serializable: 1
44246
- });
44247
- $c_sc_convert_Wrappers$MapWrapper.prototype.$classData = $d_sc_convert_Wrappers$MapWrapper;
44248
- /** @constructor */
44249
43740
  function $c_scg_ImmutableSetFactory() {
44250
43741
  $c_scg_SetFactory.call(this)
44251
43742
  }
@@ -50315,6 +49806,120 @@ function $m_Lio_kaitai_struct_format_DynamicSized$() {
50315
49806
  return $n_Lio_kaitai_struct_format_DynamicSized$
50316
49807
  }
50317
49808
  /** @constructor */
49809
+ function $c_Lio_kaitai_struct_format_EnumSpec() {
49810
+ $c_O.call(this);
49811
+ this.sortedSeq$1 = null;
49812
+ this.path$1 = null;
49813
+ this.map$1 = null;
49814
+ this.name$1 = null;
49815
+ this.bitmap$0$1 = false
49816
+ }
49817
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype = new $h_O();
49818
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.constructor = $c_Lio_kaitai_struct_format_EnumSpec;
49819
+ /** @constructor */
49820
+ function $h_Lio_kaitai_struct_format_EnumSpec() {
49821
+ /*<skip>*/
49822
+ }
49823
+ $h_Lio_kaitai_struct_format_EnumSpec.prototype = $c_Lio_kaitai_struct_format_EnumSpec.prototype;
49824
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productPrefix__T = (function() {
49825
+ return "EnumSpec"
49826
+ });
49827
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq__sc_Seq = (function() {
49828
+ return ((!this.bitmap$0$1) ? this.sortedSeq$lzycompute__p1__sc_Seq() : this.sortedSeq$1)
49829
+ });
49830
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productArity__I = (function() {
49831
+ return 2
49832
+ });
49833
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.equals__O__Z = (function(x$1) {
49834
+ if ((this === x$1)) {
49835
+ return true
49836
+ } else if ((x$1 instanceof $c_Lio_kaitai_struct_format_EnumSpec)) {
49837
+ var EnumSpec$1 = $as_Lio_kaitai_struct_format_EnumSpec(x$1);
49838
+ var x = this.path$1;
49839
+ var x$2 = EnumSpec$1.path$1;
49840
+ if (((x === null) ? (x$2 === null) : x.equals__O__Z(x$2))) {
49841
+ var x$3 = this.map$1;
49842
+ var x$4 = EnumSpec$1.map$1;
49843
+ return ((x$3 === null) ? (x$4 === null) : x$3.equals__O__Z(x$4))
49844
+ } else {
49845
+ return false
49846
+ }
49847
+ } else {
49848
+ return false
49849
+ }
49850
+ });
49851
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productElement__I__O = (function(x$1) {
49852
+ switch (x$1) {
49853
+ case 0: {
49854
+ return this.path$1;
49855
+ break
49856
+ }
49857
+ case 1: {
49858
+ return this.map$1;
49859
+ break
49860
+ }
49861
+ default: {
49862
+ throw new $c_jl_IndexOutOfBoundsException().init___T(("" + x$1))
49863
+ }
49864
+ }
49865
+ });
49866
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.toString__T = (function() {
49867
+ return $m_sr_ScalaRunTime$().$$undtoString__s_Product__T(this)
49868
+ });
49869
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.init___sci_List__sci_Map = (function(path, map) {
49870
+ this.path$1 = path;
49871
+ this.map$1 = map;
49872
+ this.name$1 = $m_sci_Nil$();
49873
+ return this
49874
+ });
49875
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.path__sci_List = (function() {
49876
+ return this.path$1
49877
+ });
49878
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.hashCode__I = (function() {
49879
+ var this$2 = $m_s_util_hashing_MurmurHash3$();
49880
+ return this$2.productHash__s_Product__I__I(this, (-889275714))
49881
+ });
49882
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.productIterator__sc_Iterator = (function() {
49883
+ return new $c_sr_ScalaRunTime$$anon$1().init___s_Product(this)
49884
+ });
49885
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.sortedSeq$lzycompute__p1__sc_Seq = (function() {
49886
+ if ((!this.bitmap$0$1)) {
49887
+ var this$1 = this.map$1;
49888
+ var this$2 = $f_sc_MapLike__toSeq__sc_Seq(this$1);
49889
+ var f = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
49890
+ return (function(x$1$2) {
49891
+ var x$1 = $as_T2(x$1$2);
49892
+ return x$1.$$und1$mcJ$sp__J()
49893
+ })
49894
+ })(this));
49895
+ var ord = $m_s_math_Ordering$Long$();
49896
+ this.sortedSeq$1 = $as_sc_Seq($f_sc_SeqLike__sortBy__F1__s_math_Ordering__O(this$2, f, ord));
49897
+ this.bitmap$0$1 = true
49898
+ };
49899
+ return this.sortedSeq$1
49900
+ });
49901
+ function $as_Lio_kaitai_struct_format_EnumSpec(obj) {
49902
+ return (((obj instanceof $c_Lio_kaitai_struct_format_EnumSpec) || (obj === null)) ? obj : $throwClassCastException(obj, "io.kaitai.struct.format.EnumSpec"))
49903
+ }
49904
+ function $isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
49905
+ return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.Lio_kaitai_struct_format_EnumSpec)))
49906
+ }
49907
+ function $asArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) {
49908
+ return (($isArrayOf_Lio_kaitai_struct_format_EnumSpec(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lio.kaitai.struct.format.EnumSpec;", depth))
49909
+ }
49910
+ var $d_Lio_kaitai_struct_format_EnumSpec = new $TypeData().initClass({
49911
+ Lio_kaitai_struct_format_EnumSpec: 0
49912
+ }, false, "io.kaitai.struct.format.EnumSpec", {
49913
+ Lio_kaitai_struct_format_EnumSpec: 1,
49914
+ O: 1,
49915
+ Lio_kaitai_struct_format_YAMLPath: 1,
49916
+ s_Product: 1,
49917
+ s_Equals: 1,
49918
+ s_Serializable: 1,
49919
+ Ljava_io_Serializable: 1
49920
+ });
49921
+ $c_Lio_kaitai_struct_format_EnumSpec.prototype.$classData = $d_Lio_kaitai_struct_format_EnumSpec;
49922
+ /** @constructor */
50318
49923
  function $c_Lio_kaitai_struct_format_FixedSized() {
50319
49924
  $c_O.call(this);
50320
49925
  this.n$1 = 0
@@ -54743,41 +54348,6 @@ function $asArrayOf_sc_TraversableLike(obj, depth) {
54743
54348
  return (($isArrayOf_sc_TraversableLike(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.TraversableLike;", depth))
54744
54349
  }
54745
54350
  /** @constructor */
54746
- function $c_sc_convert_Wrappers$MapWrapper$$anon$2() {
54747
- $c_ju_AbstractSet.call(this);
54748
- this.$$outer$3 = null
54749
- }
54750
- $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype = new $h_ju_AbstractSet();
54751
- $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype.constructor = $c_sc_convert_Wrappers$MapWrapper$$anon$2;
54752
- /** @constructor */
54753
- function $h_sc_convert_Wrappers$MapWrapper$$anon$2() {
54754
- /*<skip>*/
54755
- }
54756
- $h_sc_convert_Wrappers$MapWrapper$$anon$2.prototype = $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype;
54757
- $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype.init___sc_convert_Wrappers$MapWrapper = (function($$outer) {
54758
- if (($$outer === null)) {
54759
- throw $m_sjsr_package$().unwrapJavaScriptException__jl_Throwable__O(null)
54760
- } else {
54761
- this.$$outer$3 = $$outer
54762
- };
54763
- return this
54764
- });
54765
- $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype.size__I = (function() {
54766
- return this.$$outer$3.size__I()
54767
- });
54768
- var $d_sc_convert_Wrappers$MapWrapper$$anon$2 = new $TypeData().initClass({
54769
- sc_convert_Wrappers$MapWrapper$$anon$2: 0
54770
- }, false, "scala.collection.convert.Wrappers$MapWrapper$$anon$2", {
54771
- sc_convert_Wrappers$MapWrapper$$anon$2: 1,
54772
- ju_AbstractSet: 1,
54773
- ju_AbstractCollection: 1,
54774
- O: 1,
54775
- ju_Collection: 1,
54776
- jl_Iterable: 1,
54777
- ju_Set: 1
54778
- });
54779
- $c_sc_convert_Wrappers$MapWrapper$$anon$2.prototype.$classData = $d_sc_convert_Wrappers$MapWrapper$$anon$2;
54780
- /** @constructor */
54781
54351
  function $c_scg_SeqFactory() {
54782
54352
  $c_scg_GenSeqFactory.call(this)
54783
54353
  }
@@ -57531,6 +57101,41 @@ function $m_Lio_kaitai_struct_format_RootIdentifier$() {
57531
57101
  return $n_Lio_kaitai_struct_format_RootIdentifier$
57532
57102
  }
57533
57103
  /** @constructor */
57104
+ function $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError() {
57105
+ $c_Lio_kaitai_struct_precompile_NotFoundError.call(this);
57106
+ this.label$6 = null;
57107
+ this.enum$6 = null;
57108
+ this.enumDefPath$6 = null
57109
+ }
57110
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype = new $h_Lio_kaitai_struct_precompile_NotFoundError();
57111
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.constructor = $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError;
57112
+ /** @constructor */
57113
+ function $h_Lio_kaitai_struct_precompile_EnumMemberNotFoundError() {
57114
+ /*<skip>*/
57115
+ }
57116
+ $h_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype = $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype;
57117
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.init___T__T__T = (function(label, $enum, enumDefPath) {
57118
+ this.label$6 = label;
57119
+ this.enum$6 = $enum;
57120
+ this.enumDefPath$6 = enumDefPath;
57121
+ var msg = (((((((("unable to find enum member '" + $enum) + "::") + label) + "' (enum '") + $enum) + "' defined at /") + enumDefPath) + ")");
57122
+ $c_jl_Throwable.prototype.init___T__jl_Throwable__Z__Z.call(this, msg, null, true, true);
57123
+ return this
57124
+ });
57125
+ var $d_Lio_kaitai_struct_precompile_EnumMemberNotFoundError = new $TypeData().initClass({
57126
+ Lio_kaitai_struct_precompile_EnumMemberNotFoundError: 0
57127
+ }, false, "io.kaitai.struct.precompile.EnumMemberNotFoundError", {
57128
+ Lio_kaitai_struct_precompile_EnumMemberNotFoundError: 1,
57129
+ Lio_kaitai_struct_precompile_NotFoundError: 1,
57130
+ Lio_kaitai_struct_precompile_ExpressionError: 1,
57131
+ jl_RuntimeException: 1,
57132
+ jl_Exception: 1,
57133
+ jl_Throwable: 1,
57134
+ O: 1,
57135
+ Ljava_io_Serializable: 1
57136
+ });
57137
+ $c_Lio_kaitai_struct_precompile_EnumMemberNotFoundError.prototype.$classData = $d_Lio_kaitai_struct_precompile_EnumMemberNotFoundError;
57138
+ /** @constructor */
57534
57139
  function $c_Lio_kaitai_struct_precompile_EnumNotFoundError() {
57535
57140
  $c_Lio_kaitai_struct_precompile_NotFoundError.call(this);
57536
57141
  this.name$6 = null;
@@ -63129,9 +62734,6 @@ function $h_Lio_kaitai_struct_translators_BaseTranslator() {
63129
62734
  /*<skip>*/
63130
62735
  }
63131
62736
  $h_Lio_kaitai_struct_translators_BaseTranslator.prototype = $c_Lio_kaitai_struct_translators_BaseTranslator.prototype;
63132
- $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
63133
- return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
63134
- });
63135
62737
  $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
63136
62738
  return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
63137
62739
  });
@@ -63385,7 +62987,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
63385
62987
  var _1 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(left);
63386
62988
  var _2 = this.detectType__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType(right);
63387
62989
  if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$NumericType))) {
63388
- return this.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
62990
+ return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
63389
62991
  };
63390
62992
  if (((_1 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType) && (_2 instanceof $c_Lio_kaitai_struct_datatype_DataType$BooleanType))) {
63391
62993
  var x$3 = $m_Lio_kaitai_struct_exprlang_Ast$cmpop$Eq$();
@@ -63396,7 +62998,7 @@ $c_Lio_kaitai_struct_translators_BaseTranslator.prototype.translate__Lio_kaitai_
63396
62998
  var jsx$1 = (x$5 === op$2)
63397
62999
  };
63398
63000
  if (jsx$1) {
63399
- return this.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op$2, right)
63001
+ return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op$2, right)
63400
63002
  } else {
63401
63003
  throw new $c_Lio_kaitai_struct_precompile_TypeMismatchError().init___T((("can't compare booleans using " + op$2) + " operator"))
63402
63004
  }
@@ -67420,10 +67022,12 @@ function $h_Lio_kaitai_struct_translators_PerlTranslator() {
67420
67022
  $h_Lio_kaitai_struct_translators_PerlTranslator.prototype = $c_Lio_kaitai_struct_translators_PerlTranslator.prototype;
67421
67023
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, base) {
67422
67024
  var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
67423
- if ((baseStr === "8")) {
67025
+ if ((baseStr === "2")) {
67026
+ return (("oct('0b' . " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
67027
+ } else if ((baseStr === "8")) {
67424
67028
  return (("oct(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
67425
67029
  } else if ((baseStr === "10")) {
67426
- return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
67030
+ return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + " + 0")
67427
67031
  } else if ((baseStr === "16")) {
67428
67032
  return (("hex(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ")")
67429
67033
  } else {
@@ -67439,6 +67043,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_
67439
67043
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s, from, to) {
67440
67044
  return this.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(s, from, to)
67441
67045
  });
67046
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67047
+ return this.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67048
+ });
67049
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67050
+ return this.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67051
+ });
67442
67052
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67443
67053
  return (("scalar(reverse(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)) + "))")
67444
67054
  });
@@ -67455,12 +67065,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strLength__Lio_kaitai_
67455
67065
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
67456
67066
  return this.floatToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
67457
67067
  });
67458
- $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
67459
- return (("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + "}[-1]")
67068
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67069
+ return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", 0, 1))")
67460
67070
  });
67461
67071
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLength__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67462
67072
  return this.strLength__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67463
67073
  });
67074
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(a) {
67075
+ return (("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(a)) + "}[-1]")
67076
+ });
67464
67077
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67465
67078
  return this.arrayMax__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67466
67079
  });
@@ -67531,6 +67144,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doIfExp__Lio_kaitai_st
67531
67144
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.asciiCharQuoteMap__sci_Map = (function() {
67532
67145
  return this.asciiCharQuoteMap$3
67533
67146
  });
67147
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(container, idx) {
67148
+ return this.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T(container, idx)
67149
+ });
67534
67150
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_kaitai_struct_datatype_DataType__sc_Seq__T = (function(t, value) {
67535
67151
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
67536
67152
  return (function(v$2) {
@@ -67548,7 +67164,15 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySubscript__Lio_ka
67548
67164
  return (((("@{" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + "}[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + "]")
67549
67165
  });
67550
67166
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strSubstring__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(s, from, to) {
67551
- return (((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s) + "[") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ":") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + "]")
67167
+ return (((((((("substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + ", (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(to)) + ") - (") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(from)) + "))")
67168
+ });
67169
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesLast__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67170
+ return (("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + ", -1, 1))")
67171
+ });
67172
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMax__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67173
+ var this$1 = this.importList$3;
67174
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
67175
+ return (("List::Util::max(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
67552
67176
  });
67553
67177
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doByteArrayNonLiteral__sc_Seq__T = (function(elts) {
67554
67178
  var jsx$1 = new $c_sjsr_AnonFunction1().init___sjs_js_Function1((function($this) {
@@ -67582,9 +67206,14 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMax__Lio_kaitai_s
67582
67206
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.kaitaiStreamSize__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(value) {
67583
67207
  return (this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->size()")
67584
67208
  });
67209
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67210
+ return this.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67211
+ });
67585
67212
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(i, base) {
67586
67213
  var baseStr = this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(base);
67587
- if ((baseStr === "8")) {
67214
+ if ((baseStr === "2")) {
67215
+ var format = "%b"
67216
+ } else if ((baseStr === "8")) {
67588
67217
  var format = "%o"
67589
67218
  } else if ((baseStr === "10")) {
67590
67219
  var format = "%d"
@@ -67596,6 +67225,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.intToStr__Lio_kaitai_s
67596
67225
  };
67597
67226
  return (((("sprintf('" + format) + "', ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(i)) + ")")
67598
67227
  });
67228
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesSubscript__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(container, idx) {
67229
+ return (((("unpack('C', substr(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(container)) + ", ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(idx)) + ", 1))")
67230
+ });
67599
67231
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doName__T__T = (function(s) {
67600
67232
  return (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR$1 === s) ? "$_" : (($m_Lio_kaitai_struct_format_Identifier$().ITERATOR2$1 === s) ? "$_buf" : (($m_Lio_kaitai_struct_format_Identifier$().INDEX$1 === s) ? "$i" : (s + "()"))))
67601
67233
  });
@@ -67607,12 +67239,12 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesToStr__T__Lio_kai
67607
67239
  $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "Encode");
67608
67240
  return (((("Encode::decode(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(encoding)) + ", ") + bytesExpr) + ")")
67609
67241
  });
67610
- $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
67611
- return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
67612
- });
67613
67242
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.enumToInt__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_datatype_DataType$EnumType__O = (function(value, et) {
67614
67243
  return this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
67615
67244
  });
67245
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.anyField__Lio_kaitai_struct_exprlang_Ast$expr__T__T = (function(value, attrName) {
67246
+ return ((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(value) + "->") + this.doName__T__T(attrName))
67247
+ });
67616
67248
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67617
67249
  return this.arraySize__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67618
67250
  });
@@ -67652,6 +67284,9 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doStrCompareOp__Lio_ka
67652
67284
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(s) {
67653
67285
  return this.strReverse__Lio_kaitai_struct_exprlang_Ast$expr__T(s)
67654
67286
  });
67287
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(b) {
67288
+ return this.bytesFirst__Lio_kaitai_struct_exprlang_Ast$expr__T(b)
67289
+ });
67655
67290
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doBytesCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
67656
67291
  return this.doStrCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(left, op, right)
67657
67292
  });
@@ -67690,6 +67325,11 @@ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.doArrayLiteral__Lio_ka
67690
67325
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67691
67326
  return this.arrayLast__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67692
67327
  });
67328
+ $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.bytesMin__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(b) {
67329
+ var this$1 = this.importList$3;
67330
+ $m_Lio_kaitai_struct_Utils$().addUniqueAttr__scm_ListBuffer__O__V(this$1.list$1, "List::Util");
67331
+ return (("List::Util::min(unpack('C*', " + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(b)) + "))")
67332
+ });
67693
67333
  $c_Lio_kaitai_struct_translators_PerlTranslator.prototype.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(a) {
67694
67334
  return this.arrayMin__Lio_kaitai_struct_exprlang_Ast$expr__T(a)
67695
67335
  });
@@ -70937,34 +70577,6 @@ $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.strToInt__Lio_kaitai_st
70937
70577
  var add = ((baseStr === "10") ? "" : (", " + baseStr));
70938
70578
  return ((("tonumber(" + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(s)) + add) + ")")
70939
70579
  });
70940
- $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T = (function(left, op, right) {
70941
- var f = (function($this) {
70942
- return (function(n$2) {
70943
- var n = $uZ(n$2);
70944
- return (n ? "1" : "0")
70945
- })
70946
- })(this);
70947
- if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70948
- var x4 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
70949
- var l = x4.n$1;
70950
- if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70951
- var x5 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
70952
- var r = x5.n$1;
70953
- return ((((f(l) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r))
70954
- }
70955
- };
70956
- if ((left instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70957
- var x7 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(left);
70958
- var l$2 = x7.n$1;
70959
- return ((((f(l$2) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(right))
70960
- };
70961
- if ((right instanceof $c_Lio_kaitai_struct_exprlang_Ast$expr$Bool)) {
70962
- var x9 = $as_Lio_kaitai_struct_exprlang_Ast$expr$Bool(right);
70963
- var r$3 = x9.n$1;
70964
- return ((((this.translate__Lio_kaitai_struct_exprlang_Ast$expr__T(left) + " ") + this.cmpOp__Lio_kaitai_struct_exprlang_Ast$cmpop__T(op)) + " ") + f(r$3))
70965
- };
70966
- return $f_Lio_kaitai_struct_translators_CommonOps__doNumericCompareOp__Lio_kaitai_struct_exprlang_Ast$expr__Lio_kaitai_struct_exprlang_Ast$cmpop__Lio_kaitai_struct_exprlang_Ast$expr__T(this, left, op, right)
70967
- });
70968
70580
  $c_Lio_kaitai_struct_translators_LuaTranslator.prototype.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__O = (function(value) {
70969
70581
  return this.boolToInt__Lio_kaitai_struct_exprlang_Ast$expr__T(value)
70970
70582
  });
@@ -74479,6 +74091,25 @@ function $f_sc_IndexedSeqOptimized__reverse__O($thiz) {
74479
74091
  };
74480
74092
  return b.result__O()
74481
74093
  }
74094
+ function $f_sc_IndexedSeqOptimized__find__F1__s_Option($thiz, p) {
74095
+ var len = $thiz.length__I();
74096
+ var i = 0;
74097
+ while (true) {
74098
+ if ((i < len)) {
74099
+ var arg1 = $thiz.apply__I__O(i);
74100
+ var jsx$1 = (!$uZ(p.apply__O__O(arg1)))
74101
+ } else {
74102
+ var jsx$1 = false
74103
+ };
74104
+ if (jsx$1) {
74105
+ i = ((1 + i) | 0)
74106
+ } else {
74107
+ break
74108
+ }
74109
+ };
74110
+ var i$1 = i;
74111
+ return ((i$1 < $thiz.length__I()) ? new $c_s_Some().init___O($thiz.apply__I__O(i$1)) : $m_s_None$())
74112
+ }
74482
74113
  function $f_sc_IndexedSeqOptimized__last__O($thiz) {
74483
74114
  return (($thiz.length__I() > 0) ? $thiz.apply__I__O((((-1) + $thiz.length__I()) | 0)) : $f_sc_TraversableLike__last__O($thiz))
74484
74115
  }
@@ -74508,12 +74139,12 @@ function $f_sc_IndexedSeqOptimized__copyToArray__O__I__I__V($thiz, xs, start, le
74508
74139
  j = ((1 + j) | 0)
74509
74140
  }
74510
74141
  }
74511
- function $f_sc_IndexedSeqOptimized__takeRight__I__O($thiz, n) {
74512
- return $thiz.slice__I__I__O((($thiz.length__I() - ((n > 0) ? n : 0)) | 0), $thiz.length__I())
74513
- }
74514
74142
  function $f_sc_IndexedSeqOptimized__dropRight__I__O($thiz, n) {
74515
74143
  return $thiz.slice__I__I__O(0, (($thiz.length__I() - ((n > 0) ? n : 0)) | 0))
74516
74144
  }
74145
+ function $f_sc_IndexedSeqOptimized__takeRight__I__O($thiz, n) {
74146
+ return $thiz.slice__I__I__O((($thiz.length__I() - ((n > 0) ? n : 0)) | 0), $thiz.length__I())
74147
+ }
74517
74148
  function $f_sc_IndexedSeqOptimized__reduceLeft__F2__O($thiz, op) {
74518
74149
  if (($thiz.length__I() > 0)) {
74519
74150
  var start = 1;
@@ -74588,6 +74219,16 @@ function $f_sc_LinearSeqOptimized__foldLeft__O__F2__O($thiz, z, op) {
74588
74219
  };
74589
74220
  return acc
74590
74221
  }
74222
+ function $f_sc_LinearSeqOptimized__find__F1__s_Option($thiz, p) {
74223
+ var these = $thiz;
74224
+ while ((!these.isEmpty__Z())) {
74225
+ if ($uZ(p.apply__O__O(these.head__O()))) {
74226
+ return new $c_s_Some().init___O(these.head__O())
74227
+ };
74228
+ these = $as_sc_LinearSeqOptimized(these.tail__O())
74229
+ };
74230
+ return $m_s_None$()
74231
+ }
74591
74232
  function $f_sc_LinearSeqOptimized__length__I($thiz) {
74592
74233
  var these = $thiz;
74593
74234
  var len = 0;
@@ -74622,13 +74263,6 @@ function $f_sc_LinearSeqOptimized__contains__O__Z($thiz, elem) {
74622
74263
  function $f_sc_LinearSeqOptimized__isDefinedAt__I__Z($thiz, x) {
74623
74264
  return ((x >= 0) && ($f_sc_LinearSeqOptimized__lengthCompare__I__I($thiz, x) > 0))
74624
74265
  }
74625
- function $f_sc_LinearSeqOptimized__reduceLeft__F2__O($thiz, op) {
74626
- if ($thiz.isEmpty__Z()) {
74627
- throw new $c_jl_UnsupportedOperationException().init___T("empty.reduceLeft")
74628
- } else {
74629
- return $as_sc_LinearSeqOptimized($thiz.tail__O()).foldLeft__O__F2__O($thiz.head__O(), op)
74630
- }
74631
- }
74632
74266
  function $f_sc_LinearSeqOptimized__loop$1__psc_LinearSeqOptimized__I__sc_LinearSeqOptimized__I__I($thiz, i, xs, len$1) {
74633
74267
  _loop: while (true) {
74634
74268
  if ((i === len$1)) {
@@ -74644,6 +74278,13 @@ function $f_sc_LinearSeqOptimized__loop$1__psc_LinearSeqOptimized__I__sc_LinearS
74644
74278
  }
74645
74279
  }
74646
74280
  }
74281
+ function $f_sc_LinearSeqOptimized__reduceLeft__F2__O($thiz, op) {
74282
+ if ($thiz.isEmpty__Z()) {
74283
+ throw new $c_jl_UnsupportedOperationException().init___T("empty.reduceLeft")
74284
+ } else {
74285
+ return $as_sc_LinearSeqOptimized($thiz.tail__O()).foldLeft__O__F2__O($thiz.head__O(), op)
74286
+ }
74287
+ }
74647
74288
  function $is_sc_LinearSeqOptimized(obj) {
74648
74289
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sc_LinearSeqOptimized)))
74649
74290
  }
@@ -79992,8 +79633,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.condRepeatUntilFooter__Lio_
79992
79633
  this.out$2.puts__T__V("end");
79993
79634
  this.out$2.puts__T__V("i = i + 1");
79994
79635
  this.out$2.dec__V();
79995
- this.out$2.puts__T__V("end");
79996
- this.out$2.dec__V()
79636
+ this.out$2.puts__T__V("end")
79997
79637
  });
79998
79638
  $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.switchEnd__V = (function() {
79999
79639
  /*<skip>*/
@@ -80210,7 +79850,7 @@ $c_Lio_kaitai_struct_languages_LuaCompiler.prototype.parseExpr__Lio_kaitai_struc
80210
79850
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType1)) {
80211
79851
  var x4 = $as_Lio_kaitai_struct_datatype_DataType$BitsType1(dataType);
80212
79852
  var bitEndian = x4.bitEndian$2;
80213
- return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1)")
79853
+ return (((io + ":read_bits_int_") + bitEndian.toSuffix__T()) + "(1) ~= 0")
80214
79854
  } else if ((dataType instanceof $c_Lio_kaitai_struct_datatype_DataType$BitsType)) {
80215
79855
  var x5 = $as_Lio_kaitai_struct_datatype_DataType$BitsType(dataType);
80216
79856
  var width = x5.width$3;
@@ -84918,6 +84558,10 @@ $c_sc_AbstractIterable.prototype.foreach__F1__V = (function(f) {
84918
84558
  var this$1 = this.iterator__sc_Iterator();
84919
84559
  $f_sc_Iterator__foreach__F1__V(this$1, f)
84920
84560
  });
84561
+ $c_sc_AbstractIterable.prototype.find__F1__s_Option = (function(p) {
84562
+ var this$1 = this.iterator__sc_Iterator();
84563
+ return $f_sc_Iterator__find__F1__s_Option(this$1, p)
84564
+ });
84921
84565
  $c_sc_AbstractIterable.prototype.toStream__sci_Stream = (function() {
84922
84566
  return this.iterator__sc_Iterator().toStream__sci_Stream()
84923
84567
  });
@@ -85278,13 +84922,13 @@ function $h_scm_ArrayOps$ofRef() {
85278
84922
  /*<skip>*/
85279
84923
  }
85280
84924
  $h_scm_ArrayOps$ofRef.prototype = $c_scm_ArrayOps$ofRef.prototype;
85281
- $c_scm_ArrayOps$ofRef.prototype.copyToArray__O__I__V = (function(xs, start) {
85282
- $f_sc_TraversableOnce__copyToArray__O__I__V(this, xs, start)
85283
- });
85284
84925
  $c_scm_ArrayOps$ofRef.prototype.seq__sc_TraversableOnce = (function() {
85285
84926
  var $$this = this.repr$1;
85286
84927
  return new $c_scm_WrappedArray$ofRef().init___AO($$this)
85287
84928
  });
84929
+ $c_scm_ArrayOps$ofRef.prototype.copyToArray__O__I__V = (function(xs, start) {
84930
+ $f_sc_TraversableOnce__copyToArray__O__I__V(this, xs, start)
84931
+ });
85288
84932
  $c_scm_ArrayOps$ofRef.prototype.head__O = (function() {
85289
84933
  return $f_sc_IndexedSeqOptimized__head__O(this)
85290
84934
  });
@@ -85345,13 +84989,13 @@ $c_scm_ArrayOps$ofRef.prototype.toVector__sci_Vector = (function() {
85345
84989
  var cbf = $m_sc_IndexedSeq$().ReusableCBF$6;
85346
84990
  return $as_sci_Vector($f_sc_TraversableLike__to__scg_CanBuildFrom__O(this, cbf))
85347
84991
  });
84992
+ $c_scm_ArrayOps$ofRef.prototype.toBuffer__scm_Buffer = (function() {
84993
+ return $f_sc_IndexedSeqLike__toBuffer__scm_Buffer(this)
84994
+ });
85348
84995
  $c_scm_ArrayOps$ofRef.prototype.size__I = (function() {
85349
84996
  var $$this = this.repr$1;
85350
84997
  return $$this.u.length
85351
84998
  });
85352
- $c_scm_ArrayOps$ofRef.prototype.toBuffer__scm_Buffer = (function() {
85353
- return $f_sc_IndexedSeqLike__toBuffer__scm_Buffer(this)
85354
- });
85355
84999
  $c_scm_ArrayOps$ofRef.prototype.init___AO = (function(repr) {
85356
85000
  this.repr$1 = repr;
85357
85001
  return this
@@ -85670,33 +85314,33 @@ $c_sc_AbstractSeq.prototype.lengthCompare__I__I = (function(len) {
85670
85314
  $c_sc_AbstractSeq.prototype.indices__sci_Range = (function() {
85671
85315
  return $f_sc_SeqLike__indices__sci_Range(this)
85672
85316
  });
85673
- $c_sc_AbstractSeq.prototype.runWith__F1__F1 = (function(action) {
85674
- return $f_s_PartialFunction__runWith__F1__F1(this, action)
85675
- });
85676
85317
  $c_sc_AbstractSeq.prototype.isEmpty__Z = (function() {
85677
85318
  return $f_sc_SeqLike__isEmpty__Z(this)
85678
85319
  });
85320
+ $c_sc_AbstractSeq.prototype.runWith__F1__F1 = (function(action) {
85321
+ return $f_s_PartialFunction__runWith__F1__F1(this, action)
85322
+ });
85679
85323
  $c_sc_AbstractSeq.prototype.equals__O__Z = (function(that) {
85680
85324
  return $f_sc_GenSeqLike__equals__O__Z(this, that)
85681
85325
  });
85682
- $c_sc_AbstractSeq.prototype.toString__T = (function() {
85683
- return $f_sc_TraversableLike__toString__T(this)
85684
- });
85685
85326
  $c_sc_AbstractSeq.prototype.$$colon$plus__O__scg_CanBuildFrom__O = (function(elem, bf) {
85686
85327
  return $f_sc_SeqLike__$$colon$plus__O__scg_CanBuildFrom__O(this, elem, bf)
85687
85328
  });
85329
+ $c_sc_AbstractSeq.prototype.toString__T = (function() {
85330
+ return $f_sc_TraversableLike__toString__T(this)
85331
+ });
85688
85332
  $c_sc_AbstractSeq.prototype.size__I = (function() {
85689
85333
  return this.length__I()
85690
85334
  });
85691
85335
  $c_sc_AbstractSeq.prototype.thisCollection__sc_Seq = (function() {
85692
85336
  return this
85693
85337
  });
85694
- $c_sc_AbstractSeq.prototype.applyOrElse__O__F1__O = (function(x, $default) {
85695
- return $f_s_PartialFunction__applyOrElse__O__F1__O(this, x, $default)
85696
- });
85697
85338
  $c_sc_AbstractSeq.prototype.hashCode__I = (function() {
85698
85339
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this.seq__sc_Seq())
85699
85340
  });
85341
+ $c_sc_AbstractSeq.prototype.applyOrElse__O__F1__O = (function(x, $default) {
85342
+ return $f_s_PartialFunction__applyOrElse__O__F1__O(this, x, $default)
85343
+ });
85700
85344
  function $is_sci_Seq(obj) {
85701
85345
  return (!(!((obj && obj.$classData) && obj.$classData.ancestors.sci_Seq)))
85702
85346
  }
@@ -86425,6 +86069,9 @@ $c_sci_Set$Set1.prototype.iterator__sc_Iterator = (function() {
86425
86069
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86426
86070
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86427
86071
  });
86072
+ $c_sci_Set$Set1.prototype.find__F1__s_Option = (function(p) {
86073
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : $m_s_None$())
86074
+ });
86428
86075
  $c_sci_Set$Set1.prototype.empty__sc_Set = (function() {
86429
86076
  $m_sci_Set$();
86430
86077
  return $m_sci_Set$EmptySet$()
@@ -86546,6 +86193,9 @@ $c_sci_Set$Set2.prototype.iterator__sc_Iterator = (function() {
86546
86193
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86547
86194
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86548
86195
  });
86196
+ $c_sci_Set$Set2.prototype.find__F1__s_Option = (function(p) {
86197
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : $m_s_None$()))
86198
+ });
86549
86199
  $c_sci_Set$Set2.prototype.empty__sc_Set = (function() {
86550
86200
  $m_sci_Set$();
86551
86201
  return $m_sci_Set$EmptySet$()
@@ -86670,6 +86320,9 @@ $c_sci_Set$Set3.prototype.iterator__sc_Iterator = (function() {
86670
86320
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86671
86321
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86672
86322
  });
86323
+ $c_sci_Set$Set3.prototype.find__F1__s_Option = (function(p) {
86324
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : ($uZ(p.apply__O__O(this.elem3$4)) ? new $c_s_Some().init___O(this.elem3$4) : $m_s_None$())))
86325
+ });
86673
86326
  $c_sci_Set$Set3.prototype.empty__sc_Set = (function() {
86674
86327
  $m_sci_Set$();
86675
86328
  return $m_sci_Set$EmptySet$()
@@ -86790,6 +86443,9 @@ $c_sci_Set$Set4.prototype.iterator__sc_Iterator = (function() {
86790
86443
  var elems = new $c_sjs_js_WrappedArray().init___sjs_js_Array(array);
86791
86444
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(elems, 0, $uI(elems.array$6.length))
86792
86445
  });
86446
+ $c_sci_Set$Set4.prototype.find__F1__s_Option = (function(p) {
86447
+ return ($uZ(p.apply__O__O(this.elem1$4)) ? new $c_s_Some().init___O(this.elem1$4) : ($uZ(p.apply__O__O(this.elem2$4)) ? new $c_s_Some().init___O(this.elem2$4) : ($uZ(p.apply__O__O(this.elem3$4)) ? new $c_s_Some().init___O(this.elem3$4) : ($uZ(p.apply__O__O(this.elem4$4)) ? new $c_s_Some().init___O(this.elem4$4) : $m_s_None$()))))
86448
+ });
86793
86449
  $c_sci_Set$Set4.prototype.empty__sc_Set = (function() {
86794
86450
  $m_sci_Set$();
86795
86451
  return $m_sci_Set$EmptySet$()
@@ -89876,6 +89532,9 @@ $c_sci_Stream.prototype.filterImpl__F1__Z__O = (function(p, isFlipped) {
89876
89532
  $c_sci_Stream.prototype.iterator__sc_Iterator = (function() {
89877
89533
  return new $c_sci_StreamIterator().init___sci_Stream(this)
89878
89534
  });
89535
+ $c_sci_Stream.prototype.find__F1__s_Option = (function(p) {
89536
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this, p)
89537
+ });
89879
89538
  $c_sci_Stream.prototype.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O = (function(that, bf) {
89880
89539
  if ((bf.apply__O__scm_Builder(this) instanceof $c_sci_Stream$StreamBuilder)) {
89881
89540
  if (this.isEmpty__Z()) {
@@ -90648,6 +90307,9 @@ $c_sci_List.prototype.slice__I__I__sci_List = (function(from, until) {
90648
90307
  var lo = ((from > 0) ? from : 0);
90649
90308
  return (((until <= lo) || this.isEmpty__Z()) ? $m_sci_Nil$() : this.drop__I__sci_List(lo).take__I__sci_List(((until - lo) | 0)))
90650
90309
  });
90310
+ $c_sci_List.prototype.iterator__sc_Iterator = (function() {
90311
+ return new $c_sc_LinearSeqLike$$anon$1().init___sc_LinearSeqLike(this)
90312
+ });
90651
90313
  $c_sci_List.prototype.drop__I__sci_List = (function(n) {
90652
90314
  var these = this;
90653
90315
  var count = n;
@@ -90658,8 +90320,8 @@ $c_sci_List.prototype.drop__I__sci_List = (function(n) {
90658
90320
  };
90659
90321
  return these
90660
90322
  });
90661
- $c_sci_List.prototype.iterator__sc_Iterator = (function() {
90662
- return new $c_sc_LinearSeqLike$$anon$1().init___sc_LinearSeqLike(this)
90323
+ $c_sci_List.prototype.find__F1__s_Option = (function(p) {
90324
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this, p)
90663
90325
  });
90664
90326
  $c_sci_List.prototype.$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O = (function(that, bf) {
90665
90327
  return ((bf === $m_sci_List$().ReusableCBFInstance$2) ? that.seq__sc_TraversableOnce().toList__sci_List().$$colon$colon$colon__sci_List__sci_List(this) : $f_sc_TraversableLike__$$plus$plus__sc_GenTraversableOnce__scg_CanBuildFrom__O(this, that, bf))
@@ -91989,12 +91651,12 @@ $c_sci_WrappedString.prototype.apply__O__O = (function(v1) {
91989
91651
  $c_sci_WrappedString.prototype.exists__F1__Z = (function(p) {
91990
91652
  return $f_sc_IndexedSeqOptimized__exists__F1__Z(this, p)
91991
91653
  });
91992
- $c_sci_WrappedString.prototype.isEmpty__Z = (function() {
91993
- return $f_sc_IndexedSeqOptimized__isEmpty__Z(this)
91994
- });
91995
91654
  $c_sci_WrappedString.prototype.toList__sci_List = (function() {
91996
91655
  return $f_sc_IndexedSeqOptimized__toList__sci_List(this)
91997
91656
  });
91657
+ $c_sci_WrappedString.prototype.isEmpty__Z = (function() {
91658
+ return $f_sc_IndexedSeqOptimized__isEmpty__Z(this)
91659
+ });
91998
91660
  $c_sci_WrappedString.prototype.seq__sc_Iterable = (function() {
91999
91661
  return this
92000
91662
  });
@@ -92005,12 +91667,12 @@ $c_sci_WrappedString.prototype.apply__I__C = (function(n) {
92005
91667
  var thiz = this.self$4;
92006
91668
  return (65535 & $uI(thiz.charCodeAt(n)))
92007
91669
  });
92008
- $c_sci_WrappedString.prototype.companion__scg_GenericCompanion = (function() {
92009
- return $m_sci_IndexedSeq$()
92010
- });
92011
91670
  $c_sci_WrappedString.prototype.toString__T = (function() {
92012
91671
  return this.self$4
92013
91672
  });
91673
+ $c_sci_WrappedString.prototype.companion__scg_GenericCompanion = (function() {
91674
+ return $m_sci_IndexedSeq$()
91675
+ });
92014
91676
  $c_sci_WrappedString.prototype.foreach__F1__V = (function(f) {
92015
91677
  $f_sc_IndexedSeqOptimized__foreach__F1__V(this, f)
92016
91678
  });
@@ -92039,6 +91701,9 @@ $c_sci_WrappedString.prototype.iterator__sc_Iterator = (function() {
92039
91701
  var thiz = this.self$4;
92040
91702
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(this, 0, $uI(thiz.length))
92041
91703
  });
91704
+ $c_sci_WrappedString.prototype.find__F1__s_Option = (function(p) {
91705
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
91706
+ });
92042
91707
  $c_sci_WrappedString.prototype.mkString__T = (function() {
92043
91708
  return this.self$4
92044
91709
  });
@@ -92073,14 +91738,11 @@ $c_sci_WrappedString.prototype.init___T = (function(self) {
92073
91738
  this.self$4 = self;
92074
91739
  return this
92075
91740
  });
92076
- $c_sci_WrappedString.prototype.dropRight__I__O = (function(n) {
92077
- return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
92078
- });
92079
91741
  $c_sci_WrappedString.prototype.takeRight__I__O = (function(n) {
92080
91742
  return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
92081
91743
  });
92082
- $c_sci_WrappedString.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
92083
- return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.self$4)
91744
+ $c_sci_WrappedString.prototype.dropRight__I__O = (function(n) {
91745
+ return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
92084
91746
  });
92085
91747
  $c_sci_WrappedString.prototype.slice__I__I__sci_WrappedString = (function(from, until) {
92086
91748
  var start = ((from < 0) ? 0 : from);
@@ -92103,6 +91765,9 @@ $c_sci_WrappedString.prototype.slice__I__I__sci_WrappedString = (function(from,
92103
91765
  var thiz$3 = $m_s_Predef$().unwrapString__sci_WrappedString__T(this);
92104
91766
  return new $c_sci_WrappedString().init___T($as_T(thiz$3.substring(start, end)))
92105
91767
  });
91768
+ $c_sci_WrappedString.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
91769
+ return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.self$4)
91770
+ });
92106
91771
  $c_sci_WrappedString.prototype.reduceLeft__F2__O = (function(op) {
92107
91772
  return $f_sc_IndexedSeqOptimized__reduceLeft__F2__O(this, op)
92108
91773
  });
@@ -93306,6 +92971,9 @@ $c_scm_WrappedArray.prototype.seq__scm_Seq = (function() {
93306
92971
  $c_scm_WrappedArray.prototype.iterator__sc_Iterator = (function() {
93307
92972
  return new $c_sc_IndexedSeqLike$Elements().init___sc_IndexedSeqLike__I__I(this, 0, this.length__I())
93308
92973
  });
92974
+ $c_scm_WrappedArray.prototype.find__F1__s_Option = (function(p) {
92975
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
92976
+ });
93309
92977
  $c_scm_WrappedArray.prototype.seq__sc_Seq = (function() {
93310
92978
  return this
93311
92979
  });
@@ -93349,19 +93017,6 @@ $c_scm_WrappedArray.prototype.stringPrefix__T = (function() {
93349
93017
  return "WrappedArray"
93350
93018
  });
93351
93019
  /** @constructor */
93352
- function $c_sc_convert_Wrappers$JMapWrapper() {
93353
- /*<skip>*/
93354
- }
93355
- function $as_sc_convert_Wrappers$JMapWrapper(obj) {
93356
- return (((obj instanceof $c_sc_convert_Wrappers$JMapWrapper) || (obj === null)) ? obj : $throwClassCastException(obj, "scala.collection.convert.Wrappers$JMapWrapper"))
93357
- }
93358
- function $isArrayOf_sc_convert_Wrappers$JMapWrapper(obj, depth) {
93359
- return (!(!(((obj && obj.$classData) && (obj.$classData.arrayDepth === depth)) && obj.$classData.arrayBase.ancestors.sc_convert_Wrappers$JMapWrapper)))
93360
- }
93361
- function $asArrayOf_sc_convert_Wrappers$JMapWrapper(obj, depth) {
93362
- return (($isArrayOf_sc_convert_Wrappers$JMapWrapper(obj, depth) || (obj === null)) ? obj : $throwArrayCastException(obj, "Lscala.collection.convert.Wrappers$JMapWrapper;", depth))
93363
- }
93364
- /** @constructor */
93365
93020
  function $c_scm_ArraySeq() {
93366
93021
  $c_scm_AbstractSeq.call(this);
93367
93022
  this.length$5 = 0;
@@ -93441,6 +93096,9 @@ $c_scm_ArraySeq.prototype.iterator__sc_Iterator = (function() {
93441
93096
  $c_scm_ArraySeq.prototype.seq__scm_Seq = (function() {
93442
93097
  return this
93443
93098
  });
93099
+ $c_scm_ArraySeq.prototype.find__F1__s_Option = (function(p) {
93100
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
93101
+ });
93444
93102
  $c_scm_ArraySeq.prototype.init___I = (function(length) {
93445
93103
  this.length$5 = length;
93446
93104
  this.array$5 = $newArrayObject($d_O.getArrayOf(), [length]);
@@ -93477,12 +93135,12 @@ $c_scm_ArraySeq.prototype.copyToArray__O__I__I__V = (function(xs, start, len) {
93477
93135
  $c_scm_ArraySeq.prototype.hashCode__I = (function() {
93478
93136
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this)
93479
93137
  });
93480
- $c_scm_ArraySeq.prototype.takeRight__I__O = (function(n) {
93481
- return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
93482
- });
93483
93138
  $c_scm_ArraySeq.prototype.dropRight__I__O = (function(n) {
93484
93139
  return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
93485
93140
  });
93141
+ $c_scm_ArraySeq.prototype.takeRight__I__O = (function(n) {
93142
+ return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
93143
+ });
93486
93144
  $c_scm_ArraySeq.prototype.reduceLeft__F2__O = (function(op) {
93487
93145
  return $f_sc_IndexedSeqOptimized__reduceLeft__F2__O(this, op)
93488
93146
  });
@@ -95194,6 +94852,10 @@ function $h_scm_ListBuffer() {
95194
94852
  /*<skip>*/
95195
94853
  }
95196
94854
  $h_scm_ListBuffer.prototype = $c_scm_ListBuffer.prototype;
94855
+ $c_scm_ListBuffer.prototype.copyToArray__O__I__V = (function(xs, start) {
94856
+ var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
94857
+ $f_sc_TraversableOnce__copyToArray__O__I__V(this$1, xs, start)
94858
+ });
95197
94859
  $c_scm_ListBuffer.prototype.copy__p6__V = (function() {
95198
94860
  if (this.isEmpty__Z()) {
95199
94861
  return (void 0)
@@ -95208,10 +94870,6 @@ $c_scm_ListBuffer.prototype.copy__p6__V = (function() {
95208
94870
  cursor = this$2.tail__sci_List()
95209
94871
  }
95210
94872
  });
95211
- $c_scm_ListBuffer.prototype.copyToArray__O__I__V = (function(xs, start) {
95212
- var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95213
- $f_sc_TraversableOnce__copyToArray__O__I__V(this$1, xs, start)
95214
- });
95215
94873
  $c_scm_ListBuffer.prototype.head__O = (function() {
95216
94874
  return this.scala$collection$mutable$ListBuffer$$start$6.head__O()
95217
94875
  });
@@ -95323,6 +94981,10 @@ $c_scm_ListBuffer.prototype.iterator__sc_Iterator = (function() {
95323
94981
  $c_scm_ListBuffer.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95324
94982
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95325
94983
  });
94984
+ $c_scm_ListBuffer.prototype.find__F1__s_Option = (function(p) {
94985
+ var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
94986
+ return $f_sc_LinearSeqOptimized__find__F1__s_Option(this$1, p)
94987
+ });
95326
94988
  $c_scm_ListBuffer.prototype.mkString__T = (function() {
95327
94989
  var this$1 = this.scala$collection$mutable$ListBuffer$$start$6;
95328
94990
  return $f_sc_TraversableOnce__mkString__T__T__T__T(this$1, "", "", "")
@@ -95619,6 +95281,9 @@ $c_scm_StringBuilder.prototype.seq__scm_Seq = (function() {
95619
95281
  $c_scm_StringBuilder.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95620
95282
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95621
95283
  });
95284
+ $c_scm_StringBuilder.prototype.find__F1__s_Option = (function(p) {
95285
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
95286
+ });
95622
95287
  $c_scm_StringBuilder.prototype.init___I__T = (function(initCapacity, initValue) {
95623
95288
  var this$2 = new $c_jl_StringBuilder().init___I((($uI(initValue.length) + initCapacity) | 0));
95624
95289
  this$2.java$lang$StringBuilder$$content$f = (("" + this$2.java$lang$StringBuilder$$content$f) + initValue);
@@ -95675,12 +95340,12 @@ $c_scm_StringBuilder.prototype.copyToArray__O__I__I__V = (function(xs, start, le
95675
95340
  $c_scm_StringBuilder.prototype.hashCode__I = (function() {
95676
95341
  return $m_s_util_hashing_MurmurHash3$().seqHash__sc_Seq__I(this)
95677
95342
  });
95678
- $c_scm_StringBuilder.prototype.takeRight__I__O = (function(n) {
95679
- return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
95680
- });
95681
95343
  $c_scm_StringBuilder.prototype.dropRight__I__O = (function(n) {
95682
95344
  return $f_sc_IndexedSeqOptimized__dropRight__I__O(this, n)
95683
95345
  });
95346
+ $c_scm_StringBuilder.prototype.takeRight__I__O = (function(n) {
95347
+ return $f_sc_IndexedSeqOptimized__takeRight__I__O(this, n)
95348
+ });
95684
95349
  $c_scm_StringBuilder.prototype.toArray__s_reflect_ClassTag__O = (function(evidence$1) {
95685
95350
  return $m_sjsr_RuntimeString$().toCharArray__T__AC(this.underlying$5.java$lang$StringBuilder$$content$f)
95686
95351
  });
@@ -95846,6 +95511,9 @@ $c_sjs_js_WrappedArray.prototype.seq__scm_Seq = (function() {
95846
95511
  $c_sjs_js_WrappedArray.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
95847
95512
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
95848
95513
  });
95514
+ $c_sjs_js_WrappedArray.prototype.find__F1__s_Option = (function(p) {
95515
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
95516
+ });
95849
95517
  $c_sjs_js_WrappedArray.prototype.length__I = (function() {
95850
95518
  return $uI(this.array$6.length)
95851
95519
  });
@@ -96060,6 +95728,9 @@ $c_scm_ArrayBuffer.prototype.seq__scm_Seq = (function() {
96060
95728
  $c_scm_ArrayBuffer.prototype.sizeHintBounded__I__sc_TraversableLike__V = (function(size, boundingColl) {
96061
95729
  $f_scm_Builder__sizeHintBounded__I__sc_TraversableLike__V(this, size, boundingColl)
96062
95730
  });
95731
+ $c_scm_ArrayBuffer.prototype.find__F1__s_Option = (function(p) {
95732
+ return $f_sc_IndexedSeqOptimized__find__F1__s_Option(this, p)
95733
+ });
96063
95734
  $c_scm_ArrayBuffer.prototype.init___I = (function(initialSize) {
96064
95735
  this.initialSize$6 = initialSize;
96065
95736
  $f_scm_ResizableArray__$$init$__V(this);