content: package kotlin.time;
  
  import java.util.concurrent.TimeUnit;
  import kotlin.Metadata;
  import kotlin.NoWhenBranchMatchedException;
  import kotlin.jvm.internal.Intrinsics;
  
  @Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a \u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0004H\u0001\u001a \u0010\u0000\u001a\u00020\u00062\u0006\u0010\u0002\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0004H\u0001\u001a \u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0002\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0004H\u0001\u001a\f\u0010\b\u001a\u00020\u0004*\u00020\tH\u0007\u001a\f\u0010\n\u001a\u00020\t*\u00020\u0004H\u0007¨\u0006\u000b"}, d2 = {"convertDurationUnit", "", "value", "sourceUnit", "Lkotlin/time/DurationUnit;", "targetUnit", "", "convertDurationUnitOverflow", "toDurationUnit", "Ljava/util/concurrent/TimeUnit;", "toTimeUnit", "kotlin-stdlib"}, k = 5, mv = {1, 7, 1}, xi = 49, xs = "kotlin/time/DurationUnitKt")
  /* compiled from: DurationUnitJvm.kt */
  class DurationUnitKt__DurationUnitJvmKt {
  
      @Metadata(k = 3, mv = {1, 7, 1}, xi = 48)
      /* compiled from: DurationUnitJvm.kt */
      public /* synthetic */ class WhenMappings {
          public static final /* synthetic */ int[] $EnumSwitchMapping$0;
  
          static {
              int[] iArr = new int[TimeUnit.values().length];
              iArr[TimeUnit.NANOSECONDS.ordinal()] = 1;
              iArr[TimeUnit.MICROSECONDS.ordinal()] = 2;
              iArr[TimeUnit.MILLISECONDS.ordinal()] = 3;
              iArr[TimeUnit.SECONDS.ordinal()] = 4;
              iArr[TimeUnit.MINUTES.ordinal()] = 5;
              iArr[TimeUnit.HOURS.ordinal()] = 6;
              iArr[TimeUnit.DAYS.ordinal()] = 7;
              $EnumSwitchMapping$0 = iArr;
          }
      }
  
      public static final double convertDurationUnit(double value, DurationUnit sourceUnit, DurationUnit targetUnit) {
          Intrinsics.checkNotNullParameter(sourceUnit, "sourceUnit");
          Intrinsics.checkNotNullParameter(targetUnit, "targetUnit");
          long convert = targetUnit.getTimeUnit$kotlin_stdlib().convert(1, sourceUnit.getTimeUnit$kotlin_stdlib());
          return convert > 0 ? ((double) convert) * value : value / ((double) sourceUnit.getTimeUnit$kotlin_stdlib().convert(1, targetUnit.getTimeUnit$kotlin_stdlib()));
      }
  
      public static final long convertDurationUnit(long value, DurationUnit sourceUnit, DurationUnit targetUnit) {
          Intrinsics.checkNotNullParameter(sourceUnit, "sourceUnit");
          Intrinsics.checkNotNullParameter(targetUnit, "targetUnit");
          return targetUnit.getTimeUnit$kotlin_stdlib().convert(value, sourceUnit.getTimeUnit$kotlin_stdlib());
      }
  
      public static final long convertDurationUnitOverflow(long value, DurationUnit sourceUnit, DurationUnit targetUnit) {
          Intrinsics.checkNotNullParameter(sourceUnit, "sourceUnit");
          Intrinsics.checkNotNullParameter(targetUnit, "targetUnit");
          return targetUnit.getTimeUnit$kotlin_stdlib().convert(value, sourceUnit.getTimeUnit$kotlin_stdlib());
      }
  
      public static final DurationUnit toDurationUnit(TimeUnit $this$toDurationUnit) {
          Intrinsics.checkNotNullParameter($this$toDurationUnit, "<this>");
          switch (WhenMappings.$EnumSwitchMapping$0[$this$toDurationUnit.ordinal()]) {
              case 1:
                  return DurationUnit.NANOSECONDS;
              case 2:
                  return DurationUnit.MICROSECONDS;
              case 3:
                  return DurationUnit.MILLISECONDS;
              case 4:
                  return DurationUnit.SECONDS;
              case 5:
                  return DurationUnit.MINUTES;
              case 6:
                  return DurationUnit.HOURS;
              case 7:
                  return DurationUnit.DAYS;
              default:
                  throw new NoWhenBranchMatchedException();
          }
      }
  
      public static final TimeUnit toTimeUnit(DurationUnit $this$toTimeUnit) {
          Intrinsics.checkNotNullParameter($this$toTimeUnit, "<this>");
          return $this$toTimeUnit.getTimeUnit$kotlin_stdlib();
      }
  }
  