content: package androidx.core.net;
  
  import android.net.Uri;
  import java.io.File;
  import kotlin.Metadata;
  import kotlin.jvm.internal.Intrinsics;
  
  @Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\n\u0010\u0000\u001a\u00020\u0001*\u00020\u0002\u001a\r\u0010\u0003\u001a\u00020\u0002*\u00020\u0001H\b\u001a\r\u0010\u0003\u001a\u00020\u0002*\u00020\u0004H\b¨\u0006\u0005"}, d2 = {"toFile", "Ljava/io/File;", "Landroid/net/Uri;", "toUri", "", "core-ktx_release"}, k = 2, mv = {1, 6, 0}, xi = 48)
  /* compiled from: Uri.kt */
  public final class UriKt {
      public static final File toFile(Uri $this$toFile) {
          Intrinsics.checkNotNullParameter($this$toFile, "<this>");
          if (Intrinsics.areEqual((Object) $this$toFile.getScheme(), (Object) "file")) {
              String path = $this$toFile.getPath();
              if (path != null) {
                  return new File(path);
              }
              throw new IllegalArgumentException(("Uri path is null: " + $this$toFile).toString());
          }
          throw new IllegalArgumentException(("Uri lacks 'file' scheme: " + $this$toFile).toString());
      }
  
      public static final Uri toUri(File $this$toUri) {
          Intrinsics.checkNotNullParameter($this$toUri, "<this>");
          Uri fromFile = Uri.fromFile($this$toUri);
          Intrinsics.checkNotNullExpressionValue(fromFile, "fromFile(this)");
          return fromFile;
      }
  
      public static final Uri toUri(String $this$toUri) {
          Intrinsics.checkNotNullParameter($this$toUri, "<this>");
          Uri parse = Uri.parse($this$toUri);
          Intrinsics.checkNotNullExpressionValue(parse, "parse(this)");
          return parse;
      }
  }
  