@shotstack/shotstack-canvas 1.4.6 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,550 @@
1
+ import {
2
+ __commonJS,
3
+ __publicField,
4
+ __require
5
+ } from "./chunk-HYGMWVDX.js";
6
+
7
+ // node_modules/harfbuzzjs/hb.js
8
+ var require_hb = __commonJS({
9
+ "node_modules/harfbuzzjs/hb.js"(exports, module) {
10
+ var createHarfBuzz = (() => {
11
+ var _scriptName = typeof document != "undefined" ? document.currentScript?.src : void 0;
12
+ return async function(moduleArg = {}) {
13
+ var moduleRtn;
14
+ var Module = moduleArg;
15
+ var ENVIRONMENT_IS_WEB = typeof window == "object";
16
+ var ENVIRONMENT_IS_WORKER = typeof WorkerGlobalScope != "undefined";
17
+ var ENVIRONMENT_IS_NODE = typeof process == "object" && process.versions?.node && process.type != "renderer";
18
+ var arguments_ = [];
19
+ var thisProgram = "./this.program";
20
+ var quit_ = (status, toThrow) => {
21
+ throw toThrow;
22
+ };
23
+ if (typeof __filename != "undefined") {
24
+ _scriptName = __filename;
25
+ } else if (ENVIRONMENT_IS_WORKER) {
26
+ _scriptName = self.location.href;
27
+ }
28
+ var scriptDirectory = "";
29
+ function locateFile(path) {
30
+ if (Module["locateFile"]) {
31
+ return Module["locateFile"](path, scriptDirectory);
32
+ }
33
+ return scriptDirectory + path;
34
+ }
35
+ var readAsync, readBinary;
36
+ if (ENVIRONMENT_IS_NODE) {
37
+ var fs = __require("fs");
38
+ scriptDirectory = __dirname + "/";
39
+ readBinary = (filename) => {
40
+ filename = isFileURI(filename) ? new URL(filename) : filename;
41
+ var ret = fs.readFileSync(filename);
42
+ return ret;
43
+ };
44
+ readAsync = async (filename, binary = true) => {
45
+ filename = isFileURI(filename) ? new URL(filename) : filename;
46
+ var ret = fs.readFileSync(filename, binary ? void 0 : "utf8");
47
+ return ret;
48
+ };
49
+ if (process.argv.length > 1) {
50
+ thisProgram = process.argv[1].replace(/\\/g, "/");
51
+ }
52
+ arguments_ = process.argv.slice(2);
53
+ quit_ = (status, toThrow) => {
54
+ process.exitCode = status;
55
+ throw toThrow;
56
+ };
57
+ } else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
58
+ try {
59
+ scriptDirectory = new URL(".", _scriptName).href;
60
+ } catch {
61
+ }
62
+ {
63
+ if (ENVIRONMENT_IS_WORKER) {
64
+ readBinary = (url) => {
65
+ var xhr = new XMLHttpRequest();
66
+ xhr.open("GET", url, false);
67
+ xhr.responseType = "arraybuffer";
68
+ xhr.send(null);
69
+ return new Uint8Array(xhr.response);
70
+ };
71
+ }
72
+ readAsync = async (url) => {
73
+ if (isFileURI(url)) {
74
+ return new Promise((resolve, reject) => {
75
+ var xhr = new XMLHttpRequest();
76
+ xhr.open("GET", url, true);
77
+ xhr.responseType = "arraybuffer";
78
+ xhr.onload = () => {
79
+ if (xhr.status == 200 || xhr.status == 0 && xhr.response) {
80
+ resolve(xhr.response);
81
+ return;
82
+ }
83
+ reject(xhr.status);
84
+ };
85
+ xhr.onerror = reject;
86
+ xhr.send(null);
87
+ });
88
+ }
89
+ var response = await fetch(url, { credentials: "same-origin" });
90
+ if (response.ok) {
91
+ return response.arrayBuffer();
92
+ }
93
+ throw new Error(response.status + " : " + response.url);
94
+ };
95
+ }
96
+ } else {
97
+ }
98
+ var out = console.log.bind(console);
99
+ var err = console.error.bind(console);
100
+ var wasmBinary;
101
+ var ABORT = false;
102
+ var EXITSTATUS;
103
+ var isFileURI = (filename) => filename.startsWith("file://");
104
+ var readyPromiseResolve, readyPromiseReject;
105
+ var wasmMemory;
106
+ var HEAP8, HEAPU8, HEAP16, HEAPU16, HEAP32, HEAPU32, HEAPF32, HEAPF64;
107
+ var HEAP64, HEAPU64;
108
+ var runtimeInitialized = false;
109
+ function updateMemoryViews() {
110
+ var b = wasmMemory.buffer;
111
+ Module["HEAP8"] = HEAP8 = new Int8Array(b);
112
+ HEAP16 = new Int16Array(b);
113
+ Module["HEAPU8"] = HEAPU8 = new Uint8Array(b);
114
+ HEAPU16 = new Uint16Array(b);
115
+ Module["HEAP32"] = HEAP32 = new Int32Array(b);
116
+ Module["HEAPU32"] = HEAPU32 = new Uint32Array(b);
117
+ Module["HEAPF32"] = HEAPF32 = new Float32Array(b);
118
+ HEAPF64 = new Float64Array(b);
119
+ HEAP64 = new BigInt64Array(b);
120
+ HEAPU64 = new BigUint64Array(b);
121
+ }
122
+ function preRun() {
123
+ if (Module["preRun"]) {
124
+ if (typeof Module["preRun"] == "function") Module["preRun"] = [Module["preRun"]];
125
+ while (Module["preRun"].length) {
126
+ addOnPreRun(Module["preRun"].shift());
127
+ }
128
+ }
129
+ callRuntimeCallbacks(onPreRuns);
130
+ }
131
+ function initRuntime() {
132
+ runtimeInitialized = true;
133
+ wasmExports["__wasm_call_ctors"]();
134
+ }
135
+ function postRun() {
136
+ if (Module["postRun"]) {
137
+ if (typeof Module["postRun"] == "function") Module["postRun"] = [Module["postRun"]];
138
+ while (Module["postRun"].length) {
139
+ addOnPostRun(Module["postRun"].shift());
140
+ }
141
+ }
142
+ callRuntimeCallbacks(onPostRuns);
143
+ }
144
+ var runDependencies = 0;
145
+ var dependenciesFulfilled = null;
146
+ function addRunDependency(id) {
147
+ runDependencies++;
148
+ Module["monitorRunDependencies"]?.(runDependencies);
149
+ }
150
+ function removeRunDependency(id) {
151
+ runDependencies--;
152
+ Module["monitorRunDependencies"]?.(runDependencies);
153
+ if (runDependencies == 0) {
154
+ if (dependenciesFulfilled) {
155
+ var callback = dependenciesFulfilled;
156
+ dependenciesFulfilled = null;
157
+ callback();
158
+ }
159
+ }
160
+ }
161
+ function abort(what) {
162
+ Module["onAbort"]?.(what);
163
+ what = "Aborted(" + what + ")";
164
+ err(what);
165
+ ABORT = true;
166
+ what += ". Build with -sASSERTIONS for more info.";
167
+ var e = new WebAssembly.RuntimeError(what);
168
+ readyPromiseReject?.(e);
169
+ throw e;
170
+ }
171
+ var wasmBinaryFile;
172
+ function findWasmBinary() {
173
+ return locateFile("hb.wasm");
174
+ }
175
+ function getBinarySync(file) {
176
+ if (file == wasmBinaryFile && wasmBinary) {
177
+ return new Uint8Array(wasmBinary);
178
+ }
179
+ if (readBinary) {
180
+ return readBinary(file);
181
+ }
182
+ throw "both async and sync fetching of the wasm failed";
183
+ }
184
+ async function getWasmBinary(binaryFile) {
185
+ if (!wasmBinary) {
186
+ try {
187
+ var response = await readAsync(binaryFile);
188
+ return new Uint8Array(response);
189
+ } catch {
190
+ }
191
+ }
192
+ return getBinarySync(binaryFile);
193
+ }
194
+ async function instantiateArrayBuffer(binaryFile, imports) {
195
+ try {
196
+ var binary = await getWasmBinary(binaryFile);
197
+ var instance = await WebAssembly.instantiate(binary, imports);
198
+ return instance;
199
+ } catch (reason) {
200
+ err(`failed to asynchronously prepare wasm: ${reason}`);
201
+ abort(reason);
202
+ }
203
+ }
204
+ async function instantiateAsync(binary, binaryFile, imports) {
205
+ if (!binary && !isFileURI(binaryFile) && !ENVIRONMENT_IS_NODE) {
206
+ try {
207
+ var response = fetch(binaryFile, { credentials: "same-origin" });
208
+ var instantiationResult = await WebAssembly.instantiateStreaming(response, imports);
209
+ return instantiationResult;
210
+ } catch (reason) {
211
+ err(`wasm streaming compile failed: ${reason}`);
212
+ err("falling back to ArrayBuffer instantiation");
213
+ }
214
+ }
215
+ return instantiateArrayBuffer(binaryFile, imports);
216
+ }
217
+ function getWasmImports() {
218
+ return { env: wasmImports, wasi_snapshot_preview1: wasmImports };
219
+ }
220
+ async function createWasm() {
221
+ function receiveInstance(instance, module2) {
222
+ wasmExports = instance.exports;
223
+ Module["wasmExports"] = wasmExports;
224
+ wasmMemory = wasmExports["memory"];
225
+ Module["wasmMemory"] = wasmMemory;
226
+ updateMemoryViews();
227
+ wasmTable = wasmExports["__indirect_function_table"];
228
+ assignWasmExports(wasmExports);
229
+ removeRunDependency("wasm-instantiate");
230
+ return wasmExports;
231
+ }
232
+ addRunDependency("wasm-instantiate");
233
+ function receiveInstantiationResult(result2) {
234
+ return receiveInstance(result2["instance"]);
235
+ }
236
+ var info = getWasmImports();
237
+ if (Module["instantiateWasm"]) {
238
+ return new Promise((resolve, reject) => {
239
+ Module["instantiateWasm"](info, (mod, inst) => {
240
+ resolve(receiveInstance(mod, inst));
241
+ });
242
+ });
243
+ }
244
+ wasmBinaryFile ?? (wasmBinaryFile = findWasmBinary());
245
+ var result = await instantiateAsync(wasmBinary, wasmBinaryFile, info);
246
+ var exports2 = receiveInstantiationResult(result);
247
+ return exports2;
248
+ }
249
+ class ExitStatus {
250
+ constructor(status) {
251
+ __publicField(this, "name", "ExitStatus");
252
+ this.message = `Program terminated with exit(${status})`;
253
+ this.status = status;
254
+ }
255
+ }
256
+ var callRuntimeCallbacks = (callbacks) => {
257
+ while (callbacks.length > 0) {
258
+ callbacks.shift()(Module);
259
+ }
260
+ };
261
+ var onPostRuns = [];
262
+ var addOnPostRun = (cb) => onPostRuns.push(cb);
263
+ var onPreRuns = [];
264
+ var addOnPreRun = (cb) => onPreRuns.push(cb);
265
+ var noExitRuntime = true;
266
+ var __abort_js = () => abort("");
267
+ var runtimeKeepaliveCounter = 0;
268
+ var __emscripten_runtime_keepalive_clear = () => {
269
+ noExitRuntime = false;
270
+ runtimeKeepaliveCounter = 0;
271
+ };
272
+ var timers = {};
273
+ var handleException = (e) => {
274
+ if (e instanceof ExitStatus || e == "unwind") {
275
+ return EXITSTATUS;
276
+ }
277
+ quit_(1, e);
278
+ };
279
+ var keepRuntimeAlive = () => noExitRuntime || runtimeKeepaliveCounter > 0;
280
+ var _proc_exit = (code) => {
281
+ EXITSTATUS = code;
282
+ if (!keepRuntimeAlive()) {
283
+ Module["onExit"]?.(code);
284
+ ABORT = true;
285
+ }
286
+ quit_(code, new ExitStatus(code));
287
+ };
288
+ var exitJS = (status, implicit) => {
289
+ EXITSTATUS = status;
290
+ _proc_exit(status);
291
+ };
292
+ var _exit = exitJS;
293
+ var maybeExit = () => {
294
+ if (!keepRuntimeAlive()) {
295
+ try {
296
+ _exit(EXITSTATUS);
297
+ } catch (e) {
298
+ handleException(e);
299
+ }
300
+ }
301
+ };
302
+ var callUserCallback = (func) => {
303
+ if (ABORT) {
304
+ return;
305
+ }
306
+ try {
307
+ func();
308
+ maybeExit();
309
+ } catch (e) {
310
+ handleException(e);
311
+ }
312
+ };
313
+ var _emscripten_get_now = () => performance.now();
314
+ var __setitimer_js = (which, timeout_ms) => {
315
+ if (timers[which]) {
316
+ clearTimeout(timers[which].id);
317
+ delete timers[which];
318
+ }
319
+ if (!timeout_ms) return 0;
320
+ var id = setTimeout(() => {
321
+ delete timers[which];
322
+ callUserCallback(() => __emscripten_timeout(which, _emscripten_get_now()));
323
+ }, timeout_ms);
324
+ timers[which] = { id, timeout_ms };
325
+ return 0;
326
+ };
327
+ var getHeapMax = () => 2147483648;
328
+ var alignMemory = (size, alignment) => Math.ceil(size / alignment) * alignment;
329
+ var growMemory = (size) => {
330
+ var oldHeapSize = wasmMemory.buffer.byteLength;
331
+ var pages = (size - oldHeapSize + 65535) / 65536 | 0;
332
+ try {
333
+ wasmMemory.grow(pages);
334
+ updateMemoryViews();
335
+ return 1;
336
+ } catch (e) {
337
+ }
338
+ };
339
+ var _emscripten_resize_heap = (requestedSize) => {
340
+ var oldSize = HEAPU8.length;
341
+ requestedSize >>>= 0;
342
+ var maxHeapSize = getHeapMax();
343
+ if (requestedSize > maxHeapSize) {
344
+ return false;
345
+ }
346
+ for (var cutDown = 1; cutDown <= 4; cutDown *= 2) {
347
+ var overGrownHeapSize = oldSize * (1 + 0.2 / cutDown);
348
+ overGrownHeapSize = Math.min(overGrownHeapSize, requestedSize + 100663296);
349
+ var newSize = Math.min(maxHeapSize, alignMemory(Math.max(requestedSize, overGrownHeapSize), 65536));
350
+ var replacement = growMemory(newSize);
351
+ if (replacement) {
352
+ return true;
353
+ }
354
+ }
355
+ return false;
356
+ };
357
+ var uleb128EncodeWithLen = (arr) => {
358
+ const n = arr.length;
359
+ return [n % 128 | 128, n >> 7, ...arr];
360
+ };
361
+ var wasmTypeCodes = { i: 127, p: 127, j: 126, f: 125, d: 124, e: 111 };
362
+ var generateTypePack = (types) => uleb128EncodeWithLen(Array.from(types, (type) => {
363
+ var code = wasmTypeCodes[type];
364
+ return code;
365
+ }));
366
+ var convertJsFunctionToWasm = (func, sig) => {
367
+ var bytes = Uint8Array.of(0, 97, 115, 109, 1, 0, 0, 0, 1, ...uleb128EncodeWithLen([1, 96, ...generateTypePack(sig.slice(1)), ...generateTypePack(sig[0] === "v" ? "" : sig[0])]), 2, 7, 1, 1, 101, 1, 102, 0, 0, 7, 5, 1, 1, 102, 0, 0);
368
+ var module2 = new WebAssembly.Module(bytes);
369
+ var instance = new WebAssembly.Instance(module2, { e: { f: func } });
370
+ var wrappedFunc = instance.exports["f"];
371
+ return wrappedFunc;
372
+ };
373
+ var wasmTable;
374
+ var getWasmTableEntry = (funcPtr) => wasmTable.get(funcPtr);
375
+ var updateTableMap = (offset, count) => {
376
+ if (functionsInTableMap) {
377
+ for (var i = offset; i < offset + count; i++) {
378
+ var item = getWasmTableEntry(i);
379
+ if (item) {
380
+ functionsInTableMap.set(item, i);
381
+ }
382
+ }
383
+ }
384
+ };
385
+ var functionsInTableMap;
386
+ var getFunctionAddress = (func) => {
387
+ if (!functionsInTableMap) {
388
+ functionsInTableMap = /* @__PURE__ */ new WeakMap();
389
+ updateTableMap(0, wasmTable.length);
390
+ }
391
+ return functionsInTableMap.get(func) || 0;
392
+ };
393
+ var freeTableIndexes = [];
394
+ var getEmptyTableSlot = () => {
395
+ if (freeTableIndexes.length) {
396
+ return freeTableIndexes.pop();
397
+ }
398
+ return wasmTable["grow"](1);
399
+ };
400
+ var setWasmTableEntry = (idx, func) => wasmTable.set(idx, func);
401
+ var addFunction = (func, sig) => {
402
+ var rtn = getFunctionAddress(func);
403
+ if (rtn) {
404
+ return rtn;
405
+ }
406
+ var ret = getEmptyTableSlot();
407
+ try {
408
+ setWasmTableEntry(ret, func);
409
+ } catch (err2) {
410
+ if (!(err2 instanceof TypeError)) {
411
+ throw err2;
412
+ }
413
+ var wrapped = convertJsFunctionToWasm(func, sig);
414
+ setWasmTableEntry(ret, wrapped);
415
+ }
416
+ functionsInTableMap.set(func, ret);
417
+ return ret;
418
+ };
419
+ var removeFunction = (index) => {
420
+ functionsInTableMap.delete(getWasmTableEntry(index));
421
+ setWasmTableEntry(index, null);
422
+ freeTableIndexes.push(index);
423
+ };
424
+ {
425
+ if (Module["noExitRuntime"]) noExitRuntime = Module["noExitRuntime"];
426
+ if (Module["print"]) out = Module["print"];
427
+ if (Module["printErr"]) err = Module["printErr"];
428
+ if (Module["wasmBinary"]) wasmBinary = Module["wasmBinary"];
429
+ if (Module["arguments"]) arguments_ = Module["arguments"];
430
+ if (Module["thisProgram"]) thisProgram = Module["thisProgram"];
431
+ }
432
+ Module["wasmMemory"] = wasmMemory;
433
+ Module["wasmExports"] = wasmExports;
434
+ Module["addFunction"] = addFunction;
435
+ Module["removeFunction"] = removeFunction;
436
+ var _hb_blob_create, _hb_blob_destroy, _hb_blob_get_length, _hb_blob_get_data, _hb_buffer_serialize_glyphs, _hb_buffer_create, _hb_buffer_destroy, _hb_buffer_get_content_type, _hb_buffer_set_direction, _hb_buffer_set_script, _hb_buffer_set_language, _hb_buffer_set_flags, _hb_buffer_set_cluster_level, _hb_buffer_get_length, _hb_buffer_get_glyph_infos, _hb_buffer_get_glyph_positions, _hb_glyph_info_get_glyph_flags, _hb_buffer_guess_segment_properties, _hb_buffer_add_utf8, _hb_buffer_add_utf16, _hb_buffer_set_message_func, _hb_language_from_string, _hb_script_from_string, _hb_version, _hb_version_string, _hb_feature_from_string, _malloc, _free, _hb_draw_funcs_set_move_to_func, _hb_draw_funcs_set_line_to_func, _hb_draw_funcs_set_quadratic_to_func, _hb_draw_funcs_set_cubic_to_func, _hb_draw_funcs_set_close_path_func, _hb_draw_funcs_create, _hb_draw_funcs_destroy, _hb_face_create, _hb_face_destroy, _hb_face_reference_table, _hb_face_get_upem, _hb_face_collect_unicodes, _hb_font_draw_glyph, _hb_font_glyph_to_string, _hb_font_create, _hb_font_set_variations, _hb_font_destroy, _hb_font_set_scale, _hb_set_create, _hb_set_destroy, _hb_ot_var_get_axis_infos, _hb_set_get_population, _hb_set_next_many, _hb_shape, __emscripten_timeout;
437
+ function assignWasmExports(wasmExports2) {
438
+ Module["_hb_blob_create"] = _hb_blob_create = wasmExports2["hb_blob_create"];
439
+ Module["_hb_blob_destroy"] = _hb_blob_destroy = wasmExports2["hb_blob_destroy"];
440
+ Module["_hb_blob_get_length"] = _hb_blob_get_length = wasmExports2["hb_blob_get_length"];
441
+ Module["_hb_blob_get_data"] = _hb_blob_get_data = wasmExports2["hb_blob_get_data"];
442
+ Module["_hb_buffer_serialize_glyphs"] = _hb_buffer_serialize_glyphs = wasmExports2["hb_buffer_serialize_glyphs"];
443
+ Module["_hb_buffer_create"] = _hb_buffer_create = wasmExports2["hb_buffer_create"];
444
+ Module["_hb_buffer_destroy"] = _hb_buffer_destroy = wasmExports2["hb_buffer_destroy"];
445
+ Module["_hb_buffer_get_content_type"] = _hb_buffer_get_content_type = wasmExports2["hb_buffer_get_content_type"];
446
+ Module["_hb_buffer_set_direction"] = _hb_buffer_set_direction = wasmExports2["hb_buffer_set_direction"];
447
+ Module["_hb_buffer_set_script"] = _hb_buffer_set_script = wasmExports2["hb_buffer_set_script"];
448
+ Module["_hb_buffer_set_language"] = _hb_buffer_set_language = wasmExports2["hb_buffer_set_language"];
449
+ Module["_hb_buffer_set_flags"] = _hb_buffer_set_flags = wasmExports2["hb_buffer_set_flags"];
450
+ Module["_hb_buffer_set_cluster_level"] = _hb_buffer_set_cluster_level = wasmExports2["hb_buffer_set_cluster_level"];
451
+ Module["_hb_buffer_get_length"] = _hb_buffer_get_length = wasmExports2["hb_buffer_get_length"];
452
+ Module["_hb_buffer_get_glyph_infos"] = _hb_buffer_get_glyph_infos = wasmExports2["hb_buffer_get_glyph_infos"];
453
+ Module["_hb_buffer_get_glyph_positions"] = _hb_buffer_get_glyph_positions = wasmExports2["hb_buffer_get_glyph_positions"];
454
+ Module["_hb_glyph_info_get_glyph_flags"] = _hb_glyph_info_get_glyph_flags = wasmExports2["hb_glyph_info_get_glyph_flags"];
455
+ Module["_hb_buffer_guess_segment_properties"] = _hb_buffer_guess_segment_properties = wasmExports2["hb_buffer_guess_segment_properties"];
456
+ Module["_hb_buffer_add_utf8"] = _hb_buffer_add_utf8 = wasmExports2["hb_buffer_add_utf8"];
457
+ Module["_hb_buffer_add_utf16"] = _hb_buffer_add_utf16 = wasmExports2["hb_buffer_add_utf16"];
458
+ Module["_hb_buffer_set_message_func"] = _hb_buffer_set_message_func = wasmExports2["hb_buffer_set_message_func"];
459
+ Module["_hb_language_from_string"] = _hb_language_from_string = wasmExports2["hb_language_from_string"];
460
+ Module["_hb_script_from_string"] = _hb_script_from_string = wasmExports2["hb_script_from_string"];
461
+ Module["_hb_version"] = _hb_version = wasmExports2["hb_version"];
462
+ Module["_hb_version_string"] = _hb_version_string = wasmExports2["hb_version_string"];
463
+ Module["_hb_feature_from_string"] = _hb_feature_from_string = wasmExports2["hb_feature_from_string"];
464
+ Module["_malloc"] = _malloc = wasmExports2["malloc"];
465
+ Module["_free"] = _free = wasmExports2["free"];
466
+ Module["_hb_draw_funcs_set_move_to_func"] = _hb_draw_funcs_set_move_to_func = wasmExports2["hb_draw_funcs_set_move_to_func"];
467
+ Module["_hb_draw_funcs_set_line_to_func"] = _hb_draw_funcs_set_line_to_func = wasmExports2["hb_draw_funcs_set_line_to_func"];
468
+ Module["_hb_draw_funcs_set_quadratic_to_func"] = _hb_draw_funcs_set_quadratic_to_func = wasmExports2["hb_draw_funcs_set_quadratic_to_func"];
469
+ Module["_hb_draw_funcs_set_cubic_to_func"] = _hb_draw_funcs_set_cubic_to_func = wasmExports2["hb_draw_funcs_set_cubic_to_func"];
470
+ Module["_hb_draw_funcs_set_close_path_func"] = _hb_draw_funcs_set_close_path_func = wasmExports2["hb_draw_funcs_set_close_path_func"];
471
+ Module["_hb_draw_funcs_create"] = _hb_draw_funcs_create = wasmExports2["hb_draw_funcs_create"];
472
+ Module["_hb_draw_funcs_destroy"] = _hb_draw_funcs_destroy = wasmExports2["hb_draw_funcs_destroy"];
473
+ Module["_hb_face_create"] = _hb_face_create = wasmExports2["hb_face_create"];
474
+ Module["_hb_face_destroy"] = _hb_face_destroy = wasmExports2["hb_face_destroy"];
475
+ Module["_hb_face_reference_table"] = _hb_face_reference_table = wasmExports2["hb_face_reference_table"];
476
+ Module["_hb_face_get_upem"] = _hb_face_get_upem = wasmExports2["hb_face_get_upem"];
477
+ Module["_hb_face_collect_unicodes"] = _hb_face_collect_unicodes = wasmExports2["hb_face_collect_unicodes"];
478
+ Module["_hb_font_draw_glyph"] = _hb_font_draw_glyph = wasmExports2["hb_font_draw_glyph"];
479
+ Module["_hb_font_glyph_to_string"] = _hb_font_glyph_to_string = wasmExports2["hb_font_glyph_to_string"];
480
+ Module["_hb_font_create"] = _hb_font_create = wasmExports2["hb_font_create"];
481
+ Module["_hb_font_set_variations"] = _hb_font_set_variations = wasmExports2["hb_font_set_variations"];
482
+ Module["_hb_font_destroy"] = _hb_font_destroy = wasmExports2["hb_font_destroy"];
483
+ Module["_hb_font_set_scale"] = _hb_font_set_scale = wasmExports2["hb_font_set_scale"];
484
+ Module["_hb_set_create"] = _hb_set_create = wasmExports2["hb_set_create"];
485
+ Module["_hb_set_destroy"] = _hb_set_destroy = wasmExports2["hb_set_destroy"];
486
+ Module["_hb_ot_var_get_axis_infos"] = _hb_ot_var_get_axis_infos = wasmExports2["hb_ot_var_get_axis_infos"];
487
+ Module["_hb_set_get_population"] = _hb_set_get_population = wasmExports2["hb_set_get_population"];
488
+ Module["_hb_set_next_many"] = _hb_set_next_many = wasmExports2["hb_set_next_many"];
489
+ Module["_hb_shape"] = _hb_shape = wasmExports2["hb_shape"];
490
+ __emscripten_timeout = wasmExports2["_emscripten_timeout"];
491
+ }
492
+ var wasmImports = { _abort_js: __abort_js, _emscripten_runtime_keepalive_clear: __emscripten_runtime_keepalive_clear, _setitimer_js: __setitimer_js, emscripten_resize_heap: _emscripten_resize_heap, proc_exit: _proc_exit };
493
+ var wasmExports = await createWasm();
494
+ function run() {
495
+ if (runDependencies > 0) {
496
+ dependenciesFulfilled = run;
497
+ return;
498
+ }
499
+ preRun();
500
+ if (runDependencies > 0) {
501
+ dependenciesFulfilled = run;
502
+ return;
503
+ }
504
+ function doRun() {
505
+ Module["calledRun"] = true;
506
+ if (ABORT) return;
507
+ initRuntime();
508
+ readyPromiseResolve?.(Module);
509
+ Module["onRuntimeInitialized"]?.();
510
+ postRun();
511
+ }
512
+ if (Module["setStatus"]) {
513
+ Module["setStatus"]("Running...");
514
+ setTimeout(() => {
515
+ setTimeout(() => Module["setStatus"](""), 1);
516
+ doRun();
517
+ }, 1);
518
+ } else {
519
+ doRun();
520
+ }
521
+ }
522
+ function preInit() {
523
+ if (Module["preInit"]) {
524
+ if (typeof Module["preInit"] == "function") Module["preInit"] = [Module["preInit"]];
525
+ while (Module["preInit"].length > 0) {
526
+ Module["preInit"].shift()();
527
+ }
528
+ }
529
+ }
530
+ preInit();
531
+ run();
532
+ if (runtimeInitialized) {
533
+ moduleRtn = Module;
534
+ } else {
535
+ moduleRtn = new Promise((resolve, reject) => {
536
+ readyPromiseResolve = resolve;
537
+ readyPromiseReject = reject;
538
+ });
539
+ }
540
+ ;
541
+ return moduleRtn;
542
+ };
543
+ })();
544
+ if (typeof exports === "object" && typeof module === "object") {
545
+ module.exports = createHarfBuzz;
546
+ module.exports.default = createHarfBuzz;
547
+ } else if (typeof define === "function" && define["amd"]) define([], () => createHarfBuzz);
548
+ }
549
+ });
550
+ export default require_hb();