@flyfish-group/file-viewer3 1.0.22 → 1.0.24
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.
- package/README.en.md +26 -13
- package/README.md +44 -31
- package/dist/components/3MFLoader.js +1 -1
- package/dist/components/AMFLoader.js +1 -1
- package/dist/components/AudioViewer.js +1 -1
- package/dist/components/CadViewer.js +1 -1
- package/dist/components/CodeViewer.js +1 -1
- package/dist/components/ColladaLoader.js +1 -1
- package/dist/components/DrawingViewer.js +1 -1
- package/dist/components/EdaViewer.js +1 -1
- package/dist/components/EmailViewer.js +1 -1
- package/dist/components/EpubViewer.js +1 -1
- package/dist/components/FBXLoader.js +1 -1
- package/dist/components/GLTFLoader.js +1 -1
- package/dist/components/ImageViewer.js +1 -1
- package/dist/components/KMZLoader.js +1 -1
- package/dist/components/MarkdownViewer.js +1 -1
- package/dist/components/ModelViewer.js +1 -1
- package/dist/components/OBJLoader.js +1 -1
- package/dist/components/OfdViewer.js +1 -1
- package/dist/components/PCDLoader.js +1 -1
- package/dist/components/PLYLoader.js +1 -1
- package/dist/components/PdfView.js +5234 -5080
- package/dist/components/PptxRender.js +1 -1
- package/dist/components/STLLoader.js +1 -1
- package/dist/components/TDSLoader.js +1 -1
- package/dist/components/USDLoader.js +1 -1
- package/dist/components/UmdViewer.js +1 -1
- package/dist/components/VRMLLoader.js +1 -1
- package/dist/components/VTKLoader.js +1 -1
- package/dist/components/XYZLoader.js +1 -1
- package/dist/components/XlsxTable.js +1 -1
- package/dist/components/__vite-browser-external.js +1 -1
- package/dist/components/_plugin-vue_export-helper.js +1 -1
- package/dist/components/ar-SA-G6X2FPQ2.js +1 -1
- package/dist/components/arc.js +1 -1
- package/dist/components/architecture-7EHR7CIX.js +1 -1
- package/dist/components/architectureDiagram-3BPJPVTR.js +1 -1
- package/dist/components/archive.js +1 -1
- package/dist/components/asyncToGenerator.js +1 -1
- package/dist/components/audio.js +1 -1
- package/dist/components/az-AZ-76LH7QW2.js +1 -1
- package/dist/components/bash.js +1 -1
- package/dist/components/bg-BG-XCXSNQG7.js +1 -1
- package/dist/components/blockDiagram-GPEHLZMM.js +1 -1
- package/dist/components/bn-BD-2XOGV67Q.js +1 -1
- package/dist/components/c4Diagram-AAUBKEIU.js +1 -1
- package/dist/components/ca-ES-6MX7JW3Y.js +1 -1
- package/dist/components/cad.js +1 -1
- package/dist/components/cfb.js +1 -1
- package/dist/components/channel.js +1 -1
- package/dist/components/chunk-2J33WTMH.js +1 -1
- package/dist/components/chunk-3OPIFGDE.js +1 -1
- package/dist/components/chunk-4BX2VUAB.js +1 -1
- package/dist/components/chunk-55IACEB6.js +1 -1
- package/dist/components/chunk-5ZQYHXKU.js +1 -1
- package/dist/components/chunk-6U3AYISY.js +1 -1
- package/dist/components/chunk-727SXJPM.js +1 -1
- package/dist/components/chunk-AGHRB4JF.js +1 -1
- package/dist/components/chunk-AQP2D5EJ.js +1 -1
- package/dist/components/chunk-BSJP7CBP.js +1 -1
- package/dist/components/chunk-CSCIHK7Q.js +1 -1
- package/dist/components/chunk-FMBD7UC4.js +1 -1
- package/dist/components/chunk-K2UTITRG.js +1 -1
- package/dist/components/chunk-KSCS5N6A.js +1 -1
- package/dist/components/chunk-L5ZTLDWV.js +1 -1
- package/dist/components/chunk-LZXEDZCA.js +1 -1
- package/dist/components/chunk-ND2GUHAM.js +1 -1
- package/dist/components/chunk-NNHCCRGN.js +1 -1
- package/dist/components/chunk-NZK2D7GU.js +1 -1
- package/dist/components/chunk-O5CBEL6O.js +1 -1
- package/dist/components/chunk-QZHKN3VN.js +1 -1
- package/dist/components/chunk-SRAX5OIU.js +1 -1
- package/dist/components/chunk-WU5MYG2G.js +1 -1
- package/dist/components/chunk-XPW4576I.js +1 -1
- package/dist/components/chunk-Z3N5DIM6.js +1 -1
- package/dist/components/chunk-ZUYEQ4TG.js +1 -1
- package/dist/components/chunk.js +1 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
- package/dist/components/compiler.js +1 -1
- package/dist/components/core.js +1 -1
- package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/components/cpp.js +1 -1
- package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
- package/dist/components/csharp.js +1 -1
- package/dist/components/css.js +1 -1
- package/dist/components/cytoscape.esm.js +1 -1
- package/dist/components/da-DK-5WZEPLOC.js +1 -1
- package/dist/components/dagre-BM42HDAG.js +1 -1
- package/dist/components/dagre.js +1 -1
- package/dist/components/de-DE-XR44H4JA.js +1 -1
- package/dist/components/defaultLocale.js +1 -1
- package/dist/components/defineProperty.js +1 -1
- package/dist/components/diagram-2AECGRRQ.js +1 -1
- package/dist/components/diagram-5GNKFQAL.js +1 -1
- package/dist/components/diagram-KO2AKTUF.js +1 -1
- package/dist/components/diagram-LMA3HP47.js +1 -1
- package/dist/components/diagram-OG6HWLK6.js +1 -1
- package/dist/components/diff.js +1 -1
- package/dist/components/directory-open-01563666.js +1 -1
- package/dist/components/directory-open-4ed118d0.js +1 -1
- package/dist/components/dist.js +1 -1
- package/dist/components/dist2.js +1 -1
- package/dist/components/dist3.js +1 -1
- package/dist/components/documentSearch.js +1 -0
- package/dist/components/docx-preview.js +1 -1
- package/dist/components/drawing.js +1 -1
- package/dist/components/ebook.js +1 -1
- package/dist/components/eda.js +1 -1
- package/dist/components/el-GR-BZB4AONW.js +1 -1
- package/dist/components/email.js +1 -1
- package/dist/components/en-B4ZKOASM.js +1 -1
- package/dist/components/erDiagram-TEJ5UH35.js +1 -1
- package/dist/components/es-ES-U4NZUMDT.js +1 -1
- package/dist/components/eu-ES-A7QVB2H4.js +1 -1
- package/dist/components/eventmodeling-FCH6USID.js +1 -1
- package/dist/components/fa-IR-HGAKTJCU.js +1 -1
- package/dist/components/fflate.module.js +1 -1
- package/dist/components/fi-FI-Z5N7JZ37.js +1 -1
- package/dist/components/file-open-002ab408.js +1 -1
- package/dist/components/file-open-7c801643.js +1 -1
- package/dist/components/file-save-3189631c.js +1 -1
- package/dist/components/file-save-745eba88.js +1 -1
- package/dist/components/flowDiagram-I6XJVG4X.js +1 -1
- package/dist/components/fr-FR-RHASNOE6.js +1 -1
- package/dist/components/ganttDiagram-6RSMTGT7.js +1 -1
- package/dist/components/gitGraph-WXDBUCRP.js +1 -1
- package/dist/components/gitGraphDiagram-PVQCEYII.js +1 -1
- package/dist/components/gl-ES-HMX3MZ6V.js +1 -1
- package/dist/components/global-compiler.js +1 -1
- package/dist/components/global-renderer.js +1 -1
- package/dist/components/go.js +1 -1
- package/dist/components/graphlib.js +1 -1
- package/dist/components/he-IL-6SHJWFNN.js +1 -1
- package/dist/components/hi-IN-IWLTKZ5I.js +1 -1
- package/dist/components/hu-HU-A5ZG7DT2.js +1 -1
- package/dist/components/id-ID-SAP4L64H.js +1 -1
- package/dist/components/image-GAAHSSAO.js +1 -1
- package/dist/components/image-blob-reduce.esm.js +1 -1
- package/dist/components/image.js +1 -1
- package/dist/components/info-J43DQDTF.js +1 -1
- package/dist/components/infoDiagram-5YYISTIA.js +1 -1
- package/dist/components/ini.js +1 -1
- package/dist/components/init.js +1 -1
- package/dist/components/ishikawaDiagram-YF4QCWOH.js +1 -1
- package/dist/components/it-IT-JPQ66NNP.js +1 -1
- package/dist/components/ja-JP-DBVTYXUO.js +1 -1
- package/dist/components/java.js +1 -1
- package/dist/components/javascript.js +1 -1
- package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
- package/dist/components/json.js +1 -1
- package/dist/components/jszip.min.js +1 -1
- package/dist/components/kaa-6HZHGXH3.js +1 -1
- package/dist/components/kab-KAB-ZGHBKWFO.js +1 -1
- package/dist/components/kanban-definition-UN3LZRKU.js +1 -1
- package/dist/components/katex.js +1 -1
- package/dist/components/kk-KZ-P5N5QNE5.js +1 -1
- package/dist/components/km-KH-HSX4SM5Z.js +1 -1
- package/dist/components/ko-KR-MTYHY66A.js +1 -1
- package/dist/components/ku-TR-6OUDTVRD.js +1 -1
- package/dist/components/lib.js +1 -1
- package/dist/components/libarchive.js +1 -1
- package/dist/components/linear.js +1 -1
- package/dist/components/lt-LT-XHIRWOB4.js +1 -1
- package/dist/components/lv-LV-5QDEKY6T.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/md.js +1 -1
- package/dist/components/mermaid-parser.core.js +1 -1
- package/dist/components/mindmap-definition-RKZ34NQL.js +1 -1
- package/dist/components/model.js +1 -1
- package/dist/components/mp4.js +1 -1
- package/dist/components/mr-IN-CRQNXWMA.js +1 -1
- package/dist/components/my-MM-5M5IBNSE.js +1 -1
- package/dist/components/nb-NO-T6EIAALU.js +1 -1
- package/dist/components/nestedRender.js +1 -1
- package/dist/components/nl-NL-IS3SIHDZ.js +1 -1
- package/dist/components/nn-NO-6E72VCQL.js +1 -1
- package/dist/components/objectSpread2.js +1 -1
- package/dist/components/objectWithoutProperties.js +1 -1
- package/dist/components/oc-FR-POXYY2M6.js +1 -1
- package/dist/components/ofd.js +1 -1
- package/dist/components/ofd2.js +1 -1
- package/dist/components/ordinal.js +1 -1
- package/dist/components/pa-IN-N4M65BXN.js +1 -1
- package/dist/components/packet-YPE3B663.js +1 -1
- package/dist/components/pdf.js +1 -1
- package/dist/components/percentages-BXMCSKIN.js +1 -1
- package/dist/components/php.js +1 -1
- package/dist/components/pica.js +1 -1
- package/dist/components/pie-LRSECV5Y.js +1 -1
- package/dist/components/pie.js +1 -1
- package/dist/components/pieDiagram-4H26LBE5.js +1 -1
- package/dist/components/pl-PL-T2D74RX3.js +1 -1
- package/dist/components/postal-mime.js +1 -1
- package/dist/components/pptx.js +1 -1
- package/dist/components/printLayout.js +1 -1
- package/dist/components/prod.js +1 -1
- package/dist/components/pt-BR-5N22H2LF.js +1 -1
- package/dist/components/pt-PT-UZXXM6DQ.js +1 -1
- package/dist/components/python.js +1 -1
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
- package/dist/components/radar-GUYGQ44K.js +1 -1
- package/dist/components/renderer.js +1 -1
- package/dist/components/requirementDiagram-4Y6WPE33.js +1 -1
- package/dist/components/ro-RO-JPDTUUEW.js +1 -1
- package/dist/components/rough.esm.js +1 -1
- package/dist/components/roundRect.js +1 -1
- package/dist/components/ru-RU-B4JR7IUQ.js +1 -1
- package/dist/components/rust.js +1 -1
- package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.js +1 -1
- package/dist/components/shared.js +1 -1
- package/dist/components/shared2.js +1 -1
- package/dist/components/si-LK-N5RQ5JYF.js +1 -1
- package/dist/components/sk-SK-C5VTKIMK.js +1 -1
- package/dist/components/sl-SI-NN7IZMDC.js +1 -1
- package/dist/components/sourceLoading.js +1 -1
- package/dist/components/sql.js +1 -1
- package/dist/components/src.js +1 -1
- package/dist/components/src2.js +1 -1
- package/dist/components/stateDiagram-AJRCARHV.js +1 -1
- package/dist/components/stateDiagram-v2-BHNVJYJU.js +1 -1
- package/dist/components/subset-shared.chunk.js +1 -1
- package/dist/components/subset-worker.chunk.js +1 -1
- package/dist/components/sv-SE-XGPEYMSR.js +1 -1
- package/dist/components/ta-IN-2NMHFXQM.js +1 -1
- package/dist/components/text.js +1 -1
- package/dist/components/th-TH-HPSO5L25.js +1 -1
- package/dist/components/three.module.js +1 -1
- package/dist/components/time.js +1 -1
- package/dist/components/timeline-definition-PNZ67QCA.js +1 -1
- package/dist/components/tr-TR-DEFEU3FU.js +1 -1
- package/dist/components/treeView-BLDUP644.js +1 -1
- package/dist/components/treemap-LRROVOQU.js +1 -1
- package/dist/components/typescript.js +1 -1
- package/dist/components/typst.js +1 -1
- package/dist/components/uk-UA-QMV73CPH.js +1 -1
- package/dist/components/umd.js +1 -1
- package/dist/components/use.js +1 -1
- package/dist/components/util.js +1 -1
- package/dist/components/vennDiagram-CIIHVFJN.js +1 -1
- package/dist/components/vi-VN-M7AON7JQ.js +1 -1
- package/dist/components/wardley-L42UT6IY.js +1 -1
- package/dist/components/wardleyDiagram-YWT4CUSO.js +1 -1
- package/dist/components/wasm-pack-shim.js +1 -1
- package/dist/components/wasm-pack-shim2.js +1 -1
- package/dist/components/wasm.js +1 -1
- package/dist/components/word.js +1 -1
- package/dist/components/worker-ref.js +1 -1
- package/dist/components/xlsx.js +1 -1
- package/dist/components/xml.js +1 -1
- package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
- package/dist/components/yaml.js +1 -1
- package/dist/components/zh-CN-LNUGB5OW.js +1 -1
- package/dist/components/zh-HK-E62DVLB3.js +1 -1
- package/dist/components/zh-TW-RAJ6MFWO.js +1 -1
- package/dist/file-viewer3.css +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/compare/useSynchronizedScroll.d.ts +7 -0
- package/dist/src/package/common/type.d.ts +199 -0
- package/dist/src/package/components/FileViewer/FileViewer.vue.d.ts +15 -1
- package/dist/src/package/components/FileViewer/hooks/useViewerDocumentFeatures.d.ts +29 -0
- package/dist/src/package/components/FileViewer/{useViewerExport.d.ts → hooks/useViewerExport.d.ts} +1 -1
- package/dist/src/package/components/FileViewer/hooks/useViewerWatermark.d.ts +8 -0
- package/dist/src/package/index.d.ts +1 -1
- package/dist/src/package/use/documentLocation.d.ts +15 -0
- package/dist/src/package/use/documentSearch.d.ts +234 -0
- package/dist/src/package/use/index.d.ts +2 -0
- package/dist/src/package/vendors/cad/CadViewer.vue.d.ts +2 -0
- package/dist/src/package/vendors/cad/index.d.ts +4 -3
- package/dist/src/package/vendors/word/docx.worker.d.ts +1 -0
- package/dist/wasm/cad/DwgWorker-CuZJ5EUe.js +349 -0
- package/dist/wasm/cad/dwfv-render.wasm +0 -0
- package/dist/wasm/cad/dwg-worker.js +349 -0
- package/dist/wasm/cad/index-C365l3i9.js +4161 -0
- package/dist/wasm/cad/libredwg-web.js +15 -0
- package/dist/wasm/cad/libredwg-web.wasm +0 -0
- package/package.json +12 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
const au=a1;(function(a3,a4){const ag=a1,a5=a3();while(!![]){try{const a6=-parseInt(ag(0x7d))/0x1*(parseInt(ag(0xc9))/0x2)+-parseInt(ag(0x8c))/0x3+-parseInt(ag(0x101))/0x4*(-parseInt(ag(0xc6))/0x5)+-parseInt(ag(0x8d))/0x6*(-parseInt(ag(0xfa))/0x7)+-parseInt(ag(0xf5))/0x8*(-parseInt(ag(0x88))/0x9)+-parseInt(ag(0xbd))/0xa*(-parseInt(ag(0xcb))/0xb)+parseInt(ag(0xbf))/0xc;if(a6===a4)break;else a5['push'](a5['shift']());}catch(a7){a5['push'](a5['shift']());}}}(a0,0x71e4d));import{n as a2,t}from'./asyncToGenerator.js';a2();var n;function r(a3){const ah=a1;x===b['length']&&b[ah(0xb7)](b[ah(0x9f)]+0x1);let a4=x;if(x=b[a4],typeof x!=ah(0xab))throw Error('corrupt\x20heap');return b[a4]=a3,a4;}function i(a3){const ai=a1;if(typeof a3!='boolean')throw Error(ai(0xf9)+typeof a3);}function a(a3,a4){const aj=a1;if(!(a3 instanceof a4))throw Error(aj(0xd0)+a4['name']);}function o(a3){if(typeof a3!='number')throw Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof a3);}var s=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>a3['dtor'](a3['a'],a3['b']));function c(a3){const ak=a1;let a4=typeof a3;if(a4=='number'||a4=='boolean'||a3==null)return''+a3;if(a4=='string')return'\x22'+a3+'\x22';if(a4=='symbol'){let a7=a3['description'];return a7==null?'Symbol':'Symbol('+a7+')';}if(a4=='function'){let a8=a3[ak(0xd8)];return typeof a8=='string'&&a8['length']>0x0?ak(0x7c)+a8+')':'Function';}if(Array['isArray'](a3)){let a9=a3['length'],aa='[';a9>0x0&&(aa+=c(a3[0x0]));for(let ab=0x1;ab<a9;ab++)aa+=',\x20'+c(a3[ab]);return aa+=']',aa;}let a5=/\[object ([^\]]+)\]/['exec'](toString['call'](a3)),a6;if(a5&&a5['length']>0x1)a6=a5[0x1];else return toString['call'](a3);if(a6=='Object')try{return ak(0xb1)+JSON['stringify'](a3)+')';}catch(ac){return'Object';}return a3 instanceof Error?a3[ak(0xd8)]+':\x20'+a3['message']+'\x0a'+a3[ak(0x106)]:a6;}function l(a3){a3<0x84||(b[a3]=x,x=a3);}function u(a3,a4){return a3>>>=0x0,_()['subarray'](a3/0x1,a3/0x1+a4);}var d=null;function f(){const al=a1;return(d===null||d['buffer']['detached']===!0x0||d['buffer'][al(0xb3)]===void 0x0&&d['buffer']!==n[al(0x100)][al(0x103)])&&(d=new DataView(n[al(0x100)]['buffer'])),d;}function p(a3,a4){return a3>>>=0x0,ae(a3,a4);}var m=null;function h(){return(m===null||m['byteLength']===0x0)&&(m=new Uint32Array(n['memory']['buffer'])),m;}var g=null;function _(){const am=a1;return(g===null||g[am(0x90)]===0x0)&&(g=new Uint8Array(n['memory']['buffer'])),g;}function v(a3){return b[a3];}function y(a3,a4){try{return a3['apply'](this,a4);}catch(a5){n['__wbindgen_export3'](r(a5));}}var b=Array(0x80)['fill'](void 0x0);b['push'](void 0x0,null,!0x0,!0x1);var x=b['length'];function S(a3){return a3==null;}function C(a3,a4){try{return a3['apply'](this,a4);}catch(a5){let a6=(function(){const an=a1;try{return a5 instanceof Error?a5[an(0xa7)]+'\x0a\x0aStack:\x0a'+a5[an(0x106)]:a5['toString']();}catch(a7){return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',a6),a5;}}function ee(a3,a4,a5,a6){const ao=a1;let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{a7['cnt']++;try{return a6(a7['a'],a7['b'],...a9);}finally{a8['_wbg_cb_unref']();}};return a8['_wbg_cb_unref']=()=>{--a7['cnt']===0x0&&(a7['dtor'](a7['a'],a7['b']),a7['a']=0x0,s['unregister'](a7));},s[ao(0x7a)](a8,a7,a7),a8;}function te(a3,a4,a5,a6){let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{a7['cnt']++;let aa=a7['a'];a7['a']=0x0;try{return a6(aa,a7['b'],...a9);}finally{a7['a']=aa,a8['_wbg_cb_unref']();}};return a8['_wbg_cb_unref']=()=>{const ap=a1;--a7['cnt']===0x0&&(a7[ap(0xc0)](a7['a'],a7['b']),a7['a']=0x0,s['unregister'](a7));},s['register'](a8,a7,a7),a8;}function ne(a3,a4){const aq=a1;let a5=a4(a3['length']*0x4,0x4)>>>0x0;return h()[aq(0xe0)](a3,a5/0x4),A=a3['length'],a5;}function w(a3,a4){let a5=a4(a3['length']*0x1,0x1)>>>0x0;return _()['set'](a3,a5/0x1),A=a3['length'],a5;}function re(a3,a4){const ar=a1;let a5=a4(a3[ar(0x9f)]*0x4,0x4)>>>0x0,a6=f();for(let a7=0x0;a7<a3[ar(0x9f)];a7++)a6['setUint32'](a5+0x4*a7,r(a3[a7]),!0x0);return A=a3['length'],a5;}function T(a3,a4,a5){const as=a1;if(typeof a3!='string')throw Error('expected\x20a\x20string\x20argument,\x20found\x20'+typeof a3);if(a5===void 0x0){let aa=k['encode'](a3),ab=a4(aa['length'],0x1)>>>0x0;return _()['subarray'](ab,ab+aa['length'])['set'](aa),A=aa[as(0x9f)],ab;}let a6=a3[as(0x9f)],a7=a4(a6,0x1)>>>0x0,a8=_(),a9=0x0;for(;a9<a6;a9++){let ac=a3['charCodeAt'](a9);if(ac>0x7f)break;a8[a7+a9]=ac;}if(a9!==a6){a9!==0x0&&(a3=a3['slice'](a9)),a7=a5(a7,a6,a6=a9+a3['length']*0x3,0x1)>>>0x0;let ad=_()['subarray'](a7+a9,a7+a6),af=k['encodeInto'](a3,ad);if(af['read']!==a3[as(0x9f)])throw Error(as(0xc3));a9+=af['written'],a7=a5(a7,a6,a9,0x1)>>>0x0;}return A=a9,a7;}function E(a3){let a4=v(a3);return l(a3),a4;}var D=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});D['decode']();var ie=0x7ff00000,O=0x0;function ae(a3,a4){return O+=a4,O>=ie&&(D=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),D['decode'](),O=a4),D['decode'](_()['subarray'](a3,a3+a4));}var k=new TextEncoder();'encodeInto'in k||(k['encodeInto']=function(a3,a4){let a5=k['encode'](a3);return a4['set'](a5),{'read':a3['length'],'written':a5['length']};});var A=0x0;function oe(a3,a4,a5){o(a3),o(a4),n['__wasm_bindgen_func_elem_1056'](a3,a4,r(a5));}function se(a3,a4){o(a3),o(a4),n['__wasm_bindgen_func_elem_1035'](a3,a4);}function ce(a3,a4,a5){o(a3),o(a4),n['__wasm_bindgen_func_elem_1034'](a3,a4,r(a5));}function le(a3,a4,a5,a6){const at=a1;o(a3),o(a4),n[at(0x8b)](a3,a4,r(a5),r(a6));}var j=['nonzero','evenodd'],M=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_createsessionoptions_free'](a3>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_incrdomdocclient_free'](a3>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_pageinfo_free'](a3>>>0x0,0x1)),F=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[au(0x7f)](a3>>>0x0,0x1)),I=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_renderpageimageoptions_free'](a3>>>0x0,0x1)),L=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[au(0xbe)](a3>>>0x0,0x1)),R=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_rendersessionoptions_free'](a3>>>0x0,0x1)),z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstrenderer_free'](a3>>>0x0,0x1)),ue=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstrendererbuilder_free'](a3>>>0x0,0x1)),de=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstworker_free'](a3>>>0x0,0x1)),fe=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_workerbridge_free'](a3>>>0x0,0x1)),B=class{['__destroy_into_raw'](){const av=au;let a3=this[av(0xbb)];return this['__wbg_ptr']=0x0,M['unregister'](this),a3;}[au(0xd9)](){let a3=this['__destroy_into_raw']();n['__wbg_createsessionoptions_free'](a3,0x0);}constructor(){const aw=au;let a3=n['createsessionoptions_new']();return this[aw(0xbb)]=a3>>>0x0,M['register'](this,this['__wbg_ptr'],this),this;}set['format'](a3){const ax=au;if(this[ax(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a4=T(a3,n['__wbindgen_export'],n[ax(0xf4)]),a5=A;n[ax(0x10a)](this['__wbg_ptr'],a4,a5);}set[au(0xb6)](a3){const ay=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a4=w(a3,n['__wbindgen_export']),a5=A;n['createsessionoptions_set_artifact_content'](this[ay(0xbb)],a4,a5);}};Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B[au(0xcd)]['free']);var V=class e{constructor(){const az=au;throw Error(az(0xd6));}static['__wrap'](a3){const aA=au;a3>>>=0x0;let a4=Object[aA(0x95)](e['prototype']);return a4['__wbg_ptr']=a3,N[aA(0x7a)](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_incrdomdocclient_free'](a3,0x0);}['bind_functions'](a3){const aB=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[aB(0xbb)]),n['incrdomdocclient_bind_functions'](this[aB(0xbb)],r(a3));}['relayout'](a3,a4,a5,a6){const aC=au;if(this[aC(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n[aC(0x108)](this['__wbg_ptr'],a3,a4,a5,a6));}[au(0x85)](a3,a4,a5,a6,a7,a8){const aD=au;try{if(this[aD(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n[aD(0xec)](-0x10);o(this[aD(0xbb)]),o(a3),o(a8),n['incrdomdocclient_need_repaint'](ab,this[aD(0xbb)],a3,a4,a5,a6,a7,a8);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw E(aa);return a9!==0x0;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[au(0x94)](a3,a4,a5,a6,a7,a8){const aE=au;try{if(this[aE(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),o(a3),o(a8),n['incrdomdocclient_repaint'](ab,this['__wbg_ptr'],a3,a4,a5,a6,a7,a8);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()[aE(0xad)](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw E(aa);return E(a9);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(V[au(0xcd)][Symbol['dispose']]=V['prototype']['free']);var H=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static[au(0xf3)](a3){a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,P['register'](a4,a4['__wbg_ptr'],a4),a4;}[au(0xfc)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_pageinfo_free'](a3,0x0);}get['page_off'](){const aF=au;if(this['__wbg_ptr']==0x0)throw Error(aF(0xcf));return o(this['__wbg_ptr']),n['pageinfo_page_off'](this[aF(0xbb)])>>>0x0;}get['width_pt'](){const aG=au;if(this['__wbg_ptr']==0x0)throw Error(aG(0xcf));return o(this['__wbg_ptr']),n[aG(0xfd)](this['__wbg_ptr']);}get['height_pt'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pageinfo_height_pt'](this['__wbg_ptr']);}};function a0(){const c8=['create_session','__wbg_fill_3d82e52894462c95','__wasm_bindgen_func_elem_3555','1884381tFhLiv','1038zlfHeH','renderpageimageoptions_background_color','format','byteLength','__wbg_set_lineCap_74b37c7ff968f854','__wbg_set_strokeStyle_25d5381be570e780','using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead','repaint','create','fround','__wbg_set_onload_5e2862e3453854de','pages_info','__wbg_globalCompositeOperation_03e6a5201c8ee369','firstElementChild','createImageBitmap','then','page_off','nextElementSibling','length','__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54','exports','__wbg_fillRect_84131220403e26a4','pagesinfo_page','queueMicrotask','Module','instantiateStreaming','message','rendersessionoptions_new','__wbg_new_1ba21ce319a06297','__wbg_new_no_args_cb138f77cf6151ee','number','__wbg___wbindgen_is_function_8d400b8b1af978cd','getInt32','typstrenderer_render_page_to_canvas','__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f','remove','Object(','__wbg___wbindgen_debug_string_adfb662ae34724b6','detached','typstrenderer_manipulate_data','putImageData','artifact_content','push','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','__wbg_remove_32f69ffabcbc4072','innerHTML','__wbg_ptr','__wbg_new_2884ddbcda091bc1','107960NDVCTI','__wbg_rendersession_free','869772naxFfu','dtor','rendersession_render_in_window','`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a','failed\x20to\x20pass\x20whole\x20string','__wbg_clip_35de02bb25d222d9','function','1238455sHlhXv','stroke','__wbg_renderpageimageoptions_unwrap','66NQElwW','__wbg_stroke_7cfe6d60a6c48303','473iviZQr','renderpageimageoptions_set_page_off','prototype','instantiate','Attempt\x20to\x20use\x20a\x20moved\x20value','expected\x20instance\x20of\x20','getAttribute','__wbg_measureText_a465ecc06491802d','__wbg_firstElementChild_54d515b19cee5ae7','background_color','renderpageimageoptions_set_data_selection','cannot\x20invoke\x20`new`\x20directly','revokeObjectURL','name','free','svg_data','drawImage','setInt32','cloneNode','renderer_build_info','dispose','set','__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037','has','createElement','wbg','slice','__wbg_setTransform_c55eca1193bf5ea1','typst_ts_renderer_bg.wasm','call','using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead','setTransform','typstrendererbuilder_add_lazy_font','__wbindgen_add_to_stack_pointer','__wbg_drawImage_c4f2c6d2bcfa9463','cache_key','__wbg_workerbridge_free','__wbg_instanceof_ImageBitmap_e44697c70dffc0fe','__wbg_nextElementSibling_c745ee48314963c0','stringify','__wrap','__wbindgen_export2','130224ETxuXA','__wbg_restore_352c39c9bbeedc91','string','data_selection','expected\x20a\x20boolean\x20argument,\x20found\x20','24283XwmMBp','measureText','__destroy_into_raw','pageinfo_width_pt','__wbindgen_export4','render_in_window','memory','12zxFhsT','__wbg_set_169e13b608078b7b','buffer','__wbg_clip_afc9a92171eee96e','get_customs','stack','lineCap','incrdomdocclient_relayout','pixel_per_pt','createsessionoptions_set_format','__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5','__wbg_drawImage_e2012c2a2d434ee2','register','add_glyph_pack','Function(','24783eCPPoe','__wbg_set_fillStyle_c9a0550307cd4671','__wbg_pagesinfo_free','Content-Type','__wbg_get_af9dab7e9603ea93','__wbg_resolve_fd5bfbaa4ce36e1e','headers','__wbg_firstElementChild_e207b33aaa4a86df','need_repaint','replaceWith','__wbindgen_export','18EMQCEY'];a0=function(){return c8;};return a0();}Symbol['dispose']&&(H['prototype'][Symbol['dispose']]=H['prototype']['free']);var U=class e{constructor(){const aH=au;throw Error(aH(0xd6));}static['__wrap'](a3){const aI=au;a3>>>=0x0;let a4=Object[aI(0x95)](e[aI(0xcd)]);return a4['__wbg_ptr']=a3,F['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aJ=au;let a3=this[aJ(0xbb)];return this['__wbg_ptr']=0x0,F['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_pagesinfo_free'](a3,0x0);}get['page_count'](){const aK=au;if(this['__wbg_ptr']==0x0)throw Error(aK(0xcf));return o(this['__wbg_ptr']),n['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](a3){const aL=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[aL(0xbb)]),o(a3);let a4=n['pagesinfo_page_by_number'](this['__wbg_ptr'],a3);return a4===0x0?void 0x0:H['__wrap'](a4);}['page'](a3){const aM=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),o(a3);let a4=n[aM(0xa3)](this['__wbg_ptr'],a3);return H[aM(0xf3)](a4);}['width'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pagesinfo_width'](this['__wbg_ptr']);}['height'](){const aN=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pagesinfo_height'](this[aN(0xbb)]);}};Symbol['dispose']&&(U['prototype'][Symbol['dispose']]=U[au(0xcd)]['free']);var W=class e{static['__unwrap'](a3){return a3 instanceof e?a3['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const aO=au;let a3=this[aO(0xbb)];return this[aO(0xbb)]=0x0,I['unregister'](this),a3;}[au(0xd9)](){let a3=this['__destroy_into_raw']();n['__wbg_renderpageimageoptions_free'](a3,0x0);}constructor(){let a3=n['renderpageimageoptions_new']();return this['__wbg_ptr']=a3>>>0x0,I['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['renderpageimageoptions_pixel_per_pt'](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set[au(0x109)](a3){const aP=au;if(this[aP(0xbb)]==0x0)throw Error(aP(0xcf));o(this['__wbg_ptr']),S(a3)||o(a3),n['renderpageimageoptions_set_pixel_per_pt'](this[aP(0xbb)],S(a3)?0x100000001:Math['fround'](a3));}get[au(0xd4)](){const aQ=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this[aQ(0xbb)]),n[aQ(0x8e)](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set[au(0xd4)](a3){const aR=au;if(this['__wbg_ptr']==0x0)throw Error(aR(0xcf));o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['renderpageimageoptions_set_background_color'](this['__wbg_ptr'],a4,a5);}get[au(0x9d)](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['renderpageimageoptions_page_off'](this['__wbg_ptr'])>>>0x0;}set['page_off'](a3){const aS=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),o(a3),n[aS(0xcc)](this['__wbg_ptr'],a3);}get[au(0xee)](){const aT=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['renderpageimageoptions_cache_key'](a5,this[aT(0xbb)]);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()[aT(0xad)](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['cache_key'](a3){const aU=au;if(this['__wbg_ptr']==0x0)throw Error(aU(0xcf));o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['renderpageimageoptions_set_cache_key'](this['__wbg_ptr'],a4,a5);}get[au(0xf8)](){const aV=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['renderpageimageoptions_data_selection'](this[aV(0xbb)]);return a3===0x100000001?void 0x0:a3;}set['data_selection'](a3){const aW=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[aW(0xbb)]),S(a3)||o(a3),n[aW(0xd5)](this['__wbg_ptr'],S(a3)?0x100000001:a3>>>0x0);}};Symbol['dispose']&&(W['prototype'][Symbol['dispose']]=W['prototype']['free']);var G=class e{constructor(){const aX=au;throw Error(aX(0xd6));}static['__wrap'](a3){a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,L['register'](a4,a4['__wbg_ptr'],a4),a4;}[au(0xfc)](){const aY=au;let a3=this['__wbg_ptr'];return this[aY(0xbb)]=0x0,L['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_rendersession_free'](a3,0x0);}[au(0xff)](a3,a4,a5,a6){const aZ=au;let a7,a8;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n[aZ(0xc1)](ab,this['__wbg_ptr'],a3,a4,a5,a6);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);return a7=a9,a8=aa,p(a9,aa);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n[aZ(0xfe)](a7,a8,0x1);}}get['pixel_per_pt'](){const b0=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[b0(0xbb)]);let a3=n['rendersession_pixel_per_pt'](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set['pixel_per_pt'](a3){const b1=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),S(a3)||o(a3),n['rendersession_set_pixel_per_pt'](this[b1(0xbb)],S(a3)?0x100000001:Math[b1(0x96)](a3));}get['background_color'](){const b2=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['rendersession_background_color'](a5,this[b2(0xbb)]);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()[b2(0xad)](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)[b2(0xe5)](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](a3){const b3=au;if(this[b3(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n[b3(0x87)],n['__wbindgen_export2']),a5=A;n['rendersession_set_background_color'](this['__wbg_ptr'],a4,a5);}get[au(0x98)](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['rendersession_pages_info'](this['__wbg_ptr']);return U['__wrap'](a3);}get['doc_width'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['rendersession_doc_width'](this['__wbg_ptr']);}get['doc_height'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](a3){const b4=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a8=ne(a3,n['__wbindgen_export']),a9=A;n['rendersession_source_span'](a7,this['__wbg_ptr'],a8,a9);var a4=f()['getInt32'](a7+0x0,!0x0),a5=f()['getInt32'](a7+0x4,!0x0),a6=f()['getInt32'](a7+0x8,!0x0);if(f()['getInt32'](a7+0xc,!0x0))throw E(a6);let aa;return a4!==0x0&&(aa=p(a4,a5)['slice'](),n[b4(0xfe)](a4,a5*0x1,0x1)),aa;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(G['prototype'][Symbol[au(0xdf)]]=G['prototype']['free']);var K=class{['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,R['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_rendersessionoptions_free'](a3,0x0);}constructor(){const b5=au;let a3=n[b5(0xa8)]();return this['__wbg_ptr']=a3>>>0x0,R[b5(0x7a)](this,this[b5(0xbb)],this),this;}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['rendersession_pixel_per_pt'](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set['pixel_per_pt'](a3){const b6=au;if(this[b6(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),S(a3)||o(a3),n['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],S(a3)?0x100000001:Math['fround'](a3));}get['background_color'](){const b7=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['rendersessionoptions_background_color'](a5,this['__wbg_ptr']);var a3=f()[b7(0xad)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)[b7(0xe5)](),n[b7(0xfe)](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['rendersessionoptions_set_background_color'](this['__wbg_ptr'],a4,a5);}get[au(0x8f)](){const b8=au;try{if(this[b8(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this[b8(0xbb)]),n['rendersessionoptions_format'](a5,this[b8(0xbb)]);var a3=f()[b8(0xad)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](a3){const b9=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[b9(0xbb)]);var a4=S(a3)?0x0:T(a3,n[b9(0x87)],n['__wbindgen_export2']),a5=A;n['rendersessionoptions_set_format'](this['__wbg_ptr'],a4,a5);}};Symbol['dispose']&&(K['prototype'][Symbol['dispose']]=K[au(0xcd)]['free']);var q=class e{static['__wrap'](a3){const ba=au;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4[ba(0xbb)]=a3,z['register'](a4,a4['__wbg_ptr'],a4),a4;}[au(0xfc)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,z['unregister'](this),a3;}['free'](){const bb=au;let a3=this[bb(0xfc)]();n['__wbg_typstrenderer_free'](a3,0x0);}constructor(){let a3=n['typstrenderer_new']();return this['__wbg_ptr']=a3>>>0x0,z['register'](this,this['__wbg_ptr'],this),this;}[au(0x89)](a3){try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a7=0x0;if(!S(a3)){if(a(a3,B),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a7=a3['__destroy_into_raw']();}n['typstrenderer_create_session'](a6,this['__wbg_ptr'],a7);var a4=f()['getInt32'](a6+0x0,!0x0),a5=f()['getInt32'](a6+0x4,!0x0);if(f()['getInt32'](a6+0x8,!0x0))throw E(a5);return G['__wrap'](a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](a3){const bc=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n[bc(0xec)](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');n['typstrenderer_reset'](a5,this['__wbg_ptr'],a3['__wbg_ptr']);var a4=f()[bc(0xad)](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw E(a4);}finally{n[bc(0xec)](0x10);}}['manipulate_data'](a3,a4,a5){const bd=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a8=T(a4,n['__wbindgen_export'],n['__wbindgen_export2']),a9=A,aa=w(a5,n['__wbindgen_export']),ab=A;n[bd(0xb4)](a7,this['__wbg_ptr'],a3['__wbg_ptr'],a8,a9,aa,ab);var a6=f()['getInt32'](a7+0x0,!0x0);if(f()['getInt32'](a7+0x4,!0x0))throw E(a6);}finally{n[bd(0xec)](0x10);}}['session_from_artifact'](a3,a4){const bf=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a8=w(a3,n['__wbindgen_export']),a9=A,aa=T(a4,n['__wbindgen_export'],n['__wbindgen_export2']),ab=A;n['typstrenderer_session_from_artifact'](a7,this['__wbg_ptr'],a8,a9,aa,ab);var a5=f()[bf(0xad)](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw E(a6);return G['__wrap'](a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['load_glyph_pack'](a3){const bg=au;try{if(this['__wbg_ptr']==0x0)throw Error(bg(0xcf));let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['typstrenderer_load_glyph_pack'](a5,this['__wbg_ptr'],r(a3));var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw E(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](a3,a4,a5,a6,a7){const bh=au;let a8,a9;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ac=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error(bh(0xcf));n['typstrenderer_render_svg_diff'](ac,this['__wbg_ptr'],a3['__wbg_ptr'],a4,a5,a6,a7);var aa=f()[bh(0xad)](ac+0x0,!0x0),ab=f()['getInt32'](ac+0x4,!0x0);return a8=aa,a9=ab,p(aa,ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a8,a9,0x1);}}[au(0xda)](a3,a4){const bi=au;let a5,a6;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ad=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');S(a4)||o(a4),n['typstrenderer_svg_data'](ad,this['__wbg_ptr'],a3['__wbg_ptr'],S(a4)?0x100000001:a4>>>0x0);var a7=f()['getInt32'](ad+0x0,!0x0),a8=f()['getInt32'](ad+0x4,!0x0),a9=f()['getInt32'](ad+0x8,!0x0),aa=f()['getInt32'](ad+0xc,!0x0),ab=a7,ac=a8;if(aa)throw ab=0x0,ac=0x0,E(a9);return a5=ab,a6=ac,p(ab,ac);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n[bi(0xfe)](a5,a6,0x1);}}[au(0x105)](a3){if(this['__wbg_ptr']==0x0||(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return E(n['typstrenderer_get_customs'](this['__wbg_ptr'],a3['__wbg_ptr']));}['render_svg'](a3,a4){const bj=au;try{if(this['__wbg_ptr']==0x0)throw Error(bj(0xcf));let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this[bj(0xbb)]),a(a3,G),a3[bj(0xbb)]===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');n['typstrenderer_render_svg'](a7,this[bj(0xbb)],a3[bj(0xbb)],r(a4));var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()[bj(0xad)](a7+0x4,!0x0);if(f()[bj(0xad)](a7+0x8,!0x0))throw E(a6);return a5!==0x0;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](a3){const bk=au;if(this['__wbg_ptr']==0x0)throw Error(bk(0xcf));return o(this[bk(0xbb)]),E(n['typstrenderer_create_worker'](this['__wbg_ptr'],r(a3)));}['create_worker_bridge'](){const bl=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=this[bl(0xfc)](),a6=n['__wbindgen_add_to_stack_pointer'](-0x10);o(a5),n['typstrenderer_create_worker_bridge'](a6,a5);var a3=f()['getInt32'](a6+0x0,!0x0),a4=f()['getInt32'](a6+0x4,!0x0);if(f()[bl(0xad)](a6+0x8,!0x0))throw E(a4);return X['__wrap'](a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['render_page_to_canvas'](a3,a4,a5){const bm=au;if(this[bm(0xbb)]==0x0||(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a6=0x0;if(!S(a5)){if(a(a5,W),a5['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a6=a5['__destroy_into_raw']();}return E(n[bm(0xae)](this['__wbg_ptr'],a3[bm(0xbb)],r(a4),a6));}['mount_dom'](a3,a4){const bn=au;if(this['__wbg_ptr']==0x0||(o(this[bn(0xbb)]),a(a3,G),a3['__wbg_ptr']===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return E(n['typstrenderer_mount_dom'](this['__wbg_ptr'],a3['__wbg_ptr'],r(a4)));}};Symbol['dispose']&&(q['prototype'][Symbol['dispose']]=q['prototype']['free']);function a1(a,b){a=a-0x7a;const c=a0();let d=c[a];return d;}var J=class{[au(0xfc)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ue['unregister'](this),a3;}['free'](){const bo=au;let a3=this[bo(0xfc)]();n['__wbg_typstrendererbuilder_free'](a3,0x0);}constructor(){const bp=au;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstrendererbuilder_new'](a5);var a3=f()[bp(0xad)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw E(a4);return this[bp(0xbb)]=a3>>>0x0,ue['register'](this,this['__wbg_ptr'],this),this;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const bq=au;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a3=this[bq(0xfc)]();return o(a3),E(n['typstrendererbuilder_build'](a3));}[au(0x7b)](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n['typstrendererbuilder_add_glyph_pack'](this['__wbg_ptr'],r(a3)));}['add_raw_font'](a3){const br=au;if(this['__wbg_ptr']==0x0)throw Error(br(0xcf));return o(this[br(0xbb)]),E(n['typstrendererbuilder_add_raw_font'](this['__wbg_ptr'],r(a3)));}['add_lazy_font'](a3,a4){const bs=au;if(this[bs(0xbb)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n[bs(0xeb)](this[bs(0xbb)],r(a3),r(a4)));}};Symbol['dispose']&&(J['prototype'][Symbol['dispose']]=J['prototype']['free']);var Y=class{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const bt=au;let a3=this['__wbg_ptr'];return this[bt(0xbb)]=0x0,de['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstworker_free'](a3,0x0);}['manipulate_data'](a3,a4){const bu=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a8=T(a3,n[bu(0x87)],n['__wbindgen_export2']),a9=A;n['typstworker_manipulate_data'](a7,this['__wbg_ptr'],a8,a9,r(a4));var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw E(a6);return E(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_pages_info'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n['typstworker_get_pages_info'](this['__wbg_ptr']));}['render_canvas'](a3,a4,a5){const bv=au;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a8=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a9=w(a3,n['__wbindgen_export']),aa=A,ab=re(a4,n['__wbindgen_export']),ac=A,ad=re(a5,n['__wbindgen_export']),af=A;n['typstworker_render_canvas'](a8,this[bv(0xbb)],a9,aa,ab,ac,ad,af);var a6=f()['getInt32'](a8+0x0,!0x0),a7=f()['getInt32'](a8+0x4,!0x0);if(f()['getInt32'](a8+0x8,!0x0))throw E(a7);return E(a6);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(Y['prototype'][Symbol['dispose']]=Y[au(0xcd)]['free']);var X=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](a3){a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,fe['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,fe['unregister'](this),a3;}[au(0xd9)](){const bw=au;let a3=this['__destroy_into_raw']();n[bw(0xef)](a3,0x0);}};Symbol['dispose']&&(X['prototype'][Symbol['dispose']]=X['prototype']['free']);function pe(){const bx=au;return E(n[bx(0xde)]());}var me=new Set(['basic','cors','default']);function he(a3,a4){return Z['apply'](this,arguments);}function Z(){return Z=t(function*(a3,a4){const by=a1;if(typeof Response=='function'&&a3 instanceof Response){if(typeof WebAssembly[by(0xa6)]==by(0xc5))try{return yield WebAssembly['instantiateStreaming'](a3,a4);}catch(a6){if(a3['ok']&&me[by(0xe2)](a3['type'])&&a3[by(0x83)]['get'](by(0x80))!=='application/wasm')console['warn'](by(0xc2),a6);else throw a6;}let a5=yield a3['arrayBuffer']();return yield WebAssembly['instantiate'](a5,a4);}else{let a7=yield WebAssembly[by(0xce)](a3,a4);return a7 instanceof WebAssembly['Instance']?{'instance':a7,'module':a3}:a7;}}),Z['apply'](this,arguments);}function ge(){const bz=au;let a3={};return a3['wbg']={},a3['wbg'][bz(0xb2)]=function(a4,a5){const bA=bz;let a6=T(c(v(a5)),n[bA(0x87)],n['__wbindgen_export2']),a7=A;f()[bA(0xdc)](a4+0x4,a7,!0x0),f()[bA(0xdc)](a4+0x0,a6,!0x0);},a3['wbg'][bz(0xac)]=function(a4){const bB=bz;let a5=typeof v(a4)==bB(0xc5);return i(a5),a5;},a3['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(a4){let a5=v(a4)===void 0x0;return i(a5),a5;},a3['wbg'][bz(0xb8)]=function(a4,a5){let a6=v(a4)===v(a5);return i(a6),a6;},a3[bz(0xe4)]['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(a4,a5){const bC=bz;let a6=v(a5),a7=typeof a6==bC(0xf7)?a6:void 0x0;var a8=S(a7)?0x0:T(a7,n['__wbindgen_export'],n['__wbindgen_export2']),a9=A;f()['setInt32'](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},a3['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(a4,a5){throw Error(p(a4,a5));},a3['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return C(function(a4){v(a4)['_wbg_cb_unref']();},arguments);},a3['wbg']['__wbg_appendChild_7465eba84213c75f']=function(){return y(function(a4,a5){return r(v(a4)['appendChild'](v(a5)));},arguments);},a3[bz(0xe4)]['__wbg_call_3020136f7a2d6e44']=function(){return y(function(a4,a5,a6){const bD=a1;return r(v(a4)[bD(0xe8)](v(a5),v(a6)));},arguments);},a3[bz(0xe4)]['__wbg_call_78f94eb02ec7f9b2']=function(){return y(function(a4,a5,a6,a7,a8){return r(v(a4)['call'](v(a5),v(a6),v(a7),v(a8)));},arguments);},a3['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return y(function(a4,a5){const bE=a1;return r(v(a4)[bE(0xe8)](v(a5)));},arguments);},a3['wbg']['__wbg_call_c8baa5c5e72d274e']=function(){return y(function(a4,a5,a6,a7){const bF=a1;return r(v(a4)[bF(0xe8)](v(a5),v(a6),v(a7)));},arguments);},a3['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['clearRect'](a5,a6,a7,a8);},arguments);},a3[bz(0xe4)]['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return C(function(a4){let a5=v(a4)['clientWidth'];return o(a5),a5;},arguments);},a3['wbg'][bz(0xc4)]=function(){return C(function(a4,a5){v(a4)['clip'](v(a5));},arguments);},a3[bz(0xe4)][bz(0x104)]=function(){return C(function(a4,a5){v(a4)['clip'](v(a5));},arguments);},a3[bz(0xe4)]['__wbg_cloneNode_c9c45b24b171a776']=function(){return y(function(a4){const bG=a1;return r(v(a4)[bG(0xdd)]());},arguments);},a3['wbg']['__wbg_content_ad90fa08b8c037c5']=function(){return C(function(a4){let a5=v(a4)['content'];return r(a5);},arguments);},a3['wbg']['__wbg_createElement_da4ed2b219560fc6']=function(){return y(function(a4,a5,a6){const bH=a1;return r(v(a4)[bH(0xe3)](p(a5,a6)));},arguments);},a3['wbg']['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return y(function(a4,a5){const bI=a1;return r(v(a4)[bI(0x9b)](v(a5)));},arguments);},a3['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return y(function(a4,a5){return r(v(a4)['createImageBitmap'](v(a5)));},arguments);},a3['wbg']['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return y(function(a4,a5){const bJ=a1;let a6=T(URL['createObjectURL'](v(a5)),n['__wbindgen_export'],n['__wbindgen_export2']),a7=A;f()[bJ(0xdc)](a4+0x4,a7,!0x0),f()['setInt32'](a4+0x0,a6,!0x0);},arguments);},a3[bz(0xe4)]['__wbg_document_5b745e82ba551ca5']=function(){return C(function(a4){let a5=v(a4)['document'];return S(a5)?0x0:r(a5);},arguments);},a3[bz(0xe4)]['__wbg_drawImage_2859dfb229439d8c']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg']['__wbg_drawImage_6949f7679b2a9758']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3[bz(0xe4)]['__wbg_drawImage_c2aacfe3133aedb7']=function(){return y(function(a4,a5,a6,a7){v(a4)['drawImage'](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_drawImage_c40aff4a38206f4a']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg'][bz(0xed)]=function(){return y(function(a4,a5,a6,a7){const bK=a1;v(a4)[bK(0xdb)](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return y(function(a4,a5,a6,a7){const bL=a1;v(a4)[bL(0xdb)](v(a5),a6,a7);},arguments);},a3[bz(0xe4)][bz(0x10c)]=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(){return C(function(a4,a5){let a6,a7;try{a6=a4,a7=a5,console['error'](p(a4,a5));}finally{n['__wbindgen_export4'](a6,a7,0x1);}},arguments);},a3['wbg'][bz(0xa2)]=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['fillRect'](a5,a6,a7,a8);},arguments);},a3['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['fillRect'](a5,a6,a7,a8);},arguments);},a3['wbg']['__wbg_fill_2f2cb4f3f75aadd4']=function(){return C(function(a4,a5,a6){v(a4)['fill'](v(a5),j[a6]);},arguments);},a3[bz(0xe4)]['__wbg_fill_38a7d7455451c001']=function(){return C(function(a4,a5,a6){v(a4)['fill'](v(a5),j[a6]);},arguments);},a3['wbg'][bz(0x8a)]=function(){return C(function(a4,a5){v(a4)['fill'](v(a5));},arguments);},a3[bz(0xe4)]['__wbg_fill_f1043be5324533f3']=function(){return C(function(a4,a5){v(a4)['fill'](v(a5));},arguments);},a3['wbg'][bz(0xd3)]=function(){return C(function(a4){const bM=a1;let a5=v(a4)[bM(0x9a)];return S(a5)?0x0:r(a5);},arguments);},a3[bz(0xe4)][bz(0x84)]=function(){return C(function(a4){let a5=v(a4)['firstElementChild'];return S(a5)?0x0:r(a5);},arguments);},a3['wbg']['__wbg_getAttribute_80900eec94cb3636']=function(){return C(function(a4,a5,a6,a7){const bN=a1;let a8=v(a5)[bN(0xd1)](p(a6,a7));var a9=S(a8)?0x0:T(a8,n[bN(0x87)],n['__wbindgen_export2']),aa=A;f()['setInt32'](a4+0x4,aa,!0x0),f()['setInt32'](a4+0x0,a9,!0x0);},arguments);},a3['wbg']['__wbg_getContext_01f42b234e833f0a']=function(){return y(function(a4,a5,a6){let a7=v(a4)['getContext'](p(a5,a6));return S(a7)?0x0:r(a7);},arguments);},a3['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return y(function(a4,a5,a6){let a7=v(a4)['getContext'](p(a5,a6));return S(a7)?0x0:r(a7);},arguments);},a3[bz(0xe4)][bz(0x81)]=function(){return y(function(a4,a5){return r(Reflect['get'](v(a4),v(a5)));},arguments);},a3['wbg'][bz(0x99)]=function(){return y(function(a4,a5){const bO=a1;let a6=v(a5)['globalCompositeOperation'],a7=T(a6,n['__wbindgen_export'],n[bO(0xf4)]),a8=A;f()['setInt32'](a4+0x4,a8,!0x0),f()[bO(0xdc)](a4+0x0,a7,!0x0);},arguments);},a3['wbg']['__wbg_globalCompositeOperation_d52c6e6666e4be00']=function(){return y(function(a4,a5){const bP=a1;let a6=v(a5)['globalCompositeOperation'],a7=T(a6,n[bP(0x87)],n[bP(0xf4)]),a8=A;f()[bP(0xdc)](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},arguments);},a3[bz(0xe4)]['__wbg_height_3a0b31e52a5b7f17']=function(){return C(function(a4){let a5=v(a4)['height'];return o(a5),a5;},arguments);},a3['wbg']['__wbg_incrdomdocclient_new']=function(){return C(function(a4){return r(V['__wrap'](a4));},arguments);},a3['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof CanvasRenderingContext2D;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Element;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3[bz(0xe4)]['__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLCanvasElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg'][bz(0xe1)]=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLDivElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLTemplateElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg'][bz(0xf0)]=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof ImageBitmap;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg'][bz(0x10b)]=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof OffscreenCanvasRenderingContext2D;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3[bz(0xe4)][bz(0xaf)]=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof OffscreenCanvas;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_Promise_eca6c43a2610558d']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Promise;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof SVGGraphicsElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof SVGSVGElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3[bz(0xe4)]['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Window;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg'][bz(0xa0)]=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof WorkerGlobalScope;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return C(function(a4){let a5=v(a4)['lastElementChild'];return S(a5)?0x0:r(a5);},arguments);},a3['wbg']['__wbg_length_22ac23eaec9d8053']=function(){return C(function(a4){let a5=v(a4)['length'];return o(a5),a5;},arguments);},a3['wbg']['__wbg_log_1d990106d99dacb7']=function(){return C(function(a4){console['log'](v(a4));},arguments);},a3['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return C(function(a4,a5){console['log'](v(a4),v(a5));},arguments);},a3['wbg'][bz(0xd2)]=function(){return y(function(a4,a5,a6){const bQ=a1;return r(v(a4)[bQ(0xfb)](p(a5,a6)));},arguments);},a3[bz(0xe4)][bz(0xa9)]=function(){return C(function(){return r({});},arguments);},a3['wbg']['__wbg_new_25f239778d6112b9']=function(){return C(function(){return r([]);},arguments);},a3[bz(0xe4)][bz(0xbc)]=function(){return y(function(){return r(new Image());},arguments);},a3['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return C(function(){return r(Error());},arguments);},a3['wbg']['__wbg_new_9468dd6e5df427f6']=function(){return y(function(a4,a5){return r(new OffscreenCanvas(a4>>>0x0,a5>>>0x0));},arguments);},a3['wbg']['__wbg_new_df1173567d5ff028']=function(){return C(function(a4,a5){return r(Error(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return C(function(a4,a5){try{var a6={'a':a4,'b':a5};return r(new Promise((a7,a8)=>{let a9=a6['a'];a6['a']=0x0;try{return le(a9,a6['b'],a7,a8);}finally{a6['a']=a9;}}));}finally{a6['a']=a6['b']=0x0;}},arguments);},a3['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return C(function(a4,a5){return r(new Uint8Array(u(a4,a5)));},arguments);},a3['wbg'][bz(0xaa)]=function(){return C(function(a4,a5){return r(Function(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return C(function(a4){return r(new Uint8Array(a4>>>0x0));},arguments);},a3[bz(0xe4)]['__wbg_new_with_path_string_3aea637e78135c46']=function(){return y(function(a4,a5){return r(new Path2D(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return y(function(a4,a5){return r(new Blob(v(a4),v(a5)));},arguments);},a3['wbg'][bz(0xf1)]=function(){return C(function(a4){const bR=a1;let a5=v(a4)[bR(0x9e)];return S(a5)?0x0:r(a5);},arguments);},a3['wbg']['__wbg_push_7d9be8f38fc13975']=function(){return C(function(a4,a5){const bS=a1;let a6=v(a4)[bS(0xb7)](v(a5));return o(a6),a6;},arguments);},a3['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return y(function(a4,a5,a6,a7){v(a4)['putImageData'](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_putImageData_e96eabf0e9610ed3']=function(){return y(function(a4,a5,a6,a7){const bT=a1;v(a4)[bT(0xb5)](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return C(function(a4){const bU=a1;let a5=v(a4)[bU(0xa4)];return r(a5);},arguments);},a3['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return C(function(a4){queueMicrotask(v(a4));},arguments);},a3['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return y(function(a4,a5,a6,a7){let a8=T(v(a5)['removeProperty'](p(a6,a7)),n['__wbindgen_export'],n['__wbindgen_export2']),a9=A;f()['setInt32'](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},arguments);},a3[bz(0xe4)][bz(0xb9)]=function(){return C(function(a4){const bV=a1;v(a4)[bV(0xb0)]();},arguments);},a3['wbg'][bz(0xc8)]=function(){return C(function(a4){let a5=W['__unwrap'](v(a4));return o(a5),a5;},arguments);},a3[bz(0xe4)]['__wbg_replaceWith_923cfb1b2f584408']=function(){return y(function(a4,a5){const bW=a1;v(a4)[bW(0x86)](v(a5));},arguments);},a3['wbg'][bz(0x82)]=function(){return C(function(a4){return r(Promise['resolve'](v(a4)));},arguments);},a3['wbg'][bz(0xf6)]=function(){return C(function(a4){v(a4)['restore']();},arguments);},a3['wbg']['__wbg_restore_6486cb1a7aa3af7b']=function(){return C(function(a4){v(a4)['restore']();},arguments);},a3[bz(0xe4)]['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return y(function(a4,a5){const bX=a1;URL[bX(0xd7)](p(a4,a5));},arguments);},a3['wbg']['__wbg_save_131c8dc648f702b6']=function(){return C(function(a4){v(a4)['save']();},arguments);},a3['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return C(function(a4){v(a4)['save']();},arguments);},a3['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return y(function(a4,a5,a6,a7,a8){v(a4)['setAttribute'](p(a5,a6),p(a7,a8));},arguments);},a3['wbg']['__wbg_setLineDash_7e3aad159aa2710c']=function(){return y(function(a4,a5){v(a4)['setLineDash'](v(a5));},arguments);},a3['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return y(function(a4,a5){v(a4)['setLineDash'](v(a5));},arguments);},a3[bz(0xe4)]['__wbg_setProperty_f27b2c05323daf8a']=function(){return y(function(a4,a5,a6,a7,a8){v(a4)['setProperty'](p(a5,a6),p(a7,a8));},arguments);},a3['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return y(function(a4,a5,a6,a7,a8,a9,aa){const bY=a1;v(a4)[bY(0xea)](a5,a6,a7,a8,a9,aa);},arguments);},a3['wbg'][bz(0xe6)]=function(){return y(function(a4,a5,a6,a7,a8,a9,aa){v(a4)['setTransform'](a5,a6,a7,a8,a9,aa);},arguments);},a3['wbg'][bz(0x102)]=function(){return C(function(a4,a5,a6){v(a4)['set'](u(a5,a6));},arguments);},a3['wbg']['__wbg_set_781438a03c0c3c81']=function(){return y(function(a4,a5,a6){let a7=Reflect['set'](v(a4),v(a5),v(a6));return i(a7),a7;},arguments);},a3['wbg']['__wbg_set_7df433eea03a5c14']=function(){return C(function(a4,a5,a6){v(a4)[a5>>>0x0]=E(a6);},arguments);},a3['wbg']['__wbg_set_fillStyle_b26e462a87b14315']=function(){return C(function(a4,a5,a6){v(a4)['fillStyle']=p(a5,a6);},arguments);},a3[bz(0xe4)][bz(0x7e)]=function(){return C(function(a4,a5,a6){v(a4)['fillStyle']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return C(function(a4,a5,a6){v(a4)['font']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return y(function(a4,a5,a6){v(a4)['globalCompositeOperation']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return y(function(a4,a5,a6){v(a4)['globalCompositeOperation']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return C(function(a4,a5){v(a4)['height']=a5>>>0x0;},arguments);},a3['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return C(function(a4,a5,a6){const bZ=a1;v(a4)[bZ(0xba)]=p(a5,a6);},arguments);},a3['wbg'][bz(0x91)]=function(){return C(function(a4,a5,a6){const c0=a1;v(a4)[c0(0x107)]=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return C(function(a4,a5,a6){v(a4)['lineCap']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_lineDashOffset_85f21a63ddf34d2c']=function(){return C(function(a4,a5){v(a4)['lineDashOffset']=a5;},arguments);},a3['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return C(function(a4,a5){v(a4)['lineDashOffset']=a5;},arguments);},a3[bz(0xe4)]['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return C(function(a4,a5,a6){v(a4)['lineJoin']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return C(function(a4,a5,a6){v(a4)['lineJoin']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return C(function(a4,a5){v(a4)['lineWidth']=a5;},arguments);},a3['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return C(function(a4,a5){v(a4)['lineWidth']=a5;},arguments);},a3['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return C(function(a4,a5){v(a4)['miterLimit']=a5;},arguments);},a3['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return C(function(a4,a5){v(a4)['miterLimit']=a5;},arguments);},a3['wbg']['__wbg_set_onerror_e7e40c62a55a0770']=function(){return C(function(a4,a5){v(a4)['onerror']=v(a5);},arguments);},a3['wbg'][bz(0x97)]=function(){return C(function(a4,a5){v(a4)['onload']=v(a5);},arguments);},a3['wbg']['__wbg_set_src_84f27c5105946dce']=function(){return C(function(a4,a5,a6){v(a4)['src']=p(a5,a6);},arguments);},a3['wbg'][bz(0x92)]=function(){return C(function(a4,a5,a6){v(a4)['strokeStyle']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return C(function(a4,a5,a6){v(a4)['strokeStyle']=p(a5,a6);},arguments);},a3[bz(0xe4)]['__wbg_set_type_7ce650670a34c68f']=function(){return C(function(a4,a5,a6){v(a4)['type']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return C(function(a4,a5){v(a4)['width']=a5>>>0x0;},arguments);},a3['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(){return C(function(a4,a5){const c1=a1;let a6=v(a5)['stack'],a7=T(a6,n['__wbindgen_export'],n['__wbindgen_export2']),a8=A;f()['setInt32'](a4+0x4,a8,!0x0),f()[c1(0xdc)](a4+0x0,a7,!0x0);},arguments);},a3['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return C(function(){let a4=typeof global>'u'?null:global;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){return C(function(){let a4=typeof globalThis>'u'?null:globalThis;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return C(function(){let a4=typeof self>'u'?null:self;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return C(function(){let a4=typeof window>'u'?null:window;return S(a4)?0x0:r(a4);},arguments);},a3[bz(0xe4)]['__wbg_stringify_655a6390e1f5eb6b']=function(){return y(function(a4){const c2=a1;return r(JSON[c2(0xf2)](v(a4)));},arguments);},a3['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return C(function(a4,a5){v(a4)['stroke'](v(a5));},arguments);},a3['wbg'][bz(0xca)]=function(){return C(function(a4,a5){const c3=a1;v(a4)[c3(0xc7)](v(a5));},arguments);},a3['wbg']['__wbg_style_521a717da50e53c6']=function(){return C(function(a4){let a5=v(a4)['style'];return r(a5);},arguments);},a3[bz(0xe4)]['__wbg_then_429f7caf1026411d']=function(){return C(function(a4,a5,a6){const c4=a1;return r(v(a4)[c4(0x9c)](v(a5),v(a6)));},arguments);},a3['wbg']['__wbg_then_4f95312d68691235']=function(){return C(function(a4,a5){return r(v(a4)['then'](v(a5)));},arguments);},a3['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return y(function(a4){return r(v(a4)['transferToImageBitmap']());},arguments);},a3['wbg']['__wbg_typstrenderer_new']=function(){return C(function(a4){return r(q['__wrap'](a4));},arguments);},a3['wbg']['__wbg_warn_6e567d0d926ff881']=function(){return C(function(a4){console['warn'](v(a4));},arguments);},a3['wbg']['__wbg_width_c3f96f2ca7ab208d']=function(){return C(function(a4){return v(a4)['width'];},arguments);},a3['wbg']['__wbg_width_f13d2e86324fc226']=function(){return C(function(a4){let a5=v(a4)['width'];return o(a5),a5;},arguments);},a3['wbg']['__wbindgen_cast_2241b6af4c4b2941']=function(){return C(function(a4,a5){return r(p(a4,a5));},arguments);},a3['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return C(function(a4,a5){return r(ee(a4,a5,n['__wasm_bindgen_func_elem_1022'],se));},arguments);},a3[bz(0xe4)]['__wbindgen_cast_b2e692da0ea8478a']=function(){return C(function(a4,a5){return r(te(a4,a5,n['__wasm_bindgen_func_elem_1077'],oe));},arguments);},a3['wbg']['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return C(function(a4,a5){return r(ee(a4,a5,n['__wasm_bindgen_func_elem_1022'],ce));},arguments);},a3['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return C(function(a4){return r(a4);},arguments);},a3['wbg']['__wbindgen_object_clone_ref']=function(a4){return r(v(a4));},a3[bz(0xe4)]['__wbindgen_object_drop_ref']=function(a4){E(a4);},a3;}function _e(a3,a4){const c5=au;return n=a3[c5(0xa1)],ye['__wbindgen_wasm_module']=a4,d=null,m=null,g=null,n;}function ve(a3){const c6=au;if(n!==void 0x0)return n;a3!==void 0x0&&(Object['getPrototypeOf'](a3)===Object['prototype']?{module:a3}=a3:console['warn'](c6(0xe9)));let a4=ge();return a3 instanceof WebAssembly['Module']||(a3=new WebAssembly[(c6(0xa5))](a3)),_e(new WebAssembly['Instance'](a3,a4),a3);}function ye(a3){return Q['apply'](this,arguments);}function Q(){return Q=t(function*(a3){const c7=a1;if(n!==void 0x0)return n;a3!==void 0x0&&(Object['getPrototypeOf'](a3)===Object[c7(0xcd)]?{module_or_path:a3}=a3:console['warn'](c7(0x93))),a3===void 0x0&&(a3=be(c7(0xe7),import.meta.url));let a4=ge();(typeof a3=='string'||typeof Request=='function'&&a3 instanceof Request||typeof URL=='function'&&a3 instanceof URL)&&(a3=fetch(a3));let {instance:a5,module:a6}=yield he(yield a3,a4);return _e(a5,a6);}),Q['apply'](this,arguments);}var be=(function(){var a3=t(function*(a4,a5){throw Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+a4+'\x20'+a5);});return function(a4,a5){return a3['apply'](this,arguments);};}());function $(a3){be=a3;}a2();var xe=ye,Se=(function(){var a3=t(function*(a4,a5){let {readFileSync:a6}=yield Function('m','return\x20import(m)')('fs');return yield a6(new URL(a4,a5))['buffer'];});return function(a4,a5){return a3['apply'](this,arguments);};}());typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null&&$(Se);export{B as CreateSessionOptions,V as IncrDomDocClient,H as PageInfo,U as PagesInfo,W as RenderPageImageOptions,G as RenderSession,K as RenderSessionOptions,q as TypstRenderer,J as TypstRendererBuilder,Y as TypstWorker,X as WorkerBridge,xe as default,ve as initSync,pe as renderer_build_info,$ as setImportWasmModule};
|
|
1
|
+
const av=a1;(function(a3,a4){const ag=a1,a5=a3();while(!![]){try{const a6=parseInt(ag(0xa1))/0x1*(parseInt(ag(0x80))/0x2)+-parseInt(ag(0x74))/0x3+parseInt(ag(0xe0))/0x4+parseInt(ag(0xa7))/0x5+parseInt(ag(0xcf))/0x6*(-parseInt(ag(0xe2))/0x7)+-parseInt(ag(0xd0))/0x8*(-parseInt(ag(0x67))/0x9)+-parseInt(ag(0x65))/0xa;if(a6===a4)break;else a5['push'](a5['shift']());}catch(a7){a5['push'](a5['shift']());}}}(a0,0x4ff0a));import{n as a2,t}from'./asyncToGenerator.js';a2();var n;function r(a3){const ah=a1;x===b['length']&&b['push'](b['length']+0x1);let a4=x;if(x=b[a4],typeof x!='number')throw Error(ah(0xca));return b[a4]=a3,a4;}function i(a3){const ai=a1;if(typeof a3!=ai(0x7d))throw Error(ai(0x98)+typeof a3);}function a(a3,a4){const aj=a1;if(!(a3 instanceof a4))throw Error(aj(0x7a)+a4['name']);}function o(a3){if(typeof a3!='number')throw Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof a3);}var s=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>a3['dtor'](a3['a'],a3['b']));function c(a3){const ak=a1;let a4=typeof a3;if(a4=='number'||a4=='boolean'||a3==null)return''+a3;if(a4=='string')return'\x22'+a3+'\x22';if(a4=='symbol'){let a7=a3[ak(0x6d)];return a7==null?'Symbol':'Symbol('+a7+')';}if(a4=='function'){let a8=a3['name'];return typeof a8=='string'&&a8['length']>0x0?'Function('+a8+')':'Function';}if(Array['isArray'](a3)){let a9=a3['length'],aa='[';a9>0x0&&(aa+=c(a3[0x0]));for(let ab=0x1;ab<a9;ab++)aa+=',\x20'+c(a3[ab]);return aa+=']',aa;}let a5=/\[object ([^\]]+)\]/['exec'](toString['call'](a3)),a6;if(a5&&a5['length']>0x1)a6=a5[0x1];else return toString['call'](a3);if(a6=='Object')try{return'Object('+JSON['stringify'](a3)+')';}catch(ac){return'Object';}return a3 instanceof Error?a3['name']+':\x20'+a3['message']+'\x0a'+a3['stack']:a6;}function l(a3){a3<0x84||(b[a3]=x,x=a3);}function u(a3,a4){const al=a1;return a3>>>=0x0,_()[al(0x82)](a3/0x1,a3/0x1+a4);}var d=null;function f(){const am=a1;return(d===null||d['buffer'][am(0xb2)]===!0x0||d['buffer']['detached']===void 0x0&&d['buffer']!==n['memory']['buffer'])&&(d=new DataView(n['memory']['buffer'])),d;}function p(a3,a4){return a3>>>=0x0,ae(a3,a4);}var m=null;function h(){return(m===null||m['byteLength']===0x0)&&(m=new Uint32Array(n['memory']['buffer'])),m;}function a1(a,b){a=a-0x65;const c=a0();let d=c[a];return d;}var g=null;function _(){const an=a1;return(g===null||g[an(0xf1)]===0x0)&&(g=new Uint8Array(n['memory']['buffer'])),g;}function v(a3){return b[a3];}function y(a3,a4){try{return a3['apply'](this,a4);}catch(a5){n['__wbindgen_export3'](r(a5));}}var b=Array(0x80)['fill'](void 0x0);b['push'](void 0x0,null,!0x0,!0x1);var x=b['length'];function S(a3){return a3==null;}function C(a3,a4){try{return a3['apply'](this,a4);}catch(a5){let a6=(function(){try{return a5 instanceof Error?a5['message']+'\x0a\x0aStack:\x0a'+a5['stack']:a5['toString']();}catch(a7){return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',a6),a5;}}function ee(a3,a4,a5,a6){const ap=a1;let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{const ao=a1;a7[ao(0x79)]++;try{return a6(a7['a'],a7['b'],...a9);}finally{a8['_wbg_cb_unref']();}};return a8[ap(0xe1)]=()=>{const aq=ap;--a7['cnt']===0x0&&(a7[aq(0xbc)](a7['a'],a7['b']),a7['a']=0x0,s[aq(0xef)](a7));},s['register'](a8,a7,a7),a8;}function te(a3,a4,a5,a6){let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{a7['cnt']++;let aa=a7['a'];a7['a']=0x0;try{return a6(aa,a7['b'],...a9);}finally{a7['a']=aa,a8['_wbg_cb_unref']();}};return a8['_wbg_cb_unref']=()=>{--a7['cnt']===0x0&&(a7['dtor'](a7['a'],a7['b']),a7['a']=0x0,s['unregister'](a7));},s['register'](a8,a7,a7),a8;}function ne(a3,a4){const ar=a1;let a5=a4(a3[ar(0xa6)]*0x4,0x4)>>>0x0;return h()[ar(0x8b)](a3,a5/0x4),A=a3['length'],a5;}function w(a3,a4){const as=a1;let a5=a4(a3[as(0xa6)]*0x1,0x1)>>>0x0;return _()[as(0x8b)](a3,a5/0x1),A=a3[as(0xa6)],a5;}function re(a3,a4){let a5=a4(a3['length']*0x4,0x4)>>>0x0,a6=f();for(let a7=0x0;a7<a3['length'];a7++)a6['setUint32'](a5+0x4*a7,r(a3[a7]),!0x0);return A=a3['length'],a5;}function T(a3,a4,a5){const at=a1;if(typeof a3!='string')throw Error(at(0xb0)+typeof a3);if(a5===void 0x0){let aa=k[at(0xdd)](a3),ab=a4(aa['length'],0x1)>>>0x0;return _()[at(0x82)](ab,ab+aa[at(0xa6)])[at(0x8b)](aa),A=aa['length'],ab;}let a6=a3['length'],a7=a4(a6,0x1)>>>0x0,a8=_(),a9=0x0;for(;a9<a6;a9++){let ac=a3['charCodeAt'](a9);if(ac>0x7f)break;a8[a7+a9]=ac;}if(a9!==a6){a9!==0x0&&(a3=a3['slice'](a9)),a7=a5(a7,a6,a6=a9+a3['length']*0x3,0x1)>>>0x0;let ad=_()['subarray'](a7+a9,a7+a6),af=k['encodeInto'](a3,ad);if(af['read']!==a3['length'])throw Error('failed\x20to\x20pass\x20whole\x20string');a9+=af[at(0xf4)],a7=a5(a7,a6,a9,0x1)>>>0x0;}return A=a9,a7;}function E(a3){let a4=v(a3);return l(a3),a4;}var D=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});D['decode']();var ie=0x7ff00000,O=0x0;function ae(a3,a4){const au=a1;return O+=a4,O>=ie&&(D=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),D['decode'](),O=a4),D[au(0x75)](_()['subarray'](a3,a3+a4));}var k=new TextEncoder();'encodeInto'in k||(k[av(0xf3)]=function(a3,a4){let a5=k['encode'](a3);return a4['set'](a5),{'read':a3['length'],'written':a5['length']};});var A=0x0;function oe(a3,a4,a5){const aw=av;o(a3),o(a4),n[aw(0x68)](a3,a4,r(a5));}function se(a3,a4){o(a3),o(a4),n['__wasm_bindgen_func_elem_1035'](a3,a4);}function ce(a3,a4,a5){const ax=av;o(a3),o(a4),n[ax(0xa8)](a3,a4,r(a5));}function le(a3,a4,a5,a6){const ay=av;o(a3),o(a4),n[ay(0x6b)](a3,a4,r(a5),r(a6));}var j=['nonzero',av(0xc9)],M=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_createsessionoptions_free'](a3>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_incrdomdocclient_free'](a3>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[av(0xea)](a3>>>0x0,0x1)),F=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_pagesinfo_free'](a3>>>0x0,0x1)),I=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[av(0xeb)](a3>>>0x0,0x1)),L=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_rendersession_free'](a3>>>0x0,0x1)),R=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_rendersessionoptions_free'](a3>>>0x0,0x1)),z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstrenderer_free'](a3>>>0x0,0x1)),ue=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[av(0xb7)](a3>>>0x0,0x1)),de=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstworker_free'](a3>>>0x0,0x1)),fe=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_workerbridge_free'](a3>>>0x0,0x1)),B=class{['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,M['unregister'](this),a3;}[av(0x73)](){let a3=this['__destroy_into_raw']();n['__wbg_createsessionoptions_free'](a3,0x0);}constructor(){const az=av;let a3=n['createsessionoptions_new']();return this['__wbg_ptr']=a3>>>0x0,M['register'](this,this[az(0x72)],this),this;}set['format'](a3){const aA=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a4=T(a3,n[aA(0x9e)],n['__wbindgen_export2']),a5=A;n[aA(0xe7)](this['__wbg_ptr'],a4,a5);}set['artifact_content'](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a4=w(a3,n['__wbindgen_export']),a5=A;n['createsessionoptions_set_artifact_content'](this['__wbg_ptr'],a4,a5);}};Symbol[av(0xdc)]&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);var V=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](a3){const aB=av;a3>>>=0x0;let a4=Object['create'](e[aB(0xce)]);return a4['__wbg_ptr']=a3,N['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_incrdomdocclient_free'](a3,0x0);}['bind_functions'](a3){const aC=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),n['incrdomdocclient_bind_functions'](this[aC(0x72)],r(a3));}['relayout'](a3,a4,a5,a6){const aD=av;if(this[aD(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this[aD(0x72)]),E(n['incrdomdocclient_relayout'](this['__wbg_ptr'],a3,a4,a5,a6));}['need_repaint'](a3,a4,a5,a6,a7,a8){const aE=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),o(a3),o(a8),n['incrdomdocclient_need_repaint'](ab,this['__wbg_ptr'],a3,a4,a5,a6,a7,a8);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()[aE(0x6e)](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw E(aa);return a9!==0x0;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['repaint'](a3,a4,a5,a6,a7,a8){const aF=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n[aF(0xd4)](-0x10);o(this['__wbg_ptr']),o(a3),o(a8),n['incrdomdocclient_repaint'](ab,this['__wbg_ptr'],a3,a4,a5,a6,a7,a8);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw E(aa);return E(a9);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(V['prototype'][Symbol['dispose']]=V['prototype']['free']);var H=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](a3){const aG=av;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4[aG(0x72)]=a3,P[aG(0x83)](a4,a4[aG(0x72)],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P['unregister'](this),a3;}[av(0x73)](){let a3=this['__destroy_into_raw']();n['__wbg_pageinfo_free'](a3,0x0);}get['page_off'](){const aH=av;if(this[aH(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n[aH(0xc5)](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){const aI=av;if(this['__wbg_ptr']==0x0)throw Error(aI(0x6f));return o(this['__wbg_ptr']),n['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pageinfo_height_pt'](this['__wbg_ptr']);}};Symbol['dispose']&&(H['prototype'][Symbol['dispose']]=H['prototype'][av(0x73)]);var U=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](a3){const aJ=av;a3>>>=0x0;let a4=Object[aJ(0xa9)](e['prototype']);return a4[aJ(0x72)]=a3,F['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aK=av;let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,F[aK(0xef)](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_pagesinfo_free'](a3,0x0);}get['page_count'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](a3){const aL=av;if(this['__wbg_ptr']==0x0)throw Error(aL(0x6f));o(this['__wbg_ptr']),o(a3);let a4=n[aL(0xec)](this['__wbg_ptr'],a3);return a4===0x0?void 0x0:H[aL(0x9f)](a4);}[av(0x77)](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),o(a3);let a4=n['pagesinfo_page'](this['__wbg_ptr'],a3);return H['__wrap'](a4);}['width'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n['pagesinfo_width'](this['__wbg_ptr']);}['height'](){const aM=av;if(this['__wbg_ptr']==0x0)throw Error(aM(0x6f));return o(this['__wbg_ptr']),n['pagesinfo_height'](this['__wbg_ptr']);}};Symbol[av(0xdc)]&&(U['prototype'][Symbol[av(0xdc)]]=U['prototype']['free']);var W=class e{static['__unwrap'](a3){return a3 instanceof e?a3['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,I['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_renderpageimageoptions_free'](a3,0x0);}constructor(){const aN=av;let a3=n[aN(0x7b)]();return this[aN(0x72)]=a3>>>0x0,I['register'](this,this[aN(0x72)],this),this;}get['pixel_per_pt'](){const aO=av;if(this[aO(0x72)]==0x0)throw Error(aO(0x6f));o(this['__wbg_ptr']);let a3=n['renderpageimageoptions_pixel_per_pt'](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set['pixel_per_pt'](a3){const aP=av;if(this['__wbg_ptr']==0x0)throw Error(aP(0x6f));o(this[aP(0x72)]),S(a3)||o(a3),n['renderpageimageoptions_set_pixel_per_pt'](this['__wbg_ptr'],S(a3)?0x100000001:Math['fround'](a3));}get[av(0xe3)](){const aQ=av;try{if(this[aQ(0x72)]==0x0)throw Error(aQ(0x6f));let a5=n[aQ(0xd4)](-0x10);o(this['__wbg_ptr']),n['renderpageimageoptions_background_color'](a5,this['__wbg_ptr']);var a3=f()[aQ(0x6e)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](a3){const aR=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n[aR(0xf0)]),a5=A;n['renderpageimageoptions_set_background_color'](this['__wbg_ptr'],a4,a5);}get[av(0xbf)](){const aS=av;if(this['__wbg_ptr']==0x0)throw Error(aS(0x6f));return o(this['__wbg_ptr']),n['renderpageimageoptions_page_off'](this[aS(0x72)])>>>0x0;}set[av(0xbf)](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),o(a3),n['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],a3);}get['cache_key'](){const aT=av;try{if(this[aT(0x72)]==0x0)throw Error(aT(0x6f));let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['renderpageimageoptions_cache_key'](a5,this['__wbg_ptr']);var a3=f()[aT(0x6e)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n[aT(0xe5)](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set[av(0xa0)](a3){const aU=av;if(this[aU(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n[aU(0xf0)]),a5=A;n['renderpageimageoptions_set_cache_key'](this['__wbg_ptr'],a4,a5);}get['data_selection'](){const aV=av;if(this['__wbg_ptr']==0x0)throw Error(aV(0x6f));o(this['__wbg_ptr']);let a3=n['renderpageimageoptions_data_selection'](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set['data_selection'](a3){const aW=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),S(a3)||o(a3),n['renderpageimageoptions_set_data_selection'](this[aW(0x72)],S(a3)?0x100000001:a3>>>0x0);}};Symbol['dispose']&&(W['prototype'][Symbol[av(0xdc)]]=W['prototype']['free']);var G=class e{constructor(){const aX=av;throw Error(aX(0xc0));}static['__wrap'](a3){a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,L['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aY=av;let a3=this['__wbg_ptr'];return this[aY(0x72)]=0x0,L['unregister'](this),a3;}[av(0x73)](){const aZ=av;let a3=this[aZ(0xdf)]();n[aZ(0xd6)](a3,0x0);}['render_in_window'](a3,a4,a5,a6){const b0=av;let a7,a8;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ab=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['rendersession_render_in_window'](ab,this['__wbg_ptr'],a3,a4,a5,a6);var a9=f()['getInt32'](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);return a7=a9,a8=aa,p(a9,aa);}finally{n[b0(0xd4)](0x10),n['__wbindgen_export4'](a7,a8,0x1);}}get['pixel_per_pt'](){const b1=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[b1(0x72)]);let a3=n[b1(0xf5)](this['__wbg_ptr']);return a3===0x100000001?void 0x0:a3;}set['pixel_per_pt'](a3){const b2=av;if(this[b2(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),S(a3)||o(a3),n[b2(0xd7)](this['__wbg_ptr'],S(a3)?0x100000001:Math['fround'](a3));}get['background_color'](){const b3=av;try{if(this[b3(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this[b3(0x72)]),n['rendersession_background_color'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set[av(0xe3)](a3){const b4=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this[b4(0x72)]);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['rendersession_set_background_color'](this[b4(0x72)],a4,a5);}get['pages_info'](){const b5=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['rendersession_pages_info'](this['__wbg_ptr']);return U[b5(0x9f)](a3);}get['doc_width'](){const b6=av;if(this['__wbg_ptr']==0x0)throw Error(b6(0x6f));return o(this['__wbg_ptr']),n['rendersession_doc_width'](this['__wbg_ptr']);}get[av(0xd3)](){const b7=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),n[b7(0x9a)](this['__wbg_ptr']);}['source_span'](a3){const b8=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n[b8(0xd4)](-0x10);o(this[b8(0x72)]);let a8=ne(a3,n['__wbindgen_export']),a9=A;n['rendersession_source_span'](a7,this['__wbg_ptr'],a8,a9);var a4=f()['getInt32'](a7+0x0,!0x0),a5=f()['getInt32'](a7+0x4,!0x0),a6=f()['getInt32'](a7+0x8,!0x0);if(f()['getInt32'](a7+0xc,!0x0))throw E(a6);let aa;return a4!==0x0&&(aa=p(a4,a5)[b8(0xc4)](),n['__wbindgen_export4'](a4,a5*0x1,0x1)),aa;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol[av(0xdc)]&&(G[av(0xce)][Symbol[av(0xdc)]]=G['prototype']['free']);var K=class{['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,R['unregister'](this),a3;}['free'](){const b9=av;let a3=this['__destroy_into_raw']();n[b9(0xbe)](a3,0x0);}constructor(){let a3=n['rendersessionoptions_new']();return this['__wbg_ptr']=a3>>>0x0,R['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){const ba=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);let a3=n['rendersession_pixel_per_pt'](this[ba(0x72)]);return a3===0x100000001?void 0x0:a3;}set['pixel_per_pt'](a3){const bb=av;if(this[bb(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']),S(a3)||o(a3),n['rendersession_set_pixel_per_pt'](this[bb(0x72)],S(a3)?0x100000001:Math['fround'](a3));}get['background_color'](){const bc=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['rendersessionoptions_background_color'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()[bc(0x6e)](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n[bc(0xe5)](a3,a4*0x1,0x1)),a6;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](a3){const bd=av;if(this[bd(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['rendersessionoptions_set_background_color'](this['__wbg_ptr'],a4,a5);}get['format'](){const bf=av;try{if(this[bf(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']),n['rendersessionoptions_format'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=p(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n[bf(0xd4)](0x10);}}set['format'](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o(this['__wbg_ptr']);var a4=S(a3)?0x0:T(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=A;n['rendersessionoptions_set_format'](this['__wbg_ptr'],a4,a5);}};Symbol['dispose']&&(K['prototype'][Symbol['dispose']]=K['prototype']['free']);var q=class e{static['__wrap'](a3){const bg=av;a3>>>=0x0;let a4=Object[bg(0xa9)](e['prototype']);return a4['__wbg_ptr']=a3,z['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,z['unregister'](this),a3;}[av(0x73)](){let a3=this['__destroy_into_raw']();n['__wbg_typstrenderer_free'](a3,0x0);}constructor(){const bh=av;let a3=n['typstrenderer_new']();return this['__wbg_ptr']=a3>>>0x0,z['register'](this,this[bh(0x72)],this),this;}[av(0xc6)](a3){const bi=av;try{if(this[bi(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a7=0x0;if(!S(a3)){if(a(a3,B),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a7=a3['__destroy_into_raw']();}n['typstrenderer_create_session'](a6,this['__wbg_ptr'],a7);var a4=f()[bi(0x6e)](a6+0x0,!0x0),a5=f()['getInt32'](a6+0x4,!0x0);if(f()['getInt32'](a6+0x8,!0x0))throw E(a5);return G['__wrap'](a4);}finally{n[bi(0xd4)](0x10);}}['reset'](a3){const bj=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3[bj(0x72)]===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');n['typstrenderer_reset'](a5,this['__wbg_ptr'],a3[bj(0x72)]);var a4=f()[bj(0x6e)](a5+0x0,!0x0);if(f()[bj(0x6e)](a5+0x4,!0x0))throw E(a4);}finally{n[bj(0xd4)](0x10);}}['manipulate_data'](a3,a4,a5){const bk=av;try{if(this['__wbg_ptr']==0x0)throw Error(bk(0x6f));let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a8=T(a4,n['__wbindgen_export'],n['__wbindgen_export2']),a9=A,aa=w(a5,n['__wbindgen_export']),ab=A;n['typstrenderer_manipulate_data'](a7,this['__wbg_ptr'],a3['__wbg_ptr'],a8,a9,aa,ab);var a6=f()['getInt32'](a7+0x0,!0x0);if(f()['getInt32'](a7+0x4,!0x0))throw E(a6);}finally{n[bk(0xd4)](0x10);}}[av(0x89)](a3,a4){const bl=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n[bl(0xd4)](-0x10);o(this[bl(0x72)]);let a8=w(a3,n['__wbindgen_export']),a9=A,aa=T(a4,n['__wbindgen_export'],n[bl(0xf0)]),ab=A;n[bl(0xb8)](a7,this[bl(0x72)],a8,a9,aa,ab);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw E(a6);return G[bl(0x9f)](a5);}finally{n[bl(0xd4)](0x10);}}['load_glyph_pack'](a3){const bm=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a5=n[bm(0xd4)](-0x10);o(this['__wbg_ptr']),n[bm(0xee)](a5,this[bm(0x72)],r(a3));var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw E(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](a3,a4,a5,a6,a7){const bn=av;let a8,a9;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ac=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');n['typstrenderer_render_svg_diff'](ac,this['__wbg_ptr'],a3['__wbg_ptr'],a4,a5,a6,a7);var aa=f()['getInt32'](ac+0x0,!0x0),ab=f()[bn(0x6e)](ac+0x4,!0x0);return a8=aa,a9=ab,p(aa,ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n[bn(0xe5)](a8,a9,0x1);}}['svg_data'](a3,a4){const bo=av;let a5,a6;try{if(this[bo(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let ad=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');S(a4)||o(a4),n['typstrenderer_svg_data'](ad,this['__wbg_ptr'],a3[bo(0x72)],S(a4)?0x100000001:a4>>>0x0);var a7=f()['getInt32'](ad+0x0,!0x0),a8=f()['getInt32'](ad+0x4,!0x0),a9=f()['getInt32'](ad+0x8,!0x0),aa=f()['getInt32'](ad+0xc,!0x0),ab=a7,ac=a8;if(aa)throw ab=0x0,ac=0x0,E(a9);return a5=ab,a6=ac,p(ab,ac);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a5,a6,0x1);}}['get_customs'](a3){const bp=av;if(this[bp(0x72)]==0x0||(o(this['__wbg_ptr']),a(a3,G),a3[bp(0x72)]===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return E(n[bp(0xcd)](this['__wbg_ptr'],a3['__wbg_ptr']));}['render_svg'](a3,a4){const bq=av;try{if(this[bq(0x72)]==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);if(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');n['typstrenderer_render_svg'](a7,this['__wbg_ptr'],a3['__wbg_ptr'],r(a4));var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw E(a6);return a5!==0x0;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](a3){const br=av;if(this['__wbg_ptr']==0x0)throw Error(br(0x6f));return o(this['__wbg_ptr']),E(n['typstrenderer_create_worker'](this['__wbg_ptr'],r(a3)));}['create_worker_bridge'](){const bs=av;try{if(this[bs(0x72)]==0x0)throw Error(bs(0x6f));let a5=this['__destroy_into_raw'](),a6=n['__wbindgen_add_to_stack_pointer'](-0x10);o(a5),n[bs(0x70)](a6,a5);var a3=f()['getInt32'](a6+0x0,!0x0),a4=f()[bs(0x6e)](a6+0x4,!0x0);if(f()['getInt32'](a6+0x8,!0x0))throw E(a4);return X['__wrap'](a3);}finally{n[bs(0xd4)](0x10);}}['render_page_to_canvas'](a3,a4,a5){const bt=av;if(this['__wbg_ptr']==0x0||(o(this[bt(0x72)]),a(a3,G),a3['__wbg_ptr']===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a6=0x0;if(!S(a5)){if(a(a5,W),a5[bt(0x72)]===0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a6=a5[bt(0xdf)]();}return E(n['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],a3['__wbg_ptr'],r(a4),a6));}['mount_dom'](a3,a4){const bu=av;if(this[bu(0x72)]==0x0||(o(this['__wbg_ptr']),a(a3,G),a3['__wbg_ptr']===0x0))throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return E(n['typstrenderer_mount_dom'](this['__wbg_ptr'],a3[bu(0x72)],r(a4)));}};Symbol['dispose']&&(q[av(0xce)][Symbol['dispose']]=q['prototype']['free']);var J=class{['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ue['unregister'](this),a3;}['free'](){const bv=av;let a3=this['__destroy_into_raw']();n[bv(0xb7)](a3,0x0);}constructor(){const bw=av;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstrendererbuilder_new'](a5);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()[bw(0x6e)](a5+0x8,!0x0))throw E(a4);return this[bw(0x72)]=a3>>>0x0,ue['register'](this,this['__wbg_ptr'],this),this;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a3=this['__destroy_into_raw']();return o(a3),E(n['typstrendererbuilder_build'](a3));}['add_glyph_pack'](a3){const bx=av;if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n[bx(0x96)](this['__wbg_ptr'],r(a3)));}['add_raw_font'](a3){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n['typstrendererbuilder_add_raw_font'](this['__wbg_ptr'],r(a3)));}['add_lazy_font'](a3,a4){const by=av;if(this['__wbg_ptr']==0x0)throw Error(by(0x6f));return o(this['__wbg_ptr']),E(n[by(0x7c)](this['__wbg_ptr'],r(a3),r(a4)));}};Symbol['dispose']&&(J['prototype'][Symbol['dispose']]=J[av(0xce)]['free']);var Y=class{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const bz=av;let a3=this[bz(0x72)];return this['__wbg_ptr']=0x0,de['unregister'](this),a3;}['free'](){const bA=av;let a3=this[bA(0xdf)]();n[bA(0x85)](a3,0x0);}['manipulate_data'](a3,a4){const bB=av;try{if(this['__wbg_ptr']==0x0)throw Error(bB(0x6f));let a7=n[bB(0xd4)](-0x10);o(this['__wbg_ptr']);let a8=T(a3,n['__wbindgen_export'],n[bB(0xf0)]),a9=A;n['typstworker_manipulate_data'](a7,this['__wbg_ptr'],a8,a9,r(a4));var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw E(a6);return E(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[av(0x7f)](){if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return o(this['__wbg_ptr']),E(n['typstworker_get_pages_info'](this['__wbg_ptr']));}['render_canvas'](a3,a4,a5){const bC=av;try{if(this['__wbg_ptr']==0x0)throw Error('Attempt\x20to\x20use\x20a\x20moved\x20value');let a8=n['__wbindgen_add_to_stack_pointer'](-0x10);o(this['__wbg_ptr']);let a9=w(a3,n[bC(0x9e)]),aa=A,ab=re(a4,n['__wbindgen_export']),ac=A,ad=re(a5,n['__wbindgen_export']),af=A;n['typstworker_render_canvas'](a8,this['__wbg_ptr'],a9,aa,ab,ac,ad,af);var a6=f()['getInt32'](a8+0x0,!0x0),a7=f()['getInt32'](a8+0x4,!0x0);if(f()['getInt32'](a8+0x8,!0x0))throw E(a7);return E(a6);}finally{n[bC(0xd4)](0x10);}}};Symbol['dispose']&&(Y['prototype'][Symbol['dispose']]=Y['prototype']['free']);var X=class e{constructor(){throw Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](a3){const bD=av;a3>>>=0x0;let a4=Object['create'](e[bD(0xce)]);return a4[bD(0x72)]=a3,fe['register'](a4,a4[bD(0x72)],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,fe['unregister'](this),a3;}[av(0x73)](){const bE=av;let a3=this[bE(0xdf)]();n[bE(0x95)](a3,0x0);}};Symbol['dispose']&&(X[av(0xce)][Symbol[av(0xdc)]]=X['prototype']['free']);function pe(){return E(n['renderer_build_info']());}var me=new Set(['basic',av(0xae),'default']);function he(a3,a4){return Z['apply'](this,arguments);}function Z(){return Z=t(function*(a3,a4){const bF=a1;if(typeof Response==bF(0xbd)&&a3 instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return yield WebAssembly['instantiateStreaming'](a3,a4);}catch(a6){if(a3['ok']&&me['has'](a3[bF(0x69)])&&a3['headers'][bF(0x97)](bF(0x9b))!=='application/wasm')console[bF(0xcb)](bF(0xcc),a6);else throw a6;}let a5=yield a3[bF(0x7e)]();return yield WebAssembly[bF(0xd8)](a5,a4);}else{let a7=yield WebAssembly[bF(0xd8)](a3,a4);return a7 instanceof WebAssembly['Instance']?{'instance':a7,'module':a3}:a7;}}),Z['apply'](this,arguments);}function ge(){const bG=av;let a3={};return a3[bG(0xb1)]={},a3['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(a4,a5){let a6=T(c(v(a5)),n['__wbindgen_export'],n['__wbindgen_export2']),a7=A;f()['setInt32'](a4+0x4,a7,!0x0),f()['setInt32'](a4+0x0,a6,!0x0);},a3[bG(0xb1)]['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(a4){let a5=typeof v(a4)=='function';return i(a5),a5;},a3['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(a4){let a5=v(a4)===void 0x0;return i(a5),a5;},a3['wbg'][bG(0x92)]=function(a4,a5){let a6=v(a4)===v(a5);return i(a6),a6;},a3['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(a4,a5){let a6=v(a5),a7=typeof a6=='string'?a6:void 0x0;var a8=S(a7)?0x0:T(a7,n['__wbindgen_export'],n['__wbindgen_export2']),a9=A;f()['setInt32'](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},a3[bG(0xb1)]['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(a4,a5){throw Error(p(a4,a5));},a3['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return C(function(a4){v(a4)['_wbg_cb_unref']();},arguments);},a3['wbg']['__wbg_appendChild_7465eba84213c75f']=function(){return y(function(a4,a5){return r(v(a4)['appendChild'](v(a5)));},arguments);},a3['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return y(function(a4,a5,a6){const bH=a1;return r(v(a4)[bH(0x8f)](v(a5),v(a6)));},arguments);},a3['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return y(function(a4,a5,a6,a7,a8){return r(v(a4)['call'](v(a5),v(a6),v(a7),v(a8)));},arguments);},a3['wbg'][bG(0x94)]=function(){return y(function(a4,a5){return r(v(a4)['call'](v(a5)));},arguments);},a3['wbg']['__wbg_call_c8baa5c5e72d274e']=function(){return y(function(a4,a5,a6,a7){return r(v(a4)['call'](v(a5),v(a6),v(a7)));},arguments);},a3['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['clearRect'](a5,a6,a7,a8);},arguments);},a3['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return C(function(a4){const bI=a1;let a5=v(a4)[bI(0x78)];return o(a5),a5;},arguments);},a3[bG(0xb1)]['__wbg_clip_35de02bb25d222d9']=function(){return C(function(a4,a5){v(a4)['clip'](v(a5));},arguments);},a3['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return C(function(a4,a5){v(a4)['clip'](v(a5));},arguments);},a3['wbg']['__wbg_cloneNode_c9c45b24b171a776']=function(){return y(function(a4){return r(v(a4)['cloneNode']());},arguments);},a3['wbg']['__wbg_content_ad90fa08b8c037c5']=function(){return C(function(a4){const bJ=a1;let a5=v(a4)[bJ(0xb3)];return r(a5);},arguments);},a3[bG(0xb1)][bG(0xa4)]=function(){return y(function(a4,a5,a6){return r(v(a4)['createElement'](p(a5,a6)));},arguments);},a3['wbg']['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return y(function(a4,a5){const bK=a1;return r(v(a4)[bK(0x81)](v(a5)));},arguments);},a3[bG(0xb1)][bG(0xd5)]=function(){return y(function(a4,a5){return r(v(a4)['createImageBitmap'](v(a5)));},arguments);},a3['wbg']['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return y(function(a4,a5){const bL=a1;let a6=T(URL[bL(0xda)](v(a5)),n['__wbindgen_export'],n['__wbindgen_export2']),a7=A;f()['setInt32'](a4+0x4,a7,!0x0),f()[bL(0xb5)](a4+0x0,a6,!0x0);},arguments);},a3[bG(0xb1)][bG(0x8c)]=function(){return C(function(a4){let a5=v(a4)['document'];return S(a5)?0x0:r(a5);},arguments);},a3['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg'][bG(0xba)]=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return y(function(a4,a5,a6,a7){v(a4)['drawImage'](v(a5),a6,a7);},arguments);},a3[bG(0xb1)]['__wbg_drawImage_c40aff4a38206f4a']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg']['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return y(function(a4,a5,a6,a7){v(a4)['drawImage'](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return y(function(a4,a5,a6,a7){v(a4)['drawImage'](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_drawImage_e2012c2a2d434ee2']=function(){return y(function(a4,a5,a6,a7,a8,a9){v(a4)['drawImage'](v(a5),a6,a7,a8,a9);},arguments);},a3['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(){return C(function(a4,a5){let a6,a7;try{a6=a4,a7=a5,console['error'](p(a4,a5));}finally{n['__wbindgen_export4'](a6,a7,0x1);}},arguments);},a3[bG(0xb1)][bG(0x8a)]=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['fillRect'](a5,a6,a7,a8);},arguments);},a3['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return C(function(a4,a5,a6,a7,a8){v(a4)['fillRect'](a5,a6,a7,a8);},arguments);},a3['wbg'][bG(0xc2)]=function(){return C(function(a4,a5,a6){const bM=a1;v(a4)[bM(0xf2)](v(a5),j[a6]);},arguments);},a3['wbg']['__wbg_fill_38a7d7455451c001']=function(){return C(function(a4,a5,a6){v(a4)['fill'](v(a5),j[a6]);},arguments);},a3['wbg']['__wbg_fill_3d82e52894462c95']=function(){return C(function(a4,a5){v(a4)['fill'](v(a5));},arguments);},a3[bG(0xb1)]['__wbg_fill_f1043be5324533f3']=function(){return C(function(a4,a5){const bN=a1;v(a4)[bN(0xf2)](v(a5));},arguments);},a3['wbg']['__wbg_firstElementChild_54d515b19cee5ae7']=function(){return C(function(a4){const bO=a1;let a5=v(a4)[bO(0xa2)];return S(a5)?0x0:r(a5);},arguments);},a3[bG(0xb1)]['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return C(function(a4){let a5=v(a4)['firstElementChild'];return S(a5)?0x0:r(a5);},arguments);},a3[bG(0xb1)]['__wbg_getAttribute_80900eec94cb3636']=function(){return C(function(a4,a5,a6,a7){let a8=v(a5)['getAttribute'](p(a6,a7));var a9=S(a8)?0x0:T(a8,n['__wbindgen_export'],n['__wbindgen_export2']),aa=A;f()['setInt32'](a4+0x4,aa,!0x0),f()['setInt32'](a4+0x0,a9,!0x0);},arguments);},a3[bG(0xb1)][bG(0xab)]=function(){return y(function(a4,a5,a6){let a7=v(a4)['getContext'](p(a5,a6));return S(a7)?0x0:r(a7);},arguments);},a3['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return y(function(a4,a5,a6){let a7=v(a4)['getContext'](p(a5,a6));return S(a7)?0x0:r(a7);},arguments);},a3[bG(0xb1)]['__wbg_get_af9dab7e9603ea93']=function(){return y(function(a4,a5){return r(Reflect['get'](v(a4),v(a5)));},arguments);},a3['wbg']['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return y(function(a4,a5){let a6=v(a5)['globalCompositeOperation'],a7=T(a6,n['__wbindgen_export'],n['__wbindgen_export2']),a8=A;f()['setInt32'](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},arguments);},a3['wbg'][bG(0xb6)]=function(){return y(function(a4,a5){let a6=v(a5)['globalCompositeOperation'],a7=T(a6,n['__wbindgen_export'],n['__wbindgen_export2']),a8=A;f()['setInt32'](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},arguments);},a3['wbg']['__wbg_height_3a0b31e52a5b7f17']=function(){return C(function(a4){let a5=v(a4)['height'];return o(a5),a5;},arguments);},a3['wbg']['__wbg_incrdomdocclient_new']=function(){return C(function(a4){return r(V['__wrap'](a4));},arguments);},a3['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof CanvasRenderingContext2D;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Element;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLCanvasElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLDivElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof HTMLTemplateElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof ImageBitmap;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof OffscreenCanvasRenderingContext2D;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3[bG(0xb1)]['__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof OffscreenCanvas;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_Promise_eca6c43a2610558d']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Promise;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof SVGGraphicsElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof SVGSVGElement;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof Window;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return C(function(a4){let a5;try{a5=v(a4)instanceof WorkerGlobalScope;}catch(a7){a5=!0x1;}let a6=a5;return i(a6),a6;},arguments);},a3['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return C(function(a4){let a5=v(a4)['lastElementChild'];return S(a5)?0x0:r(a5);},arguments);},a3[bG(0xb1)]['__wbg_length_22ac23eaec9d8053']=function(){return C(function(a4){let a5=v(a4)['length'];return o(a5),a5;},arguments);},a3['wbg']['__wbg_log_1d990106d99dacb7']=function(){return C(function(a4){console['log'](v(a4));},arguments);},a3['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return C(function(a4,a5){const bP=a1;console[bP(0xc8)](v(a4),v(a5));},arguments);},a3['wbg'][bG(0x6a)]=function(){return y(function(a4,a5,a6){return r(v(a4)['measureText'](p(a5,a6)));},arguments);},a3['wbg']['__wbg_new_1ba21ce319a06297']=function(){return C(function(){return r({});},arguments);},a3[bG(0xb1)]['__wbg_new_25f239778d6112b9']=function(){return C(function(){return r([]);},arguments);},a3['wbg']['__wbg_new_2884ddbcda091bc1']=function(){return y(function(){return r(new Image());},arguments);},a3['wbg'][bG(0xe9)]=function(){return C(function(){return r(Error());},arguments);},a3[bG(0xb1)]['__wbg_new_9468dd6e5df427f6']=function(){return y(function(a4,a5){return r(new OffscreenCanvas(a4>>>0x0,a5>>>0x0));},arguments);},a3['wbg']['__wbg_new_df1173567d5ff028']=function(){return C(function(a4,a5){return r(Error(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return C(function(a4,a5){try{var a6={'a':a4,'b':a5};return r(new Promise((a7,a8)=>{let a9=a6['a'];a6['a']=0x0;try{return le(a9,a6['b'],a7,a8);}finally{a6['a']=a9;}}));}finally{a6['a']=a6['b']=0x0;}},arguments);},a3[bG(0xb1)][bG(0x90)]=function(){return C(function(a4,a5){return r(new Uint8Array(u(a4,a5)));},arguments);},a3['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(){return C(function(a4,a5){return r(Function(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return C(function(a4){return r(new Uint8Array(a4>>>0x0));},arguments);},a3['wbg'][bG(0xdb)]=function(){return y(function(a4,a5){return r(new Path2D(p(a4,a5)));},arguments);},a3['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return y(function(a4,a5){return r(new Blob(v(a4),v(a5)));},arguments);},a3['wbg']['__wbg_nextElementSibling_c745ee48314963c0']=function(){return C(function(a4){const bQ=a1;let a5=v(a4)[bQ(0x6c)];return S(a5)?0x0:r(a5);},arguments);},a3['wbg']['__wbg_push_7d9be8f38fc13975']=function(){return C(function(a4,a5){let a6=v(a4)['push'](v(a5));return o(a6),a6;},arguments);},a3[bG(0xb1)]['__wbg_putImageData_c280ca107c4b7828']=function(){return y(function(a4,a5,a6,a7){v(a4)['putImageData'](v(a5),a6,a7);},arguments);},a3['wbg'][bG(0xb9)]=function(){return y(function(a4,a5,a6,a7){const bR=a1;v(a4)[bR(0xd9)](v(a5),a6,a7);},arguments);},a3['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return C(function(a4){let a5=v(a4)['queueMicrotask'];return r(a5);},arguments);},a3[bG(0xb1)]['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return C(function(a4){queueMicrotask(v(a4));},arguments);},a3['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return y(function(a4,a5,a6,a7){const bS=a1;let a8=T(v(a5)['removeProperty'](p(a6,a7)),n['__wbindgen_export'],n['__wbindgen_export2']),a9=A;f()[bS(0xb5)](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},arguments);},a3['wbg']['__wbg_remove_32f69ffabcbc4072']=function(){return C(function(a4){v(a4)['remove']();},arguments);},a3['wbg']['__wbg_renderpageimageoptions_unwrap']=function(){return C(function(a4){const bT=a1;let a5=W[bT(0xe4)](v(a4));return o(a5),a5;},arguments);},a3['wbg']['__wbg_replaceWith_923cfb1b2f584408']=function(){return y(function(a4,a5){const bU=a1;v(a4)[bU(0xc7)](v(a5));},arguments);},a3[bG(0xb1)]['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return C(function(a4){const bV=a1;return r(Promise[bV(0x99)](v(a4)));},arguments);},a3['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return C(function(a4){v(a4)['restore']();},arguments);},a3[bG(0xb1)][bG(0x71)]=function(){return C(function(a4){v(a4)['restore']();},arguments);},a3['wbg']['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return y(function(a4,a5){URL['revokeObjectURL'](p(a4,a5));},arguments);},a3['wbg']['__wbg_save_131c8dc648f702b6']=function(){return C(function(a4){v(a4)['save']();},arguments);},a3['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return C(function(a4){v(a4)['save']();},arguments);},a3[bG(0xb1)][bG(0xac)]=function(){return y(function(a4,a5,a6,a7,a8){v(a4)['setAttribute'](p(a5,a6),p(a7,a8));},arguments);},a3['wbg'][bG(0x91)]=function(){return y(function(a4,a5){v(a4)['setLineDash'](v(a5));},arguments);},a3['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return y(function(a4,a5){const bW=a1;v(a4)[bW(0x84)](v(a5));},arguments);},a3['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return y(function(a4,a5,a6,a7,a8){v(a4)['setProperty'](p(a5,a6),p(a7,a8));},arguments);},a3['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return y(function(a4,a5,a6,a7,a8,a9,aa){v(a4)['setTransform'](a5,a6,a7,a8,a9,aa);},arguments);},a3['wbg'][bG(0xa3)]=function(){return y(function(a4,a5,a6,a7,a8,a9,aa){const bX=a1;v(a4)[bX(0xc1)](a5,a6,a7,a8,a9,aa);},arguments);},a3['wbg']['__wbg_set_169e13b608078b7b']=function(){return C(function(a4,a5,a6){v(a4)['set'](u(a5,a6));},arguments);},a3['wbg']['__wbg_set_781438a03c0c3c81']=function(){return y(function(a4,a5,a6){let a7=Reflect['set'](v(a4),v(a5),v(a6));return i(a7),a7;},arguments);},a3['wbg']['__wbg_set_7df433eea03a5c14']=function(){return C(function(a4,a5,a6){v(a4)[a5>>>0x0]=E(a6);},arguments);},a3[bG(0xb1)]['__wbg_set_fillStyle_b26e462a87b14315']=function(){return C(function(a4,a5,a6){v(a4)['fillStyle']=p(a5,a6);},arguments);},a3['wbg'][bG(0x8e)]=function(){return C(function(a4,a5,a6){v(a4)['fillStyle']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return C(function(a4,a5,a6){const bY=a1;v(a4)[bY(0xd1)]=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return y(function(a4,a5,a6){const bZ=a1;v(a4)[bZ(0xe8)]=p(a5,a6);},arguments);},a3[bG(0xb1)]['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return y(function(a4,a5,a6){v(a4)['globalCompositeOperation']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return C(function(a4,a5){const c0=a1;v(a4)[c0(0xed)]=a5>>>0x0;},arguments);},a3['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return C(function(a4,a5,a6){v(a4)['innerHTML']=p(a5,a6);},arguments);},a3['wbg'][bG(0xe6)]=function(){return C(function(a4,a5,a6){v(a4)['lineCap']=p(a5,a6);},arguments);},a3[bG(0xb1)]['__wbg_set_lineCap_791e7648138cc371']=function(){return C(function(a4,a5,a6){const c1=a1;v(a4)[c1(0x93)]=p(a5,a6);},arguments);},a3[bG(0xb1)]['__wbg_set_lineDashOffset_85f21a63ddf34d2c']=function(){return C(function(a4,a5){v(a4)['lineDashOffset']=a5;},arguments);},a3['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return C(function(a4,a5){const c2=a1;v(a4)[c2(0xc3)]=a5;},arguments);},a3['wbg']['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return C(function(a4,a5,a6){v(a4)['lineJoin']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return C(function(a4,a5,a6){const c3=a1;v(a4)[c3(0x88)]=p(a5,a6);},arguments);},a3[bG(0xb1)][bG(0x87)]=function(){return C(function(a4,a5){v(a4)['lineWidth']=a5;},arguments);},a3['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return C(function(a4,a5){const c4=a1;v(a4)[c4(0x8d)]=a5;},arguments);},a3['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return C(function(a4,a5){v(a4)['miterLimit']=a5;},arguments);},a3['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return C(function(a4,a5){v(a4)['miterLimit']=a5;},arguments);},a3[bG(0xb1)]['__wbg_set_onerror_e7e40c62a55a0770']=function(){return C(function(a4,a5){v(a4)['onerror']=v(a5);},arguments);},a3['wbg'][bG(0x66)]=function(){return C(function(a4,a5){v(a4)['onload']=v(a5);},arguments);},a3['wbg'][bG(0xde)]=function(){return C(function(a4,a5,a6){v(a4)['src']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return C(function(a4,a5,a6){v(a4)['strokeStyle']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return C(function(a4,a5,a6){v(a4)['strokeStyle']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return C(function(a4,a5,a6){v(a4)['type']=p(a5,a6);},arguments);},a3['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return C(function(a4,a5){v(a4)['width']=a5>>>0x0;},arguments);},a3['wbg'][bG(0xb4)]=function(){return C(function(a4,a5){let a6=v(a5)['stack'],a7=T(a6,n['__wbindgen_export'],n['__wbindgen_export2']),a8=A;f()['setInt32'](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},arguments);},a3[bG(0xb1)]['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return C(function(){let a4=typeof global>'u'?null:global;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){return C(function(){let a4=typeof globalThis>'u'?null:globalThis;return S(a4)?0x0:r(a4);},arguments);},a3[bG(0xb1)]['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return C(function(){let a4=typeof self>'u'?null:self;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return C(function(){let a4=typeof window>'u'?null:window;return S(a4)?0x0:r(a4);},arguments);},a3['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return y(function(a4){return r(JSON['stringify'](v(a4)));},arguments);},a3['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return C(function(a4,a5){v(a4)['stroke'](v(a5));},arguments);},a3['wbg']['__wbg_stroke_7cfe6d60a6c48303']=function(){return C(function(a4,a5){v(a4)['stroke'](v(a5));},arguments);},a3[bG(0xb1)]['__wbg_style_521a717da50e53c6']=function(){return C(function(a4){const c5=a1;let a5=v(a4)[c5(0x9c)];return r(a5);},arguments);},a3['wbg']['__wbg_then_429f7caf1026411d']=function(){return C(function(a4,a5,a6){return r(v(a4)['then'](v(a5),v(a6)));},arguments);},a3['wbg']['__wbg_then_4f95312d68691235']=function(){return C(function(a4,a5){const c6=a1;return r(v(a4)[c6(0xbb)](v(a5)));},arguments);},a3['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return y(function(a4){return r(v(a4)['transferToImageBitmap']());},arguments);},a3['wbg']['__wbg_typstrenderer_new']=function(){return C(function(a4){return r(q['__wrap'](a4));},arguments);},a3[bG(0xb1)]['__wbg_warn_6e567d0d926ff881']=function(){return C(function(a4){const c7=a1;console[c7(0xcb)](v(a4));},arguments);},a3['wbg']['__wbg_width_c3f96f2ca7ab208d']=function(){return C(function(a4){return v(a4)['width'];},arguments);},a3['wbg']['__wbg_width_f13d2e86324fc226']=function(){return C(function(a4){let a5=v(a4)['width'];return o(a5),a5;},arguments);},a3['wbg'][bG(0xad)]=function(){return C(function(a4,a5){return r(p(a4,a5));},arguments);},a3['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return C(function(a4,a5){const c8=a1;return r(ee(a4,a5,n[c8(0xa5)],se));},arguments);},a3['wbg'][bG(0xd2)]=function(){return C(function(a4,a5){const c9=a1;return r(te(a4,a5,n[c9(0xaf)],oe));},arguments);},a3['wbg']['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return C(function(a4,a5){return r(ee(a4,a5,n['__wasm_bindgen_func_elem_1022'],ce));},arguments);},a3['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return C(function(a4){return r(a4);},arguments);},a3['wbg'][bG(0xaa)]=function(a4){return r(v(a4));},a3['wbg'][bG(0x9d)]=function(a4){E(a4);},a3;}function _e(a3,a4){return n=a3['exports'],ye['__wbindgen_wasm_module']=a4,d=null,m=null,g=null,n;}function ve(a3){if(n!==void 0x0)return n;a3!==void 0x0&&(Object['getPrototypeOf'](a3)===Object['prototype']?{module:a3}=a3:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));let a4=ge();return a3 instanceof WebAssembly['Module']||(a3=new WebAssembly['Module'](a3)),_e(new WebAssembly['Instance'](a3,a4),a3);}function ye(a3){return Q['apply'](this,arguments);}function a0(){const cc=['decode','getPrototypeOf','page','clientWidth','cnt','expected\x20instance\x20of\x20','renderpageimageoptions_new','typstrendererbuilder_add_lazy_font','boolean','arrayBuffer','get_pages_info','6VepwIl','createImageBitmap','subarray','register','setLineDash','__wbg_typstworker_free','return\x20import(m)','__wbg_set_lineWidth_ed39767bf75d602d','lineJoin','session_from_artifact','__wbg_fillRect_84131220403e26a4','set','__wbg_document_5b745e82ba551ca5','lineWidth','__wbg_set_fillStyle_c9a0550307cd4671','call','__wbg_new_from_slice_f9c22b9153b26992','__wbg_setLineDash_7e3aad159aa2710c','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','lineCap','__wbg_call_abb4ff46ce38be40','__wbg_workerbridge_free','typstrendererbuilder_add_glyph_pack','get','expected\x20a\x20boolean\x20argument,\x20found\x20','resolve','rendersession_doc_height','Content-Type','style','__wbindgen_object_drop_ref','__wbindgen_export','__wrap','cache_key','187905tPBesI','firstElementChild','__wbg_setTransform_c55eca1193bf5ea1','__wbg_createElement_da4ed2b219560fc6','__wasm_bindgen_func_elem_1022','length','1556750zLakaM','__wasm_bindgen_func_elem_1034','create','__wbindgen_object_clone_ref','__wbg_getContext_01f42b234e833f0a','__wbg_setAttribute_34747dd193f45828','__wbindgen_cast_2241b6af4c4b2941','cors','__wasm_bindgen_func_elem_1077','expected\x20a\x20string\x20argument,\x20found\x20','wbg','detached','content','__wbg_stack_0ed75d68575b0f3c','setInt32','__wbg_globalCompositeOperation_d52c6e6666e4be00','__wbg_typstrendererbuilder_free','typstrenderer_session_from_artifact','__wbg_putImageData_e96eabf0e9610ed3','__wbg_drawImage_6949f7679b2a9758','then','dtor','function','__wbg_rendersessionoptions_free','page_off','cannot\x20invoke\x20`new`\x20directly','setTransform','__wbg_fill_2f2cb4f3f75aadd4','lineDashOffset','slice','pageinfo_page_off','create_session','replaceWith','log','evenodd','corrupt\x20heap','warn','`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a','typstrenderer_get_customs','prototype','24nsGGST','3090544cNadGn','font','__wbindgen_cast_b2e692da0ea8478a','doc_height','__wbindgen_add_to_stack_pointer','__wbg_createImageBitmap_4772db6cb0dff013','__wbg_rendersession_free','rendersession_set_pixel_per_pt','instantiate','putImageData','createObjectURL','__wbg_new_with_path_string_3aea637e78135c46','dispose','encode','__wbg_set_src_84f27c5105946dce','__destroy_into_raw','1108096mHZFdG','_wbg_cb_unref','95907WOXwgI','background_color','__unwrap','__wbindgen_export4','__wbg_set_lineCap_74b37c7ff968f854','createsessionoptions_set_format','globalCompositeOperation','__wbg_new_8a6f238a6ece86ea','__wbg_pageinfo_free','__wbg_renderpageimageoptions_free','pagesinfo_page_by_number','height','typstrenderer_load_glyph_pack','unregister','__wbindgen_export2','byteLength','fill','encodeInto','written','rendersession_pixel_per_pt','8493340ZSacYg','__wbg_set_onload_5e2862e3453854de','9OZtYHN','__wasm_bindgen_func_elem_1056','type','__wbg_measureText_a465ecc06491802d','__wasm_bindgen_func_elem_3555','nextElementSibling','description','getInt32','Attempt\x20to\x20use\x20a\x20moved\x20value','typstrenderer_create_worker_bridge','__wbg_restore_6486cb1a7aa3af7b','__wbg_ptr','free','920505iBOvwu'];a0=function(){return cc;};return a0();}function Q(){return Q=t(function*(a3){const ca=a1;if(n!==void 0x0)return n;a3!==void 0x0&&(Object[ca(0x76)](a3)===Object['prototype']?{module_or_path:a3}=a3:console[ca(0xcb)]('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),a3===void 0x0&&(a3=be('typst_ts_renderer_bg.wasm',import.meta.url));let a4=ge();(typeof a3=='string'||typeof Request=='function'&&a3 instanceof Request||typeof URL=='function'&&a3 instanceof URL)&&(a3=fetch(a3));let {instance:a5,module:a6}=yield he(yield a3,a4);return _e(a5,a6);}),Q['apply'](this,arguments);}var be=(function(){var a3=t(function*(a4,a5){throw Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+a4+'\x20'+a5);});return function(a4,a5){return a3['apply'](this,arguments);};}());function $(a3){be=a3;}a2();var xe=ye,Se=(function(){var a3=t(function*(a4,a5){const cb=a1;let {readFileSync:a6}=yield Function('m',cb(0x86))('fs');return yield a6(new URL(a4,a5))['buffer'];});return function(a4,a5){return a3['apply'](this,arguments);};}());typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null&&$(Se);export{B as CreateSessionOptions,V as IncrDomDocClient,H as PageInfo,U as PagesInfo,W as RenderPageImageOptions,G as RenderSession,K as RenderSessionOptions,q as TypstRenderer,J as TypstRendererBuilder,Y as TypstWorker,X as WorkerBridge,xe as default,ve as initSync,pe as renderer_build_info,$ as setImportWasmModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const aB=a1;(function(a3,a4){const ap=a1,a5=a3();while(!![]){try{const a6=parseInt(ap(0xc1))/0x1+parseInt(ap(0xaa))/0x2*(-parseInt(ap(0x97))/0x3)+parseInt(ap(0xab))/0x4+-parseInt(ap(0xa4))/0x5*(-parseInt(ap(0xaf))/0x6)+-parseInt(ap(0x9f))/0x7+-parseInt(ap(0xa7))/0x8+-parseInt(ap(0x85))/0x9*(-parseInt(ap(0x91))/0xa);if(a6===a4)break;else a5['push'](a5['shift']());}catch(a7){a5['push'](a5['shift']());}}}(a0,0x59c75));import{n as a2,t}from'./asyncToGenerator.js';a2();var n;function r(a3){const aq=a1;x===b[aq(0x80)]&&b['push'](b['length']+0x1);let a4=x;return x=b[a4],b[a4]=a3,a4;}function i(a3,a4){if(!(a3 instanceof a4))throw Error('expected\x20instance\x20of\x20'+a4['name']);}var a=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>a3['dtor'](a3['a'],a3['b']));function o(a3){const ar=a1;let a4=typeof a3;if(a4=='number'||a4=='boolean'||a3==null)return''+a3;if(a4==ar(0x71))return'\x22'+a3+'\x22';if(a4==ar(0xa6)){let a7=a3['description'];return a7==null?'Symbol':ar(0x8e)+a7+')';}if(a4=='function'){let a8=a3['name'];return typeof a8=='string'&&a8['length']>0x0?'Function('+a8+')':'Function';}if(Array['isArray'](a3)){let a9=a3[ar(0x80)],aa='[';a9>0x0&&(aa+=o(a3[0x0]));for(let ab=0x1;ab<a9;ab++)aa+=',\x20'+o(a3[ab]);return aa+=']',aa;}let a5=/\[object ([^\]]+)\]/['exec'](toString['call'](a3)),a6;if(a5&&a5[ar(0x80)]>0x1)a6=a5[0x1];else return toString[ar(0xac)](a3);if(a6==ar(0x77))try{return'Object('+JSON['stringify'](a3)+')';}catch(ac){return ar(0x77);}return a3 instanceof Error?a3['name']+':\x20'+a3['message']+'\x0a'+a3['stack']:a6;}function s(a3){a3<0x84||(b[a3]=x,x=a3);}function c(a3,a4){a3>>>=0x0;let a5=f(),a6=[];for(let a7=a3;a7<a3+0x4*a4;a7+=0x4)a6['push'](D(a5['getUint32'](a7,!0x0)));return a6;}function l(a3,a4){return a3>>>=0x0,h()['subarray'](a3/0x4,a3/0x4+a4);}function u(a3,a4){const as=a1;return a3>>>=0x0,_()[as(0x8f)](a3/0x1,a3/0x1+a4);}var d=null;function f(){return(d===null||d['buffer']['detached']===!0x0||d['buffer']['detached']===void 0x0&&d['buffer']!==n['memory']['buffer'])&&(d=new DataView(n['memory']['buffer'])),d;}function p(a3,a4){return a3>>>=0x0,A(a3,a4);}var m=null;function h(){return(m===null||m['byteLength']===0x0)&&(m=new Uint32Array(n['memory']['buffer'])),m;}var g=null;function _(){const at=a1;return(g===null||g['byteLength']===0x0)&&(g=new Uint8Array(n['memory'][at(0x95)])),g;}function v(a3){return b[a3];}function y(a3,a4){try{return a3['apply'](this,a4);}catch(a5){n['__wbindgen_export3'](r(a5));}}var b=Array(0x80)['fill'](void 0x0);function a0(){const bx=['decode','__wbg_queueMicrotask_fca69f5bfad613a5','Object','__wbindgen_export4','free','get_loaded_fonts','__wbindgen_wasm_module','typstcompileworld_compile','__wbg_proxycontext_free','__wbindgen_export','versions','length','slice','boolean','__wbg_next_3cfe5c0fe2a4cc53','typstfontresolverbuilder_build','9JEIqds','__wbg_queueMicrotask_9b549dfce8865860','set','typstcompiler_map_shadow','create','context','getPrototypeOf','typstcompilerbuilder_set_access_model','headers','Symbol(','subarray','build','13172750ZFnIAI','typstcompiler_set_fonts','get_semantic_tokens','register','buffer','__wbg_typstcompiler_free','54006tVmwGd','encodeInto','typstcompiler_add_source','application/wasm','prototype','__wbg_new_from_slice_f9c22b9153b26992','typstfontresolverbuilder_add_raw_font','untar','4781665CEPEsR','queueMicrotask','query','__wbg_ptr','typstcompiler_get_semantic_token_legend','5HqGHei','typstcompiler_compile','symbol','4854896MHaGQl','apply','__wbindgen_object_drop_ref','52RtBpWr','734532ZJUxLs','call','__wbg_typstcompileworld_free','incr_compile','2228460vpmjhi','reset_shadow','setInt32','__wasm_bindgen_func_elem_957','__wbindgen_export2','__wbg_typstfontresolverbuilder_free','instantiateStreaming','dispose','getTimezoneOffset','__wbg_incrserver_free','value','getInt32','__wrap','__wbg_get_6b7bd52aca3f9671','wbg','unregister','__wbg_static_accessor_WINDOW_a8924b26aa92d024','__wasm_bindgen_func_elem_37350','253424rzmirM','__wbg_new_df1173567d5ff028','__wasm_bindgen_func_elem_944','__wbg_get_af9dab7e9603ea93','string','__wbindgen_add_to_stack_pointer','__destroy_into_raw','__wbg_static_accessor_SELF_08f5a74c69739274'];a0=function(){return bx;};return a0();}b['push'](void 0x0,null,!0x0,!0x1);var x=b['length'];function S(a3){return a3==null;}function C(a3,a4,a5,a6){let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{a7['cnt']++;let aa=a7['a'];a7['a']=0x0;try{return a6(aa,a7['b'],...a9);}finally{a7['a']=aa,a8['_wbg_cb_unref']();}};return a8['_wbg_cb_unref']=()=>{const au=a1;--a7['cnt']===0x0&&(a7['dtor'](a7['a'],a7['b']),a7['a']=0x0,a[au(0xbe)](a7));},a['register'](a8,a7,a7),a8;}function w(a3,a4){const av=a1;let a5=a4(a3['length']*0x1,0x1)>>>0x0;return _()[av(0x87)](a3,a5/0x1),M=a3['length'],a5;}function T(a3,a4){let a5=a4(a3['length']*0x4,0x4)>>>0x0,a6=f();for(let a7=0x0;a7<a3['length'];a7++)a6['setUint32'](a5+0x4*a7,r(a3[a7]),!0x0);return M=a3['length'],a5;}function E(a3,a4,a5){const aw=a1;if(a5===void 0x0){let aa=j['encode'](a3),ab=a4(aa['length'],0x1)>>>0x0;return _()['subarray'](ab,ab+aa['length'])['set'](aa),M=aa[aw(0x80)],ab;}let a6=a3['length'],a7=a4(a6,0x1)>>>0x0,a8=_(),a9=0x0;for(;a9<a6;a9++){let ac=a3['charCodeAt'](a9);if(ac>0x7f)break;a8[a7+a9]=ac;}if(a9!==a6){a9!==0x0&&(a3=a3[aw(0x81)](a9)),a7=a5(a7,a6,a6=a9+a3['length']*0x3,0x1)>>>0x0;let ad=_()['subarray'](a7+a9,a7+a6),af=j[aw(0x98)](a3,ad);a9+=af['written'],a7=a5(a7,a6,a9,0x1)>>>0x0;}return M=a9,a7;}function D(a3){let a4=v(a3);return s(a3),a4;}var O=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});O['decode']();var ee=0x7ff00000,k=0x0;function A(a3,a4){const ax=a1;return k+=a4,k>=ee&&(O=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),O[ax(0x75)](),k=a4),O['decode'](_()['subarray'](a3,a3+a4));}var j=new TextEncoder();'encodeInto'in j||(j['encodeInto']=function(a3,a4){const ay=a1;let a5=j['encode'](a3);return a4[ay(0x87)](a5),{'read':a3[ay(0x80)],'written':a5['length']};});var M=0x0;function te(a3,a4,a5){const az=a1;n[az(0xc3)](a3,a4,r(a5));}function ne(a3,a4,a5,a6){const aA=a1;n[aA(0xc0)](a3,a4,r(a5),r(a6));}var N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_incrserver_free'](a3>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_proxycontext_free'](a3>>>0x0,0x1)),F=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstcompileworld_free'](a3>>>0x0,0x1)),I=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n[aB(0x96)](a3>>>0x0,0x1)),L=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstcompilerbuilder_free'](a3>>>0x0,0x1)),R=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstfontresolver_free'](a3>>>0x0,0x1)),z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstfontresolverbuilder_free'](a3>>>0x0,0x1)),B=class e{static['__wrap'](a3){const aC=aB;a3>>>=0x0;let a4=Object[aC(0x89)](e['prototype']);return a4[aC(0xa2)]=a3,N['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),a3;}['free'](){const aD=aB;let a3=this[aD(0x73)]();n[aD(0xb8)](a3,0x0);}['set_attach_debug_info'](a3){n['incrserver_set_attach_debug_info'](this['__wbg_ptr'],a3);}['current'](){const aE=aB;try{let a5=n[aE(0x72)](-0x10);n['incrserver_current'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()[aE(0xba)](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=u(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n[aE(0x72)](0x10);}}['reset'](){const aF=aB;n['incrserver_reset'](this[aF(0xa2)]);}};Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B[aB(0x9b)]['free']);var V=class e{static['__wrap'](a3){const aG=aB;a3>>>=0x0;let a4=Object[aG(0x89)](e['prototype']);return a4['__wbg_ptr']=a3,P['register'](a4,a4['__wbg_ptr'],a4),a4;}[aB(0x73)](){const aH=aB;let a3=this[aH(0xa2)];return this['__wbg_ptr']=0x0,P['unregister'](this),a3;}['free'](){const aI=aB;let a3=this['__destroy_into_raw']();n[aI(0x7d)](a3,0x0);}constructor(a3){const aJ=aB;let a4=n['proxycontext_new'](r(a3));return this[aJ(0xa2)]=a4>>>0x0,P['register'](this,this['__wbg_ptr'],this),this;}get[aB(0x8a)](){return D(n['proxycontext_context'](this['__wbg_ptr']));}[aB(0x9e)](a3,a4){const aK=aB;try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10),a7=w(a3,n['__wbindgen_export']),a8=M;n['proxycontext_untar'](a6,this[aK(0xa2)],a7,a8,r(a4));var a5=f()['getInt32'](a6+0x0,!0x0);if(f()['getInt32'](a6+0x4,!0x0))throw D(a5);}finally{n[aK(0x72)](0x10);}}};Symbol['dispose']&&(V['prototype'][Symbol['dispose']]=V['prototype']['free']);var H=class e{static['__wrap'](a3){const aL=aB;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,F[aL(0x94)](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aM=aB;let a3=this[aM(0xa2)];return this[aM(0xa2)]=0x0,F[aM(0xbe)](this),a3;}[aB(0x79)](){const aN=aB;let a3=this['__destroy_into_raw']();n[aN(0xad)](a3,0x0);}['compile'](a3,a4){const aO=aB;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);n[aO(0x7c)](a7,this['__wbg_ptr'],a3,a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n[aO(0x72)](0x10);}}['title'](a3){try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompileworld_title'](a7,this['__wbg_ptr'],a3);var a4=f()['getInt32'](a7+0x0,!0x0),a5=f()['getInt32'](a7+0x4,!0x0),a6=f()['getInt32'](a7+0x8,!0x0);if(f()['getInt32'](a7+0xc,!0x0))throw D(a6);let a8;return a4!==0x0&&(a8=p(a4,a5)['slice'](),n['__wbindgen_export4'](a4,a5*0x1,0x1)),a8;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](a3,a4){const aP=aB;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompileworld_get_artifact'](a7,this['__wbg_ptr'],a3,a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()[aP(0xba)](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](a3,a4,a5){const aQ=aB;let a6,a7;try{let ah=n['__wbindgen_add_to_stack_pointer'](-0x10),ai=E(a4,n['__wbindgen_export'],n[aQ(0xb3)]),aj=M;var a8=S(a5)?0x0:E(a5,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;n['typstcompileworld_query'](ah,this['__wbg_ptr'],a3,ai,aj,a8,a9);var aa=f()[aQ(0xba)](ah+0x0,!0x0),ab=f()['getInt32'](ah+0x4,!0x0),ac=f()[aQ(0xba)](ah+0x8,!0x0),ad=f()['getInt32'](ah+0xc,!0x0),af=aa,ag=ab;if(ad)throw af=0x0,ag=0x0,D(ac);return a6=af,a7=ag,p(af,ag);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n[aQ(0x78)](a6,a7,0x1);}}[aB(0xae)](a3,a4){const aR=aB;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);i(a3,B),n['typstcompileworld_incr_compile'](a7,this['__wbg_ptr'],a3['__wbg_ptr'],a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()[aR(0xba)](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(H[aB(0x9b)][Symbol[aB(0xb6)]]=H[aB(0x9b)]['free']);var U=class e{static['__wrap'](a3){a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,I['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aS=aB;let a3=this[aS(0xa2)];return this['__wbg_ptr']=0x0,I['unregister'](this),a3;}[aB(0x79)](){const aT=aB;let a3=this['__destroy_into_raw']();n[aT(0x96)](a3,0x0);}['reset'](){const aU=aB;try{let a4=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_reset'](a4,this['__wbg_ptr']);var a3=f()[aU(0xba)](a4+0x0,!0x0);if(f()['getInt32'](a4+0x4,!0x0))throw D(a3);}finally{n[aU(0x72)](0x10);}}['set_fonts'](a3){const aV=aB;try{let a5=n[aV(0x72)](-0x10);i(a3,G),n[aV(0x92)](a5,this[aV(0xa2)],a3['__wbg_ptr']);var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['set_inputs'](a3){const aW=aB;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_set_inputs'](a5,this['__wbg_ptr'],r(a3));var a4=f()[aW(0xba)](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['add_source'](a3,a4){const aX=aB;let a5=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a6=M,a7=E(a4,n['__wbindgen_export'],n[aX(0xb3)]),a8=M;return n[aX(0x99)](this['__wbg_ptr'],a5,a6,a7,a8)!==0x0;}['map_shadow'](a3,a4){const aY=aB;let a5=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a6=M,a7=w(a4,n['__wbindgen_export']),a8=M;return n[aY(0x88)](this['__wbg_ptr'],a5,a6,a7,a8)!==0x0;}['unmap_shadow'](a3){let a4=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a5=M;return n['typstcompiler_unmap_shadow'](this['__wbg_ptr'],a4,a5)!==0x0;}[aB(0xb0)](){n['typstcompiler_reset_shadow'](this['__wbg_ptr']);}[aB(0x7a)](){const aZ=aB;try{let a6=n[aZ(0x72)](-0x10);n['typstcompiler_get_loaded_fonts'](a6,this['__wbg_ptr']);var a3=f()['getInt32'](a6+0x0,!0x0),a4=f()['getInt32'](a6+0x4,!0x0),a5=c(a3,a4)['slice']();return n['__wbindgen_export4'](a3,a4*0x4,0x4),a5;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_ast'](a3){const b0=aB;let a4,a5;try{let ac=n['__wbindgen_add_to_stack_pointer'](-0x10),ad=E(a3,n['__wbindgen_export'],n[b0(0xb3)]),af=M;n['typstcompiler_get_ast'](ac,this['__wbg_ptr'],ad,af);var a6=f()[b0(0xba)](ac+0x0,!0x0),a7=f()['getInt32'](ac+0x4,!0x0),a8=f()['getInt32'](ac+0x8,!0x0),a9=f()['getInt32'](ac+0xc,!0x0),aa=a6,ab=a7;if(a9)throw aa=0x0,ab=0x0,D(a8);return a4=aa,a5=ab,p(aa,ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a4,a5,0x1);}}['get_semantic_token_legend'](){const b1=aB;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n[b1(0xa3)](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return D(a3);}finally{n[b1(0x72)](0x10);}}[aB(0x93)](a3,a4,a5){const b2=aB;try{let ac=n['__wbindgen_add_to_stack_pointer'](-0x10),ad=E(a3,n['__wbindgen_export'],n[b2(0xb3)]),af=M;var a6=S(a4)?0x0:E(a4,n['__wbindgen_export'],n['__wbindgen_export2']),a7=M,a8=S(a5)?0x0:E(a5,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;n['typstcompiler_get_semantic_tokens'](ac,this[b2(0xa2)],ad,af,a6,a7,a8,a9);var aa=f()['getInt32'](ac+0x0,!0x0),ab=f()['getInt32'](ac+0x4,!0x0);if(f()[b2(0xba)](ac+0x8,!0x0))throw D(ab);return D(aa);}finally{n[b2(0x72)](0x10);}}['snapshot'](a3,a4,a5){const b3=aB;try{let af=n['__wbindgen_add_to_stack_pointer'](-0x10);var a6=S(a3)?0x0:E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a7=M,a8=S(a4)?0x0:E(a4,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M,aa=S(a5)?0x0:T(a5,n[b3(0x7e)]),ab=M;n['typstcompiler_snapshot'](af,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var ac=f()['getInt32'](af+0x0,!0x0),ad=f()['getInt32'](af+0x4,!0x0);if(f()['getInt32'](af+0x8,!0x0))throw D(ad);return H['__wrap'](ac);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](a3,a4){try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10),a8=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;n['typstcompiler_get_artifact'](a7,this['__wbg_ptr'],a8,a9,a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['compile'](a3,a4,a5,a6){const b4=aB;try{let ad=n['__wbindgen_add_to_stack_pointer'](-0x10);var a7=S(a3)?0x0:E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a8=M,a9=S(a4)?0x0:T(a4,n['__wbindgen_export']),aa=M;let af=E(a5,n['__wbindgen_export'],n[b4(0xb3)]),ag=M;n[b4(0xa5)](ad,this[b4(0xa2)],a7,a8,a9,aa,af,ag,a6);var ab=f()['getInt32'](ad+0x0,!0x0),ac=f()['getInt32'](ad+0x4,!0x0);if(f()['getInt32'](ad+0x8,!0x0))throw D(ac);return D(ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[aB(0xa1)](a3,a4,a5,a6){const b5=aB;let a7,a8;try{let ak=n['__wbindgen_add_to_stack_pointer'](-0x10),al=E(a3,n[b5(0x7e)],n['__wbindgen_export2']),am=M;var a9=S(a4)?0x0:T(a4,n[b5(0x7e)]),aa=M;let an=E(a5,n['__wbindgen_export'],n[b5(0xb3)]),ao=M;var ab=S(a6)?0x0:E(a6,n['__wbindgen_export'],n[b5(0xb3)]),ac=M;n['typstcompiler_query'](ak,this['__wbg_ptr'],al,am,a9,aa,an,ao,ab,ac);var ad=f()['getInt32'](ak+0x0,!0x0),af=f()['getInt32'](ak+0x4,!0x0),ag=f()[b5(0xba)](ak+0x8,!0x0),ah=f()['getInt32'](ak+0xc,!0x0),ai=ad,aj=af;if(ah)throw ai=0x0,aj=0x0,D(ag);return a7=ai,a8=aj,p(ai,aj);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a7,a8,0x1);}}['create_incr_server'](){try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_create_incr_server'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return B['__wrap'](a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['incr_compile'](a3,a4,a5,a6){const b6=aB;try{let ab=n['__wbindgen_add_to_stack_pointer'](-0x10),ac=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),ad=M;var a7=S(a4)?0x0:T(a4,n['__wbindgen_export']),a8=M;i(a5,B),n['typstcompiler_incr_compile'](ab,this['__wbg_ptr'],ac,ad,a7,a8,a5['__wbg_ptr'],a6);var a9=f()[b6(0xba)](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw D(aa);return D(a9);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(U['prototype'][Symbol[aB(0xb6)]]=U['prototype']['free']);var W=class{[aB(0x73)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,L['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstcompilerbuilder_free'](a3,0x0);}constructor(){try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompilerbuilder_new'](a5);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return this['__wbg_ptr']=a3>>>0x0,L['register'](this,this['__wbg_ptr'],this),this;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['set_dummy_access_model'](){const b7=aB;try{let a4=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompilerbuilder_set_dummy_access_model'](a4,this[b7(0xa2)]);var a3=f()['getInt32'](a4+0x0,!0x0);if(f()['getInt32'](a4+0x4,!0x0))throw D(a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['set_access_model'](a3,a4,a5,a6,a7){const b8=aB;return D(n[b8(0x8c)](this['__wbg_ptr'],r(a3),r(a4),r(a5),r(a6),r(a7)));}['set_package_registry'](a3,a4){return D(n['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],r(a3),r(a4)));}['add_raw_font'](a3){return D(n['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],r(a3)));}['add_lazy_font'](a3,a4){return D(n['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],r(a3),r(a4)));}[aB(0x90)](){let a3=this['__destroy_into_raw']();return D(n['typstcompilerbuilder_build'](a3));}};Symbol['dispose']&&(W['prototype'][Symbol[aB(0xb6)]]=W['prototype']['free']);var G=class e{static['__wrap'](a3){const b9=aB;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,R[b9(0x94)](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,R['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstfontresolver_free'](a3,0x0);}};Symbol[aB(0xb6)]&&(G['prototype'][Symbol['dispose']]=G['prototype'][aB(0x79)]);var K=class{[aB(0x73)](){const ba=aB;let a3=this[ba(0xa2)];return this['__wbg_ptr']=0x0,z['unregister'](this),a3;}['free'](){const bb=aB;let a3=this['__destroy_into_raw']();n[bb(0xb4)](a3,0x0);}constructor(){const bc=aB;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstfontresolverbuilder_new'](a5);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return this[bc(0xa2)]=a3>>>0x0,z[bc(0x94)](this,this['__wbg_ptr'],this),this;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_font_info'](a3){const bd=aB;try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstfontresolverbuilder_get_font_info'](a6,this['__wbg_ptr'],r(a3));var a4=f()['getInt32'](a6+0x0,!0x0),a5=f()['getInt32'](a6+0x4,!0x0);if(f()[bd(0xba)](a6+0x8,!0x0))throw D(a5);return D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['add_raw_font'](a3){const be=aB;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n[be(0x9d)](a5,this['__wbg_ptr'],r(a3));var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n[be(0x72)](0x10);}}['add_lazy_font'](a3,a4){const bf=aB;try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstfontresolverbuilder_add_lazy_font'](a6,this[bf(0xa2)],r(a3),r(a4));var a5=f()['getInt32'](a6+0x0,!0x0);if(f()[bf(0xba)](a6+0x4,!0x0))throw D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const bg=aB;let a3=this['__destroy_into_raw']();return D(n[bg(0x84)](a3));}};Symbol['dispose']&&(K['prototype'][Symbol['dispose']]=K['prototype'][aB(0x79)]);function re(a3){return D(n['get_font_info'](r(a3)));}var ie=new Set(['basic','cors','default']);function ae(a3,a4){return q['apply'](this,arguments);}function q(){return q=t(function*(a3,a4){const bh=a1;if(typeof Response=='function'&&a3 instanceof Response){if(typeof WebAssembly[bh(0xb5)]=='function')try{return yield WebAssembly['instantiateStreaming'](a3,a4);}catch(a6){if(a3['ok']&&ie['has'](a3['type'])&&a3[bh(0x8d)]['get']('Content-Type')!==bh(0x9a))console['warn']('`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a',a6);else throw a6;}let a5=yield a3['arrayBuffer']();return yield WebAssembly['instantiate'](a5,a4);}else{let a7=yield WebAssembly['instantiate'](a3,a4);return a7 instanceof WebAssembly['Instance']?{'instance':a7,'module':a3}:a7;}}),q['apply'](this,arguments);}function J(){const bi=aB;let a3={};return a3['wbg']={},a3[bi(0xbd)]['__wbg_Error_52673b7de5a0ca89']=function(a4,a5){return r(Error(p(a4,a5)));},a3['wbg']['__wbg_Number_2d1dcfcf4ec51736']=function(a4){return Number(v(a4));},a3['wbg']['__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d']=function(a4,a5){let a6=v(a5),a7=typeof a6=='bigint'?a6:void 0x0;f()['setBigInt64'](a4+0x8,S(a7)?BigInt(0x0):a7,!0x0),f()['setInt32'](a4+0x0,!S(a7),!0x0);},a3[bi(0xbd)]['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(a4){const bj=bi;let a5=v(a4),a6=typeof a5==bj(0x82)?a5:void 0x0;return S(a6)?0xffffff:+!!a6;},a3['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(a4,a5){const bk=bi;let a6=E(o(v(a5)),n['__wbindgen_export'],n[bk(0xb3)]),a7=M;f()['setInt32'](a4+0x4,a7,!0x0),f()['setInt32'](a4+0x0,a6,!0x0);},a3[bi(0xbd)]['__wbg___wbindgen_in_0d3e1e8f0c669317']=function(a4,a5){return v(a4)in v(a5);},a3['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(a4){return typeof v(a4)=='bigint';},a3['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(a4){return typeof v(a4)=='function';},a3[bi(0xbd)]['__wbg___wbindgen_is_object_ce774f3490692386']=function(a4){let a5=v(a4);return typeof a5=='object'&&!!a5;},a3['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(a4){return typeof v(a4)=='string';},a3['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(a4){return v(a4)===void 0x0;},a3['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(a4,a5){return v(a4)===v(a5);},a3['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(a4,a5){return v(a4)==v(a5);},a3['wbg']['__wbg___wbindgen_number_get_9619185a74197f95']=function(a4,a5){let a6=v(a5),a7=typeof a6=='number'?a6:void 0x0;f()['setFloat64'](a4+0x8,S(a7)?0x0:a7,!0x0),f()['setInt32'](a4+0x0,!S(a7),!0x0);},a3['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(a4,a5){const bl=bi;let a6=v(a5),a7=typeof a6=='string'?a6:void 0x0;var a8=S(a7)?0x0:E(a7,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;f()[bl(0xb1)](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},a3['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(a4,a5){throw Error(p(a4,a5));},a3['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(a4){v(a4)['_wbg_cb_unref']();},a3['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return y(function(a4,a5,a6){return r(v(a4)['call'](v(a5),v(a6)));},arguments);},a3[bi(0xbd)]['__wbg_call_78f94eb02ec7f9b2']=function(){return y(function(a4,a5,a6,a7,a8){return r(v(a4)['call'](v(a5),v(a6),v(a7),v(a8)));},arguments);},a3['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return y(function(a4,a5){return r(v(a4)['call'](v(a5)));},arguments);},a3['wbg']['__wbg_done_62ea16af4ce34b24']=function(a4){return v(a4)['done'];},a3['wbg']['__wbg_entries_83c79938054e065f']=function(a4){return r(Object['entries'](v(a4)));},a3['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(a4,a5){let a6,a7;try{a6=a4,a7=a5,console['error'](p(a4,a5));}finally{n['__wbindgen_export4'](a6,a7,0x1);}},a3['wbg']['__wbg_error_85faeb8919b11cc6']=function(a4,a5,a6){console['error'](v(a4),v(a5),v(a6));},a3['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(a4){const bm=bi;return v(a4)[bm(0xb7)]();},a3['wbg'][bi(0xbc)]=function(a4,a5){let a6=v(a4)[a5>>>0x0];return r(a6);},a3['wbg'][bi(0xc4)]=function(){return y(function(a4,a5){return r(Reflect['get'](v(a4),v(a5)));},arguments);},a3[bi(0xbd)]['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(a4,a5){let a6=v(a4)[v(a5)];return r(a6);},a3[bi(0xbd)]['__wbg_info_ce6bcc489c22f6f0']=function(a4){console['info'](v(a4));},a3['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(a4){let a5;try{a5=v(a4)instanceof ArrayBuffer;}catch(a6){a5=!0x1;}return a5;},a3['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(a4){let a5;try{a5=v(a4)instanceof Map;}catch(a6){a5=!0x1;}return a5;},a3[bi(0xbd)]['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(a4){let a5;try{a5=v(a4)instanceof Uint8Array;}catch(a6){a5=!0x1;}return a5;},a3['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(a4){return Array['isArray'](v(a4));},a3['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(a4){return Number['isSafeInteger'](v(a4));},a3['wbg']['__wbg_iterator_27b7c8b35ab3e86b']=function(){let a4=Symbol['iterator'];return r(a4);},a3['wbg']['__wbg_length_22ac23eaec9d8053']=function(a4){return v(a4)['length'];},a3['wbg']['__wbg_length_d45040a40c570362']=function(a4){return v(a4)['length'];},a3['wbg']['__wbg_new_1ba21ce319a06297']=function(){return r({});},a3['wbg']['__wbg_new_25f239778d6112b9']=function(){return r([]);},a3['wbg']['__wbg_new_6421f6084cc5bc5a']=function(a4){return r(new Uint8Array(v(a4)));},a3['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return r(Error());},a3['wbg']['__wbg_new_b2db8aa2650f793a']=function(a4){return r(new Date(v(a4)));},a3['wbg'][bi(0xc2)]=function(a4,a5){return r(Error(p(a4,a5)));},a3['wbg']['__wbg_new_ff12d2b041fb48f1']=function(a4,a5){try{var a6={'a':a4,'b':a5};return r(new Promise((a7,a8)=>{let a9=a6['a'];a6['a']=0x0;try{return ne(a9,a6['b'],a7,a8);}finally{a6['a']=a9;}}));}finally{a6['a']=a6['b']=0x0;}},a3['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(a4,a5){return r(new Uint32Array(l(a4,a5)));},a3['wbg'][bi(0x9c)]=function(a4,a5){return r(new Uint8Array(u(a4,a5)));},a3['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(a4,a5){return r(Function(p(a4,a5)));},a3['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(a4,a5,a6,a7){return r(Function(p(a4,a5),p(a6,a7)));},a3[bi(0xbd)]['__wbg_next_138a17bbf04e926c']=function(a4){let a5=v(a4)['next'];return r(a5);},a3[bi(0xbd)][bi(0x83)]=function(){return y(function(a4){return r(v(a4)['next']());},arguments);},a3[bi(0xbd)]['__wbg_now_69d776cd24f5215b']=function(){return Date['now']();},a3['wbg']['__wbg_prototypesetcall_dfe9b766cdc1f1fd']=function(a4,a5,a6){const bn=bi;Uint8Array[bn(0x9b)]['set']['call'](u(a4,a5),v(a6));},a3['wbg']['__wbg_proxycontext_new']=function(a4){return r(V['__wrap'](a4));},a3['wbg']['__wbg_push_7d9be8f38fc13975']=function(a4,a5){return v(a4)['push'](v(a5));},a3[bi(0xbd)][bi(0x86)]=function(a4){const bo=bi;let a5=v(a4)[bo(0xa0)];return r(a5);},a3['wbg'][bi(0x76)]=function(a4){queueMicrotask(v(a4));},a3['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(a4){return r(Promise['resolve'](v(a4)));},a3['wbg']['__wbg_set_3f1d0b984ed272ed']=function(a4,a5,a6){v(a4)[D(a5)]=D(a6);},a3['wbg']['__wbg_set_781438a03c0c3c81']=function(){return y(function(a4,a5,a6){return Reflect['set'](v(a4),v(a5),v(a6));},arguments);},a3['wbg']['__wbg_set_7df433eea03a5c14']=function(a4,a5,a6){v(a4)[a5>>>0x0]=D(a6);},a3['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(a4,a5){const bp=bi;let a6=v(a5)['stack'],a7=E(a6,n[bp(0x7e)],n['__wbindgen_export2']),a8=M;f()['setInt32'](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},a3[bi(0xbd)]['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){let a4=typeof global>'u'?null:global;return S(a4)?0x0:r(a4);},a3['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){let a4=typeof globalThis>'u'?null:globalThis;return S(a4)?0x0:r(a4);},a3[bi(0xbd)][bi(0x74)]=function(){let a4=typeof self>'u'?null:self;return S(a4)?0x0:r(a4);},a3[bi(0xbd)][bi(0xbf)]=function(){let a4=typeof window>'u'?null:window;return S(a4)?0x0:r(a4);},a3['wbg']['__wbg_then_4f95312d68691235']=function(a4,a5){return r(v(a4)['then'](v(a5)));},a3[bi(0xbd)]['__wbg_typstcompiler_new']=function(a4){return r(U['__wrap'](a4));},a3['wbg']['__wbg_typstfontresolver_new']=function(a4){const bq=bi;return r(G[bq(0xbb)](a4));},a3['wbg']['__wbg_value_57b7b035e117f7ee']=function(a4){const br=bi;let a5=v(a4)[br(0xb9)];return r(a5);},a3['wbg']['__wbindgen_cast_2241b6af4c4b2941']=function(a4,a5){return r(p(a4,a5));},a3['wbg']['__wbindgen_cast_3334ea73b4b28ba3']=function(a4,a5){const bs=bi;return r(C(a4,a5,n[bs(0xb2)],te));},a3['wbg']['__wbindgen_cast_4625c577ab2ec9ee']=function(a4){return r(BigInt['asUintN'](0x40,a4));},a3['wbg']['__wbindgen_cast_9ae0607507abb057']=function(a4){return r(a4);},a3['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(a4){return r(a4);},a3['wbg']['__wbindgen_object_clone_ref']=function(a4){return r(v(a4));},a3['wbg'][bi(0xa9)]=function(a4){D(a4);},a3;}function Y(a3,a4){const bt=aB;return n=a3['exports'],X[bt(0x7b)]=a4,d=null,m=null,g=null,n;}function oe(a3){const bu=aB;if(n!==void 0x0)return n;a3!==void 0x0&&(Object[bu(0x8b)](a3)===Object['prototype']?{module:a3}=a3:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));let a4=J();return a3 instanceof WebAssembly['Module']||(a3=new WebAssembly['Module'](a3)),Y(new WebAssembly['Instance'](a3,a4),a3);}function a1(a,b){a=a-0x71;const c=a0();let d=c[a];return d;}function X(a3){const bv=aB;return Z[bv(0xa8)](this,arguments);}function Z(){return Z=t(function*(a3){const bw=a1;if(n!==void 0x0)return n;a3!==void 0x0&&(Object['getPrototypeOf'](a3)===Object[bw(0x9b)]?{module_or_path:a3}=a3:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),a3===void 0x0&&(a3=Q('typst_ts_web_compiler_bg.wasm',import.meta.url));let a4=J();(typeof a3=='string'||typeof Request=='function'&&a3 instanceof Request||typeof URL=='function'&&a3 instanceof URL)&&(a3=fetch(a3));let {instance:a5,module:a6}=yield ae(yield a3,a4);return Y(a5,a6);}),Z['apply'](this,arguments);}var Q=(function(){var a3=t(function*(a4,a5){throw Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+a4+'\x20'+a5);});return function(a4,a5){return a3['apply'](this,arguments);};}());function $(a3){Q=a3;}a2();var se=X,ce=(function(){var a3=t(function*(a4,a5){let {readFileSync:a6}=yield Function('m','return\x20import(m)')('fs');return yield a6(new URL(a4,a5))['buffer'];});return function(a4,a5){return a3['apply'](this,arguments);};}());typeof process<'u'&&process[aB(0x7f)]!=null&&process['versions']['node']!=null&&$(ce);export{B as IncrServer,V as ProxyContext,H as TypstCompileWorld,U as TypstCompiler,W as TypstCompilerBuilder,G as TypstFontResolver,K as TypstFontResolverBuilder,se as default,re as get_font_info,oe as initSync,$ as setImportWasmModule};
|
|
1
|
+
const aw=a1;(function(a3,a4){const ap=a1,a5=a3();while(!![]){try{const a6=-parseInt(ap(0xed))/0x1*(parseInt(ap(0xd0))/0x2)+-parseInt(ap(0xe5))/0x3*(parseInt(ap(0xd9))/0x4)+parseInt(ap(0x115))/0x5*(parseInt(ap(0x112))/0x6)+-parseInt(ap(0x109))/0x7+-parseInt(ap(0xfd))/0x8+parseInt(ap(0xf1))/0x9+parseInt(ap(0xe7))/0xa;if(a6===a4)break;else a5['push'](a5['shift']());}catch(a7){a5['push'](a5['shift']());}}}(a0,0x6ce68));import{n as a2,t}from'./asyncToGenerator.js';a2();var n;function r(a3){const aq=a1;x===b['length']&&b['push'](b[aq(0x10c)]+0x1);let a4=x;return x=b[a4],b[a4]=a3,a4;}function i(a3,a4){if(!(a3 instanceof a4))throw Error('expected\x20instance\x20of\x20'+a4['name']);}var a=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>a3['dtor'](a3['a'],a3['b']));function o(a3){const ar=a1;let a4=typeof a3;if(a4=='number'||a4=='boolean'||a3==null)return''+a3;if(a4==ar(0x113))return'\x22'+a3+'\x22';if(a4=='symbol'){let a7=a3['description'];return a7==null?'Symbol':ar(0x10b)+a7+')';}if(a4=='function'){let a8=a3['name'];return typeof a8=='string'&&a8['length']>0x0?'Function('+a8+')':'Function';}if(Array['isArray'](a3)){let a9=a3['length'],aa='[';a9>0x0&&(aa+=o(a3[0x0]));for(let ab=0x1;ab<a9;ab++)aa+=',\x20'+o(a3[ab]);return aa+=']',aa;}let a5=/\[object ([^\]]+)\]/['exec'](toString['call'](a3)),a6;if(a5&&a5['length']>0x1)a6=a5[0x1];else return toString['call'](a3);if(a6=='Object')try{return'Object('+JSON['stringify'](a3)+')';}catch(ac){return'Object';}return a3 instanceof Error?a3['name']+':\x20'+a3[ar(0xec)]+'\x0a'+a3[ar(0xdb)]:a6;}function s(a3){a3<0x84||(b[a3]=x,x=a3);}function c(a3,a4){a3>>>=0x0;let a5=f(),a6=[];for(let a7=a3;a7<a3+0x4*a4;a7+=0x4)a6['push'](D(a5['getUint32'](a7,!0x0)));return a6;}function l(a3,a4){return a3>>>=0x0,h()['subarray'](a3/0x4,a3/0x4+a4);}function u(a3,a4){return a3>>>=0x0,_()['subarray'](a3/0x1,a3/0x1+a4);}var d=null;function f(){const as=a1;return(d===null||d['buffer']['detached']===!0x0||d['buffer']['detached']===void 0x0&&d['buffer']!==n['memory'][as(0xdd)])&&(d=new DataView(n[as(0xfb)]['buffer'])),d;}function p(a3,a4){return a3>>>=0x0,A(a3,a4);}var m=null;function h(){return(m===null||m['byteLength']===0x0)&&(m=new Uint32Array(n['memory']['buffer'])),m;}var g=null;function _(){const at=a1;return(g===null||g['byteLength']===0x0)&&(g=new Uint8Array(n[at(0xfb)]['buffer'])),g;}function v(a3){return b[a3];}function y(a3,a4){try{return a3['apply'](this,a4);}catch(a5){n['__wbindgen_export3'](r(a5));}}var b=Array(0x80)['fill'](void 0x0);b['push'](void 0x0,null,!0x0,!0x1);var x=b['length'];function S(a3){return a3==null;}function C(a3,a4,a5,a6){let a7={'a':a3,'b':a4,'cnt':0x1,'dtor':a5},a8=(...a9)=>{a7['cnt']++;let aa=a7['a'];a7['a']=0x0;try{return a6(aa,a7['b'],...a9);}finally{a7['a']=aa,a8['_wbg_cb_unref']();}};return a8['_wbg_cb_unref']=()=>{const au=a1;--a7[au(0x121)]===0x0&&(a7[au(0xcd)](a7['a'],a7['b']),a7['a']=0x0,a['unregister'](a7));},a['register'](a8,a7,a7),a8;}function w(a3,a4){let a5=a4(a3['length']*0x1,0x1)>>>0x0;return _()['set'](a3,a5/0x1),M=a3['length'],a5;}function T(a3,a4){let a5=a4(a3['length']*0x4,0x4)>>>0x0,a6=f();for(let a7=0x0;a7<a3['length'];a7++)a6['setUint32'](a5+0x4*a7,r(a3[a7]),!0x0);return M=a3['length'],a5;}function E(a3,a4,a5){const av=a1;if(a5===void 0x0){let aa=j['encode'](a3),ab=a4(aa[av(0x10c)],0x1)>>>0x0;return _()['subarray'](ab,ab+aa['length'])[av(0x11f)](aa),M=aa['length'],ab;}let a6=a3['length'],a7=a4(a6,0x1)>>>0x0,a8=_(),a9=0x0;for(;a9<a6;a9++){let ac=a3[av(0xf8)](a9);if(ac>0x7f)break;a8[a7+a9]=ac;}if(a9!==a6){a9!==0x0&&(a3=a3[av(0x108)](a9)),a7=a5(a7,a6,a6=a9+a3[av(0x10c)]*0x3,0x1)>>>0x0;let ad=_()['subarray'](a7+a9,a7+a6),af=j['encodeInto'](a3,ad);a9+=af['written'],a7=a5(a7,a6,a9,0x1)>>>0x0;}return M=a9,a7;}function D(a3){let a4=v(a3);return s(a3),a4;}var O=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});O['decode']();var ee=0x7ff00000,k=0x0;function A(a3,a4){return k+=a4,k>=ee&&(O=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),O['decode'](),k=a4),O['decode'](_()['subarray'](a3,a3+a4));}var j=new TextEncoder();aw(0xd1)in j||(j['encodeInto']=function(a3,a4){let a5=j['encode'](a3);return a4['set'](a5),{'read':a3['length'],'written':a5['length']};});var M=0x0;function te(a3,a4,a5){const ax=aw;n[ax(0x122)](a3,a4,r(a5));}function ne(a3,a4,a5,a6){n['__wasm_bindgen_func_elem_37350'](a3,a4,r(a5),r(a6));}var N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_incrserver_free'](a3>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_proxycontext_free'](a3>>>0x0,0x1)),F=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstcompileworld_free'](a3>>>0x0,0x1)),I=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstcompiler_free'](a3>>>0x0,0x1)),L=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstcompilerbuilder_free'](a3>>>0x0,0x1)),R=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstfontresolver_free'](a3>>>0x0,0x1)),z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(a3=>n['__wbg_typstfontresolverbuilder_free'](a3>>>0x0,0x1)),B=class e{static[aw(0x106)](a3){const ay=aw;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,N[ay(0x11c)](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const az=aw;let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N[az(0x111)](this),a3;}['free'](){const aA=aw;let a3=this['__destroy_into_raw']();n[aA(0x123)](a3,0x0);}['set_attach_debug_info'](a3){const aB=aw;n[aB(0xd7)](this['__wbg_ptr'],a3);}['current'](){const aC=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['incrserver_current'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);let a6;return a3!==0x0&&(a6=u(a3,a4)['slice'](),n['__wbindgen_export4'](a3,a4*0x1,0x1)),a6;}finally{n[aC(0x11e)](0x10);}}['reset'](){const aD=aw;n[aD(0xf2)](this['__wbg_ptr']);}};Symbol['dispose']&&(B[aw(0xf0)][Symbol[aw(0x107)]]=B[aw(0xf0)][aw(0x100)]);var V=class e{static[aw(0x106)](a3){const aE=aw;a3>>>=0x0;let a4=Object[aE(0xf3)](e[aE(0xf0)]);return a4['__wbg_ptr']=a3,P[aE(0x11c)](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){const aF=aw;let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P[aF(0x111)](this),a3;}[aw(0x100)](){let a3=this['__destroy_into_raw']();n['__wbg_proxycontext_free'](a3,0x0);}constructor(a3){const aG=aw;let a4=n[aG(0x10a)](r(a3));return this['__wbg_ptr']=a4>>>0x0,P['register'](this,this['__wbg_ptr'],this),this;}get['context'](){const aH=aw;return D(n[aH(0xcc)](this['__wbg_ptr']));}['untar'](a3,a4){try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10),a7=w(a3,n['__wbindgen_export']),a8=M;n['proxycontext_untar'](a6,this['__wbg_ptr'],a7,a8,r(a4));var a5=f()['getInt32'](a6+0x0,!0x0);if(f()['getInt32'](a6+0x4,!0x0))throw D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(V['prototype'][Symbol['dispose']]=V[aw(0xf0)][aw(0x100)]);function a0(){const by=['add_raw_font','1789852SnQyQx','setBigInt64','stack','__wbg_new_ff12d2b041fb48f1','buffer','get','typstfontresolverbuilder_get_font_info','__wbg_get_af9dab7e9603ea93','__wbindgen_object_drop_ref','typstcompiler_reset_shadow','typstcompileworld_title','wbg','3rCbGhY','typstfontresolverbuilder_new','17414360wbfLRa','__wbindgen_export4','getPrototypeOf','`WebAssembly.instantiateStreaming`\x20failed\x20because\x20your\x20server\x20does\x20not\x20serve\x20Wasm\x20with\x20`application/wasm`\x20MIME\x20type.\x20Falling\x20back\x20to\x20`WebAssembly.instantiate`\x20which\x20is\x20slower.\x20Original\x20error:\x0a','get_artifact','message','450346DHWegx','using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead','__wbindgen_export2','prototype','6238638fLbdpf','incrserver_reset','create','__wbg_Error_52673b7de5a0ca89','__wbg_error_7534b8e9a36f1ab4','__wbindgen_export','__wbindgen_cast_9ae0607507abb057','charCodeAt','typstcompiler_set_inputs','unmap_shadow','memory','__wbg_queueMicrotask_9b549dfce8865860','6567328CbCnxu','typstcompileworld_compile','__wbg___wbindgen_is_function_8d400b8b1af978cd','free','__wbg_new_df1173567d5ff028','cors','set_inputs','query','__wbg_new_from_slice_db0691b69e9d3891','__wrap','dispose','slice','2327871yvkYgZ','proxycontext_new','Symbol(','length','error','typstcompiler_set_fonts','queueMicrotask','__wbg_call_78f94eb02ec7f9b2','unregister','24swairQ','string','__wasm_bindgen_func_elem_957','78395yHGQbW','__wbg_length_22ac23eaec9d8053','using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead','__wbg_isArray_51fd9e6422c0a395','apply','getInt32','reset_shadow','register','Content-Type','__wbindgen_add_to_stack_pointer','set','call','cnt','__wasm_bindgen_func_elem_944','__wbg_incrserver_free','__wbg_error_85faeb8919b11cc6','__wbg___wbindgen_number_get_9619185a74197f95','proxycontext_context','dtor','__destroy_into_raw','set_fonts','2xNoVto','encodeInto','setInt32','__wbg_ptr','__wbg_now_69d776cd24f5215b','__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','incrserver_set_attach_debug_info'];a0=function(){return by;};return a0();}var H=class e{static['__wrap'](a3){const aI=aw;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4[aI(0xd3)]=a3,F['register'](a4,a4['__wbg_ptr'],a4),a4;}['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,F['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstcompileworld_free'](a3,0x0);}['compile'](a3,a4){const aJ=aw;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);n[aJ(0xfe)](a7,this['__wbg_ptr'],a3,a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](a3){const aK=aw;try{let a7=n[aK(0x11e)](-0x10);n[aK(0xe3)](a7,this['__wbg_ptr'],a3);var a4=f()['getInt32'](a7+0x0,!0x0),a5=f()[aK(0x11a)](a7+0x4,!0x0),a6=f()['getInt32'](a7+0x8,!0x0);if(f()['getInt32'](a7+0xc,!0x0))throw D(a6);let a8;return a4!==0x0&&(a8=p(a4,a5)['slice'](),n['__wbindgen_export4'](a4,a5*0x1,0x1)),a8;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[aw(0xeb)](a3,a4){const aL=aw;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompileworld_get_artifact'](a7,this['__wbg_ptr'],a3,a4);var a5=f()[aL(0x11a)](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](a3,a4,a5){const aM=aw;let a6,a7;try{let ah=n['__wbindgen_add_to_stack_pointer'](-0x10),ai=E(a4,n['__wbindgen_export'],n['__wbindgen_export2']),aj=M;var a8=S(a5)?0x0:E(a5,n['__wbindgen_export'],n[aM(0xef)]),a9=M;n['typstcompileworld_query'](ah,this['__wbg_ptr'],a3,ai,aj,a8,a9);var aa=f()['getInt32'](ah+0x0,!0x0),ab=f()['getInt32'](ah+0x4,!0x0),ac=f()['getInt32'](ah+0x8,!0x0),ad=f()['getInt32'](ah+0xc,!0x0),af=aa,ag=ab;if(ad)throw af=0x0,ag=0x0,D(ac);return a6=af,a7=ag,p(af,ag);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n[aM(0xe8)](a6,a7,0x1);}}['incr_compile'](a3,a4){const aN=aw;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10);i(a3,B),n['typstcompileworld_incr_compile'](a7,this['__wbg_ptr'],a3[aN(0xd3)],a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n[aN(0x11e)](0x10);}}};Symbol['dispose']&&(H['prototype'][Symbol['dispose']]=H[aw(0xf0)]['free']);var U=class e{static[aw(0x106)](a3){const aO=aw;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,I['register'](a4,a4[aO(0xd3)],a4),a4;}[aw(0xce)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,I['unregister'](this),a3;}['free'](){const aP=aw;let a3=this[aP(0xce)]();n['__wbg_typstcompiler_free'](a3,0x0);}['reset'](){const aQ=aw;try{let a4=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_reset'](a4,this['__wbg_ptr']);var a3=f()['getInt32'](a4+0x0,!0x0);if(f()[aQ(0x11a)](a4+0x4,!0x0))throw D(a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[aw(0xcf)](a3){const aR=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);i(a3,G),n[aR(0x10e)](a5,this['__wbg_ptr'],a3['__wbg_ptr']);var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[aw(0x103)](a3){const aS=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n[aS(0xf9)](a5,this['__wbg_ptr'],r(a3));var a4=f()[aS(0x11a)](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['add_source'](a3,a4){const aT=aw;let a5=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a6=M,a7=E(a4,n['__wbindgen_export'],n[aT(0xef)]),a8=M;return n['typstcompiler_add_source'](this['__wbg_ptr'],a5,a6,a7,a8)!==0x0;}['map_shadow'](a3,a4){const aU=aw;let a5=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a6=M,a7=w(a4,n[aU(0xf6)]),a8=M;return n['typstcompiler_map_shadow'](this['__wbg_ptr'],a5,a6,a7,a8)!==0x0;}[aw(0xfa)](a3){const aV=aw;let a4=E(a3,n['__wbindgen_export'],n[aV(0xef)]),a5=M;return n['typstcompiler_unmap_shadow'](this['__wbg_ptr'],a4,a5)!==0x0;}[aw(0x11b)](){const aW=aw;n[aW(0xe2)](this[aW(0xd3)]);}['get_loaded_fonts'](){const aX=aw;try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_get_loaded_fonts'](a6,this['__wbg_ptr']);var a3=f()[aX(0x11a)](a6+0x0,!0x0),a4=f()['getInt32'](a6+0x4,!0x0),a5=c(a3,a4)['slice']();return n['__wbindgen_export4'](a3,a4*0x4,0x4),a5;}finally{n[aX(0x11e)](0x10);}}['get_ast'](a3){const aY=aw;let a4,a5;try{let ac=n['__wbindgen_add_to_stack_pointer'](-0x10),ad=E(a3,n[aY(0xf6)],n[aY(0xef)]),af=M;n['typstcompiler_get_ast'](ac,this['__wbg_ptr'],ad,af);var a6=f()['getInt32'](ac+0x0,!0x0),a7=f()[aY(0x11a)](ac+0x4,!0x0),a8=f()['getInt32'](ac+0x8,!0x0),a9=f()['getInt32'](ac+0xc,!0x0),aa=a6,ab=a7;if(a9)throw aa=0x0,ab=0x0,D(a8);return a4=aa,a5=ab,p(aa,ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a4,a5,0x1);}}['get_semantic_token_legend'](){const aZ=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_get_semantic_token_legend'](a5,this['__wbg_ptr']);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()[aZ(0x11a)](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return D(a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](a3,a4,a5){const b0=aw;try{let ac=n['__wbindgen_add_to_stack_pointer'](-0x10),ad=E(a3,n['__wbindgen_export'],n[b0(0xef)]),af=M;var a6=S(a4)?0x0:E(a4,n[b0(0xf6)],n['__wbindgen_export2']),a7=M,a8=S(a5)?0x0:E(a5,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;n['typstcompiler_get_semantic_tokens'](ac,this['__wbg_ptr'],ad,af,a6,a7,a8,a9);var aa=f()['getInt32'](ac+0x0,!0x0),ab=f()['getInt32'](ac+0x4,!0x0);if(f()['getInt32'](ac+0x8,!0x0))throw D(ab);return D(aa);}finally{n[b0(0x11e)](0x10);}}['snapshot'](a3,a4,a5){const b1=aw;try{let af=n['__wbindgen_add_to_stack_pointer'](-0x10);var a6=S(a3)?0x0:E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a7=M,a8=S(a4)?0x0:E(a4,n[b1(0xf6)],n[b1(0xef)]),a9=M,aa=S(a5)?0x0:T(a5,n[b1(0xf6)]),ab=M;n['typstcompiler_snapshot'](af,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var ac=f()['getInt32'](af+0x0,!0x0),ad=f()[b1(0x11a)](af+0x4,!0x0);if(f()['getInt32'](af+0x8,!0x0))throw D(ad);return H[b1(0x106)](ac);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](a3,a4){const b2=aw;try{let a7=n['__wbindgen_add_to_stack_pointer'](-0x10),a8=E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a9=M;n['typstcompiler_get_artifact'](a7,this['__wbg_ptr'],a8,a9,a4);var a5=f()['getInt32'](a7+0x0,!0x0),a6=f()['getInt32'](a7+0x4,!0x0);if(f()['getInt32'](a7+0x8,!0x0))throw D(a6);return D(a5);}finally{n[b2(0x11e)](0x10);}}['compile'](a3,a4,a5,a6){const b3=aw;try{let ad=n['__wbindgen_add_to_stack_pointer'](-0x10);var a7=S(a3)?0x0:E(a3,n['__wbindgen_export'],n['__wbindgen_export2']),a8=M,a9=S(a4)?0x0:T(a4,n['__wbindgen_export']),aa=M;let af=E(a5,n[b3(0xf6)],n['__wbindgen_export2']),ag=M;n['typstcompiler_compile'](ad,this['__wbg_ptr'],a7,a8,a9,aa,af,ag,a6);var ab=f()['getInt32'](ad+0x0,!0x0),ac=f()['getInt32'](ad+0x4,!0x0);if(f()['getInt32'](ad+0x8,!0x0))throw D(ac);return D(ab);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}[aw(0x104)](a3,a4,a5,a6){const b4=aw;let a7,a8;try{let ak=n['__wbindgen_add_to_stack_pointer'](-0x10),al=E(a3,n['__wbindgen_export'],n[b4(0xef)]),am=M;var a9=S(a4)?0x0:T(a4,n['__wbindgen_export']),aa=M;let an=E(a5,n['__wbindgen_export'],n['__wbindgen_export2']),ao=M;var ab=S(a6)?0x0:E(a6,n['__wbindgen_export'],n['__wbindgen_export2']),ac=M;n['typstcompiler_query'](ak,this['__wbg_ptr'],al,am,a9,aa,an,ao,ab,ac);var ad=f()['getInt32'](ak+0x0,!0x0),af=f()[b4(0x11a)](ak+0x4,!0x0),ag=f()[b4(0x11a)](ak+0x8,!0x0),ah=f()[b4(0x11a)](ak+0xc,!0x0),ai=ad,aj=af;if(ah)throw ai=0x0,aj=0x0,D(ag);return a7=ai,a8=aj,p(ai,aj);}finally{n['__wbindgen_add_to_stack_pointer'](0x10),n['__wbindgen_export4'](a7,a8,0x1);}}['create_incr_server'](){const b5=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompiler_create_incr_server'](a5,this['__wbg_ptr']);var a3=f()[b5(0x11a)](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()[b5(0x11a)](a5+0x8,!0x0))throw D(a4);return B['__wrap'](a3);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['incr_compile'](a3,a4,a5,a6){const b6=aw;try{let ab=n[b6(0x11e)](-0x10),ac=E(a3,n['__wbindgen_export'],n[b6(0xef)]),ad=M;var a7=S(a4)?0x0:T(a4,n['__wbindgen_export']),a8=M;i(a5,B),n['typstcompiler_incr_compile'](ab,this['__wbg_ptr'],ac,ad,a7,a8,a5['__wbg_ptr'],a6);var a9=f()[b6(0x11a)](ab+0x0,!0x0),aa=f()['getInt32'](ab+0x4,!0x0);if(f()['getInt32'](ab+0x8,!0x0))throw D(aa);return D(a9);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}};Symbol['dispose']&&(U[aw(0xf0)][Symbol['dispose']]=U['prototype']['free']);var W=class{[aw(0xce)](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,L['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstcompilerbuilder_free'](a3,0x0);}constructor(){const b7=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompilerbuilder_new'](a5);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()[b7(0x11a)](a5+0x8,!0x0))throw D(a4);return this['__wbg_ptr']=a3>>>0x0,L['register'](this,this['__wbg_ptr'],this),this;}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['set_dummy_access_model'](){const b8=aw;try{let a4=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstcompilerbuilder_set_dummy_access_model'](a4,this['__wbg_ptr']);var a3=f()['getInt32'](a4+0x0,!0x0);if(f()['getInt32'](a4+0x4,!0x0))throw D(a3);}finally{n[b8(0x11e)](0x10);}}['set_access_model'](a3,a4,a5,a6,a7){return D(n['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],r(a3),r(a4),r(a5),r(a6),r(a7)));}['set_package_registry'](a3,a4){return D(n['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],r(a3),r(a4)));}[aw(0xd8)](a3){return D(n['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],r(a3)));}['add_lazy_font'](a3,a4){return D(n['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],r(a3),r(a4)));}['build'](){let a3=this['__destroy_into_raw']();return D(n['typstcompilerbuilder_build'](a3));}};Symbol[aw(0x107)]&&(W['prototype'][Symbol[aw(0x107)]]=W['prototype']['free']);var G=class e{static['__wrap'](a3){const b9=aw;a3>>>=0x0;let a4=Object['create'](e['prototype']);return a4['__wbg_ptr']=a3,R['register'](a4,a4[b9(0xd3)],a4),a4;}[aw(0xce)](){const ba=aw;let a3=this['__wbg_ptr'];return this[ba(0xd3)]=0x0,R['unregister'](this),a3;}['free'](){const bb=aw;let a3=this[bb(0xce)]();n['__wbg_typstfontresolver_free'](a3,0x0);}};Symbol['dispose']&&(G['prototype'][Symbol['dispose']]=G['prototype']['free']);var K=class{['__destroy_into_raw'](){let a3=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,z['unregister'](this),a3;}['free'](){let a3=this['__destroy_into_raw']();n['__wbg_typstfontresolverbuilder_free'](a3,0x0);}constructor(){const bc=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n[bc(0xe6)](a5);var a3=f()['getInt32'](a5+0x0,!0x0),a4=f()['getInt32'](a5+0x4,!0x0);if(f()['getInt32'](a5+0x8,!0x0))throw D(a4);return this['__wbg_ptr']=a3>>>0x0,z['register'](this,this['__wbg_ptr'],this),this;}finally{n[bc(0x11e)](0x10);}}['get_font_info'](a3){const bd=aw;try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);n[bd(0xdf)](a6,this['__wbg_ptr'],r(a3));var a4=f()['getInt32'](a6+0x0,!0x0),a5=f()['getInt32'](a6+0x4,!0x0);if(f()['getInt32'](a6+0x8,!0x0))throw D(a5);return D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['add_raw_font'](a3){const be=aw;try{let a5=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstfontresolverbuilder_add_raw_font'](a5,this[be(0xd3)],r(a3));var a4=f()['getInt32'](a5+0x0,!0x0);if(f()['getInt32'](a5+0x4,!0x0))throw D(a4);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['add_lazy_font'](a3,a4){try{let a6=n['__wbindgen_add_to_stack_pointer'](-0x10);n['typstfontresolverbuilder_add_lazy_font'](a6,this['__wbg_ptr'],r(a3),r(a4));var a5=f()['getInt32'](a6+0x0,!0x0);if(f()['getInt32'](a6+0x4,!0x0))throw D(a5);}finally{n['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){let a3=this['__destroy_into_raw']();return D(n['typstfontresolverbuilder_build'](a3));}};Symbol['dispose']&&(K['prototype'][Symbol['dispose']]=K['prototype']['free']);function re(a3){return D(n['get_font_info'](r(a3)));}var ie=new Set(['basic',aw(0x102),'default']);function ae(a3,a4){return q['apply'](this,arguments);}function q(){return q=t(function*(a3,a4){const bf=a1;if(typeof Response=='function'&&a3 instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return yield WebAssembly['instantiateStreaming'](a3,a4);}catch(a6){if(a3['ok']&&ie['has'](a3['type'])&&a3['headers'][bf(0xde)](bf(0x11d))!=='application/wasm')console['warn'](bf(0xea),a6);else throw a6;}let a5=yield a3['arrayBuffer']();return yield WebAssembly['instantiate'](a5,a4);}else{let a7=yield WebAssembly['instantiate'](a3,a4);return a7 instanceof WebAssembly['Instance']?{'instance':a7,'module':a3}:a7;}}),q['apply'](this,arguments);}function J(){const bg=aw;let a3={};return a3['wbg']={},a3[bg(0xe4)][bg(0xf4)]=function(a4,a5){return r(Error(p(a4,a5)));},a3['wbg']['__wbg_Number_2d1dcfcf4ec51736']=function(a4){return Number(v(a4));},a3['wbg']['__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d']=function(a4,a5){const bh=bg;let a6=v(a5),a7=typeof a6=='bigint'?a6:void 0x0;f()[bh(0xda)](a4+0x8,S(a7)?BigInt(0x0):a7,!0x0),f()['setInt32'](a4+0x0,!S(a7),!0x0);},a3['wbg']['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(a4){let a5=v(a4),a6=typeof a5=='boolean'?a5:void 0x0;return S(a6)?0xffffff:+!!a6;},a3['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(a4,a5){const bi=bg;let a6=E(o(v(a5)),n[bi(0xf6)],n['__wbindgen_export2']),a7=M;f()['setInt32'](a4+0x4,a7,!0x0),f()['setInt32'](a4+0x0,a6,!0x0);},a3[bg(0xe4)]['__wbg___wbindgen_in_0d3e1e8f0c669317']=function(a4,a5){return v(a4)in v(a5);},a3['wbg'][bg(0xd5)]=function(a4){return typeof v(a4)=='bigint';},a3['wbg'][bg(0xff)]=function(a4){return typeof v(a4)=='function';},a3['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(a4){let a5=v(a4);return typeof a5=='object'&&!!a5;},a3['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(a4){const bj=bg;return typeof v(a4)==bj(0x113);},a3['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(a4){return v(a4)===void 0x0;},a3['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(a4,a5){return v(a4)===v(a5);},a3['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(a4,a5){return v(a4)==v(a5);},a3['wbg'][bg(0xcb)]=function(a4,a5){let a6=v(a5),a7=typeof a6=='number'?a6:void 0x0;f()['setFloat64'](a4+0x8,S(a7)?0x0:a7,!0x0),f()['setInt32'](a4+0x0,!S(a7),!0x0);},a3[bg(0xe4)]['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(a4,a5){const bk=bg;let a6=v(a5),a7=typeof a6=='string'?a6:void 0x0;var a8=S(a7)?0x0:E(a7,n[bk(0xf6)],n[bk(0xef)]),a9=M;f()[bk(0xd2)](a4+0x4,a9,!0x0),f()['setInt32'](a4+0x0,a8,!0x0);},a3['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(a4,a5){throw Error(p(a4,a5));},a3['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(a4){v(a4)['_wbg_cb_unref']();},a3['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return y(function(a4,a5,a6){const bl=a1;return r(v(a4)[bl(0x120)](v(a5),v(a6)));},arguments);},a3['wbg'][bg(0x110)]=function(){return y(function(a4,a5,a6,a7,a8){const bm=a1;return r(v(a4)[bm(0x120)](v(a5),v(a6),v(a7),v(a8)));},arguments);},a3['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return y(function(a4,a5){return r(v(a4)['call'](v(a5)));},arguments);},a3['wbg']['__wbg_done_62ea16af4ce34b24']=function(a4){return v(a4)['done'];},a3['wbg']['__wbg_entries_83c79938054e065f']=function(a4){return r(Object['entries'](v(a4)));},a3['wbg'][bg(0xf5)]=function(a4,a5){const bn=bg;let a6,a7;try{a6=a4,a7=a5,console[bn(0x10d)](p(a4,a5));}finally{n['__wbindgen_export4'](a6,a7,0x1);}},a3[bg(0xe4)][bg(0xca)]=function(a4,a5,a6){const bo=bg;console[bo(0x10d)](v(a4),v(a5),v(a6));},a3['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(a4){return v(a4)['getTimezoneOffset']();},a3['wbg']['__wbg_get_6b7bd52aca3f9671']=function(a4,a5){let a6=v(a4)[a5>>>0x0];return r(a6);},a3[bg(0xe4)][bg(0xe0)]=function(){return y(function(a4,a5){return r(Reflect['get'](v(a4),v(a5)));},arguments);},a3['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(a4,a5){let a6=v(a4)[v(a5)];return r(a6);},a3['wbg']['__wbg_info_ce6bcc489c22f6f0']=function(a4){console['info'](v(a4));},a3[bg(0xe4)]['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(a4){let a5;try{a5=v(a4)instanceof ArrayBuffer;}catch(a6){a5=!0x1;}return a5;},a3['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(a4){let a5;try{a5=v(a4)instanceof Map;}catch(a6){a5=!0x1;}return a5;},a3['wbg']['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(a4){let a5;try{a5=v(a4)instanceof Uint8Array;}catch(a6){a5=!0x1;}return a5;},a3['wbg'][bg(0x118)]=function(a4){return Array['isArray'](v(a4));},a3['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(a4){return Number['isSafeInteger'](v(a4));},a3['wbg']['__wbg_iterator_27b7c8b35ab3e86b']=function(){let a4=Symbol['iterator'];return r(a4);},a3['wbg'][bg(0x116)]=function(a4){return v(a4)['length'];},a3['wbg']['__wbg_length_d45040a40c570362']=function(a4){return v(a4)['length'];},a3[bg(0xe4)]['__wbg_new_1ba21ce319a06297']=function(){return r({});},a3['wbg']['__wbg_new_25f239778d6112b9']=function(){return r([]);},a3['wbg']['__wbg_new_6421f6084cc5bc5a']=function(a4){return r(new Uint8Array(v(a4)));},a3['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return r(Error());},a3['wbg']['__wbg_new_b2db8aa2650f793a']=function(a4){return r(new Date(v(a4)));},a3['wbg'][bg(0x101)]=function(a4,a5){return r(Error(p(a4,a5)));},a3[bg(0xe4)][bg(0xdc)]=function(a4,a5){try{var a6={'a':a4,'b':a5};return r(new Promise((a7,a8)=>{let a9=a6['a'];a6['a']=0x0;try{return ne(a9,a6['b'],a7,a8);}finally{a6['a']=a9;}}));}finally{a6['a']=a6['b']=0x0;}},a3['wbg'][bg(0x105)]=function(a4,a5){return r(new Uint32Array(l(a4,a5)));},a3['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(a4,a5){return r(new Uint8Array(u(a4,a5)));},a3['wbg']['__wbg_new_no_args_cb138f77cf6151ee']=function(a4,a5){return r(Function(p(a4,a5)));},a3['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(a4,a5,a6,a7){return r(Function(p(a4,a5),p(a6,a7)));},a3['wbg']['__wbg_next_138a17bbf04e926c']=function(a4){let a5=v(a4)['next'];return r(a5);},a3['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return y(function(a4){return r(v(a4)['next']());},arguments);},a3[bg(0xe4)][bg(0xd4)]=function(){return Date['now']();},a3['wbg']['__wbg_prototypesetcall_dfe9b766cdc1f1fd']=function(a4,a5,a6){const bp=bg;Uint8Array[bp(0xf0)]['set']['call'](u(a4,a5),v(a6));},a3[bg(0xe4)]['__wbg_proxycontext_new']=function(a4){return r(V['__wrap'](a4));},a3['wbg']['__wbg_push_7d9be8f38fc13975']=function(a4,a5){return v(a4)['push'](v(a5));},a3['wbg'][bg(0xfc)]=function(a4){const bq=bg;let a5=v(a4)[bq(0x10f)];return r(a5);},a3['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(a4){queueMicrotask(v(a4));},a3['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(a4){return r(Promise['resolve'](v(a4)));},a3['wbg']['__wbg_set_3f1d0b984ed272ed']=function(a4,a5,a6){v(a4)[D(a5)]=D(a6);},a3[bg(0xe4)]['__wbg_set_781438a03c0c3c81']=function(){return y(function(a4,a5,a6){return Reflect['set'](v(a4),v(a5),v(a6));},arguments);},a3['wbg']['__wbg_set_7df433eea03a5c14']=function(a4,a5,a6){v(a4)[a5>>>0x0]=D(a6);},a3['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(a4,a5){const br=bg;let a6=v(a5)['stack'],a7=E(a6,n['__wbindgen_export'],n[br(0xef)]),a8=M;f()[br(0xd2)](a4+0x4,a8,!0x0),f()['setInt32'](a4+0x0,a7,!0x0);},a3[bg(0xe4)]['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){let a4=typeof global>'u'?null:global;return S(a4)?0x0:r(a4);},a3[bg(0xe4)]['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){let a4=typeof globalThis>'u'?null:globalThis;return S(a4)?0x0:r(a4);},a3['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){let a4=typeof self>'u'?null:self;return S(a4)?0x0:r(a4);},a3[bg(0xe4)]['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){let a4=typeof window>'u'?null:window;return S(a4)?0x0:r(a4);},a3['wbg']['__wbg_then_4f95312d68691235']=function(a4,a5){return r(v(a4)['then'](v(a5)));},a3['wbg']['__wbg_typstcompiler_new']=function(a4){return r(U['__wrap'](a4));},a3[bg(0xe4)]['__wbg_typstfontresolver_new']=function(a4){const bs=bg;return r(G[bs(0x106)](a4));},a3['wbg']['__wbg_value_57b7b035e117f7ee']=function(a4){let a5=v(a4)['value'];return r(a5);},a3[bg(0xe4)]['__wbindgen_cast_2241b6af4c4b2941']=function(a4,a5){return r(p(a4,a5));},a3['wbg']['__wbindgen_cast_3334ea73b4b28ba3']=function(a4,a5){const bt=bg;return r(C(a4,a5,n[bt(0x114)],te));},a3['wbg']['__wbindgen_cast_4625c577ab2ec9ee']=function(a4){return r(BigInt['asUintN'](0x40,a4));},a3['wbg'][bg(0xf7)]=function(a4){return r(a4);},a3['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(a4){return r(a4);},a3['wbg']['__wbindgen_object_clone_ref']=function(a4){return r(v(a4));},a3['wbg'][bg(0xe1)]=function(a4){D(a4);},a3;}function Y(a3,a4){return n=a3['exports'],X['__wbindgen_wasm_module']=a4,d=null,m=null,g=null,n;}function oe(a3){const bu=aw;if(n!==void 0x0)return n;a3!==void 0x0&&(Object[bu(0xe9)](a3)===Object['prototype']?{module:a3}=a3:console['warn'](bu(0xee)));let a4=J();return a3 instanceof WebAssembly['Module']||(a3=new WebAssembly['Module'](a3)),Y(new WebAssembly['Instance'](a3,a4),a3);}function X(a3){const bv=aw;return Z[bv(0x119)](this,arguments);}function a1(a,b){a=a-0xca;const c=a0();let d=c[a];return d;}function Z(){return Z=t(function*(a3){const bw=a1;if(n!==void 0x0)return n;a3!==void 0x0&&(Object['getPrototypeOf'](a3)===Object['prototype']?{module_or_path:a3}=a3:console['warn'](bw(0x117))),a3===void 0x0&&(a3=Q('typst_ts_web_compiler_bg.wasm',import.meta.url));let a4=J();(typeof a3=='string'||typeof Request=='function'&&a3 instanceof Request||typeof URL=='function'&&a3 instanceof URL)&&(a3=fetch(a3));let {instance:a5,module:a6}=yield ae(yield a3,a4);return Y(a5,a6);}),Z['apply'](this,arguments);}var Q=(function(){var a3=t(function*(a4,a5){const bx=a1;throw Error(bx(0xd6)+a4+'\x20'+a5);});return function(a4,a5){return a3['apply'](this,arguments);};}());function $(a3){Q=a3;}a2();var se=X,ce=(function(){var a3=t(function*(a4,a5){let {readFileSync:a6}=yield Function('m','return\x20import(m)')('fs');return yield a6(new URL(a4,a5))['buffer'];});return function(a4,a5){return a3['apply'](this,arguments);};}());typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null&&$(ce);export{B as IncrServer,V as ProxyContext,H as TypstCompileWorld,U as TypstCompiler,W as TypstCompilerBuilder,G as TypstFontResolver,K as TypstFontResolverBuilder,se as default,re as get_font_info,oe as initSync,$ as setImportWasmModule};
|
package/dist/components/wasm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var J=f;(function(j,k){var E=f,m=j();while(!![]){try{var p=parseInt(E(0x96))/0x1*(-parseInt(E(0x97))/0x2)+-parseInt(E(0x8f))/0x3+parseInt(E(0x91))/0x4*(-parseInt(E(0xa1))/0x5)+-parseInt(E(0x8e))/0x6+parseInt(E(0x92))/0x7+parseInt(E(0x90))/0x8+-parseInt(E(0x9c))/0x9*(parseInt(E(0x94))/0xa);if(p===k)break;else m['push'](m['shift']());}catch(q){m['push'](m['shift']());}}}(b,0x6c9be));import{n as g,t}from'./defineProperty.js';function b(){var Q=['5FxNwVv','function','add_raw_font','latelyBuild','GET','build','2874762QKtQch','264852nXADyl','2594856rccWFu','171668YXrHRo','6023759HzWSNg','response','10bdFhtj','fetcher','11LLTLrK','8770wzuRqs','arrayBuffer','finally','withCache','PIXEL_PER_PT','733221ZJpbkg','apply','text/plain;\x20charset=x-user-defined','initFn\x20is\x20not\x20a\x20function','wasmBin'];b=function(){return Q;};return b();}import{n,t as h}from'./asyncToGenerator.js';g(),n();var i=class{constructor(){t(this,'loadedFonts',new Set()),t(this,'fetcher',fetch);}['setFetcher'](j){this['fetcher']=j;}['loadFonts'](j,k){var m=this;return h(function*(){var F=f;let p=Function('m','return\x20import(m)'),q=m[F(0x95)]||(m['fetcher']=yield h(function*(){var G=F;let {fetchBuilder:x,FileSystemCache:y}=yield p('node-fetch-cache'),z=new y({'cacheDirectory':'.cache/typst/fonts'}),A=x[G(0x9a)](z);return function(B,C){var H=G;let D=setTimeout(()=>{console['warn']('font\x20fetching\x20is\x20stucking:',B);},0x3a98);return A(B,C)[H(0x99)](()=>{clearTimeout(D);});};})()),v=k['filter'](x=>x instanceof Uint8Array||typeof x=='object'&&'info'in x?!0x0:m['loadedFonts']['has'](x)?!0x1:(m['loadedFonts']['add'](x),!0x0)),w=yield Promise['all'](v['map']((function(){var x=h(function*(y){var I=f;if(y instanceof Uint8Array){yield j[I(0xa3)](y);return;}if(typeof y=='object'&&'info'in y){yield j['add_lazy_font'](y,'blob'in y?y['blob']:s(y));return;}return new Uint8Array(yield(yield q(y))[I(0x98)]());});return function(y){return x['apply'](this,arguments);};}())));for(let x of w)x&&(yield j['add_raw_font'](x));})();}[J(0x8d)](j,k,m){var p=this;return h(function*(){var K=f,q;let v={'ref':p,'builder':k,'hooks':m};for(let w of(q=j==null?void 0x0:j['beforeBuild'])==null?[]:q)yield w(void 0x0,v);return m['latelyBuild']&&m[K(0xa4)](v),yield k[K(0x8d)]();})();}};function f(a,c){a=a-0x8c;var d=b();var e=d[a];return e;}function a(j,k,m,p){return o['apply'](this,arguments);}function o(){var L=J;return o=h(function*(j,k,m,p){var q;return yield k['init'](j==null||(q=j['getModule'])==null?void 0x0:q['call'](j)),yield new i()['build'](j,new m(),p);}),o[L(0x9d)](this,arguments);}function s(j){return()=>{var M=f;let k=new XMLHttpRequest();return k['overrideMimeType'](M(0x9e)),k['open'](M(0x8c),j['url'],!0x1),k['send'](null),k['status']===0xc8&&(k['response']instanceof String||typeof k[M(0x93)]=='string')?Uint8Array['from'](k['response'],m=>m['charCodeAt'](0x0)):new Uint8Array();};}var c=Symbol['for']('reflexo-obj'),l;(function(j){var N=J;j[j['PIXEL_PER_PT']=0x3]=N(0x9b);}(l||(l={})),g(),n());var u=j=>{let k=!0x1,m;return()=>k?m:(k=!0x0,m=j());},d=class{constructor(j){var O=J,k=this;if(t(this,'wasmBin',void 0x0),t(this,'initOnce',void 0x0),typeof j!=O(0xa2))throw Error(O(0x9f));this['initOnce']=u(h(function*(){yield j(k['wasmBin']);}));}['init'](j){var k=this;return h(function*(){var P=f;k[P(0xa0)]=j,yield k['initOnce']();})();}};export{s as a,a as i,l as n,c as r,d as t};
|