git-semver-tagger 1.6.4 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin/Kotlin-DateTime-library-kotlinx-datetime.js +2 -2
- package/kotlin/clikt-clikt-mordant.js +77 -77
- package/kotlin/clikt-clikt.js +1303 -1303
- package/kotlin/colormath-root-colormath.js +424 -424
- package/kotlin/command-line-tools-tagger-cli.js +160 -144
- package/kotlin/command-line-tools-tagger-cli.js.map +1 -1
- package/kotlin/kotlinx-serialization-kotlinx-serialization-json.js +954 -954
- package/kotlin/mordant-mordant.js +1185 -1185
- package/kotlin/tools-tagger-core.js +178 -120
- package/kotlin/tools-tagger-core.js.map +1 -1
- package/package.json +1 -1
|
@@ -139,26 +139,26 @@
|
|
|
139
139
|
} else if (other === get_DEFAULT_STYLE()) {
|
|
140
140
|
tmp = this;
|
|
141
141
|
} else {
|
|
142
|
-
var tmp0_elvis_lhs = other.
|
|
143
|
-
var tmp_0 = tmp0_elvis_lhs == null ? this.
|
|
144
|
-
var tmp1_elvis_lhs = other.
|
|
145
|
-
var tmp_1 = tmp1_elvis_lhs == null ? this.
|
|
146
|
-
var tmp2_elvis_lhs = other.
|
|
147
|
-
var tmp_2 = tmp2_elvis_lhs == null ? this.
|
|
148
|
-
var tmp3_elvis_lhs = other.
|
|
149
|
-
var tmp_3 = tmp3_elvis_lhs == null ? this.
|
|
150
|
-
var tmp4_elvis_lhs = other.
|
|
151
|
-
var tmp_4 = tmp4_elvis_lhs == null ? this.
|
|
152
|
-
var tmp5_elvis_lhs = other.
|
|
153
|
-
var tmp_5 = tmp5_elvis_lhs == null ? this.
|
|
154
|
-
var tmp6_elvis_lhs = other.
|
|
155
|
-
var tmp_6 = tmp6_elvis_lhs == null ? this.
|
|
156
|
-
var tmp7_elvis_lhs = other.
|
|
157
|
-
var tmp_7 = tmp7_elvis_lhs == null ? this.
|
|
158
|
-
var tmp8_elvis_lhs = other.
|
|
159
|
-
var tmp_8 = tmp8_elvis_lhs == null ? this.
|
|
160
|
-
var tmp9_elvis_lhs = other.
|
|
161
|
-
tmp = new TxtStyle(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp9_elvis_lhs == null ? this.
|
|
142
|
+
var tmp0_elvis_lhs = other.l2d();
|
|
143
|
+
var tmp_0 = tmp0_elvis_lhs == null ? this.l2d() : tmp0_elvis_lhs;
|
|
144
|
+
var tmp1_elvis_lhs = other.m2d();
|
|
145
|
+
var tmp_1 = tmp1_elvis_lhs == null ? this.m2d() : tmp1_elvis_lhs;
|
|
146
|
+
var tmp2_elvis_lhs = other.r2d();
|
|
147
|
+
var tmp_2 = tmp2_elvis_lhs == null ? this.r2d() : tmp2_elvis_lhs;
|
|
148
|
+
var tmp3_elvis_lhs = other.n2d();
|
|
149
|
+
var tmp_3 = tmp3_elvis_lhs == null ? this.n2d() : tmp3_elvis_lhs;
|
|
150
|
+
var tmp4_elvis_lhs = other.o2d();
|
|
151
|
+
var tmp_4 = tmp4_elvis_lhs == null ? this.o2d() : tmp4_elvis_lhs;
|
|
152
|
+
var tmp5_elvis_lhs = other.s2d();
|
|
153
|
+
var tmp_5 = tmp5_elvis_lhs == null ? this.s2d() : tmp5_elvis_lhs;
|
|
154
|
+
var tmp6_elvis_lhs = other.p2d();
|
|
155
|
+
var tmp_6 = tmp6_elvis_lhs == null ? this.p2d() : tmp6_elvis_lhs;
|
|
156
|
+
var tmp7_elvis_lhs = other.q2d();
|
|
157
|
+
var tmp_7 = tmp7_elvis_lhs == null ? this.q2d() : tmp7_elvis_lhs;
|
|
158
|
+
var tmp8_elvis_lhs = other.t2d();
|
|
159
|
+
var tmp_8 = tmp8_elvis_lhs == null ? this.t2d() : tmp8_elvis_lhs;
|
|
160
|
+
var tmp9_elvis_lhs = other.u2d();
|
|
161
|
+
tmp = new TxtStyle(tmp_0, tmp_1, tmp_2, tmp_3, tmp_4, tmp_5, tmp_6, tmp_7, tmp_8, tmp9_elvis_lhs == null ? this.u2d() : tmp9_elvis_lhs);
|
|
162
162
|
}
|
|
163
163
|
return tmp;
|
|
164
164
|
}
|
|
@@ -170,8 +170,8 @@
|
|
|
170
170
|
initMetadataForClass(ThemeBuilder, 'ThemeBuilder');
|
|
171
171
|
initMetadataForClass(Whitespace, 'Whitespace', VOID, Enum);
|
|
172
172
|
function render$default(t, width, $super) {
|
|
173
|
-
width = width === VOID ? t.s().
|
|
174
|
-
return $super === VOID ? this.
|
|
173
|
+
width = width === VOID ? t.s().h2g_1 : width;
|
|
174
|
+
return $super === VOID ? this.w2h(t, width) : $super.w2h.call(this, t, width);
|
|
175
175
|
}
|
|
176
176
|
initMetadataForInterface(Widget, 'Widget');
|
|
177
177
|
initMetadataForClass(WidthRange, 'WidthRange');
|
|
@@ -194,10 +194,10 @@
|
|
|
194
194
|
init = tmp;
|
|
195
195
|
var tmp_0;
|
|
196
196
|
if ($super === VOID) {
|
|
197
|
-
this.
|
|
197
|
+
this.a2l(cells, init);
|
|
198
198
|
tmp_0 = Unit_instance;
|
|
199
199
|
} else {
|
|
200
|
-
tmp_0 = $super.
|
|
200
|
+
tmp_0 = $super.a2l.call(this, cells, init);
|
|
201
201
|
}
|
|
202
202
|
return tmp_0;
|
|
203
203
|
}
|
|
@@ -211,10 +211,10 @@
|
|
|
211
211
|
init = tmp;
|
|
212
212
|
var tmp_0;
|
|
213
213
|
if ($super === VOID) {
|
|
214
|
-
this.
|
|
214
|
+
this.c2l(content, init);
|
|
215
215
|
tmp_0 = Unit_instance;
|
|
216
216
|
} else {
|
|
217
|
-
tmp_0 = $super.
|
|
217
|
+
tmp_0 = $super.c2l.call(this, content, init);
|
|
218
218
|
}
|
|
219
219
|
return tmp_0;
|
|
220
220
|
}
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
initMetadataForCompanion(Companion_2);
|
|
223
223
|
initMetadataForClass(ColumnWidth, 'ColumnWidth');
|
|
224
224
|
function padding(all) {
|
|
225
|
-
this.
|
|
225
|
+
this.i2l(Padding_init_$Create$(all));
|
|
226
226
|
}
|
|
227
227
|
initMetadataForInterface(CellStyleBuilder, 'CellStyleBuilder');
|
|
228
228
|
initMetadataForClass(VerticalLayoutBuilderInstance, 'VerticalLayoutBuilderInstance', VerticalLayoutBuilderInstance, VOID, [LinearLayoutBuilder]);
|
|
@@ -272,30 +272,30 @@
|
|
|
272
272
|
//endregion
|
|
273
273
|
function AnsiCodes() {
|
|
274
274
|
AnsiCodes_instance = this;
|
|
275
|
-
this.
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
278
|
-
this.
|
|
279
|
-
this.
|
|
280
|
-
this.
|
|
281
|
-
this.
|
|
282
|
-
this.
|
|
283
|
-
this.
|
|
284
|
-
this.
|
|
285
|
-
this.
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
275
|
+
this.n2c_1 = numberRangeToNumber(30, 37);
|
|
276
|
+
this.o2c_1 = numberRangeToNumber(90, 97);
|
|
277
|
+
this.p2c_1 = 38;
|
|
278
|
+
this.q2c_1 = 39;
|
|
279
|
+
this.r2c_1 = 10;
|
|
280
|
+
this.s2c_1 = numberRangeToNumber(40, 47);
|
|
281
|
+
this.t2c_1 = numberRangeToNumber(100, 107);
|
|
282
|
+
this.u2c_1 = 48;
|
|
283
|
+
this.v2c_1 = 49;
|
|
284
|
+
this.w2c_1 = 5;
|
|
285
|
+
this.x2c_1 = 2;
|
|
286
|
+
this.y2c_1 = 58;
|
|
287
|
+
this.z2c_1 = 0;
|
|
288
|
+
this.a2d_1 = 1;
|
|
289
|
+
this.b2d_1 = 22;
|
|
290
|
+
this.c2d_1 = 2;
|
|
291
|
+
this.d2d_1 = 3;
|
|
292
|
+
this.e2d_1 = 23;
|
|
293
|
+
this.f2d_1 = 4;
|
|
294
|
+
this.g2d_1 = 24;
|
|
295
|
+
this.h2d_1 = 7;
|
|
296
|
+
this.i2d_1 = 27;
|
|
297
|
+
this.j2d_1 = 9;
|
|
298
|
+
this.k2d_1 = 29;
|
|
299
299
|
}
|
|
300
300
|
var AnsiCodes_instance;
|
|
301
301
|
function AnsiCodes_getInstance() {
|
|
@@ -318,39 +318,39 @@
|
|
|
318
318
|
return '';
|
|
319
319
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
320
320
|
var codes = ArrayList_init_$Create$();
|
|
321
|
-
if (!equals(old.
|
|
321
|
+
if (!equals(old.l2d(), new_0.l2d())) {
|
|
322
322
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
323
|
-
var elements = toAnsi(new_0.
|
|
323
|
+
var elements = toAnsi(new_0.l2d(), 38, 39, 0);
|
|
324
324
|
addAll(codes, elements);
|
|
325
325
|
}
|
|
326
|
-
if (!equals(old.
|
|
326
|
+
if (!equals(old.m2d(), new_0.m2d())) {
|
|
327
327
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
328
|
-
var elements_0 = toAnsi(new_0.
|
|
328
|
+
var elements_0 = toAnsi(new_0.m2d(), 48, 49, 10);
|
|
329
329
|
addAll(codes, elements_0);
|
|
330
330
|
}
|
|
331
|
-
makeTag$style(codes, old.
|
|
332
|
-
makeTag$style(codes, old.
|
|
333
|
-
makeTag$style(codes, old.
|
|
334
|
-
makeTag$style(codes, old.
|
|
335
|
-
if (old.
|
|
331
|
+
makeTag$style(codes, old.n2d(), new_0.n2d(), 3, 23);
|
|
332
|
+
makeTag$style(codes, old.o2d(), new_0.o2d(), 4, 24);
|
|
333
|
+
makeTag$style(codes, old.p2d(), new_0.p2d(), 7, 27);
|
|
334
|
+
makeTag$style(codes, old.q2d(), new_0.q2d(), 9, 29);
|
|
335
|
+
if (old.r2d() === true && !(new_0.r2d() === true) || (old.s2d() === true && !(new_0.s2d() === true))) {
|
|
336
336
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
337
337
|
codes.e(22);
|
|
338
|
-
if (new_0.
|
|
338
|
+
if (new_0.r2d() === true) {
|
|
339
339
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
340
340
|
codes.e(1);
|
|
341
341
|
}
|
|
342
|
-
if (new_0.
|
|
342
|
+
if (new_0.s2d() === true) {
|
|
343
343
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
344
344
|
codes.e(2);
|
|
345
345
|
}
|
|
346
346
|
} else {
|
|
347
|
-
makeTag$style(codes, old.
|
|
348
|
-
makeTag$style(codes, old.
|
|
347
|
+
makeTag$style(codes, old.r2d(), new_0.r2d(), 1, 22);
|
|
348
|
+
makeTag$style(codes, old.s2d(), new_0.s2d(), 2, 22);
|
|
349
349
|
}
|
|
350
350
|
var csi = codes.m() ? '' : joinToString(codes, ';', '\x1B[', 'm');
|
|
351
351
|
var tmp;
|
|
352
|
-
if (!(old.
|
|
353
|
-
tmp = csi + makeHyperlinkTag(new_0.
|
|
352
|
+
if (!(old.t2d() == new_0.t2d()) && !(new_0.t2d() === '__mordant_reset__')) {
|
|
353
|
+
tmp = csi + makeHyperlinkTag(new_0.t2d(), new_0.u2d());
|
|
354
354
|
} else {
|
|
355
355
|
tmp = csi;
|
|
356
356
|
}
|
|
@@ -358,30 +358,30 @@
|
|
|
358
358
|
}
|
|
359
359
|
function toAnsi(_this__u8e3s4, select, reset, offset) {
|
|
360
360
|
var tmp34_safe_receiver = (!(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, TextStyle) : false) ? _this__u8e3s4 : null;
|
|
361
|
-
var tmp0_elvis_lhs = tmp34_safe_receiver == null ? null : tmp34_safe_receiver.
|
|
361
|
+
var tmp0_elvis_lhs = tmp34_safe_receiver == null ? null : tmp34_safe_receiver.l2d();
|
|
362
362
|
var it = tmp0_elvis_lhs == null ? _this__u8e3s4 : tmp0_elvis_lhs;
|
|
363
363
|
var tmp;
|
|
364
364
|
if (it == null) {
|
|
365
365
|
tmp = listOf_0(reset);
|
|
366
366
|
} else {
|
|
367
367
|
if (it instanceof Ansi16) {
|
|
368
|
-
switch (it.
|
|
368
|
+
switch (it.s28_1) {
|
|
369
369
|
case 39:
|
|
370
370
|
case 49:
|
|
371
371
|
tmp = listOf_0(reset);
|
|
372
372
|
break;
|
|
373
373
|
default:
|
|
374
|
-
tmp = listOf_0(it.
|
|
374
|
+
tmp = listOf_0(it.s28_1 + offset | 0);
|
|
375
375
|
break;
|
|
376
376
|
}
|
|
377
377
|
} else {
|
|
378
378
|
if (it instanceof Ansi256) {
|
|
379
|
-
tmp = listOf([select, 5, it.
|
|
379
|
+
tmp = listOf([select, 5, it.w28_1]);
|
|
380
380
|
} else {
|
|
381
381
|
// Inline function 'kotlin.run' call
|
|
382
382
|
// Inline function 'com.github.ajalt.mordant.internal.toAnsi.<anonymous>' call
|
|
383
|
-
var $this$run = it.
|
|
384
|
-
tmp = listOf([select, 2, $this$run.
|
|
383
|
+
var $this$run = it.u27().d2b();
|
|
384
|
+
tmp = listOf([select, 2, $this$run.r2a(), $this$run.s2a(), $this$run.t2a()]);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
}
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
// Inline function 'kotlin.apply' call
|
|
408
408
|
var this_0 = StringBuilder_init_$Create$();
|
|
409
409
|
// Inline function 'com.github.ajalt.mordant.internal.renderLinesAnsi.<anonymous>' call
|
|
410
|
-
var iterator = lines.
|
|
410
|
+
var iterator = lines.v2d_1.p();
|
|
411
411
|
var index = 0;
|
|
412
412
|
while (iterator.q()) {
|
|
413
413
|
var i = index;
|
|
@@ -420,10 +420,10 @@
|
|
|
420
420
|
var _iterator__ex2g4s = line.p();
|
|
421
421
|
while (_iterator__ex2g4s.q()) {
|
|
422
422
|
var span = _iterator__ex2g4s.r();
|
|
423
|
-
var newStyle = downsample(span.
|
|
423
|
+
var newStyle = downsample(span.z2d_1, level, hyperlinks);
|
|
424
424
|
this_0.i8(makeTag(activeStyle, newStyle));
|
|
425
425
|
activeStyle = newStyle;
|
|
426
|
-
this_0.i8(span.
|
|
426
|
+
this_0.i8(span.y2d_1);
|
|
427
427
|
}
|
|
428
428
|
this_0.i8(makeTag(activeStyle, get_DEFAULT_STYLE()));
|
|
429
429
|
}
|
|
@@ -440,7 +440,7 @@
|
|
|
440
440
|
tmp_0 = get_DEFAULT_STYLE();
|
|
441
441
|
break;
|
|
442
442
|
case 1:
|
|
443
|
-
var tmp29_safe_receiver = style.
|
|
443
|
+
var tmp29_safe_receiver = style.l2d();
|
|
444
444
|
var tmp_1;
|
|
445
445
|
if (tmp29_safe_receiver == null) {
|
|
446
446
|
tmp_1 = null;
|
|
@@ -451,13 +451,13 @@
|
|
|
451
451
|
if (tmp29_safe_receiver instanceof Ansi16) {
|
|
452
452
|
tmp_2 = tmp29_safe_receiver;
|
|
453
453
|
} else {
|
|
454
|
-
tmp_2 = tmp29_safe_receiver.
|
|
454
|
+
tmp_2 = tmp29_safe_receiver.u27().d2b().x28();
|
|
455
455
|
}
|
|
456
456
|
tmp_1 = tmp_2;
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
var tmp_3 = tmp_1;
|
|
460
|
-
var tmp30_safe_receiver = style.
|
|
460
|
+
var tmp30_safe_receiver = style.m2d();
|
|
461
461
|
var tmp_4;
|
|
462
462
|
if (tmp30_safe_receiver == null) {
|
|
463
463
|
tmp_4 = null;
|
|
@@ -468,7 +468,7 @@
|
|
|
468
468
|
if (tmp30_safe_receiver instanceof Ansi16) {
|
|
469
469
|
tmp_5 = tmp30_safe_receiver;
|
|
470
470
|
} else {
|
|
471
|
-
tmp_5 = tmp30_safe_receiver.
|
|
471
|
+
tmp_5 = tmp30_safe_receiver.u27().d2b().x28();
|
|
472
472
|
}
|
|
473
473
|
tmp_4 = tmp_5;
|
|
474
474
|
}
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
var tmp_6 = tmp_4;
|
|
477
477
|
// Inline function 'kotlin.takeIf' call
|
|
478
478
|
|
|
479
|
-
var this_0 = style.
|
|
479
|
+
var this_0 = style.t2d();
|
|
480
480
|
var tmp_7;
|
|
481
481
|
// Inline function 'com.github.ajalt.mordant.internal.downsample.<anonymous>' call
|
|
482
482
|
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
var tmp_8 = tmp_7;
|
|
490
490
|
// Inline function 'kotlin.takeIf' call
|
|
491
491
|
|
|
492
|
-
var this_1 = style.
|
|
492
|
+
var this_1 = style.u2d();
|
|
493
493
|
var tmp_9;
|
|
494
494
|
// Inline function 'com.github.ajalt.mordant.internal.downsample.<anonymous>' call
|
|
495
495
|
|
|
@@ -503,7 +503,7 @@
|
|
|
503
503
|
tmp_0 = copy(style, tmp_3, tmp_6, tmp_8, tmp$ret$7);
|
|
504
504
|
break;
|
|
505
505
|
case 2:
|
|
506
|
-
var tmp31_safe_receiver = style.
|
|
506
|
+
var tmp31_safe_receiver = style.l2d();
|
|
507
507
|
var tmp_10;
|
|
508
508
|
if (tmp31_safe_receiver == null) {
|
|
509
509
|
tmp_10 = null;
|
|
@@ -520,13 +520,13 @@
|
|
|
520
520
|
if (tmp_12) {
|
|
521
521
|
tmp_11 = tmp31_safe_receiver;
|
|
522
522
|
} else {
|
|
523
|
-
tmp_11 = tmp31_safe_receiver.
|
|
523
|
+
tmp_11 = tmp31_safe_receiver.u27().d2b().c2b();
|
|
524
524
|
}
|
|
525
525
|
tmp_10 = tmp_11;
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
var tmp_13 = tmp_10;
|
|
529
|
-
var tmp32_safe_receiver = style.
|
|
529
|
+
var tmp32_safe_receiver = style.m2d();
|
|
530
530
|
var tmp_14;
|
|
531
531
|
if (tmp32_safe_receiver == null) {
|
|
532
532
|
tmp_14 = null;
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
if (tmp_16) {
|
|
544
544
|
tmp_15 = tmp32_safe_receiver;
|
|
545
545
|
} else {
|
|
546
|
-
tmp_15 = tmp32_safe_receiver.
|
|
546
|
+
tmp_15 = tmp32_safe_receiver.u27().d2b().c2b();
|
|
547
547
|
}
|
|
548
548
|
tmp_14 = tmp_15;
|
|
549
549
|
}
|
|
@@ -551,7 +551,7 @@
|
|
|
551
551
|
var tmp_17 = tmp_14;
|
|
552
552
|
// Inline function 'kotlin.takeIf' call
|
|
553
553
|
|
|
554
|
-
var this_2 = style.
|
|
554
|
+
var this_2 = style.t2d();
|
|
555
555
|
var tmp_18;
|
|
556
556
|
// Inline function 'com.github.ajalt.mordant.internal.downsample.<anonymous>' call
|
|
557
557
|
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
var tmp_19 = tmp_18;
|
|
565
565
|
// Inline function 'kotlin.takeIf' call
|
|
566
566
|
|
|
567
|
-
var this_3 = style.
|
|
567
|
+
var this_3 = style.u2d();
|
|
568
568
|
var tmp_20;
|
|
569
569
|
// Inline function 'com.github.ajalt.mordant.internal.downsample.<anonymous>' call
|
|
570
570
|
|
|
@@ -578,7 +578,7 @@
|
|
|
578
578
|
tmp_0 = copy(style, tmp_13, tmp_17, tmp_19, tmp$ret$15);
|
|
579
579
|
break;
|
|
580
580
|
case 3:
|
|
581
|
-
tmp_0 = hyperlinks || style.
|
|
581
|
+
tmp_0 = hyperlinks || style.t2d() == null ? style : copy(style, style.l2d(), style.m2d(), null, null);
|
|
582
582
|
break;
|
|
583
583
|
default:
|
|
584
584
|
noWhenBranchMatchedException();
|
|
@@ -606,8 +606,8 @@
|
|
|
606
606
|
var new_0 = updateStyle($style._v, $this_invokeStyle, match.z());
|
|
607
607
|
var tmp_0;
|
|
608
608
|
if (match.gd().b1_1 === 0) {
|
|
609
|
-
$openStyle._v = new_0.
|
|
610
|
-
$style._v = new_0.
|
|
609
|
+
$openStyle._v = new_0.b2e($this_invokeStyle);
|
|
610
|
+
$style._v = new_0.b2e($this_invokeStyle);
|
|
611
611
|
return '';
|
|
612
612
|
}
|
|
613
613
|
var tag = makeTag($style._v, new_0);
|
|
@@ -648,7 +648,7 @@
|
|
|
648
648
|
DEFAULT_STYLE = TextStyle_0(null, null, false, false, false, false, false, false, null);
|
|
649
649
|
EMPTY_LINES = new Lines(emptyList());
|
|
650
650
|
EMPTY_LINE = new Line(emptyList(), get_DEFAULT_STYLE());
|
|
651
|
-
SINGLE_SPACE = Companion_instance_0.
|
|
651
|
+
SINGLE_SPACE = Companion_instance_0.c2e(1);
|
|
652
652
|
DEFAULT_PADDING = Padding_init_$Create$(0);
|
|
653
653
|
ANSI_RE = Regex_init_$Create$('\x1B\\][^\x1B]*\x1B\\\\|\x1B(?:[@-Z\\\\-_]|\\[[0-?]*[ -/]*[@-~])');
|
|
654
654
|
}
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
var nextHyperlinkId;
|
|
661
661
|
function generateHyperlinkId() {
|
|
662
662
|
_init_properties_HyperlinkIds_kt__yuk2s2();
|
|
663
|
-
return get_nextHyperlinkId().
|
|
663
|
+
return get_nextHyperlinkId().d2e().toString();
|
|
664
664
|
}
|
|
665
665
|
var properties_initialized_HyperlinkIds_kt_p1red0;
|
|
666
666
|
function _init_properties_HyperlinkIds_kt__yuk2s2() {
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
var hyperlink = tmp;
|
|
711
711
|
var tmp_0;
|
|
712
712
|
if (hyperlink == null) {
|
|
713
|
-
tmp_0 = defaultStyle.
|
|
713
|
+
tmp_0 = defaultStyle.u2d();
|
|
714
714
|
} else {
|
|
715
715
|
// Inline function 'kotlin.collections.find' call
|
|
716
716
|
var tmp$ret$5;
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
tmp_0 = tmp37_safe_receiver == null ? null : drop(tmp37_safe_receiver, 3);
|
|
732
732
|
}
|
|
733
733
|
var id = tmp_0;
|
|
734
|
-
return copy(existingStyle, VOID, VOID, hyperlink == null ? defaultStyle.
|
|
734
|
+
return copy(existingStyle, VOID, VOID, hyperlink == null ? defaultStyle.t2d() : hyperlink, id);
|
|
735
735
|
}
|
|
736
736
|
function updateStyleWithCsi(ansi, existingStyle, defaultStyle) {
|
|
737
737
|
if (!endsWith(ansi, 'm'))
|
|
@@ -765,68 +765,68 @@
|
|
|
765
765
|
var codes = destination;
|
|
766
766
|
if (codes.m())
|
|
767
767
|
return defaultStyle;
|
|
768
|
-
var color = existingStyle.
|
|
769
|
-
var bgColor = existingStyle.
|
|
770
|
-
var bold = existingStyle.
|
|
771
|
-
var italic = existingStyle.
|
|
772
|
-
var underline = existingStyle.
|
|
773
|
-
var dim = existingStyle.
|
|
774
|
-
var inverse = existingStyle.
|
|
775
|
-
var strikethrough = existingStyle.
|
|
768
|
+
var color = existingStyle.l2d();
|
|
769
|
+
var bgColor = existingStyle.m2d();
|
|
770
|
+
var bold = existingStyle.r2d();
|
|
771
|
+
var italic = existingStyle.n2d();
|
|
772
|
+
var underline = existingStyle.o2d();
|
|
773
|
+
var dim = existingStyle.s2d();
|
|
774
|
+
var inverse = existingStyle.p2d();
|
|
775
|
+
var strikethrough = existingStyle.q2d();
|
|
776
776
|
var i = 0;
|
|
777
777
|
$l$loop_1: while (i <= get_lastIndex_0(codes)) {
|
|
778
778
|
var code = codes.t(i);
|
|
779
779
|
if (code === 0) {
|
|
780
|
-
color = defaultStyle.
|
|
781
|
-
bgColor = defaultStyle.
|
|
782
|
-
var tmp0_elvis_lhs = defaultStyle.
|
|
780
|
+
color = defaultStyle.l2d();
|
|
781
|
+
bgColor = defaultStyle.m2d();
|
|
782
|
+
var tmp0_elvis_lhs = defaultStyle.r2d();
|
|
783
783
|
bold = tmp0_elvis_lhs == null ? false : tmp0_elvis_lhs;
|
|
784
|
-
var tmp1_elvis_lhs = defaultStyle.
|
|
784
|
+
var tmp1_elvis_lhs = defaultStyle.n2d();
|
|
785
785
|
italic = tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs;
|
|
786
|
-
var tmp2_elvis_lhs = defaultStyle.
|
|
786
|
+
var tmp2_elvis_lhs = defaultStyle.o2d();
|
|
787
787
|
underline = tmp2_elvis_lhs == null ? false : tmp2_elvis_lhs;
|
|
788
|
-
var tmp3_elvis_lhs = defaultStyle.
|
|
788
|
+
var tmp3_elvis_lhs = defaultStyle.s2d();
|
|
789
789
|
dim = tmp3_elvis_lhs == null ? false : tmp3_elvis_lhs;
|
|
790
|
-
var tmp4_elvis_lhs = defaultStyle.
|
|
790
|
+
var tmp4_elvis_lhs = defaultStyle.p2d();
|
|
791
791
|
inverse = tmp4_elvis_lhs == null ? false : tmp4_elvis_lhs;
|
|
792
|
-
var tmp5_elvis_lhs = defaultStyle.
|
|
792
|
+
var tmp5_elvis_lhs = defaultStyle.q2d();
|
|
793
793
|
strikethrough = tmp5_elvis_lhs == null ? false : tmp5_elvis_lhs;
|
|
794
794
|
} else {
|
|
795
795
|
if (code === 22) {
|
|
796
|
-
var tmp6_elvis_lhs = defaultStyle.
|
|
796
|
+
var tmp6_elvis_lhs = defaultStyle.r2d();
|
|
797
797
|
bold = tmp6_elvis_lhs == null ? false : tmp6_elvis_lhs;
|
|
798
|
-
var tmp7_elvis_lhs = defaultStyle.
|
|
798
|
+
var tmp7_elvis_lhs = defaultStyle.s2d();
|
|
799
799
|
dim = tmp7_elvis_lhs == null ? false : tmp7_elvis_lhs;
|
|
800
800
|
} else {
|
|
801
801
|
if (code === 23) {
|
|
802
|
-
var tmp8_elvis_lhs = defaultStyle.
|
|
802
|
+
var tmp8_elvis_lhs = defaultStyle.n2d();
|
|
803
803
|
italic = tmp8_elvis_lhs == null ? false : tmp8_elvis_lhs;
|
|
804
804
|
} else {
|
|
805
805
|
if (code === 24) {
|
|
806
|
-
var tmp9_elvis_lhs = defaultStyle.
|
|
806
|
+
var tmp9_elvis_lhs = defaultStyle.o2d();
|
|
807
807
|
underline = tmp9_elvis_lhs == null ? false : tmp9_elvis_lhs;
|
|
808
808
|
} else {
|
|
809
809
|
if (code === 27) {
|
|
810
|
-
var tmp10_elvis_lhs = defaultStyle.
|
|
810
|
+
var tmp10_elvis_lhs = defaultStyle.p2d();
|
|
811
811
|
inverse = tmp10_elvis_lhs == null ? false : tmp10_elvis_lhs;
|
|
812
812
|
} else {
|
|
813
813
|
if (code === 29) {
|
|
814
|
-
var tmp11_elvis_lhs = defaultStyle.
|
|
814
|
+
var tmp11_elvis_lhs = defaultStyle.q2d();
|
|
815
815
|
strikethrough = tmp11_elvis_lhs == null ? false : tmp11_elvis_lhs;
|
|
816
816
|
} else {
|
|
817
817
|
if (code === 39)
|
|
818
|
-
color = defaultStyle.
|
|
818
|
+
color = defaultStyle.l2d();
|
|
819
819
|
else {
|
|
820
820
|
if (code === 49)
|
|
821
|
-
bgColor = defaultStyle.
|
|
821
|
+
bgColor = defaultStyle.m2d();
|
|
822
822
|
else {
|
|
823
823
|
var tmp_0;
|
|
824
|
-
var progression = AnsiCodes_getInstance().
|
|
824
|
+
var progression = AnsiCodes_getInstance().n2c_1;
|
|
825
825
|
var containsLower = progression.b1_1;
|
|
826
826
|
if (code <= progression.c1_1 ? containsLower <= code : false) {
|
|
827
827
|
tmp_0 = true;
|
|
828
828
|
} else {
|
|
829
|
-
var progression_0 = AnsiCodes_getInstance().
|
|
829
|
+
var progression_0 = AnsiCodes_getInstance().o2c_1;
|
|
830
830
|
var containsLower_0 = progression_0.b1_1;
|
|
831
831
|
tmp_0 = code <= progression_0.c1_1 ? containsLower_0 <= code : false;
|
|
832
832
|
}
|
|
@@ -834,12 +834,12 @@
|
|
|
834
834
|
color = new Ansi16(code);
|
|
835
835
|
} else {
|
|
836
836
|
var tmp_1;
|
|
837
|
-
var progression_1 = AnsiCodes_getInstance().
|
|
837
|
+
var progression_1 = AnsiCodes_getInstance().s2c_1;
|
|
838
838
|
var containsLower_1 = progression_1.b1_1;
|
|
839
839
|
if (code <= progression_1.c1_1 ? containsLower_1 <= code : false) {
|
|
840
840
|
tmp_1 = true;
|
|
841
841
|
} else {
|
|
842
|
-
var progression_2 = AnsiCodes_getInstance().
|
|
842
|
+
var progression_2 = AnsiCodes_getInstance().t2c_1;
|
|
843
843
|
var containsLower_2 = progression_2.b1_1;
|
|
844
844
|
tmp_1 = code <= progression_2.c1_1 ? containsLower_2 <= code : false;
|
|
845
845
|
}
|
|
@@ -916,7 +916,7 @@
|
|
|
916
916
|
}
|
|
917
917
|
i = i + 1 | 0;
|
|
918
918
|
}
|
|
919
|
-
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, existingStyle.
|
|
919
|
+
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, existingStyle.t2d(), existingStyle.u2d());
|
|
920
920
|
}
|
|
921
921
|
function getAnsiColor(i, codes) {
|
|
922
922
|
var tmp;
|
|
@@ -968,7 +968,7 @@
|
|
|
968
968
|
if (tmp_3) {
|
|
969
969
|
tmp_2 = to(null, 0);
|
|
970
970
|
} else {
|
|
971
|
-
tmp_2 = to(Companion_getInstance().
|
|
971
|
+
tmp_2 = to(Companion_getInstance().u28(codes.t(i + 1 | 0), codes.t(i + 2 | 0), codes.t(i + 3 | 0)), 4);
|
|
972
972
|
}
|
|
973
973
|
|
|
974
974
|
tmp = tmp_2;
|
|
@@ -996,23 +996,23 @@
|
|
|
996
996
|
return new Lines(splitLines_0);
|
|
997
997
|
}
|
|
998
998
|
function Chunk(text, style) {
|
|
999
|
-
this.
|
|
1000
|
-
this.
|
|
999
|
+
this.e2e_1 = text;
|
|
1000
|
+
this.f2e_1 = style;
|
|
1001
1001
|
}
|
|
1002
|
-
protoOf(Chunk).
|
|
1002
|
+
protoOf(Chunk).g2e = function (text, style) {
|
|
1003
1003
|
return new Chunk(text, style);
|
|
1004
1004
|
};
|
|
1005
|
-
protoOf(Chunk).
|
|
1006
|
-
text = text === VOID ? this.
|
|
1007
|
-
style = style === VOID ? this.
|
|
1008
|
-
return $super === VOID ? this.
|
|
1005
|
+
protoOf(Chunk).h2e = function (text, style, $super) {
|
|
1006
|
+
text = text === VOID ? this.e2e_1 : text;
|
|
1007
|
+
style = style === VOID ? this.f2e_1 : style;
|
|
1008
|
+
return $super === VOID ? this.g2e(text, style) : $super.g2e.call(this, text, style);
|
|
1009
1009
|
};
|
|
1010
1010
|
protoOf(Chunk).toString = function () {
|
|
1011
|
-
return 'Chunk(text=' + this.
|
|
1011
|
+
return 'Chunk(text=' + this.e2e_1 + ', style=' + toString(this.f2e_1) + ')';
|
|
1012
1012
|
};
|
|
1013
1013
|
protoOf(Chunk).hashCode = function () {
|
|
1014
|
-
var result = getStringHashCode(this.
|
|
1015
|
-
result = imul(result, 31) + hashCode(this.
|
|
1014
|
+
var result = getStringHashCode(this.e2e_1);
|
|
1015
|
+
result = imul(result, 31) + hashCode(this.f2e_1) | 0;
|
|
1016
1016
|
return result;
|
|
1017
1017
|
};
|
|
1018
1018
|
protoOf(Chunk).equals = function (other) {
|
|
@@ -1021,9 +1021,9 @@
|
|
|
1021
1021
|
if (!(other instanceof Chunk))
|
|
1022
1022
|
return false;
|
|
1023
1023
|
var tmp0_other_with_cast = other instanceof Chunk ? other : THROW_CCE();
|
|
1024
|
-
if (!(this.
|
|
1024
|
+
if (!(this.e2e_1 === tmp0_other_with_cast.e2e_1))
|
|
1025
1025
|
return false;
|
|
1026
|
-
if (!equals(this.
|
|
1026
|
+
if (!equals(this.f2e_1, tmp0_other_with_cast.f2e_1))
|
|
1027
1027
|
return false;
|
|
1028
1028
|
return true;
|
|
1029
1029
|
};
|
|
@@ -1068,7 +1068,7 @@
|
|
|
1068
1068
|
var i = 0;
|
|
1069
1069
|
var start = 0;
|
|
1070
1070
|
var chunkType = -1;
|
|
1071
|
-
var t = chunk.
|
|
1071
|
+
var t = chunk.e2e_1;
|
|
1072
1072
|
while (i < t.length) {
|
|
1073
1073
|
var c = charSequenceGet(t, i);
|
|
1074
1074
|
var type = c === _Char___init__impl__6a9atx(13) ? 0 : c === _Char___init__impl__6a9atx(10) || c === _Char___init__impl__6a9atx(9) || c === _Char___init__impl__6a9atx(133) || c === _Char___init__impl__6a9atx(8232) ? 1 : isWhitespace(c) ? 2 : 3;
|
|
@@ -1081,7 +1081,7 @@
|
|
|
1081
1081
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1082
1082
|
var tmp$ret$2 = t.substring(tmp1, endIndex);
|
|
1083
1083
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1084
|
-
var element = chunk.
|
|
1084
|
+
var element = chunk.h2e(tmp$ret$2);
|
|
1085
1085
|
chunks.e(element);
|
|
1086
1086
|
start = i;
|
|
1087
1087
|
chunkType = type;
|
|
@@ -1095,7 +1095,7 @@
|
|
|
1095
1095
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1096
1096
|
var tmp$ret$4 = t.substring(tmp6, endIndex_0);
|
|
1097
1097
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1098
|
-
var element_0 = chunk.
|
|
1098
|
+
var element_0 = chunk.h2e(tmp$ret$4);
|
|
1099
1099
|
chunks.e(element_0);
|
|
1100
1100
|
}
|
|
1101
1101
|
return chunks;
|
|
@@ -1108,14 +1108,14 @@
|
|
|
1108
1108
|
var _iterator__ex2g4s = words.p();
|
|
1109
1109
|
while (_iterator__ex2g4s.q()) {
|
|
1110
1110
|
var word = _iterator__ex2g4s.r();
|
|
1111
|
-
if (endsWith(word.
|
|
1111
|
+
if (endsWith(word.e2e_1, '\n')) {
|
|
1112
1112
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
1113
|
-
var element = new Line(line, word.
|
|
1113
|
+
var element = new Line(line, word.f2e_1);
|
|
1114
1114
|
lines.e(element);
|
|
1115
1115
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
1116
1116
|
line = ArrayList_init_$Create$();
|
|
1117
1117
|
} else {
|
|
1118
|
-
line.e(Companion_instance_0.
|
|
1118
|
+
line.e(Companion_instance_0.i2e(word.e2e_1, word.f2e_1));
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
@@ -1130,10 +1130,10 @@
|
|
|
1130
1130
|
else {
|
|
1131
1131
|
// Inline function 'kotlin.let' call
|
|
1132
1132
|
// Inline function 'com.github.ajalt.mordant.internal.splitLines.<anonymous>' call
|
|
1133
|
-
if (endsWith(tmp36_safe_receiver.
|
|
1133
|
+
if (endsWith(tmp36_safe_receiver.e2e_1, '\n')) {
|
|
1134
1134
|
// Inline function 'kotlin.collections.listOf' call
|
|
1135
1135
|
var tmp$ret$4 = emptyList();
|
|
1136
|
-
lines.e(new Line(tmp$ret$4, tmp36_safe_receiver.
|
|
1136
|
+
lines.e(new Line(tmp$ret$4, tmp36_safe_receiver.f2e_1));
|
|
1137
1137
|
}
|
|
1138
1138
|
}
|
|
1139
1139
|
return lines;
|
|
@@ -1148,10 +1148,10 @@
|
|
|
1148
1148
|
var width = cellWidth(codepoint);
|
|
1149
1149
|
if (!(zwjSeq == null)) {
|
|
1150
1150
|
sumSinceZwj = sumSinceZwj + width | 0;
|
|
1151
|
-
if (zwjSeq.
|
|
1151
|
+
if (zwjSeq.k2e_1.l1(codepoint)) {
|
|
1152
1152
|
sumSinceZwj = 0;
|
|
1153
1153
|
}
|
|
1154
|
-
zwjSeq = zwjSeq.
|
|
1154
|
+
zwjSeq = zwjSeq.j2e_1.e2(codepoint);
|
|
1155
1155
|
if (zwjSeq == null) {
|
|
1156
1156
|
sum = sum + (sumSinceZwj + 2 | 0) | 0;
|
|
1157
1157
|
sumSinceZwj = 0;
|
|
@@ -1160,7 +1160,7 @@
|
|
|
1160
1160
|
}
|
|
1161
1161
|
} else {
|
|
1162
1162
|
if (couldStartEmojiSeq(codepoint)) {
|
|
1163
|
-
zwjSeq = get_EMOJI_SEQUENCES().
|
|
1163
|
+
zwjSeq = get_EMOJI_SEQUENCES().j2e_1.e2(codepoint);
|
|
1164
1164
|
}
|
|
1165
1165
|
if (zwjSeq == null) {
|
|
1166
1166
|
sum = sum + width | 0;
|
|
@@ -1178,17 +1178,17 @@
|
|
|
1178
1178
|
var min = 0;
|
|
1179
1179
|
var mid;
|
|
1180
1180
|
var max = get_lastIndex_1(table);
|
|
1181
|
-
if (codepoint < table[0].
|
|
1181
|
+
if (codepoint < table[0].l2e_1 || codepoint > table[max].m2e_1)
|
|
1182
1182
|
return 1;
|
|
1183
1183
|
while (max >= min) {
|
|
1184
1184
|
mid = (min + max | 0) / 2 | 0;
|
|
1185
1185
|
var entry = table[mid];
|
|
1186
|
-
if (codepoint > entry.
|
|
1186
|
+
if (codepoint > entry.m2e_1)
|
|
1187
1187
|
min = mid + 1 | 0;
|
|
1188
|
-
else if (codepoint < entry.
|
|
1188
|
+
else if (codepoint < entry.l2e_1)
|
|
1189
1189
|
max = mid - 1 | 0;
|
|
1190
1190
|
else
|
|
1191
|
-
return table[mid].
|
|
1191
|
+
return table[mid].n2e_1;
|
|
1192
1192
|
}
|
|
1193
1193
|
return 1;
|
|
1194
1194
|
}
|
|
@@ -5068,9 +5068,9 @@
|
|
|
5068
5068
|
}
|
|
5069
5069
|
var CELL_WIDTH_TABLE;
|
|
5070
5070
|
function CellWidthTableEntry(low, high, width) {
|
|
5071
|
-
this.
|
|
5072
|
-
this.
|
|
5073
|
-
this.
|
|
5071
|
+
this.l2e_1 = low;
|
|
5072
|
+
this.m2e_1 = high;
|
|
5073
|
+
this.n2e_1 = width;
|
|
5074
5074
|
}
|
|
5075
5075
|
var properties_initialized_cellwidthtable_kt_9uoib8;
|
|
5076
5076
|
function _init_properties_cellwidthtable_kt__xxkoba() {
|
|
@@ -5111,15 +5111,15 @@
|
|
|
5111
5111
|
tmp = values;
|
|
5112
5112
|
}
|
|
5113
5113
|
values = tmp;
|
|
5114
|
-
this.
|
|
5115
|
-
this.
|
|
5114
|
+
this.j2e_1 = children;
|
|
5115
|
+
this.k2e_1 = values;
|
|
5116
5116
|
}
|
|
5117
5117
|
protoOf(IntTrie).toString = function () {
|
|
5118
|
-
return 'IntTrie(children=' + toString(this.
|
|
5118
|
+
return 'IntTrie(children=' + toString(this.j2e_1) + ', values=' + toString(this.k2e_1) + ')';
|
|
5119
5119
|
};
|
|
5120
5120
|
protoOf(IntTrie).hashCode = function () {
|
|
5121
|
-
var result = hashCode(this.
|
|
5122
|
-
result = imul(result, 31) + hashCode(this.
|
|
5121
|
+
var result = hashCode(this.j2e_1);
|
|
5122
|
+
result = imul(result, 31) + hashCode(this.k2e_1) | 0;
|
|
5123
5123
|
return result;
|
|
5124
5124
|
};
|
|
5125
5125
|
protoOf(IntTrie).equals = function (other) {
|
|
@@ -5128,9 +5128,9 @@
|
|
|
5128
5128
|
if (!(other instanceof IntTrie))
|
|
5129
5129
|
return false;
|
|
5130
5130
|
var tmp0_other_with_cast = other instanceof IntTrie ? other : THROW_CCE();
|
|
5131
|
-
if (!equals(this.
|
|
5131
|
+
if (!equals(this.j2e_1, tmp0_other_with_cast.j2e_1))
|
|
5132
5132
|
return false;
|
|
5133
|
-
if (!equals(this.
|
|
5133
|
+
if (!equals(this.k2e_1, tmp0_other_with_cast.k2e_1))
|
|
5134
5134
|
return false;
|
|
5135
5135
|
return true;
|
|
5136
5136
|
};
|
|
@@ -5158,7 +5158,7 @@
|
|
|
5158
5158
|
do {
|
|
5159
5159
|
var i = inductionVariable_1;
|
|
5160
5160
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
5161
|
-
var tmp1 = node.
|
|
5161
|
+
var tmp1 = node.j2e_1;
|
|
5162
5162
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
5163
5163
|
var key = seq[i];
|
|
5164
5164
|
var value = tmp1.e2(key);
|
|
@@ -5174,7 +5174,7 @@
|
|
|
5174
5174
|
node = tmp;
|
|
5175
5175
|
}
|
|
5176
5176
|
while (inductionVariable_1 < last_2);
|
|
5177
|
-
var tmp3 = node.
|
|
5177
|
+
var tmp3 = node.k2e_1;
|
|
5178
5178
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
5179
5179
|
var element = last_0(seq);
|
|
5180
5180
|
tmp3.e(element);
|
|
@@ -5195,13 +5195,13 @@
|
|
|
5195
5195
|
}
|
|
5196
5196
|
function MultiplatformSystem() {
|
|
5197
5197
|
}
|
|
5198
|
-
protoOf(MultiplatformSystem).
|
|
5198
|
+
protoOf(MultiplatformSystem).o2e = function (key) {
|
|
5199
5199
|
return getEnv(key);
|
|
5200
5200
|
};
|
|
5201
|
-
protoOf(MultiplatformSystem).
|
|
5201
|
+
protoOf(MultiplatformSystem).p2e = function (status) {
|
|
5202
5202
|
exitProcessMpp(status);
|
|
5203
5203
|
};
|
|
5204
|
-
protoOf(MultiplatformSystem).
|
|
5204
|
+
protoOf(MultiplatformSystem).q2e = function (path) {
|
|
5205
5205
|
var tmp;
|
|
5206
5206
|
try {
|
|
5207
5207
|
tmp = readFileIfExists(path);
|
|
@@ -5273,25 +5273,25 @@
|
|
|
5273
5273
|
}
|
|
5274
5274
|
function Companion() {
|
|
5275
5275
|
Companion_instance = this;
|
|
5276
|
-
this.
|
|
5277
|
-
this.
|
|
5278
|
-
this.
|
|
5279
|
-
this.
|
|
5280
|
-
this.
|
|
5281
|
-
this.
|
|
5282
|
-
this.
|
|
5283
|
-
this.
|
|
5284
|
-
this.
|
|
5285
|
-
}
|
|
5286
|
-
protoOf(Companion).
|
|
5276
|
+
this.r2e_1 = this.a2f('\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576');
|
|
5277
|
+
this.s2e_1 = this.a2f('\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2550\u2502\u2577\u2575 ', '\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u2552\u2564\u2555\u255E\u256A\u2561\u2558\u2567\u255B\u2550\u2502\u2577\u2575 ');
|
|
5278
|
+
this.t2e_1 = this.a2f('\u256D\u252C\u256E\u251C\u253C\u2524\u2570\u2534\u256F\u2500\u2502\u2577\u2575\u2574\u2576');
|
|
5279
|
+
this.u2e_1 = this.a2f('\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A');
|
|
5280
|
+
this.v2e_1 = this.a2f('\u2554\u2566\u2557\u2560\u256C\u2563\u255A\u2569\u255D\u2550\u2551 ');
|
|
5281
|
+
this.w2e_1 = this.b2f('\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A', '\u250D\u252F\u2511\u2521\u2547\u2529\u2517\u253B\u251B\u2501\u257F\u2577\u2579\u2578\u257A', '\u250C\u252C\u2510\u251C\u253C\u2524\u2514\u2534\u2518\u2500\u2502\u2577\u2575\u2574\u2576', '\u250F\u2533\u2513\u2522\u2548\u252A\u2515\u2537\u2519\u2501\u257D\u257B\u2575\u2578\u257A', '\u250F\u2533\u2513\u2523\u254B\u252B\u2517\u253B\u251B\u2501\u2503\u257B\u2579\u2578\u257A');
|
|
5282
|
+
this.x2e_1 = this.a2f('+++++++++-| ');
|
|
5283
|
+
this.y2e_1 = this.a2f('+++++++++-| ', '+++++++++=| ', '+++++++++-| ', '+++++++++=| ');
|
|
5284
|
+
this.z2e_1 = this.a2f(' ');
|
|
5285
|
+
}
|
|
5286
|
+
protoOf(Companion).b2f = function (head, headBottom, body, bodyBottom, foot) {
|
|
5287
5287
|
return new BorderType(BorderTypeSection_init_$Create$(head), BorderTypeSection_init_$Create$(headBottom), BorderTypeSection_init_$Create$(body), BorderTypeSection_init_$Create$(bodyBottom), BorderTypeSection_init_$Create$(foot));
|
|
5288
5288
|
};
|
|
5289
|
-
protoOf(Companion).
|
|
5289
|
+
protoOf(Companion).a2f = function (head, headBottom, body, bodyBottom, foot, $super) {
|
|
5290
5290
|
headBottom = headBottom === VOID ? head : headBottom;
|
|
5291
5291
|
body = body === VOID ? head : body;
|
|
5292
5292
|
bodyBottom = bodyBottom === VOID ? body : bodyBottom;
|
|
5293
5293
|
foot = foot === VOID ? body : foot;
|
|
5294
|
-
return $super === VOID ? this.
|
|
5294
|
+
return $super === VOID ? this.b2f(head, headBottom, body, bodyBottom, foot) : $super.b2f.call(this, head, headBottom, body, bodyBottom, foot);
|
|
5295
5295
|
};
|
|
5296
5296
|
var Companion_instance;
|
|
5297
5297
|
function Companion_getInstance_0() {
|
|
@@ -5301,11 +5301,11 @@
|
|
|
5301
5301
|
}
|
|
5302
5302
|
function BorderType(head, headBottom, body, bodyBottom, foot) {
|
|
5303
5303
|
Companion_getInstance_0();
|
|
5304
|
-
this.
|
|
5305
|
-
this.
|
|
5306
|
-
this.
|
|
5307
|
-
this.
|
|
5308
|
-
this.
|
|
5304
|
+
this.c2f_1 = head;
|
|
5305
|
+
this.d2f_1 = headBottom;
|
|
5306
|
+
this.e2f_1 = body;
|
|
5307
|
+
this.f2f_1 = bodyBottom;
|
|
5308
|
+
this.g2f_1 = foot;
|
|
5309
5309
|
}
|
|
5310
5310
|
function BorderTypeSection_init_$Init$(corners, $this) {
|
|
5311
5311
|
BorderTypeSection.call($this, toString_0(charSequenceGet(corners, 0)), toString_0(charSequenceGet(corners, 1)), toString_0(charSequenceGet(corners, 2)), toString_0(charSequenceGet(corners, 3)), toString_0(charSequenceGet(corners, 4)), toString_0(charSequenceGet(corners, 5)), toString_0(charSequenceGet(corners, 6)), toString_0(charSequenceGet(corners, 7)), toString_0(charSequenceGet(corners, 8)), toString_0(charSequenceGet(corners, 9)), toString_0(charSequenceGet(corners, 10)), toString_0(charSequenceGet(corners, 11)), toString_0(charSequenceGet(corners, 12)), toString_0(charSequenceGet(corners, 13)), toString_0(charSequenceGet(corners, 14)));
|
|
@@ -5315,44 +5315,44 @@
|
|
|
5315
5315
|
return BorderTypeSection_init_$Init$(corners, objectCreate(protoOf(BorderTypeSection)));
|
|
5316
5316
|
}
|
|
5317
5317
|
function BorderTypeSection(es, esw, sw, nes, nesw, nsw, ne, new_0, nw, ew, ns, s, n, w, e) {
|
|
5318
|
-
this.
|
|
5319
|
-
this.
|
|
5320
|
-
this.
|
|
5321
|
-
this.
|
|
5322
|
-
this.
|
|
5323
|
-
this.
|
|
5324
|
-
this.
|
|
5325
|
-
this.
|
|
5326
|
-
this.
|
|
5327
|
-
this.
|
|
5328
|
-
this.
|
|
5329
|
-
this.
|
|
5330
|
-
this.
|
|
5331
|
-
this.
|
|
5332
|
-
this.
|
|
5318
|
+
this.h2f_1 = es;
|
|
5319
|
+
this.i2f_1 = esw;
|
|
5320
|
+
this.j2f_1 = sw;
|
|
5321
|
+
this.k2f_1 = nes;
|
|
5322
|
+
this.l2f_1 = nesw;
|
|
5323
|
+
this.m2f_1 = nsw;
|
|
5324
|
+
this.n2f_1 = ne;
|
|
5325
|
+
this.o2f_1 = new_0;
|
|
5326
|
+
this.p2f_1 = nw;
|
|
5327
|
+
this.q2f_1 = ew;
|
|
5328
|
+
this.r2f_1 = ns;
|
|
5329
|
+
this.s2f_1 = s;
|
|
5330
|
+
this.t2f_1 = n;
|
|
5331
|
+
this.u2f_1 = w;
|
|
5332
|
+
this.v2f_1 = e;
|
|
5333
5333
|
var tmp = this;
|
|
5334
5334
|
// Inline function 'kotlin.arrayOf' call
|
|
5335
5335
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
5336
5336
|
// Inline function 'kotlin.js.asDynamic' call
|
|
5337
|
-
tmp.
|
|
5337
|
+
tmp.w2f_1 = [' ', this.u2f_1, this.s2f_1, this.j2f_1, this.v2f_1, this.q2f_1, this.h2f_1, this.i2f_1, this.t2f_1, this.p2f_1, this.r2f_1, this.m2f_1, this.n2f_1, this.o2f_1, this.k2f_1, this.l2f_1];
|
|
5338
5338
|
}
|
|
5339
|
-
protoOf(BorderTypeSection).
|
|
5339
|
+
protoOf(BorderTypeSection).x2f = function (n, e, s, w, textStyle) {
|
|
5340
5340
|
var i = (n ? 8 : 0) | (e ? 4 : 0) | (s ? 2 : 0) | (w ? 1 : 0);
|
|
5341
|
-
return Companion_instance_0.
|
|
5341
|
+
return Companion_instance_0.i2e(this.w2f_1[i], textStyle);
|
|
5342
5342
|
};
|
|
5343
5343
|
function Lines(lines) {
|
|
5344
|
-
this.
|
|
5344
|
+
this.v2d_1 = lines;
|
|
5345
5345
|
}
|
|
5346
|
-
protoOf(Lines).
|
|
5347
|
-
return this.
|
|
5346
|
+
protoOf(Lines).y2f = function () {
|
|
5347
|
+
return this.v2d_1.s();
|
|
5348
5348
|
};
|
|
5349
|
-
protoOf(Lines).
|
|
5349
|
+
protoOf(Lines).z2f = function (style) {
|
|
5350
5350
|
var tmp;
|
|
5351
5351
|
if (style == null || equals(style, get_DEFAULT_STYLE())) {
|
|
5352
5352
|
tmp = this;
|
|
5353
5353
|
} else {
|
|
5354
5354
|
// Inline function 'kotlin.collections.map' call
|
|
5355
|
-
var this_0 = this.
|
|
5355
|
+
var this_0 = this.v2d_1;
|
|
5356
5356
|
// Inline function 'kotlin.collections.mapTo' call
|
|
5357
5357
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
5358
5358
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -5366,10 +5366,10 @@
|
|
|
5366
5366
|
while (_iterator__ex2g4s_0.q()) {
|
|
5367
5367
|
var item_0 = _iterator__ex2g4s_0.r();
|
|
5368
5368
|
// Inline function 'com.github.ajalt.mordant.rendering.Lines.withStyle.<anonymous>.<anonymous>' call
|
|
5369
|
-
var tmp$ret$0 = item_0.
|
|
5369
|
+
var tmp$ret$0 = item_0.a2g(style);
|
|
5370
5370
|
destination_0.e(tmp$ret$0);
|
|
5371
5371
|
}
|
|
5372
|
-
var tmp$ret$3 = new Line(destination_0, item.
|
|
5372
|
+
var tmp$ret$3 = new Line(destination_0, item.x2d_1.b2e(style));
|
|
5373
5373
|
destination.e(tmp$ret$3);
|
|
5374
5374
|
}
|
|
5375
5375
|
tmp = new Lines(destination);
|
|
@@ -5378,7 +5378,7 @@
|
|
|
5378
5378
|
};
|
|
5379
5379
|
function Line_init_$Init$(spans, $this) {
|
|
5380
5380
|
var tmp44_safe_receiver = lastOrNull(spans);
|
|
5381
|
-
var tmp0_elvis_lhs = tmp44_safe_receiver == null ? null : tmp44_safe_receiver.
|
|
5381
|
+
var tmp0_elvis_lhs = tmp44_safe_receiver == null ? null : tmp44_safe_receiver.z2d_1;
|
|
5382
5382
|
Line.call($this, spans, tmp0_elvis_lhs == null ? get_DEFAULT_STYLE() : tmp0_elvis_lhs);
|
|
5383
5383
|
return $this;
|
|
5384
5384
|
}
|
|
@@ -5386,49 +5386,49 @@
|
|
|
5386
5386
|
return Line_init_$Init$(spans, objectCreate(protoOf(Line)));
|
|
5387
5387
|
}
|
|
5388
5388
|
function Line(spans, endStyle) {
|
|
5389
|
-
this.
|
|
5390
|
-
this.
|
|
5389
|
+
this.w2d_1 = spans;
|
|
5390
|
+
this.x2d_1 = endStyle;
|
|
5391
5391
|
}
|
|
5392
|
-
protoOf(Line).
|
|
5393
|
-
return this.
|
|
5392
|
+
protoOf(Line).b2g = function (element) {
|
|
5393
|
+
return this.w2d_1.l1(element);
|
|
5394
5394
|
};
|
|
5395
5395
|
protoOf(Line).l1 = function (element) {
|
|
5396
5396
|
if (!(element instanceof Span))
|
|
5397
5397
|
return false;
|
|
5398
|
-
return this.
|
|
5398
|
+
return this.b2g(element instanceof Span ? element : THROW_CCE());
|
|
5399
5399
|
};
|
|
5400
5400
|
protoOf(Line).t = function (index) {
|
|
5401
|
-
return this.
|
|
5401
|
+
return this.w2d_1.t(index);
|
|
5402
5402
|
};
|
|
5403
|
-
protoOf(Line).
|
|
5404
|
-
return this.
|
|
5403
|
+
protoOf(Line).c2g = function (element) {
|
|
5404
|
+
return this.w2d_1.z1(element);
|
|
5405
5405
|
};
|
|
5406
5406
|
protoOf(Line).z1 = function (element) {
|
|
5407
5407
|
if (!(element instanceof Span))
|
|
5408
5408
|
return -1;
|
|
5409
|
-
return this.
|
|
5409
|
+
return this.c2g(element instanceof Span ? element : THROW_CCE());
|
|
5410
5410
|
};
|
|
5411
5411
|
protoOf(Line).m = function () {
|
|
5412
|
-
return this.
|
|
5412
|
+
return this.w2d_1.m();
|
|
5413
5413
|
};
|
|
5414
5414
|
protoOf(Line).p = function () {
|
|
5415
|
-
return this.
|
|
5415
|
+
return this.w2d_1.p();
|
|
5416
5416
|
};
|
|
5417
5417
|
protoOf(Line).v = function (index) {
|
|
5418
|
-
return this.
|
|
5418
|
+
return this.w2d_1.v(index);
|
|
5419
5419
|
};
|
|
5420
5420
|
protoOf(Line).a2 = function (fromIndex, toIndex) {
|
|
5421
|
-
return this.
|
|
5421
|
+
return this.w2d_1.a2(fromIndex, toIndex);
|
|
5422
5422
|
};
|
|
5423
5423
|
protoOf(Line).s = function () {
|
|
5424
|
-
return this.
|
|
5424
|
+
return this.w2d_1.s();
|
|
5425
5425
|
};
|
|
5426
5426
|
protoOf(Line).toString = function () {
|
|
5427
|
-
return 'Line(spans=' + toString(this.
|
|
5427
|
+
return 'Line(spans=' + toString(this.w2d_1) + ', endStyle=' + toString(this.x2d_1) + ')';
|
|
5428
5428
|
};
|
|
5429
5429
|
protoOf(Line).hashCode = function () {
|
|
5430
|
-
var result = hashCode(this.
|
|
5431
|
-
result = imul(result, 31) + hashCode(this.
|
|
5430
|
+
var result = hashCode(this.w2d_1);
|
|
5431
|
+
result = imul(result, 31) + hashCode(this.x2d_1) | 0;
|
|
5432
5432
|
return result;
|
|
5433
5433
|
};
|
|
5434
5434
|
protoOf(Line).equals = function (other) {
|
|
@@ -5437,21 +5437,21 @@
|
|
|
5437
5437
|
if (!(other instanceof Line))
|
|
5438
5438
|
return false;
|
|
5439
5439
|
var tmp0_other_with_cast = other instanceof Line ? other : THROW_CCE();
|
|
5440
|
-
if (!equals(this.
|
|
5440
|
+
if (!equals(this.w2d_1, tmp0_other_with_cast.w2d_1))
|
|
5441
5441
|
return false;
|
|
5442
|
-
if (!equals(this.
|
|
5442
|
+
if (!equals(this.x2d_1, tmp0_other_with_cast.x2d_1))
|
|
5443
5443
|
return false;
|
|
5444
5444
|
return true;
|
|
5445
5445
|
};
|
|
5446
5446
|
function get_lineWidth(_this__u8e3s4) {
|
|
5447
5447
|
// Inline function 'kotlin.collections.sumOf' call
|
|
5448
5448
|
var sum = 0;
|
|
5449
|
-
var _iterator__ex2g4s = _this__u8e3s4.
|
|
5449
|
+
var _iterator__ex2g4s = _this__u8e3s4.w2d_1.p();
|
|
5450
5450
|
while (_iterator__ex2g4s.q()) {
|
|
5451
5451
|
var element = _iterator__ex2g4s.r();
|
|
5452
5452
|
var tmp = sum;
|
|
5453
5453
|
// Inline function 'com.github.ajalt.mordant.rendering.<get-lineWidth>.<anonymous>' call
|
|
5454
|
-
sum = tmp + element.
|
|
5454
|
+
sum = tmp + element.d2g() | 0;
|
|
5455
5455
|
}
|
|
5456
5456
|
return sum;
|
|
5457
5457
|
}
|
|
@@ -5504,7 +5504,7 @@
|
|
|
5504
5504
|
return Line_init_$Create$(line);
|
|
5505
5505
|
}
|
|
5506
5506
|
function setSize(_this__u8e3s4, newWidth, newHeight, verticalAlign, textAlign, scrollRight, scrollDown) {
|
|
5507
|
-
newHeight = newHeight === VOID ? _this__u8e3s4.
|
|
5507
|
+
newHeight = newHeight === VOID ? _this__u8e3s4.v2d_1.s() : newHeight;
|
|
5508
5508
|
verticalAlign = verticalAlign === VOID ? VerticalAlign_TOP_getInstance() : verticalAlign;
|
|
5509
5509
|
textAlign = textAlign === VOID ? TextAlign_NONE_getInstance() : textAlign;
|
|
5510
5510
|
scrollRight = scrollRight === VOID ? 0 : scrollRight;
|
|
@@ -5529,19 +5529,19 @@
|
|
|
5529
5529
|
while (inductionVariable < newHeight);
|
|
5530
5530
|
return new Lines(list);
|
|
5531
5531
|
}
|
|
5532
|
-
var emptyLine = Line_init_$Create$(listOf_0(Companion_instance_0.
|
|
5532
|
+
var emptyLine = Line_init_$Create$(listOf_0(Companion_instance_0.c2e(newWidth)));
|
|
5533
5533
|
var tmp;
|
|
5534
5534
|
if (scrollDown === 0) {
|
|
5535
|
-
tmp = _this__u8e3s4.
|
|
5535
|
+
tmp = _this__u8e3s4.v2d_1;
|
|
5536
5536
|
} else {
|
|
5537
|
-
var containsLower = -get_lastIndex_0(_this__u8e3s4.
|
|
5538
|
-
if (!(scrollDown <= get_lastIndex_0(_this__u8e3s4.
|
|
5537
|
+
var containsLower = -get_lastIndex_0(_this__u8e3s4.v2d_1) | 0;
|
|
5538
|
+
if (!(scrollDown <= get_lastIndex_0(_this__u8e3s4.v2d_1) ? containsLower <= scrollDown : false)) {
|
|
5539
5539
|
tmp = emptyList();
|
|
5540
5540
|
} else {
|
|
5541
5541
|
if (scrollDown < 0) {
|
|
5542
5542
|
// Inline function 'kotlin.collections.buildList' call
|
|
5543
5543
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
5544
|
-
var capacity = _this__u8e3s4.
|
|
5544
|
+
var capacity = _this__u8e3s4.v2d_1.s() - scrollDown | 0;
|
|
5545
5545
|
checkBuilderCapacity(capacity);
|
|
5546
5546
|
// Inline function 'kotlin.apply' call
|
|
5547
5547
|
var this_0 = ArrayList_init_$Create$_0(capacity);
|
|
@@ -5557,10 +5557,10 @@
|
|
|
5557
5557
|
this_0.e(emptyLine);
|
|
5558
5558
|
}
|
|
5559
5559
|
while (inductionVariable_0 < times);
|
|
5560
|
-
this_0.u(_this__u8e3s4.
|
|
5560
|
+
this_0.u(_this__u8e3s4.v2d_1);
|
|
5561
5561
|
tmp = this_0.m5();
|
|
5562
5562
|
} else {
|
|
5563
|
-
tmp = _this__u8e3s4.
|
|
5563
|
+
tmp = _this__u8e3s4.v2d_1.a2(scrollDown, _this__u8e3s4.v2d_1.s());
|
|
5564
5564
|
}
|
|
5565
5565
|
}
|
|
5566
5566
|
}
|
|
@@ -5623,7 +5623,7 @@
|
|
|
5623
5623
|
function resizeLine(line, scrollRight, newWidth, textAlign) {
|
|
5624
5624
|
var width = 0;
|
|
5625
5625
|
var offset = 0;
|
|
5626
|
-
var inputLine = scrollRight < 0 ? plus(listOf_0(Companion_instance_0.
|
|
5626
|
+
var inputLine = scrollRight < 0 ? plus(listOf_0(Companion_instance_0.e2g(-scrollRight | 0, get_startStyle(line))), line.w2d_1) : line.w2d_1;
|
|
5627
5627
|
var startIndex = 0;
|
|
5628
5628
|
var endIndex = inputLine.s();
|
|
5629
5629
|
var startSpan = null;
|
|
@@ -5634,24 +5634,24 @@
|
|
|
5634
5634
|
var j = index;
|
|
5635
5635
|
index = index + 1 | 0;
|
|
5636
5636
|
var span = iterator.r();
|
|
5637
|
-
if (scrollRight > 0 && (offset + span.
|
|
5638
|
-
offset = offset + span.
|
|
5637
|
+
if (scrollRight > 0 && (offset + span.d2g() | 0) < scrollRight) {
|
|
5638
|
+
offset = offset + span.d2g() | 0;
|
|
5639
5639
|
startIndex = j + 1 | 0;
|
|
5640
5640
|
} else if (scrollRight > 0 && offset < scrollRight) {
|
|
5641
|
-
if ((offset + span.
|
|
5642
|
-
startSpan = span.
|
|
5641
|
+
if ((offset + span.d2g() | 0) > scrollRight) {
|
|
5642
|
+
startSpan = span.g2g(scrollRight - offset | 0).f2g(newWidth - width | 0);
|
|
5643
5643
|
startIndex = j;
|
|
5644
|
-
width = width + startSpan.
|
|
5644
|
+
width = width + startSpan.d2g() | 0;
|
|
5645
5645
|
}
|
|
5646
5646
|
offset = scrollRight;
|
|
5647
5647
|
startIndex = j + 1 | 0;
|
|
5648
|
-
} else if ((width + span.
|
|
5649
|
-
width = width + span.
|
|
5648
|
+
} else if ((width + span.d2g() | 0) <= newWidth) {
|
|
5649
|
+
width = width + span.d2g() | 0;
|
|
5650
5650
|
endIndex = j + 1 | 0;
|
|
5651
5651
|
} else {
|
|
5652
5652
|
endIndex = j;
|
|
5653
5653
|
if (width < newWidth) {
|
|
5654
|
-
endSpan = span.
|
|
5654
|
+
endSpan = span.f2g(newWidth - width | 0);
|
|
5655
5655
|
width = newWidth;
|
|
5656
5656
|
}
|
|
5657
5657
|
break $l$loop;
|
|
@@ -5681,24 +5681,24 @@
|
|
|
5681
5681
|
return outputLine;
|
|
5682
5682
|
}
|
|
5683
5683
|
var tmp50_safe_receiver = firstOrNull(outputLine);
|
|
5684
|
-
var tmp0_elvis_lhs = tmp50_safe_receiver == null ? null : tmp50_safe_receiver.
|
|
5685
|
-
var beginStyle = tmp0_elvis_lhs == null ? line.
|
|
5686
|
-
var endStyle = line.
|
|
5684
|
+
var tmp0_elvis_lhs = tmp50_safe_receiver == null ? null : tmp50_safe_receiver.z2d_1;
|
|
5685
|
+
var beginStyle = tmp0_elvis_lhs == null ? line.x2d_1 : tmp0_elvis_lhs;
|
|
5686
|
+
var endStyle = line.x2d_1;
|
|
5687
5687
|
var tmp_0;
|
|
5688
5688
|
switch (textAlign.q2_1) {
|
|
5689
5689
|
case 0:
|
|
5690
|
-
tmp_0 = plus_0(outputLine, Companion_instance_0.
|
|
5690
|
+
tmp_0 = plus_0(outputLine, Companion_instance_0.e2g(remainingWidth, endStyle));
|
|
5691
5691
|
break;
|
|
5692
5692
|
case 4:
|
|
5693
|
-
tmp_0 = plus_0(outputLine, Companion_instance_0.
|
|
5693
|
+
tmp_0 = plus_0(outputLine, Companion_instance_0.c2e(remainingWidth));
|
|
5694
5694
|
break;
|
|
5695
5695
|
case 1:
|
|
5696
|
-
tmp_0 = plus(listOf_0(Companion_instance_0.
|
|
5696
|
+
tmp_0 = plus(listOf_0(Companion_instance_0.e2g(remainingWidth, beginStyle)), outputLine);
|
|
5697
5697
|
break;
|
|
5698
5698
|
case 2:
|
|
5699
5699
|
case 3:
|
|
5700
|
-
var l = Companion_instance_0.
|
|
5701
|
-
var r = Companion_instance_0.
|
|
5700
|
+
var l = Companion_instance_0.e2g(remainingWidth / 2 | 0, beginStyle);
|
|
5701
|
+
var r = Companion_instance_0.e2g((remainingWidth / 2 | 0) + (remainingWidth % 2 | 0) | 0, endStyle);
|
|
5702
5702
|
// Inline function 'kotlin.collections.buildList' call
|
|
5703
5703
|
|
|
5704
5704
|
// Inline function 'kotlin.collections.buildListInternal' call
|
|
@@ -5723,7 +5723,7 @@
|
|
|
5723
5723
|
}
|
|
5724
5724
|
function get_startStyle(_this__u8e3s4) {
|
|
5725
5725
|
var tmp45_safe_receiver = firstOrNull(_this__u8e3s4);
|
|
5726
|
-
var tmp0_elvis_lhs = tmp45_safe_receiver == null ? null : tmp45_safe_receiver.
|
|
5726
|
+
var tmp0_elvis_lhs = tmp45_safe_receiver == null ? null : tmp45_safe_receiver.z2d_1;
|
|
5727
5727
|
return tmp0_elvis_lhs == null ? get_DEFAULT_STYLE() : tmp0_elvis_lhs;
|
|
5728
5728
|
}
|
|
5729
5729
|
var OverflowWrap_NORMAL_instance;
|
|
@@ -5752,15 +5752,15 @@
|
|
|
5752
5752
|
return OverflowWrap_ELLIPSES_instance;
|
|
5753
5753
|
}
|
|
5754
5754
|
function Size(width, height) {
|
|
5755
|
-
this.
|
|
5756
|
-
this.
|
|
5755
|
+
this.h2g_1 = width;
|
|
5756
|
+
this.i2g_1 = height;
|
|
5757
5757
|
}
|
|
5758
5758
|
protoOf(Size).toString = function () {
|
|
5759
|
-
return '' + this.
|
|
5759
|
+
return '' + this.h2g_1 + '\xD7' + this.i2g_1;
|
|
5760
5760
|
};
|
|
5761
5761
|
function Companion_0() {
|
|
5762
5762
|
}
|
|
5763
|
-
protoOf(Companion_0).
|
|
5763
|
+
protoOf(Companion_0).i2e = function (text, style) {
|
|
5764
5764
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
5765
5765
|
// Inline function 'kotlin.require' call
|
|
5766
5766
|
if (!(charSequenceLength(text) > 0)) {
|
|
@@ -5802,13 +5802,13 @@
|
|
|
5802
5802
|
}
|
|
5803
5803
|
return new Span(text, style);
|
|
5804
5804
|
};
|
|
5805
|
-
protoOf(Companion_0).
|
|
5805
|
+
protoOf(Companion_0).e2g = function (width, style) {
|
|
5806
5806
|
return new Span(repeat(' ', width), style);
|
|
5807
5807
|
};
|
|
5808
|
-
protoOf(Companion_0).
|
|
5808
|
+
protoOf(Companion_0).c2e = function (width, style, $super) {
|
|
5809
5809
|
width = width === VOID ? 1 : width;
|
|
5810
5810
|
style = style === VOID ? get_DEFAULT_STYLE() : style;
|
|
5811
|
-
return $super === VOID ? this.
|
|
5811
|
+
return $super === VOID ? this.e2g(width, style) : $super.e2g.call(this, width, style);
|
|
5812
5812
|
};
|
|
5813
5813
|
var Companion_instance_0;
|
|
5814
5814
|
function Companion_getInstance_1() {
|
|
@@ -5816,44 +5816,44 @@
|
|
|
5816
5816
|
}
|
|
5817
5817
|
function Span$cellWidth$delegate$lambda(this$0) {
|
|
5818
5818
|
return function () {
|
|
5819
|
-
return stringCellWidth(this$0.
|
|
5819
|
+
return stringCellWidth(this$0.y2d_1);
|
|
5820
5820
|
};
|
|
5821
5821
|
}
|
|
5822
5822
|
function Span(text, style) {
|
|
5823
5823
|
style = style === VOID ? get_DEFAULT_STYLE() : style;
|
|
5824
|
-
this.
|
|
5825
|
-
this.
|
|
5824
|
+
this.y2d_1 = text;
|
|
5825
|
+
this.z2d_1 = style;
|
|
5826
5826
|
var tmp = this;
|
|
5827
5827
|
var tmp_0 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
5828
|
-
tmp.
|
|
5828
|
+
tmp.a2e_1 = lazy(tmp_0, Span$cellWidth$delegate$lambda(this));
|
|
5829
5829
|
}
|
|
5830
|
-
protoOf(Span).
|
|
5831
|
-
var tmp0 = this.
|
|
5830
|
+
protoOf(Span).d2g = function () {
|
|
5831
|
+
var tmp0 = this.a2e_1;
|
|
5832
5832
|
// Inline function 'kotlin.getValue' call
|
|
5833
5833
|
cellWidth$factory();
|
|
5834
5834
|
return tmp0.z();
|
|
5835
5835
|
};
|
|
5836
|
-
protoOf(Span).
|
|
5837
|
-
return new Span(take(this.
|
|
5836
|
+
protoOf(Span).f2g = function (n) {
|
|
5837
|
+
return new Span(take(this.y2d_1, n), this.z2d_1);
|
|
5838
5838
|
};
|
|
5839
|
-
protoOf(Span).
|
|
5840
|
-
return new Span(drop(this.
|
|
5839
|
+
protoOf(Span).g2g = function (n) {
|
|
5840
|
+
return new Span(drop(this.y2d_1, n), this.z2d_1);
|
|
5841
5841
|
};
|
|
5842
|
-
protoOf(Span).
|
|
5843
|
-
return isWhitespace(charSequenceGet(this.
|
|
5842
|
+
protoOf(Span).j2g = function () {
|
|
5843
|
+
return isWhitespace(charSequenceGet(this.y2d_1, 0));
|
|
5844
5844
|
};
|
|
5845
|
-
protoOf(Span).
|
|
5846
|
-
return charSequenceGet(this.
|
|
5845
|
+
protoOf(Span).k2g = function () {
|
|
5846
|
+
return charSequenceGet(this.y2d_1, 0) === _Char___init__impl__6a9atx(9);
|
|
5847
5847
|
};
|
|
5848
|
-
protoOf(Span).
|
|
5849
|
-
return new Span(this.
|
|
5848
|
+
protoOf(Span).a2g = function (style) {
|
|
5849
|
+
return new Span(this.y2d_1, this.z2d_1.b2e(style));
|
|
5850
5850
|
};
|
|
5851
5851
|
protoOf(Span).toString = function () {
|
|
5852
|
-
return "<Span '" + this.
|
|
5852
|
+
return "<Span '" + this.y2d_1 + "', " + toString(this.z2d_1) + '>';
|
|
5853
5853
|
};
|
|
5854
5854
|
function cellWidth$factory() {
|
|
5855
5855
|
return getPropertyCallableRef('cellWidth', 1, KProperty1, function (receiver) {
|
|
5856
|
-
return receiver.
|
|
5856
|
+
return receiver.d2g();
|
|
5857
5857
|
}, null);
|
|
5858
5858
|
}
|
|
5859
5859
|
var AnsiLevel_NONE_instance;
|
|
@@ -5912,61 +5912,61 @@
|
|
|
5912
5912
|
return new TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, hyperlink, tmp);
|
|
5913
5913
|
}
|
|
5914
5914
|
function TxtStyle(color, bgColor, bold, italic, underline, dim, inverse, strikethrough, hyperlink, hyperlinkId) {
|
|
5915
|
-
this.
|
|
5916
|
-
this.
|
|
5917
|
-
this.
|
|
5918
|
-
this.
|
|
5919
|
-
this.
|
|
5920
|
-
this.
|
|
5921
|
-
this.
|
|
5922
|
-
this.
|
|
5923
|
-
this.
|
|
5924
|
-
this.
|
|
5925
|
-
}
|
|
5926
|
-
protoOf(TxtStyle).
|
|
5927
|
-
return this.h2g_1;
|
|
5928
|
-
};
|
|
5929
|
-
protoOf(TxtStyle).i2d = function () {
|
|
5930
|
-
return this.i2g_1;
|
|
5931
|
-
};
|
|
5932
|
-
protoOf(TxtStyle).n2d = function () {
|
|
5933
|
-
return this.j2g_1;
|
|
5934
|
-
};
|
|
5935
|
-
protoOf(TxtStyle).j2d = function () {
|
|
5936
|
-
return this.k2g_1;
|
|
5937
|
-
};
|
|
5938
|
-
protoOf(TxtStyle).k2d = function () {
|
|
5915
|
+
this.l2g_1 = color;
|
|
5916
|
+
this.m2g_1 = bgColor;
|
|
5917
|
+
this.n2g_1 = bold;
|
|
5918
|
+
this.o2g_1 = italic;
|
|
5919
|
+
this.p2g_1 = underline;
|
|
5920
|
+
this.q2g_1 = dim;
|
|
5921
|
+
this.r2g_1 = inverse;
|
|
5922
|
+
this.s2g_1 = strikethrough;
|
|
5923
|
+
this.t2g_1 = hyperlink;
|
|
5924
|
+
this.u2g_1 = hyperlinkId;
|
|
5925
|
+
}
|
|
5926
|
+
protoOf(TxtStyle).l2d = function () {
|
|
5939
5927
|
return this.l2g_1;
|
|
5940
5928
|
};
|
|
5941
|
-
protoOf(TxtStyle).
|
|
5929
|
+
protoOf(TxtStyle).m2d = function () {
|
|
5942
5930
|
return this.m2g_1;
|
|
5943
5931
|
};
|
|
5944
|
-
protoOf(TxtStyle).
|
|
5932
|
+
protoOf(TxtStyle).r2d = function () {
|
|
5945
5933
|
return this.n2g_1;
|
|
5946
5934
|
};
|
|
5947
|
-
protoOf(TxtStyle).
|
|
5935
|
+
protoOf(TxtStyle).n2d = function () {
|
|
5948
5936
|
return this.o2g_1;
|
|
5949
5937
|
};
|
|
5950
|
-
protoOf(TxtStyle).
|
|
5938
|
+
protoOf(TxtStyle).o2d = function () {
|
|
5951
5939
|
return this.p2g_1;
|
|
5952
5940
|
};
|
|
5953
|
-
protoOf(TxtStyle).
|
|
5941
|
+
protoOf(TxtStyle).s2d = function () {
|
|
5954
5942
|
return this.q2g_1;
|
|
5955
5943
|
};
|
|
5944
|
+
protoOf(TxtStyle).p2d = function () {
|
|
5945
|
+
return this.r2g_1;
|
|
5946
|
+
};
|
|
5947
|
+
protoOf(TxtStyle).q2d = function () {
|
|
5948
|
+
return this.s2g_1;
|
|
5949
|
+
};
|
|
5950
|
+
protoOf(TxtStyle).t2d = function () {
|
|
5951
|
+
return this.t2g_1;
|
|
5952
|
+
};
|
|
5953
|
+
protoOf(TxtStyle).u2d = function () {
|
|
5954
|
+
return this.u2g_1;
|
|
5955
|
+
};
|
|
5956
5956
|
protoOf(TxtStyle).toString = function () {
|
|
5957
|
-
return 'TxtStyle(color=' + toString_1(this.
|
|
5957
|
+
return 'TxtStyle(color=' + toString_1(this.l2g_1) + ', bgColor=' + toString_1(this.m2g_1) + ', bold=' + this.n2g_1 + ', italic=' + this.o2g_1 + ', underline=' + this.p2g_1 + ', dim=' + this.q2g_1 + ', inverse=' + this.r2g_1 + ', strikethrough=' + this.s2g_1 + ', hyperlink=' + this.t2g_1 + ', hyperlinkId=' + this.u2g_1 + ')';
|
|
5958
5958
|
};
|
|
5959
5959
|
protoOf(TxtStyle).hashCode = function () {
|
|
5960
|
-
var result = this.
|
|
5961
|
-
result = imul(result, 31) + (this.
|
|
5962
|
-
result = imul(result, 31) + (this.j2g_1 == null ? 0 : getBooleanHashCode(this.j2g_1)) | 0;
|
|
5963
|
-
result = imul(result, 31) + (this.k2g_1 == null ? 0 : getBooleanHashCode(this.k2g_1)) | 0;
|
|
5964
|
-
result = imul(result, 31) + (this.l2g_1 == null ? 0 : getBooleanHashCode(this.l2g_1)) | 0;
|
|
5965
|
-
result = imul(result, 31) + (this.m2g_1 == null ? 0 : getBooleanHashCode(this.m2g_1)) | 0;
|
|
5960
|
+
var result = this.l2g_1 == null ? 0 : hashCode(this.l2g_1);
|
|
5961
|
+
result = imul(result, 31) + (this.m2g_1 == null ? 0 : hashCode(this.m2g_1)) | 0;
|
|
5966
5962
|
result = imul(result, 31) + (this.n2g_1 == null ? 0 : getBooleanHashCode(this.n2g_1)) | 0;
|
|
5967
5963
|
result = imul(result, 31) + (this.o2g_1 == null ? 0 : getBooleanHashCode(this.o2g_1)) | 0;
|
|
5968
|
-
result = imul(result, 31) + (this.p2g_1 == null ? 0 :
|
|
5969
|
-
result = imul(result, 31) + (this.q2g_1 == null ? 0 :
|
|
5964
|
+
result = imul(result, 31) + (this.p2g_1 == null ? 0 : getBooleanHashCode(this.p2g_1)) | 0;
|
|
5965
|
+
result = imul(result, 31) + (this.q2g_1 == null ? 0 : getBooleanHashCode(this.q2g_1)) | 0;
|
|
5966
|
+
result = imul(result, 31) + (this.r2g_1 == null ? 0 : getBooleanHashCode(this.r2g_1)) | 0;
|
|
5967
|
+
result = imul(result, 31) + (this.s2g_1 == null ? 0 : getBooleanHashCode(this.s2g_1)) | 0;
|
|
5968
|
+
result = imul(result, 31) + (this.t2g_1 == null ? 0 : getStringHashCode(this.t2g_1)) | 0;
|
|
5969
|
+
result = imul(result, 31) + (this.u2g_1 == null ? 0 : getStringHashCode(this.u2g_1)) | 0;
|
|
5970
5970
|
return result;
|
|
5971
5971
|
};
|
|
5972
5972
|
protoOf(TxtStyle).equals = function (other) {
|
|
@@ -5975,17 +5975,9 @@
|
|
|
5975
5975
|
if (!(other instanceof TxtStyle))
|
|
5976
5976
|
return false;
|
|
5977
5977
|
var tmp0_other_with_cast = other instanceof TxtStyle ? other : THROW_CCE();
|
|
5978
|
-
if (!equals(this.
|
|
5979
|
-
return false;
|
|
5980
|
-
if (!equals(this.i2g_1, tmp0_other_with_cast.i2g_1))
|
|
5981
|
-
return false;
|
|
5982
|
-
if (!(this.j2g_1 == tmp0_other_with_cast.j2g_1))
|
|
5978
|
+
if (!equals(this.l2g_1, tmp0_other_with_cast.l2g_1))
|
|
5983
5979
|
return false;
|
|
5984
|
-
if (!(this.
|
|
5985
|
-
return false;
|
|
5986
|
-
if (!(this.l2g_1 == tmp0_other_with_cast.l2g_1))
|
|
5987
|
-
return false;
|
|
5988
|
-
if (!(this.m2g_1 == tmp0_other_with_cast.m2g_1))
|
|
5980
|
+
if (!equals(this.m2g_1, tmp0_other_with_cast.m2g_1))
|
|
5989
5981
|
return false;
|
|
5990
5982
|
if (!(this.n2g_1 == tmp0_other_with_cast.n2g_1))
|
|
5991
5983
|
return false;
|
|
@@ -5995,14 +5987,22 @@
|
|
|
5995
5987
|
return false;
|
|
5996
5988
|
if (!(this.q2g_1 == tmp0_other_with_cast.q2g_1))
|
|
5997
5989
|
return false;
|
|
5990
|
+
if (!(this.r2g_1 == tmp0_other_with_cast.r2g_1))
|
|
5991
|
+
return false;
|
|
5992
|
+
if (!(this.s2g_1 == tmp0_other_with_cast.s2g_1))
|
|
5993
|
+
return false;
|
|
5994
|
+
if (!(this.t2g_1 == tmp0_other_with_cast.t2g_1))
|
|
5995
|
+
return false;
|
|
5996
|
+
if (!(this.u2g_1 == tmp0_other_with_cast.u2g_1))
|
|
5997
|
+
return false;
|
|
5998
5998
|
return true;
|
|
5999
5999
|
};
|
|
6000
6000
|
function copy(_this__u8e3s4, fg, bg, hyperlink, hyperlinkId) {
|
|
6001
|
-
fg = fg === VOID ? _this__u8e3s4.
|
|
6002
|
-
bg = bg === VOID ? _this__u8e3s4.
|
|
6003
|
-
hyperlink = hyperlink === VOID ? _this__u8e3s4.
|
|
6004
|
-
hyperlinkId = hyperlinkId === VOID ? _this__u8e3s4.
|
|
6005
|
-
return new TxtStyle(fg, bg, _this__u8e3s4.
|
|
6001
|
+
fg = fg === VOID ? _this__u8e3s4.l2d() : fg;
|
|
6002
|
+
bg = bg === VOID ? _this__u8e3s4.m2d() : bg;
|
|
6003
|
+
hyperlink = hyperlink === VOID ? _this__u8e3s4.t2d() : hyperlink;
|
|
6004
|
+
hyperlinkId = hyperlinkId === VOID ? _this__u8e3s4.u2d() : hyperlinkId;
|
|
6005
|
+
return new TxtStyle(fg, bg, _this__u8e3s4.r2d(), _this__u8e3s4.n2d(), _this__u8e3s4.o2d(), _this__u8e3s4.s2d(), _this__u8e3s4.p2d(), _this__u8e3s4.q2d(), hyperlink, hyperlinkId);
|
|
6006
6006
|
}
|
|
6007
6007
|
function foldStyles(styles) {
|
|
6008
6008
|
var style = null;
|
|
@@ -6013,71 +6013,71 @@
|
|
|
6013
6013
|
inductionVariable = inductionVariable + 1 | 0;
|
|
6014
6014
|
if (s == null)
|
|
6015
6015
|
continue $l$loop;
|
|
6016
|
-
style = style == null ? s : s.
|
|
6016
|
+
style = style == null ? s : s.b2e(style);
|
|
6017
6017
|
}
|
|
6018
6018
|
return style;
|
|
6019
6019
|
}
|
|
6020
6020
|
function Theme$Companion$Plain$lambda($this$Theme) {
|
|
6021
|
-
var tmp0 = $this$Theme.
|
|
6021
|
+
var tmp0 = $this$Theme.x2g_1;
|
|
6022
6022
|
// Inline function 'kotlin.collections.set' call
|
|
6023
6023
|
var key = 'progressbar.pulse';
|
|
6024
6024
|
tmp0.m2(key, false);
|
|
6025
6025
|
return Unit_instance;
|
|
6026
6026
|
}
|
|
6027
6027
|
function Theme$Companion$PlainAscii$lambda($this$Theme) {
|
|
6028
|
-
var tmp0 = $this$Theme.
|
|
6028
|
+
var tmp0 = $this$Theme.w2g_1;
|
|
6029
6029
|
// Inline function 'kotlin.collections.set' call
|
|
6030
6030
|
var key = 'list.number.separator';
|
|
6031
6031
|
tmp0.m2(key, '.');
|
|
6032
|
-
var tmp3 = $this$Theme.
|
|
6032
|
+
var tmp3 = $this$Theme.w2g_1;
|
|
6033
6033
|
// Inline function 'kotlin.collections.set' call
|
|
6034
6034
|
var key_0 = 'list.bullet.text';
|
|
6035
6035
|
tmp3.m2(key_0, '*');
|
|
6036
|
-
var tmp6 = $this$Theme.
|
|
6036
|
+
var tmp6 = $this$Theme.w2g_1;
|
|
6037
6037
|
// Inline function 'kotlin.collections.set' call
|
|
6038
6038
|
var key_1 = 'progressbar.pending';
|
|
6039
6039
|
tmp6.m2(key_1, ' ');
|
|
6040
|
-
var tmp9 = $this$Theme.
|
|
6040
|
+
var tmp9 = $this$Theme.w2g_1;
|
|
6041
6041
|
// Inline function 'kotlin.collections.set' call
|
|
6042
6042
|
var key_2 = 'progressbar.complete';
|
|
6043
6043
|
tmp9.m2(key_2, '#');
|
|
6044
|
-
var tmp12 = $this$Theme.
|
|
6044
|
+
var tmp12 = $this$Theme.w2g_1;
|
|
6045
6045
|
// Inline function 'kotlin.collections.set' call
|
|
6046
6046
|
var key_3 = 'progressbar.separator';
|
|
6047
6047
|
tmp12.m2(key_3, '>');
|
|
6048
|
-
var tmp15 = $this$Theme.
|
|
6048
|
+
var tmp15 = $this$Theme.w2g_1;
|
|
6049
6049
|
// Inline function 'kotlin.collections.set' call
|
|
6050
6050
|
var key_4 = 'markdown.task.checked';
|
|
6051
6051
|
tmp15.m2(key_4, '[x]');
|
|
6052
|
-
var tmp18 = $this$Theme.
|
|
6052
|
+
var tmp18 = $this$Theme.w2g_1;
|
|
6053
6053
|
// Inline function 'kotlin.collections.set' call
|
|
6054
6054
|
var key_5 = 'markdown.task.unchecked';
|
|
6055
6055
|
tmp18.m2(key_5, '[ ]');
|
|
6056
|
-
var tmp21 = $this$Theme.
|
|
6056
|
+
var tmp21 = $this$Theme.w2g_1;
|
|
6057
6057
|
// Inline function 'kotlin.collections.set' call
|
|
6058
6058
|
var key_6 = 'markdown.h1.rule';
|
|
6059
6059
|
tmp21.m2(key_6, '=');
|
|
6060
|
-
var tmp24 = $this$Theme.
|
|
6060
|
+
var tmp24 = $this$Theme.w2g_1;
|
|
6061
6061
|
// Inline function 'kotlin.collections.set' call
|
|
6062
6062
|
var key_7 = 'markdown.h2.rule';
|
|
6063
6063
|
tmp24.m2(key_7, '-');
|
|
6064
|
-
var tmp27 = $this$Theme.
|
|
6064
|
+
var tmp27 = $this$Theme.w2g_1;
|
|
6065
6065
|
// Inline function 'kotlin.collections.set' call
|
|
6066
6066
|
var key_8 = 'markdown.blockquote.bar';
|
|
6067
6067
|
tmp27.m2(key_8, '|');
|
|
6068
|
-
var tmp30 = $this$Theme.
|
|
6068
|
+
var tmp30 = $this$Theme.w2g_1;
|
|
6069
6069
|
// Inline function 'kotlin.collections.set' call
|
|
6070
6070
|
var key_9 = 'select.cursor';
|
|
6071
6071
|
tmp30.m2(key_9, '>');
|
|
6072
|
-
var tmp33 = $this$Theme.
|
|
6072
|
+
var tmp33 = $this$Theme.w2g_1;
|
|
6073
6073
|
// Inline function 'kotlin.collections.set' call
|
|
6074
6074
|
var key_10 = 'select.selected';
|
|
6075
6075
|
tmp33.m2(key_10, 'x');
|
|
6076
|
-
var tmp36 = $this$Theme.
|
|
6076
|
+
var tmp36 = $this$Theme.w2g_1;
|
|
6077
6077
|
// Inline function 'kotlin.collections.set' call
|
|
6078
6078
|
var key_11 = 'select.unselected';
|
|
6079
6079
|
tmp36.m2(key_11, ' ');
|
|
6080
|
-
var tmp39 = $this$Theme.
|
|
6080
|
+
var tmp39 = $this$Theme.x2g_1;
|
|
6081
6081
|
// Inline function 'kotlin.collections.set' call
|
|
6082
6082
|
var key_12 = 'markdown.table.ascii';
|
|
6083
6083
|
tmp39.m2(key_12, true);
|
|
@@ -6085,18 +6085,18 @@
|
|
|
6085
6085
|
}
|
|
6086
6086
|
function Companion_1() {
|
|
6087
6087
|
Companion_instance_1 = this;
|
|
6088
|
-
this.
|
|
6089
|
-
this.
|
|
6090
|
-
this.
|
|
6091
|
-
this.
|
|
6092
|
-
this.
|
|
6093
|
-
this.
|
|
6094
|
-
this.
|
|
6088
|
+
this.z2g_1 = Companion_getInstance().m2a('#c678dd');
|
|
6089
|
+
this.a2h_1 = Companion_getInstance().m2a('#61afef');
|
|
6090
|
+
this.b2h_1 = Companion_getInstance().m2a('#5c6370');
|
|
6091
|
+
this.c2h_1 = Companion_getInstance().m2a('#e06c75');
|
|
6092
|
+
this.d2h_1 = Companion_getInstance().m2a('#e5c07b');
|
|
6093
|
+
this.e2h_1 = Companion_getInstance().m2a('#98c379');
|
|
6094
|
+
this.f2h_1 = new BuiltTheme(mapOf([to('success', TextStyle_0(this.e2h_1)), to('danger', TextStyle_0(this.c2h_1)), to('warning', TextStyle_0(this.d2h_1)), to('info', TextStyle_0(this.a2h_1)), to('muted', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true)), to('list.number', get_DEFAULT_STYLE()), to('list.bullet', get_DEFAULT_STYLE()), to('hr.rule', get_DEFAULT_STYLE()), to('panel.border', get_DEFAULT_STYLE()), to('prompt.prompt', get_DEFAULT_STYLE()), to('prompt.default', TextStyle_0(this.a2h_1, VOID, true)), to('prompt.choices', TextStyle_0(this.a2h_1, VOID, true)), to('prompt.choices.invalid', TextStyle_0(this.c2h_1)), to('progressbar.pending', TextStyle_0(this.b2h_1)), to('progressbar.complete', TextStyle_0(this.a2h_1)), to('progressbar.indeterminate', TextStyle_0(this.a2h_1)), to('progressbar.separator', get_DEFAULT_STYLE()), to('progressbar.finished', TextStyle_0(this.e2h_1)), to('markdown.blockquote', TextStyle_0(this.d2h_1)), to('markdown.emph', TextStyle_0(VOID, VOID, VOID, true)), to('markdown.strong', TextStyle_0(VOID, VOID, true)), to('markdown.stikethrough', TextStyle_0(VOID, VOID, VOID, VOID, VOID, VOID, VOID, true)), to('markdown.code.block', TextStyle_0(this.a2h_1)), to('markdown.code.span', TextStyle_0(this.a2h_1, this.b2h_1)), to('markdown.table.header', TextStyle_0(VOID, VOID, true)), to('markdown.table.body', get_DEFAULT_STYLE()), to('markdown.link.text', TextStyle_0(this.a2h_1)), to('markdown.link.destination', TextStyle_0(this.a2h_1, VOID, VOID, VOID, VOID, true)), to('markdown.img.alt-text', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true)), to('markdown.h1', TextStyle_0(this.z2g_1, VOID, true)), to('markdown.h2', TextStyle_0(this.z2g_1, VOID, true)), to('markdown.h3', TextStyle_0(this.z2g_1, VOID, true, VOID, true)), to('markdown.h4', TextStyle_0(this.z2g_1, VOID, VOID, VOID, true)), to('markdown.h5', TextStyle_0(this.z2g_1, VOID, VOID, true)), to('markdown.h6', TextStyle_0(this.z2g_1, VOID, VOID, VOID, VOID, true)), to('select.title', TextStyle_0(this.z2g_1, VOID, true)), to('select.cursor', TextStyle_0(this.a2h_1)), to('select.selected', TextStyle_0(this.e2h_1)), to('select.unselected-title', get_DEFAULT_STYLE()), to('select.unselected-marker', TextStyle_0(VOID, VOID, VOID, VOID, VOID, true))]), mapOf([to('list.number.separator', '.'), to('list.bullet.text', '\u2022'), to('progressbar.pending', '\u2501'), to('progressbar.complete', '\u2501'), to('progressbar.separator', ' '), to('hr.rule', '\u2500'), to('markdown.task.checked', '\u2611'), to('markdown.task.unchecked', '\u2610'), to('markdown.h1.rule', '\u2550'), to('markdown.h2.rule', '\u2500'), to('markdown.h3.rule', ' '), to('markdown.h4.rule', ' '), to('markdown.h5.rule', ' '), to('markdown.h6.rule', ' '), to('markdown.blockquote.bar', '\u258E'), to('select.cursor', '\u276F'), to('select.selected', '\u2713'), to('select.unselected', '\u2022')]), mapOf([to('progressbar.pulse', true), to('markdown.code.block.border', true), to('markdown.table.ascii', false)]), mapOf([to('hr.title.padding', 1), to('panel.title.padding', 1), to('markdown.header.padding', 1)]));
|
|
6095
6095
|
var tmp = this;
|
|
6096
|
-
var tmp_0 = new BuiltTheme(emptyMap(), this.
|
|
6097
|
-
tmp.
|
|
6096
|
+
var tmp_0 = new BuiltTheme(emptyMap(), this.f2h_1.j2h_1, this.f2h_1.k2h_1, this.f2h_1.l2h_1);
|
|
6097
|
+
tmp.g2h_1 = Theme_0(tmp_0, Theme$Companion$Plain$lambda);
|
|
6098
6098
|
var tmp_1 = this;
|
|
6099
|
-
tmp_1.
|
|
6099
|
+
tmp_1.h2h_1 = Theme_0(this.g2h_1, Theme$Companion$PlainAscii$lambda);
|
|
6100
6100
|
}
|
|
6101
6101
|
var Companion_instance_1;
|
|
6102
6102
|
function Companion_getInstance_2() {
|
|
@@ -6106,14 +6106,14 @@
|
|
|
6106
6106
|
}
|
|
6107
6107
|
function Theme(styles, strings, flags, dimensions) {
|
|
6108
6108
|
Companion_getInstance_2();
|
|
6109
|
-
this.
|
|
6110
|
-
this.
|
|
6111
|
-
this.
|
|
6112
|
-
this.
|
|
6109
|
+
this.i2h_1 = styles;
|
|
6110
|
+
this.j2h_1 = strings;
|
|
6111
|
+
this.k2h_1 = flags;
|
|
6112
|
+
this.l2h_1 = dimensions;
|
|
6113
6113
|
}
|
|
6114
|
-
protoOf(Theme).
|
|
6114
|
+
protoOf(Theme).m2h = function (style, default_0) {
|
|
6115
6115
|
// Inline function 'kotlin.collections.getOrElse' call
|
|
6116
|
-
var tmp0_elvis_lhs = this.
|
|
6116
|
+
var tmp0_elvis_lhs = this.i2h_1.e2(style);
|
|
6117
6117
|
var tmp;
|
|
6118
6118
|
if (tmp0_elvis_lhs == null) {
|
|
6119
6119
|
// Inline function 'com.github.ajalt.mordant.rendering.Theme.style.<anonymous>' call
|
|
@@ -6123,28 +6123,28 @@
|
|
|
6123
6123
|
}
|
|
6124
6124
|
return tmp;
|
|
6125
6125
|
};
|
|
6126
|
-
protoOf(Theme).
|
|
6126
|
+
protoOf(Theme).n2h = function (style, default_0, $super) {
|
|
6127
6127
|
default_0 = default_0 === VOID ? get_DEFAULT_STYLE() : default_0;
|
|
6128
|
-
return $super === VOID ? this.
|
|
6128
|
+
return $super === VOID ? this.m2h(style, default_0) : $super.m2h.call(this, style, default_0);
|
|
6129
6129
|
};
|
|
6130
6130
|
function BuiltTheme(styles, strings, flags, dimensions) {
|
|
6131
6131
|
Theme.call(this, styles, strings, flags, dimensions);
|
|
6132
6132
|
}
|
|
6133
6133
|
function Theme_0(from, init) {
|
|
6134
|
-
from = from === VOID ? Companion_getInstance_2().
|
|
6134
|
+
from = from === VOID ? Companion_getInstance_2().f2h_1 : from;
|
|
6135
6135
|
// Inline function 'kotlin.apply' call
|
|
6136
|
-
var this_0 = new ThemeBuilder(toMutableMap(from.
|
|
6136
|
+
var this_0 = new ThemeBuilder(toMutableMap(from.i2h_1), toMutableMap(from.j2h_1), toMutableMap(from.k2h_1), toMutableMap(from.l2h_1));
|
|
6137
6137
|
init(this_0);
|
|
6138
|
-
return this_0.
|
|
6138
|
+
return this_0.o2h();
|
|
6139
6139
|
}
|
|
6140
6140
|
function ThemeBuilder(styles, strings, flags, dimensions) {
|
|
6141
|
-
this.
|
|
6142
|
-
this.
|
|
6143
|
-
this.
|
|
6144
|
-
this.
|
|
6141
|
+
this.v2g_1 = styles;
|
|
6142
|
+
this.w2g_1 = strings;
|
|
6143
|
+
this.x2g_1 = flags;
|
|
6144
|
+
this.y2g_1 = dimensions;
|
|
6145
6145
|
}
|
|
6146
|
-
protoOf(ThemeBuilder).
|
|
6147
|
-
return new BuiltTheme(this.
|
|
6146
|
+
protoOf(ThemeBuilder).o2h = function () {
|
|
6147
|
+
return new BuiltTheme(this.v2g_1, this.w2g_1, this.x2g_1, this.y2g_1);
|
|
6148
6148
|
};
|
|
6149
6149
|
var Whitespace_NORMAL_instance;
|
|
6150
6150
|
var Whitespace_NOWRAP_instance;
|
|
@@ -6164,10 +6164,10 @@
|
|
|
6164
6164
|
}
|
|
6165
6165
|
function Whitespace(name, ordinal, collapseNewlines, collapseSpaces, wrap, trimEol) {
|
|
6166
6166
|
Enum.call(this, name, ordinal);
|
|
6167
|
-
this.
|
|
6168
|
-
this.
|
|
6169
|
-
this.
|
|
6170
|
-
this.
|
|
6167
|
+
this.r2h_1 = collapseNewlines;
|
|
6168
|
+
this.s2h_1 = collapseSpaces;
|
|
6169
|
+
this.t2h_1 = wrap;
|
|
6170
|
+
this.u2h_1 = trimEol;
|
|
6171
6171
|
}
|
|
6172
6172
|
function Whitespace_NORMAL_getInstance() {
|
|
6173
6173
|
Whitespace_initEntries();
|
|
@@ -6184,30 +6184,30 @@
|
|
|
6184
6184
|
function Widget() {
|
|
6185
6185
|
}
|
|
6186
6186
|
function WidthRange(min, max) {
|
|
6187
|
-
this.
|
|
6188
|
-
this.
|
|
6187
|
+
this.j2i_1 = min;
|
|
6188
|
+
this.k2i_1 = max;
|
|
6189
6189
|
// Inline function 'kotlin.require' call
|
|
6190
|
-
if (!(this.
|
|
6190
|
+
if (!(this.j2i_1 <= this.k2i_1)) {
|
|
6191
6191
|
// Inline function 'com.github.ajalt.mordant.rendering.WidthRange.<anonymous>' call
|
|
6192
6192
|
var message = 'Range min cannot be larger than max';
|
|
6193
6193
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6194
6194
|
}
|
|
6195
6195
|
}
|
|
6196
|
-
protoOf(WidthRange).
|
|
6197
|
-
return extra === 0 ? this : new WidthRange(this.
|
|
6196
|
+
protoOf(WidthRange).l2i = function (extra) {
|
|
6197
|
+
return extra === 0 ? this : new WidthRange(this.j2i_1 + extra | 0, this.k2i_1 + extra | 0);
|
|
6198
6198
|
};
|
|
6199
|
-
protoOf(WidthRange).
|
|
6200
|
-
return new WidthRange(this.
|
|
6199
|
+
protoOf(WidthRange).m2i = function (other) {
|
|
6200
|
+
return new WidthRange(this.j2i_1 + other.j2i_1 | 0, this.k2i_1 + other.k2i_1 | 0);
|
|
6201
6201
|
};
|
|
6202
|
-
protoOf(WidthRange).
|
|
6203
|
-
return divisor === 1 ? this : new WidthRange(this.
|
|
6202
|
+
protoOf(WidthRange).n2i = function (divisor) {
|
|
6203
|
+
return divisor === 1 ? this : new WidthRange(this.j2i_1 / divisor | 0, this.k2i_1 / divisor | 0);
|
|
6204
6204
|
};
|
|
6205
6205
|
protoOf(WidthRange).toString = function () {
|
|
6206
|
-
return 'WidthRange(min=' + this.
|
|
6206
|
+
return 'WidthRange(min=' + this.j2i_1 + ', max=' + this.k2i_1 + ')';
|
|
6207
6207
|
};
|
|
6208
6208
|
protoOf(WidthRange).hashCode = function () {
|
|
6209
|
-
var result = this.
|
|
6210
|
-
result = imul(result, 31) + this.
|
|
6209
|
+
var result = this.j2i_1;
|
|
6210
|
+
result = imul(result, 31) + this.k2i_1 | 0;
|
|
6211
6211
|
return result;
|
|
6212
6212
|
};
|
|
6213
6213
|
protoOf(WidthRange).equals = function (other) {
|
|
@@ -6216,9 +6216,9 @@
|
|
|
6216
6216
|
if (!(other instanceof WidthRange))
|
|
6217
6217
|
return false;
|
|
6218
6218
|
var tmp0_other_with_cast = other instanceof WidthRange ? other : THROW_CCE();
|
|
6219
|
-
if (!(this.
|
|
6219
|
+
if (!(this.j2i_1 === tmp0_other_with_cast.j2i_1))
|
|
6220
6220
|
return false;
|
|
6221
|
-
if (!(this.
|
|
6221
|
+
if (!(this.k2i_1 === tmp0_other_with_cast.k2i_1))
|
|
6222
6222
|
return false;
|
|
6223
6223
|
return true;
|
|
6224
6224
|
};
|
|
@@ -6231,7 +6231,7 @@
|
|
|
6231
6231
|
$l$loop: while (_iterator__ex2g4s.q()) {
|
|
6232
6232
|
var it = _iterator__ex2g4s.r();
|
|
6233
6233
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange.<anonymous>' call
|
|
6234
|
-
var tmp0_elvis_lhs = it.
|
|
6234
|
+
var tmp0_elvis_lhs = it.v2h(t, width - paddingWidth | 0);
|
|
6235
6235
|
var tmp;
|
|
6236
6236
|
if (tmp0_elvis_lhs == null) {
|
|
6237
6237
|
continue $l$loop;
|
|
@@ -6241,11 +6241,11 @@
|
|
|
6241
6241
|
var range = tmp;
|
|
6242
6242
|
var tmp0 = max;
|
|
6243
6243
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6244
|
-
var b = range.
|
|
6244
|
+
var b = range.k2i_1;
|
|
6245
6245
|
max = Math.max(tmp0, b);
|
|
6246
6246
|
var tmp2 = min;
|
|
6247
6247
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6248
|
-
var b_0 = range.
|
|
6248
|
+
var b_0 = range.j2i_1;
|
|
6249
6249
|
min = Math.max(tmp2, b_0);
|
|
6250
6250
|
}
|
|
6251
6251
|
return new WidthRange(min + paddingWidth | 0, max + paddingWidth | 0);
|
|
@@ -6290,10 +6290,10 @@
|
|
|
6290
6290
|
}
|
|
6291
6291
|
function Borders(name, ordinal, left, top, right, bottom) {
|
|
6292
6292
|
Enum.call(this, name, ordinal);
|
|
6293
|
-
this.
|
|
6294
|
-
this.
|
|
6295
|
-
this.
|
|
6296
|
-
this.
|
|
6293
|
+
this.q2i_1 = left;
|
|
6294
|
+
this.r2i_1 = top;
|
|
6295
|
+
this.s2i_1 = right;
|
|
6296
|
+
this.t2i_1 = bottom;
|
|
6297
6297
|
}
|
|
6298
6298
|
function Borders_NONE_getInstance() {
|
|
6299
6299
|
Borders_initEntries();
|
|
@@ -6307,19 +6307,19 @@
|
|
|
6307
6307
|
Empty_instance = this;
|
|
6308
6308
|
Cell.call(this);
|
|
6309
6309
|
}
|
|
6310
|
-
protoOf(Empty).
|
|
6310
|
+
protoOf(Empty).u2i = function () {
|
|
6311
6311
|
return 1;
|
|
6312
6312
|
};
|
|
6313
|
-
protoOf(Empty).
|
|
6313
|
+
protoOf(Empty).v2i = function () {
|
|
6314
6314
|
return false;
|
|
6315
6315
|
};
|
|
6316
|
-
protoOf(Empty).
|
|
6316
|
+
protoOf(Empty).w2i = function () {
|
|
6317
6317
|
return false;
|
|
6318
6318
|
};
|
|
6319
|
-
protoOf(Empty).
|
|
6319
|
+
protoOf(Empty).x2i = function () {
|
|
6320
6320
|
return false;
|
|
6321
6321
|
};
|
|
6322
|
-
protoOf(Empty).
|
|
6322
|
+
protoOf(Empty).y2i = function () {
|
|
6323
6323
|
return false;
|
|
6324
6324
|
};
|
|
6325
6325
|
protoOf(Empty).toString = function () {
|
|
@@ -6344,39 +6344,39 @@
|
|
|
6344
6344
|
}
|
|
6345
6345
|
function SpanRef(cell, borderLeft, borderTop, borderRight, borderBottom) {
|
|
6346
6346
|
Cell.call(this);
|
|
6347
|
-
this.
|
|
6348
|
-
this.
|
|
6349
|
-
this.
|
|
6350
|
-
this.
|
|
6351
|
-
this.
|
|
6347
|
+
this.z2i_1 = cell;
|
|
6348
|
+
this.a2j_1 = borderLeft;
|
|
6349
|
+
this.b2j_1 = borderTop;
|
|
6350
|
+
this.c2j_1 = borderRight;
|
|
6351
|
+
this.d2j_1 = borderBottom;
|
|
6352
6352
|
}
|
|
6353
|
-
protoOf(SpanRef).
|
|
6354
|
-
return this.
|
|
6353
|
+
protoOf(SpanRef).v2i = function () {
|
|
6354
|
+
return this.a2j_1;
|
|
6355
|
+
};
|
|
6356
|
+
protoOf(SpanRef).w2i = function () {
|
|
6357
|
+
return this.b2j_1;
|
|
6355
6358
|
};
|
|
6356
|
-
protoOf(SpanRef).
|
|
6357
|
-
return this.
|
|
6359
|
+
protoOf(SpanRef).x2i = function () {
|
|
6360
|
+
return this.c2j_1;
|
|
6358
6361
|
};
|
|
6359
|
-
protoOf(SpanRef).
|
|
6360
|
-
return this.
|
|
6362
|
+
protoOf(SpanRef).y2i = function () {
|
|
6363
|
+
return this.d2j_1;
|
|
6361
6364
|
};
|
|
6362
6365
|
protoOf(SpanRef).u2i = function () {
|
|
6363
|
-
return this.z2i_1;
|
|
6364
|
-
};
|
|
6365
|
-
protoOf(SpanRef).q2i = function () {
|
|
6366
|
-
return this.v2i_1.b2j_1;
|
|
6366
|
+
return this.z2i_1.f2j_1;
|
|
6367
6367
|
};
|
|
6368
|
-
protoOf(SpanRef).
|
|
6369
|
-
return this.
|
|
6368
|
+
protoOf(SpanRef).p2j = function () {
|
|
6369
|
+
return this.z2i_1.g2j_1;
|
|
6370
6370
|
};
|
|
6371
6371
|
protoOf(SpanRef).toString = function () {
|
|
6372
|
-
return 'SpanRef(cell=' + this.
|
|
6372
|
+
return 'SpanRef(cell=' + this.z2i_1.toString() + ', borderLeft=' + this.a2j_1 + ', borderTop=' + this.b2j_1 + ', borderRight=' + this.c2j_1 + ', borderBottom=' + this.d2j_1 + ')';
|
|
6373
6373
|
};
|
|
6374
6374
|
protoOf(SpanRef).hashCode = function () {
|
|
6375
|
-
var result = this.
|
|
6376
|
-
result = imul(result, 31) + (this.
|
|
6377
|
-
result = imul(result, 31) + (this.
|
|
6378
|
-
result = imul(result, 31) + (this.
|
|
6379
|
-
result = imul(result, 31) + (this.
|
|
6375
|
+
var result = this.z2i_1.hashCode();
|
|
6376
|
+
result = imul(result, 31) + (this.a2j_1 == null ? 0 : getBooleanHashCode(this.a2j_1)) | 0;
|
|
6377
|
+
result = imul(result, 31) + (this.b2j_1 == null ? 0 : getBooleanHashCode(this.b2j_1)) | 0;
|
|
6378
|
+
result = imul(result, 31) + (this.c2j_1 == null ? 0 : getBooleanHashCode(this.c2j_1)) | 0;
|
|
6379
|
+
result = imul(result, 31) + (this.d2j_1 == null ? 0 : getBooleanHashCode(this.d2j_1)) | 0;
|
|
6380
6380
|
return result;
|
|
6381
6381
|
};
|
|
6382
6382
|
protoOf(SpanRef).equals = function (other) {
|
|
@@ -6385,74 +6385,74 @@
|
|
|
6385
6385
|
if (!(other instanceof SpanRef))
|
|
6386
6386
|
return false;
|
|
6387
6387
|
var tmp0_other_with_cast = other instanceof SpanRef ? other : THROW_CCE();
|
|
6388
|
-
if (!this.
|
|
6388
|
+
if (!this.z2i_1.equals(tmp0_other_with_cast.z2i_1))
|
|
6389
6389
|
return false;
|
|
6390
|
-
if (!(this.
|
|
6390
|
+
if (!(this.a2j_1 == tmp0_other_with_cast.a2j_1))
|
|
6391
6391
|
return false;
|
|
6392
|
-
if (!(this.
|
|
6392
|
+
if (!(this.b2j_1 == tmp0_other_with_cast.b2j_1))
|
|
6393
6393
|
return false;
|
|
6394
|
-
if (!(this.
|
|
6394
|
+
if (!(this.c2j_1 == tmp0_other_with_cast.c2j_1))
|
|
6395
6395
|
return false;
|
|
6396
|
-
if (!(this.
|
|
6396
|
+
if (!(this.d2j_1 == tmp0_other_with_cast.d2j_1))
|
|
6397
6397
|
return false;
|
|
6398
6398
|
return true;
|
|
6399
6399
|
};
|
|
6400
6400
|
function Content(content, rowSpan, columnSpan, borderLeft, borderTop, borderRight, borderBottom, style, textAlign, verticalAlign, paddingWidth) {
|
|
6401
6401
|
Cell.call(this);
|
|
6402
|
-
this.
|
|
6403
|
-
this.
|
|
6404
|
-
this.
|
|
6405
|
-
this.
|
|
6406
|
-
this.
|
|
6407
|
-
this.
|
|
6408
|
-
this.
|
|
6409
|
-
this.
|
|
6410
|
-
this.
|
|
6411
|
-
this.
|
|
6412
|
-
this.
|
|
6402
|
+
this.e2j_1 = content;
|
|
6403
|
+
this.f2j_1 = rowSpan;
|
|
6404
|
+
this.g2j_1 = columnSpan;
|
|
6405
|
+
this.h2j_1 = borderLeft;
|
|
6406
|
+
this.i2j_1 = borderTop;
|
|
6407
|
+
this.j2j_1 = borderRight;
|
|
6408
|
+
this.k2j_1 = borderBottom;
|
|
6409
|
+
this.l2j_1 = style;
|
|
6410
|
+
this.m2j_1 = textAlign;
|
|
6411
|
+
this.n2j_1 = verticalAlign;
|
|
6412
|
+
this.o2j_1 = paddingWidth;
|
|
6413
6413
|
// Inline function 'kotlin.require' call
|
|
6414
|
-
if (!(this.
|
|
6414
|
+
if (!(this.f2j_1 > 0)) {
|
|
6415
6415
|
// Inline function 'com.github.ajalt.mordant.table.Content.<anonymous>' call
|
|
6416
6416
|
var message = 'rowSpan must be greater than 0';
|
|
6417
6417
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6418
6418
|
}
|
|
6419
6419
|
// Inline function 'kotlin.require' call
|
|
6420
|
-
if (!(this.
|
|
6420
|
+
if (!(this.g2j_1 > 0)) {
|
|
6421
6421
|
// Inline function 'com.github.ajalt.mordant.table.Content.<anonymous>' call
|
|
6422
6422
|
var message_0 = 'columnSpan must be greater than 0';
|
|
6423
6423
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
6424
6424
|
}
|
|
6425
6425
|
}
|
|
6426
|
-
protoOf(Content).
|
|
6427
|
-
return this.
|
|
6426
|
+
protoOf(Content).u2i = function () {
|
|
6427
|
+
return this.f2j_1;
|
|
6428
6428
|
};
|
|
6429
|
-
protoOf(Content).
|
|
6430
|
-
return this.
|
|
6429
|
+
protoOf(Content).v2i = function () {
|
|
6430
|
+
return this.h2j_1;
|
|
6431
6431
|
};
|
|
6432
|
-
protoOf(Content).
|
|
6433
|
-
return this.
|
|
6432
|
+
protoOf(Content).w2i = function () {
|
|
6433
|
+
return this.i2j_1;
|
|
6434
6434
|
};
|
|
6435
|
-
protoOf(Content).
|
|
6436
|
-
return this.
|
|
6435
|
+
protoOf(Content).x2i = function () {
|
|
6436
|
+
return this.j2j_1;
|
|
6437
6437
|
};
|
|
6438
|
-
protoOf(Content).
|
|
6439
|
-
return this.
|
|
6438
|
+
protoOf(Content).y2i = function () {
|
|
6439
|
+
return this.k2j_1;
|
|
6440
6440
|
};
|
|
6441
6441
|
protoOf(Content).toString = function () {
|
|
6442
|
-
return 'Content(content=' + toString(this.
|
|
6442
|
+
return 'Content(content=' + toString(this.e2j_1) + ', rowSpan=' + this.f2j_1 + ', columnSpan=' + this.g2j_1 + ', borderLeft=' + this.h2j_1 + ', borderTop=' + this.i2j_1 + ', borderRight=' + this.j2j_1 + ', borderBottom=' + this.k2j_1 + ', style=' + toString_1(this.l2j_1) + ', textAlign=' + this.m2j_1.toString() + ', verticalAlign=' + this.n2j_1.toString() + ', paddingWidth=' + this.o2j_1 + ')';
|
|
6443
6443
|
};
|
|
6444
6444
|
protoOf(Content).hashCode = function () {
|
|
6445
|
-
var result = hashCode(this.
|
|
6446
|
-
result = imul(result, 31) + this.
|
|
6447
|
-
result = imul(result, 31) + this.
|
|
6448
|
-
result = imul(result, 31) + (this.
|
|
6449
|
-
result = imul(result, 31) + (this.
|
|
6450
|
-
result = imul(result, 31) + (this.
|
|
6451
|
-
result = imul(result, 31) + (this.
|
|
6452
|
-
result = imul(result, 31) + (this.
|
|
6453
|
-
result = imul(result, 31) + this.
|
|
6454
|
-
result = imul(result, 31) + this.
|
|
6455
|
-
result = imul(result, 31) + this.
|
|
6445
|
+
var result = hashCode(this.e2j_1);
|
|
6446
|
+
result = imul(result, 31) + this.f2j_1 | 0;
|
|
6447
|
+
result = imul(result, 31) + this.g2j_1 | 0;
|
|
6448
|
+
result = imul(result, 31) + (this.h2j_1 == null ? 0 : getBooleanHashCode(this.h2j_1)) | 0;
|
|
6449
|
+
result = imul(result, 31) + (this.i2j_1 == null ? 0 : getBooleanHashCode(this.i2j_1)) | 0;
|
|
6450
|
+
result = imul(result, 31) + (this.j2j_1 == null ? 0 : getBooleanHashCode(this.j2j_1)) | 0;
|
|
6451
|
+
result = imul(result, 31) + (this.k2j_1 == null ? 0 : getBooleanHashCode(this.k2j_1)) | 0;
|
|
6452
|
+
result = imul(result, 31) + (this.l2j_1 == null ? 0 : hashCode(this.l2j_1)) | 0;
|
|
6453
|
+
result = imul(result, 31) + this.m2j_1.hashCode() | 0;
|
|
6454
|
+
result = imul(result, 31) + this.n2j_1.hashCode() | 0;
|
|
6455
|
+
result = imul(result, 31) + this.o2j_1 | 0;
|
|
6456
6456
|
return result;
|
|
6457
6457
|
};
|
|
6458
6458
|
protoOf(Content).equals = function (other) {
|
|
@@ -6461,43 +6461,43 @@
|
|
|
6461
6461
|
if (!(other instanceof Content))
|
|
6462
6462
|
return false;
|
|
6463
6463
|
var tmp0_other_with_cast = other instanceof Content ? other : THROW_CCE();
|
|
6464
|
-
if (!equals(this.
|
|
6464
|
+
if (!equals(this.e2j_1, tmp0_other_with_cast.e2j_1))
|
|
6465
6465
|
return false;
|
|
6466
|
-
if (!(this.
|
|
6466
|
+
if (!(this.f2j_1 === tmp0_other_with_cast.f2j_1))
|
|
6467
6467
|
return false;
|
|
6468
|
-
if (!(this.
|
|
6468
|
+
if (!(this.g2j_1 === tmp0_other_with_cast.g2j_1))
|
|
6469
6469
|
return false;
|
|
6470
|
-
if (!(this.
|
|
6470
|
+
if (!(this.h2j_1 == tmp0_other_with_cast.h2j_1))
|
|
6471
6471
|
return false;
|
|
6472
|
-
if (!(this.
|
|
6472
|
+
if (!(this.i2j_1 == tmp0_other_with_cast.i2j_1))
|
|
6473
6473
|
return false;
|
|
6474
|
-
if (!(this.
|
|
6474
|
+
if (!(this.j2j_1 == tmp0_other_with_cast.j2j_1))
|
|
6475
6475
|
return false;
|
|
6476
|
-
if (!(this.
|
|
6476
|
+
if (!(this.k2j_1 == tmp0_other_with_cast.k2j_1))
|
|
6477
6477
|
return false;
|
|
6478
|
-
if (!equals(this.
|
|
6478
|
+
if (!equals(this.l2j_1, tmp0_other_with_cast.l2j_1))
|
|
6479
6479
|
return false;
|
|
6480
|
-
if (!this.
|
|
6480
|
+
if (!this.m2j_1.equals(tmp0_other_with_cast.m2j_1))
|
|
6481
6481
|
return false;
|
|
6482
|
-
if (!this.
|
|
6482
|
+
if (!this.n2j_1.equals(tmp0_other_with_cast.n2j_1))
|
|
6483
6483
|
return false;
|
|
6484
|
-
if (!(this.
|
|
6484
|
+
if (!(this.o2j_1 === tmp0_other_with_cast.o2j_1))
|
|
6485
6485
|
return false;
|
|
6486
6486
|
return true;
|
|
6487
6487
|
};
|
|
6488
6488
|
function Cell() {
|
|
6489
6489
|
}
|
|
6490
6490
|
function measureColumn($this, x, t, width) {
|
|
6491
|
-
var tmp56_safe_receiver = $this.
|
|
6491
|
+
var tmp56_safe_receiver = $this.y2j_1.t(x).r2j_1;
|
|
6492
6492
|
if (tmp56_safe_receiver == null)
|
|
6493
6493
|
null;
|
|
6494
6494
|
else {
|
|
6495
6495
|
// Inline function 'kotlin.let' call
|
|
6496
6496
|
var tmp;
|
|
6497
|
-
if (!$this.
|
|
6497
|
+
if (!$this.a2k_1) {
|
|
6498
6498
|
tmp = 0;
|
|
6499
6499
|
} else {
|
|
6500
|
-
var tmp0 = $this.
|
|
6500
|
+
var tmp0 = $this.t2j_1;
|
|
6501
6501
|
var tmp$ret$0;
|
|
6502
6502
|
$l$block: {
|
|
6503
6503
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -6510,14 +6510,14 @@
|
|
|
6510
6510
|
var row = iterator.r();
|
|
6511
6511
|
var tmp_0 = getOrNull(row, x);
|
|
6512
6512
|
var tmp57_safe_receiver = tmp_0 instanceof Content ? tmp_0 : null;
|
|
6513
|
-
var tmp0_elvis_lhs = tmp57_safe_receiver == null ? null : tmp57_safe_receiver.
|
|
6513
|
+
var tmp0_elvis_lhs = tmp57_safe_receiver == null ? null : tmp57_safe_receiver.o2j_1;
|
|
6514
6514
|
var maxValue = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
6515
6515
|
while (iterator.q()) {
|
|
6516
6516
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.measureColumn.<anonymous>.<anonymous>' call
|
|
6517
6517
|
var row_0 = iterator.r();
|
|
6518
6518
|
var tmp_1 = getOrNull(row_0, x);
|
|
6519
6519
|
var tmp57_safe_receiver_0 = tmp_1 instanceof Content ? tmp_1 : null;
|
|
6520
|
-
var tmp0_elvis_lhs_0 = tmp57_safe_receiver_0 == null ? null : tmp57_safe_receiver_0.
|
|
6520
|
+
var tmp0_elvis_lhs_0 = tmp57_safe_receiver_0 == null ? null : tmp57_safe_receiver_0.o2j_1;
|
|
6521
6521
|
var v = tmp0_elvis_lhs_0 == null ? 0 : tmp0_elvis_lhs_0;
|
|
6522
6522
|
if (compareTo(maxValue, v) < 0) {
|
|
6523
6523
|
maxValue = v;
|
|
@@ -6534,7 +6534,7 @@
|
|
|
6534
6534
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
6535
6535
|
var max = 0;
|
|
6536
6536
|
var min = 0;
|
|
6537
|
-
var _iterator__ex2g4s = $this.
|
|
6537
|
+
var _iterator__ex2g4s = $this.t2j_1.p();
|
|
6538
6538
|
$l$loop: while (_iterator__ex2g4s.q()) {
|
|
6539
6539
|
var it = _iterator__ex2g4s.r();
|
|
6540
6540
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.measureColumn.<anonymous>' call
|
|
@@ -6547,10 +6547,10 @@
|
|
|
6547
6547
|
tmp_2 = new WidthRange(0, 0);
|
|
6548
6548
|
} else {
|
|
6549
6549
|
if (cell instanceof Content) {
|
|
6550
|
-
tmp_2 = cell.
|
|
6550
|
+
tmp_2 = cell.e2j_1.v2h(t, width).n2i(cell.g2j_1);
|
|
6551
6551
|
} else {
|
|
6552
6552
|
if (cell instanceof SpanRef) {
|
|
6553
|
-
tmp_2 = cell.
|
|
6553
|
+
tmp_2 = cell.z2i_1.e2j_1.v2h(t, width).n2i(cell.p2j());
|
|
6554
6554
|
} else {
|
|
6555
6555
|
noWhenBranchMatchedException();
|
|
6556
6556
|
}
|
|
@@ -6567,25 +6567,25 @@
|
|
|
6567
6567
|
var range = tmp_3;
|
|
6568
6568
|
var tmp0_0 = max;
|
|
6569
6569
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6570
|
-
var b = range.
|
|
6570
|
+
var b = range.k2i_1;
|
|
6571
6571
|
max = Math.max(tmp0_0, b);
|
|
6572
6572
|
var tmp2 = min;
|
|
6573
6573
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
6574
|
-
var b_0 = range.
|
|
6574
|
+
var b_0 = range.j2i_1;
|
|
6575
6575
|
min = Math.max(tmp2, b_0);
|
|
6576
6576
|
}
|
|
6577
6577
|
var range_0 = new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
6578
|
-
if (!($this.
|
|
6579
|
-
return new WidthRange(range_0.
|
|
6578
|
+
if (!($this.y2j_1.t(x).s2j_1 == null)) {
|
|
6579
|
+
return new WidthRange(range_0.j2i_1, coerceAtLeast(width, range_0.k2i_1));
|
|
6580
6580
|
}
|
|
6581
6581
|
return range_0;
|
|
6582
6582
|
}
|
|
6583
6583
|
function calculateColumnWidths($this, t, terminalWidth) {
|
|
6584
|
-
var availableWidth = terminalWidth - $this.
|
|
6584
|
+
var availableWidth = terminalWidth - $this.f2k_1 | 0;
|
|
6585
6585
|
if (availableWidth <= 0) {
|
|
6586
6586
|
// Inline function 'kotlin.collections.List' call
|
|
6587
6587
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6588
|
-
var size = $this.
|
|
6588
|
+
var size = $this.c2k_1;
|
|
6589
6589
|
var list = ArrayList_init_$Create$_0(size);
|
|
6590
6590
|
// Inline function 'kotlin.repeat' call
|
|
6591
6591
|
var inductionVariable = 0;
|
|
@@ -6602,7 +6602,7 @@
|
|
|
6602
6602
|
}
|
|
6603
6603
|
// Inline function 'kotlin.collections.List' call
|
|
6604
6604
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6605
|
-
var size_0 = $this.
|
|
6605
|
+
var size_0 = $this.c2k_1;
|
|
6606
6606
|
var list_0 = ArrayList_init_$Create$_0(size_0);
|
|
6607
6607
|
// Inline function 'kotlin.repeat' call
|
|
6608
6608
|
var inductionVariable_0 = 0;
|
|
@@ -6624,19 +6624,19 @@
|
|
|
6624
6624
|
while (_iterator__ex2g4s.q()) {
|
|
6625
6625
|
var item = _iterator__ex2g4s.r();
|
|
6626
6626
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>' call
|
|
6627
|
-
var tmp$ret$7 = item.
|
|
6627
|
+
var tmp$ret$7 = item.k2i_1;
|
|
6628
6628
|
destination.e(tmp$ret$7);
|
|
6629
6629
|
}
|
|
6630
6630
|
var widths = destination;
|
|
6631
6631
|
// Inline function 'kotlin.collections.groupBy' call
|
|
6632
|
-
var tmp0 = withIndex($this.
|
|
6632
|
+
var tmp0 = withIndex($this.y2j_1);
|
|
6633
6633
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
6634
6634
|
var destination_0 = LinkedHashMap_init_$Create$();
|
|
6635
6635
|
var _iterator__ex2g4s_0 = tmp0.p();
|
|
6636
6636
|
while (_iterator__ex2g4s_0.q()) {
|
|
6637
6637
|
var element = _iterator__ex2g4s_0.r();
|
|
6638
6638
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>' call
|
|
6639
|
-
var key = element.we_1.
|
|
6639
|
+
var key = element.we_1.q2j_1;
|
|
6640
6640
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
6641
6641
|
var value = destination_0.e2(key);
|
|
6642
6642
|
var tmp;
|
|
@@ -6692,7 +6692,7 @@
|
|
|
6692
6692
|
var element_2 = _iterator__ex2g4s_4.r();
|
|
6693
6693
|
var tmp_2 = sum;
|
|
6694
6694
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>.<anonymous>' call
|
|
6695
|
-
sum = tmp_2 + measurements.t(element_2).
|
|
6695
|
+
sum = tmp_2 + measurements.t(element_2).j2i_1 | 0;
|
|
6696
6696
|
}
|
|
6697
6697
|
var tmp_3 = sum;
|
|
6698
6698
|
// Inline function 'kotlin.collections.sumOf' call
|
|
@@ -6702,7 +6702,7 @@
|
|
|
6702
6702
|
var element_3 = _iterator__ex2g4s_5.r();
|
|
6703
6703
|
var tmp_4 = sum_0;
|
|
6704
6704
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>.<anonymous>' call
|
|
6705
|
-
sum_0 = tmp_4 + measurements.t(element_3).
|
|
6705
|
+
sum_0 = tmp_4 + measurements.t(element_3).k2i_1 | 0;
|
|
6706
6706
|
}
|
|
6707
6707
|
var tmp$ret$26 = sum_0;
|
|
6708
6708
|
var tmp$ret$27 = new WidthRange(tmp_3, tmp$ret$26);
|
|
@@ -6745,10 +6745,10 @@
|
|
|
6745
6745
|
var element_6 = _iterator__ex2g4s_8.r();
|
|
6746
6746
|
var tmp_6 = sum_1;
|
|
6747
6747
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>.<anonymous>' call
|
|
6748
|
-
sum_1 = tmp_6 + element_6.z().
|
|
6748
|
+
sum_1 = tmp_6 + element_6.z().j2i_1 | 0;
|
|
6749
6749
|
}
|
|
6750
6750
|
var lowerMin = sum_1;
|
|
6751
|
-
var allocated = coerceAtMost(coerceIn(remainingWidth - lowerMin | 0, m.
|
|
6751
|
+
var allocated = coerceAtMost(coerceIn(remainingWidth - lowerMin | 0, m.j2i_1, m.k2i_1), remainingWidth);
|
|
6752
6752
|
remainingWidth = remainingWidth - allocated | 0;
|
|
6753
6753
|
// Inline function 'kotlin.collections.set' call
|
|
6754
6754
|
allocatedWidths.m2(p, allocated);
|
|
@@ -6773,8 +6773,8 @@
|
|
|
6773
6773
|
while (_iterator__ex2g4s_10.q()) {
|
|
6774
6774
|
var item_1 = _iterator__ex2g4s_10.r();
|
|
6775
6775
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.calculateColumnWidths.<anonymous>' call
|
|
6776
|
-
var tmp0_elvis_lhs = $this.
|
|
6777
|
-
var tmp$ret$45 = tmp0_elvis_lhs == null ? measurements.t(item_1).
|
|
6776
|
+
var tmp0_elvis_lhs = $this.y2j_1.t(item_1).s2j_1;
|
|
6777
|
+
var tmp$ret$45 = tmp0_elvis_lhs == null ? measurements.t(item_1).k2i_1 : tmp0_elvis_lhs;
|
|
6778
6778
|
destination_5.e(tmp$ret$45);
|
|
6779
6779
|
}
|
|
6780
6780
|
var weights = destination_5;
|
|
@@ -6837,20 +6837,20 @@
|
|
|
6837
6837
|
return widths;
|
|
6838
6838
|
}
|
|
6839
6839
|
function getCell($this, x, y) {
|
|
6840
|
-
var tmp58_safe_receiver = getOrNull($this.
|
|
6840
|
+
var tmp58_safe_receiver = getOrNull($this.t2j_1, y);
|
|
6841
6841
|
return tmp58_safe_receiver == null ? null : getOrNull(tmp58_safe_receiver, x);
|
|
6842
6842
|
}
|
|
6843
6843
|
function sam$kotlin_Comparator$0(function_0) {
|
|
6844
|
-
this.
|
|
6844
|
+
this.g2k_1 = function_0;
|
|
6845
6845
|
}
|
|
6846
6846
|
protoOf(sam$kotlin_Comparator$0).zd = function (a, b) {
|
|
6847
|
-
return this.
|
|
6847
|
+
return this.g2k_1(a, b);
|
|
6848
6848
|
};
|
|
6849
6849
|
protoOf(sam$kotlin_Comparator$0).compare = function (a, b) {
|
|
6850
6850
|
return this.zd(a, b);
|
|
6851
6851
|
};
|
|
6852
6852
|
protoOf(sam$kotlin_Comparator$0).m3 = function () {
|
|
6853
|
-
return this.
|
|
6853
|
+
return this.g2k_1;
|
|
6854
6854
|
};
|
|
6855
6855
|
protoOf(sam$kotlin_Comparator$0).equals = function (other) {
|
|
6856
6856
|
var tmp;
|
|
@@ -6888,23 +6888,23 @@
|
|
|
6888
6888
|
}
|
|
6889
6889
|
function TableImpl(rows, borderType, borderStyle, headerRowCount, footerRowCount, columnWidths, tableBorders, addPaddingWidthToFixedWidth) {
|
|
6890
6890
|
Table.call(this);
|
|
6891
|
-
this.
|
|
6892
|
-
this.
|
|
6893
|
-
this.
|
|
6894
|
-
this.
|
|
6895
|
-
this.
|
|
6896
|
-
this.
|
|
6897
|
-
this.
|
|
6898
|
-
this.
|
|
6891
|
+
this.t2j_1 = rows;
|
|
6892
|
+
this.u2j_1 = borderType;
|
|
6893
|
+
this.v2j_1 = borderStyle;
|
|
6894
|
+
this.w2j_1 = headerRowCount;
|
|
6895
|
+
this.x2j_1 = footerRowCount;
|
|
6896
|
+
this.y2j_1 = columnWidths;
|
|
6897
|
+
this.z2j_1 = tableBorders;
|
|
6898
|
+
this.a2k_1 = addPaddingWidthToFixedWidth;
|
|
6899
6899
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
6900
6900
|
// Inline function 'kotlin.require' call
|
|
6901
|
-
if (!!this.
|
|
6901
|
+
if (!!this.t2j_1.m()) {
|
|
6902
6902
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.<anonymous>' call
|
|
6903
6903
|
var message = 'Table cannot be empty';
|
|
6904
6904
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
6905
6905
|
}
|
|
6906
6906
|
var tmp = this;
|
|
6907
|
-
var tmp0 = this.
|
|
6907
|
+
var tmp0 = this.y2j_1;
|
|
6908
6908
|
var tmp$ret$2;
|
|
6909
6909
|
$l$block_0: {
|
|
6910
6910
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -6922,19 +6922,19 @@
|
|
|
6922
6922
|
while (_iterator__ex2g4s.q()) {
|
|
6923
6923
|
var element = _iterator__ex2g4s.r();
|
|
6924
6924
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.expand.<anonymous>' call
|
|
6925
|
-
if (!(element.
|
|
6925
|
+
if (!(element.s2j_1 == null)) {
|
|
6926
6926
|
tmp$ret$2 = true;
|
|
6927
6927
|
break $l$block_0;
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
6930
6930
|
tmp$ret$2 = false;
|
|
6931
6931
|
}
|
|
6932
|
-
tmp.
|
|
6933
|
-
this.
|
|
6932
|
+
tmp.b2k_1 = tmp$ret$2;
|
|
6933
|
+
this.c2k_1 = this.y2j_1.s();
|
|
6934
6934
|
var tmp_1 = this;
|
|
6935
6935
|
// Inline function 'kotlin.collections.List' call
|
|
6936
6936
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6937
|
-
var size = this.
|
|
6937
|
+
var size = this.t2j_1.s() + 1 | 0;
|
|
6938
6938
|
var list = ArrayList_init_$Create$_0(size);
|
|
6939
6939
|
// Inline function 'kotlin.repeat' call
|
|
6940
6940
|
var inductionVariable = 0;
|
|
@@ -6945,12 +6945,12 @@
|
|
|
6945
6945
|
// Inline function 'kotlin.collections.MutableList.<anonymous>' call
|
|
6946
6946
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.rowBorders.<anonymous>' call
|
|
6947
6947
|
var tmp_2;
|
|
6948
|
-
if (index === 0 && !(this.
|
|
6949
|
-
tmp_2 = this.
|
|
6950
|
-
} else if (index === this.
|
|
6951
|
-
tmp_2 = this.
|
|
6948
|
+
if (index === 0 && !(this.z2j_1 == null)) {
|
|
6949
|
+
tmp_2 = this.z2j_1.r2i_1;
|
|
6950
|
+
} else if (index === this.t2j_1.s() && !(this.z2j_1 == null)) {
|
|
6951
|
+
tmp_2 = this.z2j_1.t2i_1;
|
|
6952
6952
|
} else {
|
|
6953
|
-
var tmp0_0 = until(0, this.
|
|
6953
|
+
var tmp0_0 = until(0, this.c2k_1);
|
|
6954
6954
|
var tmp$ret$4;
|
|
6955
6955
|
$l$block_2: {
|
|
6956
6956
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -6986,11 +6986,11 @@
|
|
|
6986
6986
|
list.e(tmp$ret$6);
|
|
6987
6987
|
}
|
|
6988
6988
|
while (inductionVariable < size);
|
|
6989
|
-
tmp_1.
|
|
6989
|
+
tmp_1.d2k_1 = list;
|
|
6990
6990
|
var tmp_4 = this;
|
|
6991
6991
|
// Inline function 'kotlin.collections.List' call
|
|
6992
6992
|
// Inline function 'kotlin.collections.MutableList' call
|
|
6993
|
-
var size_0 = this.
|
|
6993
|
+
var size_0 = this.c2k_1 + 1 | 0;
|
|
6994
6994
|
var list_0 = ArrayList_init_$Create$_0(size_0);
|
|
6995
6995
|
// Inline function 'kotlin.repeat' call
|
|
6996
6996
|
var inductionVariable_1 = 0;
|
|
@@ -7001,12 +7001,12 @@
|
|
|
7001
7001
|
// Inline function 'kotlin.collections.MutableList.<anonymous>' call
|
|
7002
7002
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.columnBorders.<anonymous>' call
|
|
7003
7003
|
var tmp_5;
|
|
7004
|
-
if (index_0 === 0 && !(this.
|
|
7005
|
-
tmp_5 = this.
|
|
7006
|
-
} else if (index_0 === this.
|
|
7007
|
-
tmp_5 = this.
|
|
7004
|
+
if (index_0 === 0 && !(this.z2j_1 == null)) {
|
|
7005
|
+
tmp_5 = this.z2j_1.q2i_1;
|
|
7006
|
+
} else if (index_0 === this.c2k_1 && !(this.z2j_1 == null)) {
|
|
7007
|
+
tmp_5 = this.z2j_1.s2i_1;
|
|
7008
7008
|
} else {
|
|
7009
|
-
var tmp0_1 = get_indices(this.
|
|
7009
|
+
var tmp0_1 = get_indices(this.t2j_1);
|
|
7010
7010
|
var tmp$ret$9;
|
|
7011
7011
|
$l$block_4: {
|
|
7012
7012
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -7042,9 +7042,9 @@
|
|
|
7042
7042
|
list_0.e(tmp$ret$11);
|
|
7043
7043
|
}
|
|
7044
7044
|
while (inductionVariable_1 < size_0);
|
|
7045
|
-
tmp_4.
|
|
7045
|
+
tmp_4.e2k_1 = list_0;
|
|
7046
7046
|
var tmp_7 = this;
|
|
7047
|
-
var tmp0_2 = this.
|
|
7047
|
+
var tmp0_2 = this.e2k_1;
|
|
7048
7048
|
var tmp$ret$14;
|
|
7049
7049
|
$l$block_5: {
|
|
7050
7050
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7070,15 +7070,15 @@
|
|
|
7070
7070
|
}
|
|
7071
7071
|
tmp$ret$14 = count;
|
|
7072
7072
|
}
|
|
7073
|
-
tmp_7.
|
|
7073
|
+
tmp_7.f2k_1 = tmp$ret$14;
|
|
7074
7074
|
}
|
|
7075
|
-
protoOf(TableImpl).
|
|
7076
|
-
if (this.
|
|
7075
|
+
protoOf(TableImpl).v2h = function (t, width) {
|
|
7076
|
+
if (this.b2k_1)
|
|
7077
7077
|
return new WidthRange(width, width);
|
|
7078
|
-
var remainingWidth = width - this.
|
|
7078
|
+
var remainingWidth = width - this.f2k_1 | 0;
|
|
7079
7079
|
// Inline function 'kotlin.collections.List' call
|
|
7080
7080
|
// Inline function 'kotlin.collections.MutableList' call
|
|
7081
|
-
var size = this.
|
|
7081
|
+
var size = this.c2k_1;
|
|
7082
7082
|
var list = ArrayList_init_$Create$_0(size);
|
|
7083
7083
|
// Inline function 'kotlin.repeat' call
|
|
7084
7084
|
var inductionVariable = 0;
|
|
@@ -7100,9 +7100,9 @@
|
|
|
7100
7100
|
var element = _iterator__ex2g4s.r();
|
|
7101
7101
|
var tmp = sum;
|
|
7102
7102
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.measure.<anonymous>' call
|
|
7103
|
-
sum = tmp + element.
|
|
7103
|
+
sum = tmp + element.j2i_1 | 0;
|
|
7104
7104
|
}
|
|
7105
|
-
var tmp_0 = sum + this.
|
|
7105
|
+
var tmp_0 = sum + this.f2k_1 | 0;
|
|
7106
7106
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7107
7107
|
var sum_0 = 0;
|
|
7108
7108
|
var _iterator__ex2g4s_0 = ranges.p();
|
|
@@ -7110,42 +7110,42 @@
|
|
|
7110
7110
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
7111
7111
|
var tmp_1 = sum_0;
|
|
7112
7112
|
// Inline function 'com.github.ajalt.mordant.table.TableImpl.measure.<anonymous>' call
|
|
7113
|
-
sum_0 = tmp_1 + element_0.
|
|
7113
|
+
sum_0 = tmp_1 + element_0.k2i_1 | 0;
|
|
7114
7114
|
}
|
|
7115
7115
|
var tmp$ret$6 = sum_0;
|
|
7116
|
-
return new WidthRange(tmp_0, tmp$ret$6 + this.
|
|
7116
|
+
return new WidthRange(tmp_0, tmp$ret$6 + this.f2k_1 | 0);
|
|
7117
7117
|
};
|
|
7118
|
-
protoOf(TableImpl).
|
|
7119
|
-
return (new TableRenderer(this.
|
|
7118
|
+
protoOf(TableImpl).w2h = function (t, width) {
|
|
7119
|
+
return (new TableRenderer(this.t2j_1, this.u2j_1, this.v2j_1, this.w2j_1, this.x2j_1, this.c2k_1, calculateColumnWidths(this, t, width), this.e2k_1, this.d2k_1, this.z2j_1, t)).v2k();
|
|
7120
7120
|
};
|
|
7121
7121
|
function Table() {
|
|
7122
7122
|
}
|
|
7123
7123
|
function get_t(_this__u8e3s4) {
|
|
7124
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7124
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.w2i()) === true;
|
|
7125
7125
|
}
|
|
7126
7126
|
function get_b(_this__u8e3s4) {
|
|
7127
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7127
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.y2i()) === true;
|
|
7128
7128
|
}
|
|
7129
7129
|
function get_l(_this__u8e3s4) {
|
|
7130
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7130
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.v2i()) === true;
|
|
7131
7131
|
}
|
|
7132
7132
|
function get_r(_this__u8e3s4) {
|
|
7133
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7133
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.x2i()) === true;
|
|
7134
7134
|
}
|
|
7135
7135
|
function _get_rowCount__xlqfpy($this) {
|
|
7136
|
-
return $this.
|
|
7136
|
+
return $this.h2k_1.s();
|
|
7137
7137
|
}
|
|
7138
7138
|
function drawBottomBorder($this) {
|
|
7139
|
-
if (!$this.
|
|
7139
|
+
if (!$this.p2k_1.t(_get_rowCount__xlqfpy($this)))
|
|
7140
7140
|
return Unit_instance;
|
|
7141
|
-
var line = $this.
|
|
7141
|
+
var line = $this.u2k_1.t(get_lastIndex_0($this.u2k_1));
|
|
7142
7142
|
var inductionVariable = 0;
|
|
7143
|
-
var last = $this.
|
|
7143
|
+
var last = $this.n2k_1.s() - 1 | 0;
|
|
7144
7144
|
if (inductionVariable <= last)
|
|
7145
7145
|
do {
|
|
7146
7146
|
var x = inductionVariable;
|
|
7147
7147
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7148
|
-
if ($this.
|
|
7148
|
+
if ($this.o2k_1.t(x)) {
|
|
7149
7149
|
var tmp61_safe_receiver = getTopLeftCorner($this, x, _get_rowCount__xlqfpy($this));
|
|
7150
7150
|
if (tmp61_safe_receiver == null)
|
|
7151
7151
|
null;
|
|
@@ -7155,11 +7155,11 @@
|
|
|
7155
7155
|
line.e(tmp61_safe_receiver);
|
|
7156
7156
|
}
|
|
7157
7157
|
}
|
|
7158
|
-
drawTopBorderForCell($this, get_lastIndex_0($this.
|
|
7158
|
+
drawTopBorderForCell($this, get_lastIndex_0($this.u2k_1), x, _get_rowCount__xlqfpy($this), $this.n2k_1.t(x), false);
|
|
7159
7159
|
}
|
|
7160
7160
|
while (inductionVariable <= last);
|
|
7161
|
-
if ($this.
|
|
7162
|
-
var tmp62_safe_receiver = getTopLeftCorner($this, $this.
|
|
7161
|
+
if ($this.o2k_1.t($this.m2k_1)) {
|
|
7162
|
+
var tmp62_safe_receiver = getTopLeftCorner($this, $this.m2k_1, _get_rowCount__xlqfpy($this));
|
|
7163
7163
|
if (tmp62_safe_receiver == null)
|
|
7164
7164
|
null;
|
|
7165
7165
|
else {
|
|
@@ -7177,54 +7177,54 @@
|
|
|
7177
7177
|
var i = index;
|
|
7178
7178
|
index = index + 1 | 0;
|
|
7179
7179
|
var line = iterator.r();
|
|
7180
|
-
$this.
|
|
7180
|
+
$this.u2k_1.t(tableLineY + i | 0).u(line);
|
|
7181
7181
|
}
|
|
7182
7182
|
}
|
|
7183
7183
|
function drawTopBorderForCell($this, tableLineY, x, y, colWidth, borderTop) {
|
|
7184
|
-
if (!$this.
|
|
7184
|
+
if (!$this.p2k_1.t(y))
|
|
7185
7185
|
return 0;
|
|
7186
7186
|
if (colWidth === 0 || borderTop == null) {
|
|
7187
7187
|
return 1;
|
|
7188
7188
|
}
|
|
7189
7189
|
var tmp;
|
|
7190
|
-
if (borderTop || (y === 0 && get_t_0($this.
|
|
7191
|
-
tmp = sectionOfRow$default($this, y).
|
|
7190
|
+
if (borderTop || (y === 0 && get_t_0($this.q2k_1)) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.q2k_1)) || get_b(cellAt($this, x, y - 1 | 0))) {
|
|
7191
|
+
tmp = sectionOfRow$default($this, y).q2f_1;
|
|
7192
7192
|
} else {
|
|
7193
7193
|
tmp = ' ';
|
|
7194
7194
|
}
|
|
7195
7195
|
var char = tmp;
|
|
7196
|
-
$this.
|
|
7196
|
+
$this.u2k_1.t(tableLineY).e(Companion_instance_0.i2e(repeat(char, colWidth), $this.j2k_1));
|
|
7197
7197
|
return 1;
|
|
7198
7198
|
}
|
|
7199
7199
|
function drawLeftBorderForColumn($this, x) {
|
|
7200
|
-
if (!$this.
|
|
7200
|
+
if (!$this.o2k_1.t(x))
|
|
7201
7201
|
return Unit_instance;
|
|
7202
7202
|
var tableLineY = 0;
|
|
7203
|
-
var iterator = $this.
|
|
7203
|
+
var iterator = $this.h2k_1.p();
|
|
7204
7204
|
var index = 0;
|
|
7205
7205
|
while (iterator.q()) {
|
|
7206
7206
|
var y = index;
|
|
7207
7207
|
index = index + 1 | 0;
|
|
7208
7208
|
var row = iterator.r();
|
|
7209
|
-
var rowHeight = $this.
|
|
7209
|
+
var rowHeight = $this.t2k_1.t(y);
|
|
7210
7210
|
var tmp0_elvis_lhs = getOrNull(row, x);
|
|
7211
7211
|
var cell = tmp0_elvis_lhs == null ? Empty_getInstance() : tmp0_elvis_lhs;
|
|
7212
|
-
if ($this.
|
|
7212
|
+
if ($this.p2k_1.t(y)) {
|
|
7213
7213
|
var tmp63_safe_receiver = getTopLeftCorner($this, x, y);
|
|
7214
7214
|
if (tmp63_safe_receiver == null)
|
|
7215
7215
|
null;
|
|
7216
7216
|
else {
|
|
7217
7217
|
// Inline function 'kotlin.let' call
|
|
7218
7218
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.drawLeftBorderForColumn.<anonymous>' call
|
|
7219
|
-
$this.
|
|
7219
|
+
$this.u2k_1.t(tableLineY).e(tmp63_safe_receiver);
|
|
7220
7220
|
}
|
|
7221
7221
|
}
|
|
7222
|
-
var borderLeft = cell.
|
|
7223
|
-
var topBorderHeight = $this.
|
|
7222
|
+
var borderLeft = cell.v2i();
|
|
7223
|
+
var topBorderHeight = $this.p2k_1.t(y) ? 1 : 0;
|
|
7224
7224
|
if (!(borderLeft == null)) {
|
|
7225
7225
|
var tmp;
|
|
7226
|
-
if (x === 0 && get_l_0($this.
|
|
7227
|
-
tmp = Companion_instance_0.
|
|
7226
|
+
if (x === 0 && get_l_0($this.q2k_1) || (x === $this.m2k_1 && get_r_0($this.q2k_1)) || borderLeft || get_r(cellAt($this, x - 1 | 0, y))) {
|
|
7227
|
+
tmp = Companion_instance_0.i2e(sectionOfRow($this, y, false).r2f_1, $this.j2k_1);
|
|
7228
7228
|
} else {
|
|
7229
7229
|
tmp = get_SINGLE_SPACE();
|
|
7230
7230
|
}
|
|
@@ -7234,7 +7234,7 @@
|
|
|
7234
7234
|
do {
|
|
7235
7235
|
var i = inductionVariable;
|
|
7236
7236
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7237
|
-
$this.
|
|
7237
|
+
$this.u2k_1.t((tableLineY + i | 0) + topBorderHeight | 0).e(border);
|
|
7238
7238
|
}
|
|
7239
7239
|
while (inductionVariable < rowHeight);
|
|
7240
7240
|
}
|
|
@@ -7247,10 +7247,10 @@
|
|
|
7247
7247
|
tmp = emptyList();
|
|
7248
7248
|
} else {
|
|
7249
7249
|
if (cell instanceof Empty) {
|
|
7250
|
-
var space = listOf_0(Companion_instance_0.
|
|
7250
|
+
var space = listOf_0(Companion_instance_0.c2e($this.n2k_1.t(x)));
|
|
7251
7251
|
// Inline function 'kotlin.collections.List' call
|
|
7252
7252
|
// Inline function 'kotlin.collections.MutableList' call
|
|
7253
|
-
var size = $this.
|
|
7253
|
+
var size = $this.t2k_1.t(y);
|
|
7254
7254
|
var list = ArrayList_init_$Create$_0(size);
|
|
7255
7255
|
// Inline function 'kotlin.repeat' call
|
|
7256
7256
|
var inductionVariable = 0;
|
|
@@ -7268,7 +7268,7 @@
|
|
|
7268
7268
|
if (cell instanceof Content) {
|
|
7269
7269
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7270
7270
|
var sum = 0;
|
|
7271
|
-
var progression = until(x, x + cell.
|
|
7271
|
+
var progression = until(x, x + cell.g2j_1 | 0);
|
|
7272
7272
|
var inductionVariable_0 = progression.b1_1;
|
|
7273
7273
|
var last = progression.c1_1;
|
|
7274
7274
|
if (inductionVariable_0 <= last)
|
|
@@ -7278,11 +7278,11 @@
|
|
|
7278
7278
|
var tmp_0 = sum;
|
|
7279
7279
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.renderCell.<anonymous>' call
|
|
7280
7280
|
var it = element;
|
|
7281
|
-
sum = tmp_0 + $this.
|
|
7281
|
+
sum = tmp_0 + $this.n2k_1.t(it) | 0;
|
|
7282
7282
|
}
|
|
7283
7283
|
while (!(element === last));
|
|
7284
7284
|
var tmp_1 = sum;
|
|
7285
|
-
var tmp4 = until(x + 1 | 0, x + cell.
|
|
7285
|
+
var tmp4 = until(x + 1 | 0, x + cell.g2j_1 | 0);
|
|
7286
7286
|
var tmp$ret$5;
|
|
7287
7287
|
$l$block: {
|
|
7288
7288
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7305,7 +7305,7 @@
|
|
|
7305
7305
|
inductionVariable_1 = inductionVariable_1 + 1 | 0;
|
|
7306
7306
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.renderCell.<anonymous>' call
|
|
7307
7307
|
var it_0 = element_0;
|
|
7308
|
-
if ($this.
|
|
7308
|
+
if ($this.o2k_1.t(it_0 + 1 | 0)) {
|
|
7309
7309
|
count = count + 1 | 0;
|
|
7310
7310
|
checkCountOverflow(count);
|
|
7311
7311
|
}
|
|
@@ -7316,7 +7316,7 @@
|
|
|
7316
7316
|
var cellWidth = coerceAtLeast(tmp_1 + tmp$ret$5 | 0, 0);
|
|
7317
7317
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7318
7318
|
var sum_0 = 0;
|
|
7319
|
-
var progression_0 = until(y, y + cell.
|
|
7319
|
+
var progression_0 = until(y, y + cell.f2j_1 | 0);
|
|
7320
7320
|
var inductionVariable_2 = progression_0.b1_1;
|
|
7321
7321
|
var last_1 = progression_0.c1_1;
|
|
7322
7322
|
if (inductionVariable_2 <= last_1)
|
|
@@ -7326,11 +7326,11 @@
|
|
|
7326
7326
|
var tmp_3 = sum_0;
|
|
7327
7327
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.renderCell.<anonymous>' call
|
|
7328
7328
|
var it_1 = element_1;
|
|
7329
|
-
sum_0 = tmp_3 + $this.
|
|
7329
|
+
sum_0 = tmp_3 + $this.t2k_1.t(it_1) | 0;
|
|
7330
7330
|
}
|
|
7331
7331
|
while (!(element_1 === last_1));
|
|
7332
7332
|
var tmp_4 = sum_0;
|
|
7333
|
-
var tmp8 = until(y + 1 | 0, y + cell.
|
|
7333
|
+
var tmp8 = until(y + 1 | 0, y + cell.f2j_1 | 0);
|
|
7334
7334
|
var tmp$ret$9;
|
|
7335
7335
|
$l$block_0: {
|
|
7336
7336
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7353,7 +7353,7 @@
|
|
|
7353
7353
|
inductionVariable_3 = inductionVariable_3 + 1 | 0;
|
|
7354
7354
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.renderCell.<anonymous>' call
|
|
7355
7355
|
var it_2 = element_2;
|
|
7356
|
-
if ($this.
|
|
7356
|
+
if ($this.p2k_1.t(it_2 + 1 | 0)) {
|
|
7357
7357
|
count_0 = count_0 + 1 | 0;
|
|
7358
7358
|
checkCountOverflow(count_0);
|
|
7359
7359
|
}
|
|
@@ -7362,7 +7362,7 @@
|
|
|
7362
7362
|
tmp$ret$9 = count_0;
|
|
7363
7363
|
}
|
|
7364
7364
|
var cellHeight = tmp_4 + tmp$ret$9 | 0;
|
|
7365
|
-
tmp = setSize(cell.
|
|
7365
|
+
tmp = setSize(cell.e2j_1.w2h($this.r2k_1, cellWidth).z2f(cell.l2j_1), cellWidth, cellHeight, cell.n2j_1, cell.m2j_1).v2d_1;
|
|
7366
7366
|
} else {
|
|
7367
7367
|
noWhenBranchMatchedException();
|
|
7368
7368
|
}
|
|
@@ -7371,7 +7371,7 @@
|
|
|
7371
7371
|
return tmp;
|
|
7372
7372
|
}
|
|
7373
7373
|
function cellAt($this, x, y) {
|
|
7374
|
-
var tmp65_safe_receiver = getOrNull($this.
|
|
7374
|
+
var tmp65_safe_receiver = getOrNull($this.h2k_1, y);
|
|
7375
7375
|
return tmp65_safe_receiver == null ? null : getOrNull(tmp65_safe_receiver, x);
|
|
7376
7376
|
}
|
|
7377
7377
|
function getTopLeftCorner($this, x, y) {
|
|
@@ -7388,72 +7388,72 @@
|
|
|
7388
7388
|
var tmp_5;
|
|
7389
7389
|
var tmp_6;
|
|
7390
7390
|
if (!(tl == null) || !(tr == null) || !(bl == null) || !(br == null)) {
|
|
7391
|
-
tmp_6 = (tl == null ? null : tl.
|
|
7391
|
+
tmp_6 = (tl == null ? null : tl.x2i()) == null;
|
|
7392
7392
|
} else {
|
|
7393
7393
|
tmp_6 = false;
|
|
7394
7394
|
}
|
|
7395
7395
|
if (tmp_6) {
|
|
7396
|
-
tmp_5 = (tr == null ? null : tr.
|
|
7396
|
+
tmp_5 = (tr == null ? null : tr.v2i()) == null;
|
|
7397
7397
|
} else {
|
|
7398
7398
|
tmp_5 = false;
|
|
7399
7399
|
}
|
|
7400
7400
|
if (tmp_5) {
|
|
7401
|
-
tmp_4 = (tr == null ? null : tr.
|
|
7401
|
+
tmp_4 = (tr == null ? null : tr.y2i()) == null;
|
|
7402
7402
|
} else {
|
|
7403
7403
|
tmp_4 = false;
|
|
7404
7404
|
}
|
|
7405
7405
|
if (tmp_4) {
|
|
7406
|
-
tmp_3 = (br == null ? null : br.
|
|
7406
|
+
tmp_3 = (br == null ? null : br.w2i()) == null;
|
|
7407
7407
|
} else {
|
|
7408
7408
|
tmp_3 = false;
|
|
7409
7409
|
}
|
|
7410
7410
|
if (tmp_3) {
|
|
7411
|
-
tmp_2 = (bl == null ? null : bl.
|
|
7411
|
+
tmp_2 = (bl == null ? null : bl.x2i()) == null;
|
|
7412
7412
|
} else {
|
|
7413
7413
|
tmp_2 = false;
|
|
7414
7414
|
}
|
|
7415
7415
|
if (tmp_2) {
|
|
7416
|
-
tmp_1 = (br == null ? null : br.
|
|
7416
|
+
tmp_1 = (br == null ? null : br.v2i()) == null;
|
|
7417
7417
|
} else {
|
|
7418
7418
|
tmp_1 = false;
|
|
7419
7419
|
}
|
|
7420
7420
|
if (tmp_1) {
|
|
7421
|
-
tmp_0 = (tl == null ? null : tl.
|
|
7421
|
+
tmp_0 = (tl == null ? null : tl.y2i()) == null;
|
|
7422
7422
|
} else {
|
|
7423
7423
|
tmp_0 = false;
|
|
7424
7424
|
}
|
|
7425
7425
|
if (tmp_0) {
|
|
7426
|
-
tmp = (bl == null ? null : bl.
|
|
7426
|
+
tmp = (bl == null ? null : bl.w2i()) == null;
|
|
7427
7427
|
} else {
|
|
7428
7428
|
tmp = false;
|
|
7429
7429
|
}
|
|
7430
7430
|
if (tmp) {
|
|
7431
7431
|
return null;
|
|
7432
7432
|
}
|
|
7433
|
-
return sectionOfRow$default($this, y).
|
|
7433
|
+
return sectionOfRow$default($this, y).x2f(get_r(tl) || get_l(tr) || (y > 0 && (x === 0 && get_l_0($this.q2k_1) || (x === $this.m2k_1 && get_r_0($this.q2k_1)))), get_b(tr) || get_t(br) || (x < $this.m2k_1 && (y === 0 && get_t_0($this.q2k_1) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.q2k_1)))), get_r(bl) || get_l(br) || (y < _get_rowCount__xlqfpy($this) && (x === 0 && get_l_0($this.q2k_1) || (x === $this.m2k_1 && get_r_0($this.q2k_1)))), get_b(tl) || get_t(bl) || (x > 0 && (y === 0 && get_t_0($this.q2k_1) || (y === _get_rowCount__xlqfpy($this) && get_b_0($this.q2k_1)))), $this.j2k_1);
|
|
7434
7434
|
}
|
|
7435
7435
|
function sectionOfRow($this, y, allowBottom) {
|
|
7436
|
-
return y < $this.
|
|
7436
|
+
return y < $this.k2k_1 ? $this.i2k_1.c2f_1 : allowBottom && $this.k2k_1 > 0 && y === $this.k2k_1 ? $this.i2k_1.d2f_1 : allowBottom && $this.l2k_1 > 0 && y === (_get_rowCount__xlqfpy($this) - $this.l2k_1 | 0) ? $this.i2k_1.f2f_1 : $this.l2k_1 === 0 || y < (_get_rowCount__xlqfpy($this) - $this.l2k_1 | 0) ? $this.i2k_1.e2f_1 : $this.i2k_1.g2f_1;
|
|
7437
7437
|
}
|
|
7438
7438
|
function sectionOfRow$default($this, y, allowBottom, $super) {
|
|
7439
7439
|
allowBottom = allowBottom === VOID ? true : allowBottom;
|
|
7440
7440
|
return sectionOfRow($this, y, allowBottom);
|
|
7441
7441
|
}
|
|
7442
7442
|
function TableRenderer(rows, borderType, borderStyle, headerRowCount, footerRowCount, columnCount, columnWidths, columnBorders, rowBorders, tableBorders, t) {
|
|
7443
|
-
this.
|
|
7444
|
-
this.
|
|
7445
|
-
this.
|
|
7446
|
-
this.
|
|
7447
|
-
this.
|
|
7448
|
-
this.
|
|
7449
|
-
this.
|
|
7450
|
-
this.
|
|
7451
|
-
this.
|
|
7452
|
-
this.
|
|
7453
|
-
this.
|
|
7443
|
+
this.h2k_1 = rows;
|
|
7444
|
+
this.i2k_1 = borderType;
|
|
7445
|
+
this.j2k_1 = borderStyle;
|
|
7446
|
+
this.k2k_1 = headerRowCount;
|
|
7447
|
+
this.l2k_1 = footerRowCount;
|
|
7448
|
+
this.m2k_1 = columnCount;
|
|
7449
|
+
this.n2k_1 = columnWidths;
|
|
7450
|
+
this.o2k_1 = columnBorders;
|
|
7451
|
+
this.p2k_1 = rowBorders;
|
|
7452
|
+
this.q2k_1 = tableBorders;
|
|
7453
|
+
this.r2k_1 = t;
|
|
7454
7454
|
var tmp = this;
|
|
7455
7455
|
// Inline function 'kotlin.collections.map' call
|
|
7456
|
-
var this_0 = this.
|
|
7456
|
+
var this_0 = this.h2k_1;
|
|
7457
7457
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7458
7458
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
7459
7459
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -7475,7 +7475,7 @@
|
|
|
7475
7475
|
if (item_0 instanceof Content) {
|
|
7476
7476
|
// Inline function 'kotlin.collections.sumOf' call
|
|
7477
7477
|
var sum_0 = 0;
|
|
7478
|
-
var progression = until(x, x + item_0.
|
|
7478
|
+
var progression = until(x, x + item_0.g2j_1 | 0);
|
|
7479
7479
|
var inductionVariable = progression.b1_1;
|
|
7480
7480
|
var last = progression.c1_1;
|
|
7481
7481
|
if (inductionVariable <= last)
|
|
@@ -7485,11 +7485,11 @@
|
|
|
7485
7485
|
var tmp_1 = sum_0;
|
|
7486
7486
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.renderedRows.<anonymous>.<anonymous>.<anonymous>' call
|
|
7487
7487
|
var it = element;
|
|
7488
|
-
sum_0 = tmp_1 + this.
|
|
7488
|
+
sum_0 = tmp_1 + this.n2k_1.t(it) | 0;
|
|
7489
7489
|
}
|
|
7490
7490
|
while (!(element === last));
|
|
7491
7491
|
var w = sum_0;
|
|
7492
|
-
tmp_0 = w === 0 ? get_EMPTY_LINES() : item_0.
|
|
7492
|
+
tmp_0 = w === 0 ? get_EMPTY_LINES() : item_0.e2j_1.w2h(this.r2k_1, w).z2f(item_0.l2j_1);
|
|
7493
7493
|
} else {
|
|
7494
7494
|
tmp_0 = get_EMPTY_LINES();
|
|
7495
7495
|
}
|
|
@@ -7498,10 +7498,10 @@
|
|
|
7498
7498
|
}
|
|
7499
7499
|
destination.e(destination_0);
|
|
7500
7500
|
}
|
|
7501
|
-
tmp.
|
|
7501
|
+
tmp.s2k_1 = destination;
|
|
7502
7502
|
var tmp_2 = this;
|
|
7503
7503
|
// Inline function 'kotlin.collections.mapIndexed' call
|
|
7504
|
-
var this_1 = this.
|
|
7504
|
+
var this_1 = this.s2k_1;
|
|
7505
7505
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
7506
7506
|
var destination_1 = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_1, 10));
|
|
7507
7507
|
var index_0 = 0;
|
|
@@ -7525,18 +7525,18 @@
|
|
|
7525
7525
|
var destruct = iterator.r();
|
|
7526
7526
|
var x_0 = destruct.qa();
|
|
7527
7527
|
var it_0 = destruct.ra();
|
|
7528
|
-
var tmp_3 = it_0.
|
|
7528
|
+
var tmp_3 = it_0.y2f();
|
|
7529
7529
|
var tmp59_safe_receiver = cellAt(this, x_0, y);
|
|
7530
|
-
var tmp0_elvis_lhs = tmp59_safe_receiver == null ? null : tmp59_safe_receiver.
|
|
7530
|
+
var tmp0_elvis_lhs = tmp59_safe_receiver == null ? null : tmp59_safe_receiver.u2i();
|
|
7531
7531
|
var maxValue = tmp_3 / (tmp0_elvis_lhs == null ? 1 : tmp0_elvis_lhs) | 0;
|
|
7532
7532
|
while (iterator.q()) {
|
|
7533
7533
|
// Inline function 'com.github.ajalt.mordant.table.TableRenderer.rowHeights.<anonymous>.<anonymous>' call
|
|
7534
7534
|
var destruct_0 = iterator.r();
|
|
7535
7535
|
var x_1 = destruct_0.qa();
|
|
7536
7536
|
var it_1 = destruct_0.ra();
|
|
7537
|
-
var tmp_4 = it_1.
|
|
7537
|
+
var tmp_4 = it_1.y2f();
|
|
7538
7538
|
var tmp59_safe_receiver_0 = cellAt(this, x_1, y);
|
|
7539
|
-
var tmp0_elvis_lhs_0 = tmp59_safe_receiver_0 == null ? null : tmp59_safe_receiver_0.
|
|
7539
|
+
var tmp0_elvis_lhs_0 = tmp59_safe_receiver_0 == null ? null : tmp59_safe_receiver_0.u2i();
|
|
7540
7540
|
var v = tmp_4 / (tmp0_elvis_lhs_0 == null ? 1 : tmp0_elvis_lhs_0) | 0;
|
|
7541
7541
|
if (compareTo(maxValue, v) < 0) {
|
|
7542
7542
|
maxValue = v;
|
|
@@ -7549,10 +7549,10 @@
|
|
|
7549
7549
|
var tmp$ret$11 = tmp0_elvis_lhs_1 == null ? 1 : tmp0_elvis_lhs_1;
|
|
7550
7550
|
destination_1.e(tmp$ret$11);
|
|
7551
7551
|
}
|
|
7552
|
-
tmp_2.
|
|
7552
|
+
tmp_2.t2k_1 = destination_1;
|
|
7553
7553
|
var tmp_5 = this;
|
|
7554
|
-
var tmp_6 = sum(this.
|
|
7555
|
-
var tmp0_0 = this.
|
|
7554
|
+
var tmp_6 = sum(this.t2k_1);
|
|
7555
|
+
var tmp0_0 = this.p2k_1;
|
|
7556
7556
|
var tmp$ret$14;
|
|
7557
7557
|
$l$block_0: {
|
|
7558
7558
|
// Inline function 'kotlin.collections.count' call
|
|
@@ -7594,37 +7594,37 @@
|
|
|
7594
7594
|
list.e(tmp$ret$17);
|
|
7595
7595
|
}
|
|
7596
7596
|
while (inductionVariable_0 < size);
|
|
7597
|
-
tmp_5.
|
|
7597
|
+
tmp_5.u2k_1 = list;
|
|
7598
7598
|
}
|
|
7599
|
-
protoOf(TableRenderer).
|
|
7599
|
+
protoOf(TableRenderer).v2k = function () {
|
|
7600
7600
|
var inductionVariable = 0;
|
|
7601
|
-
var last = this.
|
|
7601
|
+
var last = this.n2k_1.s() - 1 | 0;
|
|
7602
7602
|
if (inductionVariable <= last)
|
|
7603
7603
|
do {
|
|
7604
7604
|
var x = inductionVariable;
|
|
7605
7605
|
inductionVariable = inductionVariable + 1 | 0;
|
|
7606
7606
|
drawLeftBorderForColumn(this, x);
|
|
7607
|
-
var colWidth = this.
|
|
7607
|
+
var colWidth = this.n2k_1.t(x);
|
|
7608
7608
|
var tableLineY = 0;
|
|
7609
|
-
var iterator = this.
|
|
7609
|
+
var iterator = this.h2k_1.p();
|
|
7610
7610
|
var index = 0;
|
|
7611
7611
|
while (iterator.q()) {
|
|
7612
7612
|
var y = index;
|
|
7613
7613
|
index = index + 1 | 0;
|
|
7614
7614
|
var row = iterator.r();
|
|
7615
|
-
var rowHeight = this.
|
|
7615
|
+
var rowHeight = this.t2k_1.t(y);
|
|
7616
7616
|
var tmp0_elvis_lhs = getOrNull(row, x);
|
|
7617
7617
|
var cell = tmp0_elvis_lhs == null ? Empty_getInstance() : tmp0_elvis_lhs;
|
|
7618
|
-
tableLineY = tableLineY + drawTopBorderForCell(this, tableLineY, x, y, colWidth, cell.
|
|
7618
|
+
tableLineY = tableLineY + drawTopBorderForCell(this, tableLineY, x, y, colWidth, cell.w2i()) | 0;
|
|
7619
7619
|
drawCellContent(this, tableLineY, cell, x, y);
|
|
7620
7620
|
tableLineY = tableLineY + rowHeight | 0;
|
|
7621
7621
|
}
|
|
7622
7622
|
}
|
|
7623
7623
|
while (inductionVariable <= last);
|
|
7624
|
-
drawLeftBorderForColumn(this, this.
|
|
7624
|
+
drawLeftBorderForColumn(this, this.m2k_1);
|
|
7625
7625
|
drawBottomBorder(this);
|
|
7626
7626
|
// Inline function 'kotlin.collections.map' call
|
|
7627
|
-
var this_0 = this.
|
|
7627
|
+
var this_0 = this.u2k_1;
|
|
7628
7628
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7629
7629
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
7630
7630
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -7637,16 +7637,16 @@
|
|
|
7637
7637
|
return new Lines(destination);
|
|
7638
7638
|
};
|
|
7639
7639
|
function get_t_0(_this__u8e3s4) {
|
|
7640
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7640
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.r2i_1) === true;
|
|
7641
7641
|
}
|
|
7642
7642
|
function get_b_0(_this__u8e3s4) {
|
|
7643
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7643
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.t2i_1) === true;
|
|
7644
7644
|
}
|
|
7645
7645
|
function get_l_0(_this__u8e3s4) {
|
|
7646
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7646
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.q2i_1) === true;
|
|
7647
7647
|
}
|
|
7648
7648
|
function get_r_0(_this__u8e3s4) {
|
|
7649
|
-
return (_this__u8e3s4 == null ? null : _this__u8e3s4.
|
|
7649
|
+
return (_this__u8e3s4 == null ? null : _this__u8e3s4.s2i_1) === true;
|
|
7650
7650
|
}
|
|
7651
7651
|
function verticalLayout(init) {
|
|
7652
7652
|
// Inline function 'kotlin.apply' call
|
|
@@ -7664,7 +7664,7 @@
|
|
|
7664
7664
|
}
|
|
7665
7665
|
function Companion_2() {
|
|
7666
7666
|
Companion_instance_2 = this;
|
|
7667
|
-
this.
|
|
7667
|
+
this.f2l_1 = new ColumnWidth(2);
|
|
7668
7668
|
}
|
|
7669
7669
|
var Companion_instance_2;
|
|
7670
7670
|
function Companion_getInstance_3() {
|
|
@@ -7676,35 +7676,35 @@
|
|
|
7676
7676
|
Companion_getInstance_3();
|
|
7677
7677
|
width = width === VOID ? null : width;
|
|
7678
7678
|
expandWeight = expandWeight === VOID ? null : expandWeight;
|
|
7679
|
-
this.
|
|
7680
|
-
this.
|
|
7681
|
-
this.
|
|
7679
|
+
this.q2j_1 = priority;
|
|
7680
|
+
this.r2j_1 = width;
|
|
7681
|
+
this.s2j_1 = expandWeight;
|
|
7682
7682
|
// Inline function 'kotlin.require' call
|
|
7683
|
-
if (!(this.
|
|
7683
|
+
if (!(this.r2j_1 == null || this.r2j_1 > 0)) {
|
|
7684
7684
|
// Inline function 'com.github.ajalt.mordant.table.ColumnWidth.<anonymous>' call
|
|
7685
7685
|
var message = 'width must be greater than zero';
|
|
7686
7686
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
7687
7687
|
}
|
|
7688
7688
|
// Inline function 'kotlin.require' call
|
|
7689
|
-
if (!(this.
|
|
7689
|
+
if (!(this.s2j_1 == null || this.s2j_1 > 0.0)) {
|
|
7690
7690
|
// Inline function 'com.github.ajalt.mordant.table.ColumnWidth.<anonymous>' call
|
|
7691
7691
|
var message_0 = 'expandWeight must be greater than zero';
|
|
7692
7692
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
7693
7693
|
}
|
|
7694
7694
|
// Inline function 'kotlin.require' call
|
|
7695
|
-
if (!(this.
|
|
7695
|
+
if (!(this.r2j_1 == null || this.s2j_1 == null)) {
|
|
7696
7696
|
// Inline function 'com.github.ajalt.mordant.table.ColumnWidth.<anonymous>' call
|
|
7697
7697
|
var message_1 = 'Cannot set both width and expandWeight';
|
|
7698
7698
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
7699
7699
|
}
|
|
7700
7700
|
}
|
|
7701
7701
|
protoOf(ColumnWidth).toString = function () {
|
|
7702
|
-
return get_isAuto(this) ? 'Auto' : get_isExpand(this) ? 'Expand(' + this.
|
|
7702
|
+
return get_isAuto(this) ? 'Auto' : get_isExpand(this) ? 'Expand(' + this.s2j_1 + ')' : get_isFixed(this) ? 'Fixed(' + this.r2j_1 + ')' : 'Custom(width=' + this.r2j_1 + ', expandWeight=' + this.s2j_1 + ', priority=' + this.q2j_1 + ')';
|
|
7703
7703
|
};
|
|
7704
7704
|
protoOf(ColumnWidth).hashCode = function () {
|
|
7705
|
-
var result = this.
|
|
7706
|
-
result = imul(result, 31) + (this.
|
|
7707
|
-
result = imul(result, 31) + (this.
|
|
7705
|
+
var result = this.q2j_1;
|
|
7706
|
+
result = imul(result, 31) + (this.r2j_1 == null ? 0 : this.r2j_1) | 0;
|
|
7707
|
+
result = imul(result, 31) + (this.s2j_1 == null ? 0 : getNumberHashCode(this.s2j_1)) | 0;
|
|
7708
7708
|
return result;
|
|
7709
7709
|
};
|
|
7710
7710
|
protoOf(ColumnWidth).equals = function (other) {
|
|
@@ -7713,135 +7713,135 @@
|
|
|
7713
7713
|
if (!(other instanceof ColumnWidth))
|
|
7714
7714
|
return false;
|
|
7715
7715
|
var tmp0_other_with_cast = other instanceof ColumnWidth ? other : THROW_CCE();
|
|
7716
|
-
if (!(this.
|
|
7716
|
+
if (!(this.q2j_1 === tmp0_other_with_cast.q2j_1))
|
|
7717
7717
|
return false;
|
|
7718
|
-
if (!(this.
|
|
7718
|
+
if (!(this.r2j_1 == tmp0_other_with_cast.r2j_1))
|
|
7719
7719
|
return false;
|
|
7720
|
-
if (!equals(this.
|
|
7720
|
+
if (!equals(this.s2j_1, tmp0_other_with_cast.s2j_1))
|
|
7721
7721
|
return false;
|
|
7722
7722
|
return true;
|
|
7723
7723
|
};
|
|
7724
7724
|
function get_isAuto(_this__u8e3s4) {
|
|
7725
|
-
return _this__u8e3s4.
|
|
7725
|
+
return _this__u8e3s4.r2j_1 == null && _this__u8e3s4.s2j_1 == null;
|
|
7726
7726
|
}
|
|
7727
7727
|
function get_isExpand(_this__u8e3s4) {
|
|
7728
|
-
return !(_this__u8e3s4.
|
|
7728
|
+
return !(_this__u8e3s4.s2j_1 == null);
|
|
7729
7729
|
}
|
|
7730
7730
|
function get_isFixed(_this__u8e3s4) {
|
|
7731
|
-
return !(_this__u8e3s4.
|
|
7731
|
+
return !(_this__u8e3s4.r2j_1 == null);
|
|
7732
7732
|
}
|
|
7733
7733
|
function CellStyleBuilder() {
|
|
7734
7734
|
}
|
|
7735
7735
|
function VerticalLayoutBuilderInstance(tableBuilder) {
|
|
7736
7736
|
tableBuilder = tableBuilder === VOID ? new TableBuilderInstance() : tableBuilder;
|
|
7737
|
-
this.
|
|
7738
|
-
this.
|
|
7739
|
-
this.
|
|
7740
|
-
this.
|
|
7737
|
+
this.w2k_1 = tableBuilder;
|
|
7738
|
+
this.x2k_1 = this.w2k_1.w2l_1;
|
|
7739
|
+
this.y2k_1 = Companion_getInstance_3().f2l_1;
|
|
7740
|
+
this.z2k_1 = 0;
|
|
7741
7741
|
}
|
|
7742
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7743
|
-
this.
|
|
7742
|
+
protoOf(VerticalLayoutBuilderInstance).e2l = function (_set____db54di) {
|
|
7743
|
+
this.z2k_1 = _set____db54di;
|
|
7744
7744
|
};
|
|
7745
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7745
|
+
protoOf(VerticalLayoutBuilderInstance).a2l = function (cells, init) {
|
|
7746
7746
|
// Inline function 'kotlin.collections.forEach' call
|
|
7747
7747
|
var _iterator__ex2g4s = cells.p();
|
|
7748
7748
|
while (_iterator__ex2g4s.q()) {
|
|
7749
7749
|
var element = _iterator__ex2g4s.r();
|
|
7750
7750
|
// Inline function 'com.github.ajalt.mordant.table.VerticalLayoutBuilderInstance.cellsFrom.<anonymous>' call
|
|
7751
|
-
this.
|
|
7751
|
+
this.x2k_1.e2m([element], init);
|
|
7752
7752
|
}
|
|
7753
7753
|
};
|
|
7754
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
7755
|
-
this.
|
|
7754
|
+
protoOf(VerticalLayoutBuilderInstance).c2l = function (content, init) {
|
|
7755
|
+
this.x2k_1.e2m([content], init);
|
|
7756
7756
|
};
|
|
7757
7757
|
protoOf(VerticalLayoutBuilderInstance).v18 = function () {
|
|
7758
|
-
return Companion_instance_3.
|
|
7758
|
+
return Companion_instance_3.f2m(this.w2k_1, this.z2k_1, this.y2k_1);
|
|
7759
7759
|
};
|
|
7760
7760
|
function TableBuilderInstance() {
|
|
7761
|
-
this.
|
|
7762
|
-
this.
|
|
7763
|
-
this.
|
|
7764
|
-
this.
|
|
7765
|
-
this.
|
|
7761
|
+
this.p2l_1 = new CellStyleBuilderMixin();
|
|
7762
|
+
this.q2l_1 = Companion_getInstance_0().r2e_1;
|
|
7763
|
+
this.r2l_1 = get_DEFAULT_STYLE();
|
|
7764
|
+
this.s2l_1 = null;
|
|
7765
|
+
this.t2l_1 = true;
|
|
7766
7766
|
var tmp = this;
|
|
7767
7767
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7768
|
-
tmp.
|
|
7769
|
-
this.
|
|
7770
|
-
this.
|
|
7771
|
-
this.
|
|
7772
|
-
this.
|
|
7773
|
-
this.
|
|
7768
|
+
tmp.u2l_1 = LinkedHashMap_init_$Create$();
|
|
7769
|
+
this.v2l_1 = new SectionBuilderInstance();
|
|
7770
|
+
this.w2l_1 = new SectionBuilderInstance();
|
|
7771
|
+
this.x2l_1 = new SectionBuilderInstance();
|
|
7772
|
+
this.y2l_1 = null;
|
|
7773
|
+
this.z2l_1 = null;
|
|
7774
7774
|
}
|
|
7775
|
-
protoOf(TableBuilderInstance).
|
|
7776
|
-
this.
|
|
7775
|
+
protoOf(TableBuilderInstance).k2l = function (all) {
|
|
7776
|
+
this.p2l_1.k2l(all);
|
|
7777
7777
|
};
|
|
7778
|
-
protoOf(TableBuilderInstance).
|
|
7779
|
-
this.
|
|
7778
|
+
protoOf(TableBuilderInstance).g2m = function (_set____db54di) {
|
|
7779
|
+
this.p2l_1.j2m_1 = _set____db54di;
|
|
7780
7780
|
};
|
|
7781
|
-
protoOf(TableBuilderInstance).
|
|
7782
|
-
return this.
|
|
7781
|
+
protoOf(TableBuilderInstance).g2l = function () {
|
|
7782
|
+
return this.p2l_1.j2m_1;
|
|
7783
7783
|
};
|
|
7784
|
-
protoOf(TableBuilderInstance).
|
|
7785
|
-
return this.
|
|
7784
|
+
protoOf(TableBuilderInstance).h2l = function () {
|
|
7785
|
+
return this.p2l_1.m2m_1;
|
|
7786
7786
|
};
|
|
7787
|
-
protoOf(TableBuilderInstance).
|
|
7788
|
-
this.
|
|
7787
|
+
protoOf(TableBuilderInstance).i2l = function (_set____db54di) {
|
|
7788
|
+
this.p2l_1.h2m_1 = _set____db54di;
|
|
7789
7789
|
};
|
|
7790
|
-
protoOf(TableBuilderInstance).
|
|
7791
|
-
return this.
|
|
7790
|
+
protoOf(TableBuilderInstance).j2l = function () {
|
|
7791
|
+
return this.p2l_1.h2m_1;
|
|
7792
7792
|
};
|
|
7793
|
-
protoOf(TableBuilderInstance).
|
|
7794
|
-
return this.
|
|
7793
|
+
protoOf(TableBuilderInstance).l2l = function () {
|
|
7794
|
+
return this.p2l_1.i2m_1;
|
|
7795
7795
|
};
|
|
7796
|
-
protoOf(TableBuilderInstance).
|
|
7797
|
-
return this.
|
|
7796
|
+
protoOf(TableBuilderInstance).m2l = function () {
|
|
7797
|
+
return this.p2l_1.k2m_1;
|
|
7798
7798
|
};
|
|
7799
|
-
protoOf(TableBuilderInstance).
|
|
7800
|
-
return this.
|
|
7799
|
+
protoOf(TableBuilderInstance).n2l = function () {
|
|
7800
|
+
return this.p2l_1.l2m_1;
|
|
7801
7801
|
};
|
|
7802
|
-
protoOf(TableBuilderInstance).
|
|
7803
|
-
return this.
|
|
7802
|
+
protoOf(TableBuilderInstance).o2l = function () {
|
|
7803
|
+
return this.p2l_1.n2m_1;
|
|
7804
7804
|
};
|
|
7805
7805
|
function SectionBuilderInstance() {
|
|
7806
|
-
this.
|
|
7806
|
+
this.a2m_1 = new CellStyleBuilderMixin();
|
|
7807
7807
|
var tmp = this;
|
|
7808
7808
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7809
|
-
tmp.
|
|
7809
|
+
tmp.b2m_1 = ArrayList_init_$Create$();
|
|
7810
7810
|
var tmp_0 = this;
|
|
7811
7811
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
7812
|
-
tmp_0.
|
|
7812
|
+
tmp_0.c2m_1 = LinkedHashMap_init_$Create$();
|
|
7813
7813
|
var tmp_1 = this;
|
|
7814
7814
|
// Inline function 'kotlin.collections.listOf' call
|
|
7815
|
-
tmp_1.
|
|
7815
|
+
tmp_1.d2m_1 = emptyList();
|
|
7816
7816
|
}
|
|
7817
|
-
protoOf(SectionBuilderInstance).
|
|
7818
|
-
this.
|
|
7817
|
+
protoOf(SectionBuilderInstance).k2l = function (all) {
|
|
7818
|
+
this.a2m_1.k2l(all);
|
|
7819
7819
|
};
|
|
7820
|
-
protoOf(SectionBuilderInstance).
|
|
7821
|
-
return this.
|
|
7820
|
+
protoOf(SectionBuilderInstance).g2l = function () {
|
|
7821
|
+
return this.a2m_1.j2m_1;
|
|
7822
7822
|
};
|
|
7823
|
-
protoOf(SectionBuilderInstance).
|
|
7824
|
-
return this.
|
|
7823
|
+
protoOf(SectionBuilderInstance).h2l = function () {
|
|
7824
|
+
return this.a2m_1.m2m_1;
|
|
7825
7825
|
};
|
|
7826
|
-
protoOf(SectionBuilderInstance).
|
|
7827
|
-
this.
|
|
7826
|
+
protoOf(SectionBuilderInstance).i2l = function (_set____db54di) {
|
|
7827
|
+
this.a2m_1.h2m_1 = _set____db54di;
|
|
7828
7828
|
};
|
|
7829
|
-
protoOf(SectionBuilderInstance).
|
|
7830
|
-
return this.
|
|
7829
|
+
protoOf(SectionBuilderInstance).j2l = function () {
|
|
7830
|
+
return this.a2m_1.h2m_1;
|
|
7831
7831
|
};
|
|
7832
|
-
protoOf(SectionBuilderInstance).
|
|
7833
|
-
return this.
|
|
7832
|
+
protoOf(SectionBuilderInstance).l2l = function () {
|
|
7833
|
+
return this.a2m_1.i2m_1;
|
|
7834
7834
|
};
|
|
7835
|
-
protoOf(SectionBuilderInstance).
|
|
7836
|
-
return this.
|
|
7835
|
+
protoOf(SectionBuilderInstance).m2l = function () {
|
|
7836
|
+
return this.a2m_1.k2m_1;
|
|
7837
7837
|
};
|
|
7838
|
-
protoOf(SectionBuilderInstance).
|
|
7839
|
-
return this.
|
|
7838
|
+
protoOf(SectionBuilderInstance).n2l = function () {
|
|
7839
|
+
return this.a2m_1.l2m_1;
|
|
7840
7840
|
};
|
|
7841
|
-
protoOf(SectionBuilderInstance).
|
|
7842
|
-
return this.
|
|
7841
|
+
protoOf(SectionBuilderInstance).o2l = function () {
|
|
7842
|
+
return this.a2m_1.n2m_1;
|
|
7843
7843
|
};
|
|
7844
|
-
protoOf(SectionBuilderInstance).
|
|
7844
|
+
protoOf(SectionBuilderInstance).o2m = function (cells, init) {
|
|
7845
7845
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
7846
7846
|
// Inline function 'kotlin.collections.mapTo' call
|
|
7847
7847
|
var destination = ArrayList_init_$Create$();
|
|
@@ -7853,122 +7853,122 @@
|
|
|
7853
7853
|
destination.e(tmp$ret$1);
|
|
7854
7854
|
}
|
|
7855
7855
|
var cellBuilders = destination;
|
|
7856
|
-
var tmp4 = this.
|
|
7856
|
+
var tmp4 = this.b2m_1;
|
|
7857
7857
|
// Inline function 'kotlin.apply' call
|
|
7858
7858
|
var this_0 = new RowBuilderInstance(cellBuilders);
|
|
7859
7859
|
init(this_0);
|
|
7860
7860
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
7861
7861
|
tmp4.e(this_0);
|
|
7862
7862
|
};
|
|
7863
|
-
protoOf(SectionBuilderInstance).
|
|
7864
|
-
this.
|
|
7863
|
+
protoOf(SectionBuilderInstance).e2m = function (cells, init) {
|
|
7864
|
+
this.o2m(asList(cells), init);
|
|
7865
7865
|
};
|
|
7866
7866
|
function CellStyleBuilderMixin() {
|
|
7867
|
-
this.d2m_1 = null;
|
|
7868
|
-
this.e2m_1 = null;
|
|
7869
|
-
this.f2m_1 = null;
|
|
7870
|
-
this.g2m_1 = null;
|
|
7871
7867
|
this.h2m_1 = null;
|
|
7872
7868
|
this.i2m_1 = null;
|
|
7873
7869
|
this.j2m_1 = null;
|
|
7870
|
+
this.k2m_1 = null;
|
|
7871
|
+
this.l2m_1 = null;
|
|
7872
|
+
this.m2m_1 = null;
|
|
7873
|
+
this.n2m_1 = null;
|
|
7874
7874
|
}
|
|
7875
|
-
protoOf(CellStyleBuilderMixin).
|
|
7876
|
-
this.
|
|
7877
|
-
};
|
|
7878
|
-
protoOf(CellStyleBuilderMixin).f2l = function () {
|
|
7879
|
-
return this.d2m_1;
|
|
7880
|
-
};
|
|
7881
|
-
protoOf(CellStyleBuilderMixin).h2l = function () {
|
|
7882
|
-
return this.e2m_1;
|
|
7883
|
-
};
|
|
7884
|
-
protoOf(CellStyleBuilderMixin).c2l = function () {
|
|
7885
|
-
return this.f2m_1;
|
|
7886
|
-
};
|
|
7887
|
-
protoOf(CellStyleBuilderMixin).i2l = function () {
|
|
7888
|
-
return this.g2m_1;
|
|
7875
|
+
protoOf(CellStyleBuilderMixin).i2l = function (_set____db54di) {
|
|
7876
|
+
this.h2m_1 = _set____db54di;
|
|
7889
7877
|
};
|
|
7890
7878
|
protoOf(CellStyleBuilderMixin).j2l = function () {
|
|
7891
7879
|
return this.h2m_1;
|
|
7892
7880
|
};
|
|
7893
|
-
protoOf(CellStyleBuilderMixin).
|
|
7881
|
+
protoOf(CellStyleBuilderMixin).l2l = function () {
|
|
7894
7882
|
return this.i2m_1;
|
|
7895
7883
|
};
|
|
7896
|
-
protoOf(CellStyleBuilderMixin).
|
|
7884
|
+
protoOf(CellStyleBuilderMixin).g2l = function () {
|
|
7897
7885
|
return this.j2m_1;
|
|
7898
7886
|
};
|
|
7899
|
-
function
|
|
7900
|
-
this.
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
this.l2m_1.g2l(all);
|
|
7887
|
+
protoOf(CellStyleBuilderMixin).m2l = function () {
|
|
7888
|
+
return this.k2m_1;
|
|
7889
|
+
};
|
|
7890
|
+
protoOf(CellStyleBuilderMixin).n2l = function () {
|
|
7891
|
+
return this.l2m_1;
|
|
7905
7892
|
};
|
|
7906
|
-
protoOf(
|
|
7907
|
-
return this.
|
|
7893
|
+
protoOf(CellStyleBuilderMixin).h2l = function () {
|
|
7894
|
+
return this.m2m_1;
|
|
7908
7895
|
};
|
|
7909
|
-
protoOf(
|
|
7910
|
-
return this.
|
|
7896
|
+
protoOf(CellStyleBuilderMixin).o2l = function () {
|
|
7897
|
+
return this.n2m_1;
|
|
7911
7898
|
};
|
|
7912
|
-
|
|
7913
|
-
this.
|
|
7899
|
+
function RowBuilderInstance(cells) {
|
|
7900
|
+
this.p2m_1 = new CellStyleBuilderMixin();
|
|
7901
|
+
this.q2m_1 = cells;
|
|
7902
|
+
}
|
|
7903
|
+
protoOf(RowBuilderInstance).k2l = function (all) {
|
|
7904
|
+
this.p2m_1.k2l(all);
|
|
7914
7905
|
};
|
|
7915
|
-
protoOf(RowBuilderInstance).
|
|
7916
|
-
return this.
|
|
7906
|
+
protoOf(RowBuilderInstance).g2l = function () {
|
|
7907
|
+
return this.p2m_1.j2m_1;
|
|
7917
7908
|
};
|
|
7918
7909
|
protoOf(RowBuilderInstance).h2l = function () {
|
|
7919
|
-
return this.
|
|
7910
|
+
return this.p2m_1.m2m_1;
|
|
7920
7911
|
};
|
|
7921
|
-
protoOf(RowBuilderInstance).i2l = function () {
|
|
7922
|
-
|
|
7912
|
+
protoOf(RowBuilderInstance).i2l = function (_set____db54di) {
|
|
7913
|
+
this.p2m_1.h2m_1 = _set____db54di;
|
|
7923
7914
|
};
|
|
7924
7915
|
protoOf(RowBuilderInstance).j2l = function () {
|
|
7925
|
-
return this.
|
|
7916
|
+
return this.p2m_1.h2m_1;
|
|
7926
7917
|
};
|
|
7927
|
-
protoOf(RowBuilderInstance).
|
|
7928
|
-
return this.
|
|
7918
|
+
protoOf(RowBuilderInstance).l2l = function () {
|
|
7919
|
+
return this.p2m_1.i2m_1;
|
|
7929
7920
|
};
|
|
7930
|
-
function
|
|
7931
|
-
this.
|
|
7932
|
-
this.o2m_1 = content;
|
|
7933
|
-
this.p2m_1 = 1;
|
|
7934
|
-
this.q2m_1 = 1;
|
|
7935
|
-
}
|
|
7936
|
-
protoOf(CellBuilderInstance).g2l = function (all) {
|
|
7937
|
-
this.n2m_1.g2l(all);
|
|
7921
|
+
protoOf(RowBuilderInstance).m2l = function () {
|
|
7922
|
+
return this.p2m_1.k2m_1;
|
|
7938
7923
|
};
|
|
7939
|
-
protoOf(
|
|
7940
|
-
return this.
|
|
7924
|
+
protoOf(RowBuilderInstance).n2l = function () {
|
|
7925
|
+
return this.p2m_1.l2m_1;
|
|
7941
7926
|
};
|
|
7942
|
-
protoOf(
|
|
7943
|
-
return this.n2m_1
|
|
7927
|
+
protoOf(RowBuilderInstance).o2l = function () {
|
|
7928
|
+
return this.p2m_1.n2m_1;
|
|
7944
7929
|
};
|
|
7945
|
-
|
|
7946
|
-
this.
|
|
7930
|
+
function CellBuilderInstance(content) {
|
|
7931
|
+
this.r2m_1 = new CellStyleBuilderMixin();
|
|
7932
|
+
this.s2m_1 = content;
|
|
7933
|
+
this.t2m_1 = 1;
|
|
7934
|
+
this.u2m_1 = 1;
|
|
7935
|
+
}
|
|
7936
|
+
protoOf(CellBuilderInstance).k2l = function (all) {
|
|
7937
|
+
this.r2m_1.k2l(all);
|
|
7947
7938
|
};
|
|
7948
|
-
protoOf(CellBuilderInstance).
|
|
7949
|
-
return this.
|
|
7939
|
+
protoOf(CellBuilderInstance).g2l = function () {
|
|
7940
|
+
return this.r2m_1.j2m_1;
|
|
7950
7941
|
};
|
|
7951
7942
|
protoOf(CellBuilderInstance).h2l = function () {
|
|
7952
|
-
return this.
|
|
7943
|
+
return this.r2m_1.m2m_1;
|
|
7953
7944
|
};
|
|
7954
|
-
protoOf(CellBuilderInstance).i2l = function () {
|
|
7955
|
-
|
|
7945
|
+
protoOf(CellBuilderInstance).i2l = function (_set____db54di) {
|
|
7946
|
+
this.r2m_1.h2m_1 = _set____db54di;
|
|
7956
7947
|
};
|
|
7957
7948
|
protoOf(CellBuilderInstance).j2l = function () {
|
|
7958
|
-
return this.
|
|
7949
|
+
return this.r2m_1.h2m_1;
|
|
7950
|
+
};
|
|
7951
|
+
protoOf(CellBuilderInstance).l2l = function () {
|
|
7952
|
+
return this.r2m_1.i2m_1;
|
|
7953
|
+
};
|
|
7954
|
+
protoOf(CellBuilderInstance).m2l = function () {
|
|
7955
|
+
return this.r2m_1.k2m_1;
|
|
7956
|
+
};
|
|
7957
|
+
protoOf(CellBuilderInstance).n2l = function () {
|
|
7958
|
+
return this.r2m_1.l2m_1;
|
|
7959
7959
|
};
|
|
7960
|
-
protoOf(CellBuilderInstance).
|
|
7961
|
-
return this.n2m_1
|
|
7960
|
+
protoOf(CellBuilderInstance).o2l = function () {
|
|
7961
|
+
return this.r2m_1.n2m_1;
|
|
7962
7962
|
};
|
|
7963
7963
|
function WidgetContent(widget) {
|
|
7964
7964
|
CellContent.call(this);
|
|
7965
|
-
this.
|
|
7965
|
+
this.v2m_1 = widget;
|
|
7966
7966
|
}
|
|
7967
7967
|
protoOf(WidgetContent).toString = function () {
|
|
7968
|
-
return 'WidgetContent(widget=' + toString(this.
|
|
7968
|
+
return 'WidgetContent(widget=' + toString(this.v2m_1) + ')';
|
|
7969
7969
|
};
|
|
7970
7970
|
protoOf(WidgetContent).hashCode = function () {
|
|
7971
|
-
return hashCode(this.
|
|
7971
|
+
return hashCode(this.v2m_1);
|
|
7972
7972
|
};
|
|
7973
7973
|
protoOf(WidgetContent).equals = function (other) {
|
|
7974
7974
|
if (this === other)
|
|
@@ -7976,19 +7976,19 @@
|
|
|
7976
7976
|
if (!(other instanceof WidgetContent))
|
|
7977
7977
|
return false;
|
|
7978
7978
|
var tmp0_other_with_cast = other instanceof WidgetContent ? other : THROW_CCE();
|
|
7979
|
-
if (!equals(this.
|
|
7979
|
+
if (!equals(this.v2m_1, tmp0_other_with_cast.v2m_1))
|
|
7980
7980
|
return false;
|
|
7981
7981
|
return true;
|
|
7982
7982
|
};
|
|
7983
7983
|
function TextContent(text) {
|
|
7984
7984
|
CellContent.call(this);
|
|
7985
|
-
this.
|
|
7985
|
+
this.w2m_1 = text;
|
|
7986
7986
|
}
|
|
7987
7987
|
protoOf(TextContent).toString = function () {
|
|
7988
|
-
return 'TextContent(text=' + this.
|
|
7988
|
+
return 'TextContent(text=' + this.w2m_1 + ')';
|
|
7989
7989
|
};
|
|
7990
7990
|
protoOf(TextContent).hashCode = function () {
|
|
7991
|
-
return getStringHashCode(this.
|
|
7991
|
+
return getStringHashCode(this.w2m_1);
|
|
7992
7992
|
};
|
|
7993
7993
|
protoOf(TextContent).equals = function (other) {
|
|
7994
7994
|
if (this === other)
|
|
@@ -7996,7 +7996,7 @@
|
|
|
7996
7996
|
if (!(other instanceof TextContent))
|
|
7997
7997
|
return false;
|
|
7998
7998
|
var tmp0_other_with_cast = other instanceof TextContent ? other : THROW_CCE();
|
|
7999
|
-
if (!(this.
|
|
7999
|
+
if (!(this.w2m_1 === tmp0_other_with_cast.w2m_1))
|
|
8000
8000
|
return false;
|
|
8001
8001
|
return true;
|
|
8002
8002
|
};
|
|
@@ -8009,7 +8009,7 @@
|
|
|
8009
8009
|
}
|
|
8010
8010
|
function buildSection($this, section, builderWidth) {
|
|
8011
8011
|
// Inline function 'kotlin.collections.MutableList' call
|
|
8012
|
-
var size = section.
|
|
8012
|
+
var size = section.b2m_1.s();
|
|
8013
8013
|
var list = ArrayList_init_$Create$_0(size);
|
|
8014
8014
|
// Inline function 'kotlin.repeat' call
|
|
8015
8015
|
var inductionVariable = 0;
|
|
@@ -8019,19 +8019,19 @@
|
|
|
8019
8019
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8020
8020
|
// Inline function 'kotlin.collections.MutableList.<anonymous>' call
|
|
8021
8021
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildSection.<anonymous>' call
|
|
8022
|
-
var tmp$ret$0 = ArrayList_init_$Create$_0(section.
|
|
8022
|
+
var tmp$ret$0 = ArrayList_init_$Create$_0(section.b2m_1.s());
|
|
8023
8023
|
list.e(tmp$ret$0);
|
|
8024
8024
|
}
|
|
8025
8025
|
while (inductionVariable < size);
|
|
8026
8026
|
var rows = list;
|
|
8027
|
-
var iterator = section.
|
|
8027
|
+
var iterator = section.b2m_1.p();
|
|
8028
8028
|
var index_0 = 0;
|
|
8029
8029
|
while (iterator.q()) {
|
|
8030
8030
|
var y = index_0;
|
|
8031
8031
|
index_0 = index_0 + 1 | 0;
|
|
8032
8032
|
var row = iterator.r();
|
|
8033
8033
|
var x = 0;
|
|
8034
|
-
var _iterator__ex2g4s = row.
|
|
8034
|
+
var _iterator__ex2g4s = row.q2m_1.p();
|
|
8035
8035
|
while (_iterator__ex2g4s.q()) {
|
|
8036
8036
|
var cellBuilder = _iterator__ex2g4s.r();
|
|
8037
8037
|
x = findEmptyColumn(rows, x, y);
|
|
@@ -8042,10 +8042,10 @@
|
|
|
8042
8042
|
return rows;
|
|
8043
8043
|
}
|
|
8044
8044
|
function insertCell($this, cell, section, rows, startingX, startingY, builderWidth) {
|
|
8045
|
-
var tableCol = $this.
|
|
8046
|
-
var sectionCol = section.
|
|
8047
|
-
var row = section.
|
|
8048
|
-
var tmp0 = until(startingY, startingY + cell.
|
|
8045
|
+
var tableCol = $this.x2m_1.u2l_1.e2(startingX);
|
|
8046
|
+
var sectionCol = section.c2m_1.e2(startingX);
|
|
8047
|
+
var row = section.b2m_1.t(startingY);
|
|
8048
|
+
var tmp0 = until(startingY, startingY + cell.u2m_1 | 0);
|
|
8049
8049
|
var tmp$ret$0;
|
|
8050
8050
|
$l$block: {
|
|
8051
8051
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -8056,15 +8056,15 @@
|
|
|
8056
8056
|
}
|
|
8057
8057
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8058
8058
|
var it = iterator.r();
|
|
8059
|
-
var tmp89_safe_receiver = getOrNull(section.
|
|
8060
|
-
var tmp90_safe_receiver = tmp89_safe_receiver == null ? null : tmp89_safe_receiver.
|
|
8059
|
+
var tmp89_safe_receiver = getOrNull(section.b2m_1, it);
|
|
8060
|
+
var tmp90_safe_receiver = tmp89_safe_receiver == null ? null : tmp89_safe_receiver.q2m_1;
|
|
8061
8061
|
var tmp0_elvis_lhs = tmp90_safe_receiver == null ? null : tmp90_safe_receiver.s();
|
|
8062
8062
|
var maxValue = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
8063
8063
|
while (iterator.q()) {
|
|
8064
8064
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8065
8065
|
var it_0 = iterator.r();
|
|
8066
|
-
var tmp89_safe_receiver_0 = getOrNull(section.
|
|
8067
|
-
var tmp90_safe_receiver_0 = tmp89_safe_receiver_0 == null ? null : tmp89_safe_receiver_0.
|
|
8066
|
+
var tmp89_safe_receiver_0 = getOrNull(section.b2m_1, it_0);
|
|
8067
|
+
var tmp90_safe_receiver_0 = tmp89_safe_receiver_0 == null ? null : tmp89_safe_receiver_0.q2m_1;
|
|
8068
8068
|
var tmp0_elvis_lhs_0 = tmp90_safe_receiver_0 == null ? null : tmp90_safe_receiver_0.s();
|
|
8069
8069
|
var v = tmp0_elvis_lhs_0 == null ? 0 : tmp0_elvis_lhs_0;
|
|
8070
8070
|
if (compareTo(maxValue, v) < 0) {
|
|
@@ -8075,17 +8075,17 @@
|
|
|
8075
8075
|
}
|
|
8076
8076
|
var tmp0_elvis_lhs_1 = tmp$ret$0;
|
|
8077
8077
|
var maxRowSize = tmp0_elvis_lhs_1 == null ? 0 : tmp0_elvis_lhs_1;
|
|
8078
|
-
var columnSpan = coerceAtMost(cell.
|
|
8079
|
-
var rowSpan = coerceAtMost(cell.
|
|
8078
|
+
var columnSpan = coerceAtMost(cell.t2m_1, (builderWidth - maxRowSize | 0) + 1 | 0);
|
|
8079
|
+
var rowSpan = coerceAtMost(cell.u2m_1, rows.s() - startingY | 0);
|
|
8080
8080
|
var tmp = Borders_ALL_getInstance();
|
|
8081
8081
|
var borders = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp, TableLayout$insertCell$lambda);
|
|
8082
8082
|
// Inline function 'com.github.ajalt.mordant.widgets.Companion.invoke' call
|
|
8083
8083
|
// Inline function 'kotlin.apply' call
|
|
8084
8084
|
var this_0 = new Builder(0, 0, 0, 0);
|
|
8085
8085
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8086
|
-
this_0.
|
|
8086
|
+
this_0.c2n(1);
|
|
8087
8087
|
var b = this_0;
|
|
8088
|
-
var tmp_0 = new Padding(b.
|
|
8088
|
+
var tmp_0 = new Padding(b.y2m_1, b.z2m_1, b.a2n_1, b.b2n_1);
|
|
8089
8089
|
var padding = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_0, TableLayout$insertCell$lambda_0);
|
|
8090
8090
|
var tmp_1 = Whitespace_PRE_getInstance();
|
|
8091
8091
|
var whitespace = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_1, TableLayout$insertCell$lambda_1);
|
|
@@ -8097,30 +8097,30 @@
|
|
|
8097
8097
|
var overflowWrap = insertCell$getStyle(cell, row, sectionCol, tableCol, section, $this, tmp_4, TableLayout$insertCell$lambda_4);
|
|
8098
8098
|
var tmp_5;
|
|
8099
8099
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
8100
|
-
if (!section.
|
|
8101
|
-
tmp_5 = section.
|
|
8100
|
+
if (!section.d2m_1.m()) {
|
|
8101
|
+
tmp_5 = section.d2m_1.t(startingY % section.d2m_1.s() | 0);
|
|
8102
8102
|
} else {
|
|
8103
8103
|
tmp_5 = null;
|
|
8104
8104
|
}
|
|
8105
8105
|
var stripedStyle = tmp_5;
|
|
8106
|
-
var tmp_6 = cell.
|
|
8107
|
-
var tmp_7 = row.
|
|
8108
|
-
var tmp_8 = sectionCol == null ? null : sectionCol.
|
|
8109
|
-
var style = foldStyles([tmp_6, tmp_7, stripedStyle, tmp_8, tableCol == null ? null : tableCol.
|
|
8110
|
-
var tmp95_subject = cell.
|
|
8106
|
+
var tmp_6 = cell.l2l();
|
|
8107
|
+
var tmp_7 = row.l2l();
|
|
8108
|
+
var tmp_8 = sectionCol == null ? null : sectionCol.l2l();
|
|
8109
|
+
var style = foldStyles([tmp_6, tmp_7, stripedStyle, tmp_8, tableCol == null ? null : tableCol.l2l(), section.l2l(), $this.x2m_1.l2l()]);
|
|
8110
|
+
var tmp95_subject = cell.s2m_1;
|
|
8111
8111
|
var tmp_9;
|
|
8112
8112
|
if (tmp95_subject instanceof WidgetContent) {
|
|
8113
|
-
tmp_9 = cell.
|
|
8113
|
+
tmp_9 = cell.s2m_1.v2m_1;
|
|
8114
8114
|
} else {
|
|
8115
8115
|
if (tmp95_subject instanceof TextContent) {
|
|
8116
|
-
tmp_9 = Text_init_$Create$(cell.
|
|
8116
|
+
tmp_9 = Text_init_$Create$(cell.s2m_1.w2m_1, whitespace, textAlign, overflowWrap);
|
|
8117
8117
|
} else {
|
|
8118
8118
|
noWhenBranchMatchedException();
|
|
8119
8119
|
}
|
|
8120
8120
|
}
|
|
8121
8121
|
var content = withPadding_0(tmp_9, padding);
|
|
8122
8122
|
// Inline function 'kotlin.takeIf' call
|
|
8123
|
-
var this_1 = borders.
|
|
8123
|
+
var this_1 = borders.s2i_1;
|
|
8124
8124
|
var tmp_10;
|
|
8125
8125
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8126
8126
|
if (columnSpan === 1) {
|
|
@@ -8130,7 +8130,7 @@
|
|
|
8130
8130
|
}
|
|
8131
8131
|
var tmp_11 = tmp_10;
|
|
8132
8132
|
// Inline function 'kotlin.takeIf' call
|
|
8133
|
-
var this_2 = borders.
|
|
8133
|
+
var this_2 = borders.t2i_1;
|
|
8134
8134
|
var tmp_12;
|
|
8135
8135
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8136
8136
|
if (rowSpan === 1) {
|
|
@@ -8139,7 +8139,7 @@
|
|
|
8139
8139
|
tmp_12 = null;
|
|
8140
8140
|
}
|
|
8141
8141
|
var tmp$ret$9 = tmp_12;
|
|
8142
|
-
var builtCell = new Content(content, rowSpan, columnSpan, borders.
|
|
8142
|
+
var builtCell = new Content(content, rowSpan, columnSpan, borders.q2i_1, borders.r2i_1, tmp_11, tmp$ret$9, style, textAlign, verticalAlign, padding.g2n_1 + padding.e2n_1 | 0);
|
|
8143
8143
|
var lastX = (startingX + columnSpan | 0) - 1 | 0;
|
|
8144
8144
|
var inductionVariable = startingX;
|
|
8145
8145
|
if (inductionVariable <= lastX)
|
|
@@ -8157,7 +8157,7 @@
|
|
|
8157
8157
|
tmp_13 = builtCell;
|
|
8158
8158
|
} else {
|
|
8159
8159
|
// Inline function 'kotlin.takeIf' call
|
|
8160
|
-
var this_3 = borders.
|
|
8160
|
+
var this_3 = borders.q2i_1;
|
|
8161
8161
|
var tmp_14;
|
|
8162
8162
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8163
8163
|
if (x === startingX) {
|
|
@@ -8167,7 +8167,7 @@
|
|
|
8167
8167
|
}
|
|
8168
8168
|
var tmp_15 = tmp_14;
|
|
8169
8169
|
// Inline function 'kotlin.takeIf' call
|
|
8170
|
-
var this_4 = borders.
|
|
8170
|
+
var this_4 = borders.r2i_1;
|
|
8171
8171
|
var tmp_16;
|
|
8172
8172
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8173
8173
|
if (y === startingY) {
|
|
@@ -8177,7 +8177,7 @@
|
|
|
8177
8177
|
}
|
|
8178
8178
|
var tmp_17 = tmp_16;
|
|
8179
8179
|
// Inline function 'kotlin.takeIf' call
|
|
8180
|
-
var this_5 = borders.
|
|
8180
|
+
var this_5 = borders.s2i_1;
|
|
8181
8181
|
var tmp_18;
|
|
8182
8182
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8183
8183
|
if (x === lastX) {
|
|
@@ -8187,7 +8187,7 @@
|
|
|
8187
8187
|
}
|
|
8188
8188
|
var tmp_19 = tmp_18;
|
|
8189
8189
|
// Inline function 'kotlin.takeIf' call
|
|
8190
|
-
var this_6 = borders.
|
|
8190
|
+
var this_6 = borders.t2i_1;
|
|
8191
8191
|
var tmp_20;
|
|
8192
8192
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.insertCell.<anonymous>' call
|
|
8193
8193
|
if (y === lastY) {
|
|
@@ -8245,37 +8245,37 @@
|
|
|
8245
8245
|
}
|
|
8246
8246
|
var tmp3_elvis_lhs = tmp_1;
|
|
8247
8247
|
var tmp4_elvis_lhs = tmp3_elvis_lhs == null ? getter($section) : tmp3_elvis_lhs;
|
|
8248
|
-
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? getter(this$0.
|
|
8248
|
+
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? getter(this$0.x2m_1) : tmp4_elvis_lhs;
|
|
8249
8249
|
return tmp5_elvis_lhs == null ? default_0 : tmp5_elvis_lhs;
|
|
8250
8250
|
}
|
|
8251
8251
|
function TableLayout$insertCell$lambda(it) {
|
|
8252
|
-
return it.
|
|
8252
|
+
return it.g2l();
|
|
8253
8253
|
}
|
|
8254
8254
|
function TableLayout$insertCell$lambda_0(it) {
|
|
8255
|
-
return it.
|
|
8255
|
+
return it.j2l();
|
|
8256
8256
|
}
|
|
8257
8257
|
function TableLayout$insertCell$lambda_1(it) {
|
|
8258
|
-
return it.
|
|
8258
|
+
return it.m2l();
|
|
8259
8259
|
}
|
|
8260
8260
|
function TableLayout$insertCell$lambda_2(it) {
|
|
8261
|
-
return it.
|
|
8261
|
+
return it.n2l();
|
|
8262
8262
|
}
|
|
8263
8263
|
function TableLayout$insertCell$lambda_3(it) {
|
|
8264
|
-
return it.
|
|
8264
|
+
return it.h2l();
|
|
8265
8265
|
}
|
|
8266
8266
|
function TableLayout$insertCell$lambda_4(it) {
|
|
8267
|
-
return it.
|
|
8267
|
+
return it.o2l();
|
|
8268
8268
|
}
|
|
8269
8269
|
function TableLayout(table) {
|
|
8270
|
-
this.
|
|
8270
|
+
this.x2m_1 = table;
|
|
8271
8271
|
}
|
|
8272
|
-
protoOf(TableLayout).
|
|
8272
|
+
protoOf(TableLayout).h2n = function () {
|
|
8273
8273
|
// Inline function 'kotlin.collections.maxOf' call
|
|
8274
|
-
var iterator = listOf([this.
|
|
8274
|
+
var iterator = listOf([this.x2m_1.v2l_1, this.x2m_1.w2l_1, this.x2m_1.x2l_1]).p();
|
|
8275
8275
|
if (!iterator.q())
|
|
8276
8276
|
throw NoSuchElementException_init_$Create$();
|
|
8277
8277
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>' call
|
|
8278
|
-
var tmp0 = iterator.r().
|
|
8278
|
+
var tmp0 = iterator.r().b2m_1;
|
|
8279
8279
|
var tmp$ret$0;
|
|
8280
8280
|
$l$block: {
|
|
8281
8281
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -8285,10 +8285,10 @@
|
|
|
8285
8285
|
break $l$block;
|
|
8286
8286
|
}
|
|
8287
8287
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>.<anonymous>' call
|
|
8288
|
-
var maxValue = iterator_0.r().
|
|
8288
|
+
var maxValue = iterator_0.r().q2m_1.s();
|
|
8289
8289
|
while (iterator_0.q()) {
|
|
8290
8290
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>.<anonymous>' call
|
|
8291
|
-
var v = iterator_0.r().
|
|
8291
|
+
var v = iterator_0.r().q2m_1.s();
|
|
8292
8292
|
if (compareTo(maxValue, v) < 0) {
|
|
8293
8293
|
maxValue = v;
|
|
8294
8294
|
}
|
|
@@ -8299,7 +8299,7 @@
|
|
|
8299
8299
|
var maxValue_0 = tmp0_elvis_lhs == null ? 0 : tmp0_elvis_lhs;
|
|
8300
8300
|
while (iterator.q()) {
|
|
8301
8301
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>' call
|
|
8302
|
-
var tmp0_0 = iterator.r().
|
|
8302
|
+
var tmp0_0 = iterator.r().b2m_1;
|
|
8303
8303
|
var tmp$ret$4;
|
|
8304
8304
|
$l$block_0: {
|
|
8305
8305
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -8309,10 +8309,10 @@
|
|
|
8309
8309
|
break $l$block_0;
|
|
8310
8310
|
}
|
|
8311
8311
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>.<anonymous>' call
|
|
8312
|
-
var maxValue_1 = iterator_1.r().
|
|
8312
|
+
var maxValue_1 = iterator_1.r().q2m_1.s();
|
|
8313
8313
|
while (iterator_1.q()) {
|
|
8314
8314
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>.<anonymous>' call
|
|
8315
|
-
var v_0 = iterator_1.r().
|
|
8315
|
+
var v_0 = iterator_1.r().q2m_1.s();
|
|
8316
8316
|
if (compareTo(maxValue_1, v_0) < 0) {
|
|
8317
8317
|
maxValue_1 = v_0;
|
|
8318
8318
|
}
|
|
@@ -8326,17 +8326,17 @@
|
|
|
8326
8326
|
}
|
|
8327
8327
|
}
|
|
8328
8328
|
var builderWidth = maxValue_0;
|
|
8329
|
-
var header = buildSection(this, this.
|
|
8330
|
-
var body = buildSection(this, this.
|
|
8331
|
-
var footer = buildSection(this, this.
|
|
8329
|
+
var header = buildSection(this, this.x2m_1.v2l_1, builderWidth);
|
|
8330
|
+
var body = buildSection(this, this.x2m_1.w2l_1, builderWidth);
|
|
8331
|
+
var footer = buildSection(this, this.x2m_1.x2l_1, builderWidth);
|
|
8332
8332
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
8333
8333
|
var this_0 = flatten(listOf([header, body, footer]));
|
|
8334
8334
|
var tmp;
|
|
8335
8335
|
if (this_0.m()) {
|
|
8336
8336
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>' call
|
|
8337
|
-
var tmp0_elvis_lhs_1 = this.
|
|
8337
|
+
var tmp0_elvis_lhs_1 = this.x2m_1.s2l_1;
|
|
8338
8338
|
var b = tmp0_elvis_lhs_1 == null ? Borders_ALL_getInstance() : tmp0_elvis_lhs_1;
|
|
8339
|
-
var cell = new Content(EmptyWidget_instance, 1, 1, b.
|
|
8339
|
+
var cell = new Content(EmptyWidget_instance, 1, 1, b.q2i_1, b.r2i_1, b.s2i_1, b.t2i_1, null, TextAlign_LEFT_getInstance(), VerticalAlign_TOP_getInstance(), 0);
|
|
8340
8340
|
tmp = listOf_0(listOf_0(cell));
|
|
8341
8341
|
} else {
|
|
8342
8342
|
tmp = this_0;
|
|
@@ -8367,14 +8367,14 @@
|
|
|
8367
8367
|
inductionVariable = inductionVariable + 1 | 0;
|
|
8368
8368
|
// Inline function 'kotlin.collections.MutableList.<anonymous>' call
|
|
8369
8369
|
// Inline function 'com.github.ajalt.mordant.table.TableLayout.buildTable.<anonymous>' call
|
|
8370
|
-
var tmp88_safe_receiver = this.
|
|
8371
|
-
var tmp0_elvis_lhs_2 = tmp88_safe_receiver == null ? null : tmp88_safe_receiver.
|
|
8372
|
-
var tmp$ret$14 = tmp0_elvis_lhs_2 == null ? Companion_getInstance_3().
|
|
8370
|
+
var tmp88_safe_receiver = this.x2m_1.u2l_1.e2(index);
|
|
8371
|
+
var tmp0_elvis_lhs_2 = tmp88_safe_receiver == null ? null : tmp88_safe_receiver.i2n();
|
|
8372
|
+
var tmp$ret$14 = tmp0_elvis_lhs_2 == null ? Companion_getInstance_3().f2l_1 : tmp0_elvis_lhs_2;
|
|
8373
8373
|
list.e(tmp$ret$14);
|
|
8374
8374
|
}
|
|
8375
8375
|
while (inductionVariable < columnCount);
|
|
8376
8376
|
var columnWidths = list;
|
|
8377
|
-
return new TableImpl(rows, this.
|
|
8377
|
+
return new TableImpl(rows, this.x2m_1.q2l_1, this.x2m_1.r2l_1, header.s(), footer.s(), columnWidths, this.x2m_1.s2l_1, this.x2m_1.t2l_1);
|
|
8378
8378
|
};
|
|
8379
8379
|
function findEmptyColumn(_this__u8e3s4, x, y) {
|
|
8380
8380
|
var row = _this__u8e3s4.t(y);
|
|
@@ -8430,13 +8430,13 @@
|
|
|
8430
8430
|
}
|
|
8431
8431
|
function Companion_3() {
|
|
8432
8432
|
}
|
|
8433
|
-
protoOf(Companion_3).
|
|
8434
|
-
builder.
|
|
8435
|
-
builder.
|
|
8436
|
-
builder.
|
|
8433
|
+
protoOf(Companion_3).f2m = function (builder, spacing, columnWidth) {
|
|
8434
|
+
builder.k2l(0);
|
|
8435
|
+
builder.g2m(Borders_NONE_getInstance());
|
|
8436
|
+
builder.s2l_1 = Borders_NONE_getInstance();
|
|
8437
8437
|
var aligned = false;
|
|
8438
8438
|
// Inline function 'kotlin.collections.map' call
|
|
8439
|
-
var this_0 = (new TableLayout(builder)).
|
|
8439
|
+
var this_0 = (new TableLayout(builder)).h2n().t2j_1;
|
|
8440
8440
|
// Inline function 'kotlin.collections.mapTo' call
|
|
8441
8441
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
8442
8442
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -8449,12 +8449,12 @@
|
|
|
8449
8449
|
}
|
|
8450
8450
|
var tmp = item.t(0);
|
|
8451
8451
|
var cell = tmp instanceof Content ? tmp : THROW_CCE();
|
|
8452
|
-
aligned = aligned || !listOf([null, TextAlign_NONE_getInstance()]).l1(cell.
|
|
8453
|
-
var tmp$ret$0 = new VerticalLayoutCell(cell.
|
|
8452
|
+
aligned = aligned || !listOf([null, TextAlign_NONE_getInstance()]).l1(cell.m2j_1);
|
|
8453
|
+
var tmp$ret$0 = new VerticalLayoutCell(cell.e2j_1, cell.l2j_1, cell.m2j_1);
|
|
8454
8454
|
destination.e(tmp$ret$0);
|
|
8455
8455
|
}
|
|
8456
8456
|
var cells = destination;
|
|
8457
|
-
var tmp0_elvis_lhs = builder.
|
|
8457
|
+
var tmp0_elvis_lhs = builder.n2l();
|
|
8458
8458
|
return new VerticalLayout(cells, spacing, columnWidth, tmp0_elvis_lhs == null ? TextAlign_NONE_getInstance() : tmp0_elvis_lhs, aligned);
|
|
8459
8459
|
};
|
|
8460
8460
|
var Companion_instance_3;
|
|
@@ -8462,27 +8462,27 @@
|
|
|
8462
8462
|
return Companion_instance_3;
|
|
8463
8463
|
}
|
|
8464
8464
|
function VerticalLayout(cells, spacing, columnWidth, textAlign, hasAlignedCells) {
|
|
8465
|
-
this.
|
|
8466
|
-
this.
|
|
8467
|
-
this.
|
|
8468
|
-
this.
|
|
8469
|
-
this.
|
|
8465
|
+
this.j2n_1 = cells;
|
|
8466
|
+
this.k2n_1 = spacing;
|
|
8467
|
+
this.l2n_1 = columnWidth;
|
|
8468
|
+
this.m2n_1 = textAlign;
|
|
8469
|
+
this.n2n_1 = hasAlignedCells;
|
|
8470
8470
|
// Inline function 'kotlin.require' call
|
|
8471
|
-
if (!(this.
|
|
8471
|
+
if (!(this.k2n_1 >= 0)) {
|
|
8472
8472
|
// Inline function 'com.github.ajalt.mordant.table.VerticalLayout.<anonymous>' call
|
|
8473
8473
|
var message = 'layout spacing cannot be negative';
|
|
8474
8474
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
8477
|
-
protoOf(VerticalLayout).
|
|
8477
|
+
protoOf(VerticalLayout).v2h = function (t, width) {
|
|
8478
8478
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
8479
8479
|
var max = 0;
|
|
8480
8480
|
var min = 0;
|
|
8481
|
-
var _iterator__ex2g4s = this.
|
|
8481
|
+
var _iterator__ex2g4s = this.j2n_1.p();
|
|
8482
8482
|
$l$loop: while (_iterator__ex2g4s.q()) {
|
|
8483
8483
|
var it = _iterator__ex2g4s.r();
|
|
8484
8484
|
// Inline function 'com.github.ajalt.mordant.table.VerticalLayout.measure.<anonymous>' call
|
|
8485
|
-
var tmp0_elvis_lhs = it.
|
|
8485
|
+
var tmp0_elvis_lhs = it.o2n_1.v2h(t, width);
|
|
8486
8486
|
var tmp;
|
|
8487
8487
|
if (tmp0_elvis_lhs == null) {
|
|
8488
8488
|
continue $l$loop;
|
|
@@ -8492,21 +8492,21 @@
|
|
|
8492
8492
|
var range = tmp;
|
|
8493
8493
|
var tmp0 = max;
|
|
8494
8494
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
8495
|
-
var b = range.
|
|
8495
|
+
var b = range.k2i_1;
|
|
8496
8496
|
max = Math.max(tmp0, b);
|
|
8497
8497
|
var tmp2 = min;
|
|
8498
8498
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
8499
|
-
var b_0 = range.
|
|
8499
|
+
var b_0 = range.j2i_1;
|
|
8500
8500
|
min = Math.max(tmp2, b_0);
|
|
8501
8501
|
}
|
|
8502
8502
|
return new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
8503
8503
|
};
|
|
8504
|
-
protoOf(VerticalLayout).
|
|
8505
|
-
var renderWidth = coerceAtMost(get_isExpand(this.
|
|
8504
|
+
protoOf(VerticalLayout).w2h = function (t, width) {
|
|
8505
|
+
var renderWidth = coerceAtMost(get_isExpand(this.l2n_1) ? width : this.n2n_1 ? this.v2h(t, width).k2i_1 : width, width);
|
|
8506
8506
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
8507
8507
|
var lines = ArrayList_init_$Create$();
|
|
8508
|
-
var spacingLine = this.
|
|
8509
|
-
var iterator = this.
|
|
8508
|
+
var spacingLine = this.m2n_1.q2_1 === 4 ? get_EMPTY_LINE() : new Line(listOf_0(Companion_instance_0.c2e(renderWidth)), get_DEFAULT_STYLE());
|
|
8509
|
+
var iterator = this.j2n_1.p();
|
|
8510
8510
|
var index = 0;
|
|
8511
8511
|
while (iterator.q()) {
|
|
8512
8512
|
var i = index;
|
|
@@ -8514,7 +8514,7 @@
|
|
|
8514
8514
|
var cell = iterator.r();
|
|
8515
8515
|
if (i > 0) {
|
|
8516
8516
|
// Inline function 'kotlin.repeat' call
|
|
8517
|
-
var times = this.
|
|
8517
|
+
var times = this.k2n_1;
|
|
8518
8518
|
var inductionVariable = 0;
|
|
8519
8519
|
if (inductionVariable < times)
|
|
8520
8520
|
do {
|
|
@@ -8526,11 +8526,11 @@
|
|
|
8526
8526
|
}
|
|
8527
8527
|
while (inductionVariable < times);
|
|
8528
8528
|
}
|
|
8529
|
-
var rendered = cell.
|
|
8530
|
-
var w = this.
|
|
8531
|
-
rendered = !(w.
|
|
8529
|
+
var rendered = cell.o2n_1.w2h(t, renderWidth).z2f(cell.p2n_1);
|
|
8530
|
+
var w = this.l2n_1;
|
|
8531
|
+
rendered = !(w.s2j_1 == null) ? setSize(rendered, width, VOID, VOID, cell.q2n_1) : !(w.r2j_1 == null) ? setSize(rendered, w.r2j_1, VOID, VOID, cell.q2n_1) : !cell.q2n_1.equals(TextAlign_NONE_getInstance()) ? setSize(rendered, renderWidth, VOID, VOID, cell.q2n_1) : rendered;
|
|
8532
8532
|
// Inline function 'kotlin.collections.ifEmpty' call
|
|
8533
|
-
var this_0 = rendered.
|
|
8533
|
+
var this_0 = rendered.v2d_1;
|
|
8534
8534
|
var tmp;
|
|
8535
8535
|
if (this_0.m()) {
|
|
8536
8536
|
// Inline function 'com.github.ajalt.mordant.table.VerticalLayout.render.<anonymous>' call
|
|
@@ -8545,39 +8545,39 @@
|
|
|
8545
8545
|
return new Lines(lines);
|
|
8546
8546
|
};
|
|
8547
8547
|
function VerticalLayoutCell(content, style, textAlign) {
|
|
8548
|
-
this.
|
|
8549
|
-
this.
|
|
8550
|
-
this.
|
|
8548
|
+
this.o2n_1 = content;
|
|
8549
|
+
this.p2n_1 = style;
|
|
8550
|
+
this.q2n_1 = textAlign;
|
|
8551
8551
|
}
|
|
8552
8552
|
function StandardTerminalInterface() {
|
|
8553
8553
|
}
|
|
8554
|
-
protoOf(StandardTerminalInterface).
|
|
8555
|
-
return TerminalDetection_instance.
|
|
8554
|
+
protoOf(StandardTerminalInterface).r2n = function (ansiLevel, hyperlinks, outputInteractive, inputInteractive) {
|
|
8555
|
+
return TerminalDetection_instance.u2n(ansiLevel, hyperlinks, inputInteractive, outputInteractive, this.s2n(), this.t2n());
|
|
8556
8556
|
};
|
|
8557
|
-
protoOf(StandardTerminalInterface).
|
|
8558
|
-
if (request.
|
|
8559
|
-
printStderr(request.
|
|
8560
|
-
} else if (request.
|
|
8557
|
+
protoOf(StandardTerminalInterface).v2n = function (request) {
|
|
8558
|
+
if (request.y2n_1) {
|
|
8559
|
+
printStderr(request.w2n_1, request.x2n_1);
|
|
8560
|
+
} else if (request.x2n_1) {
|
|
8561
8561
|
// Inline function 'kotlin.text.isEmpty' call
|
|
8562
|
-
var this_0 = request.
|
|
8562
|
+
var this_0 = request.w2n_1;
|
|
8563
8563
|
if (charSequenceLength(this_0) === 0) {
|
|
8564
8564
|
println_0();
|
|
8565
8565
|
} else {
|
|
8566
|
-
println(request.
|
|
8566
|
+
println(request.w2n_1);
|
|
8567
8567
|
}
|
|
8568
8568
|
} else {
|
|
8569
|
-
print(request.
|
|
8569
|
+
print(request.w2n_1);
|
|
8570
8570
|
}
|
|
8571
8571
|
};
|
|
8572
|
-
protoOf(StandardTerminalInterface).
|
|
8572
|
+
protoOf(StandardTerminalInterface).t2n = function () {
|
|
8573
8573
|
return true;
|
|
8574
8574
|
};
|
|
8575
|
-
protoOf(StandardTerminalInterface).
|
|
8575
|
+
protoOf(StandardTerminalInterface).s2n = function () {
|
|
8576
8576
|
return true;
|
|
8577
8577
|
};
|
|
8578
8578
|
function Terminal_init_$Init$(ansiLevel, theme, width, height, nonInteractiveWidth, nonInteractiveHeight, hyperlinks, tabWidth, interactive, terminalInterface, $this) {
|
|
8579
8579
|
ansiLevel = ansiLevel === VOID ? null : ansiLevel;
|
|
8580
|
-
theme = theme === VOID ? Companion_getInstance_2().
|
|
8580
|
+
theme = theme === VOID ? Companion_getInstance_2().f2h_1 : theme;
|
|
8581
8581
|
width = width === VOID ? null : width;
|
|
8582
8582
|
height = height === VOID ? null : height;
|
|
8583
8583
|
nonInteractiveWidth = nonInteractiveWidth === VOID ? null : nonInteractiveWidth;
|
|
@@ -8586,7 +8586,7 @@
|
|
|
8586
8586
|
tabWidth = tabWidth === VOID ? 8 : tabWidth;
|
|
8587
8587
|
interactive = interactive === VOID ? null : interactive;
|
|
8588
8588
|
terminalInterface = terminalInterface === VOID ? get_STANDARD_TERM_INTERFACE() : terminalInterface;
|
|
8589
|
-
Terminal.call($this, theme, tabWidth, terminalInterface, width, height, nonInteractiveWidth, nonInteractiveHeight, terminalInterface.
|
|
8589
|
+
Terminal.call($this, theme, tabWidth, terminalInterface, width, height, nonInteractiveWidth, nonInteractiveHeight, terminalInterface.r2n(ansiLevel, hyperlinks, interactive, interactive));
|
|
8590
8590
|
return $this;
|
|
8591
8591
|
}
|
|
8592
8592
|
function Terminal_init_$Create$(ansiLevel, theme, width, height, nonInteractiveWidth, nonInteractiveHeight, hyperlinks, tabWidth, interactive, terminalInterface) {
|
|
@@ -8596,37 +8596,37 @@
|
|
|
8596
8596
|
sendPrintRequest($this, new PrintRequest(message, true, stderr));
|
|
8597
8597
|
}
|
|
8598
8598
|
function sendPrintRequest($this, request) {
|
|
8599
|
-
if ($this.
|
|
8600
|
-
$this.
|
|
8599
|
+
if ($this.a2i_1.a2o()) {
|
|
8600
|
+
$this.b2o();
|
|
8601
8601
|
}
|
|
8602
|
-
sendInterceptedPrintRequest(request, $this.
|
|
8602
|
+
sendInterceptedPrintRequest(request, $this.a2i_1, $this.g2i_1.z());
|
|
8603
8603
|
}
|
|
8604
8604
|
function Terminal(theme, tabWidth, terminalInterface, forceWidth, forceHeight, nonInteractiveWidth, nonInteractiveHeight, terminalInfo) {
|
|
8605
|
-
this.
|
|
8606
|
-
this.
|
|
8607
|
-
this.
|
|
8608
|
-
this.
|
|
8609
|
-
this.
|
|
8610
|
-
this.
|
|
8611
|
-
this.
|
|
8612
|
-
this.
|
|
8613
|
-
this.
|
|
8614
|
-
this.
|
|
8615
|
-
this.
|
|
8605
|
+
this.y2h_1 = theme;
|
|
8606
|
+
this.z2h_1 = tabWidth;
|
|
8607
|
+
this.a2i_1 = terminalInterface;
|
|
8608
|
+
this.b2i_1 = forceWidth;
|
|
8609
|
+
this.c2i_1 = forceHeight;
|
|
8610
|
+
this.d2i_1 = nonInteractiveWidth;
|
|
8611
|
+
this.e2i_1 = nonInteractiveHeight;
|
|
8612
|
+
this.f2i_1 = terminalInfo;
|
|
8613
|
+
this.g2i_1 = MppAtomicRef(emptyList());
|
|
8614
|
+
this.h2i_1 = MppAtomicRef(detectSize(this.a2i_1, this.f2i_1, this.b2i_1, this.c2i_1, this.d2i_1, this.e2i_1));
|
|
8615
|
+
this.i2i_1 = this.f2i_1.h2o() ? makePrintingTerminalCursor(this) : DisabledTerminalCursor_instance;
|
|
8616
8616
|
}
|
|
8617
8617
|
protoOf(Terminal).s = function () {
|
|
8618
|
-
return this.
|
|
8618
|
+
return this.h2i_1.z();
|
|
8619
8619
|
};
|
|
8620
|
-
protoOf(Terminal).
|
|
8621
|
-
var tmp0 = this.
|
|
8620
|
+
protoOf(Terminal).b2o = function () {
|
|
8621
|
+
var tmp0 = this.h2i_1;
|
|
8622
8622
|
var tmp$ret$1;
|
|
8623
8623
|
$l$block: {
|
|
8624
8624
|
// Inline function 'com.github.ajalt.mordant.internal.update' call
|
|
8625
8625
|
while (true) {
|
|
8626
8626
|
var old = tmp0.z();
|
|
8627
8627
|
// Inline function 'com.github.ajalt.mordant.terminal.Terminal.updateSize.<anonymous>' call
|
|
8628
|
-
var newValue = detectSize(this.
|
|
8629
|
-
if (tmp0.
|
|
8628
|
+
var newValue = detectSize(this.a2i_1, this.f2i_1, this.b2i_1, this.c2i_1, this.d2i_1, this.e2i_1);
|
|
8629
|
+
if (tmp0.i2o(old, newValue)) {
|
|
8630
8630
|
tmp$ret$1 = to(old, newValue);
|
|
8631
8631
|
break $l$block;
|
|
8632
8632
|
}
|
|
@@ -8634,10 +8634,10 @@
|
|
|
8634
8634
|
}
|
|
8635
8635
|
return tmp$ret$1.pa_1;
|
|
8636
8636
|
};
|
|
8637
|
-
protoOf(Terminal).
|
|
8638
|
-
this.
|
|
8637
|
+
protoOf(Terminal).j2o = function (message, whitespace, align, overflowWrap, width, stderr) {
|
|
8638
|
+
this.l2o(this.k2o(message, whitespace, align, overflowWrap, width), stderr);
|
|
8639
8639
|
};
|
|
8640
|
-
protoOf(Terminal).
|
|
8640
|
+
protoOf(Terminal).m2o = function (message, whitespace, align, overflowWrap, width, stderr, $super) {
|
|
8641
8641
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
8642
8642
|
align = align === VOID ? TextAlign_NONE_getInstance() : align;
|
|
8643
8643
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
@@ -8645,17 +8645,17 @@
|
|
|
8645
8645
|
stderr = stderr === VOID ? false : stderr;
|
|
8646
8646
|
var tmp;
|
|
8647
8647
|
if ($super === VOID) {
|
|
8648
|
-
this.
|
|
8648
|
+
this.j2o(message, whitespace, align, overflowWrap, width, stderr);
|
|
8649
8649
|
tmp = Unit_instance;
|
|
8650
8650
|
} else {
|
|
8651
|
-
tmp = $super.
|
|
8651
|
+
tmp = $super.j2o.call(this, message, whitespace, align, overflowWrap, width, stderr);
|
|
8652
8652
|
}
|
|
8653
8653
|
return tmp;
|
|
8654
8654
|
};
|
|
8655
|
-
protoOf(Terminal).
|
|
8656
|
-
rawPrintln(this, this.
|
|
8655
|
+
protoOf(Terminal).n2o = function (message, whitespace, align, overflowWrap, width, stderr) {
|
|
8656
|
+
rawPrintln(this, this.k2o(message, whitespace, align, overflowWrap, width), stderr);
|
|
8657
8657
|
};
|
|
8658
|
-
protoOf(Terminal).
|
|
8658
|
+
protoOf(Terminal).o2o = function (message, whitespace, align, overflowWrap, width, stderr, $super) {
|
|
8659
8659
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
8660
8660
|
align = align === VOID ? TextAlign_NONE_getInstance() : align;
|
|
8661
8661
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
@@ -8663,34 +8663,34 @@
|
|
|
8663
8663
|
stderr = stderr === VOID ? false : stderr;
|
|
8664
8664
|
var tmp;
|
|
8665
8665
|
if ($super === VOID) {
|
|
8666
|
-
this.
|
|
8666
|
+
this.n2o(message, whitespace, align, overflowWrap, width, stderr);
|
|
8667
8667
|
tmp = Unit_instance;
|
|
8668
8668
|
} else {
|
|
8669
|
-
tmp = $super.
|
|
8669
|
+
tmp = $super.n2o.call(this, message, whitespace, align, overflowWrap, width, stderr);
|
|
8670
8670
|
}
|
|
8671
8671
|
return tmp;
|
|
8672
8672
|
};
|
|
8673
|
-
protoOf(Terminal).
|
|
8673
|
+
protoOf(Terminal).k2o = function (message, whitespace, align, overflowWrap, width) {
|
|
8674
8674
|
var tmp;
|
|
8675
8675
|
if (message instanceof Lines) {
|
|
8676
|
-
tmp = renderLinesAnsi(message, this.
|
|
8676
|
+
tmp = renderLinesAnsi(message, this.f2i_1.c2o_1, this.f2i_1.d2o_1);
|
|
8677
8677
|
} else {
|
|
8678
8678
|
if (!(message == null) ? isInterface(message, Widget) : false) {
|
|
8679
|
-
tmp = this.
|
|
8679
|
+
tmp = this.p2o(message);
|
|
8680
8680
|
} else {
|
|
8681
|
-
tmp = this.
|
|
8681
|
+
tmp = this.p2o(Text_init_$Create$(toString_1(message), whitespace, align, overflowWrap, width));
|
|
8682
8682
|
}
|
|
8683
8683
|
}
|
|
8684
8684
|
return tmp;
|
|
8685
8685
|
};
|
|
8686
|
-
protoOf(Terminal).
|
|
8687
|
-
return renderLinesAnsi(widget.
|
|
8686
|
+
protoOf(Terminal).p2o = function (widget) {
|
|
8687
|
+
return renderLinesAnsi(widget.x2h(this), this.f2i_1.c2o_1, this.f2i_1.d2o_1);
|
|
8688
8688
|
};
|
|
8689
|
-
protoOf(Terminal).
|
|
8689
|
+
protoOf(Terminal).l2o = function (message, stderr) {
|
|
8690
8690
|
sendPrintRequest(this, new PrintRequest(message, false, stderr));
|
|
8691
8691
|
};
|
|
8692
8692
|
function PrintTerminalCursor(terminal) {
|
|
8693
|
-
this.
|
|
8693
|
+
this.q2o_1 = terminal;
|
|
8694
8694
|
}
|
|
8695
8695
|
function DisabledTerminalCursor() {
|
|
8696
8696
|
}
|
|
@@ -8990,7 +8990,7 @@
|
|
|
8990
8990
|
}
|
|
8991
8991
|
function TerminalDetection() {
|
|
8992
8992
|
}
|
|
8993
|
-
protoOf(TerminalDetection).
|
|
8993
|
+
protoOf(TerminalDetection).u2n = function (ansiLevel_0, hyperlinks, forceInputInteractive, forceOutputInteractive, detectedStdinInteractive, detectedStdoutInteractive) {
|
|
8994
8994
|
var ij = isIntellijRunActionConsole(this);
|
|
8995
8995
|
var inputInteractive = forceInputInteractive == null ? ij || detectedStdinInteractive : forceInputInteractive;
|
|
8996
8996
|
var outputInteractive = forceOutputInteractive == null ? ij || detectedStdoutInteractive : forceOutputInteractive;
|
|
@@ -9005,13 +9005,13 @@
|
|
|
9005
9005
|
function detectSize(_this__u8e3s4, info, width, height, nonInteractiveWidth, nonInteractiveHeight) {
|
|
9006
9006
|
if (!(width == null) && !(height == null))
|
|
9007
9007
|
return new Size(width, height);
|
|
9008
|
-
if (!info.
|
|
9008
|
+
if (!info.e2o_1) {
|
|
9009
9009
|
var tmp1_elvis_lhs = nonInteractiveWidth == null ? width : nonInteractiveWidth;
|
|
9010
9010
|
var tmp = tmp1_elvis_lhs == null ? 79 : tmp1_elvis_lhs;
|
|
9011
9011
|
var tmp3_elvis_lhs = nonInteractiveHeight == null ? height : nonInteractiveHeight;
|
|
9012
9012
|
return new Size(tmp, tmp3_elvis_lhs == null ? 24 : tmp3_elvis_lhs);
|
|
9013
9013
|
}
|
|
9014
|
-
var tmp4_elvis_lhs = _this__u8e3s4.
|
|
9014
|
+
var tmp4_elvis_lhs = _this__u8e3s4.z2n();
|
|
9015
9015
|
var tmp_0;
|
|
9016
9016
|
if (tmp4_elvis_lhs == null) {
|
|
9017
9017
|
var tmp122_safe_receiver = getEnv('COLUMNS');
|
|
@@ -9024,28 +9024,28 @@
|
|
|
9024
9024
|
tmp_0 = tmp4_elvis_lhs;
|
|
9025
9025
|
}
|
|
9026
9026
|
var detected = tmp_0;
|
|
9027
|
-
var tmp_2 = width == null ? detected.
|
|
9028
|
-
return new Size(tmp_2, height == null ? detected.
|
|
9027
|
+
var tmp_2 = width == null ? detected.h2g_1 : width;
|
|
9028
|
+
return new Size(tmp_2, height == null ? detected.i2g_1 : height);
|
|
9029
9029
|
}
|
|
9030
9030
|
function TerminalInfo(ansiLevel, ansiHyperLinks, outputInteractive, inputInteractive, supportsAnsiCursor) {
|
|
9031
|
-
this.
|
|
9032
|
-
this.
|
|
9033
|
-
this.
|
|
9034
|
-
this.
|
|
9035
|
-
this.
|
|
9031
|
+
this.c2o_1 = ansiLevel;
|
|
9032
|
+
this.d2o_1 = ansiHyperLinks;
|
|
9033
|
+
this.e2o_1 = outputInteractive;
|
|
9034
|
+
this.f2o_1 = inputInteractive;
|
|
9035
|
+
this.g2o_1 = supportsAnsiCursor;
|
|
9036
9036
|
}
|
|
9037
|
-
protoOf(TerminalInfo).
|
|
9038
|
-
return this.
|
|
9037
|
+
protoOf(TerminalInfo).h2o = function () {
|
|
9038
|
+
return this.f2o_1 && this.e2o_1;
|
|
9039
9039
|
};
|
|
9040
9040
|
protoOf(TerminalInfo).toString = function () {
|
|
9041
|
-
return 'TerminalInfo(ansiLevel=' + this.
|
|
9041
|
+
return 'TerminalInfo(ansiLevel=' + this.c2o_1.toString() + ', ansiHyperLinks=' + this.d2o_1 + ', outputInteractive=' + this.e2o_1 + ', inputInteractive=' + this.f2o_1 + ', supportsAnsiCursor=' + this.g2o_1 + ')';
|
|
9042
9042
|
};
|
|
9043
9043
|
protoOf(TerminalInfo).hashCode = function () {
|
|
9044
|
-
var result = this.
|
|
9045
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9046
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9047
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9048
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9044
|
+
var result = this.c2o_1.hashCode();
|
|
9045
|
+
result = imul(result, 31) + getBooleanHashCode(this.d2o_1) | 0;
|
|
9046
|
+
result = imul(result, 31) + getBooleanHashCode(this.e2o_1) | 0;
|
|
9047
|
+
result = imul(result, 31) + getBooleanHashCode(this.f2o_1) | 0;
|
|
9048
|
+
result = imul(result, 31) + getBooleanHashCode(this.g2o_1) | 0;
|
|
9049
9049
|
return result;
|
|
9050
9050
|
};
|
|
9051
9051
|
protoOf(TerminalInfo).equals = function (other) {
|
|
@@ -9054,32 +9054,32 @@
|
|
|
9054
9054
|
if (!(other instanceof TerminalInfo))
|
|
9055
9055
|
return false;
|
|
9056
9056
|
var tmp0_other_with_cast = other instanceof TerminalInfo ? other : THROW_CCE();
|
|
9057
|
-
if (!this.
|
|
9057
|
+
if (!this.c2o_1.equals(tmp0_other_with_cast.c2o_1))
|
|
9058
9058
|
return false;
|
|
9059
|
-
if (!(this.
|
|
9059
|
+
if (!(this.d2o_1 === tmp0_other_with_cast.d2o_1))
|
|
9060
9060
|
return false;
|
|
9061
|
-
if (!(this.
|
|
9061
|
+
if (!(this.e2o_1 === tmp0_other_with_cast.e2o_1))
|
|
9062
9062
|
return false;
|
|
9063
|
-
if (!(this.
|
|
9063
|
+
if (!(this.f2o_1 === tmp0_other_with_cast.f2o_1))
|
|
9064
9064
|
return false;
|
|
9065
|
-
if (!(this.
|
|
9065
|
+
if (!(this.g2o_1 === tmp0_other_with_cast.g2o_1))
|
|
9066
9066
|
return false;
|
|
9067
9067
|
return true;
|
|
9068
9068
|
};
|
|
9069
9069
|
function TerminalInterface() {
|
|
9070
9070
|
}
|
|
9071
9071
|
function PrintRequest(text, trailingLinebreak, stderr) {
|
|
9072
|
-
this.
|
|
9073
|
-
this.
|
|
9074
|
-
this.
|
|
9072
|
+
this.w2n_1 = text;
|
|
9073
|
+
this.x2n_1 = trailingLinebreak;
|
|
9074
|
+
this.y2n_1 = stderr;
|
|
9075
9075
|
}
|
|
9076
9076
|
protoOf(PrintRequest).toString = function () {
|
|
9077
|
-
return 'PrintRequest(text=' + this.
|
|
9077
|
+
return 'PrintRequest(text=' + this.w2n_1 + ', trailingLinebreak=' + this.x2n_1 + ', stderr=' + this.y2n_1 + ')';
|
|
9078
9078
|
};
|
|
9079
9079
|
protoOf(PrintRequest).hashCode = function () {
|
|
9080
|
-
var result = getStringHashCode(this.
|
|
9081
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9082
|
-
result = imul(result, 31) + getBooleanHashCode(this.
|
|
9080
|
+
var result = getStringHashCode(this.w2n_1);
|
|
9081
|
+
result = imul(result, 31) + getBooleanHashCode(this.x2n_1) | 0;
|
|
9082
|
+
result = imul(result, 31) + getBooleanHashCode(this.y2n_1) | 0;
|
|
9083
9083
|
return result;
|
|
9084
9084
|
};
|
|
9085
9085
|
protoOf(PrintRequest).equals = function (other) {
|
|
@@ -9088,11 +9088,11 @@
|
|
|
9088
9088
|
if (!(other instanceof PrintRequest))
|
|
9089
9089
|
return false;
|
|
9090
9090
|
var tmp0_other_with_cast = other instanceof PrintRequest ? other : THROW_CCE();
|
|
9091
|
-
if (!(this.
|
|
9091
|
+
if (!(this.w2n_1 === tmp0_other_with_cast.w2n_1))
|
|
9092
9092
|
return false;
|
|
9093
|
-
if (!(this.
|
|
9093
|
+
if (!(this.x2n_1 === tmp0_other_with_cast.x2n_1))
|
|
9094
9094
|
return false;
|
|
9095
|
-
if (!(this.
|
|
9095
|
+
if (!(this.y2n_1 === tmp0_other_with_cast.y2n_1))
|
|
9096
9096
|
return false;
|
|
9097
9097
|
return true;
|
|
9098
9098
|
};
|
|
@@ -9100,42 +9100,42 @@
|
|
|
9100
9100
|
// Inline function 'kotlin.apply' call
|
|
9101
9101
|
var this_0 = new DefinitionListBuilder();
|
|
9102
9102
|
init(this_0);
|
|
9103
|
-
return this_0.
|
|
9103
|
+
return this_0.o2h();
|
|
9104
9104
|
}
|
|
9105
9105
|
function DefinitionListBuilder() {
|
|
9106
9106
|
var tmp = this;
|
|
9107
9107
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
9108
|
-
tmp.
|
|
9109
|
-
this.
|
|
9110
|
-
this.
|
|
9111
|
-
this.
|
|
9108
|
+
tmp.r2o_1 = ArrayList_init_$Create$();
|
|
9109
|
+
this.s2o_1 = false;
|
|
9110
|
+
this.t2o_1 = null;
|
|
9111
|
+
this.u2o_1 = null;
|
|
9112
9112
|
}
|
|
9113
|
-
protoOf(DefinitionListBuilder).
|
|
9114
|
-
this.
|
|
9113
|
+
protoOf(DefinitionListBuilder).v2o = function (value) {
|
|
9114
|
+
this.t2o_1 = value;
|
|
9115
9115
|
};
|
|
9116
|
-
protoOf(DefinitionListBuilder).
|
|
9117
|
-
var tmp0_elvis_lhs = this.
|
|
9118
|
-
return tmp0_elvis_lhs == null ? this.
|
|
9116
|
+
protoOf(DefinitionListBuilder).w2o = function () {
|
|
9117
|
+
var tmp0_elvis_lhs = this.t2o_1;
|
|
9118
|
+
return tmp0_elvis_lhs == null ? this.s2o_1 ? 2 : 0 : tmp0_elvis_lhs;
|
|
9119
9119
|
};
|
|
9120
|
-
protoOf(DefinitionListBuilder).
|
|
9121
|
-
var tmp0_elvis_lhs = this.
|
|
9122
|
-
return tmp0_elvis_lhs == null ? this.
|
|
9120
|
+
protoOf(DefinitionListBuilder).x2o = function () {
|
|
9121
|
+
var tmp0_elvis_lhs = this.u2o_1;
|
|
9122
|
+
return tmp0_elvis_lhs == null ? this.s2o_1 ? 0 : 1 : tmp0_elvis_lhs;
|
|
9123
9123
|
};
|
|
9124
|
-
protoOf(DefinitionListBuilder).
|
|
9125
|
-
this.
|
|
9124
|
+
protoOf(DefinitionListBuilder).y2o = function (term, description) {
|
|
9125
|
+
this.z2o(Text_init_$Create$(term), description);
|
|
9126
9126
|
};
|
|
9127
|
-
protoOf(DefinitionListBuilder).
|
|
9128
|
-
var tmp0 = this.
|
|
9127
|
+
protoOf(DefinitionListBuilder).z2o = function (term, description) {
|
|
9128
|
+
var tmp0 = this.r2o_1;
|
|
9129
9129
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9130
9130
|
var element = to(term, description);
|
|
9131
9131
|
tmp0.e(element);
|
|
9132
9132
|
};
|
|
9133
|
-
protoOf(DefinitionListBuilder).
|
|
9134
|
-
return new DefinitionList(this.
|
|
9133
|
+
protoOf(DefinitionListBuilder).o2h = function () {
|
|
9134
|
+
return new DefinitionList(this.r2o_1, this.s2o_1, this.w2o(), this.x2o());
|
|
9135
9135
|
};
|
|
9136
9136
|
function _get_keys__d97k5z($this) {
|
|
9137
9137
|
// Inline function 'kotlin.collections.map' call
|
|
9138
|
-
var this_0 = $this.
|
|
9138
|
+
var this_0 = $this.a2p_1;
|
|
9139
9139
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9140
9140
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
9141
9141
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -9149,7 +9149,7 @@
|
|
|
9149
9149
|
}
|
|
9150
9150
|
function _get_values__tel787($this) {
|
|
9151
9151
|
// Inline function 'kotlin.collections.map' call
|
|
9152
|
-
var this_0 = $this.
|
|
9152
|
+
var this_0 = $this.a2p_1;
|
|
9153
9153
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9154
9154
|
var destination = ArrayList_init_$Create$_0(collectionSizeOrDefault(this_0, 10));
|
|
9155
9155
|
var _iterator__ex2g4s = this_0.p();
|
|
@@ -9166,28 +9166,28 @@
|
|
|
9166
9166
|
}
|
|
9167
9167
|
function DefinitionList$render$lambda($descOffset) {
|
|
9168
9168
|
return function ($this$withPadding) {
|
|
9169
|
-
$this$withPadding.
|
|
9169
|
+
$this$withPadding.b2n_1 = $descOffset;
|
|
9170
9170
|
return Unit_instance;
|
|
9171
9171
|
};
|
|
9172
9172
|
}
|
|
9173
9173
|
function DefinitionList(entries, inline, descriptionSpacing, entrySpacing) {
|
|
9174
|
-
this.
|
|
9175
|
-
this.
|
|
9176
|
-
this.
|
|
9177
|
-
this.
|
|
9174
|
+
this.a2p_1 = entries;
|
|
9175
|
+
this.b2p_1 = inline;
|
|
9176
|
+
this.c2p_1 = descriptionSpacing;
|
|
9177
|
+
this.d2p_1 = entrySpacing;
|
|
9178
9178
|
// Inline function 'kotlin.require' call
|
|
9179
|
-
if (!(this.
|
|
9179
|
+
if (!(this.c2p_1 >= 0)) {
|
|
9180
9180
|
// Inline function 'com.github.ajalt.mordant.widgets.DefinitionList.<anonymous>' call
|
|
9181
9181
|
var message = 'Spacing cannot be negative';
|
|
9182
9182
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9183
9183
|
}
|
|
9184
9184
|
}
|
|
9185
|
-
protoOf(DefinitionList).
|
|
9185
|
+
protoOf(DefinitionList).v2h = function (t, width) {
|
|
9186
9186
|
var termMeasurement = maxWidthRange(_get_keys__d97k5z(this), t, width);
|
|
9187
9187
|
var descMeasurement = measureDescriptions(this, t, width);
|
|
9188
9188
|
var tmp;
|
|
9189
|
-
if (this.
|
|
9190
|
-
tmp = termMeasurement.
|
|
9189
|
+
if (this.b2p_1) {
|
|
9190
|
+
tmp = termMeasurement.m2i(descMeasurement).l2i(this.c2p_1);
|
|
9191
9191
|
} else {
|
|
9192
9192
|
// Inline function 'com.github.ajalt.mordant.rendering.maxWidthRange' call
|
|
9193
9193
|
var max = 0;
|
|
@@ -9205,18 +9205,18 @@
|
|
|
9205
9205
|
var range = tmp_0;
|
|
9206
9206
|
var tmp0 = max;
|
|
9207
9207
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9208
|
-
var b = range.
|
|
9208
|
+
var b = range.k2i_1;
|
|
9209
9209
|
max = Math.max(tmp0, b);
|
|
9210
9210
|
var tmp2 = min;
|
|
9211
9211
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9212
|
-
var b_0 = range.
|
|
9212
|
+
var b_0 = range.j2i_1;
|
|
9213
9213
|
min = Math.max(tmp2, b_0);
|
|
9214
9214
|
}
|
|
9215
9215
|
tmp = new WidthRange(min + 0 | 0, max + 0 | 0);
|
|
9216
9216
|
}
|
|
9217
9217
|
return tmp;
|
|
9218
9218
|
};
|
|
9219
|
-
protoOf(DefinitionList).
|
|
9219
|
+
protoOf(DefinitionList).w2h = function (t, width) {
|
|
9220
9220
|
if (width === 0)
|
|
9221
9221
|
return get_EMPTY_LINES();
|
|
9222
9222
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -9227,12 +9227,12 @@
|
|
|
9227
9227
|
while (_iterator__ex2g4s.q()) {
|
|
9228
9228
|
var item = _iterator__ex2g4s.r();
|
|
9229
9229
|
// Inline function 'com.github.ajalt.mordant.widgets.DefinitionList.render.<anonymous>' call
|
|
9230
|
-
var tmp$ret$0 = item.
|
|
9230
|
+
var tmp$ret$0 = item.v2h(t, width);
|
|
9231
9231
|
destination.e(tmp$ret$0);
|
|
9232
9232
|
}
|
|
9233
9233
|
var termMeasurements = destination;
|
|
9234
9234
|
var maxInlineTermWidth = numberToInt(width / 2.5);
|
|
9235
|
-
var maxDescWidth = measureDescriptions(this, t, width).
|
|
9235
|
+
var maxDescWidth = measureDescriptions(this, t, width).k2i_1;
|
|
9236
9236
|
// Inline function 'kotlin.collections.filter' call
|
|
9237
9237
|
// Inline function 'kotlin.collections.filterTo' call
|
|
9238
9238
|
var destination_0 = ArrayList_init_$Create$();
|
|
@@ -9240,7 +9240,7 @@
|
|
|
9240
9240
|
while (_iterator__ex2g4s_0.q()) {
|
|
9241
9241
|
var element = _iterator__ex2g4s_0.r();
|
|
9242
9242
|
// Inline function 'com.github.ajalt.mordant.widgets.DefinitionList.render.<anonymous>' call
|
|
9243
|
-
if (element.
|
|
9243
|
+
if (element.k2i_1 <= maxInlineTermWidth || (this.b2p_1 && ((element.k2i_1 + this.c2p_1 | 0) + maxDescWidth | 0) <= width)) {
|
|
9244
9244
|
destination_0.e(element);
|
|
9245
9245
|
}
|
|
9246
9246
|
}
|
|
@@ -9260,18 +9260,18 @@
|
|
|
9260
9260
|
var range = tmp;
|
|
9261
9261
|
var tmp0 = max;
|
|
9262
9262
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9263
|
-
var b = range.
|
|
9263
|
+
var b = range.k2i_1;
|
|
9264
9264
|
max = Math.max(tmp0, b);
|
|
9265
9265
|
var tmp2 = min;
|
|
9266
9266
|
// Inline function 'kotlin.comparisons.maxOf' call
|
|
9267
|
-
var b_0 = range.
|
|
9267
|
+
var b_0 = range.j2i_1;
|
|
9268
9268
|
min = Math.max(tmp2, b_0);
|
|
9269
9269
|
}
|
|
9270
|
-
var termWidth = (new WidthRange(min + 0 | 0, max + 0 | 0)).
|
|
9271
|
-
var descOffset = coerceAtLeast(termWidth + this.
|
|
9270
|
+
var termWidth = (new WidthRange(min + 0 | 0, max + 0 | 0)).k2i_1;
|
|
9271
|
+
var descOffset = coerceAtLeast(termWidth + this.c2p_1 | 0, 4);
|
|
9272
9272
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
9273
9273
|
var lines = ArrayList_init_$Create$();
|
|
9274
|
-
var iterator = this.
|
|
9274
|
+
var iterator = this.a2p_1.p();
|
|
9275
9275
|
var index = 0;
|
|
9276
9276
|
$l$loop_1: while (iterator.q()) {
|
|
9277
9277
|
var i = index;
|
|
@@ -9279,7 +9279,7 @@
|
|
|
9279
9279
|
var entry = iterator.r();
|
|
9280
9280
|
if (i > 0) {
|
|
9281
9281
|
// Inline function 'kotlin.repeat' call
|
|
9282
|
-
var times = this.
|
|
9282
|
+
var times = this.d2p_1;
|
|
9283
9283
|
var inductionVariable = 0;
|
|
9284
9284
|
if (inductionVariable < times)
|
|
9285
9285
|
do {
|
|
@@ -9294,12 +9294,12 @@
|
|
|
9294
9294
|
}
|
|
9295
9295
|
var term = entry.qa();
|
|
9296
9296
|
var desc = entry.ra();
|
|
9297
|
-
if (!this.
|
|
9297
|
+
if (!this.b2p_1) {
|
|
9298
9298
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9299
|
-
var elements = term.
|
|
9299
|
+
var elements = term.w2h(t, width).v2d_1;
|
|
9300
9300
|
addAll(lines, elements);
|
|
9301
9301
|
// Inline function 'kotlin.repeat' call
|
|
9302
|
-
var times_0 = this.
|
|
9302
|
+
var times_0 = this.c2p_1;
|
|
9303
9303
|
var inductionVariable_0 = 0;
|
|
9304
9304
|
if (inductionVariable_0 < times_0)
|
|
9305
9305
|
do {
|
|
@@ -9312,21 +9312,21 @@
|
|
|
9312
9312
|
}
|
|
9313
9313
|
while (inductionVariable_0 < times_0);
|
|
9314
9314
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9315
|
-
var elements_0 = desc.
|
|
9315
|
+
var elements_0 = desc.w2h(t, width).v2d_1;
|
|
9316
9316
|
addAll(lines, elements_0);
|
|
9317
9317
|
continue $l$loop_1;
|
|
9318
9318
|
}
|
|
9319
|
-
if (termMeasurements.t(i).
|
|
9319
|
+
if (termMeasurements.t(i).k2i_1 > termWidth) {
|
|
9320
9320
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9321
|
-
var elements_1 = term.
|
|
9321
|
+
var elements_1 = term.w2h(t, width).v2d_1;
|
|
9322
9322
|
addAll(lines, elements_1);
|
|
9323
9323
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9324
|
-
var elements_2 = withPadding(desc, VOID, DefinitionList$render$lambda(descOffset)).
|
|
9324
|
+
var elements_2 = withPadding(desc, VOID, DefinitionList$render$lambda(descOffset)).w2h(t, width).v2d_1;
|
|
9325
9325
|
addAll(lines, elements_2);
|
|
9326
9326
|
continue $l$loop_1;
|
|
9327
9327
|
}
|
|
9328
|
-
var termLines = term.
|
|
9329
|
-
var descLines = desc.
|
|
9328
|
+
var termLines = term.w2h(t, termWidth).v2d_1;
|
|
9329
|
+
var descLines = desc.w2h(t, coerceAtLeast((width - termWidth | 0) - this.c2p_1 | 0, 0)).v2d_1;
|
|
9330
9330
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9331
9331
|
var _iterator__ex2g4s_2 = zip(termLines, descLines).p();
|
|
9332
9332
|
while (_iterator__ex2g4s_2.q()) {
|
|
@@ -9334,7 +9334,7 @@
|
|
|
9334
9334
|
// Inline function 'com.github.ajalt.mordant.widgets.DefinitionList.render.<anonymous>' call
|
|
9335
9335
|
var t_0 = item_0.qa();
|
|
9336
9336
|
var d = item_0.ra();
|
|
9337
|
-
var tmp$ret$11 = flatLine([t_0, Companion_instance_0.
|
|
9337
|
+
var tmp$ret$11 = flatLine([t_0, Companion_instance_0.c2e((this.c2p_1 + termWidth | 0) - get_lineWidth(t_0) | 0), d]);
|
|
9338
9338
|
lines.e(tmp$ret$11);
|
|
9339
9339
|
}
|
|
9340
9340
|
if (termLines.s() > descLines.s()) {
|
|
@@ -9342,7 +9342,7 @@
|
|
|
9342
9342
|
var elements_3 = drop_0(termLines, descLines.s());
|
|
9343
9343
|
addAll(lines, elements_3);
|
|
9344
9344
|
} else if (descLines.s() > termLines.s()) {
|
|
9345
|
-
var paddingLeft = descOffset > 0 ? listOf_0(Companion_instance_0.
|
|
9345
|
+
var paddingLeft = descOffset > 0 ? listOf_0(Companion_instance_0.c2e(descOffset)) : get_EMPTY_LINE();
|
|
9346
9346
|
// Inline function 'kotlin.collections.mapTo' call
|
|
9347
9347
|
var _iterator__ex2g4s_3 = drop_0(descLines, termLines.s()).p();
|
|
9348
9348
|
while (_iterator__ex2g4s_3.q()) {
|
|
@@ -9367,10 +9367,10 @@
|
|
|
9367
9367
|
};
|
|
9368
9368
|
function EmptyWidget() {
|
|
9369
9369
|
}
|
|
9370
|
-
protoOf(EmptyWidget).
|
|
9370
|
+
protoOf(EmptyWidget).v2h = function (t, width) {
|
|
9371
9371
|
return new WidthRange(0, 0);
|
|
9372
9372
|
};
|
|
9373
|
-
protoOf(EmptyWidget).
|
|
9373
|
+
protoOf(EmptyWidget).w2h = function (t, width) {
|
|
9374
9374
|
return get_EMPTY_LINES();
|
|
9375
9375
|
};
|
|
9376
9376
|
var EmptyWidget_instance;
|
|
@@ -9391,23 +9391,23 @@
|
|
|
9391
9391
|
return Companion_instance_4;
|
|
9392
9392
|
}
|
|
9393
9393
|
function Builder(top, right, bottom, left) {
|
|
9394
|
-
this.
|
|
9395
|
-
this.
|
|
9396
|
-
this.
|
|
9397
|
-
this.
|
|
9394
|
+
this.y2m_1 = top;
|
|
9395
|
+
this.z2m_1 = right;
|
|
9396
|
+
this.a2n_1 = bottom;
|
|
9397
|
+
this.b2n_1 = left;
|
|
9398
9398
|
}
|
|
9399
|
-
protoOf(Builder).
|
|
9400
|
-
this.
|
|
9401
|
-
this.
|
|
9399
|
+
protoOf(Builder).c2n = function (value) {
|
|
9400
|
+
this.b2n_1 = value;
|
|
9401
|
+
this.z2m_1 = value;
|
|
9402
9402
|
};
|
|
9403
9403
|
protoOf(Builder).toString = function () {
|
|
9404
|
-
return 'Builder(top=' + this.
|
|
9404
|
+
return 'Builder(top=' + this.y2m_1 + ', right=' + this.z2m_1 + ', bottom=' + this.a2n_1 + ', left=' + this.b2n_1 + ')';
|
|
9405
9405
|
};
|
|
9406
9406
|
protoOf(Builder).hashCode = function () {
|
|
9407
|
-
var result = this.
|
|
9408
|
-
result = imul(result, 31) + this.
|
|
9409
|
-
result = imul(result, 31) + this.
|
|
9410
|
-
result = imul(result, 31) + this.
|
|
9407
|
+
var result = this.y2m_1;
|
|
9408
|
+
result = imul(result, 31) + this.z2m_1 | 0;
|
|
9409
|
+
result = imul(result, 31) + this.a2n_1 | 0;
|
|
9410
|
+
result = imul(result, 31) + this.b2n_1 | 0;
|
|
9411
9411
|
return result;
|
|
9412
9412
|
};
|
|
9413
9413
|
protoOf(Builder).equals = function (other) {
|
|
@@ -9416,57 +9416,57 @@
|
|
|
9416
9416
|
if (!(other instanceof Builder))
|
|
9417
9417
|
return false;
|
|
9418
9418
|
var tmp0_other_with_cast = other instanceof Builder ? other : THROW_CCE();
|
|
9419
|
-
if (!(this.
|
|
9419
|
+
if (!(this.y2m_1 === tmp0_other_with_cast.y2m_1))
|
|
9420
9420
|
return false;
|
|
9421
|
-
if (!(this.
|
|
9421
|
+
if (!(this.z2m_1 === tmp0_other_with_cast.z2m_1))
|
|
9422
9422
|
return false;
|
|
9423
|
-
if (!(this.
|
|
9423
|
+
if (!(this.a2n_1 === tmp0_other_with_cast.a2n_1))
|
|
9424
9424
|
return false;
|
|
9425
|
-
if (!(this.
|
|
9425
|
+
if (!(this.b2n_1 === tmp0_other_with_cast.b2n_1))
|
|
9426
9426
|
return false;
|
|
9427
9427
|
return true;
|
|
9428
9428
|
};
|
|
9429
9429
|
function Padding(top, right, bottom, left) {
|
|
9430
|
-
this.
|
|
9431
|
-
this.
|
|
9432
|
-
this.
|
|
9433
|
-
this.
|
|
9430
|
+
this.d2n_1 = top;
|
|
9431
|
+
this.e2n_1 = right;
|
|
9432
|
+
this.f2n_1 = bottom;
|
|
9433
|
+
this.g2n_1 = left;
|
|
9434
9434
|
// Inline function 'kotlin.require' call
|
|
9435
|
-
if (!(this.
|
|
9435
|
+
if (!(this.d2n_1 >= 0)) {
|
|
9436
9436
|
// Inline function 'com.github.ajalt.mordant.widgets.Padding.<anonymous>' call
|
|
9437
9437
|
var message = 'Invalid negative top padding';
|
|
9438
9438
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9439
9439
|
}
|
|
9440
9440
|
// Inline function 'kotlin.require' call
|
|
9441
|
-
if (!(this.
|
|
9441
|
+
if (!(this.e2n_1 >= 0)) {
|
|
9442
9442
|
// Inline function 'com.github.ajalt.mordant.widgets.Padding.<anonymous>' call
|
|
9443
9443
|
var message_0 = 'Invalid negative right padding';
|
|
9444
9444
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9445
9445
|
}
|
|
9446
9446
|
// Inline function 'kotlin.require' call
|
|
9447
|
-
if (!(this.
|
|
9447
|
+
if (!(this.f2n_1 >= 0)) {
|
|
9448
9448
|
// Inline function 'com.github.ajalt.mordant.widgets.Padding.<anonymous>' call
|
|
9449
9449
|
var message_1 = 'Invalid negative bottom padding';
|
|
9450
9450
|
throw IllegalArgumentException_init_$Create$(toString(message_1));
|
|
9451
9451
|
}
|
|
9452
9452
|
// Inline function 'kotlin.require' call
|
|
9453
|
-
if (!(this.
|
|
9453
|
+
if (!(this.g2n_1 >= 0)) {
|
|
9454
9454
|
// Inline function 'com.github.ajalt.mordant.widgets.Padding.<anonymous>' call
|
|
9455
9455
|
var message_2 = 'Invalid negative left padding';
|
|
9456
9456
|
throw IllegalArgumentException_init_$Create$(toString(message_2));
|
|
9457
9457
|
}
|
|
9458
9458
|
}
|
|
9459
|
-
protoOf(Padding).
|
|
9460
|
-
return this.
|
|
9459
|
+
protoOf(Padding).e2p = function () {
|
|
9460
|
+
return this.d2n_1 === 0 && this.e2n_1 === 0 && this.f2n_1 === 0 && this.g2n_1 === 0;
|
|
9461
9461
|
};
|
|
9462
9462
|
protoOf(Padding).toString = function () {
|
|
9463
|
-
return 'Padding(top=' + this.
|
|
9463
|
+
return 'Padding(top=' + this.d2n_1 + ', right=' + this.e2n_1 + ', bottom=' + this.f2n_1 + ', left=' + this.g2n_1 + ')';
|
|
9464
9464
|
};
|
|
9465
9465
|
protoOf(Padding).hashCode = function () {
|
|
9466
|
-
var result = this.
|
|
9467
|
-
result = imul(result, 31) + this.
|
|
9468
|
-
result = imul(result, 31) + this.
|
|
9469
|
-
result = imul(result, 31) + this.
|
|
9466
|
+
var result = this.d2n_1;
|
|
9467
|
+
result = imul(result, 31) + this.e2n_1 | 0;
|
|
9468
|
+
result = imul(result, 31) + this.f2n_1 | 0;
|
|
9469
|
+
result = imul(result, 31) + this.g2n_1 | 0;
|
|
9470
9470
|
return result;
|
|
9471
9471
|
};
|
|
9472
9472
|
protoOf(Padding).equals = function (other) {
|
|
@@ -9475,13 +9475,13 @@
|
|
|
9475
9475
|
if (!(other instanceof Padding))
|
|
9476
9476
|
return false;
|
|
9477
9477
|
var tmp0_other_with_cast = other instanceof Padding ? other : THROW_CCE();
|
|
9478
|
-
if (!(this.
|
|
9478
|
+
if (!(this.d2n_1 === tmp0_other_with_cast.d2n_1))
|
|
9479
9479
|
return false;
|
|
9480
|
-
if (!(this.
|
|
9480
|
+
if (!(this.e2n_1 === tmp0_other_with_cast.e2n_1))
|
|
9481
9481
|
return false;
|
|
9482
|
-
if (!(this.
|
|
9482
|
+
if (!(this.f2n_1 === tmp0_other_with_cast.f2n_1))
|
|
9483
9483
|
return false;
|
|
9484
|
-
if (!(this.
|
|
9484
|
+
if (!(this.g2n_1 === tmp0_other_with_cast.g2n_1))
|
|
9485
9485
|
return false;
|
|
9486
9486
|
return true;
|
|
9487
9487
|
};
|
|
@@ -9493,18 +9493,18 @@
|
|
|
9493
9493
|
var this_0 = new Builder(0, 0, 0, 0);
|
|
9494
9494
|
padding(this_0);
|
|
9495
9495
|
var b = this_0;
|
|
9496
|
-
var tmp$ret$1 = new Padding(b.
|
|
9497
|
-
return tmp.
|
|
9496
|
+
var tmp$ret$1 = new Padding(b.y2m_1, b.z2m_1, b.a2n_1, b.b2n_1);
|
|
9497
|
+
return tmp.f2p(_this__u8e3s4, tmp$ret$1, padEmptyLines);
|
|
9498
9498
|
}
|
|
9499
9499
|
function Companion_5() {
|
|
9500
9500
|
}
|
|
9501
|
-
protoOf(Companion_5).
|
|
9501
|
+
protoOf(Companion_5).f2p = function (content, padding, padEmptyLines) {
|
|
9502
9502
|
var tmp;
|
|
9503
|
-
if (padding.
|
|
9503
|
+
if (padding.e2p()) {
|
|
9504
9504
|
tmp = content;
|
|
9505
9505
|
} else {
|
|
9506
9506
|
if (content instanceof Padded) {
|
|
9507
|
-
tmp = new Padded(content.
|
|
9507
|
+
tmp = new Padded(content.g2p_1, plus_2(content.h2p_1, padding), padEmptyLines);
|
|
9508
9508
|
} else {
|
|
9509
9509
|
tmp = new Padded(content, padding, padEmptyLines);
|
|
9510
9510
|
}
|
|
@@ -9516,23 +9516,23 @@
|
|
|
9516
9516
|
return Companion_instance_5;
|
|
9517
9517
|
}
|
|
9518
9518
|
function _get_paddingWidth__8vycom($this) {
|
|
9519
|
-
return $this.
|
|
9519
|
+
return $this.h2p_1.g2n_1 + $this.h2p_1.e2n_1 | 0;
|
|
9520
9520
|
}
|
|
9521
9521
|
function Padded(content, padding, padEmptyLines) {
|
|
9522
|
-
this.
|
|
9523
|
-
this.
|
|
9524
|
-
this.
|
|
9525
|
-
}
|
|
9526
|
-
protoOf(Padded).
|
|
9527
|
-
return this.
|
|
9528
|
-
};
|
|
9529
|
-
protoOf(Padded).
|
|
9530
|
-
var lines = this.
|
|
9531
|
-
var output = ArrayList_init_$Create$_0((this.
|
|
9532
|
-
var left = this.
|
|
9533
|
-
var right = this.
|
|
9522
|
+
this.g2p_1 = content;
|
|
9523
|
+
this.h2p_1 = padding;
|
|
9524
|
+
this.i2p_1 = padEmptyLines;
|
|
9525
|
+
}
|
|
9526
|
+
protoOf(Padded).v2h = function (t, width) {
|
|
9527
|
+
return this.g2p_1.v2h(t, width - _get_paddingWidth__8vycom(this) | 0).l2i(_get_paddingWidth__8vycom(this));
|
|
9528
|
+
};
|
|
9529
|
+
protoOf(Padded).w2h = function (t, width) {
|
|
9530
|
+
var lines = this.g2p_1.w2h(t, coerceAtLeast(width - _get_paddingWidth__8vycom(this) | 0, 0));
|
|
9531
|
+
var output = ArrayList_init_$Create$_0((this.h2p_1.d2n_1 + lines.y2f() | 0) + this.h2p_1.f2n_1 | 0);
|
|
9532
|
+
var left = this.h2p_1.g2n_1 > 0 ? listOf_0(Companion_instance_0.c2e(this.h2p_1.g2n_1)) : get_EMPTY_LINE();
|
|
9533
|
+
var right = this.h2p_1.e2n_1 > 0 ? listOf_0(Companion_instance_0.c2e(this.h2p_1.e2n_1)) : get_EMPTY_LINE();
|
|
9534
9534
|
// Inline function 'kotlin.repeat' call
|
|
9535
|
-
var times = this.
|
|
9535
|
+
var times = this.h2p_1.d2n_1;
|
|
9536
9536
|
var inductionVariable = 0;
|
|
9537
9537
|
if (inductionVariable < times)
|
|
9538
9538
|
do {
|
|
@@ -9542,15 +9542,15 @@
|
|
|
9542
9542
|
output.e(get_EMPTY_LINE());
|
|
9543
9543
|
}
|
|
9544
9544
|
while (inductionVariable < times);
|
|
9545
|
-
var _iterator__ex2g4s = lines.
|
|
9545
|
+
var _iterator__ex2g4s = lines.v2d_1.p();
|
|
9546
9546
|
while (_iterator__ex2g4s.q()) {
|
|
9547
9547
|
var line = _iterator__ex2g4s.r();
|
|
9548
9548
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9549
|
-
var element = !this.
|
|
9549
|
+
var element = !this.i2p_1 && line.m() ? get_EMPTY_LINE() : flatLine([left, line, right]);
|
|
9550
9550
|
output.e(element);
|
|
9551
9551
|
}
|
|
9552
9552
|
// Inline function 'kotlin.repeat' call
|
|
9553
|
-
var times_0 = this.
|
|
9553
|
+
var times_0 = this.h2p_1.f2n_1;
|
|
9554
9554
|
var inductionVariable_0 = 0;
|
|
9555
9555
|
if (inductionVariable_0 < times_0)
|
|
9556
9556
|
do {
|
|
@@ -9563,11 +9563,11 @@
|
|
|
9563
9563
|
return new Lines(output);
|
|
9564
9564
|
};
|
|
9565
9565
|
function plus_2(_this__u8e3s4, other) {
|
|
9566
|
-
return new Padding(_this__u8e3s4.
|
|
9566
|
+
return new Padding(_this__u8e3s4.d2n_1 + other.d2n_1 | 0, _this__u8e3s4.e2n_1 + other.e2n_1 | 0, _this__u8e3s4.f2n_1 + other.f2n_1 | 0, _this__u8e3s4.g2n_1 + other.g2n_1 | 0);
|
|
9567
9567
|
}
|
|
9568
9568
|
function withPadding_0(_this__u8e3s4, padding, padEmptyLines) {
|
|
9569
9569
|
padEmptyLines = padEmptyLines === VOID ? true : padEmptyLines;
|
|
9570
|
-
return Companion_instance_5.
|
|
9570
|
+
return Companion_instance_5.f2p(_this__u8e3s4, padding, padEmptyLines);
|
|
9571
9571
|
}
|
|
9572
9572
|
function Text_init_$Init$(text, whitespace, align, overflowWrap, width, tabWidth, $this) {
|
|
9573
9573
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
@@ -9591,48 +9591,48 @@
|
|
|
9591
9591
|
var endStyle = {_v: get_DEFAULT_STYLE()};
|
|
9592
9592
|
var width = {_v: 0};
|
|
9593
9593
|
var lastPieceWasWhitespace = {_v: true};
|
|
9594
|
-
var _iterator__ex2g4s = $this.
|
|
9594
|
+
var _iterator__ex2g4s = $this.j2p_1.v2d_1.p();
|
|
9595
9595
|
while (_iterator__ex2g4s.q()) {
|
|
9596
9596
|
var oldLine = _iterator__ex2g4s.r();
|
|
9597
9597
|
var lastNonWhitespace_0 = lastNonWhitespace($this, oldLine, align);
|
|
9598
|
-
endStyle._v = oldLine.
|
|
9598
|
+
endStyle._v = oldLine.x2d_1;
|
|
9599
9599
|
var iterator = oldLine.p();
|
|
9600
9600
|
var index = 0;
|
|
9601
9601
|
loop: while (iterator.q()) {
|
|
9602
9602
|
var i = index;
|
|
9603
9603
|
index = index + 1 | 0;
|
|
9604
9604
|
var piece = iterator.r();
|
|
9605
|
-
if (piece.
|
|
9605
|
+
if (piece.y2d_1 === '\x85' || piece.y2d_1 === '\u2028') {
|
|
9606
9606
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9607
9607
|
continue loop;
|
|
9608
9608
|
}
|
|
9609
|
-
if (($this.
|
|
9609
|
+
if (($this.k2p_1.u2h_1 || align.equals(TextAlign_JUSTIFY_getInstance())) && (0 <= lastNonWhitespace_0 ? lastNonWhitespace_0 < i : false)) {
|
|
9610
9610
|
continue loop;
|
|
9611
9611
|
}
|
|
9612
9612
|
if (i === 0 && !lastPieceWasWhitespace._v) {
|
|
9613
|
-
var tmp152_subject = last(line._v).
|
|
9613
|
+
var tmp152_subject = last(line._v).z2d_1;
|
|
9614
9614
|
var tmp;
|
|
9615
9615
|
var tmp153_safe_receiver = firstOrNull(oldLine);
|
|
9616
|
-
if (equals(tmp152_subject, tmp153_safe_receiver == null ? null : tmp153_safe_receiver.
|
|
9617
|
-
tmp = last(line._v).
|
|
9616
|
+
if (equals(tmp152_subject, tmp153_safe_receiver == null ? null : tmp153_safe_receiver.z2d_1)) {
|
|
9617
|
+
tmp = last(line._v).z2d_1;
|
|
9618
9618
|
} else {
|
|
9619
9619
|
tmp = get_DEFAULT_STYLE();
|
|
9620
9620
|
}
|
|
9621
9621
|
var style = tmp;
|
|
9622
|
-
line._v.e(Companion_instance_0.
|
|
9622
|
+
line._v.e(Companion_instance_0.i2e(' ', style));
|
|
9623
9623
|
lastPieceWasWhitespace._v = true;
|
|
9624
9624
|
width._v = width._v + 1 | 0;
|
|
9625
9625
|
}
|
|
9626
|
-
var pieceIsWhitespace = piece.
|
|
9627
|
-
if (pieceIsWhitespace && lastPieceWasWhitespace._v && $this.
|
|
9626
|
+
var pieceIsWhitespace = piece.j2g();
|
|
9627
|
+
if (pieceIsWhitespace && lastPieceWasWhitespace._v && $this.k2p_1.s2h_1)
|
|
9628
9628
|
continue loop;
|
|
9629
9629
|
var tmp_0;
|
|
9630
|
-
if (pieceIsWhitespace && $this.
|
|
9631
|
-
tmp_0 = Companion_instance_0.
|
|
9632
|
-
} else if (piece.
|
|
9630
|
+
if (pieceIsWhitespace && $this.k2p_1.s2h_1) {
|
|
9631
|
+
tmp_0 = Companion_instance_0.e2g(1, piece.z2d_1);
|
|
9632
|
+
} else if (piece.k2g()) {
|
|
9633
9633
|
var tmp_1;
|
|
9634
9634
|
if (tabWidth > 0) {
|
|
9635
|
-
tmp_1 = Companion_instance_0.
|
|
9635
|
+
tmp_1 = Companion_instance_0.e2g(tabWidth - (width._v % tabWidth | 0) | 0, piece.z2d_1);
|
|
9636
9636
|
} else {
|
|
9637
9637
|
continue loop;
|
|
9638
9638
|
}
|
|
@@ -9641,35 +9641,35 @@
|
|
|
9641
9641
|
tmp_0 = piece;
|
|
9642
9642
|
}
|
|
9643
9643
|
var span = tmp_0;
|
|
9644
|
-
var cellWidth = span.
|
|
9645
|
-
if ($this.
|
|
9644
|
+
var cellWidth = span.d2g();
|
|
9645
|
+
if ($this.k2p_1.t2h_1 && width._v > 0 && (width._v + cellWidth | 0) > wrapWidth) {
|
|
9646
9646
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9647
9647
|
if (pieceIsWhitespace)
|
|
9648
9648
|
continue loop;
|
|
9649
9649
|
}
|
|
9650
|
-
if ($this.
|
|
9650
|
+
if ($this.k2p_1.t2h_1 && cellWidth > wrapWidth) {
|
|
9651
9651
|
switch (overflowWrap.q2_1) {
|
|
9652
9652
|
case 0:
|
|
9653
9653
|
break;
|
|
9654
9654
|
case 2:
|
|
9655
|
-
span = Companion_instance_0.
|
|
9655
|
+
span = Companion_instance_0.i2e(take(span.y2d_1, wrapWidth), span.z2d_1);
|
|
9656
9656
|
break;
|
|
9657
9657
|
case 3:
|
|
9658
|
-
span = Companion_instance_0.
|
|
9658
|
+
span = Companion_instance_0.i2e(take(span.y2d_1, wrapWidth - 1 | 0) + '\u2026', span.z2d_1);
|
|
9659
9659
|
break;
|
|
9660
9660
|
case 1:
|
|
9661
9661
|
// Inline function 'kotlin.collections.forEach' call
|
|
9662
9662
|
|
|
9663
|
-
var _iterator__ex2g4s_0 = chunked(span.
|
|
9663
|
+
var _iterator__ex2g4s_0 = chunked(span.y2d_1, wrapWidth).p();
|
|
9664
9664
|
while (_iterator__ex2g4s_0.q()) {
|
|
9665
9665
|
var element = _iterator__ex2g4s_0.r();
|
|
9666
9666
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.wrap.<anonymous>' call
|
|
9667
9667
|
if (element.length === wrapWidth) {
|
|
9668
9668
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9669
|
-
var element_0 = Line_init_$Create$(listOf_0(Companion_instance_0.
|
|
9669
|
+
var element_0 = Line_init_$Create$(listOf_0(Companion_instance_0.i2e(element, span.z2d_1)));
|
|
9670
9670
|
lines.e(element_0);
|
|
9671
9671
|
} else {
|
|
9672
|
-
span = Companion_instance_0.
|
|
9672
|
+
span = Companion_instance_0.i2e(element, span.z2d_1);
|
|
9673
9673
|
}
|
|
9674
9674
|
}
|
|
9675
9675
|
|
|
@@ -9679,11 +9679,11 @@
|
|
|
9679
9679
|
break;
|
|
9680
9680
|
}
|
|
9681
9681
|
}
|
|
9682
|
-
width._v = width._v + span.
|
|
9682
|
+
width._v = width._v + span.d2g() | 0;
|
|
9683
9683
|
line._v.e(span);
|
|
9684
9684
|
lastPieceWasWhitespace._v = pieceIsWhitespace;
|
|
9685
9685
|
}
|
|
9686
|
-
if (!$this.
|
|
9686
|
+
if (!$this.k2p_1.r2h_1) {
|
|
9687
9687
|
wrap$breakLine($this, align, line, width, wrapWidth, endStyle, lines, lastPieceWasWhitespace);
|
|
9688
9688
|
}
|
|
9689
9689
|
}
|
|
@@ -9695,14 +9695,14 @@
|
|
|
9695
9695
|
}
|
|
9696
9696
|
function lastNonWhitespace($this, line, align) {
|
|
9697
9697
|
var tmp;
|
|
9698
|
-
if ($this.
|
|
9698
|
+
if ($this.k2p_1.u2h_1 || align.equals(TextAlign_JUSTIFY_getInstance())) {
|
|
9699
9699
|
var tmp$ret$1;
|
|
9700
9700
|
$l$block: {
|
|
9701
9701
|
// Inline function 'kotlin.collections.indexOfLast' call
|
|
9702
9702
|
var iterator = line.v(line.s());
|
|
9703
9703
|
while (iterator.o4()) {
|
|
9704
9704
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.lastNonWhitespace.<anonymous>' call
|
|
9705
|
-
if (!iterator.q4().
|
|
9705
|
+
if (!iterator.q4().j2g()) {
|
|
9706
9706
|
tmp$ret$1 = iterator.p4();
|
|
9707
9707
|
break $l$block;
|
|
9708
9708
|
}
|
|
@@ -9740,14 +9740,14 @@
|
|
|
9740
9740
|
function alignLineLeft($this, line, extraWidth, endStyle) {
|
|
9741
9741
|
var tmp = Companion_instance_0;
|
|
9742
9742
|
var tmp156_safe_receiver = lastOrNull(line);
|
|
9743
|
-
var tmp0_elvis_lhs = tmp156_safe_receiver == null ? null : tmp156_safe_receiver.
|
|
9744
|
-
line.e(tmp.
|
|
9743
|
+
var tmp0_elvis_lhs = tmp156_safe_receiver == null ? null : tmp156_safe_receiver.z2d_1;
|
|
9744
|
+
line.e(tmp.e2g(extraWidth, tmp0_elvis_lhs == null ? endStyle : tmp0_elvis_lhs));
|
|
9745
9745
|
}
|
|
9746
9746
|
function alignLineRight($this, line, extraWidth, endStyle) {
|
|
9747
9747
|
var tmp = Companion_instance_0;
|
|
9748
9748
|
var tmp157_safe_receiver = firstOrNull(line);
|
|
9749
|
-
var tmp0_elvis_lhs = tmp157_safe_receiver == null ? null : tmp157_safe_receiver.
|
|
9750
|
-
line.j2(0, tmp.
|
|
9749
|
+
var tmp0_elvis_lhs = tmp157_safe_receiver == null ? null : tmp157_safe_receiver.z2d_1;
|
|
9750
|
+
line.j2(0, tmp.e2g(extraWidth, tmp0_elvis_lhs == null ? endStyle : tmp0_elvis_lhs));
|
|
9751
9751
|
}
|
|
9752
9752
|
function alignLineCenter($this, line, extraWidth, endStyle) {
|
|
9753
9753
|
var halfExtra = extraWidth / 2 | 0;
|
|
@@ -9775,7 +9775,7 @@
|
|
|
9775
9775
|
while (_iterator__ex2g4s.q()) {
|
|
9776
9776
|
var element = _iterator__ex2g4s.r();
|
|
9777
9777
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.justifyLine.<anonymous>' call
|
|
9778
|
-
if (element.
|
|
9778
|
+
if (element.j2g()) {
|
|
9779
9779
|
count = count + 1 | 0;
|
|
9780
9780
|
checkCountOverflow(count);
|
|
9781
9781
|
}
|
|
@@ -9795,7 +9795,7 @@
|
|
|
9795
9795
|
var span = _iterator__ex2g4s_0.r();
|
|
9796
9796
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9797
9797
|
justifiedLine.e(span);
|
|
9798
|
-
if (!span.
|
|
9798
|
+
if (!span.j2g())
|
|
9799
9799
|
continue $l$loop_0;
|
|
9800
9800
|
var tmp_0;
|
|
9801
9801
|
var _unary__edvuaz = skipRemainder;
|
|
@@ -9808,13 +9808,13 @@
|
|
|
9808
9808
|
if (tmp_0)
|
|
9809
9809
|
continue $l$loop_0;
|
|
9810
9810
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9811
|
-
var element_0 = Companion_instance_0.
|
|
9811
|
+
var element_0 = Companion_instance_0.e2g(spaceSize + (skipRemainder < 0 ? 1 : 0) | 0, span.z2d_1);
|
|
9812
9812
|
justifiedLine.e(element_0);
|
|
9813
9813
|
}
|
|
9814
9814
|
return justifiedLine;
|
|
9815
9815
|
}
|
|
9816
9816
|
function wrap$breakLine(this$0, $align, line, width, $wrapWidth, endStyle, lines, lastPieceWasWhitespace) {
|
|
9817
|
-
if (this$0.
|
|
9817
|
+
if (this$0.k2p_1.u2h_1 || $align.equals(TextAlign_JUSTIFY_getInstance())) {
|
|
9818
9818
|
var lastNonWhitespace_0 = lastNonWhitespace(this$0, line._v, $align);
|
|
9819
9819
|
if (lastNonWhitespace_0 >= 0) {
|
|
9820
9820
|
// Inline function 'kotlin.repeat' call
|
|
@@ -9835,7 +9835,7 @@
|
|
|
9835
9835
|
}
|
|
9836
9836
|
var tmp = line._v;
|
|
9837
9837
|
var tmp151_safe_receiver = lastOrNull(line._v);
|
|
9838
|
-
var tmp0_elvis_lhs = tmp151_safe_receiver == null ? null : tmp151_safe_receiver.
|
|
9838
|
+
var tmp0_elvis_lhs = tmp151_safe_receiver == null ? null : tmp151_safe_receiver.z2d_1;
|
|
9839
9839
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
9840
9840
|
var element = new Line(tmp, tmp0_elvis_lhs == null ? endStyle._v : tmp0_elvis_lhs);
|
|
9841
9841
|
lines.e(element);
|
|
@@ -9845,7 +9845,7 @@
|
|
|
9845
9845
|
lastPieceWasWhitespace._v = true;
|
|
9846
9846
|
}
|
|
9847
9847
|
function Text$toString$lambda(it) {
|
|
9848
|
-
return it.
|
|
9848
|
+
return it.y2d_1;
|
|
9849
9849
|
}
|
|
9850
9850
|
function Text(lines, whitespace, align, overflowWrap, width, tabWidth) {
|
|
9851
9851
|
whitespace = whitespace === VOID ? Whitespace_PRE_getInstance() : whitespace;
|
|
@@ -9853,31 +9853,31 @@
|
|
|
9853
9853
|
overflowWrap = overflowWrap === VOID ? OverflowWrap_NORMAL_getInstance() : overflowWrap;
|
|
9854
9854
|
width = width === VOID ? null : width;
|
|
9855
9855
|
tabWidth = tabWidth === VOID ? null : tabWidth;
|
|
9856
|
-
this.
|
|
9857
|
-
this.
|
|
9858
|
-
this.
|
|
9859
|
-
this.
|
|
9860
|
-
this.
|
|
9861
|
-
this.
|
|
9856
|
+
this.j2p_1 = lines;
|
|
9857
|
+
this.k2p_1 = whitespace;
|
|
9858
|
+
this.l2p_1 = align;
|
|
9859
|
+
this.m2p_1 = overflowWrap;
|
|
9860
|
+
this.n2p_1 = width;
|
|
9861
|
+
this.o2p_1 = tabWidth;
|
|
9862
9862
|
// Inline function 'kotlin.require' call
|
|
9863
|
-
if (!(this.
|
|
9863
|
+
if (!(this.n2p_1 == null || this.n2p_1 >= 0)) {
|
|
9864
9864
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.<anonymous>' call
|
|
9865
9865
|
var message = 'width cannot be negative';
|
|
9866
9866
|
throw IllegalArgumentException_init_$Create$(toString(message));
|
|
9867
9867
|
}
|
|
9868
9868
|
// Inline function 'kotlin.require' call
|
|
9869
|
-
if (!(this.
|
|
9869
|
+
if (!(this.o2p_1 == null || this.o2p_1 >= 0)) {
|
|
9870
9870
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.<anonymous>' call
|
|
9871
9871
|
var message_0 = 'tab width cannot be negative';
|
|
9872
9872
|
throw IllegalArgumentException_init_$Create$(toString(message_0));
|
|
9873
9873
|
}
|
|
9874
9874
|
}
|
|
9875
|
-
protoOf(Text).
|
|
9876
|
-
var tmp0_elvis_lhs = this.
|
|
9875
|
+
protoOf(Text).v2h = function (t, width) {
|
|
9876
|
+
var tmp0_elvis_lhs = this.n2p_1;
|
|
9877
9877
|
var tmp = tmp0_elvis_lhs == null ? width : tmp0_elvis_lhs;
|
|
9878
|
-
var tmp1_elvis_lhs = this.
|
|
9879
|
-
var lines = wrap(this, tmp, tmp1_elvis_lhs == null ? t.
|
|
9880
|
-
var tmp0 = lines.
|
|
9878
|
+
var tmp1_elvis_lhs = this.o2p_1;
|
|
9879
|
+
var lines = wrap(this, tmp, tmp1_elvis_lhs == null ? t.z2h_1 : tmp1_elvis_lhs, TextAlign_NONE_getInstance(), OverflowWrap_NORMAL_getInstance());
|
|
9880
|
+
var tmp0 = lines.v2d_1;
|
|
9881
9881
|
var tmp$ret$0;
|
|
9882
9882
|
$l$block: {
|
|
9883
9883
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -9894,7 +9894,7 @@
|
|
|
9894
9894
|
var element = _iterator__ex2g4s.r();
|
|
9895
9895
|
var tmp_0 = sum;
|
|
9896
9896
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9897
|
-
sum = tmp_0 + element.
|
|
9897
|
+
sum = tmp_0 + element.d2g() | 0;
|
|
9898
9898
|
}
|
|
9899
9899
|
var maxValue = sum;
|
|
9900
9900
|
while (iterator.q()) {
|
|
@@ -9906,7 +9906,7 @@
|
|
|
9906
9906
|
var element_0 = _iterator__ex2g4s_0.r();
|
|
9907
9907
|
var tmp_1 = sum_0;
|
|
9908
9908
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9909
|
-
sum_0 = tmp_1 + element_0.
|
|
9909
|
+
sum_0 = tmp_1 + element_0.d2g() | 0;
|
|
9910
9910
|
}
|
|
9911
9911
|
var v = sum_0;
|
|
9912
9912
|
if (compareTo(maxValue, v) < 0) {
|
|
@@ -9918,8 +9918,8 @@
|
|
|
9918
9918
|
var tmp2_elvis_lhs = tmp$ret$0;
|
|
9919
9919
|
var max = tmp2_elvis_lhs == null ? 0 : tmp2_elvis_lhs;
|
|
9920
9920
|
var tmp_2;
|
|
9921
|
-
if (this.
|
|
9922
|
-
var tmp3 = lines.
|
|
9921
|
+
if (this.k2p_1.t2h_1) {
|
|
9922
|
+
var tmp3 = lines.v2d_1;
|
|
9923
9923
|
var tmp$ret$7;
|
|
9924
9924
|
$l$block_0: {
|
|
9925
9925
|
// Inline function 'kotlin.collections.maxOfOrNull' call
|
|
@@ -9939,10 +9939,10 @@
|
|
|
9939
9939
|
break $l$block_1;
|
|
9940
9940
|
}
|
|
9941
9941
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9942
|
-
var maxValue_0 = iterator_1.r().
|
|
9942
|
+
var maxValue_0 = iterator_1.r().d2g();
|
|
9943
9943
|
while (iterator_1.q()) {
|
|
9944
9944
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9945
|
-
var v_0 = iterator_1.r().
|
|
9945
|
+
var v_0 = iterator_1.r().d2g();
|
|
9946
9946
|
if (compareTo(maxValue_0, v_0) < 0) {
|
|
9947
9947
|
maxValue_0 = v_0;
|
|
9948
9948
|
}
|
|
@@ -9963,10 +9963,10 @@
|
|
|
9963
9963
|
break $l$block_2;
|
|
9964
9964
|
}
|
|
9965
9965
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9966
|
-
var maxValue_2 = iterator_2.r().
|
|
9966
|
+
var maxValue_2 = iterator_2.r().d2g();
|
|
9967
9967
|
while (iterator_2.q()) {
|
|
9968
9968
|
// Inline function 'com.github.ajalt.mordant.widgets.Text.measure.<anonymous>.<anonymous>' call
|
|
9969
|
-
var v_1 = iterator_2.r().
|
|
9969
|
+
var v_1 = iterator_2.r().d2g();
|
|
9970
9970
|
if (compareTo(maxValue_2, v_1) < 0) {
|
|
9971
9971
|
maxValue_2 = v_1;
|
|
9972
9972
|
}
|
|
@@ -9989,14 +9989,14 @@
|
|
|
9989
9989
|
var min = tmp_2;
|
|
9990
9990
|
return new WidthRange(min, max);
|
|
9991
9991
|
};
|
|
9992
|
-
protoOf(Text).
|
|
9993
|
-
var tmp0_elvis_lhs = this.
|
|
9992
|
+
protoOf(Text).w2h = function (t, width) {
|
|
9993
|
+
var tmp0_elvis_lhs = this.n2p_1;
|
|
9994
9994
|
var tmp = tmp0_elvis_lhs == null ? width : tmp0_elvis_lhs;
|
|
9995
|
-
var tmp1_elvis_lhs = this.
|
|
9996
|
-
return wrap(this, tmp, tmp1_elvis_lhs == null ? t.
|
|
9995
|
+
var tmp1_elvis_lhs = this.o2p_1;
|
|
9996
|
+
return wrap(this, tmp, tmp1_elvis_lhs == null ? t.z2h_1 : tmp1_elvis_lhs, this.l2p_1, this.m2p_1);
|
|
9997
9997
|
};
|
|
9998
9998
|
protoOf(Text).toString = function () {
|
|
9999
|
-
var tmp = flatten(this.
|
|
9999
|
+
var tmp = flatten(this.j2p_1.v2d_1);
|
|
10000
10000
|
var plain = joinToString(tmp, '', VOID, VOID, VOID, VOID, Text$toString$lambda);
|
|
10001
10001
|
return 'Text(' + take(plain, 25) + (plain.length > 25 ? '\u2026' : '') + ')';
|
|
10002
10002
|
};
|
|
@@ -10008,21 +10008,21 @@
|
|
|
10008
10008
|
return tmp0_elvis_lhs == null ? TerminalInterfaceBrowser_getInstance() : tmp0_elvis_lhs;
|
|
10009
10009
|
}
|
|
10010
10010
|
function JsAtomicInt(initial) {
|
|
10011
|
-
this.
|
|
10011
|
+
this.p2p_1 = initial;
|
|
10012
10012
|
}
|
|
10013
|
-
protoOf(JsAtomicInt).
|
|
10014
|
-
var _unary__edvuaz = this.
|
|
10015
|
-
this.
|
|
10013
|
+
protoOf(JsAtomicInt).d2e = function () {
|
|
10014
|
+
var _unary__edvuaz = this.p2p_1;
|
|
10015
|
+
this.p2p_1 = _unary__edvuaz + 1 | 0;
|
|
10016
10016
|
return _unary__edvuaz;
|
|
10017
10017
|
};
|
|
10018
10018
|
function printStderr(message, newline) {
|
|
10019
|
-
get_impls().
|
|
10019
|
+
get_impls().q2p(message, newline);
|
|
10020
10020
|
}
|
|
10021
10021
|
function MppAtomicRef(value) {
|
|
10022
10022
|
return new JsAtomicRef(value);
|
|
10023
10023
|
}
|
|
10024
10024
|
function makePrintingTerminalCursor(terminal) {
|
|
10025
|
-
return get_impls().
|
|
10025
|
+
return get_impls().r2p(terminal);
|
|
10026
10026
|
}
|
|
10027
10027
|
function sendInterceptedPrintRequest(request, terminalInterface, interceptors) {
|
|
10028
10028
|
// Inline function 'kotlin.collections.fold' call
|
|
@@ -10032,13 +10032,13 @@
|
|
|
10032
10032
|
var element = _iterator__ex2g4s.r();
|
|
10033
10033
|
// Inline function 'com.github.ajalt.mordant.internal.sendInterceptedPrintRequest.<anonymous>' call
|
|
10034
10034
|
var acc = accumulator;
|
|
10035
|
-
accumulator = element.
|
|
10035
|
+
accumulator = element.s2p(acc);
|
|
10036
10036
|
}
|
|
10037
10037
|
var tmp$ret$1 = accumulator;
|
|
10038
|
-
terminalInterface.
|
|
10038
|
+
terminalInterface.v2n(tmp$ret$1);
|
|
10039
10039
|
}
|
|
10040
10040
|
function getEnv(key) {
|
|
10041
|
-
return get_impls().
|
|
10041
|
+
return get_impls().t2p(key);
|
|
10042
10042
|
}
|
|
10043
10043
|
function runningInIdeaJavaAgent() {
|
|
10044
10044
|
return false;
|
|
@@ -10048,22 +10048,22 @@
|
|
|
10048
10048
|
return tmp instanceof TerminalInterfaceJsCommon ? tmp : THROW_CCE();
|
|
10049
10049
|
}
|
|
10050
10050
|
function JsAtomicRef(value) {
|
|
10051
|
-
this.
|
|
10051
|
+
this.u2p_1 = value;
|
|
10052
10052
|
}
|
|
10053
10053
|
protoOf(JsAtomicRef).z = function () {
|
|
10054
|
-
return this.
|
|
10054
|
+
return this.u2p_1;
|
|
10055
10055
|
};
|
|
10056
|
-
protoOf(JsAtomicRef).
|
|
10057
|
-
if (!equals(this.
|
|
10056
|
+
protoOf(JsAtomicRef).i2o = function (expected, newValue) {
|
|
10057
|
+
if (!equals(this.u2p_1, expected))
|
|
10058
10058
|
return false;
|
|
10059
|
-
this.
|
|
10059
|
+
this.u2p_1 = newValue;
|
|
10060
10060
|
return true;
|
|
10061
10061
|
};
|
|
10062
10062
|
function exitProcessMpp(status) {
|
|
10063
|
-
return get_impls().
|
|
10063
|
+
return get_impls().p2e(status);
|
|
10064
10064
|
}
|
|
10065
10065
|
function readFileIfExists(filename) {
|
|
10066
|
-
return get_impls().
|
|
10066
|
+
return get_impls().v2p(filename);
|
|
10067
10067
|
}
|
|
10068
10068
|
function TerminalInterfaceJsCommon() {
|
|
10069
10069
|
StandardTerminalInterface.call(this);
|
|
@@ -10072,27 +10072,27 @@
|
|
|
10072
10072
|
TerminalInterfaceBrowser_instance = this;
|
|
10073
10073
|
TerminalInterfaceJsCommon.call(this);
|
|
10074
10074
|
}
|
|
10075
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10075
|
+
protoOf(TerminalInterfaceBrowser).t2p = function (key) {
|
|
10076
10076
|
return null;
|
|
10077
10077
|
};
|
|
10078
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10078
|
+
protoOf(TerminalInterfaceBrowser).t2n = function () {
|
|
10079
10079
|
return false;
|
|
10080
10080
|
};
|
|
10081
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10081
|
+
protoOf(TerminalInterfaceBrowser).s2n = function () {
|
|
10082
10082
|
return false;
|
|
10083
10083
|
};
|
|
10084
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10084
|
+
protoOf(TerminalInterfaceBrowser).z2n = function () {
|
|
10085
10085
|
return null;
|
|
10086
10086
|
};
|
|
10087
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10087
|
+
protoOf(TerminalInterfaceBrowser).q2p = function (message, newline) {
|
|
10088
10088
|
return browserPrintln(message);
|
|
10089
10089
|
};
|
|
10090
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10090
|
+
protoOf(TerminalInterfaceBrowser).p2e = function (status) {
|
|
10091
10091
|
};
|
|
10092
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10092
|
+
protoOf(TerminalInterfaceBrowser).r2p = function (terminal) {
|
|
10093
10093
|
return new BrowserTerminalCursor(terminal);
|
|
10094
10094
|
};
|
|
10095
|
-
protoOf(TerminalInterfaceBrowser).
|
|
10095
|
+
protoOf(TerminalInterfaceBrowser).v2p = function (filename) {
|
|
10096
10096
|
return null;
|
|
10097
10097
|
};
|
|
10098
10098
|
var TerminalInterfaceBrowser_instance;
|
|
@@ -10187,24 +10187,24 @@
|
|
|
10187
10187
|
}
|
|
10188
10188
|
function TerminalInterfaceJsNode(fs) {
|
|
10189
10189
|
TerminalInterfaceNode.call(this);
|
|
10190
|
-
this.
|
|
10190
|
+
this.w2p_1 = fs;
|
|
10191
10191
|
}
|
|
10192
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10192
|
+
protoOf(TerminalInterfaceJsNode).t2p = function (key) {
|
|
10193
10193
|
var tmp = process.env[key];
|
|
10194
10194
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
10195
10195
|
};
|
|
10196
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10196
|
+
protoOf(TerminalInterfaceJsNode).t2n = function () {
|
|
10197
10197
|
var tmp = Boolean(process.stdout.isTTY);
|
|
10198
10198
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
10199
10199
|
};
|
|
10200
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10200
|
+
protoOf(TerminalInterfaceJsNode).s2n = function () {
|
|
10201
10201
|
var tmp = Boolean(process.stdin.isTTY);
|
|
10202
10202
|
return (!(tmp == null) ? typeof tmp === 'boolean' : false) ? tmp : THROW_CCE();
|
|
10203
10203
|
};
|
|
10204
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10204
|
+
protoOf(TerminalInterfaceJsNode).p2e = function (status) {
|
|
10205
10205
|
process.exit(status);
|
|
10206
10206
|
};
|
|
10207
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10207
|
+
protoOf(TerminalInterfaceJsNode).z2n = function () {
|
|
10208
10208
|
if (process.stdout.getWindowSize == undefined)
|
|
10209
10209
|
return null;
|
|
10210
10210
|
var s = process.stdout.getWindowSize();
|
|
@@ -10213,34 +10213,34 @@
|
|
|
10213
10213
|
var tmp_1 = s[1];
|
|
10214
10214
|
return new Size(tmp_0, (!(tmp_1 == null) ? typeof tmp_1 === 'number' : false) ? tmp_1 : THROW_CCE());
|
|
10215
10215
|
};
|
|
10216
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10216
|
+
protoOf(TerminalInterfaceJsNode).q2p = function (message, newline) {
|
|
10217
10217
|
process.stderr.write(newline ? message + '\n' : message);
|
|
10218
10218
|
};
|
|
10219
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10219
|
+
protoOf(TerminalInterfaceJsNode).r2p = function (terminal) {
|
|
10220
10220
|
return new NodeTerminalCursor(terminal);
|
|
10221
10221
|
};
|
|
10222
|
-
protoOf(TerminalInterfaceJsNode).
|
|
10223
|
-
var tmp = this.
|
|
10222
|
+
protoOf(TerminalInterfaceJsNode).v2p = function (filename) {
|
|
10223
|
+
var tmp = this.w2p_1.readFileSync(filename, 'utf-8');
|
|
10224
10224
|
return (!(tmp == null) ? typeof tmp === 'string' : false) ? tmp : null;
|
|
10225
10225
|
};
|
|
10226
10226
|
function NodeTerminalCursor(terminal) {
|
|
10227
10227
|
PrintTerminalCursor.call(this, terminal);
|
|
10228
|
-
this.
|
|
10228
|
+
this.y2p_1 = null;
|
|
10229
10229
|
}
|
|
10230
10230
|
//region block: post-declaration
|
|
10231
|
-
protoOf(TxtStyle).
|
|
10232
|
-
protoOf(TxtStyle).
|
|
10233
|
-
protoOf(Table).
|
|
10234
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
10235
|
-
protoOf(VerticalLayoutBuilderInstance).
|
|
10236
|
-
protoOf(CellStyleBuilderMixin).
|
|
10237
|
-
protoOf(VerticalLayout).
|
|
10238
|
-
protoOf(StandardTerminalInterface).
|
|
10239
|
-
protoOf(StandardTerminalInterface).
|
|
10240
|
-
protoOf(DefinitionList).
|
|
10241
|
-
protoOf(EmptyWidget).
|
|
10242
|
-
protoOf(Padded).
|
|
10243
|
-
protoOf(Text).
|
|
10231
|
+
protoOf(TxtStyle).m2a = invoke;
|
|
10232
|
+
protoOf(TxtStyle).b2e = plus_1;
|
|
10233
|
+
protoOf(Table).x2h = render$default;
|
|
10234
|
+
protoOf(VerticalLayoutBuilderInstance).b2l = cellsFrom$default;
|
|
10235
|
+
protoOf(VerticalLayoutBuilderInstance).d2l = cell$default;
|
|
10236
|
+
protoOf(CellStyleBuilderMixin).k2l = padding;
|
|
10237
|
+
protoOf(VerticalLayout).x2h = render$default;
|
|
10238
|
+
protoOf(StandardTerminalInterface).z2n = getTerminalSize;
|
|
10239
|
+
protoOf(StandardTerminalInterface).a2o = shouldAutoUpdateSize;
|
|
10240
|
+
protoOf(DefinitionList).x2h = render$default;
|
|
10241
|
+
protoOf(EmptyWidget).x2h = render$default;
|
|
10242
|
+
protoOf(Padded).x2h = render$default;
|
|
10243
|
+
protoOf(Text).x2h = render$default;
|
|
10244
10244
|
//endregion
|
|
10245
10245
|
//region block: init
|
|
10246
10246
|
MultiplatformSystem_instance = new MultiplatformSystem();
|