import java.util.*; import java.util.zip.*; import java.util.List; import java.util.regex.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import java.util.concurrent.locks.*; import java.util.function.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.text.*; import javax.swing.table.*; import java.io.*; import java.net.*; import java.lang.reflect.*; import java.lang.ref.*; import java.lang.management.*; import java.security.*; import java.security.spec.*; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.awt.geom.*; import javax.imageio.*; import java.math.*; import java.time.Duration; import java.lang.invoke.VarHandle; import java.lang.invoke.MethodHandles; import org.apache.commons.compress.compressors.*; class main { static byte[] bunzipBytes(byte[] data) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); copyStreamAndCloseAll(bunzip2stream(new ByteArrayInputStream(data)), baos); return baos.toByteArray(); } static byte[] bunzipBytes(File file) { ByteArrayOutputStream baos = new ByteArrayOutputStream(); copyStreamAndCloseAll(bunzip2stream(file), baos); return baos.toByteArray(); } static void copyStreamAndCloseAll(InputStream in, OutputStream out) { try { try { copyStreamAndCloseInput(in, out); } finally { out.close(); } } catch (Exception __e) { throw rethrow(__e); } } // apache commons compress static CompressorInputStream bunzip2stream(InputStream in) { try { BufferedInputStream buf = in instanceof BufferedInputStream ? (BufferedInputStream) in : new BufferedInputStream(in); return new CompressorStreamFactory().createCompressorInputStream(buf); } catch (Exception __e) { throw rethrow(__e); } } static CompressorInputStream bunzip2stream(File f) { try { return bunzip2stream(newFileInputStream(f)); } catch (Exception __e) { throw rethrow(__e); } } static void copyStreamAndCloseInput(InputStream in, OutputStream out) { try { try { copyStream(in, out); } finally { in.close(); } } catch (Exception __e) { throw rethrow(__e); } } static RuntimeException rethrow(Throwable t) { if (t instanceof Error) _handleError((Error) t); throw t instanceof RuntimeException ? (RuntimeException) t : new RuntimeException(t); } static RuntimeException rethrow(String msg, Throwable t) { throw new RuntimeException(msg, t); } static FileInputStream newFileInputStream(File path) throws IOException { return newFileInputStream(path.getPath()); } static FileInputStream newFileInputStream(String path) throws IOException { FileInputStream f = new FileInputStream(path); _registerIO(f, path, true); return f; } static void copyStream(InputStream in, OutputStream out) { try { byte[] buf = new byte[65536]; while (true) { int n = in.read(buf); if (n <= 0) return; out.write(buf, 0, n); } } catch (Exception __e) { throw rethrow(__e); } } static void _handleError(Error e) { //call(javax(), '_handleError, e); } static void _registerIO(Object object, String path, boolean opened) { } }