function structuredClone(val) {
    var output = JSON.parse(JSON.stringify(val));
    if (window.pywebview.api.debug_mode) { console.log(("structuredClone:" + val) + " => " + outval); }
    return output;
}