object day2 {

    data class DrawSet(val red: Int, val green: Int, val blue: Int)
    data class Game(val id: Int, val sets: List<DrawSet>) {
        val power: Int by lazy { sets.maxOf { it.red } * sets.maxOf { it.blue } * sets.maxOf { it.green } }
        fun withinLimit(r: Int, b: Int, g: Int): Boolean = sets.all { set ->
            set.red <= r && set.blue <= b && set.green <= g
        }
    }

    fun parseInput(input: List<String>): List<Game> = input.fold(emptyList()) { games, line ->
        val (gameId) = Regex("""Game (\d+):""").find(line)!!.destructured
        val drawSets = line.split(": ")[1].split(';').fold(emptyList<DrawSet>()) { drawSets, setString ->
            val red = Regex("""(\d+) red""").find(setString)?.groupValues?.last()?.toInt() ?: 0
            val blue = Regex("""(\d+) blue""").find(setString)?.groupValues?.last()?.toInt() ?: 0
            val green = Regex("""(\d+) green""").find(setString)?.groupValues?.last()?.toInt() ?: 0
            drawSets + DrawSet(red, green, blue)
        }
        games + Game(gameId.toInt(), drawSets)
    }

    fun pt1(input: List<String>): Int = parseInput(input).filter { it.withinLimit(12, 14, 13) }.sumOf { it.id }

    fun pt2(input: List<String>): Int = parseInput(input).sumOf { it.power }
}

Compiled from "day2.kt"
public final class day2$DrawSet {
  private final int red;

  private final int green;

  private final int blue;

  public day2$DrawSet(int, int, int);
    Code:
       0: aload_0
       1: invokespecial #9                  // Method java/lang/Object."<init>":()V
       4: aload_0
       5: iload_1
       6: putfield      #13                 // Field red:I
       9: aload_0
      10: iload_2
      11: putfield      #16                 // Field green:I
      14: aload_0
      15: iload_3
      16: putfield      #19                 // Field blue:I
      19: return

  public final int getRed();
    Code:
       0: aload_0
       1: getfield      #13                 // Field red:I
       4: ireturn

  public final int getGreen();
    Code:
       0: aload_0
       1: getfield      #16                 // Field green:I
       4: ireturn

  public final int getBlue();
    Code:
       0: aload_0
       1: getfield      #19                 // Field blue:I
       4: ireturn

  public final int component1();
    Code:
       0: aload_0
       1: getfield      #13                 // Field red:I
       4: ireturn

  public final int component2();
    Code:
       0: aload_0
       1: getfield      #16                 // Field green:I
       4: ireturn

  public final int component3();
    Code:
       0: aload_0
       1: getfield      #19                 // Field blue:I
       4: ireturn

  public final day2$DrawSet copy(int, int, int);
    Code:
       0: new           #2                  // class day2$DrawSet
       3: dup
       4: iload_1
       5: iload_2
       6: iload_3
       7: invokespecial #33                 // Method "<init>":(III)V
      10: areturn

  public static day2$DrawSet copy$default(day2$DrawSet, int, int, int, int, java.lang.Object);
    Code:
       0: iload         4
       2: iconst_1
       3: iand
       4: ifeq          12
       7: aload_0
       8: getfield      #13                 // Field red:I
      11: istore_1
      12: iload         4
      14: iconst_2
      15: iand
      16: ifeq          24
      19: aload_0
      20: getfield      #16                 // Field green:I
      23: istore_2
      24: iload         4
      26: iconst_4
      27: iand
      28: ifeq          36
      31: aload_0
      32: getfield      #19                 // Field blue:I
      35: istore_3
      36: aload_0
      37: iload_1
      38: iload_2
      39: iload_3
      40: invokevirtual #37                 // Method copy:(III)Lday2$DrawSet;
      43: areturn

  public java.lang.String toString();
    Code:
       0: new           #41                 // class java/lang/StringBuilder
       3: dup
       4: invokespecial #42                 // Method java/lang/StringBuilder."<init>":()V
       7: ldc           #44                 // String DrawSet(red=
       9: invokevirtual #48                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      12: aload_0
      13: getfield      #13                 // Field red:I
      16: invokevirtual #51                 // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      19: ldc           #53                 // String , green=
      21: invokevirtual #48                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      24: aload_0
      25: getfield      #16                 // Field green:I
      28: invokevirtual #51                 // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      31: ldc           #55                 // String , blue=
      33: invokevirtual #48                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      36: aload_0
      37: getfield      #19                 // Field blue:I
      40: invokevirtual #51                 // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      43: bipush        41
      45: invokevirtual #58                 // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
      48: invokevirtual #60                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
      51: areturn

  public int hashCode();
    Code:
       0: aload_0
       1: getfield      #13                 // Field red:I
       4: invokestatic  #66                 // Method java/lang/Integer.hashCode:(I)I
       7: istore_1
       8: iload_1
       9: bipush        31
      11: imul
      12: aload_0
      13: getfield      #16                 // Field green:I
      16: invokestatic  #66                 // Method java/lang/Integer.hashCode:(I)I
      19: iadd
      20: istore_1
      21: iload_1
      22: bipush        31
      24: imul
      25: aload_0
      26: getfield      #19                 // Field blue:I
      29: invokestatic  #66                 // Method java/lang/Integer.hashCode:(I)I
      32: iadd
      33: istore_1
      34: iload_1
      35: ireturn

  public boolean equals(java.lang.Object);
    Code:
       0: aload_0
       1: aload_1
       2: if_acmpne     7
       5: iconst_1
       6: ireturn
       7: aload_1
       8: instanceof    #2                  // class day2$DrawSet
      11: ifne          16
      14: iconst_0
      15: ireturn
      16: aload_1
      17: checkcast     #2                  // class day2$DrawSet
      20: astore_2
      21: aload_0
      22: getfield      #13                 // Field red:I
      25: aload_2
      26: getfield      #13                 // Field red:I
      29: if_icmpeq     34
      32: iconst_0
      33: ireturn
      34: aload_0
      35: getfield      #16                 // Field green:I
      38: aload_2
      39: getfield      #16                 // Field green:I
      42: if_icmpeq     47
      45: iconst_0
      46: ireturn
      47: aload_0
      48: getfield      #19                 // Field blue:I
      51: aload_2
      52: getfield      #19                 // Field blue:I
      55: if_icmpeq     60
      58: iconst_0
      59: ireturn
      60: iconst_1
      61: ireturn
}

Compiled from "day2.kt"
public final class day2$Game {
  private final int id;

  private final java.util.List<day2$DrawSet> sets;

  private final kotlin.Lazy power$delegate;

  public day2$Game(int, java.util.List<day2$DrawSet>);
    Code:
       0: aload_2
       1: ldc           #10                 // String sets
       3: invokestatic  #16                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_0
       7: invokespecial #19                 // Method java/lang/Object."<init>":()V
      10: aload_0
      11: iload_1
      12: putfield      #23                 // Field id:I
      15: aload_0
      16: aload_2
      17: putfield      #26                 // Field sets:Ljava/util/List;
      20: aload_0
      21: aload_0
      22: invokedynamic #46,  0             // InvokeDynamic #0:invoke:(Lday2$Game;)Lkotlin/jvm/functions/Function0;
      27: invokestatic  #52                 // Method kotlin/LazyKt.lazy:(Lkotlin/jvm/functions/Function0;)Lkotlin/Lazy;
      30: putfield      #56                 // Field power$delegate:Lkotlin/Lazy;
      33: return

  public final int getId();
    Code:
       0: aload_0
       1: getfield      #23                 // Field id:I
       4: ireturn

  public final java.util.List<day2$DrawSet> getSets();
    Code:
       0: aload_0
       1: getfield      #26                 // Field sets:Ljava/util/List;
       4: areturn

  public final int getPower();
    Code:
       0: aload_0
       1: getfield      #56                 // Field power$delegate:Lkotlin/Lazy;
       4: astore_1
       5: aload_1
       6: invokeinterface #69,  1           // InterfaceMethod kotlin/Lazy.getValue:()Ljava/lang/Object;
      11: checkcast     #71                 // class java/lang/Number
      14: invokevirtual #74                 // Method java/lang/Number.intValue:()I
      17: ireturn

  public final boolean withinLimit(int, int, int);
    Code:
       0: aload_0
       1: getfield      #26                 // Field sets:Ljava/util/List;
       4: checkcast     #78                 // class java/lang/Iterable
       7: astore        4
       9: iconst_0
      10: istore        5
      12: aload         4
      14: instanceof    #80                 // class java/util/Collection
      17: ifeq          37
      20: aload         4
      22: checkcast     #80                 // class java/util/Collection
      25: invokeinterface #84,  1           // InterfaceMethod java/util/Collection.isEmpty:()Z
      30: ifeq          37
      33: iconst_1
      34: goto          115
      37: aload         4
      39: invokeinterface #88,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      44: astore        6
      46: aload         6
      48: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      53: ifeq          114
      56: aload         6
      58: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      63: astore        7
      65: aload         7
      67: checkcast     #98                 // class day2$DrawSet
      70: astore        8
      72: iconst_0
      73: istore        9
      75: aload         8
      77: invokevirtual #101                // Method day2$DrawSet.getRed:()I
      80: iload_1
      81: if_icmpgt     106
      84: aload         8
      86: invokevirtual #104                // Method day2$DrawSet.getBlue:()I
      89: iload_2
      90: if_icmpgt     106
      93: aload         8
      95: invokevirtual #107                // Method day2$DrawSet.getGreen:()I
      98: iload_3
      99: if_icmpgt     106
     102: iconst_1
     103: goto          107
     106: iconst_0
     107: ifne          46
     110: iconst_0
     111: goto          115
     114: iconst_1
     115: ireturn

  public final int component1();
    Code:
       0: aload_0
       1: getfield      #23                 // Field id:I
       4: ireturn

  public final java.util.List<day2$DrawSet> component2();
    Code:
       0: aload_0
       1: getfield      #26                 // Field sets:Ljava/util/List;
       4: areturn

  public final day2$Game copy(int, java.util.List<day2$DrawSet>);
    Code:
       0: aload_2
       1: ldc           #10                 // String sets
       3: invokestatic  #16                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: new           #2                  // class day2$Game
       9: dup
      10: iload_1
      11: aload_2
      12: invokespecial #125                // Method "<init>":(ILjava/util/List;)V
      15: areturn

  public static day2$Game copy$default(day2$Game, int, java.util.List, int, java.lang.Object);
    Code:
       0: iload_3
       1: iconst_1
       2: iand
       3: ifeq          11
       6: aload_0
       7: getfield      #23                 // Field id:I
      10: istore_1
      11: iload_3
      12: iconst_2
      13: iand
      14: ifeq          22
      17: aload_0
      18: getfield      #26                 // Field sets:Ljava/util/List;
      21: astore_2
      22: aload_0
      23: iload_1
      24: aload_2
      25: invokevirtual #129                // Method copy:(ILjava/util/List;)Lday2$Game;
      28: areturn

  public java.lang.String toString();
    Code:
       0: new           #133                // class java/lang/StringBuilder
       3: dup
       4: invokespecial #134                // Method java/lang/StringBuilder."<init>":()V
       7: ldc           #136                // String Game(id=
       9: invokevirtual #140                // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      12: aload_0
      13: getfield      #23                 // Field id:I
      16: invokevirtual #143                // Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
      19: ldc           #145                // String , sets=
      21: invokevirtual #140                // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      24: aload_0
      25: getfield      #26                 // Field sets:Ljava/util/List;
      28: invokevirtual #148                // Method java/lang/StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
      31: bipush        41
      33: invokevirtual #151                // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
      36: invokevirtual #153                // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
      39: areturn

  public int hashCode();
    Code:
       0: aload_0
       1: getfield      #23                 // Field id:I
       4: invokestatic  #159                // Method java/lang/Integer.hashCode:(I)I
       7: istore_1
       8: iload_1
       9: bipush        31
      11: imul
      12: aload_0
      13: getfield      #26                 // Field sets:Ljava/util/List;
      16: invokevirtual #161                // Method java/lang/Object.hashCode:()I
      19: iadd
      20: istore_1
      21: iload_1
      22: ireturn

  public boolean equals(java.lang.Object);
    Code:
       0: aload_0
       1: aload_1
       2: if_acmpne     7
       5: iconst_1
       6: ireturn
       7: aload_1
       8: instanceof    #2                  // class day2$Game
      11: ifne          16
      14: iconst_0
      15: ireturn
      16: aload_1
      17: checkcast     #2                  // class day2$Game
      20: astore_2
      21: aload_0
      22: getfield      #23                 // Field id:I
      25: aload_2
      26: getfield      #23                 // Field id:I
      29: if_icmpeq     34
      32: iconst_0
      33: ireturn
      34: aload_0
      35: getfield      #26                 // Field sets:Ljava/util/List;
      38: aload_2
      39: getfield      #26                 // Field sets:Ljava/util/List;
      42: invokestatic  #169                // Method kotlin/jvm/internal/Intrinsics.areEqual:(Ljava/lang/Object;Ljava/lang/Object;)Z
      45: ifne          50
      48: iconst_0
      49: ireturn
      50: iconst_1
      51: ireturn

  private static final int power_delegate$lambda$3(day2$Game);
    Code:
       0: aload_0
       1: getfield      #26                 // Field sets:Ljava/util/List;
       4: checkcast     #78                 // class java/lang/Iterable
       7: invokeinterface #88,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      12: astore_2
      13: aload_2
      14: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      19: ifne          30
      22: new           #172                // class java/util/NoSuchElementException
      25: dup
      26: invokespecial #173                // Method java/util/NoSuchElementException."<init>":()V
      29: athrow
      30: aload_2
      31: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      36: checkcast     #98                 // class day2$DrawSet
      39: astore_3
      40: iconst_0
      41: istore        4
      43: aload_3
      44: invokevirtual #101                // Method day2$DrawSet.getRed:()I
      47: istore_3
      48: aload_2
      49: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      54: ifeq          90
      57: aload_2
      58: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      63: checkcast     #98                 // class day2$DrawSet
      66: astore        4
      68: iconst_0
      69: istore        5
      71: aload         4
      73: invokevirtual #101                // Method day2$DrawSet.getRed:()I
      76: istore        4
      78: iload_3
      79: iload         4
      81: if_icmpge     48
      84: iload         4
      86: istore_3
      87: goto          48
      90: iload_3
      91: aload_0
      92: getfield      #26                 // Field sets:Ljava/util/List;
      95: checkcast     #78                 // class java/lang/Iterable
      98: astore_1
      99: istore        6
     101: aload_1
     102: invokeinterface #88,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     107: astore_2
     108: aload_2
     109: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     114: ifne          125
     117: new           #172                // class java/util/NoSuchElementException
     120: dup
     121: invokespecial #173                // Method java/util/NoSuchElementException."<init>":()V
     124: athrow
     125: aload_2
     126: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     131: checkcast     #98                 // class day2$DrawSet
     134: astore_3
     135: iconst_0
     136: istore        4
     138: aload_3
     139: invokevirtual #104                // Method day2$DrawSet.getBlue:()I
     142: istore_3
     143: aload_2
     144: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     149: ifeq          185
     152: aload_2
     153: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     158: checkcast     #98                 // class day2$DrawSet
     161: astore        4
     163: iconst_0
     164: istore        5
     166: aload         4
     168: invokevirtual #104                // Method day2$DrawSet.getBlue:()I
     171: istore        4
     173: iload_3
     174: iload         4
     176: if_icmpge     143
     179: iload         4
     181: istore_3
     182: goto          143
     185: iload_3
     186: istore        7
     188: iload         6
     190: iload         7
     192: imul
     193: aload_0
     194: getfield      #26                 // Field sets:Ljava/util/List;
     197: checkcast     #78                 // class java/lang/Iterable
     200: astore_1
     201: istore        6
     203: aload_1
     204: invokeinterface #88,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     209: astore_2
     210: aload_2
     211: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     216: ifne          227
     219: new           #172                // class java/util/NoSuchElementException
     222: dup
     223: invokespecial #173                // Method java/util/NoSuchElementException."<init>":()V
     226: athrow
     227: aload_2
     228: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     233: checkcast     #98                 // class day2$DrawSet
     236: astore_3
     237: iconst_0
     238: istore        4
     240: aload_3
     241: invokevirtual #107                // Method day2$DrawSet.getGreen:()I
     244: istore_3
     245: aload_2
     246: invokeinterface #93,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     251: ifeq          287
     254: aload_2
     255: invokeinterface #96,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     260: checkcast     #98                 // class day2$DrawSet
     263: astore        4
     265: iconst_0
     266: istore        5
     268: aload         4
     270: invokevirtual #107                // Method day2$DrawSet.getGreen:()I
     273: istore        4
     275: iload_3
     276: iload         4
     278: if_icmpge     245
     281: iload         4
     283: istore_3
     284: goto          245
     287: iload_3
     288: istore        7
     290: iload         6
     292: iload         7
     294: imul
     295: ireturn
}

Compiled from "day2.kt"
public final class day2 {
  public static final day2 INSTANCE;

  private day2();
    Code:
       0: aload_0
       1: invokespecial #8                  // Method java/lang/Object."<init>":()V
       4: return

  public final java.util.List<day2$Game> parseInput(java.util.List<java.lang.String>);
    Code:
       0: aload_1
       1: ldc           #16                 // String input
       3: invokestatic  #22                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_1
       7: checkcast     #24                 // class java/lang/Iterable
      10: astore_2
      11: invokestatic  #30                 // Method kotlin/collections/CollectionsKt.emptyList:()Ljava/util/List;
      14: astore_3
      15: iconst_0
      16: istore        4
      18: aload_3
      19: astore        5
      21: aload_2
      22: invokeinterface #34,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      27: astore        6
      29: aload         6
      31: invokeinterface #40,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      36: ifeq          442
      39: aload         6
      41: invokeinterface #44,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      46: astore        7
      48: aload         5
      50: aload         7
      52: checkcast     #46                 // class java/lang/String
      55: astore        8
      57: astore        9
      59: iconst_0
      60: istore        10
      62: new           #48                 // class kotlin/text/Regex
      65: dup
      66: ldc           #50                 // String Game (\\d+):
      68: invokespecial #53                 // Method kotlin/text/Regex."<init>":(Ljava/lang/String;)V
      71: aload         8
      73: checkcast     #55                 // class java/lang/CharSequence
      76: iconst_0
      77: iconst_2
      78: aconst_null
      79: invokestatic  #59                 // Method kotlin/text/Regex.find$default:(Lkotlin/text/Regex;Ljava/lang/CharSequence;IILjava/lang/Object;)Lkotlin/text/MatchResult;
      82: dup
      83: invokestatic  #63                 // Method kotlin/jvm/internal/Intrinsics.checkNotNull:(Ljava/lang/Object;)V
      86: invokeinterface #69,  1           // InterfaceMethod kotlin/text/MatchResult.getDestructured:()Lkotlin/text/MatchResult$Destructured;
      91: invokevirtual #75                 // Method kotlin/text/MatchResult$Destructured.getMatch:()Lkotlin/text/MatchResult;
      94: invokeinterface #78,  1           // InterfaceMethod kotlin/text/MatchResult.getGroupValues:()Ljava/util/List;
      99: iconst_1
     100: invokeinterface #84,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     105: checkcast     #46                 // class java/lang/String
     108: astore        11
     110: aload         8
     112: checkcast     #55                 // class java/lang/CharSequence
     115: iconst_1
     116: anewarray     #46                 // class java/lang/String
     119: astore        12
     121: aload         12
     123: iconst_0
     124: ldc           #86                 // String :
     126: aastore
     127: aload         12
     129: iconst_0
     130: iconst_0
     131: bipush        6
     133: aconst_null
     134: invokestatic  #92                 // Method kotlin/text/StringsKt.split$default:(Ljava/lang/CharSequence;[Ljava/lang/String;ZIILjava/lang/Object;)Ljava/util/List;
     137: iconst_1
     138: invokeinterface #84,  2           // InterfaceMethod java/util/List.get:(I)Ljava/lang/Object;
     143: checkcast     #55                 // class java/lang/CharSequence
     146: iconst_1
     147: newarray       char
     149: astore        12
     151: aload         12
     153: iconst_0
     154: bipush        59
     156: castore
     157: aload         12
     159: iconst_0
     160: iconst_0
     161: bipush        6
     163: aconst_null
     164: invokestatic  #95                 // Method kotlin/text/StringsKt.split$default:(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
     167: checkcast     #24                 // class java/lang/Iterable
     170: astore        12
     172: invokestatic  #30                 // Method kotlin/collections/CollectionsKt.emptyList:()Ljava/util/List;
     175: astore        13
     177: iconst_0
     178: istore        14
     180: aload         13
     182: astore        15
     184: aload         12
     186: invokeinterface #34,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     191: astore        16
     193: aload         16
     195: invokeinterface #40,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     200: ifeq          411
     203: aload         16
     205: invokeinterface #44,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     210: astore        17
     212: aload         15
     214: aload         17
     216: checkcast     #46                 // class java/lang/String
     219: astore        18
     221: astore        19
     223: iconst_0
     224: istore        20
     226: new           #48                 // class kotlin/text/Regex
     229: dup
     230: ldc           #97                 // String (\\d+) red
     232: invokespecial #53                 // Method kotlin/text/Regex."<init>":(Ljava/lang/String;)V
     235: aload         18
     237: checkcast     #55                 // class java/lang/CharSequence
     240: iconst_0
     241: iconst_2
     242: aconst_null
     243: invokestatic  #59                 // Method kotlin/text/Regex.find$default:(Lkotlin/text/Regex;Ljava/lang/CharSequence;IILjava/lang/Object;)Lkotlin/text/MatchResult;
     246: dup
     247: ifnull        275
     250: invokeinterface #78,  1           // InterfaceMethod kotlin/text/MatchResult.getGroupValues:()Ljava/util/List;
     255: dup
     256: ifnull        275
     259: invokestatic  #101                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     262: checkcast     #46                 // class java/lang/String
     265: dup
     266: ifnull        275
     269: invokestatic  #107                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
     272: goto          277
     275: pop
     276: iconst_0
     277: istore        21
     279: new           #48                 // class kotlin/text/Regex
     282: dup
     283: ldc           #109                // String (\\d+) blue
     285: invokespecial #53                 // Method kotlin/text/Regex."<init>":(Ljava/lang/String;)V
     288: aload         18
     290: checkcast     #55                 // class java/lang/CharSequence
     293: iconst_0
     294: iconst_2
     295: aconst_null
     296: invokestatic  #59                 // Method kotlin/text/Regex.find$default:(Lkotlin/text/Regex;Ljava/lang/CharSequence;IILjava/lang/Object;)Lkotlin/text/MatchResult;
     299: dup
     300: ifnull        328
     303: invokeinterface #78,  1           // InterfaceMethod kotlin/text/MatchResult.getGroupValues:()Ljava/util/List;
     308: dup
     309: ifnull        328
     312: invokestatic  #101                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     315: checkcast     #46                 // class java/lang/String
     318: dup
     319: ifnull        328
     322: invokestatic  #107                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
     325: goto          330
     328: pop
     329: iconst_0
     330: istore        22
     332: new           #48                 // class kotlin/text/Regex
     335: dup
     336: ldc           #111                // String (\\d+) green
     338: invokespecial #53                 // Method kotlin/text/Regex."<init>":(Ljava/lang/String;)V
     341: aload         18
     343: checkcast     #55                 // class java/lang/CharSequence
     346: iconst_0
     347: iconst_2
     348: aconst_null
     349: invokestatic  #59                 // Method kotlin/text/Regex.find$default:(Lkotlin/text/Regex;Ljava/lang/CharSequence;IILjava/lang/Object;)Lkotlin/text/MatchResult;
     352: dup
     353: ifnull        381
     356: invokeinterface #78,  1           // InterfaceMethod kotlin/text/MatchResult.getGroupValues:()Ljava/util/List;
     361: dup
     362: ifnull        381
     365: invokestatic  #101                // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     368: checkcast     #46                 // class java/lang/String
     371: dup
     372: ifnull        381
     375: invokestatic  #107                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
     378: goto          383
     381: pop
     382: iconst_0
     383: istore        23
     385: aload         19
     387: checkcast     #113                // class java/util/Collection
     390: new           #115                // class day2$DrawSet
     393: dup
     394: iload         21
     396: iload         23
     398: iload         22
     400: invokespecial #118                // Method day2$DrawSet."<init>":(III)V
     403: invokestatic  #122                // Method kotlin/collections/CollectionsKt.plus:(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List;
     406: astore        15
     408: goto          193
     411: aload         15
     413: astore        24
     415: aload         9
     417: checkcast     #113                // class java/util/Collection
     420: new           #124                // class day2$Game
     423: dup
     424: aload         11
     426: invokestatic  #107                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
     429: aload         24
     431: invokespecial #127                // Method day2$Game."<init>":(ILjava/util/List;)V
     434: invokestatic  #122                // Method kotlin/collections/CollectionsKt.plus:(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List;
     437: astore        5
     439: goto          29
     442: aload         5
     444: areturn

  public final int pt1(java.util.List<java.lang.String>);
    Code:
       0: aload_1
       1: ldc           #16                 // String input
       3: invokestatic  #22                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_0
       7: aload_1
       8: invokevirtual #152                // Method parseInput:(Ljava/util/List;)Ljava/util/List;
      11: checkcast     #24                 // class java/lang/Iterable
      14: astore_2
      15: iconst_0
      16: istore_3
      17: aload_2
      18: astore        4
      20: new           #154                // class java/util/ArrayList
      23: dup
      24: invokespecial #155                // Method java/util/ArrayList."<init>":()V
      27: checkcast     #113                // class java/util/Collection
      30: astore        5
      32: iconst_0
      33: istore        6
      35: aload         4
      37: invokeinterface #34,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      42: astore        7
      44: aload         7
      46: invokeinterface #40,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      51: ifeq          100
      54: aload         7
      56: invokeinterface #44,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      61: astore        8
      63: aload         8
      65: checkcast     #124                // class day2$Game
      68: astore        9
      70: iconst_0
      71: istore        10
      73: aload         9
      75: bipush        12
      77: bipush        14
      79: bipush        13
      81: invokevirtual #159                // Method day2$Game.withinLimit:(III)Z
      84: ifeq          44
      87: aload         5
      89: aload         8
      91: invokeinterface #163,  2          // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      96: pop
      97: goto          44
     100: aload         5
     102: checkcast     #80                 // class java/util/List
     105: nop
     106: checkcast     #24                 // class java/lang/Iterable
     109: astore_2
     110: iconst_0
     111: istore_3
     112: aload_2
     113: invokeinterface #34,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     118: astore        4
     120: aload         4
     122: invokeinterface #40,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
     127: ifeq          168
     130: aload         4
     132: invokeinterface #44,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     137: astore        5
     139: iload_3
     140: aload         5
     142: checkcast     #124                // class day2$Game
     145: astore        6
     147: istore        11
     149: iconst_0
     150: istore        7
     152: aload         6
     154: invokevirtual #167                // Method day2$Game.getId:()I
     157: istore        12
     159: iload         11
     161: iload         12
     163: iadd
     164: istore_3
     165: goto          120
     168: iload_3
     169: ireturn

  public final int pt2(java.util.List<java.lang.String>);
    Code:
       0: aload_1
       1: ldc           #16                 // String input
       3: invokestatic  #22                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_0
       7: aload_1
       8: invokevirtual #152                // Method parseInput:(Ljava/util/List;)Ljava/util/List;
      11: checkcast     #24                 // class java/lang/Iterable
      14: astore_2
      15: iconst_0
      16: istore_3
      17: aload_2
      18: invokeinterface #34,  1           // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      23: astore        4
      25: aload         4
      27: invokeinterface #40,  1           // InterfaceMethod java/util/Iterator.hasNext:()Z
      32: ifeq          73
      35: aload         4
      37: invokeinterface #44,  1           // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      42: astore        5
      44: iload_3
      45: aload         5
      47: checkcast     #124                // class day2$Game
      50: astore        6
      52: istore        8
      54: iconst_0
      55: istore        7
      57: aload         6
      59: invokevirtual #182                // Method day2$Game.getPower:()I
      62: istore        9
      64: iload         8
      66: iload         9
      68: iadd
      69: istore_3
      70: goto          25
      73: iload_3
      74: ireturn

  static {};
    Code:
       0: new           #2                  // class day2
       3: dup
       4: invokespecial #185                // Method "<init>":()V
       7: putstatic     #188                // Field INSTANCE:Lday2;
      10: return
}


object day1 {

    val digitMap = mapOf(
        "one" to "1",
        "two" to "2",
        "three" to "3",
        "four" to "4",
        "five" to "5",
        "six" to "6",
        "seven" to "7",
        "eight" to "8",
        "nine" to "9"
    )

    fun firstAndLast(input: String): String {
        val onlyDigits = input.toCharArray().filter { it.isDigit() }
        val res = "" + onlyDigits.first() + onlyDigits.last()
        return res
    }

    fun replaceSpelledOutDigits(input: String): String {
        val res = input.fold("") { acc, c ->
            val next = acc + c
            if (digitMap.keys.any { next.contains(it) }) {
                digitMap.entries.fold(next) { acc2, (spelledOut, asDigit) ->
                    acc2.replace(spelledOut, asDigit)
                } + c
            } else next
        }
        return res
    }

    fun pt1(input: List<String>): Int = input.map { firstAndLast(it).toInt() }.sum()

    fun pt2(input: List<String>): Int = input.map { firstAndLast(replaceSpelledOutDigits(it)).toInt() }.sum()
}

Compiled from "day1.kt"
public final class day1 {
  public static final day1 INSTANCE;

  private static final java.util.Map<java.lang.String, java.lang.String> digitMap;

  private day1();
    Code:
       0: aload_0
       1: invokespecial #8                  // Method java/lang/Object."<init>":()V
       4: return

  public final java.util.Map<java.lang.String, java.lang.String> getDigitMap();
    Code:
       0: getstatic     #18                 // Field digitMap:Ljava/util/Map;
       3: areturn

  public final java.lang.String firstAndLast(java.lang.String);
    Code:
       0: aload_1
       1: ldc           #22                 // String input
       3: invokestatic  #28                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_1
       7: invokevirtual #34                 // Method java/lang/String.toCharArray:()[C
      10: dup
      11: ldc           #36                 // String toCharArray(...)
      13: invokestatic  #39                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullExpressionValue:(Ljava/lang/Object;Ljava/lang/String;)V
      16: astore_3
      17: nop
      18: iconst_0
      19: istore        4
      21: aload_3
      22: astore        5
      24: new           #41                 // class java/util/ArrayList
      27: dup
      28: invokespecial #42                 // Method java/util/ArrayList."<init>":()V
      31: checkcast     #44                 // class java/util/Collection
      34: astore        6
      36: iconst_0
      37: istore        7
      39: iconst_0
      40: istore        8
      42: aload         5
      44: arraylength
      45: istore        9
      47: iload         8
      49: iload         9
      51: if_icmpge     96
      54: aload         5
      56: iload         8
      58: caload
      59: istore        10
      61: iload         10
      63: istore        11
      65: iconst_0
      66: istore        12
      68: iload         11
      70: invokestatic  #50                 // Method java/lang/Character.isDigit:(C)Z
      73: nop
      74: ifeq          90
      77: aload         6
      79: iload         10
      81: invokestatic  #54                 // Method java/lang/Character.valueOf:(C)Ljava/lang/Character;
      84: invokeinterface #58,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
      89: pop
      90: iinc          8, 1
      93: goto          47
      96: aload         6
      98: checkcast     #60                 // class java/util/List
     101: nop
     102: astore_2
     103: new           #62                 // class java/lang/StringBuilder
     106: dup
     107: invokespecial #63                 // Method java/lang/StringBuilder."<init>":()V
     110: ldc           #65                 // String
     112: invokevirtual #69                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
     115: aload_2
     116: invokestatic  #75                 // Method kotlin/collections/CollectionsKt.first:(Ljava/util/List;)Ljava/lang/Object;
     119: checkcast     #46                 // class java/lang/Character
     122: invokevirtual #79                 // Method java/lang/Character.charValue:()C
     125: invokevirtual #82                 // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
     128: aload_2
     129: invokestatic  #85                 // Method kotlin/collections/CollectionsKt.last:(Ljava/util/List;)Ljava/lang/Object;
     132: checkcast     #46                 // class java/lang/Character
     135: invokevirtual #79                 // Method java/lang/Character.charValue:()C
     138: invokevirtual #82                 // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
     141: invokevirtual #89                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
     144: astore_3
     145: aload_3
     146: areturn

  public final java.lang.String replaceSpelledOutDigits(java.lang.String);
    Code:
       0: aload_1
       1: ldc           #22                 // String input
       3: invokestatic  #28                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_1
       7: checkcast     #109                // class java/lang/CharSequence
      10: astore_3
      11: ldc           #65                 // String
      13: astore        4
      15: iconst_0
      16: istore        5
      18: aload         4
      20: astore        6
      22: iconst_0
      23: istore        7
      25: iload         7
      27: aload_3
      28: invokeinterface #113,  1          // InterfaceMethod java/lang/CharSequence.length:()I
      33: if_icmpge     334
      36: aload_3
      37: iload         7
      39: invokeinterface #117,  2          // InterfaceMethod java/lang/CharSequence.charAt:(I)C
      44: istore        8
      46: aload         6
      48: iload         8
      50: istore        9
      52: astore        10
      54: iconst_0
      55: istore        11
      57: new           #62                 // class java/lang/StringBuilder
      60: dup
      61: invokespecial #63                 // Method java/lang/StringBuilder."<init>":()V
      64: aload         10
      66: invokevirtual #69                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
      69: iload         9
      71: invokevirtual #82                 // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
      74: invokevirtual #89                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
      77: astore        12
      79: getstatic     #120                // Field INSTANCE:Lday1;
      82: pop
      83: getstatic     #18                 // Field digitMap:Ljava/util/Map;
      86: invokeinterface #126,  1          // InterfaceMethod java/util/Map.keySet:()Ljava/util/Set;
      91: checkcast     #128                // class java/lang/Iterable
      94: astore        13
      96: iconst_0
      97: istore        14
      99: aload         13
     101: instanceof    #44                 // class java/util/Collection
     104: ifeq          124
     107: aload         13
     109: checkcast     #44                 // class java/util/Collection
     112: invokeinterface #132,  1          // InterfaceMethod java/util/Collection.isEmpty:()Z
     117: ifeq          124
     120: iconst_0
     121: goto          186
     124: aload         13
     126: invokeinterface #136,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     131: astore        15
     133: aload         15
     135: invokeinterface #141,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
     140: ifeq          185
     143: aload         15
     145: invokeinterface #145,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     150: astore        16
     152: aload         16
     154: checkcast     #30                 // class java/lang/String
     157: astore        17
     159: iconst_0
     160: istore        18
     162: aload         12
     164: checkcast     #109                // class java/lang/CharSequence
     167: aload         17
     169: checkcast     #109                // class java/lang/CharSequence
     172: iconst_0
     173: iconst_2
     174: aconst_null
     175: invokestatic  #151                // Method kotlin/text/StringsKt.contains$default:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;ZILjava/lang/Object;)Z
     178: ifeq          133
     181: iconst_1
     182: goto          186
     185: iconst_0
     186: ifeq          324
     189: new           #62                 // class java/lang/StringBuilder
     192: dup
     193: invokespecial #63                 // Method java/lang/StringBuilder."<init>":()V
     196: getstatic     #120                // Field INSTANCE:Lday1;
     199: pop
     200: getstatic     #18                 // Field digitMap:Ljava/util/Map;
     203: invokeinterface #154,  1          // InterfaceMethod java/util/Map.entrySet:()Ljava/util/Set;
     208: checkcast     #128                // class java/lang/Iterable
     211: astore        13
     213: astore        19
     215: iconst_0
     216: istore        14
     218: aload         12
     220: astore        15
     222: aload         13
     224: invokeinterface #136,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
     229: astore        16
     231: aload         16
     233: invokeinterface #141,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
     238: ifeq          305
     241: aload         16
     243: invokeinterface #145,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
     248: astore        17
     250: aload         15
     252: aload         17
     254: checkcast     #156                // class java/util/Map$Entry
     257: astore        18
     259: astore        20
     261: iconst_0
     262: istore        21
     264: aload         18
     266: invokeinterface #159,  1          // InterfaceMethod java/util/Map$Entry.getKey:()Ljava/lang/Object;
     271: checkcast     #30                 // class java/lang/String
     274: astore        22
     276: aload         18
     278: invokeinterface #162,  1          // InterfaceMethod java/util/Map$Entry.getValue:()Ljava/lang/Object;
     283: checkcast     #30                 // class java/lang/String
     286: astore        23
     288: aload         20
     290: aload         22
     292: aload         23
     294: iconst_0
     295: iconst_4
     296: aconst_null
     297: invokestatic  #166                // Method kotlin/text/StringsKt.replace$default:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
     300: astore        15
     302: goto          231
     305: aload         15
     307: aload         19
     309: swap
     310: invokevirtual #69                 // Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
     313: iload         9
     315: invokevirtual #82                 // Method java/lang/StringBuilder.append:(C)Ljava/lang/StringBuilder;
     318: invokevirtual #89                 // Method java/lang/StringBuilder.toString:()Ljava/lang/String;
     321: goto          326
     324: aload         12
     326: astore        6
     328: iinc          7, 1
     331: goto          25
     334: aload         6
     336: astore_2
     337: aload_2
     338: areturn

  public final int pt1(java.util.List<java.lang.String>);
    Code:
       0: aload_1
       1: ldc           #22                 // String input
       3: invokestatic  #28                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_1
       7: checkcast     #128                // class java/lang/Iterable
      10: astore_2
      11: iconst_0
      12: istore_3
      13: aload_2
      14: astore        4
      16: new           #41                 // class java/util/ArrayList
      19: dup
      20: aload_2
      21: bipush        10
      23: invokestatic  #191                // Method kotlin/collections/CollectionsKt.collectionSizeOrDefault:(Ljava/lang/Iterable;I)I
      26: invokespecial #194                // Method java/util/ArrayList."<init>":(I)V
      29: checkcast     #44                 // class java/util/Collection
      32: astore        5
      34: iconst_0
      35: istore        6
      37: aload         4
      39: invokeinterface #136,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      44: astore        7
      46: aload         7
      48: invokeinterface #141,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
      53: ifeq          106
      56: aload         7
      58: invokeinterface #145,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      63: astore        8
      65: aload         5
      67: aload         8
      69: checkcast     #30                 // class java/lang/String
      72: astore        9
      74: astore        11
      76: iconst_0
      77: istore        10
      79: getstatic     #120                // Field INSTANCE:Lday1;
      82: aload         9
      84: invokevirtual #196                // Method firstAndLast:(Ljava/lang/String;)Ljava/lang/String;
      87: invokestatic  #202                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
      90: nop
      91: invokestatic  #205                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
      94: aload         11
      96: swap
      97: invokeinterface #58,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     102: pop
     103: goto          46
     106: aload         5
     108: checkcast     #60                 // class java/util/List
     111: nop
     112: checkcast     #128                // class java/lang/Iterable
     115: invokestatic  #209                // Method kotlin/collections/CollectionsKt.sumOfInt:(Ljava/lang/Iterable;)I
     118: ireturn

  public final int pt2(java.util.List<java.lang.String>);
    Code:
       0: aload_1
       1: ldc           #22                 // String input
       3: invokestatic  #28                 // Method kotlin/jvm/internal/Intrinsics.checkNotNullParameter:(Ljava/lang/Object;Ljava/lang/String;)V
       6: aload_1
       7: checkcast     #128                // class java/lang/Iterable
      10: astore_2
      11: iconst_0
      12: istore_3
      13: aload_2
      14: astore        4
      16: new           #41                 // class java/util/ArrayList
      19: dup
      20: aload_2
      21: bipush        10
      23: invokestatic  #191                // Method kotlin/collections/CollectionsKt.collectionSizeOrDefault:(Ljava/lang/Iterable;I)I
      26: invokespecial #194                // Method java/util/ArrayList."<init>":(I)V
      29: checkcast     #44                 // class java/util/Collection
      32: astore        5
      34: iconst_0
      35: istore        6
      37: aload         4
      39: invokeinterface #136,  1          // InterfaceMethod java/lang/Iterable.iterator:()Ljava/util/Iterator;
      44: astore        7
      46: aload         7
      48: invokeinterface #141,  1          // InterfaceMethod java/util/Iterator.hasNext:()Z
      53: ifeq          112
      56: aload         7
      58: invokeinterface #145,  1          // InterfaceMethod java/util/Iterator.next:()Ljava/lang/Object;
      63: astore        8
      65: aload         5
      67: aload         8
      69: checkcast     #30                 // class java/lang/String
      72: astore        9
      74: astore        11
      76: iconst_0
      77: istore        10
      79: getstatic     #120                // Field INSTANCE:Lday1;
      82: getstatic     #120                // Field INSTANCE:Lday1;
      85: aload         9
      87: invokevirtual #218                // Method replaceSpelledOutDigits:(Ljava/lang/String;)Ljava/lang/String;
      90: invokevirtual #196                // Method firstAndLast:(Ljava/lang/String;)Ljava/lang/String;
      93: invokestatic  #202                // Method java/lang/Integer.parseInt:(Ljava/lang/String;)I
      96: nop
      97: invokestatic  #205                // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
     100: aload         11
     102: swap
     103: invokeinterface #58,  2           // InterfaceMethod java/util/Collection.add:(Ljava/lang/Object;)Z
     108: pop
     109: goto          46
     112: aload         5
     114: checkcast     #60                 // class java/util/List
     117: nop
     118: checkcast     #128                // class java/lang/Iterable
     121: invokestatic  #209                // Method kotlin/collections/CollectionsKt.sumOfInt:(Ljava/lang/Iterable;)I
     124: ireturn

  static {};
    Code:
       0: new           #2                  // class day1
       3: dup
       4: invokespecial #221                // Method "<init>":()V
       7: putstatic     #120                // Field INSTANCE:Lday1;
      10: bipush        9
      12: anewarray     #223                // class kotlin/Pair
      15: astore_0
      16: aload_0
      17: iconst_0
      18: ldc           #225                // String one
      20: ldc           #227                // String 1
      22: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      25: aastore
      26: aload_0
      27: iconst_1
      28: ldc           #235                // String two
      30: ldc           #237                // String 2
      32: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      35: aastore
      36: aload_0
      37: iconst_2
      38: ldc           #239                // String three
      40: ldc           #241                // String 3
      42: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      45: aastore
      46: aload_0
      47: iconst_3
      48: ldc           #243                // String four
      50: ldc           #245                // String 4
      52: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      55: aastore
      56: aload_0
      57: iconst_4
      58: ldc           #247                // String five
      60: ldc           #249                // String 5
      62: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      65: aastore
      66: aload_0
      67: iconst_5
      68: ldc           #251                // String six
      70: ldc           #253                // String 6
      72: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      75: aastore
      76: aload_0
      77: bipush        6
      79: ldc           #255                // String seven
      81: ldc_w         #257                // String 7
      84: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
      87: aastore
      88: aload_0
      89: bipush        7
      91: ldc_w         #259                // String eight
      94: ldc_w         #261                // String 8
      97: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
     100: aastore
     101: aload_0
     102: bipush        8
     104: ldc_w         #263                // String nine
     107: ldc_w         #265                // String 9
     110: invokestatic  #233                // Method kotlin/TuplesKt.to:(Ljava/lang/Object;Ljava/lang/Object;)Lkotlin/Pair;
     113: aastore
     114: aload_0
     115: invokestatic  #271                // Method kotlin/collections/MapsKt.mapOf:([Lkotlin/Pair;)Ljava/util/Map;
     118: putstatic     #18                 // Field digitMap:Ljava/util/Map;
     121: return
}