🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@rhcp/mimir_transforms_web

Package Overview
Dependencies
Maintainers
7
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rhcp/mimir_transforms_web - npm Package Compare versions

Comparing version

to
0.8.0

452

mimir_transforms.d.ts
/* tslint:disable */
/* eslint-disable */
/**
* Replace invalid markdown headings such as '#Title' and '# Title #' with CommonMark-compliant '# Title' in a string.
* @param {string} input
* @returns {string}
*/
* Replace invalid markdown headings such as '#Title' and '# Title #' with CommonMark-compliant '# Title' in a string.
*/
export function headingHash(input: string): string;
/**
* Replace Markdown fenced code blocks marked by ~~~ with ```.
* @param {string} input
* @returns {string}
*/
* Replace Markdown fenced code blocks marked by ~~~ with ```.
*/
export function detilde(input: string): string;
/**
* Replace Drupal 7's custom image shortcodes with `<img>` tags. The custom image shortcodes look
* like this: `[image=[src="images/case.png", alt="cs2", size="LG - Large", data-cp-size="100%", ]]`
* @param {string} input
* @returns {string}
*/
* Replace Drupal 7's custom image shortcodes with `<img>` tags. The custom image shortcodes look
* like this: `[image=[src="images/case.png", alt="cs2", size="LG - Large", data-cp-size="100%", ]]`
*/
export function imageShortcode(input: string): string;
/**
* Pew pew. Fix some Markdown syntax by giving HTML elements inside Markdown some breathing room.
*
* spaceInvader adds newlines around _top-level_ HTML elements. This fixes many
* php-markdown-extra conflicts with CommonMark, since CommonMark wants empty lines around many
* markdown structures, lest they be considered part of the HTML block itself.
*
* Before:
*
* ```markdown
* <hr>
* # Heading
* <marquee>WHEEEEEE</marquee>
* - item 1
* - item 2
* ```
*
* After:
*
* ```markdown
* <hr>
*
* # Heading
*
* <marquee>WHEEEEEE</marquee>
*
* - item 1
* - item 2
* ```
* @param {string} input
* @returns {string}
*/
* Pew pew. Fix some Markdown syntax by giving HTML elements inside Markdown some breathing room.
*
* spaceInvader adds newlines around _top-level_ HTML elements. This fixes many
* php-markdown-extra conflicts with CommonMark, since CommonMark wants empty lines around many
* markdown structures, lest they be considered part of the HTML block itself.
*
* Before:
*
* ```markdown
* <hr>
* # Heading
* <marquee>WHEEEEEE</marquee>
* - item 1
* - item 2
* ```
*
* After:
*
* ```markdown
* <hr>
*
* # Heading
*
* <marquee>WHEEEEEE</marquee>
*
* - item 1
* - item 2
* ```
*/
export function spaceInvader(input: string): string;
/**
* Update an HTML string to use the `<rh-alert>` component instead of the older style `<div class="admonition">`.
*
* Before:
*
* ```html
* <div class="admonition">
* <div class="admonition_header">Header text</div>
* Body text
* </div>
* ```
*
* After:
*
* ```html
* <rh-alert class="admonition" state="info">
* <div class="admonition_header" slot="header">Header text</div>
* Body text
* </rh-alert>
* ```
* @param {string} input
* @returns {string}
*/
* Update an HTML string to use the `<rh-alert>` component instead of the older style `<div class="admonition">`.
*
* Before:
*
* ```html
* <div class="admonition">
* <div class="admonition_header">Header text</div>
* Body text
* </div>
* ```
*
* After:
*
* ```html
* <rh-alert class="admonition" state="info">
* <div class="admonition_header" slot="header">Header text</div>
* Body text
* </rh-alert>
* ```
*/
export function admonish(input: string): string;
/**
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
*/
export function preclude(input: string): string;
/**
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
*/
export function turnKeys(input: string): string;
/**
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
* @param {string} input
* @returns {string}
*/
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
*/
export function bumpHeads(input: string): string;
/**
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
* @param {string} input
* @returns {string}
*/
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
*/
export function tableIt(input: string): string;
/**
* Handler for `console.log` invocations.
*
* If a test is currently running it takes the `args` array and stringifies
* it and appends it to the current output of the test. Otherwise it passes
* the arguments to the original `console.log` function, psased as
* `original`.
* @param {Array<any>} args
*/
* Handler for `console.log` invocations.
*
* If a test is currently running it takes the `args` array and stringifies
* it and appends it to the current output of the test. Otherwise it passes
* the arguments to the original `console.log` function, psased as
* `original`.
*/
export function __wbgtest_console_log(args: Array<any>): void;
/**
* Handler for `console.debug` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.debug` invocations. See above.
*/
export function __wbgtest_console_debug(args: Array<any>): void;
/**
* Handler for `console.info` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.info` invocations. See above.
*/
export function __wbgtest_console_info(args: Array<any>): void;
/**
* Handler for `console.warn` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.warn` invocations. See above.
*/
export function __wbgtest_console_warn(args: Array<any>): void;
/**
* Handler for `console.error` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.error` invocations. See above.
*/
export function __wbgtest_console_error(args: Array<any>): void;
export function __wbgtest_cov_dump(): Uint8Array | undefined;
/**
* Runtime test harness support instantiated in JS.
*
* The node.js entry script instantiates a `Context` here which is used to
* drive test execution.
*/
* Runtime test harness support instantiated in JS.
*
* The node.js entry script instantiates a `Context` here which is used to
* drive test execution.
*/
export class WasmBindgenTestContext {
free(): void;
/**
* Creates a new context ready to run tests.
*
* A `Context` is the main structure through which test execution is
* coordinated, and this will collect output and results for all executed
* tests.
*/
/**
* Creates a new context ready to run tests.
*
* A `Context` is the main structure through which test execution is
* coordinated, and this will collect output and results for all executed
* tests.
*/
constructor();
/**
* Inform this context about runtime arguments passed to the test
* harness.
* @param {any[]} args
*/
args(args: any[]): void;
/**
* Executes a list of tests, returning a promise representing their
* eventual completion.
*
* This is the main entry point for executing tests. All the tests passed
* in are the JS `Function` object that was plucked off the
* `WebAssembly.Instance` exports list.
*
* The promise returned resolves to either `true` if all tests passed or
* `false` if at least one test failed.
* @param {any[]} tests
* @returns {Promise<any>}
*/
/**
* Handle `--include-ignored` flag.
*/
include_ignored(include_ignored: boolean): void;
/**
* Handle filter argument.
*/
filtered_count(filtered: number): void;
/**
* Executes a list of tests, returning a promise representing their
* eventual completion.
*
* This is the main entry point for executing tests. All the tests passed
* in are the JS `Function` object that was plucked off the
* `WebAssembly.Instance` exports list.
*
* The promise returned resolves to either `true` if all tests passed or
* `false` if at least one test failed.
*/
run(tests: any[]): Promise<any>;

@@ -250,29 +228,33 @@ }

readonly memory: WebAssembly.Memory;
readonly headingHash: (a: number, b: number, c: number) => void;
readonly detilde: (a: number, b: number, c: number) => void;
readonly imageShortcode: (a: number, b: number, c: number) => void;
readonly spaceInvader: (a: number, b: number, c: number) => void;
readonly admonish: (a: number, b: number, c: number) => void;
readonly preclude: (a: number, b: number, c: number) => void;
readonly turnKeys: (a: number, b: number, c: number) => void;
readonly bumpHeads: (a: number, b: number, c: number) => void;
readonly tableIt: (a: number, b: number, c: number) => void;
readonly __wbg_wasmbindgentestcontext_free: (a: number) => void;
readonly headingHash: (a: number, b: number) => [number, number];
readonly detilde: (a: number, b: number) => [number, number];
readonly imageShortcode: (a: number, b: number) => [number, number];
readonly spaceInvader: (a: number, b: number) => [number, number];
readonly admonish: (a: number, b: number) => [number, number];
readonly preclude: (a: number, b: number) => [number, number];
readonly turnKeys: (a: number, b: number) => [number, number];
readonly bumpHeads: (a: number, b: number) => [number, number];
readonly tableIt: (a: number, b: number) => [number, number];
readonly __wbg_wasmbindgentestcontext_free: (a: number, b: number) => void;
readonly wasmbindgentestcontext_new: () => number;
readonly wasmbindgentestcontext_args: (a: number, b: number, c: number) => void;
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => number;
readonly __wbgtest_console_log: (a: number) => void;
readonly __wbgtest_console_debug: (a: number) => void;
readonly __wbgtest_console_info: (a: number) => void;
readonly __wbgtest_console_warn: (a: number) => void;
readonly __wbgtest_console_error: (a: number) => void;
readonly wasmbindgentestcontext_include_ignored: (a: number, b: number) => void;
readonly wasmbindgentestcontext_filtered_count: (a: number, b: number) => void;
readonly wasmbindgentestcontext_run: (a: number, b: number, c: number) => any;
readonly __wbgtest_console_log: (a: any) => void;
readonly __wbgtest_console_debug: (a: any) => void;
readonly __wbgtest_console_info: (a: any) => void;
readonly __wbgtest_console_warn: (a: any) => void;
readonly __wbgtest_console_error: (a: any) => void;
readonly __wbgtest_cov_dump: () => [number, number];
readonly __externref_table_alloc: () => number;
readonly __wbindgen_export_1: WebAssembly.Table;
readonly __wbindgen_malloc: (a: number, b: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b4369a9a51cd2bd: (a: number, b: number, c: number) => void;
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
readonly wasm_bindgen__convert__closures__invoke3_mut__h004339084d1b98c8: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h9ca762a85c665cbc: (a: number, b: number, c: number, d: number) => void;
readonly __wbindgen_export_6: WebAssembly.Table;
readonly closure52_externref_shim: (a: number, b: number, c: any) => void;
readonly closure61_externref_shim: (a: number, b: number, c: any, d: number, e: any) => void;
readonly closure65_externref_shim: (a: number, b: number, c: any, d: any) => void;
readonly __wbindgen_start: () => void;
}

@@ -285,7 +267,7 @@

*
* @param {SyncInitInput} module
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
*
* @returns {InitOutput}
*/
export function initSync(module: SyncInitInput): InitOutput;
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;

@@ -296,6 +278,6 @@ /**

*
* @param {InitInput | Promise<InitInput>} module_or_path
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
*
* @returns {Promise<InitOutput>}
*/
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
let wasm;
const heap = new Array(128).fill(undefined);
heap.push(undefined, null, true, false);
function getObject(idx) { return heap[idx]; }
let heap_next = heap.length;
function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
function isLikeNone(x) {
return x === undefined || x === null;
}
function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
function addToExternrefTable0(obj) {
const idx = wasm.__externref_table_alloc();
wasm.__wbindgen_export_1.set(idx, obj);
return idx;
}

@@ -25,9 +15,9 @@

let cachedUint8Memory0 = null;
let cachedUint8ArrayMemory0 = null;
function getUint8Memory0() {
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
cachedUint8Memory0 = new Uint8Array(wasm.memory.buffer);
function getUint8ArrayMemory0() {
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
}
return cachedUint8Memory0;
return cachedUint8ArrayMemory0;
}

@@ -55,3 +45,3 @@

const ptr = malloc(buf.length, 1) >>> 0;
getUint8Memory0().subarray(ptr, ptr + buf.length).set(buf);
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
WASM_VECTOR_LEN = buf.length;

@@ -64,3 +54,3 @@ return ptr;

const mem = getUint8Memory0();
const mem = getUint8ArrayMemory0();

@@ -80,3 +70,3 @@ let offset = 0;

ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
const view = getUint8Memory0().subarray(ptr + offset, ptr + len);
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
const ret = encodeString(arg, view);

@@ -92,22 +82,18 @@

function isLikeNone(x) {
return x === undefined || x === null;
}
let cachedDataViewMemory0 = null;
let cachedInt32Memory0 = null;
function getInt32Memory0() {
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
function getDataViewMemory0() {
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
}
return cachedInt32Memory0;
return cachedDataViewMemory0;
}
function addHeapObject(obj) {
if (heap_next === heap.length) heap.push(heap.length + 1);
const idx = heap_next;
heap_next = heap[idx];
heap[idx] = obj;
return idx;
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
const idx = addToExternrefTable0(e);
wasm.__wbindgen_exn_store(idx);
}
}

@@ -121,3 +107,3 @@

ptr = ptr >>> 0;
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
}

@@ -128,3 +114,3 @@

: new FinalizationRegistry(state => {
wasm.__wbindgen_export_2.get(state.dtor)(state.a, state.b)
wasm.__wbindgen_export_6.get(state.dtor)(state.a, state.b)
});

@@ -145,3 +131,3 @@

if (--state.cnt === 0) {
wasm.__wbindgen_export_2.get(state.dtor)(a, state.b);
wasm.__wbindgen_export_6.get(state.dtor)(a, state.b);
CLOSURE_DTORS.unregister(state);

@@ -157,11 +143,7 @@ } else {

}
function __wbg_adapter_20(arg0, arg1, arg2) {
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h0b4369a9a51cd2bd(arg0, arg1, addHeapObject(arg2));
}
/**
* Replace invalid markdown headings such as '#Title' and '# Title #' with CommonMark-compliant '# Title' in a string.
* @param {string} input
* @returns {string}
*/
* Replace invalid markdown headings such as '#Title' and '# Title #' with CommonMark-compliant '# Title' in a string.
* @param {string} input
* @returns {string}
*/
export function headingHash(input) {

@@ -171,13 +153,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.headingHash(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.headingHash(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -188,6 +166,6 @@ }

/**
* Replace Markdown fenced code blocks marked by ~~~ with ```.
* @param {string} input
* @returns {string}
*/
* Replace Markdown fenced code blocks marked by ~~~ with ```.
* @param {string} input
* @returns {string}
*/
export function detilde(input) {

@@ -197,13 +175,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.detilde(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.detilde(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -214,7 +188,7 @@ }

/**
* Replace Drupal 7's custom image shortcodes with `<img>` tags. The custom image shortcodes look
* like this: `[image=[src="images/case.png", alt="cs2", size="LG - Large", data-cp-size="100%", ]]`
* @param {string} input
* @returns {string}
*/
* Replace Drupal 7's custom image shortcodes with `<img>` tags. The custom image shortcodes look
* like this: `[image=[src="images/case.png", alt="cs2", size="LG - Large", data-cp-size="100%", ]]`
* @param {string} input
* @returns {string}
*/
export function imageShortcode(input) {

@@ -224,13 +198,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.imageShortcode(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.imageShortcode(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -241,33 +211,33 @@ }

/**
* Pew pew. Fix some Markdown syntax by giving HTML elements inside Markdown some breathing room.
*
* spaceInvader adds newlines around _top-level_ HTML elements. This fixes many
* php-markdown-extra conflicts with CommonMark, since CommonMark wants empty lines around many
* markdown structures, lest they be considered part of the HTML block itself.
*
* Before:
*
* ```markdown
* <hr>
* # Heading
* <marquee>WHEEEEEE</marquee>
* - item 1
* - item 2
* ```
*
* After:
*
* ```markdown
* <hr>
*
* # Heading
*
* <marquee>WHEEEEEE</marquee>
*
* - item 1
* - item 2
* ```
* @param {string} input
* @returns {string}
*/
* Pew pew. Fix some Markdown syntax by giving HTML elements inside Markdown some breathing room.
*
* spaceInvader adds newlines around _top-level_ HTML elements. This fixes many
* php-markdown-extra conflicts with CommonMark, since CommonMark wants empty lines around many
* markdown structures, lest they be considered part of the HTML block itself.
*
* Before:
*
* ```markdown
* <hr>
* # Heading
* <marquee>WHEEEEEE</marquee>
* - item 1
* - item 2
* ```
*
* After:
*
* ```markdown
* <hr>
*
* # Heading
*
* <marquee>WHEEEEEE</marquee>
*
* - item 1
* - item 2
* ```
* @param {string} input
* @returns {string}
*/
export function spaceInvader(input) {

@@ -277,13 +247,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.spaceInvader(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.spaceInvader(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -294,24 +260,24 @@ }

/**
* Update an HTML string to use the `<rh-alert>` component instead of the older style `<div class="admonition">`.
*
* Before:
*
* ```html
* <div class="admonition">
* <div class="admonition_header">Header text</div>
* Body text
* </div>
* ```
*
* After:
*
* ```html
* <rh-alert class="admonition" state="info">
* <div class="admonition_header" slot="header">Header text</div>
* Body text
* </rh-alert>
* ```
* @param {string} input
* @returns {string}
*/
* Update an HTML string to use the `<rh-alert>` component instead of the older style `<div class="admonition">`.
*
* Before:
*
* ```html
* <div class="admonition">
* <div class="admonition_header">Header text</div>
* Body text
* </div>
* ```
*
* After:
*
* ```html
* <rh-alert class="admonition" state="info">
* <div class="admonition_header" slot="header">Header text</div>
* Body text
* </rh-alert>
* ```
* @param {string} input
* @returns {string}
*/
export function admonish(input) {

@@ -321,13 +287,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.admonish(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.admonish(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -338,24 +300,24 @@ }

/**
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
* Update an HTML string to use the `<rh-code-block>` component instead of `<pre>`.
*
* Before:
*
* ```html
* <pre>
* #define PI 3.14
* </pre>
* ```
*
* After:
*
* ```html
* <rh-code-block>
* <script type=text/plain>
* #define PI 3.14
* </script>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function preclude(input) {

@@ -365,13 +327,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.preclude(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.preclude(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -382,23 +340,23 @@ }

/**
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
* Replaces <span class="keycap"> elements with <kbd> tags
*
* Before:
*
* ```html
* <span class="keycap">
* <strong>Tab</strong>
* </span>
* ```
*
* After:
*
* ```html
* <kbd class="keycap">
* Tab
* </kbd>
* </rh-code-block>
* ```
* @param {string} input
* @returns {string}
*/
export function turnKeys(input) {

@@ -408,13 +366,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.turnKeys(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.turnKeys(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -425,22 +379,22 @@ }

/**
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
* @param {string} input
* @returns {string}
*/
* "Replaces all <h*> tags with the next level down in the hierarchy for single-page Docs HTML files
*
* Before:
*
* ```html
* <h2 class="subtitle">
* Highlighted features in 11.2
* </h2>
* ```
*
* After:
*
* ```html
* <h3 class="subtitle">
* Highlighted features in 11.2
* </h3>
* ```
* @param {string} input
* @returns {string}
*/
export function bumpHeads(input) {

@@ -450,13 +404,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.bumpHeads(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.bumpHeads(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -467,30 +417,30 @@ }

/**
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
* @param {string} input
* @returns {string}
*/
* Replaces <div.table> with <rh-table>.
* Applies a <caption> to the table if it has a <p.title>.
*
* Before:
*
* ```html
* <div class="table">
* <p class="title"><strong>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</strong></p>
* <table>
* <colgroup>
* </colgroup>
* </table>
* </div>
* ```
*
* After:
*
* ```html
* <rh-table>
* <table><caption>Table&nbsp;1.1.&nbsp;Decision-authoring assets supported in Red Hat Decision Manager</caption>
* <colgroup>
* </colgroup>
* </table>
* </rh-table>
* ```
* @param {string} input
* @returns {string}
*/
export function tableIt(input) {

@@ -500,13 +450,9 @@ let deferred2_0;

try {
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
const ptr0 = passStringToWasm0(input, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len0 = WASM_VECTOR_LEN;
wasm.tableIt(retptr, ptr0, len0);
var r0 = getInt32Memory0()[retptr / 4 + 0];
var r1 = getInt32Memory0()[retptr / 4 + 1];
deferred2_0 = r0;
deferred2_1 = r1;
return getStringFromWasm0(r0, r1);
const ret = wasm.tableIt(ptr0, len0);
deferred2_0 = ret[0];
deferred2_1 = ret[1];
return getStringFromWasm0(ret[0], ret[1]);
} finally {
wasm.__wbindgen_add_to_stack_pointer(16);
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);

@@ -516,16 +462,7 @@ }

let cachedUint32Memory0 = null;
function getUint32Memory0() {
if (cachedUint32Memory0 === null || cachedUint32Memory0.byteLength === 0) {
cachedUint32Memory0 = new Uint32Array(wasm.memory.buffer);
}
return cachedUint32Memory0;
}
function passArrayJsValueToWasm0(array, malloc) {
const ptr = malloc(array.length * 4, 4) >>> 0;
const mem = getUint32Memory0();
for (let i = 0; i < array.length; i++) {
mem[ptr / 4 + i] = addHeapObject(array[i]);
const add = addToExternrefTable0(array[i]);
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
}

@@ -535,88 +472,74 @@ WASM_VECTOR_LEN = array.length;

}
let stack_pointer = 128;
function addBorrowedObject(obj) {
if (stack_pointer == 1) throw new Error('out of js stack');
heap[--stack_pointer] = obj;
return stack_pointer;
}
/**
* Handler for `console.log` invocations.
*
* If a test is currently running it takes the `args` array and stringifies
* it and appends it to the current output of the test. Otherwise it passes
* the arguments to the original `console.log` function, psased as
* `original`.
* @param {Array<any>} args
*/
* Handler for `console.log` invocations.
*
* If a test is currently running it takes the `args` array and stringifies
* it and appends it to the current output of the test. Otherwise it passes
* the arguments to the original `console.log` function, psased as
* `original`.
* @param {Array<any>} args
*/
export function __wbgtest_console_log(args) {
try {
wasm.__wbgtest_console_log(addBorrowedObject(args));
} finally {
heap[stack_pointer++] = undefined;
}
wasm.__wbgtest_console_log(args);
}
/**
* Handler for `console.debug` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.debug` invocations. See above.
* @param {Array<any>} args
*/
export function __wbgtest_console_debug(args) {
try {
wasm.__wbgtest_console_debug(addBorrowedObject(args));
} finally {
heap[stack_pointer++] = undefined;
}
wasm.__wbgtest_console_debug(args);
}
/**
* Handler for `console.info` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.info` invocations. See above.
* @param {Array<any>} args
*/
export function __wbgtest_console_info(args) {
try {
wasm.__wbgtest_console_info(addBorrowedObject(args));
} finally {
heap[stack_pointer++] = undefined;
}
wasm.__wbgtest_console_info(args);
}
/**
* Handler for `console.warn` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.warn` invocations. See above.
* @param {Array<any>} args
*/
export function __wbgtest_console_warn(args) {
try {
wasm.__wbgtest_console_warn(addBorrowedObject(args));
} finally {
heap[stack_pointer++] = undefined;
}
wasm.__wbgtest_console_warn(args);
}
/**
* Handler for `console.error` invocations. See above.
* @param {Array<any>} args
*/
* Handler for `console.error` invocations. See above.
* @param {Array<any>} args
*/
export function __wbgtest_console_error(args) {
try {
wasm.__wbgtest_console_error(addBorrowedObject(args));
} finally {
heap[stack_pointer++] = undefined;
wasm.__wbgtest_console_error(args);
}
function getArrayU8FromWasm0(ptr, len) {
ptr = ptr >>> 0;
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
}
/**
* @returns {Uint8Array | undefined}
*/
export function __wbgtest_cov_dump() {
const ret = wasm.__wbgtest_cov_dump();
let v1;
if (ret[0] !== 0) {
v1 = getArrayU8FromWasm0(ret[0], ret[1]).slice();
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
}
return v1;
}
function __wbg_adapter_74(arg0, arg1, arg2, arg3, arg4) {
wasm.wasm_bindgen__convert__closures__invoke3_mut__h004339084d1b98c8(arg0, arg1, addHeapObject(arg2), arg3, addHeapObject(arg4));
function __wbg_adapter_22(arg0, arg1, arg2) {
wasm.closure52_externref_shim(arg0, arg1, arg2);
}
function handleError(f, args) {
try {
return f.apply(this, args);
} catch (e) {
wasm.__wbindgen_exn_store(addHeapObject(e));
}
function __wbg_adapter_92(arg0, arg1, arg2, arg3, arg4) {
wasm.closure61_externref_shim(arg0, arg1, arg2, arg3, arg4);
}
function __wbg_adapter_87(arg0, arg1, arg2, arg3) {
wasm.wasm_bindgen__convert__closures__invoke2_mut__h9ca762a85c665cbc(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
function __wbg_adapter_105(arg0, arg1, arg2, arg3) {
wasm.closure65_externref_shim(arg0, arg1, arg2, arg3);
}

@@ -626,9 +549,9 @@

? { register: () => {}, unregister: () => {} }
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0));
: new FinalizationRegistry(ptr => wasm.__wbg_wasmbindgentestcontext_free(ptr >>> 0, 1));
/**
* Runtime test harness support instantiated in JS.
*
* The node.js entry script instantiates a `Context` here which is used to
* drive test execution.
*/
* Runtime test harness support instantiated in JS.
*
* The node.js entry script instantiates a `Context` here which is used to
* drive test execution.
*/
export class WasmBindgenTestContext {

@@ -645,39 +568,44 @@

const ptr = this.__destroy_into_raw();
wasm.__wbg_wasmbindgentestcontext_free(ptr);
wasm.__wbg_wasmbindgentestcontext_free(ptr, 0);
}
/**
* Creates a new context ready to run tests.
*
* A `Context` is the main structure through which test execution is
* coordinated, and this will collect output and results for all executed
* tests.
*/
* Creates a new context ready to run tests.
*
* A `Context` is the main structure through which test execution is
* coordinated, and this will collect output and results for all executed
* tests.
*/
constructor() {
const ret = wasm.wasmbindgentestcontext_new();
this.__wbg_ptr = ret >>> 0;
WasmBindgenTestContextFinalization.register(this, this.__wbg_ptr, this);
return this;
}
/**
* Inform this context about runtime arguments passed to the test
* harness.
* @param {any[]} args
*/
args(args) {
const ptr0 = passArrayJsValueToWasm0(args, wasm.__wbindgen_malloc);
const len0 = WASM_VECTOR_LEN;
wasm.wasmbindgentestcontext_args(this.__wbg_ptr, ptr0, len0);
* Handle `--include-ignored` flag.
* @param {boolean} include_ignored
*/
include_ignored(include_ignored) {
wasm.wasmbindgentestcontext_include_ignored(this.__wbg_ptr, include_ignored);
}
/**
* Executes a list of tests, returning a promise representing their
* eventual completion.
*
* This is the main entry point for executing tests. All the tests passed
* in are the JS `Function` object that was plucked off the
* `WebAssembly.Instance` exports list.
*
* The promise returned resolves to either `true` if all tests passed or
* `false` if at least one test failed.
* @param {any[]} tests
* @returns {Promise<any>}
*/
* Handle filter argument.
* @param {number} filtered
*/
filtered_count(filtered) {
wasm.wasmbindgentestcontext_filtered_count(this.__wbg_ptr, filtered);
}
/**
* Executes a list of tests, returning a promise representing their
* eventual completion.
*
* This is the main entry point for executing tests. All the tests passed
* in are the JS `Function` object that was plucked off the
* `WebAssembly.Instance` exports list.
*
* The promise returned resolves to either `true` if all tests passed or
* `false` if at least one test failed.
* @param {any[]} tests
* @returns {Promise<any>}
*/
run(tests) {

@@ -687,3 +615,3 @@ const ptr0 = passArrayJsValueToWasm0(tests, wasm.__wbindgen_malloc);

const ret = wasm.wasmbindgentestcontext_run(this.__wbg_ptr, ptr0, len0);
return takeObject(ret);
return ret;
}

@@ -700,3 +628,3 @@ }

if (module.headers.get('Content-Type') != 'application/wasm') {
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);

@@ -727,110 +655,202 @@ } else {

imports.wbg = {};
imports.wbg.__wbindgen_object_drop_ref = function(arg0) {
takeObject(arg0);
imports.wbg.__wbg_Deno_5e0f323eeba20aa4 = function(arg0) {
const ret = arg0.Deno;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_log_28eee4e6432efd24 = function(arg0, arg1) {
imports.wbg.__wbg_String_6f4330ab5fd77ef6 = function(arg0, arg1) {
const ret = String(arg1);
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
const ret = arg0.call(arg1);
return ret;
}, arguments) };
imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = arg0.call(arg1, arg2);
return ret;
}, arguments) };
imports.wbg.__wbg_constructor_75c512bc262c1ab2 = function(arg0) {
const ret = arg0.constructor;
return ret;
};
imports.wbg.__wbg_error_7534b8e9a36f1ab4 = function(arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
};
imports.wbg.__wbg_error_f19acdc6b5fafb26 = function(arg0, arg1) {
console.error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_forEach_d6a05ca96422eff9 = function(arg0, arg1, arg2) {
try {
var state0 = {a: arg1, b: arg2};
var cb0 = (arg0, arg1, arg2) => {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_92(a, state0.b, arg0, arg1, arg2);
} finally {
state0.a = a;
}
};
arg0.forEach(cb0);
} finally {
state0.a = state0.b = 0;
}
};
imports.wbg.__wbg_getElementById_727e92dd724c370c = function(arg0, arg1, arg2) {
const ret = arg0.getElementById(getStringFromWasm0(arg1, arg2));
return ret;
};
imports.wbg.__wbg_log_e44e51045ea2863c = function(arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_String_55b8bdc4bc243677 = function(arg0, arg1) {
const ret = String(getObject(arg1));
imports.wbg.__wbg_message_97a2af9b89d693a3 = function(arg0) {
const ret = arg0.message;
return ret;
};
imports.wbg.__wbg_name_0b327d569f00ebee = function(arg0) {
const ret = arg0.name;
return ret;
};
imports.wbg.__wbg_name_ac50ab7b6b731bdc = function(arg0, arg1) {
const ret = arg1.name;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_getElementById_8458f2a6c28467dc = function(arg0, arg1, arg2) {
const ret = getObject(arg0).getElementById(getStringFromWasm0(arg1, arg2));
return addHeapObject(ret);
imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
try {
var state0 = {a: arg0, b: arg1};
var cb0 = (arg0, arg1) => {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_105(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
};
const ret = new Promise(cb0);
return ret;
} finally {
state0.a = state0.b = 0;
}
};
imports.wbg.__wbg_settextcontent_fc3ff485b96fcb1d = function(arg0, arg1, arg2) {
getObject(arg0).textContent = getStringFromWasm0(arg1, arg2);
imports.wbg.__wbg_new_78093c5bd701d017 = function() {
const ret = new Error();
return ret;
};
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = getObject(arg1);
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
imports.wbg.__wbg_new_8a6f238a6ece86ea = function() {
const ret = new Error();
return ret;
};
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return addHeapObject(ret);
imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return ret;
};
imports.wbg.__wbg_static_accessor_document_d4b6ae7f5578480f = function() {
const ret = document;
return addHeapObject(ret);
imports.wbg.__wbg_now_832024c17817dc01 = function(arg0) {
const ret = arg0.now();
return ret;
};
imports.wbg.__wbg_self_55106357ec10ecd4 = function(arg0) {
const ret = getObject(arg0).self;
return isLikeNone(ret) ? 0 : addHeapObject(ret);
imports.wbg.__wbg_performance_ae5e84dd26af6765 = function(arg0) {
const ret = arg0.performance;
return ret;
};
imports.wbg.__wbg_constructor_fd0d22d60b7dfd72 = function(arg0) {
const ret = getObject(arg0).constructor;
return addHeapObject(ret);
imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
queueMicrotask(arg0);
};
imports.wbg.__wbg_name_7f439d24ff7ba1d3 = function(arg0, arg1) {
const ret = getObject(arg1).name;
imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
const ret = arg0.queueMicrotask;
return ret;
};
imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
const ret = Promise.resolve(arg0);
return ret;
};
imports.wbg.__wbg_self_67c28212685dfde2 = function(arg0) {
const ret = arg0.self;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_settextcontent_4516425a935f461b = function(arg0, arg1, arg2) {
arg0.textContent = getStringFromWasm0(arg1, arg2);
};
imports.wbg.__wbg_stack_0ed75d68575b0f3c = function(arg0, arg1) {
const ret = arg1.stack;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
const ret = getObject(arg0);
return addHeapObject(ret);
};
imports.wbg.__wbg_stack_17c77e9f5bfe6714 = function(arg0, arg1) {
const ret = getObject(arg1).stack;
imports.wbg.__wbg_stack_54b23675007f71bb = function(arg0, arg1) {
const ret = arg1.stack;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_textcontent_67e4e811cbdf00fc = function(arg0, arg1) {
const ret = getObject(arg1).textContent;
imports.wbg.__wbg_stack_8e0a01ea26c1db11 = function(arg0, arg1) {
const ret = arg1.stack;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_stack_44743fb7d71926a0 = function(arg0) {
const ret = getObject(arg0).stack;
return addHeapObject(ret);
imports.wbg.__wbg_stack_d6edc2612f9df83f = function(arg0) {
const ret = arg0.stack;
return ret;
};
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
imports.wbg.__wbg_stack_f851a06e9c78be1d = function(arg0) {
const ret = arg0.stack;
return ret;
};
imports.wbg.__wbg_wbgtestoutputwriteln_4db3bd64914ec955 = function(arg0) {
__wbg_test_output_writeln(takeObject(arg0));
imports.wbg.__wbg_static_accessor_DOCUMENT_2badde8ae57cc9f7 = function() {
const ret = document;
return ret;
};
imports.wbg.__wbg_stack_436273c21658169b = function(arg0) {
const ret = getObject(arg0).stack;
return addHeapObject(ret);
imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
const ret = typeof global === 'undefined' ? null : global;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_new_abda76e883ba8a5f = function() {
const ret = new Error();
return addHeapObject(ret);
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
const ret = typeof globalThis === 'undefined' ? null : globalThis;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_stack_658279fe44541cf6 = function(arg0, arg1) {
const ret = getObject(arg1).stack;
imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
const ret = typeof self === 'undefined' ? null : self;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
const ret = typeof window === 'undefined' ? null : window;
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
};
imports.wbg.__wbg_textcontent_9581a1676431df94 = function(arg0, arg1) {
const ret = arg1.textContent;
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
const len1 = WASM_VECTOR_LEN;
getInt32Memory0()[arg0 / 4 + 1] = len1;
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_error_f851667af71bcfc6 = function(arg0, arg1) {
let deferred0_0;
let deferred0_1;
try {
deferred0_0 = arg0;
deferred0_1 = arg1;
console.error(getStringFromWasm0(arg0, arg1));
} finally {
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
}
imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
const ret = arg0.then(arg1);
return ret;
};
imports.wbg.__wbg_wbgtestogconsolelog_2c6a12219a99cdb3 = function(arg0, arg1) {
__wbgtest_og_console_log(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbg_wbgtestoutputwriteln_be640e64b2946d47 = function(arg0) {
__wbg_test_output_writeln(arg0);
};
imports.wbg.__wbindgen_cb_drop = function(arg0) {
const obj = takeObject(arg0).original;
const obj = arg0.original;
if (obj.cnt-- == 1) {

@@ -843,103 +863,43 @@ obj.a = 0;

};
imports.wbg.__wbg_queueMicrotask_481971b0d87f3dd4 = function(arg0) {
queueMicrotask(getObject(arg0));
imports.wbg.__wbindgen_closure_wrapper203 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 53, __wbg_adapter_22);
return ret;
};
imports.wbg.__wbg_queueMicrotask_3cbae2ec6b6cd3d6 = function(arg0) {
const ret = getObject(arg0).queueMicrotask;
return addHeapObject(ret);
imports.wbg.__wbindgen_init_externref_table = function() {
const table = wasm.__wbindgen_export_1;
const offset = table.grow(4);
table.set(0, undefined);
table.set(offset + 0, undefined);
table.set(offset + 1, null);
table.set(offset + 2, true);
table.set(offset + 3, false);
;
};
imports.wbg.__wbindgen_is_function = function(arg0) {
const ret = typeof(getObject(arg0)) === 'function';
const ret = typeof(arg0) === 'function';
return ret;
};
imports.wbg.__wbg_newnoargs_e258087cd0daa0ea = function(arg0, arg1) {
const ret = new Function(getStringFromWasm0(arg0, arg1));
return addHeapObject(ret);
};
imports.wbg.__wbg_call_27c0f87801dedf93 = function() { return handleError(function (arg0, arg1) {
const ret = getObject(arg0).call(getObject(arg1));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_self_ce0dbfc45cf2f5be = function() { return handleError(function () {
const ret = self.self;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_window_c6fb939a7f436783 = function() { return handleError(function () {
const ret = window.window;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_globalThis_d1e6af4856ba331b = function() { return handleError(function () {
const ret = globalThis.globalThis;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_global_207b558942527489 = function() { return handleError(function () {
const ret = global.global;
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbindgen_is_undefined = function(arg0) {
const ret = getObject(arg0) === undefined;
const ret = arg0 === undefined;
return ret;
};
imports.wbg.__wbg_forEach_2be8de7347d63332 = function(arg0, arg1, arg2) {
try {
var state0 = {a: arg1, b: arg2};
var cb0 = (arg0, arg1, arg2) => {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_74(a, state0.b, arg0, arg1, arg2);
} finally {
state0.a = a;
}
};
getObject(arg0).forEach(cb0);
} finally {
state0.a = state0.b = 0;
}
imports.wbg.__wbindgen_number_new = function(arg0) {
const ret = arg0;
return ret;
};
imports.wbg.__wbg_message_5bf28016c2b49cfb = function(arg0) {
const ret = getObject(arg0).message;
return addHeapObject(ret);
imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
const obj = arg1;
const ret = typeof(obj) === 'string' ? obj : undefined;
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
var len1 = WASM_VECTOR_LEN;
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
};
imports.wbg.__wbg_name_e7429f0dda6079e2 = function(arg0) {
const ret = getObject(arg0).name;
return addHeapObject(ret);
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
const ret = getStringFromWasm0(arg0, arg1);
return ret;
};
imports.wbg.__wbg_call_b3ca7c6051f9bec1 = function() { return handleError(function (arg0, arg1, arg2) {
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
return addHeapObject(ret);
}, arguments) };
imports.wbg.__wbg_new_81740750da40724f = function(arg0, arg1) {
try {
var state0 = {a: arg0, b: arg1};
var cb0 = (arg0, arg1) => {
const a = state0.a;
state0.a = 0;
try {
return __wbg_adapter_87(a, state0.b, arg0, arg1);
} finally {
state0.a = a;
}
};
const ret = new Promise(cb0);
return addHeapObject(ret);
} finally {
state0.a = state0.b = 0;
}
};
imports.wbg.__wbg_resolve_b0083a7967828ec8 = function(arg0) {
const ret = Promise.resolve(getObject(arg0));
return addHeapObject(ret);
};
imports.wbg.__wbg_then_0c86a60e8fcfe9f6 = function(arg0, arg1) {
const ret = getObject(arg0).then(getObject(arg1));
return addHeapObject(ret);
};
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
throw new Error(getStringFromWasm0(arg0, arg1));
};
imports.wbg.__wbindgen_closure_wrapper190 = function(arg0, arg1, arg2) {
const ret = makeMutClosure(arg0, arg1, 61, __wbg_adapter_20);
return addHeapObject(ret);
};

@@ -949,3 +909,3 @@ return imports;

function __wbg_init_memory(imports, maybe_memory) {
function __wbg_init_memory(imports, memory) {

@@ -957,7 +917,7 @@ }

__wbg_init.__wbindgen_wasm_module = module;
cachedInt32Memory0 = null;
cachedUint32Memory0 = null;
cachedUint8Memory0 = null;
cachedDataViewMemory0 = null;
cachedUint8ArrayMemory0 = null;
wasm.__wbindgen_start();
return wasm;

@@ -969,2 +929,11 @@ }

if (typeof module !== 'undefined') {
if (Object.getPrototypeOf(module) === Object.prototype) {
({module} = module)
} else {
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
}
}
const imports = __wbg_get_imports();

@@ -983,12 +952,21 @@

async function __wbg_init(input) {
async function __wbg_init(module_or_path) {
if (wasm !== undefined) return wasm;
if (typeof input === 'undefined') {
input = new URL('mimir_transforms_bg.wasm', import.meta.url);
if (typeof module_or_path !== 'undefined') {
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
({module_or_path} = module_or_path)
} else {
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
}
}
if (typeof module_or_path === 'undefined') {
module_or_path = new URL('mimir_transforms_bg.wasm', import.meta.url);
}
const imports = __wbg_get_imports();
if (typeof input === 'string' || (typeof Request === 'function' && input instanceof Request) || (typeof URL === 'function' && input instanceof URL)) {
input = fetch(input);
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
module_or_path = fetch(module_or_path);
}

@@ -998,3 +976,3 @@

const { instance, module } = await __wbg_load(await input, imports);
const { instance, module } = await __wbg_load(await module_or_path, imports);

@@ -1004,3 +982,3 @@ return __wbg_finalize_init(instance, module);

export { initSync }
export { initSync };
export default __wbg_init;

@@ -7,3 +7,3 @@ {

"description": "A WebAssembly build of Mimir transforms, suitable for use in Nodejs and browsers.",
"version": "0.7.3",
"version": "0.8.0",
"license": "MIT",

@@ -10,0 +10,0 @@ "files": [

Sorry, the diff of this file is not supported yet