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 javax.imageio.*;
import java.math.*;
import static x30_pkg.x30_util.DynamicObject;
import javax.swing.undo.UndoManager;
import java.awt.datatransfer.StringSelection;
import javax.imageio.metadata.*;
import javax.imageio.stream.*;
import java.text.SimpleDateFormat;
import java.nio.charset.Charset;
import java.awt.geom.*;
import java.text.NumberFormat;
class main {
static LiveValue dm_calculatedLiveValue(final DynModule module, final Class type, final F0 calc) {
Lock __0 = module.lock; lock(__0); try {
final SimpleLiveValue value = new SimpleLiveValue(type, callF(calc));
module.onChange(new Runnable() { public void run() { try { value.set(callF(calc)) ;
} catch (Exception __e) { throw rethrow(__e); } } public String toString() { return "value.set(callF(calc))"; }});
return value;
} finally { unlock(__0); } }
static LiveValue dm_calculatedLiveValue(Class type, F0 calc) {
return dm_calculatedLiveValue(dm_current_mandatory(), type, calc);
}
static LiveValue dm_calculatedLiveValue(Class type, IF0 calc) {
return dm_calculatedLiveValue(type, if0ToF0(calc));
}
static LiveValue