@flyfish-group/file-viewer 1.0.23 → 1.0.25
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 +390 -0
- package/README.md +83 -34
- package/dist/components/3MFLoader.js +1 -1
- package/dist/components/AMFLoader.js +1 -1
- package/dist/components/ArchiveViewer.js +314 -139
- 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/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 +5839 -5668
- package/dist/components/PptxRender.js +2356 -2332
- package/dist/components/STLLoader.js +1 -1
- package/dist/components/TDSLoader.js +1 -1
- package/dist/components/TypstViewer.js +320 -300
- package/dist/components/USDLoader.js +1 -1
- package/dist/components/UmdViewer.js +2 -2
- 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_commonjs-proxy.js +1 -1
- package/dist/components/_commonjs-dynamic-modules.js +1 -1
- package/dist/components/_commonjsHelpers.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/az-AZ-76LH7QW2.js +1 -1
- package/dist/components/bash.js +1 -0
- 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/cfb.js +1 -1
- package/dist/components/channel.js +1 -1
- package/dist/components/chunk-2J33WTMH.js +1 -1
- package/dist/components/chunk-4BX2VUAB.js +1 -1
- package/dist/components/chunk-55IACEB6.js +1 -1
- package/dist/components/chunk-727SXJPM.js +1 -1
- package/dist/components/chunk-AQP2D5EJ.js +1 -1
- package/dist/components/chunk-FMBD7UC4.js +1 -1
- package/dist/components/chunk-ND2GUHAM.js +1 -1
- package/dist/components/chunk-QZHKN3VN.js +1 -1
- package/dist/components/classDiagram-4FO5ZUOK.js +1 -1
- package/dist/components/classDiagram-v2-Q7XG4LA2.js +1 -1
- package/dist/components/core.js +1 -0
- package/dist/components/cose-bilkent-S5V4N54A.js +1 -1
- package/dist/components/cpp.js +1 -0
- package/dist/components/cs-CZ-2BRQDIVT.js +1 -1
- package/dist/components/csharp.js +1 -0
- package/dist/components/css.js +1 -0
- 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/de-DE-XR44H4JA.js +1 -1
- package/dist/components/defaultLocale.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 -0
- package/dist/components/directory-open-01563666.js +1 -1
- package/dist/components/directory-open-4ed118d0.js +1 -1
- package/dist/components/docx-preview.js +2 -2
- package/dist/components/el-GR-BZB4AONW.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 -0
- package/dist/components/graph.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/index10.js +1 -1
- package/dist/components/index11.js +1 -1
- package/dist/components/index12.js +1 -1
- package/dist/components/index13.js +1 -1
- package/dist/components/index14.js +1 -1
- package/dist/components/index15.js +1 -1
- package/dist/components/index16.js +1 -1
- package/dist/components/index17.js +1 -1
- package/dist/components/index18.js +1 -1
- package/dist/components/index19.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index20.js +1 -1
- package/dist/components/index21.js +1 -1
- package/dist/components/index22.js +2 -2
- package/dist/components/index23.js +1 -1
- package/dist/components/index24.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/index5.js +1 -1
- package/dist/components/index6.js +1 -1
- package/dist/components/index7.js +1 -1
- package/dist/components/index8.js +1 -1
- package/dist/components/index9.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 -0
- 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 -0
- package/dist/components/javascript.js +1 -0
- package/dist/components/journeyDiagram-JHISSGLW.js +1 -1
- package/dist/components/json.js +1 -0
- 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/layout.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 -0
- package/dist/components/mermaid-parser.core.js +2 -2
- package/dist/components/mindmap-definition-RKZ34NQL.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/oc-FR-POXYY2M6.js +1 -1
- package/dist/components/ofd.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/percentages-BXMCSKIN.js +1 -1
- package/dist/components/php.js +1 -0
- 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/printLayout.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 -0
- package/dist/components/quadrantDiagram-W4KKPZXB.js +1 -1
- package/dist/components/radar-GUYGQ44K.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 -0
- package/dist/components/sankeyDiagram-5OEKKPKP.js +1 -1
- package/dist/components/sequenceDiagram-3UESZ5HK.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/sql.js +1 -0
- 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/th-TH-HPSO5L25.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/transform.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 -0
- package/dist/components/uk-UA-QMV73CPH.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/worker-ref.js +1 -1
- package/dist/components/xml.js +1 -0
- package/dist/components/xychartDiagram-2RQKCTM6.js +1 -1
- package/dist/components/yaml.js +1 -0
- 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/index.d.ts +248 -11
- package/dist/index.mjs +1 -1
- package/dist/style.css +3 -12
- package/dist/wasm/cad/dwg-worker.js +24 -349
- package/package.json +4 -2
- package/dist/wasm/cad/DwgWorker-CuZJ5EUe.js +0 -349
- package/dist/wasm/cad/index-C365l3i9.js +0 -4161
|
@@ -1 +1 @@
|
|
|
1
|
-
const aj=d;(function(e,f){const ac=d,n=e();while(!![]){try{const r=-parseInt(ac(0x18f))/0x1+parseInt(ac(0x16b))/0x2+-parseInt(ac(0x173))/0x3*(-parseInt(ac(0x15e))/0x4)+parseInt(ac(0x1a4))/0x5*(parseInt(ac(0x1c6))/0x6)+parseInt(ac(0x19f))/0x7+parseInt(ac(0x1cf))/0x8+-parseInt(ac(0x17c))/0x9;if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0x6d69d));let o;function w(e){O===x['length']&&x['push'](x['length']+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){const ad=d;if(!(e instanceof f))throw new Error('expected\x20instance\x20of\x20'+f[ad(0x160)]);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function G(f){const ae=d,v=typeof f;if(v=='number'||v=='boolean'||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?'Symbol':'Symbol('+a0+')';}if(v==ae(0x1a9)){const a1=f['name'];return typeof a1=='string'&&a1['length']>0x0?'Function('+a1+')':ae(0x16d);}if(Array['isArray'](f)){const a2=f['length'];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString['call'](f));let S;if(y&&y['length']>0x1)S=y[0x1];else return toString['call'](f);if(S=='Object')try{return'Object('+JSON['stringify'](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f[ae(0x167)]+'\x0a'+f[ae(0x14d)]:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const af=d;return(R===null||R['buffer']['detached']===!0x0||R['buffer']['detached']===void 0x0&&R['buffer']!==o['memory']['buffer'])&&(R=new DataView(o['memory'][af(0x1ac)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){const ag=d;return(T===null||T[ag(0x180)]===0x0)&&(T=new Uint32Array(o['memory']['buffer'])),T;}let W=null;function C(){const ah=d;return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o['memory'][ah(0x1ac)])),W;}function i(e){return x[e];}function b(f,r){const ai=d;try{return f['apply'](this,r);}catch(u){o[ai(0x15c)](w(u));}}let x=new Array(0x80)[aj(0x18c)](void 0x0);x['push'](void 0x0,null,!0x0,!0x1);let O=x['length'];function l(e){return e==null;}function s(f,u){try{return f['apply'](this,u);}catch(v){let y=(function(){try{return v instanceof Error?v['message']+'\x0a\x0aStack:\x0a'+v['stack']:v['toString']();}catch{return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function V(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{const ak=d;S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0[ak(0x17e)]();}};return a0['_wbg_cb_unref']=()=>{const al=d;--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P[al(0x168)](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0['_wbg_cb_unref']=()=>{const am=d;--S['cnt']===0x0&&(S[am(0x169)](S['a'],S['b']),S['a']=0x0,P[am(0x168)](S));},P['register'](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const u=r(f['length']*0x1,0x1)>>>0x0;return C()['set'](f,u/0x1),h=f['length'],u;}function X(f,u){const v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f['length'];S++)y['setUint32'](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const an=aj;if(typeof v!=an(0x151))throw new Error(an(0x19a)+typeof v);if(S===void 0x0){const a4=j['encode'](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4['length'])[an(0x1aa)](a4),h=a4['length'],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v[an(0x17f)](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()[an(0x199)](a1+a3,a1+a0),a8=j['encodeInto'](v,a7);if(a8[an(0x195)]!==v['length'])throw new Error('failed\x20to\x20pass\x20whole\x20string');a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}let U=new TextDecoder(aj(0x1a6),{'ignoreBOM':!0x0,'fatal':!0x0});U['decode']();const mt=0x7ff00000;let H=0x0;function ht(e,f){const ao=aj;return H+=f,H>=mt&&(U=new TextDecoder(ao(0x1a6),{'ignoreBOM':!0x0,'fatal':!0x0}),U['decode'](),H=f),U[ao(0x1a7)](C()[ao(0x199)](e,e+f));}const j=new TextEncoder();aj(0x1b5)in j||(j['encodeInto']=function(f,r){const ap=aj,u=j['encode'](f);return r['set'](u),{'read':f[ap(0x185)],'written':u['length']};});let h=0x0;function yt(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1056'](f,r,w(u));}function vt(e,f){const aq=aj;c(e),c(f),o[aq(0x197)](e,f);}function Et(f,r,u){const ar=aj;c(f),c(r),o[ar(0x19c)](f,r,w(u));}function It(f,u,v,y){c(f),c(u),o['__wasm_bindgen_func_elem_3555'](f,u,w(v),w(y));}const Y=['nonzero','evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_createsessionoptions_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pageinfo_free'](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[aj(0x1ba)](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersession_free'](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersessionoptions_free'](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[aj(0x191)](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrendererbuilder_free'](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstworker_free'](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_workerbridge_free'](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const as=aj,e=this[as(0x150)];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const e=o['createsessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}set['format'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['createsessionoptions_set_format'](this['__wbg_ptr'],n,u);}set['artifact_content'](f){const au=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=$(f,o['__wbindgen_export']),u=h;o[au(0x1ab)](this['__wbg_ptr'],n,u);}}Symbol[aj(0x1ce)]&&(J['prototype'][Symbol[aj(0x1ce)]]=J[aj(0x152)]['free']);class L{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const av=aj;f=f>>>0x0;const n=Object['create'](L[av(0x152)]);return n['__wbg_ptr']=f,Q['register'](n,n[av(0x150)],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const aw=aj,e=this[aw(0x18e)]();o['__wbg_incrdomdocclient_free'](e,0x0);}['bind_functions'](e){const ax=aj;if(this['__wbg_ptr']==0x0)throw new Error(ax(0x170));c(this['__wbg_ptr']),o['incrdomdocclient_bind_functions'](this['__wbg_ptr'],w(e));}[aj(0x177)](f,n,u,v){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const y=o['incrdomdocclient_relayout'](this['__wbg_ptr'],f,n,u,v);return m(y);}['need_repaint'](n,S,a0,a1,a2,a3){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_need_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['repaint'](n,S,a0,a1,a2,a3){const ay=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[ay(0x150)]),c(n),c(a3),o['incrdomdocclient_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(L['prototype'][Symbol['dispose']]=L['prototype']['free']);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const az=aj;f=f>>>0x0;const n=Object[az(0x1c9)](F['prototype']);return n['__wbg_ptr']=f,Z['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aA=aj,e=this[aA(0x150)];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const aB=aj,e=this['__destroy_into_raw']();o[aB(0x155)](e,0x0);}get['page_off'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get['width_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_width_pt'](this['__wbg_ptr']);}get['height_pt'](){const aC=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aC(0x17d)](this['__wbg_ptr']);}}Symbol[aj(0x1ce)]&&(F['prototype'][Symbol['dispose']]=F['prototype']['free']);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aD=aj;f=f>>>0x0;const n=Object['create'](M[aD(0x152)]);return n['__wbg_ptr']=f,tt['register'](n,n['__wbg_ptr'],n),n;}[aj(0x18e)](){const aE=aj,e=this['__wbg_ptr'];return this[aE(0x150)]=0x0,tt['unregister'](this),e;}['free'](){const aF=aj,e=this['__destroy_into_raw']();o[aF(0x1bb)](e,0x0);}get['page_count'](){const aG=aj;if(this[aG(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o[aG(0x17b)](this['__wbg_ptr'])>>>0x0;}[aj(0x1cd)](f){const aH=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aH(0x150)]),c(f);const n=o['pagesinfo_page_by_number'](this['__wbg_ptr'],f);return n===0x0?void 0x0:F['__wrap'](n);}[aj(0x165)](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page'](this['__wbg_ptr'],f);return F['__wrap'](n);}['width'](){const aI=aj;if(this[aI(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_width'](this[aI(0x150)]);}['height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_height'](this['__wbg_ptr']);}}Symbol[aj(0x1ce)]&&(M[aj(0x152)][Symbol['dispose']]=M['prototype'][aj(0x193)]);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const aJ=aj,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,et[aJ(0x168)](this),e;}['free'](){const aK=aj,e=this[aK(0x18e)]();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const e=o['renderpageimageoptions_new']();return this['__wbg_ptr']=e>>>0x0,et['register'](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['renderpageimageoptions_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aL=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_pixel_per_pt'](this[aL(0x150)],l(e)?0x100000001:Math[aL(0x1c4)](e));}get['background_color'](){const aM=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()[aM(0x182)](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[aj(0x179)](f){const aN=aj;if(this['__wbg_ptr']==0x0)throw new Error(aN(0x170));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aN(0x1b7)],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_background_color'](this[aN(0x150)],n,u);}get[aj(0x183)](){const aO=aj;if(this['__wbg_ptr']==0x0)throw new Error(aO(0x170));return c(this['__wbg_ptr']),o['renderpageimageoptions_page_off'](this['__wbg_ptr'])>>>0x0;}set['page_off'](e){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aP=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_cache_key'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[aP(0x159)](),o[aP(0x190)](f,n*0x1,0x1)),v;}finally{o[aP(0x1a3)](0x10);}}set['cache_key'](f){const aQ=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aQ(0x150)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[aQ(0x19e)](this['__wbg_ptr'],n,u);}get['data_selection'](){const aR=aj;if(this['__wbg_ptr']==0x0)throw new Error(aR(0x170));c(this['__wbg_ptr']);const e=o[aR(0x15a)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){const aS=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['renderpageimageoptions_set_data_selection'](this[aS(0x150)],l(e)?0x100000001:e>>>0x0);}}Symbol['dispose']&&(z['prototype'][Symbol['dispose']]=z['prototype']['free']);class k{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const aT=aj;f=f>>>0x0;const n=Object['create'](k['prototype']);return n['__wbg_ptr']=f,nt[aT(0x1b4)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aU=aj,e=this['__wbg_ptr'];return this[aU(0x150)]=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}['render_in_window'](n,v,S,a0){const aV=aj;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersession_render_in_window'](a5,this[aV(0x150)],n,v,S,a0);var a3=g()[aV(0x182)](a5+0x4*0x0,!0x0),a4=g()['getInt32'](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aW=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this[aW(0x150)],l(e)?0x100000001:Math['fround'](e));}get['background_color'](){const aX=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(aX(0x170));const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o[aX(0x1d3)](u,this['__wbg_ptr']);var f=g()[aX(0x182)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set[aj(0x179)](f){const aY=aj;if(this['__wbg_ptr']==0x0)throw new Error(aY(0x170));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aY(0x1b7)],o[aY(0x157)]),u=h;o['rendersession_set_background_color'](this['__wbg_ptr'],n,u);}get['pages_info'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pages_info'](this['__wbg_ptr']);return M['__wrap'](e);}get['doc_width'](){const aZ=aj;if(this['__wbg_ptr']==0x0)throw new Error(aZ(0x170));return c(this['__wbg_ptr']),o['rendersession_doc_width'](this['__wbg_ptr']);}get['doc_height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](n){const b0=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(b0(0x170));const a2=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a3=lt(n,o['__wbindgen_export']),a4=h;o['rendersession_source_span'](a2,this['__wbg_ptr'],a3,a4);var v=g()['getInt32'](a2+0x4*0x0,!0x0),S=g()['getInt32'](a2+0x4*0x1,!0x0),a0=g()['getInt32'](a2+0x4*0x2,!0x0),a1=g()[b0(0x182)](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)[b0(0x159)](),o['__wbindgen_export4'](v,S*0x1,0x1)),a5;}finally{o[b0(0x1a3)](0x10);}}}function a(){const c2=['byteLength','rendersession_pixel_per_pt','getInt32','page_off','__wbg_new_no_args_cb138f77cf6151ee','length','__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5','pixel_per_pt','__wrap','rendersessionoptions_set_format','__wbg_new_df1173567d5ff028','__wbg_width_f13d2e86324fc226','fill','__wbg_set_globalCompositeOperation_7e16c72877ba5f86','__destroy_into_raw','294308ZzYkfi','__wbindgen_export4','__wbg_typstrenderer_free','drawImage','free','log','read','onload','__wasm_bindgen_func_elem_1035','typstrenderer_manipulate_data','subarray','expected\x20a\x20string\x20argument,\x20found\x20','__wbg_drawImage_e2012c2a2d434ee2','__wasm_bindgen_func_elem_1034','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','renderpageimageoptions_set_cache_key','3794301DtBsYh','typstrenderer_create_worker','measureText','clip','__wbindgen_add_to_stack_pointer','3394500lErkrC','__wbg_set_lineCap_74b37c7ff968f854','utf-8','decode','transferToImageBitmap','function','set','createsessionoptions_set_artifact_content','buffer','typst_ts_renderer_bg.wasm','type','__wbg_save_131c8dc648f702b6','format','__wbg_set_7df433eea03a5c14','__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc','call','register','encodeInto','__wbg___wbindgen_throw_dd24417ed36fc46e','__wbindgen_export','__wbg_new_9468dd6e5df427f6','__wbg_get_af9dab7e9603ea93','__wbg_renderpageimageoptions_free','__wbg_pagesinfo_free','__wbg_call_abb4ff46ce38be40','exports','render_page_to_canvas','instantiate','width','wbg','__wbg_content_ad90fa08b8c037c5','typstrendererbuilder_add_raw_font','fround','typstrenderer_svg_data','6fKzGxR','__wbg_set_lineDashOffset_f032b4e2a273a2f5','__wbg_nextElementSibling_c745ee48314963c0','create','typstrendererbuilder_build','typstrenderer_load_glyph_pack','renderer_build_info','page_by_number','dispose','2995952EERsia','__wbg_set_lineDashOffset_85f21a63ddf34d2c','__wbg_then_4f95312d68691235','__wbg_set_lineJoin_196c6ac02fd494c3','rendersession_background_color','globalCompositeOperation','stack','__wbg_firstElementChild_54d515b19cee5ae7','setLineDash','__wbg_ptr','string','prototype','nextElementSibling','__wbg_setLineDash_7e3aad159aa2710c','__wbg_pageinfo_free','__wbg_globalCompositeOperation_d52c6e6666e4be00','__wbindgen_export2','fillRect','slice','renderpageimageoptions_data_selection','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','__wbindgen_export3','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','12XYOLeY','__wbg_set_onload_5e2862e3453854de','name','lineCap','clearRect','__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec','setInt32','page','__wbg_set_onerror_e7e40c62a55a0770','message','unregister','dtor','return\x20import(m)','1474272oYaCVa','height','Function','getContext','__wbg_instanceof_Promise_eca6c43a2610558d','Attempt\x20to\x20use\x20a\x20moved\x20value','__wbg_width_c3f96f2ca7ab208d','versions','680583gRKMAn','document','removeProperty','__wbg_typstworker_free','relayout','__wbg_queueMicrotask_fca69f5bfad613a5','background_color','__wbg_new_2884ddbcda091bc1','pagesinfo_page_count','20436219iQdXbd','pageinfo_height_pt','_wbg_cb_unref','charCodeAt'];a=function(){return c2;};return a();}Symbol['dispose']&&(k['prototype'][Symbol['dispose']]=k[aj(0x152)][aj(0x193)]);class it{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersessionoptions_free'](e,0x0);}constructor(){const e=o['rendersessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,rt['register'](this,this['__wbg_ptr'],this),this;}get[aj(0x187)](){const b1=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o[b1(0x181)](this[b1(0x150)]);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const b2=aj;if(this['__wbg_ptr']==0x0)throw new Error(b2(0x170));c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math['fround'](e));}get[aj(0x179)](){const b3=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(b3(0x170));const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this[b3(0x150)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){const b4=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[b4(0x150)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this['__wbg_ptr'],n,u);}get[aj(0x1b0)](){const b5=aj;try{if(this[b5(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[b5(0x1a3)](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()[b5(0x182)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o[b5(0x190)](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){const b6=aj;if(this[b6(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o[b6(0x189)](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it[aj(0x152)][Symbol['dispose']]=it['prototype']['free']);class D{static[aj(0x188)](f){const b7=aj;f=f>>>0x0;const n=Object['create'](D['prototype']);return n['__wbg_ptr']=f,N[b7(0x1b4)](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,N['unregister'](this),e;}[aj(0x193)](){const e=this['__destroy_into_raw']();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const b8=aj,e=o['typstrenderer_new']();return this['__wbg_ptr']=e>>>0x0,N[b8(0x1b4)](this,this[b8(0x150)],this),this;}['create_session'](f){const b9=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const S=o[b9(0x1a3)](-0x10);c(this['__wbg_ptr']);let a0=0x0;if(!l(f)){if(A(f,J),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a0=f['__destroy_into_raw']();}o['typstrenderer_create_session'](S,this['__wbg_ptr'],a0);var n=g()[b9(0x182)](S+0x4*0x0,!0x0),v=g()[b9(0x182)](S+0x4*0x1,!0x0),y=g()[b9(0x182)](S+0x4*0x2,!0x0);if(y)throw m(v);return k[b9(0x188)](n);}finally{o[b9(0x1a3)](0x10);}}['reset'](f){const ba=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(ba(0x170));const v=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this[ba(0x150)]),A(f,k),f['__wbg_ptr']===0x0)throw new Error(ba(0x170));o['typstrenderer_reset'](v,this['__wbg_ptr'],f['__wbg_ptr']);var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['manipulate_data'](n,S,a0){const bb=aj;try{if(this[bb(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a4=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a5=h,a6=$(a0,o['__wbindgen_export']),a7=h;o[bb(0x198)](a3,this['__wbg_ptr'],n[bb(0x150)],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const bc=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bc(0x150)]);const a4=$(n,o['__wbindgen_export']),a5=h,a6=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a7=h;o['typstrenderer_session_from_artifact'](a3,this['__wbg_ptr'],a4,a5,a6,a7);var a0=g()[bc(0x182)](a3+0x4*0x0,!0x0),a1=g()[bc(0x182)](a3+0x4*0x1,!0x0),a2=g()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k['__wrap'](a0);}finally{o[bc(0x1a3)](0x10);}}['load_glyph_pack'](f){const bd=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[bd(0x150)]),o[bd(0x1cb)](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const be=aj;let a3,a4;try{if(this['__wbg_ptr']==0x0)throw new Error(be(0x170));const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg_diff'](a7,this['__wbg_ptr'],n['__wbg_ptr'],S,a0,a1,a2);var a5=g()['getInt32'](a7+0x4*0x0,!0x0),a6=g()['getInt32'](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const bf=aj;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a9=o[bf(0x1a3)](-0x10);if(c(this['__wbg_ptr']),A(n,k),n[bf(0x150)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o[bf(0x1c5)](a9,this[bf(0x150)],n['__wbg_ptr'],l(a0)?0x100000001:a0>>>0x0);var a3=g()[bf(0x182)](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()[bf(0x182)](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}['get_customs'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this['__wbg_ptr'],f['__wbg_ptr']);return m(n);}['render_svg'](f,n){const bg=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a0=o[bg(0x1a3)](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o['typstrenderer_render_svg'](a0,this['__wbg_ptr'],f['__wbg_ptr'],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()['getInt32'](a0+0x4*0x1,!0x0),S=g()['getInt32'](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](f){const bh=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o[bh(0x1a0)](this['__wbg_ptr'],w(f));return m(n);}['create_worker_bridge'](){const bi=aj;try{if(this['__wbg_ptr']==0x0)throw new Error(bi(0x170));const v=this['__destroy_into_raw'](),y=o['__wbindgen_add_to_stack_pointer'](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()['getInt32'](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()[bi(0x182)](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[aj(0x1be)](f,n,u){const bj=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(bj(0x170));let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');v=u['__destroy_into_raw']();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f[bj(0x150)],w(n),v);return m(y);}['mount_dom'](f,n){const bk=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this[bk(0x150)],f[bk(0x150)],w(n));return m(u);}}Symbol['dispose']&&(D['prototype'][Symbol[aj(0x1ce)]]=D[aj(0x152)]['free']);class st{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,_t['unregister'](this),e;}['free'](){const bl=aj,e=this[bl(0x18e)]();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bm=aj;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o['typstrendererbuilder_new'](v);var f=g()['getInt32'](v+0x4*0x0,!0x0),n=g()['getInt32'](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this['__wbg_ptr']=f>>>0x0,_t['register'](this,this[bm(0x150)],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const bn=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const f=this[bn(0x18e)]();c(f);const n=o[bn(0x1ca)](f);return m(n);}['add_glyph_pack'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this['__wbg_ptr'],w(f));return m(n);}['add_raw_font'](f){const bo=aj;if(this[bo(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o[bo(0x1c3)](this['__wbg_ptr'],w(f));return m(n);}['add_lazy_font'](f,n){const bp=aj;if(this[bp(0x150)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const u=o['typstrendererbuilder_add_lazy_font'](this[bp(0x150)],w(f),w(n));return m(u);}}Symbol['dispose']&&(st['prototype'][Symbol['dispose']]=st[aj(0x152)]['free']);class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,kt['unregister'](this),e;}['free'](){const bq=aj,e=this['__destroy_into_raw']();o[bq(0x176)](e,0x0);}['manipulate_data'](n,v){const br=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a1=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[br(0x150)]);const a2=I(n,o['__wbindgen_export'],o[br(0x157)]),a3=h;o['typstworker_manipulate_data'](a1,this['__wbg_ptr'],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()[br(0x182)](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o[br(0x1a3)](0x10);}}['get_pages_info'](){const bs=aj;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[bs(0x150)]);const e=o['typstworker_get_pages_info'](this[bs(0x150)]);return m(e);}['render_canvas'](n,a0,a1){const bu=aj;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a6=$(n,o['__wbindgen_export']),a7=h,a8=X(a0,o['__wbindgen_export']),a9=h,aa=X(a1,o['__wbindgen_export']),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()['getInt32'](a5+0x4*0x1,!0x0),a4=g()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o[bu(0x1a3)](0x10);}}}Symbol['dispose']&&(at['prototype'][Symbol[aj(0x1ce)]]=at[aj(0x152)]['free']);class B{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[aj(0x188)](f){const bv=aj;f=f>>>0x0;const n=Object['create'](B[bv(0x152)]);return n['__wbg_ptr']=f,ot['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ot['unregister'](this),e;}[aj(0x193)](){const e=this['__destroy_into_raw']();o['__wbg_workerbridge_free'](e,0x0);}}Symbol[aj(0x1ce)]&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);function Ft(){const bw=aj,e=o[bw(0x1cc)]();return m(e);}const At=new Set(['basic','cors','default']);async function xt(f,u){const bx=aj;if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']==bx(0x1a9))try{return await WebAssembly['instantiateStreaming'](f,u);}catch(y){if(f['ok']&&At['has'](f['type'])&&f['headers']['get']('Content-Type')!=='application/wasm')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',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly[bx(0x1bf)](v,u);}else{const S=await WebAssembly[bx(0x1bf)](f,u);return S instanceof WebAssembly['Instance']?{'instance':S,'module':f}:S;}}function ut(){const bA=aj,e={};return e['wbg']={},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(f,u){const by=d,v=G(i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()[by(0x164)](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const bz=d,r=typeof i(f)==bz(0x1a9);return E(r),r;},e[bA(0x1c1)]['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg'][bA(0x15d)]=function(f,u){const v=i(f)===i(u);return E(v),v;},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(f,v){const y=i(v),S=typeof y=='string'?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a1=h;g()['setInt32'](f+0x4*0x1,a1,!0x0),g()['setInt32'](f+0x4*0x0,a0,!0x0);},e['wbg'][bA(0x1b6)]=function(f,r){throw new Error(p(f,r));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e['wbg']['__wbg_appendChild_7465eba84213c75f']=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return b(function(f,v,y,S,a0){const a1=i(f)['call'](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e['wbg'][bA(0x1bc)]=function(){return b(function(f,u){const bB=d,v=i(f)[bB(0x1b3)](i(u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_call_c8baa5c5e72d274e']=function(){return b(function(f,u,v,y){const bC=d,S=i(f)[bC(0x1b3)](i(u),i(v),i(y));return w(S);},arguments);},e['wbg']['__wbg_clearRect_c2909c2f38887f82']=function(){return s(function(f,u,v,y,S){const bD=d;i(f)[bD(0x162)](u,v,y,S);},arguments);},e['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const r=i(f)['clientWidth'];return c(r),r;},arguments);},e['wbg']['__wbg_clip_35de02bb25d222d9']=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg']['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){const bE=d;i(f)[bE(0x1a2)](i(r));},arguments);},e['wbg']['__wbg_cloneNode_c9c45b24b171a776']=function(){return b(function(f){const r=i(f)['cloneNode']();return w(r);},arguments);},e['wbg'][bA(0x1c2)]=function(){return s(function(f){const r=i(f)['content'];return w(r);},arguments);},e['wbg']['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e[bA(0x1c1)]['__wbg_createImageBitmap_15b94d7a7277d0be']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const bF=d,v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bF(0x164)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_document_5b745e82ba551ca5']=function(){return s(function(f){const bG=d,r=i(f)[bG(0x174)];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_6949f7679b2a9758']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c2aacfe3133aedb7']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[bA(0x1c1)][bA(0x19b)]=function(){return b(function(f,v,y,S,a0,a1){const bH=d;i(f)[bH(0x192)](i(v),y,S,a0,a1);},arguments);},e[bA(0x1c1)]['__wbg_error_7534b8e9a36f1ab4']=function(){return s(function(f,u){let v,y;try{v=f,y=u,console['error'](p(f,u));}finally{o['__wbindgen_export4'](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){const bI=d;i(f)[bI(0x158)](u,v,y,S);},arguments);},e[bA(0x1c1)]['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg']['__wbg_fill_f1043be5324533f3']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e['wbg'][bA(0x14e)]=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_getAttribute_80900eec94cb3636']=function(){return s(function(v,y,S,a0){const a1=i(y)['getAttribute'](p(S,a0));var a2=l(a1)?0x0:I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_getContext_01f42b234e833f0a']=function(){return b(function(f,u,v){const bJ=d,y=i(f)[bJ(0x16e)](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg'][bA(0x1b9)]=function(){return b(function(f,u){const v=Reflect['get'](i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bK=d,v=i(u)['globalCompositeOperation'],y=I(v,o[bK(0x1b7)],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bK(0x164)](f+0x4*0x0,y,!0x0);},arguments);},e[bA(0x1c1)][bA(0x156)]=function(){return b(function(f,u){const bL=d,v=i(u)[bL(0x1d4)],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_height_3a0b31e52a5b7f17']=function(){return s(function(f){const bM=d,r=i(f)[bM(0x16c)];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x1b2)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_ImageBitmap_e44697c70dffc0fe']=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x186)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][bA(0x16f)]=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const r=i(f)['lastElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_length_22ac23eaec9d8053']=function(){return s(function(f){const r=i(f)['length'];return c(r),r;},arguments);},e['wbg']['__wbg_log_1d990106d99dacb7']=function(){return s(function(f){const bN=d;console[bN(0x194)](i(f));},arguments);},e['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const bO=d,y=i(f)[bO(0x1a1)](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg'][bA(0x17a)]=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e[bA(0x1c1)][bA(0x1b8)]=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e['wbg'][bA(0x18a)]=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e['wbg'][bA(0x184)]=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e[bA(0x1c1)]['__wbg_new_with_length_aa5eaf41d35235e5']=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e['wbg']['__wbg_new_with_path_string_3aea637e78135c46']=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e[bA(0x1c1)][bA(0x163)]=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e['wbg'][bA(0x1c8)]=function(){return s(function(f){const bP=d,r=i(f)[bP(0x153)];return l(r)?0x0:w(r);},arguments);},e[bA(0x1c1)]['__wbg_push_7d9be8f38fc13975']=function(){return s(function(f,u){const v=i(f)['push'](i(u));return c(v),v;},arguments);},e['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_putImageData_e96eabf0e9610ed3']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e['wbg']['__wbg_queueMicrotask_9b549dfce8865860']=function(){return s(function(f){const r=i(f)['queueMicrotask'];return w(r);},arguments);},e['wbg'][bA(0x178)]=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e['wbg']['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bQ=d,a1=i(y)[bQ(0x175)](p(S,a0)),a2=I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg']['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){i(f)['remove']();},arguments);},e[bA(0x1c1)]['__wbg_renderpageimageoptions_unwrap']=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e[bA(0x1c1)]['__wbg_replaceWith_923cfb1b2f584408']=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return s(function(f){const r=Promise['resolve'](i(f));return w(r);},arguments);},e['wbg']['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg']['__wbg_restore_6486cb1a7aa3af7b']=function(){return s(function(f){i(f)['restore']();},arguments);},e['wbg']['__wbg_revokeObjectURL_88db3468842ff09e']=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg'][bA(0x1af)]=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_setAttribute_34747dd193f45828']=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e['wbg'][bA(0x154)]=function(){return b(function(f,r){i(f)['setLineDash'](i(r));},arguments);},e['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){const bR=d;i(f)[bR(0x14f)](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){i(v)['setTransform'](y,S,a0,a1,a2,a3);},arguments);},e['wbg']['__wbg_set_169e13b608078b7b']=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const y=Reflect['set'](i(f),i(u),i(v));return E(y),y;},arguments);},e['wbg'][bA(0x1b1)]=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e['wbg']['__wbg_set_fillStyle_b26e462a87b14315']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_font_6d67b15564a1e344']=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x18d)]=function(){return b(function(f,u,v){const bS=d;i(f)[bS(0x1d4)]=p(u,v);},arguments);},e['wbg']['__wbg_set_height_6f8f8ef4cb40e496']=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x1a5)]=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_791e7648138cc371']=function(){return s(function(f,u,v){const bT=d;i(f)[bT(0x161)]=p(u,v);},arguments);},e[bA(0x1c1)][bA(0x1d0)]=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg'][bA(0x1c7)]=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg'][bA(0x1d2)]=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg'][bA(0x166)]=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e['wbg'][bA(0x15f)]=function(){return s(function(f,r){const bU=d;i(f)[bU(0x196)]=i(r);},arguments);},e[bA(0x1c1)]['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_697a576d2d3fbeaa']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return s(function(f,u,v){const bV=d;i(f)[bV(0x1ae)]=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e[bA(0x1c1)]['__wbg_stack_0ed75d68575b0f3c']=function(){return s(function(f,u){const v=i(u)['stack'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg'][bA(0x19d)]=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e[bA(0x1c1)]['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_stroke_7cfe6d60a6c48303']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e['wbg']['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e[bA(0x1c1)]['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const y=i(f)['then'](i(u),i(v));return w(y);},arguments);},e['wbg'][bA(0x1d1)]=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return b(function(f){const bW=d,r=i(f)[bW(0x1a8)]();return w(r);},arguments);},e['wbg']['__wbg_typstrenderer_new']=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e[bA(0x1c1)]['__wbg_warn_6e567d0d926ff881']=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg'][bA(0x171)]=function(){return s(function(f){const bX=d;return i(f)[bX(0x1c0)];},arguments);},e['wbg'][bA(0x18b)]=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e[bA(0x1c1)]['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_b2e692da0ea8478a']=function(){return s(function(f,u){const v=dt(f,u,o['__wasm_bindgen_func_elem_1077'],yt);return w(v);},arguments);},e[bA(0x1c1)]['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],Et);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg']['__wbindgen_object_drop_ref']=function(f){m(f);},e;}function ct(e,f){const bY=aj;return o=e[bY(0x1bd)],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const r=ut();f instanceof WebAssembly['Module']||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}function d(b,c){b=b-0x14d;const e=a();let f=e[b];return f;}async function St(f){const bZ=aj;if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object[bZ(0x152)]?{module_or_path:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof f>'u'&&(f=gt(bZ(0x1ad),import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){const c0=aj;throw new Error(c0(0x15b)+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const c1=aj,v=new Function('m',c1(0x16a)),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)[c1(0x1ac)];};const Ct=typeof process<'u'&&process['versions']!=null&&process[aj(0x172)]['node']!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
|
|
1
|
+
const ai=d;(function(e,f){const ac=d,n=e();while(!![]){try{const r=parseInt(ac(0x1a5))/0x1*(parseInt(ac(0x179))/0x2)+-parseInt(ac(0x19f))/0x3+parseInt(ac(0x1ae))/0x4+parseInt(ac(0x14d))/0x5*(parseInt(ac(0x181))/0x6)+parseInt(ac(0x1a0))/0x7+parseInt(ac(0x1ba))/0x8+-parseInt(ac(0x17d))/0x9*(parseInt(ac(0x1b9))/0xa);if(r===f)break;else n['push'](n['shift']());}catch(t){n['push'](n['shift']());}}}(a,0x83bc8));let o;function w(e){O===x['length']&&x['push'](x['length']+0x1);const f=O;if(O=x[f],typeof O!='number')throw new Error('corrupt\x20heap');return x[f]=e,f;}function E(e){if(typeof e!='boolean')throw new Error('expected\x20a\x20boolean\x20argument,\x20found\x20'+typeof e);}function A(e,f){const ad=d;if(!(e instanceof f))throw new Error(ad(0x1af)+f['name']);}function c(e){if(typeof e!='number')throw new Error('expected\x20a\x20number\x20argument,\x20found\x20'+typeof e);}const P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function G(f){const ae=d,v=typeof f;if(v=='number'||v==ae(0x186)||f==null)return''+f;if(v=='string')return'\x22'+f+'\x22';if(v=='symbol'){const a0=f['description'];return a0==null?'Symbol':'Symbol('+a0+')';}if(v=='function'){const a1=f['name'];return typeof a1=='string'&&a1['length']>0x0?'Function('+a1+')':'Function';}if(Array['isArray'](f)){const a2=f['length'];let a3='[';a2>0x0&&(a3+=G(f[0x0]));for(let a4=0x1;a4<a2;a4++)a3+=',\x20'+G(f[a4]);return a3+=']',a3;}const y=/\[object ([^\]]+)\]/['exec'](toString['call'](f));let S;if(y&&y[ae(0x18d)]>0x1)S=y[0x1];else return toString['call'](f);if(S=='Object')try{return'Object('+JSON[ae(0x184)](f)+')';}catch{return'Object';}return f instanceof Error?f['name']+':\x20'+f['message']+'\x0a'+f[ae(0x176)]:S;}function bt(e){e<0x84||(x[e]=O,O=e);}function q(e,f){return e=e>>>0x0,C()['subarray'](e/0x1,e/0x1+f);}let R=null;function g(){const af=d;return(R===null||R['buffer']['detached']===!0x0||R['buffer']['detached']===void 0x0&&R['buffer']!==o['memory']['buffer'])&&(R=new DataView(o['memory'][af(0x17a)])),R;}function p(e,f){return e=e>>>0x0,ht(e,f);}let T=null;function pt(){const ag=d;return(T===null||T[ag(0x16c)]===0x0)&&(T=new Uint32Array(o['memory']['buffer'])),T;}let W=null;function C(){const ah=d;return(W===null||W['byteLength']===0x0)&&(W=new Uint8Array(o['memory'][ah(0x17a)])),W;}function i(e){return x[e];}function b(f,r){try{return f['apply'](this,r);}catch(u){o['__wbindgen_export3'](w(u));}}let x=new Array(0x80)['fill'](void 0x0);x[ai(0x17c)](void 0x0,null,!0x0,!0x1);let O=x[ai(0x18d)];function l(e){return e==null;}function s(f,u){try{return f['apply'](this,u);}catch(v){let y=(function(){try{return v instanceof Error?v['message']+'\x0a\x0aStack:\x0a'+v['stack']:v['toString']();}catch{return'<failed\x20to\x20stringify\x20thrown\x20value>';}}());throw console['error']('wasm-bindgen:\x20imported\x20JS\x20function\x20that\x20was\x20not\x20marked\x20as\x20`catch`\x20threw\x20an\x20error:',y),v;}}function V(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;try{return y(S['a'],S['b'],...a1);}finally{a0['_wbg_cb_unref']();}};return a0['_wbg_cb_unref']=()=>{--S['cnt']===0x0&&(S['dtor'](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P['register'](a0,S,S),a0;}function dt(f,u,v,y){const S={'a':f,'b':u,'cnt':0x1,'dtor':v},a0=(...a1)=>{S['cnt']++;const a2=S['a'];S['a']=0x0;try{return y(a2,S['b'],...a1);}finally{S['a']=a2,a0['_wbg_cb_unref']();}};return a0['_wbg_cb_unref']=()=>{const aj=d;--S['cnt']===0x0&&(S[aj(0x153)](S['a'],S['b']),S['a']=0x0,P['unregister'](S));},P['register'](a0,S,S),a0;}function lt(f,r){const u=r(f['length']*0x4,0x4)>>>0x0;return pt()['set'](f,u/0x4),h=f['length'],u;}function $(f,r){const ak=ai,u=r(f[ak(0x18d)]*0x1,0x1)>>>0x0;return C()['set'](f,u/0x1),h=f['length'],u;}function X(f,u){const al=ai,v=u(f['length']*0x4,0x4)>>>0x0,y=g();for(let S=0x0;S<f[al(0x18d)];S++)y[al(0x185)](v+0x4*S,w(f[S]),!0x0);return h=f['length'],v;}function I(v,y,S){const am=ai;if(typeof v!='string')throw new Error('expected\x20a\x20string\x20argument,\x20found\x20'+typeof v);if(S===void 0x0){const a4=j[am(0x154)](v),a5=y(a4['length'],0x1)>>>0x0;return C()['subarray'](a5,a5+a4[am(0x18d)])['set'](a4),h=a4['length'],a5;}let a0=v['length'],a1=y(a0,0x1)>>>0x0;const a2=C();let a3=0x0;for(;a3<a0;a3++){const a6=v['charCodeAt'](a3);if(a6>0x7f)break;a2[a1+a3]=a6;}if(a3!==a0){a3!==0x0&&(v=v['slice'](a3)),a1=S(a1,a0,a0=a3+v['length']*0x3,0x1)>>>0x0;const a7=C()[am(0x19e)](a1+a3,a1+a0),a8=j['encodeInto'](v,a7);if(a8['read']!==v['length'])throw new Error(am(0x188));a3+=a8['written'],a1=S(a1,a0,a3,0x1)>>>0x0;}return h=a3,a1;}function m(e){const f=i(e);return bt(e),f;}let U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});U['decode']();const mt=0x7ff00000;let H=0x0;function ht(e,f){return H+=f,H>=mt&&(U=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),U['decode'](),H=f),U['decode'](C()['subarray'](e,e+f));}const j=new TextEncoder();ai(0x161)in j||(j['encodeInto']=function(f,r){const an=ai,u=j[an(0x154)](f);return r['set'](u),{'read':f[an(0x18d)],'written':u['length']};});let h=0x0;function yt(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1056'](f,r,w(u));}function vt(e,f){c(e),c(f),o['__wasm_bindgen_func_elem_1035'](e,f);}function Et(f,r,u){c(f),c(r),o['__wasm_bindgen_func_elem_1034'](f,r,w(u));}function It(f,u,v,y){c(f),c(u),o['__wasm_bindgen_func_elem_3555'](f,u,w(v),w(y));}const Y=['nonzero','evenodd'],K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_createsessionoptions_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_incrdomdocclient_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[ai(0x1a9)](e>>>0x0,0x1)),tt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_pagesinfo_free'](e>>>0x0,0x1)),et=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_renderpageimageoptions_free'](e>>>0x0,0x1)),nt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o[ai(0x1c3)](e>>>0x0,0x1)),rt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_rendersessionoptions_free'](e>>>0x0,0x1)),N=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrenderer_free'](e>>>0x0,0x1)),_t=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstrendererbuilder_free'](e>>>0x0,0x1)),kt=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_typstworker_free'](e>>>0x0,0x1)),ot=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>o['__wbg_workerbridge_free'](e>>>0x0,0x1));class J{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_createsessionoptions_free'](e,0x0);}constructor(){const ao=ai,e=o['createsessionoptions_new']();return this[ao(0x1a7)]=e>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}set['format'](f){const ap=ai;if(this['__wbg_ptr']==0x0)throw new Error(ap(0x192));c(this['__wbg_ptr']);const n=I(f,o[ap(0x180)],o['__wbindgen_export2']),u=h;o['createsessionoptions_set_format'](this[ap(0x1a7)],n,u);}set['artifact_content'](f){const aq=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=$(f,o[aq(0x180)]),u=h;o['createsessionoptions_set_artifact_content'](this[aq(0x1a7)],n,u);}}Symbol['dispose']&&(J['prototype'][Symbol['dispose']]=J['prototype']['free']);class L{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const ar=ai;f=f>>>0x0;const n=Object['create'](L[ar(0x182)]);return n['__wbg_ptr']=f,Q['register'](n,n['__wbg_ptr'],n),n;}[ai(0x1ad)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const as=ai,e=this[as(0x1ad)]();o['__wbg_incrdomdocclient_free'](e,0x0);}['bind_functions'](e){const au=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),o[au(0x1ac)](this['__wbg_ptr'],w(e));}['relayout'](f,n,u,v){const av=ai;if(this['__wbg_ptr']==0x0)throw new Error(av(0x192));c(this['__wbg_ptr']);const y=o['incrdomdocclient_relayout'](this['__wbg_ptr'],f,n,u,v);return m(y);}[ai(0x14e)](n,S,a0,a1,a2,a3){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_need_repaint'](a7,this['__wbg_ptr'],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return a4!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['repaint'](n,S,a0,a1,a2,a3){const aw=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),c(n),c(a3),o['incrdomdocclient_repaint'](a7,this[aw(0x1a7)],n,S,a0,a1,a2,a3);var a4=g()['getInt32'](a7+0x4*0x0,!0x0),a5=g()['getInt32'](a7+0x4*0x1,!0x0),a6=g()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw m(a5);return m(a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(L[ai(0x182)][Symbol['dispose']]=L['prototype']['free']);class F{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[ai(0x1b5)](f){const ax=ai;f=f>>>0x0;const n=Object['create'](F[ax(0x182)]);return n[ax(0x1a7)]=f,Z[ax(0x170)](n,n[ax(0x1a7)],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pageinfo_free'](e,0x0);}get[ai(0x167)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_page_off'](this['__wbg_ptr'])>>>0x0;}get[ai(0x1a8)](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pageinfo_width_pt'](this['__wbg_ptr']);}get[ai(0x1b7)](){const ay=ai;if(this['__wbg_ptr']==0x0)throw new Error(ay(0x192));return c(this[ay(0x1a7)]),o['pageinfo_height_pt'](this['__wbg_ptr']);}}Symbol['dispose']&&(F[ai(0x182)][Symbol[ai(0x1be)]]=F['prototype']['free']);class M{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static['__wrap'](f){const az=ai;f=f>>>0x0;const n=Object[az(0x1a3)](M['prototype']);return n['__wbg_ptr']=f,tt['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,tt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_pagesinfo_free'](e,0x0);}get['page_count'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_page_count'](this['__wbg_ptr'])>>>0x0;}['page_by_number'](f){const aA=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o[aA(0x1bd)](this['__wbg_ptr'],f);return n===0x0?void 0x0:F[aA(0x1b5)](n);}['page'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),c(f);const n=o['pagesinfo_page'](this['__wbg_ptr'],f);return F['__wrap'](n);}['width'](){const aB=ai;if(this[aB(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_width'](this['__wbg_ptr']);}['height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['pagesinfo_height'](this['__wbg_ptr']);}}Symbol['dispose']&&(M['prototype'][Symbol['dispose']]=M[ai(0x182)]['free']);class z{static['__unwrap'](e){return e instanceof z?e['__destroy_into_raw']():0x0;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,et['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_renderpageimageoptions_free'](e,0x0);}constructor(){const aC=ai,e=o[aC(0x14f)]();return this[aC(0x1a7)]=e>>>0x0,et[aC(0x170)](this,this['__wbg_ptr'],this),this;}get['pixel_per_pt'](){const aD=ai;if(this[aD(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o[aD(0x1bc)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aE=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aE(0x1a7)]),l(e)||c(e),o['renderpageimageoptions_set_pixel_per_pt'](this['__wbg_ptr'],l(e)?0x100000001:Math[aE(0x166)](e));}get['background_color'](){const aF=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this[aF(0x1a7)]),o[aF(0x194)](u,this[aF(0x1a7)]);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[aF(0x151)](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){const aG=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o[aG(0x180)],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_background_color'](this['__wbg_ptr'],n,u);}get[ai(0x167)](){const aH=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this[aH(0x1a7)]),o['renderpageimageoptions_page_off'](this[aH(0x1a7)])>>>0x0;}set[ai(0x167)](e){const aI=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aI(0x1a7)]),c(e),o['renderpageimageoptions_set_page_off'](this['__wbg_ptr'],e);}get['cache_key'](){const aJ=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['renderpageimageoptions_cache_key'](u,this['__wbg_ptr']);var f=g()[aJ(0x1b1)](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o[aJ(0x171)](0x10);}}set['cache_key'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['renderpageimageoptions_set_cache_key'](this['__wbg_ptr'],n,u);}get['data_selection'](){const aK=ai;if(this['__wbg_ptr']==0x0)throw new Error(aK(0x192));c(this['__wbg_ptr']);const e=o[aK(0x165)](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['data_selection'](e){const aL=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[aL(0x1a7)]),l(e)||c(e),o['renderpageimageoptions_set_data_selection'](this[aL(0x1a7)],l(e)?0x100000001:e>>>0x0);}}Symbol['dispose']&&(z['prototype'][Symbol['dispose']]=z['prototype']['free']);class k{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}static[ai(0x1b5)](f){const aM=ai;f=f>>>0x0;const n=Object[aM(0x1a3)](k['prototype']);return n[aM(0x1a7)]=f,nt['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const aN=ai,e=this[aN(0x1a7)];return this[aN(0x1a7)]=0x0,nt['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_rendersession_free'](e,0x0);}['render_in_window'](n,v,S,a0){const aO=ai;let a1,a2;try{if(this[aO(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o[aO(0x15f)](a5,this[aO(0x1a7)],n,v,S,a0);var a3=g()['getInt32'](a5+0x4*0x0,!0x0),a4=g()[aO(0x1b1)](a5+0x4*0x1,!0x0);return a1=a3,a2=a4,p(a3,a4);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}get['pixel_per_pt'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this['__wbg_ptr']);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aP=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']),l(e)||c(e),o[aP(0x174)](this[aP(0x1a7)],l(e)?0x100000001:Math[aP(0x166)](e));}get[ai(0x169)](){const aQ=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o[aQ(0x171)](-0x10);c(this[aQ(0x1a7)]),o['rendersession_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()[aQ(0x1b1)](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)[aQ(0x151)](),o[aQ(0x198)](f,n*0x1,0x1)),v;}finally{o[aQ(0x171)](0x10);}}set[ai(0x169)](f){const aR=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersession_set_background_color'](this[aR(0x1a7)],n,u);}get[ai(0x18e)](){const aS=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o[aS(0x193)](this['__wbg_ptr']);return M['__wrap'](e);}get['doc_width'](){const aT=ai;if(this[aT(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_width'](this['__wbg_ptr']);}get['doc_height'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');return c(this['__wbg_ptr']),o['rendersession_doc_height'](this['__wbg_ptr']);}['source_span'](n){const aU=ai;try{if(this[aU(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a2=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a3=lt(n,o[aU(0x180)]),a4=h;o['rendersession_source_span'](a2,this['__wbg_ptr'],a3,a4);var v=g()['getInt32'](a2+0x4*0x0,!0x0),S=g()['getInt32'](a2+0x4*0x1,!0x0),a0=g()[aU(0x1b1)](a2+0x4*0x2,!0x0),a1=g()['getInt32'](a2+0x4*0x3,!0x0);if(a1)throw m(a0);let a5;return v!==0x0&&(a5=p(v,S)['slice'](),o['__wbindgen_export4'](v,S*0x1,0x1)),a5;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(k['prototype'][Symbol['dispose']]=k['prototype']['free']);class it{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,rt['unregister'](this),e;}['free'](){const aV=ai,e=this[aV(0x1ad)]();o[aV(0x173)](e,0x0);}constructor(){const aW=ai,e=o['rendersessionoptions_new']();return this['__wbg_ptr']=e>>>0x0,rt[aW(0x170)](this,this[aW(0x1a7)],this),this;}get['pixel_per_pt'](){const aX=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const e=o['rendersession_pixel_per_pt'](this[aX(0x1a7)]);return e===0x100000001?void 0x0:e;}set['pixel_per_pt'](e){const aY=ai;if(this['__wbg_ptr']==0x0)throw new Error(aY(0x192));c(this['__wbg_ptr']),l(e)||c(e),o['rendersession_set_pixel_per_pt'](this[aY(0x1a7)],l(e)?0x100000001:Math['fround'](e));}get[ai(0x169)](){try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_background_color'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['background_color'](f){const aZ=ai;if(this[aZ(0x1a7)]==0x0)throw new Error(aZ(0x192));c(this[aZ(0x1a7)]);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_background_color'](this[aZ(0x1a7)],n,u);}get['format'](){const b0=ai;try{if(this[b0(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']),o['rendersessionoptions_format'](u,this['__wbg_ptr']);var f=g()['getInt32'](u+0x4*0x0,!0x0),n=g()['getInt32'](u+0x4*0x1,!0x0);let v;return f!==0x0&&(v=p(f,n)['slice'](),o['__wbindgen_export4'](f,n*0x1,0x1)),v;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}set['format'](f){const b1=ai;if(this['__wbg_ptr']==0x0)throw new Error(b1(0x192));c(this['__wbg_ptr']);var n=l(f)?0x0:I(f,o['__wbindgen_export'],o['__wbindgen_export2']),u=h;o['rendersessionoptions_set_format'](this['__wbg_ptr'],n,u);}}Symbol['dispose']&&(it['prototype'][Symbol['dispose']]=it['prototype'][ai(0x17f)]);class D{static['__wrap'](f){f=f>>>0x0;const n=Object['create'](D['prototype']);return n['__wbg_ptr']=f,N['register'](n,n['__wbg_ptr'],n),n;}['__destroy_into_raw'](){const b2=ai,e=this[b2(0x1a7)];return this['__wbg_ptr']=0x0,N['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrenderer_free'](e,0x0);}constructor(){const b3=ai,e=o['typstrenderer_new']();return this[b3(0x1a7)]=e>>>0x0,N['register'](this,this['__wbg_ptr'],this),this;}[ai(0x19c)](f){const b4=ai;try{if(this[b4(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const S=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);let a0=0x0;if(!l(f)){if(A(f,J),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');a0=f['__destroy_into_raw']();}o['typstrenderer_create_session'](S,this['__wbg_ptr'],a0);var n=g()['getInt32'](S+0x4*0x0,!0x0),v=g()['getInt32'](S+0x4*0x1,!0x0),y=g()['getInt32'](S+0x4*0x2,!0x0);if(y)throw m(v);return k['__wrap'](n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](f){const b5=ai;try{if(this['__wbg_ptr']==0x0)throw new Error(b5(0x192));const v=o[b5(0x171)](-0x10);if(c(this['__wbg_ptr']),A(f,k),f[b5(0x1a7)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o[b5(0x158)](v,this['__wbg_ptr'],f['__wbg_ptr']);var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()['getInt32'](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['manipulate_data'](n,S,a0){const b6=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n[b6(0x1a7)]===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a4=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a5=h,a6=$(a0,o['__wbindgen_export']),a7=h;o['typstrenderer_manipulate_data'](a3,this[b6(0x1a7)],n['__wbg_ptr'],a4,a5,a6,a7);var a1=g()['getInt32'](a3+0x4*0x0,!0x0),a2=g()['getInt32'](a3+0x4*0x1,!0x0);if(a2)throw m(a1);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['session_from_artifact'](n,S){const b7=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a3=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a4=$(n,o['__wbindgen_export']),a5=h,a6=I(S,o['__wbindgen_export'],o['__wbindgen_export2']),a7=h;o['typstrenderer_session_from_artifact'](a3,this['__wbg_ptr'],a4,a5,a6,a7);var a0=g()[b7(0x1b1)](a3+0x4*0x0,!0x0),a1=g()[b7(0x1b1)](a3+0x4*0x1,!0x0),a2=g()[b7(0x1b1)](a3+0x4*0x2,!0x0);if(a2)throw m(a1);return k[b7(0x1b5)](a0);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[ai(0x18b)](f){const b8=ai;try{if(this['__wbg_ptr']==0x0)throw new Error(b8(0x192));const v=o[b8(0x171)](-0x10);c(this['__wbg_ptr']),o['typstrenderer_load_glyph_pack'](v,this['__wbg_ptr'],w(f));var n=g()['getInt32'](v+0x4*0x0,!0x0),u=g()[b8(0x1b1)](v+0x4*0x1,!0x0);if(u)throw m(n);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['render_svg_diff'](n,S,a0,a1,a2){const b9=ai;let a3,a4;try{if(this[b9(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a7=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o[b9(0x150)](a7,this['__wbg_ptr'],n['__wbg_ptr'],S,a0,a1,a2);var a5=g()[b9(0x1b1)](a7+0x4*0x0,!0x0),a6=g()['getInt32'](a7+0x4*0x1,!0x0);return a3=a5,a4=a6,p(a5,a6);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a3,a4,0x1);}}['svg_data'](n,a0){const ba=ai;let a1,a2;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a9=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(n,k),n['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');l(a0)||c(a0),o['typstrenderer_svg_data'](a9,this[ba(0x1a7)],n['__wbg_ptr'],l(a0)?0x100000001:a0>>>0x0);var a3=g()['getInt32'](a9+0x4*0x0,!0x0),a4=g()['getInt32'](a9+0x4*0x1,!0x0),a5=g()['getInt32'](a9+0x4*0x2,!0x0),a6=g()['getInt32'](a9+0x4*0x3,!0x0),a7=a3,a8=a4;if(a6)throw a7=0x0,a8=0x0,m(a5);return a1=a7,a2=a8,p(a7,a8);}finally{o['__wbindgen_add_to_stack_pointer'](0x10),o['__wbindgen_export4'](a1,a2,0x1);}}[ai(0x157)](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const n=o['typstrenderer_get_customs'](this['__wbg_ptr'],f['__wbg_ptr']);return m(n);}['render_svg'](f,n){const bb=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a0=o['__wbindgen_add_to_stack_pointer'](-0x10);if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');o[bb(0x163)](a0,this['__wbg_ptr'],f[bb(0x1a7)],w(n));var v=g()['getInt32'](a0+0x4*0x0,!0x0),y=g()[bb(0x1b1)](a0+0x4*0x1,!0x0),S=g()['getInt32'](a0+0x4*0x2,!0x0);if(S)throw m(y);return v!==0x0;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['create_worker'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrenderer_create_worker'](this['__wbg_ptr'],w(f));return m(n);}['create_worker_bridge'](){const bc=ai;try{if(this[bc(0x1a7)]==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const v=this['__destroy_into_raw'](),y=o[bc(0x171)](-0x10);c(v),o['typstrenderer_create_worker_bridge'](y,v);var f=g()['getInt32'](y+0x4*0x0,!0x0),n=g()['getInt32'](y+0x4*0x1,!0x0),u=g()['getInt32'](y+0x4*0x2,!0x0);if(u)throw m(n);return B['__wrap'](f);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[ai(0x18a)](f,n,u){const bd=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error(bd(0x192));let v=0x0;if(!l(u)){if(A(u,z),u['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');v=u['__destroy_into_raw']();}const y=o['typstrenderer_render_page_to_canvas'](this['__wbg_ptr'],f['__wbg_ptr'],w(n),v);return m(y);}[ai(0x177)](f,n){const be=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');if(c(this['__wbg_ptr']),A(f,k),f['__wbg_ptr']===0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const u=o['typstrenderer_mount_dom'](this[be(0x1a7)],f['__wbg_ptr'],w(n));return m(u);}}Symbol['dispose']&&(D['prototype'][Symbol[ai(0x1be)]]=D['prototype']['free']);class st{['__destroy_into_raw'](){const bf=ai,e=this['__wbg_ptr'];return this[bf(0x1a7)]=0x0,_t['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstrendererbuilder_free'](e,0x0);}constructor(){const bg=ai;try{const v=o['__wbindgen_add_to_stack_pointer'](-0x10);o['typstrendererbuilder_new'](v);var f=g()[bg(0x1b1)](v+0x4*0x0,!0x0),n=g()['getInt32'](v+0x4*0x1,!0x0),u=g()['getInt32'](v+0x4*0x2,!0x0);if(u)throw m(n);return this[bg(0x1a7)]=f>>>0x0,_t['register'](this,this[bg(0x1a7)],this),this;}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const f=this['__destroy_into_raw']();c(f);const n=o['typstrendererbuilder_build'](f);return m(n);}['add_glyph_pack'](f){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const n=o['typstrendererbuilder_add_glyph_pack'](this['__wbg_ptr'],w(f));return m(n);}['add_raw_font'](f){const bh=ai;if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this[bh(0x1a7)]);const n=o['typstrendererbuilder_add_raw_font'](this['__wbg_ptr'],w(f));return m(n);}['add_lazy_font'](f,n){if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');c(this['__wbg_ptr']);const u=o['typstrendererbuilder_add_lazy_font'](this['__wbg_ptr'],w(f),w(n));return m(u);}}Symbol['dispose']&&(st['prototype'][Symbol['dispose']]=st['prototype']['free']);function a(){const bR=['renderpageimageoptions_pixel_per_pt','pagesinfo_page_by_number','dispose','__wbg_new_no_args_cb138f77cf6151ee','__wbg_getContext_01f42b234e833f0a','__wbg_set_height_6f8f8ef4cb40e496','__wbg_stack_0ed75d68575b0f3c','__wbg_rendersession_free','setLineDash','__wbg_set_7df433eea03a5c14','__wbg_clip_35de02bb25d222d9','__wbg_width_f13d2e86324fc226','__wbindgen_export2','__wbg_set_onerror_e7e40c62a55a0770','78365fRxsok','need_repaint','renderpageimageoptions_new','typstrenderer_render_svg_diff','slice','__wbg_width_c3f96f2ca7ab208d','dtor','encode','save','setTransform','get_customs','typstrenderer_reset','basic','__wbg_save_131c8dc648f702b6','__wbg_length_22ac23eaec9d8053','__wbg_renderpageimageoptions_unwrap','Instance','__wbg_createImageBitmap_15b94d7a7277d0be','rendersession_render_in_window','__wbg_setAttribute_34747dd193f45828','encodeInto','wbg','typstrenderer_render_svg','string','renderpageimageoptions_data_selection','fround','page_off','then','background_color','getAttribute','function','byteLength','get_pages_info','resolve','setInt32','register','__wbindgen_add_to_stack_pointer','restore','__wbg_rendersessionoptions_free','rendersession_set_pixel_per_pt','__wbg_revokeObjectURL_88db3468842ff09e','stack','mount_dom','__wbg_set_font_6d67b15564a1e344','355296qCbOoW','buffer','stroke','push','9obvvWN','__wbg_set_strokeStyle_697a576d2d3fbeaa','free','__wbindgen_export','282PfvHVT','prototype','__wbg_set_lineCap_791e7648138cc371','stringify','setUint32','boolean','instantiate','failed\x20to\x20pass\x20whole\x20string','type','render_page_to_canvas','load_glyph_pack','__wbg_workerbridge_free','length','pages_info','error','__wbg_then_4f95312d68691235','__wbg_new_with_length_aa5eaf41d35235e5','Attempt\x20to\x20use\x20a\x20moved\x20value','rendersession_pages_info','renderpageimageoptions_background_color','width','__wbg_setLineDash_7e3aad159aa2710c','clearRect','__wbindgen_export4','createImageBitmap','__wbg_instanceof_HtmlTemplateElement_702a22ea7e74d089','__wbg_set_169e13b608078b7b','create_session','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','subarray','393660kTYnCj','7079716MefbOq','__wbg_instanceof_ImageBitmap_e44697c70dffc0fe','__wbg___wbindgen_throw_dd24417ed36fc46e','create','using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead','6hkPAkR','__wbg_restore_6486cb1a7aa3af7b','__wbg_ptr','width_pt','__wbg_pageinfo_free','__wbg_drawImage_c2aacfe3133aedb7','__wbg_instanceof_OffscreenCanvasRenderingContext2d_52996da29a2bf2f5','incrdomdocclient_bind_functions','__destroy_into_raw','45996aeJbvj','expected\x20instance\x20of\x20','fill','getInt32','cannot\x20invoke\x20`new`\x20directly','firstElementChild','__wbg_clearRect_c2909c2f38887f82','__wrap','get','height_pt','__wbg_instanceof_Promise_eca6c43a2610558d','22996510glJfbj','1160456XXEUii','unregister'];a=function(){return bR;};return a();}class at{constructor(){throw new Error('cannot\x20invoke\x20`new`\x20directly');}['__destroy_into_raw'](){const bi=ai,e=this['__wbg_ptr'];return this[bi(0x1a7)]=0x0,kt[bi(0x1bb)](this),e;}['free'](){const e=this['__destroy_into_raw']();o['__wbg_typstworker_free'](e,0x0);}['manipulate_data'](n,v){const bj=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a1=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a2=I(n,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;o['typstworker_manipulate_data'](a1,this[bj(0x1a7)],a2,a3,w(v));var y=g()['getInt32'](a1+0x4*0x0,!0x0),S=g()['getInt32'](a1+0x4*0x1,!0x0),a0=g()['getInt32'](a1+0x4*0x2,!0x0);if(a0)throw m(S);return m(y);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}[ai(0x16d)](){const bk=ai;if(this['__wbg_ptr']==0x0)throw new Error(bk(0x192));c(this['__wbg_ptr']);const e=o['typstworker_get_pages_info'](this['__wbg_ptr']);return m(e);}['render_canvas'](n,a0,a1){const bl=ai;try{if(this['__wbg_ptr']==0x0)throw new Error('Attempt\x20to\x20use\x20a\x20moved\x20value');const a5=o['__wbindgen_add_to_stack_pointer'](-0x10);c(this['__wbg_ptr']);const a6=$(n,o['__wbindgen_export']),a7=h,a8=X(a0,o[bl(0x180)]),a9=h,aa=X(a1,o['__wbindgen_export']),ab=h;o['typstworker_render_canvas'](a5,this['__wbg_ptr'],a6,a7,a8,a9,aa,ab);var a2=g()['getInt32'](a5+0x4*0x0,!0x0),a3=g()['getInt32'](a5+0x4*0x1,!0x0),a4=g()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw m(a3);return m(a2);}finally{o['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(at['prototype'][Symbol['dispose']]=at['prototype']['free']);function d(b,c){b=b-0x149;const e=a();let f=e[b];return f;}class B{constructor(){const bm=ai;throw new Error(bm(0x1b2));}static['__wrap'](f){const bn=ai;f=f>>>0x0;const n=Object['create'](B['prototype']);return n[bn(0x1a7)]=f,ot['register'](n,n[bn(0x1a7)],n),n;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,ot['unregister'](this),e;}['free'](){const bo=ai,e=this['__destroy_into_raw']();o[bo(0x18c)](e,0x0);}}Symbol['dispose']&&(B[ai(0x182)][Symbol['dispose']]=B['prototype']['free']);function Ft(){const e=o['renderer_build_info']();return m(e);}const At=new Set([ai(0x159),'cors','default']);async function xt(f,u){const bp=ai;if(typeof Response=='function'&&f instanceof Response){if(typeof WebAssembly['instantiateStreaming']==bp(0x16b))try{return await WebAssembly['instantiateStreaming'](f,u);}catch(y){if(f['ok']&&At['has'](f[bp(0x189)])&&f['headers']['get']('Content-Type')!=='application/wasm')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',y);else throw y;}const v=await f['arrayBuffer']();return await WebAssembly[bp(0x187)](v,u);}else{const S=await WebAssembly['instantiate'](f,u);return S instanceof WebAssembly[bp(0x15d)]?{'instance':S,'module':f}:S;}}function ut(){const br=ai,e={};return e['wbg']={},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(f,u){const bq=d,v=G(i(u)),y=I(v,o[bq(0x180)],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bq(0x16f)](f+0x4*0x0,y,!0x0);},e[br(0x162)]['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(f){const r=typeof i(f)=='function';return E(r),r;},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(f){const r=i(f)===void 0x0;return E(r),r;},e['wbg']['__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36']=function(f,u){const v=i(f)===i(u);return E(v),v;},e[br(0x162)]['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(f,v){const bs=br,y=i(v),S=typeof y==bs(0x164)?y:void 0x0;var a0=l(S)?0x0:I(S,o['__wbindgen_export'],o[bs(0x14b)]),a1=h;g()['setInt32'](f+0x4*0x1,a1,!0x0),g()['setInt32'](f+0x4*0x0,a0,!0x0);},e['wbg'][br(0x1a2)]=function(f,r){throw new Error(p(f,r));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(){return s(function(f){i(f)['_wbg_cb_unref']();},arguments);},e[br(0x162)]['__wbg_appendChild_7465eba84213c75f']=function(){return b(function(f,u){const v=i(f)['appendChild'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return b(function(f,u,v){const y=i(f)['call'](i(u),i(v));return w(y);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return b(function(f,v,y,S,a0){const a1=i(f)['call'](i(v),i(y),i(S),i(a0));return w(a1);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return b(function(f,u){const v=i(f)['call'](i(u));return w(v);},arguments);},e['wbg']['__wbg_call_c8baa5c5e72d274e']=function(){return b(function(f,u,v,y){const S=i(f)['call'](i(u),i(v),i(y));return w(S);},arguments);},e['wbg'][br(0x1b4)]=function(){return s(function(f,u,v,y,S){const bu=d;i(f)[bu(0x197)](u,v,y,S);},arguments);},e['wbg']['__wbg_clientWidth_dbc9540f4ebdce2a']=function(){return s(function(f){const r=i(f)['clientWidth'];return c(r),r;},arguments);},e[br(0x162)][br(0x149)]=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e[br(0x162)]['__wbg_clip_afc9a92171eee96e']=function(){return s(function(f,r){i(f)['clip'](i(r));},arguments);},e['wbg']['__wbg_cloneNode_c9c45b24b171a776']=function(){return b(function(f){const r=i(f)['cloneNode']();return w(r);},arguments);},e['wbg']['__wbg_content_ad90fa08b8c037c5']=function(){return s(function(f){const r=i(f)['content'];return w(r);},arguments);},e[br(0x162)]['__wbg_createElement_da4ed2b219560fc6']=function(){return b(function(f,u,v){const y=i(f)['createElement'](p(u,v));return w(y);},arguments);},e['wbg'][br(0x15e)]=function(){return b(function(f,u){const v=i(f)['createImageBitmap'](i(u));return w(v);},arguments);},e['wbg']['__wbg_createImageBitmap_4772db6cb0dff013']=function(){return b(function(f,u){const bv=d,v=i(f)[bv(0x199)](i(u));return w(v);},arguments);},e[br(0x162)]['__wbg_createObjectURL_7d9f7f8f41373850']=function(){return b(function(f,u){const bw=d,v=URL['createObjectURL'](i(u)),y=I(v,o['__wbindgen_export'],o[bw(0x14b)]),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_document_5b745e82ba551ca5']=function(){return s(function(f){const r=i(f)['document'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_drawImage_2859dfb229439d8c']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_6949f7679b2a9758']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e[br(0x162)][br(0x1aa)]=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e[br(0x162)]['__wbg_drawImage_c40aff4a38206f4a']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_drawImage_c4f2c6d2bcfa9463']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_de5946f9cc23c2b9']=function(){return b(function(f,u,v,y){i(f)['drawImage'](i(u),v,y);},arguments);},e['wbg']['__wbg_drawImage_e2012c2a2d434ee2']=function(){return b(function(f,v,y,S,a0,a1){i(f)['drawImage'](i(v),y,S,a0,a1);},arguments);},e['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(){return s(function(f,u){const bx=d;let v,y;try{v=f,y=u,console[bx(0x18f)](p(f,u));}finally{o['__wbindgen_export4'](v,y,0x1);}},arguments);},e['wbg']['__wbg_fillRect_84131220403e26a4']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e[br(0x162)]['__wbg_fillRect_e0efe328740308e7']=function(){return s(function(f,u,v,y,S){i(f)['fillRect'](u,v,y,S);},arguments);},e['wbg']['__wbg_fill_2f2cb4f3f75aadd4']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_38a7d7455451c001']=function(){return s(function(f,u,v){i(f)['fill'](i(u),Y[v]);},arguments);},e['wbg']['__wbg_fill_3d82e52894462c95']=function(){return s(function(f,r){const by=d;i(f)[by(0x1b0)](i(r));},arguments);},e['wbg']['__wbg_fill_f1043be5324533f3']=function(){return s(function(f,r){i(f)['fill'](i(r));},arguments);},e[br(0x162)]['__wbg_firstElementChild_54d515b19cee5ae7']=function(){return s(function(f){const bz=d,r=i(f)[bz(0x1b3)];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_firstElementChild_e207b33aaa4a86df']=function(){return s(function(f){const r=i(f)['firstElementChild'];return l(r)?0x0:w(r);},arguments);},e[br(0x162)]['__wbg_getAttribute_80900eec94cb3636']=function(){return s(function(v,y,S,a0){const bA=d,a1=i(y)[bA(0x16a)](p(S,a0));var a2=l(a1)?0x0:I(a1,o['__wbindgen_export'],o[bA(0x14b)]),a3=h;g()['setInt32'](v+0x4*0x1,a3,!0x0),g()['setInt32'](v+0x4*0x0,a2,!0x0);},arguments);},e['wbg'][br(0x1c0)]=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e['wbg']['__wbg_getContext_2f210d0a58d43d95']=function(){return b(function(f,u,v){const y=i(f)['getContext'](p(u,v));return l(y)?0x0:w(y);},arguments);},e[br(0x162)]['__wbg_get_af9dab7e9603ea93']=function(){return b(function(f,u){const bB=d,v=Reflect[bB(0x1b6)](i(f),i(u));return w(v);},arguments);},e[br(0x162)]['__wbg_globalCompositeOperation_03e6a5201c8ee369']=function(){return b(function(f,u){const bC=d,v=i(u)['globalCompositeOperation'],y=I(v,o[bC(0x180)],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()[bC(0x16f)](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_globalCompositeOperation_d52c6e6666e4be00']=function(){return b(function(f,u){const v=i(u)['globalCompositeOperation'],y=I(v,o['__wbindgen_export'],o['__wbindgen_export2']),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_height_3a0b31e52a5b7f17']=function(){return s(function(f){const r=i(f)['height'];return c(r),r;},arguments);},e['wbg']['__wbg_incrdomdocclient_new']=function(){return s(function(f){const r=L['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_instanceof_CanvasRenderingContext2d_d070139aaac1459f']=function(){return s(function(f){let u;try{u=i(f)instanceof CanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Element_6f7ba982258cfc0f']=function(){return s(function(f){let u;try{u=i(f)instanceof Element;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[br(0x162)]['__wbg_instanceof_HtmlCanvasElement_c4251b1b6a15edcc']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLCanvasElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlDivElement_a55b9d453d2d8037']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLDivElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_HtmlElement_20a3acb594113d73']=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e[br(0x162)][br(0x19a)]=function(){return s(function(f){let u;try{u=i(f)instanceof HTMLTemplateElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0x1a1)]=function(){return s(function(f){let u;try{u=i(f)instanceof ImageBitmap;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0x1ab)]=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvasRenderingContext2D;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_OffscreenCanvas_8fb961f5ea27473f']=function(){return s(function(f){let u;try{u=i(f)instanceof OffscreenCanvas;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg'][br(0x1b8)]=function(){return s(function(f){let u;try{u=i(f)instanceof Promise;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgGraphicsElement_16c442d1a36270b3']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGGraphicsElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_SvgsvgElement_27a38efc9750b6fa']=function(){return s(function(f){let u;try{u=i(f)instanceof SVGSVGElement;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_Window_b5cf7783caa68180']=function(){return s(function(f){let u;try{u=i(f)instanceof Window;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_instanceof_WorkerGlobalScope_9a3411db21c65a54']=function(){return s(function(f){let u;try{u=i(f)instanceof WorkerGlobalScope;}catch{u=!0x1;}const v=u;return E(v),v;},arguments);},e['wbg']['__wbg_lastElementChild_6b90fe10adf639a2']=function(){return s(function(f){const r=i(f)['lastElementChild'];return l(r)?0x0:w(r);},arguments);},e['wbg'][br(0x15b)]=function(){return s(function(f){const r=i(f)['length'];return c(r),r;},arguments);},e['wbg']['__wbg_log_1d990106d99dacb7']=function(){return s(function(f){console['log'](i(f));},arguments);},e['wbg']['__wbg_log_fd6486c6d5396ce5']=function(){return s(function(f,r){console['log'](i(f),i(r));},arguments);},e['wbg']['__wbg_measureText_a465ecc06491802d']=function(){return b(function(f,u,v){const y=i(f)['measureText'](p(u,v));return w(y);},arguments);},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){return s(function(){const f=new Object();return w(f);},arguments);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){return s(function(){const f=new Array();return w(f);},arguments);},e['wbg']['__wbg_new_2884ddbcda091bc1']=function(){return b(function(){const f=new Image();return w(f);},arguments);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){return s(function(){const f=new Error();return w(f);},arguments);},e[br(0x162)]['__wbg_new_9468dd6e5df427f6']=function(){return b(function(f,u){const v=new OffscreenCanvas(f>>>0x0,u>>>0x0);return w(v);},arguments);},e['wbg']['__wbg_new_df1173567d5ff028']=function(){return s(function(f,u){const v=new Error(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(){return s(function(f,u){try{var v={'a':f,'b':u},y=(a0,a1)=>{const a2=v['a'];v['a']=0x0;try{return It(a2,v['b'],a0,a1);}finally{v['a']=a2;}};const S=new Promise(y);return w(S);}finally{v['a']=v['b']=0x0;}},arguments);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(){return s(function(f,u){const v=new Uint8Array(q(f,u));return w(v);},arguments);},e['wbg'][br(0x1bf)]=function(){return s(function(f,u){const v=new Function(p(f,u));return w(v);},arguments);},e['wbg'][br(0x191)]=function(){return s(function(f){const r=new Uint8Array(f>>>0x0);return w(r);},arguments);},e['wbg']['__wbg_new_with_path_string_3aea637e78135c46']=function(){return b(function(f,u){const v=new Path2D(p(f,u));return w(v);},arguments);},e['wbg']['__wbg_new_with_u8_array_sequence_and_options_d4def9ec0588c7ec']=function(){return b(function(f,u){const v=new Blob(i(f),i(u));return w(v);},arguments);},e['wbg']['__wbg_nextElementSibling_c745ee48314963c0']=function(){return s(function(f){const r=i(f)['nextElementSibling'];return l(r)?0x0:w(r);},arguments);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(){return s(function(f,u){const bD=d,v=i(f)[bD(0x17c)](i(u));return c(v),v;},arguments);},e['wbg']['__wbg_putImageData_c280ca107c4b7828']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e[br(0x162)]['__wbg_putImageData_e96eabf0e9610ed3']=function(){return b(function(f,u,v,y){i(f)['putImageData'](i(u),v,y);},arguments);},e[br(0x162)]['__wbg_queueMicrotask_9b549dfce8865860']=function(){return s(function(f){const r=i(f)['queueMicrotask'];return w(r);},arguments);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(){return s(function(f){queueMicrotask(i(f));},arguments);},e[br(0x162)]['__wbg_removeProperty_c2e16faee2834bef']=function(){return b(function(v,y,S,a0){const bE=d,a1=i(y)['removeProperty'](p(S,a0)),a2=I(a1,o['__wbindgen_export'],o['__wbindgen_export2']),a3=h;g()[bE(0x16f)](v+0x4*0x1,a3,!0x0),g()[bE(0x16f)](v+0x4*0x0,a2,!0x0);},arguments);},e[br(0x162)]['__wbg_remove_32f69ffabcbc4072']=function(){return s(function(f){i(f)['remove']();},arguments);},e[br(0x162)][br(0x15c)]=function(){return s(function(f){const r=z['__unwrap'](i(f));return c(r),r;},arguments);},e['wbg']['__wbg_replaceWith_923cfb1b2f584408']=function(){return b(function(f,r){i(f)['replaceWith'](i(r));},arguments);},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(){return s(function(f){const bF=d,r=Promise[bF(0x16e)](i(f));return w(r);},arguments);},e[br(0x162)]['__wbg_restore_352c39c9bbeedc91']=function(){return s(function(f){i(f)['restore']();},arguments);},e[br(0x162)][br(0x1a6)]=function(){return s(function(f){const bG=d;i(f)[bG(0x172)]();},arguments);},e['wbg'][br(0x175)]=function(){return b(function(f,r){URL['revokeObjectURL'](p(f,r));},arguments);},e['wbg'][br(0x15a)]=function(){return s(function(f){i(f)['save']();},arguments);},e['wbg']['__wbg_save_b8767cfd2ee7f600']=function(){return s(function(f){const bH=d;i(f)[bH(0x155)]();},arguments);},e['wbg'][br(0x160)]=function(){return b(function(f,u,v,y,S){i(f)['setAttribute'](p(u,v),p(y,S));},arguments);},e['wbg'][br(0x196)]=function(){return b(function(f,r){const bI=d;i(f)[bI(0x1c4)](i(r));},arguments);},e['wbg']['__wbg_setLineDash_cfbc3a6bfddeee62']=function(){return b(function(f,r){const bJ=d;i(f)[bJ(0x1c4)](i(r));},arguments);},e['wbg']['__wbg_setProperty_f27b2c05323daf8a']=function(){return b(function(f,u,v,y,S){i(f)['setProperty'](p(u,v),p(y,S));},arguments);},e['wbg']['__wbg_setTransform_9de588d9f080f5bc']=function(){return b(function(v,y,S,a0,a1,a2,a3){const bK=d;i(v)[bK(0x156)](y,S,a0,a1,a2,a3);},arguments);},e[br(0x162)]['__wbg_setTransform_c55eca1193bf5ea1']=function(){return b(function(v,y,S,a0,a1,a2,a3){const bL=d;i(v)[bL(0x156)](y,S,a0,a1,a2,a3);},arguments);},e['wbg'][br(0x19b)]=function(){return s(function(f,u,v){i(f)['set'](q(u,v));},arguments);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return b(function(f,u,v){const y=Reflect['set'](i(f),i(u),i(v));return E(y),y;},arguments);},e['wbg'][br(0x1c5)]=function(){return s(function(f,u,v){i(f)[u>>>0x0]=m(v);},arguments);},e[br(0x162)]['__wbg_set_fillStyle_b26e462a87b14315']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_fillStyle_c9a0550307cd4671']=function(){return s(function(f,u,v){i(f)['fillStyle']=p(u,v);},arguments);},e['wbg'][br(0x178)]=function(){return s(function(f,u,v){i(f)['font']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_418a0b97ba91a947']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg']['__wbg_set_globalCompositeOperation_7e16c72877ba5f86']=function(){return b(function(f,u,v){i(f)['globalCompositeOperation']=p(u,v);},arguments);},e['wbg'][br(0x1c1)]=function(){return s(function(f,r){i(f)['height']=r>>>0x0;},arguments);},e['wbg']['__wbg_set_innerHTML_f1d03f780518a596']=function(){return s(function(f,u,v){i(f)['innerHTML']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineCap_74b37c7ff968f854']=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg'][br(0x183)]=function(){return s(function(f,u,v){i(f)['lineCap']=p(u,v);},arguments);},e['wbg']['__wbg_set_lineDashOffset_85f21a63ddf34d2c']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineDashOffset_f032b4e2a273a2f5']=function(){return s(function(f,r){i(f)['lineDashOffset']=r;},arguments);},e['wbg']['__wbg_set_lineJoin_196c6ac02fd494c3']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e[br(0x162)]['__wbg_set_lineJoin_a136f09dd803e0cc']=function(){return s(function(f,u,v){i(f)['lineJoin']=p(u,v);},arguments);},e[br(0x162)]['__wbg_set_lineWidth_ed39767bf75d602d']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_lineWidth_feda4b79a15c660b']=function(){return s(function(f,r){i(f)['lineWidth']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_b12c03757937d228']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg']['__wbg_set_miterLimit_d891f47e244a915c']=function(){return s(function(f,r){i(f)['miterLimit']=r;},arguments);},e['wbg'][br(0x14c)]=function(){return s(function(f,r){i(f)['onerror']=i(r);},arguments);},e['wbg']['__wbg_set_onload_5e2862e3453854de']=function(){return s(function(f,r){i(f)['onload']=i(r);},arguments);},e['wbg']['__wbg_set_src_84f27c5105946dce']=function(){return s(function(f,u,v){i(f)['src']=p(u,v);},arguments);},e['wbg']['__wbg_set_strokeStyle_25d5381be570e780']=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg'][br(0x17e)]=function(){return s(function(f,u,v){i(f)['strokeStyle']=p(u,v);},arguments);},e['wbg']['__wbg_set_type_7ce650670a34c68f']=function(){return s(function(f,u,v){i(f)['type']=p(u,v);},arguments);},e['wbg']['__wbg_set_width_7ff7a22c6e9f423e']=function(){return s(function(f,r){i(f)['width']=r>>>0x0;},arguments);},e['wbg'][br(0x1c2)]=function(){return s(function(f,u){const bM=d,v=i(u)['stack'],y=I(v,o[bM(0x180)],o[bM(0x14b)]),S=h;g()['setInt32'](f+0x4*0x1,S,!0x0),g()['setInt32'](f+0x4*0x0,y,!0x0);},arguments);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){return s(function(){const f=typeof global>'u'?null:global;return l(f)?0x0:w(f);},arguments);},e['wbg'][br(0x19d)]=function(){return s(function(){const f=typeof globalThis>'u'?null:globalThis;return l(f)?0x0:w(f);},arguments);},e[br(0x162)]['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){return s(function(){const f=typeof self>'u'?null:self;return l(f)?0x0:w(f);},arguments);},e['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){return s(function(){const f=typeof window>'u'?null:window;return l(f)?0x0:w(f);},arguments);},e[br(0x162)]['__wbg_stringify_655a6390e1f5eb6b']=function(){return b(function(f){const r=JSON['stringify'](i(f));return w(r);},arguments);},e['wbg']['__wbg_stroke_41b0736a6a0b61aa']=function(){return s(function(f,r){const bN=d;i(f)[bN(0x17b)](i(r));},arguments);},e[br(0x162)]['__wbg_stroke_7cfe6d60a6c48303']=function(){return s(function(f,r){i(f)['stroke'](i(r));},arguments);},e[br(0x162)]['__wbg_style_521a717da50e53c6']=function(){return s(function(f){const r=i(f)['style'];return w(r);},arguments);},e['wbg']['__wbg_then_429f7caf1026411d']=function(){return s(function(f,u,v){const bO=d,y=i(f)[bO(0x168)](i(u),i(v));return w(y);},arguments);},e['wbg'][br(0x190)]=function(){return s(function(f,u){const v=i(f)['then'](i(u));return w(v);},arguments);},e['wbg']['__wbg_transferToImageBitmap_7048556ff33da7ed']=function(){return b(function(f){const r=i(f)['transferToImageBitmap']();return w(r);},arguments);},e['wbg']['__wbg_typstrenderer_new']=function(){return s(function(f){const r=D['__wrap'](f);return w(r);},arguments);},e['wbg']['__wbg_warn_6e567d0d926ff881']=function(){return s(function(f){console['warn'](i(f));},arguments);},e['wbg'][br(0x152)]=function(){return s(function(f){const bP=d;return i(f)[bP(0x195)];},arguments);},e[br(0x162)][br(0x14a)]=function(){return s(function(f){const r=i(f)['width'];return c(r),r;},arguments);},e['wbg']['__wbindgen_cast_2241b6af4c4b2941']=function(){return s(function(f,u){const v=p(f,u);return w(v);},arguments);},e['wbg']['__wbindgen_cast_34ce245e5be1ba8b']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],vt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_b2e692da0ea8478a']=function(){return s(function(f,u){const v=dt(f,u,o['__wasm_bindgen_func_elem_1077'],yt);return w(v);},arguments);},e['wbg']['__wbindgen_cast_d3d3bd81840cfbdd']=function(){return s(function(f,u){const v=V(f,u,o['__wasm_bindgen_func_elem_1022'],Et);return w(v);},arguments);},e[br(0x162)]['__wbindgen_cast_d6cd19b81560fd6e']=function(){return s(function(f){return w(f);},arguments);},e['wbg']['__wbindgen_object_clone_ref']=function(f){const r=i(f);return w(r);},e['wbg']['__wbindgen_object_drop_ref']=function(f){m(f);},e;}function ct(e,f){return o=e['exports'],St['__wbindgen_wasm_module']=f,R=null,T=null,W=null,o;}function zt(f){const bQ=ai;if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module:f}=f:console['warn'](bQ(0x1a4)));const r=ut();f instanceof WebAssembly['Module']||(f=new WebAssembly['Module'](f));const u=new WebAssembly['Instance'](f,r);return ct(u,f);}async function St(f){if(o!==void 0x0)return o;typeof f<'u'&&(Object['getPrototypeOf'](f)===Object['prototype']?{module_or_path:f}=f:console['warn']('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof f>'u'&&(f=gt('typst_ts_renderer_bg.wasm',import.meta.url));const u=ut();(typeof f=='string'||typeof Request=='function'&&f instanceof Request||typeof URL=='function'&&f instanceof URL)&&(f=fetch(f));const {instance:v,module:y}=await xt(await f,u);return ct(v,y);}let gt=async function(e,f){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+f);};function Rt(e){gt=e;}let Ot=async function(f,u){const v=new Function('m','return\x20import(m)'),{readFileSync:y}=await v('fs'),S=new URL(f,u);return await y(S)['buffer'];};const Ct=typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null;Ct&&Rt(Ot);export{J as CreateSessionOptions,L as IncrDomDocClient,F as PageInfo,M as PagesInfo,z as RenderPageImageOptions,k as RenderSession,it as RenderSessionOptions,D as TypstRenderer,st as TypstRendererBuilder,at as TypstWorker,B as WorkerBridge,St as default,zt as initSync,Ft as renderer_build_info,Rt as setImportWasmModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const aq=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0x229))/0x1+parseInt(ak(0x1f8))/0x2+-parseInt(ak(0x22a))/0x3*(parseInt(ak(0x1f3))/0x4)+-parseInt(ak(0x1df))/0x5*(-parseInt(ak(0x1de))/0x6)+parseInt(ak(0x1fb))/0x7*(parseInt(ak(0x1e0))/0x8)+parseInt(ak(0x201))/0x9*(-parseInt(ak(0x20e))/0xa)+parseInt(ak(0x211))/0xb;if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0x275eb));let r;function g(e){const al=d;W===k['length']&&k['push'](k[al(0x1fd)]+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){const am=d;if(!(e instanceof h))throw new Error(am(0x204)+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function d(a,b){a=a-0x1db;const e=c();let f=e[a];return f;}function V(h){const an=d,l=typeof h;if(l=='number'||l=='boolean'||h==null)return''+h;if(l==an(0x222))return'\x22'+h+'\x22';if(l=='symbol'){const v=h[an(0x22d)];return v==null?'Symbol':'Symbol('+v+')';}if(l==an(0x21e)){const x=h['name'];return typeof x=='string'&&x[an(0x1fd)]>0x0?'Function('+x+')':'Function';}if(Array['isArray'](h)){const y=h['length'];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/['exec'](toString['call'](h));let u;if(m&&m['length']>0x1)u=m[0x1];else return toString[an(0x230)](h);if(u=='Object')try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h['name']+':\x20'+h['message']+'\x0a'+h[an(0x224)]:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s['push'](b(m['getUint32'](u,!0x0)));return s;}function ut(e,h){return e=e>>>0x0,wt()['subarray'](e/0x4,e/0x4+h);}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){const ao=d;return(F===null||F['buffer']['detached']===!0x0||F['buffer']['detached']===void 0x0&&F['buffer']!==r[ao(0x223)][ao(0x1ef)])&&(F=new DataView(r['memory']['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r['memory']['buffer'])),E;}let M=null;function R(){const ap=d;return(M===null||M['byteLength']===0x0)&&(M=new Uint8Array(r['memory'][ap(0x1ef)])),M;}function a(e){return k[e];}function S(h,l){try{return h['apply'](this,l);}catch(m){r['__wbindgen_export3'](g(m));}}let k=new Array(0x80)[aq(0x22f)](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k['length'];function p(e){return e==null;}function dt(h,l,m,s){const u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{u['cnt']++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{--u['cnt']===0x0&&(u['dtor'](u['a'],u['b']),u['a']=0x0,G['unregister'](u));},G['register'](v,u,u),v;}function nt(h,l){const m=l(h['length']*0x1,0x1)>>>0x0;return R()['set'](h,m/0x1),w=h['length'],m;}function L(h,l){const ar=aq,m=l(h[ar(0x1fd)]*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h['length'],m;}function f(h,l,m){const as=aq;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()['subarray'](T,T+O[as(0x1fd)])['set'](O),w=O[as(0x1fd)],T;}let v=h[as(0x1fd)],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h[as(0x20f)](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h['length']*0x3,0x1)>>>0x0;const a1=R()['subarray'](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2[as(0x21b)],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q[aq(0x202)]();const ft=0x7ff00000;let N=0x0;function pt(e,h){const at=aq;return N+=h,N>=ft&&(q=new TextDecoder(at(0x1db),{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()[at(0x220)](e,e+h));}const U=new TextEncoder();aq(0x1e2)in U||(U['encodeInto']=function(h,l){const au=aq,m=U['encode'](h);return l[au(0x1ff)](m),{'read':h[au(0x1fd)],'written':m['length']};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){const av=aq;r[av(0x1ea)](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_incrserver_free'](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[aq(0x1f4)](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompilerbuilder_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[aq(0x21d)](e>>>0x0,0x1));class A{static['__wrap'](h){const aw=aq;h=h>>>0x0;const l=Object['create'](A[aw(0x237)]);return l['__wbg_ptr']=h,H['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const ax=aq,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,H[ax(0x236)](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_incrserver_free'](e,0x0);}[aq(0x228)](e){r['incrserver_set_attach_debug_info'](this['__wbg_ptr'],e);}['current'](){const ay=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['incrserver_current'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)[ay(0x235)](),r[ay(0x213)](h,l*0x1,0x1)),n;}finally{r[ay(0x214)](0x10);}}['reset'](){r['incrserver_reset'](this['__wbg_ptr']);}}Symbol['dispose']&&(A['prototype'][Symbol['dispose']]=A['prototype']['free']);class B{static[aq(0x206)](h){const az=aq;h=h>>>0x0;const l=Object['create'](B['prototype']);return l['__wbg_ptr']=h,P['register'](l,l[az(0x1e5)],l),l;}[aq(0x227)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_proxycontext_free'](e,0x0);}constructor(h){const aA=aq,l=r['proxycontext_new'](g(h));return this[aA(0x1e5)]=l>>>0x0,P[aA(0x1eb)](this,this['__wbg_ptr'],this),this;}get['context'](){const e=r['proxycontext_context'](this['__wbg_ptr']);return b(e);}[aq(0x234)](h,l){const aB=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r[aB(0x1f9)](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[aq(0x1fc)]&&(B['prototype'][Symbol['dispose']]=B['prototype'][aq(0x21f)]);class C{static[aq(0x206)](h){const aC=aq;h=h>>>0x0;const l=Object[aC(0x1e7)](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompileworld_free'](e,0x0);}['compile'](h,l){const aD=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()[aD(0x200)](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](h){const aE=aq;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this['__wbg_ptr'],h);var l=i()[aE(0x200)](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r['__wbindgen_export4'](l,m*0x1,0x1)),y;}finally{r[aE(0x214)](0x10);}}['get_artifact'](h,l){const aF=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_get_artifact'](v,this[aF(0x1e5)],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1ee)](n,T,a0){const aG=aq;let a1,a2;try{const ab=r['__wbindgen_add_to_stack_pointer'](-0x10),ac=f(T,r['__wbindgen_export'],r['__wbindgen_export2']),ad=w;var a3=p(a0)?0x0:f(a0,r['__wbindgen_export'],r['__wbindgen_export2']),a4=w;r['typstcompileworld_query'](ab,this[aG(0x1e5)],n,ac,ad,a3,a4);var a5=i()['getInt32'](ab+0x4*0x0,!0x0),a6=i()[aG(0x200)](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()[aG(0x200)](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aG(0x213)](a1,a2,0x1);}}['incr_compile'](h,l){const aH=aq;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h[aH(0x1e5)],l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(C['prototype'][Symbol['dispose']]=C['prototype']['free']);class D{static['__wrap'](h){const aI=aq;h=h>>>0x0;const l=Object['create'](D['prototype']);return l['__wbg_ptr']=h,Y['register'](l,l[aI(0x1e5)],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){const aJ=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()[aJ(0x200)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_fonts'](h){const aK=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);$(h,j),r['typstcompiler_set_fonts'](n,this['__wbg_ptr'],h['__wbg_ptr']);var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aK(0x200)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_inputs'](h){const aL=aq;try{const n=r[aL(0x214)](-0x10);r['typstcompiler_set_inputs'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aL(0x200)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_source'](h,l){const aM=aq,m=f(h,r[aM(0x1e9)],r['__wbindgen_export2']),n=w,u=f(l,r['__wbindgen_export'],r['__wbindgen_export2']),v=w;return r['typstcompiler_add_source'](this['__wbg_ptr'],m,n,u,v)!==0x0;}['map_shadow'](h,l){const m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r['__wbindgen_export']),v=w;return r['typstcompiler_map_shadow'](this['__wbg_ptr'],m,n,u,v)!==0x0;}[aq(0x1ec)](h){const aN=aq,l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r['typstcompiler_unmap_shadow'](this[aN(0x1e5)],l,m)!==0x0;}['reset_shadow'](){r['typstcompiler_reset_shadow'](this['__wbg_ptr']);}['get_loaded_fonts'](){const aO=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_loaded_fonts'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)['slice']();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r[aO(0x214)](0x10);}}['get_ast'](n){const aP=aq;let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r[aP(0x1f7)]),a5=w;r[aP(0x233)](a3,this['__wbg_ptr'],a4,a5);var z=i()[aP(0x200)](a3+0x4*0x0,!0x0),O=i()['getInt32'](a3+0x4*0x1,!0x0),T=i()['getInt32'](a3+0x4*0x2,!0x0),a0=i()['getInt32'](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r[aP(0x213)](v,x,0x1);}}['get_semantic_token_legend'](){const aQ=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[aQ(0x200)](n+0x4*0x1,!0x0),m=i()[aQ(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](n,x,z){const aR=aq;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r['__wbindgen_export'],r[aR(0x1f7)]),a7=w;var O=p(x)?0x0:f(x,r[aR(0x1e9)],r['__wbindgen_export2']),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r[aR(0x1f7)]),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this['__wbg_ptr'],a6,a7,O,T,a0,a1);var a2=i()['getInt32'](a5+0x4*0x0,!0x0),a3=i()['getInt32'](a5+0x4*0x1,!0x0),a4=i()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r[aR(0x214)](0x10);}}['snapshot'](n,x,z){const aS=aq;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var O=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;r['typstcompiler_snapshot'](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()[aS(0x200)](a7+0x4*0x0,!0x0),a5=i()[aS(0x200)](a7+0x4*0x1,!0x0),a6=i()[aS(0x200)](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C['__wrap'](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_artifact'](h,l){const aT=aq;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10),y=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),z=w;r[aT(0x22c)](x,this['__wbg_ptr'],y,z,l);var m=i()['getInt32'](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()['getInt32'](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1f0)](n,z,O,T){const aU=aq;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w,a2=p(z)?0x0:L(z,r[aU(0x1e9)]),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r['typstcompiler_compile'](a7,this['__wbg_ptr'],a0,a1,a2,a3,a8,a9,T);var a4=i()[aU(0x200)](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,a0,a1,a2){const aV=aq;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r[aV(0x1e9)],r['__wbindgen_export2']),ah=w;var a5=p(a0)?0x0:L(a0,r[aV(0x1e9)]),a6=w;const ai=f(a1,r['__wbindgen_export'],r['__wbindgen_export2']),aj=w;var a7=p(a2)?0x0:f(a2,r['__wbindgen_export'],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()['getInt32'](af+0x4*0x2,!0x0),ac=i()[aV(0x200)](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a3,a4,0x1);}}['create_incr_server'](){const aW=aq;try{const n=r[aW(0x214)](-0x10);r['typstcompiler_create_incr_server'](n,this[aW(0x1e5)]);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()[aW(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return A[aW(0x206)](h);}finally{r[aW(0x214)](0x10);}}[aq(0x212)](n,v,x,z){const aX=aq;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;var O=p(v)?0x0:L(v,r[aX(0x1e9)]),T=w;$(x,A),r['typstcompiler_incr_compile'](a3,this['__wbg_ptr'],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()['getInt32'](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype'][aq(0x21f)]);class tt{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}['free'](){const aY=aq,e=this['__destroy_into_raw']();r[aY(0x1dc)](e,0x0);}constructor(){const aZ=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aZ(0x21a)](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}finally{r[aZ(0x214)](0x10);}}['set_dummy_access_model'](){const b0=aq;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_set_dummy_access_model'](m,this['__wbg_ptr']);var h=i()[b0(0x200)](m+0x4*0x0,!0x0),l=i()[b0(0x200)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r[b0(0x214)](0x10);}}['set_access_model'](h,l,m,n,u){const v=r['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}['set_package_registry'](h,l){const m=r['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const l=r['typstcompilerbuilder_add_raw_font'](this['__wbg_ptr'],g(h));return b(l);}[aq(0x20d)](h,l){const m=r['typstcompilerbuilder_add_lazy_font'](this['__wbg_ptr'],g(h),g(l));return b(m);}['build'](){const h=this['__destroy_into_raw'](),l=r['typstcompilerbuilder_build'](h);return b(l);}}Symbol['dispose']&&(tt['prototype'][Symbol[aq(0x1fc)]]=tt['prototype']['free']);class j{static[aq(0x206)](h){const b1=aq;h=h>>>0x0;const l=Object['create'](j[b1(0x237)]);return l['__wbg_ptr']=h,Q[b1(0x1eb)](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const b2=aq,e=this['__wbg_ptr'];return this[b2(0x1e5)]=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol['dispose']&&(j['prototype'][Symbol[aq(0x1fc)]]=j['prototype']['free']);class et{[aq(0x227)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolverbuilder_free'](e,0x0);}constructor(){const b3=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b3(0x1e6)](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[b3(0x200)](n+0x4*0x1,!0x0),m=i()[b3(0x200)](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,Z[b3(0x1eb)](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_font_info'](h){const b4=aq;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_get_font_info'](s,this[b4(0x1e5)],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()['getInt32'](s+0x4*0x1,!0x0),n=i()['getInt32'](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r[b4(0x214)](0x10);}}[aq(0x21c)](h){const b5=aq;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this[b5(0x1e5)],g(h));var l=i()[b5(0x200)](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_lazy_font'](h,l){const b6=aq;try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b6(0x1f5)](s,this[b6(0x1e5)],g(h),g(l));var m=i()['getInt32'](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[aq(0x1fe)](){const h=this['__destroy_into_raw'](),l=r['typstfontresolverbuilder_build'](h);return b(l);}}function c(){const bk=['compile','warn','__wbg___wbindgen_string_get_a2a31e16edf96e42','320360bCYSDm','__wbg_typstcompileworld_free','typstfontresolverbuilder_add_lazy_font','__wbg_new_ff12d2b041fb48f1','__wbindgen_export2','608240IDsspe','proxycontext_untar','__wbg_entries_83c79938054e065f','7jApxSm','dispose','length','build','set','getInt32','1143IOCSZw','decode','getPrototypeOf','expected\x20instance\x20of\x20','__wbindgen_object_clone_ref','__wrap','__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1','node','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','__wbg_instanceof_Uint8Array_da54ccc9d3e09434','entries','__wbg_set_781438a03c0c3c81','add_lazy_font','19230uXfVuY','charCodeAt','resolve','1281863LlAFrE','incr_compile','__wbindgen_export4','__wbindgen_add_to_stack_pointer','wbg','basic','Module','application/wasm','__wbindgen_cast_d6cd19b81560fd6e','typstcompilerbuilder_new','written','add_raw_font','__wbg_typstfontresolverbuilder_free','function','free','subarray','__wbg_new_6421f6084cc5bc5a','string','memory','stack','instantiateStreaming','value','__destroy_into_raw','set_attach_debug_info','54041USWYqf','6hiHXFU','__wbg_typstcompiler_new','typstcompiler_get_artifact','description','__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d','fill','call','instantiate','__wbg_static_accessor_WINDOW_a8924b26aa92d024','typstcompiler_get_ast','untar','slice','unregister','prototype','utf-8','__wbg_typstcompilerbuilder_free','__wbg___wbindgen_throw_dd24417ed36fc46e','45222HktfeP','75JDAIpT','687944gwKSEx','versions','encodeInto','using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead','`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','__wbg_ptr','typstfontresolverbuilder_new','create','Instance','__wbindgen_export','__wasm_bindgen_func_elem_37350','register','unmap_shadow','__wbg_static_accessor_SELF_08f5a74c69739274','query','buffer'];c=function(){return bk;};return c();}Symbol['dispose']&&(et['prototype'][Symbol['dispose']]=et[aq(0x237)]['free']);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}const ht=new Set([aq(0x216),'cors','default']);async function mt(h,l){const b7=aq;if(typeof Response==b7(0x21e)&&h instanceof Response){if(typeof WebAssembly['instantiateStreaming']=='function')try{return await WebAssembly[b7(0x225)](h,l);}catch(o){if(h['ok']&&ht['has'](h['type'])&&h['headers']['get']('Content-Type')!==b7(0x218))console['warn'](b7(0x1e4),o);else throw o;}const m=await h['arrayBuffer']();return await WebAssembly[b7(0x231)](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly[b7(0x1e8)]?{'instance':s,'module':h}:s;}}function rt(){const b8=aq,e={};return e['wbg']={},e[b8(0x215)]['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e['wbg']['__wbg_Number_2d1dcfcf4ec51736']=function(h){return Number(a(h));},e['wbg'][b8(0x22e)]=function(h,l){const m=a(l),s=typeof m=='bigint'?m:void 0x0;i()['setBigInt64'](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(h){const l=a(h),m=typeof l=='boolean'?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg']['__wbg___wbindgen_debug_string_adfb662ae34724b6']=function(h,l){const m=V(a(l)),s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg___wbindgen_in_0d3e1e8f0c669317']=function(h,l){return a(h)in a(l);},e['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){return typeof a(h)=='function';},e['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const l=a(h);return typeof l=='object'&&l!==null;},e['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(h){return typeof a(h)=='string';},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(h){return a(h)===void 0x0;},e['wbg'][b8(0x209)]=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e[b8(0x215)]['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const m=a(l),s=typeof m=='number'?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg'][b8(0x1f2)]=function(h,l){const b9=b8,m=a(l),u=typeof m==b9(0x222)?m:void 0x0;var v=p(u)?0x0:f(u,r['__wbindgen_export'],r['__wbindgen_export2']),x=w;i()['setInt32'](h+0x4*0x1,x,!0x0),i()['setInt32'](h+0x4*0x0,v,!0x0);},e['wbg'][b8(0x1dd)]=function(h,l){throw new Error(I(h,l));},e[b8(0x215)]['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){a(h)['_wbg_cb_unref']();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const s=a(h)['call'](a(l),a(m));return g(s);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const ba=d,x=a(h)[ba(0x230)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return S(function(h,l){const m=a(h)['call'](a(l));return g(m);},arguments);},e[b8(0x215)]['__wbg_done_62ea16af4ce34b24']=function(h){return a(h)['done'];},e['wbg'][b8(0x1fa)]=function(h){const bb=b8,l=Object[bb(0x20b)](a(h));return g(l);},e['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(h,l){let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r['__wbindgen_export4'](m,s,0x1);}},e[b8(0x215)]['__wbg_error_85faeb8919b11cc6']=function(h,l,m){console['error'](a(h),a(l),a(m));},e['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(h){return a(h)['getTimezoneOffset']();},e['wbg']['__wbg_get_6b7bd52aca3f9671']=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e[b8(0x215)]['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const m=Reflect['get'](a(h),a(l));return g(m);},arguments);},e['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg']['__wbg_info_ce6bcc489c22f6f0']=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e['wbg'][b8(0x20a)]=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(h){return Array['isArray'](a(h));},e['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(h){return Number['isSafeInteger'](a(h));},e[b8(0x215)]['__wbg_iterator_27b7c8b35ab3e86b']=function(){return g(Symbol['iterator']);},e[b8(0x215)]['__wbg_length_22ac23eaec9d8053']=function(h){return a(h)['length'];},e['wbg']['__wbg_length_d45040a40c570362']=function(h){return a(h)['length'];},e['wbg']['__wbg_new_1ba21ce319a06297']=function(){const h=new Object();return g(h);},e['wbg']['__wbg_new_25f239778d6112b9']=function(){const h=new Array();return g(h);},e['wbg'][b8(0x221)]=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e['wbg']['__wbg_new_b2db8aa2650f793a']=function(h){const l=new Date(a(h));return g(l);},e['wbg']['__wbg_new_df1173567d5ff028']=function(h,l){const m=new Error(I(h,l));return g(m);},e['wbg'][b8(0x1f6)]=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e[b8(0x215)]['__wbg_new_no_args_cb138f77cf6151ee']=function(h,l){const m=new Function(I(h,l));return g(m);},e['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e['wbg']['__wbg_next_138a17bbf04e926c']=function(h){const l=a(h)['next'];return g(l);},e['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const l=a(h)['next']();return g(l);},arguments);},e['wbg']['__wbg_now_69d776cd24f5215b']=function(){return Date['now']();},e['wbg']['__wbg_prototypesetcall_dfe9b766cdc1f1fd']=function(h,l,m){const bc=b8;Uint8Array['prototype'][bc(0x1ff)]['call'](J(h,l),a(m));},e['wbg']['__wbg_proxycontext_new']=function(h){const bd=b8,l=B[bd(0x206)](h);return g(l);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(h,l){return a(h)['push'](a(l));},e[b8(0x215)]['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e['wbg']['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(h){const be=b8,l=Promise[be(0x210)](a(h));return g(l);},e['wbg']['__wbg_set_3f1d0b984ed272ed']=function(h,l,m){a(h)[b(l)]=b(m);},e[b8(0x215)][b8(0x20c)]=function(){return S(function(h,l,m){const bf=d;return Reflect[bf(0x1ff)](a(h),a(l),a(m));},arguments);},e['wbg']['__wbg_set_7df433eea03a5c14']=function(h,l,m){a(h)[l>>>0x0]=b(m);},e['wbg']['__wbg_stack_0ed75d68575b0f3c']=function(h,l){const m=a(l)['stack'],s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg'][b8(0x207)]=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg'][b8(0x1ed)]=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg'][b8(0x232)]=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e['wbg']['__wbg_then_4f95312d68691235']=function(h,l){const m=a(h)['then'](a(l));return g(m);},e['wbg'][b8(0x22b)]=function(h){const l=D['__wrap'](h);return g(l);},e['wbg']['__wbg_typstfontresolver_new']=function(h){const l=j['__wrap'](h);return g(l);},e['wbg']['__wbg_value_57b7b035e117f7ee']=function(h){const bg=b8,l=a(h)[bg(0x226)];return g(l);},e[b8(0x215)]['__wbindgen_cast_2241b6af4c4b2941']=function(h,l){const m=I(h,l);return g(m);},e[b8(0x215)]['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const m=dt(h,l,r['__wasm_bindgen_func_elem_957'],lt);return g(m);},e['wbg']['__wbindgen_cast_4625c577ab2ec9ee']=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg']['__wbindgen_cast_9ae0607507abb057']=function(h){return g(h);},e['wbg'][b8(0x219)]=function(h){return g(h);},e[b8(0x215)][b8(0x205)]=function(h){const l=a(h);return g(l);},e['wbg']['__wbindgen_object_drop_ref']=function(h){b(h);},e;}function _t(e,h){return r=e['exports'],vt['__wbindgen_wasm_module']=h,F=null,E=null,M=null,r;}function At(h){const bh=aq;if(r!==void 0x0)return r;typeof h<'u'&&(Object[bh(0x203)](h)===Object['prototype']?{module:h}=h:console[bh(0x1f1)]('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const l=rt();h instanceof WebAssembly['Module']||(h=new WebAssembly[(bh(0x217))](h));const m=new WebAssembly['Instance'](h,l);return _t(m,h);}async function vt(h){const bi=aq;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module_or_path:h}=h:console['warn'](bi(0x1e3))),typeof h>'u'&&(h=ot('typst_ts_web_compiler_bg.wasm',import.meta.url));const l=rt();(typeof h=='string'||typeof Request==bi(0x21e)&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){throw new Error('Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20'+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const bj=aq,m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)[bj(0x1ef)];};const kt=typeof process<'u'&&process[aq(0x1e1)]!=null&&process[aq(0x1e1)][aq(0x208)]!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
|
|
1
|
+
const ar=d;(function(e,h){const ak=d,l=e();while(!![]){try{const m=-parseInt(ak(0x70))/0x1*(-parseInt(ak(0x98))/0x2)+-parseInt(ak(0x8c))/0x3+-parseInt(ak(0xb1))/0x4*(-parseInt(ak(0xb6))/0x5)+-parseInt(ak(0xb9))/0x6*(parseInt(ak(0xa6))/0x7)+parseInt(ak(0x8a))/0x8+-parseInt(ak(0x73))/0x9+parseInt(ak(0x93))/0xa;if(m===h)break;else l['push'](l['shift']());}catch(n){l['push'](l['shift']());}}}(c,0x9ed5c));let r;function g(e){const al=d;W===k['length']&&k['push'](k[al(0xa4)]+0x1);const h=W;return W=k[h],k[h]=e,h;}function $(e,h){if(!(e instanceof h))throw new Error('expected\x20instance\x20of\x20'+h['name']);}const G=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>e['dtor'](e['a'],e['b']));function V(h){const am=d,l=typeof h;if(l=='number'||l=='boolean'||h==null)return''+h;if(l=='string')return'\x22'+h+'\x22';if(l=='symbol'){const v=h['description'];return v==null?'Symbol':'Symbol('+v+')';}if(l=='function'){const x=h['name'];return typeof x==am(0x7b)&&x['length']>0x0?'Function('+x+')':'Function';}if(Array['isArray'](h)){const y=h['length'];let z='[';y>0x0&&(z+=V(h[0x0]));for(let O=0x1;O<y;O++)z+=',\x20'+V(h[O]);return z+=']',z;}const m=/\[object ([^\]]+)\]/['exec'](toString[am(0xb4)](h));let u;if(m&&m['length']>0x1)u=m[0x1];else return toString['call'](h);if(u=='Object')try{return'Object('+JSON['stringify'](h)+')';}catch{return'Object';}return h instanceof Error?h[am(0x7c)]+':\x20'+h['message']+'\x0a'+h[am(0x86)]:u;}function gt(e){e<0x84||(k[e]=W,W=e);}function bt(h,l){h=h>>>0x0;const m=i(),s=[];for(let u=h;u<h+0x4*l;u+=0x4)s['push'](b(m['getUint32'](u,!0x0)));return s;}function ut(e,h){return e=e>>>0x0,wt()['subarray'](e/0x4,e/0x4+h);}function J(e,h){return e=e>>>0x0,R()['subarray'](e/0x1,e/0x1+h);}let F=null;function i(){const an=d;return(F===null||F[an(0x96)]['detached']===!0x0||F['buffer']['detached']===void 0x0&&F['buffer']!==r['memory']['buffer'])&&(F=new DataView(r[an(0xaf)]['buffer'])),F;}function I(e,h){return e=e>>>0x0,pt(e,h);}let E=null;function wt(){const ao=d;return(E===null||E['byteLength']===0x0)&&(E=new Uint32Array(r['memory'][ao(0x96)])),E;}let M=null;function R(){const ap=d;return(M===null||M[ap(0xa5)]===0x0)&&(M=new Uint8Array(r[ap(0xaf)]['buffer'])),M;}function a(e){return k[e];}function S(h,l){const aq=d;try{return h[aq(0x85)](this,l);}catch(m){r[aq(0xa1)](g(m));}}let k=new Array(0x80)['fill'](void 0x0);k['push'](void 0x0,null,!0x0,!0x1);let W=k[ar(0xa4)];function p(e){return e==null;}function dt(h,l,m,s){const at=ar,u={'a':h,'b':l,'cnt':0x1,'dtor':m},v=(...x)=>{u['cnt']++;const y=u['a'];u['a']=0x0;try{return s(y,u['b'],...x);}finally{u['a']=y,v['_wbg_cb_unref']();}};return v['_wbg_cb_unref']=()=>{const as=d;--u['cnt']===0x0&&(u[as(0x7d)](u['a'],u['b']),u['a']=0x0,G[as(0x72)](u));},G[at(0xa8)](v,u,u),v;}function nt(h,l){const m=l(h['length']*0x1,0x1)>>>0x0;return R()['set'](h,m/0x1),w=h['length'],m;}function L(h,l){const m=l(h['length']*0x4,0x4)>>>0x0,s=i();for(let u=0x0;u<h['length'];u++)s['setUint32'](m+0x4*u,g(h[u]),!0x0);return w=h['length'],m;}function f(h,l,m){const au=ar;if(m===void 0x0){const O=U['encode'](h),T=l(O['length'],0x1)>>>0x0;return R()['subarray'](T,T+O[au(0xa4)])['set'](O),w=O[au(0xa4)],T;}let v=h['length'],x=l(v,0x1)>>>0x0;const y=R();let z=0x0;for(;z<v;z++){const a0=h['charCodeAt'](z);if(a0>0x7f)break;y[x+z]=a0;}if(z!==v){z!==0x0&&(h=h['slice'](z)),x=m(x,v,v=z+h['length']*0x3,0x1)>>>0x0;const a1=R()['subarray'](x+z,x+v),a2=U['encodeInto'](h,a1);z+=a2['written'],x=m(x,v,z,0x1)>>>0x0;}return w=z,x;}function b(e){const h=a(e);return gt(e),h;}let q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0});q['decode']();const ft=0x7ff00000;let N=0x0;function pt(e,h){return N+=h,N>=ft&&(q=new TextDecoder('utf-8',{'ignoreBOM':!0x0,'fatal':!0x0}),q['decode'](),N=h),q['decode'](R()['subarray'](e,e+h));}const U=new TextEncoder();ar(0xa0)in U||(U['encodeInto']=function(h,l){const m=U['encode'](h);return l['set'](m),{'read':h['length'],'written':m['length']};});let w=0x0;function lt(h,l,m){r['__wasm_bindgen_func_elem_944'](h,l,g(m));}function yt(h,l,m,o){r['__wasm_bindgen_func_elem_37350'](h,l,g(m),g(o));}const H=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_incrserver_free'](e>>>0x0,0x1)),P=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_proxycontext_free'](e>>>0x0,0x1)),X=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompileworld_free'](e>>>0x0,0x1)),Y=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompiler_free'](e>>>0x0,0x1)),K=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstcompilerbuilder_free'](e>>>0x0,0x1)),Q=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r['__wbg_typstfontresolver_free'](e>>>0x0,0x1)),Z=typeof FinalizationRegistry>'u'?{'register':()=>{},'unregister':()=>{}}:new FinalizationRegistry(e=>r[ar(0xb0)](e>>>0x0,0x1));class A{static['__wrap'](h){const av=ar;h=h>>>0x0;const l=Object['create'](A[av(0x87)]);return l[av(0x83)]=h,H['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aw=ar,e=this['__wbg_ptr'];return this[aw(0x83)]=0x0,H['unregister'](this),e;}['free'](){const ax=ar,e=this['__destroy_into_raw']();r[ax(0x99)](e,0x0);}['set_attach_debug_info'](e){const ay=ar;r[ay(0x6c)](this['__wbg_ptr'],e);}[ar(0x94)](){const az=ar;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['incrserver_current'](m,this[az(0x83)]);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()['getInt32'](m+0x4*0x1,!0x0);let n;return h!==0x0&&(n=J(h,l)[az(0x97)](),r['__wbindgen_export4'](h,l*0x1,0x1)),n;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['reset'](){const aA=ar;r['incrserver_reset'](this[aA(0x83)]);}}Symbol['dispose']&&(A['prototype'][Symbol['dispose']]=A[ar(0x87)]['free']);class B{static['__wrap'](h){h=h>>>0x0;const l=Object['create'](B['prototype']);return l['__wbg_ptr']=h,P['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const aB=ar,e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,P[aB(0x72)](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_proxycontext_free'](e,0x0);}constructor(h){const aC=ar,l=r[aC(0x8d)](g(h));return this[aC(0x83)]=l>>>0x0,P['register'](this,this['__wbg_ptr'],this),this;}get['context'](){const e=r['proxycontext_context'](this['__wbg_ptr']);return b(e);}['untar'](h,l){const aD=ar;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10),x=nt(h,r['__wbindgen_export']),y=w;r['proxycontext_untar'](v,this['__wbg_ptr'],x,y,g(l));var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()[aD(0x80)](v+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(B['prototype'][Symbol['dispose']]=B['prototype']['free']);function c(){const bn=['call','dispose','514545OcPCAa','typstcompiler_get_ast','typstcompiler_compile','368550wvKQBD','setInt32','function','__destroy_into_raw','incrserver_set_attach_debug_info','typstcompilerbuilder_build','__wbindgen_export2','typstcompiler_set_inputs','1229581erTLhP','Cannot\x20import\x20wasm\x20module\x20without\x20importer:\x20','unregister','7276185OxioFX','typstcompilerbuilder_add_lazy_font','free','instantiateStreaming','__wbindgen_cast_2241b6af4c4b2941','reset_shadow','__wbg_error_85faeb8919b11cc6','__wbindgen_cast_9ae0607507abb057','string','name','dtor','__wbg_new_1ba21ce319a06297','__wbg_prototypesetcall_dfe9b766cdc1f1fd','getInt32','warn','__wbg_then_4f95312d68691235','__wbg_ptr','`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','apply','stack','prototype','typstcompiler_incr_compile','__wbindgen_add_to_stack_pointer','902160bIpPQc','__wbg_new_no_args_cb138f77cf6151ee','2836851YYXqkS','proxycontext_new','getPrototypeOf','set_dummy_access_model','get_artifact','get_ast','typstcompileworld_query','9578080bKBPzZ','current','__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36','buffer','slice','2Ucovgq','__wbg_incrserver_free','__wbg___wbindgen_debug_string_adfb662ae34724b6','push','now','boolean','__wbindgen_export4','__wbg_new_b2db8aa2650f793a','encodeInto','__wbindgen_export3','typstcompilerbuilder_set_dummy_access_model','typstcompileworld_get_artifact','length','byteLength','35CnAqQy','wbg','register','__wrap','Module','__wbindgen_export','build','__wbg_done_62ea16af4ce34b24','get','memory','__wbg_typstfontresolverbuilder_free','16kjMnfb','add_lazy_font','typstcompiler_reset_shadow'];c=function(){return bn;};return c();}class C{static[ar(0xa9)](h){h=h>>>0x0;const l=Object['create'](C['prototype']);return l['__wbg_ptr']=h,X['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,X['unregister'](this),e;}[ar(0x75)](){const aE=ar,e=this[aE(0x6b)]();r['__wbg_typstcompileworld_free'](e,0x0);}['compile'](h,l){const aF=ar;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_compile'](v,this['__wbg_ptr'],h,l);var m=i()[aF(0x80)](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['title'](h){const aG=ar;try{const x=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompileworld_title'](x,this['__wbg_ptr'],h);var l=i()[aG(0x80)](x+0x4*0x0,!0x0),m=i()['getInt32'](x+0x4*0x1,!0x0),n=i()['getInt32'](x+0x4*0x2,!0x0),v=i()['getInt32'](x+0x4*0x3,!0x0);if(v)throw b(n);let y;return l!==0x0&&(y=I(l,m)['slice'](),r[aG(0x9e)](l,m*0x1,0x1)),y;}finally{r[aG(0x89)](0x10);}}['get_artifact'](h,l){const aH=ar;try{const v=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aH(0xa3)](v,this[aH(0x83)],h,l);var m=i()['getInt32'](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,T,a0){const aI=ar;let a1,a2;try{const ab=r[aI(0x89)](-0x10),ac=f(T,r['__wbindgen_export'],r[aI(0x6e)]),ad=w;var a3=p(a0)?0x0:f(a0,r['__wbindgen_export'],r[aI(0x6e)]),a4=w;r[aI(0x92)](ab,this['__wbg_ptr'],n,ac,ad,a3,a4);var a5=i()['getInt32'](ab+0x4*0x0,!0x0),a6=i()['getInt32'](ab+0x4*0x1,!0x0),a7=i()['getInt32'](ab+0x4*0x2,!0x0),a8=i()['getInt32'](ab+0x4*0x3,!0x0),a9=a5,aa=a6;if(a8)throw a9=0x0,aa=0x0,b(a7);return a1=a9,a2=aa,I(a9,aa);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a1,a2,0x1);}}['incr_compile'](h,l){const aJ=ar;try{const v=r[aJ(0x89)](-0x10);$(h,A),r['typstcompileworld_incr_compile'](v,this['__wbg_ptr'],h['__wbg_ptr'],l);var m=i()[aJ(0x80)](v+0x4*0x0,!0x0),n=i()['getInt32'](v+0x4*0x1,!0x0),u=i()['getInt32'](v+0x4*0x2,!0x0);if(u)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol[ar(0xb5)]&&(C['prototype'][Symbol['dispose']]=C['prototype']['free']);class D{static[ar(0xa9)](h){h=h>>>0x0;const l=Object['create'](D['prototype']);return l['__wbg_ptr']=h,Y['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Y['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstcompiler_free'](e,0x0);}['reset'](){const aK=ar;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_reset'](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()[aK(0x80)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_fonts'](h){const aL=ar;try{const n=r[aL(0x89)](-0x10);$(h,j),r['typstcompiler_set_fonts'](n,this['__wbg_ptr'],h[aL(0x83)]);var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aL(0x80)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r[aL(0x89)](0x10);}}['set_inputs'](h){const aM=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r[aM(0x6f)](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()[aM(0x80)](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r[aM(0x89)](0x10);}}['add_source'](h,l){const m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=f(l,r['__wbindgen_export'],r['__wbindgen_export2']),v=w;return r['typstcompiler_add_source'](this['__wbg_ptr'],m,n,u,v)!==0x0;}['map_shadow'](h,l){const aN=ar,m=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),n=w,u=nt(l,r[aN(0xab)]),v=w;return r['typstcompiler_map_shadow'](this['__wbg_ptr'],m,n,u,v)!==0x0;}['unmap_shadow'](h){const l=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),m=w;return r['typstcompiler_unmap_shadow'](this['__wbg_ptr'],l,m)!==0x0;}[ar(0x78)](){const aO=ar;r[aO(0xb3)](this['__wbg_ptr']);}['get_loaded_fonts'](){const aP=ar;try{const n=r[aP(0x89)](-0x10);r['typstcompiler_get_loaded_fonts'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=bt(h,l)['slice']();return r['__wbindgen_export4'](h,l*0x4,0x4),m;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0x91)](n){const aQ=ar;let v,x;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),a5=w;r[aQ(0xb7)](a3,this['__wbg_ptr'],a4,a5);var z=i()['getInt32'](a3+0x4*0x0,!0x0),O=i()[aQ(0x80)](a3+0x4*0x1,!0x0),T=i()['getInt32'](a3+0x4*0x2,!0x0),a0=i()['getInt32'](a3+0x4*0x3,!0x0),a1=z,a2=O;if(a0)throw a1=0x0,a2=0x0,b(T);return v=a1,x=a2,I(a1,a2);}finally{r[aQ(0x89)](0x10),r['__wbindgen_export4'](v,x,0x1);}}['get_semantic_token_legend'](){const aR=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompiler_get_semantic_token_legend'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()[aR(0x80)](n+0x4*0x2,!0x0);if(m)throw b(l);return b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_semantic_tokens'](n,x,z){const aS=ar;try{const a5=r['__wbindgen_add_to_stack_pointer'](-0x10),a6=f(n,r[aS(0xab)],r['__wbindgen_export2']),a7=w;var O=p(x)?0x0:f(x,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(z)?0x0:f(z,r['__wbindgen_export'],r['__wbindgen_export2']),a1=w;r['typstcompiler_get_semantic_tokens'](a5,this[aS(0x83)],a6,a7,O,T,a0,a1);var a2=i()['getInt32'](a5+0x4*0x0,!0x0),a3=i()['getInt32'](a5+0x4*0x1,!0x0),a4=i()['getInt32'](a5+0x4*0x2,!0x0);if(a4)throw b(a3);return b(a2);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['snapshot'](n,x,z){const aT=ar;try{const a7=r[aT(0x89)](-0x10);var O=p(n)?0x0:f(n,r['__wbindgen_export'],r['__wbindgen_export2']),T=w,a0=p(x)?0x0:f(x,r['__wbindgen_export'],r[aT(0x6e)]),a1=w,a2=p(z)?0x0:L(z,r[aT(0xab)]),a3=w;r['typstcompiler_snapshot'](a7,this['__wbg_ptr'],O,T,a0,a1,a2,a3);var a4=i()[aT(0x80)](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()['getInt32'](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return C['__wrap'](a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0x90)](h,l){const aU=ar;try{const x=r[aU(0x89)](-0x10),y=f(h,r['__wbindgen_export'],r['__wbindgen_export2']),z=w;r['typstcompiler_get_artifact'](x,this['__wbg_ptr'],y,z,l);var m=i()['getInt32'](x+0x4*0x0,!0x0),n=i()['getInt32'](x+0x4*0x1,!0x0),v=i()['getInt32'](x+0x4*0x2,!0x0);if(v)throw b(n);return b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['compile'](n,z,O,T){const aV=ar;try{const a7=r['__wbindgen_add_to_stack_pointer'](-0x10);var a0=p(n)?0x0:f(n,r['__wbindgen_export'],r[aV(0x6e)]),a1=w,a2=p(z)?0x0:L(z,r['__wbindgen_export']),a3=w;const a8=f(O,r['__wbindgen_export'],r['__wbindgen_export2']),a9=w;r[aV(0xb8)](a7,this[aV(0x83)],a0,a1,a2,a3,a8,a9,T);var a4=i()['getInt32'](a7+0x4*0x0,!0x0),a5=i()['getInt32'](a7+0x4*0x1,!0x0),a6=i()[aV(0x80)](a7+0x4*0x2,!0x0);if(a6)throw b(a5);return b(a4);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['query'](n,a0,a1,a2){const aW=ar;let a3,a4;try{const af=r['__wbindgen_add_to_stack_pointer'](-0x10),ag=f(n,r['__wbindgen_export'],r['__wbindgen_export2']),ah=w;var a5=p(a0)?0x0:L(a0,r[aW(0xab)]),a6=w;const ai=f(a1,r[aW(0xab)],r['__wbindgen_export2']),aj=w;var a7=p(a2)?0x0:f(a2,r['__wbindgen_export'],r['__wbindgen_export2']),a8=w;r['typstcompiler_query'](af,this['__wbg_ptr'],ag,ah,a5,a6,ai,aj,a7,a8);var a9=i()['getInt32'](af+0x4*0x0,!0x0),aa=i()['getInt32'](af+0x4*0x1,!0x0),ab=i()['getInt32'](af+0x4*0x2,!0x0),ac=i()['getInt32'](af+0x4*0x3,!0x0),ad=a9,ae=aa;if(ac)throw ad=0x0,ae=0x0,b(ab);return a3=ad,a4=ae,I(ad,ae);}finally{r['__wbindgen_add_to_stack_pointer'](0x10),r['__wbindgen_export4'](a3,a4,0x1);}}['create_incr_server'](){const aX=ar;try{const n=r[aX(0x89)](-0x10);r['typstcompiler_create_incr_server'](n,this['__wbg_ptr']);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()[aX(0x80)](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return A['__wrap'](h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['incr_compile'](n,v,x,z){const aY=ar;try{const a3=r['__wbindgen_add_to_stack_pointer'](-0x10),a4=f(n,r['__wbindgen_export'],r[aY(0x6e)]),a5=w;var O=p(v)?0x0:L(v,r['__wbindgen_export']),T=w;$(x,A),r[aY(0x88)](a3,this[aY(0x83)],a4,a5,O,T,x['__wbg_ptr'],z);var a0=i()['getInt32'](a3+0x4*0x0,!0x0),a1=i()[aY(0x80)](a3+0x4*0x1,!0x0),a2=i()['getInt32'](a3+0x4*0x2,!0x0);if(a2)throw b(a1);return b(a0);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}}Symbol['dispose']&&(D['prototype'][Symbol['dispose']]=D['prototype']['free']);class tt{['__destroy_into_raw'](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,K['unregister'](this),e;}[ar(0x75)](){const aZ=ar,e=this[aZ(0x6b)]();r['__wbg_typstcompilerbuilder_free'](e,0x0);}constructor(){const b0=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstcompilerbuilder_new'](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()['getInt32'](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,K['register'](this,this['__wbg_ptr'],this),this;}finally{r[b0(0x89)](0x10);}}[ar(0x8f)](){const b1=ar;try{const m=r['__wbindgen_add_to_stack_pointer'](-0x10);r[b1(0xa2)](m,this['__wbg_ptr']);var h=i()['getInt32'](m+0x4*0x0,!0x0),l=i()[b1(0x80)](m+0x4*0x1,!0x0);if(l)throw b(h);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['set_access_model'](h,l,m,n,u){const v=r['typstcompilerbuilder_set_access_model'](this['__wbg_ptr'],g(h),g(l),g(m),g(n),g(u));return b(v);}['set_package_registry'](h,l){const m=r['typstcompilerbuilder_set_package_registry'](this['__wbg_ptr'],g(h),g(l));return b(m);}['add_raw_font'](h){const b2=ar,l=r['typstcompilerbuilder_add_raw_font'](this[b2(0x83)],g(h));return b(l);}['add_lazy_font'](h,l){const b3=ar,m=r[b3(0x74)](this['__wbg_ptr'],g(h),g(l));return b(m);}[ar(0xac)](){const b4=ar,h=this['__destroy_into_raw'](),l=r[b4(0x6d)](h);return b(l);}}Symbol['dispose']&&(tt['prototype'][Symbol['dispose']]=tt['prototype']['free']);class j{static['__wrap'](h){const b5=ar;h=h>>>0x0;const l=Object['create'](j[b5(0x87)]);return l['__wbg_ptr']=h,Q['register'](l,l['__wbg_ptr'],l),l;}['__destroy_into_raw'](){const b6=ar,e=this[b6(0x83)];return this['__wbg_ptr']=0x0,Q['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolver_free'](e,0x0);}}Symbol['dispose']&&(j['prototype'][Symbol['dispose']]=j['prototype']['free']);class et{[ar(0x6b)](){const e=this['__wbg_ptr'];return this['__wbg_ptr']=0x0,Z['unregister'](this),e;}['free'](){const e=this['__destroy_into_raw']();r['__wbg_typstfontresolverbuilder_free'](e,0x0);}constructor(){const b7=ar;try{const n=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_new'](n);var h=i()['getInt32'](n+0x4*0x0,!0x0),l=i()['getInt32'](n+0x4*0x1,!0x0),m=i()[b7(0x80)](n+0x4*0x2,!0x0);if(m)throw b(l);return this['__wbg_ptr']=h>>>0x0,Z['register'](this,this['__wbg_ptr'],this),this;}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['get_font_info'](h){try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_get_font_info'](s,this['__wbg_ptr'],g(h));var l=i()['getInt32'](s+0x4*0x0,!0x0),m=i()['getInt32'](s+0x4*0x1,!0x0),n=i()['getInt32'](s+0x4*0x2,!0x0);if(n)throw b(m);return b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['add_raw_font'](h){const b8=ar;try{const n=r[b8(0x89)](-0x10);r['typstfontresolverbuilder_add_raw_font'](n,this['__wbg_ptr'],g(h));var l=i()['getInt32'](n+0x4*0x0,!0x0),m=i()['getInt32'](n+0x4*0x1,!0x0);if(m)throw b(l);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}[ar(0xb2)](h,l){try{const s=r['__wbindgen_add_to_stack_pointer'](-0x10);r['typstfontresolverbuilder_add_lazy_font'](s,this['__wbg_ptr'],g(h),g(l));var m=i()['getInt32'](s+0x4*0x0,!0x0),n=i()['getInt32'](s+0x4*0x1,!0x0);if(n)throw b(m);}finally{r['__wbindgen_add_to_stack_pointer'](0x10);}}['build'](){const h=this['__destroy_into_raw'](),l=r['typstfontresolverbuilder_build'](h);return b(l);}}Symbol['dispose']&&(et[ar(0x87)][Symbol['dispose']]=et[ar(0x87)]['free']);function Ft(e){const h=r['get_font_info'](g(e));return b(h);}const ht=new Set(['basic','cors','default']);async function mt(h,l){const b9=ar;if(typeof Response==b9(0x6a)&&h instanceof Response){if(typeof WebAssembly[b9(0x76)]==b9(0x6a))try{return await WebAssembly['instantiateStreaming'](h,l);}catch(o){if(h['ok']&&ht['has'](h['type'])&&h['headers'][b9(0xae)]('Content-Type')!=='application/wasm')console['warn'](b9(0x84),o);else throw o;}const m=await h['arrayBuffer']();return await WebAssembly['instantiate'](m,l);}else{const s=await WebAssembly['instantiate'](h,l);return s instanceof WebAssembly['Instance']?{'instance':s,'module':h}:s;}}function rt(){const ba=ar,e={};return e['wbg']={},e['wbg']['__wbg_Error_52673b7de5a0ca89']=function(h,l){const m=Error(I(h,l));return g(m);},e[ba(0xa7)]['__wbg_Number_2d1dcfcf4ec51736']=function(h){return Number(a(h));},e['wbg']['__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d']=function(h,l){const m=a(l),s=typeof m=='bigint'?m:void 0x0;i()['setBigInt64'](h+0x8*0x1,p(s)?BigInt(0x0):s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e[ba(0xa7)]['__wbg___wbindgen_boolean_get_dea25b33882b895b']=function(h){const bb=ba,l=a(h),m=typeof l==bb(0x9d)?l:void 0x0;return p(m)?0xffffff:m?0x1:0x0;},e['wbg'][ba(0x9a)]=function(h,l){const m=V(a(l)),s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg___wbindgen_in_0d3e1e8f0c669317']=function(h,l){return a(h)in a(l);},e['wbg']['__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27']=function(h){return typeof a(h)=='bigint';},e['wbg']['__wbg___wbindgen_is_function_8d400b8b1af978cd']=function(h){return typeof a(h)=='function';},e['wbg']['__wbg___wbindgen_is_object_ce774f3490692386']=function(h){const l=a(h);return typeof l=='object'&&l!==null;},e['wbg']['__wbg___wbindgen_is_string_704ef9c8fc131030']=function(h){const bc=ba;return typeof a(h)==bc(0x7b);},e['wbg']['__wbg___wbindgen_is_undefined_f6b95eab589e0269']=function(h){return a(h)===void 0x0;},e[ba(0xa7)][ba(0x95)]=function(h,l){return a(h)===a(l);},e['wbg']['__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d']=function(h,l){return a(h)==a(l);},e['wbg']['__wbg___wbindgen_number_get_9619185a74197f95']=function(h,l){const m=a(l),s=typeof m=='number'?m:void 0x0;i()['setFloat64'](h+0x8*0x1,p(s)?0x0:s,!0x0),i()['setInt32'](h+0x4*0x0,!p(s),!0x0);},e['wbg']['__wbg___wbindgen_string_get_a2a31e16edf96e42']=function(h,l){const bd=ba,m=a(l),u=typeof m=='string'?m:void 0x0;var v=p(u)?0x0:f(u,r['__wbindgen_export'],r['__wbindgen_export2']),x=w;i()[bd(0x69)](h+0x4*0x1,x,!0x0),i()[bd(0x69)](h+0x4*0x0,v,!0x0);},e['wbg']['__wbg___wbindgen_throw_dd24417ed36fc46e']=function(h,l){throw new Error(I(h,l));},e['wbg']['__wbg__wbg_cb_unref_87dfb5aaa0cbcea7']=function(h){a(h)['_wbg_cb_unref']();},e['wbg']['__wbg_call_3020136f7a2d6e44']=function(){return S(function(h,l,m){const s=a(h)['call'](a(l),a(m));return g(s);},arguments);},e['wbg']['__wbg_call_78f94eb02ec7f9b2']=function(){return S(function(h,l,m,u,v){const be=d,x=a(h)[be(0xb4)](a(l),a(m),a(u),a(v));return g(x);},arguments);},e['wbg']['__wbg_call_abb4ff46ce38be40']=function(){return S(function(h,l){const bf=d,m=a(h)[bf(0xb4)](a(l));return g(m);},arguments);},e['wbg'][ba(0xad)]=function(h){return a(h)['done'];},e['wbg']['__wbg_entries_83c79938054e065f']=function(h){const l=Object['entries'](a(h));return g(l);},e['wbg']['__wbg_error_7534b8e9a36f1ab4']=function(h,l){const bg=ba;let m,s;try{m=h,s=l,console['error'](I(h,l));}finally{r[bg(0x9e)](m,s,0x1);}},e[ba(0xa7)][ba(0x79)]=function(h,l,m){console['error'](a(h),a(l),a(m));},e['wbg']['__wbg_getTimezoneOffset_45389e26d6f46823']=function(h){return a(h)['getTimezoneOffset']();},e['wbg']['__wbg_get_6b7bd52aca3f9671']=function(h,l){const m=a(h)[l>>>0x0];return g(m);},e['wbg']['__wbg_get_af9dab7e9603ea93']=function(){return S(function(h,l){const m=Reflect['get'](a(h),a(l));return g(m);},arguments);},e['wbg']['__wbg_get_with_ref_key_1dc361bd10053bfe']=function(h,l){const m=a(h)[a(l)];return g(m);},e['wbg']['__wbg_info_ce6bcc489c22f6f0']=function(h){console['info'](a(h));},e['wbg']['__wbg_instanceof_ArrayBuffer_f3320d2419cd0355']=function(h){let l;try{l=a(h)instanceof ArrayBuffer;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Map_084be8da74364158']=function(h){let l;try{l=a(h)instanceof Map;}catch{l=!0x1;}return l;},e['wbg']['__wbg_instanceof_Uint8Array_da54ccc9d3e09434']=function(h){let l;try{l=a(h)instanceof Uint8Array;}catch{l=!0x1;}return l;},e['wbg']['__wbg_isArray_51fd9e6422c0a395']=function(h){return Array['isArray'](a(h));},e['wbg']['__wbg_isSafeInteger_ae7d3f054d55fa16']=function(h){return Number['isSafeInteger'](a(h));},e['wbg']['__wbg_iterator_27b7c8b35ab3e86b']=function(){return g(Symbol['iterator']);},e['wbg']['__wbg_length_22ac23eaec9d8053']=function(h){return a(h)['length'];},e['wbg']['__wbg_length_d45040a40c570362']=function(h){return a(h)['length'];},e['wbg'][ba(0x7e)]=function(){const h=new Object();return g(h);},e[ba(0xa7)]['__wbg_new_25f239778d6112b9']=function(){const h=new Array();return g(h);},e['wbg']['__wbg_new_6421f6084cc5bc5a']=function(h){const l=new Uint8Array(a(h));return g(l);},e['wbg']['__wbg_new_8a6f238a6ece86ea']=function(){const h=new Error();return g(h);},e[ba(0xa7)][ba(0x9f)]=function(h){const l=new Date(a(h));return g(l);},e[ba(0xa7)]['__wbg_new_df1173567d5ff028']=function(h,l){const m=new Error(I(h,l));return g(m);},e['wbg']['__wbg_new_ff12d2b041fb48f1']=function(h,l){try{var m={'a':h,'b':l},s=(v,x)=>{const y=m['a'];m['a']=0x0;try{return yt(y,m['b'],v,x);}finally{m['a']=y;}};const u=new Promise(s);return g(u);}finally{m['a']=m['b']=0x0;}},e['wbg']['__wbg_new_from_slice_db0691b69e9d3891']=function(h,l){const m=new Uint32Array(ut(h,l));return g(m);},e['wbg']['__wbg_new_from_slice_f9c22b9153b26992']=function(h,l){const m=new Uint8Array(J(h,l));return g(m);},e['wbg'][ba(0x8b)]=function(h,l){const m=new Function(I(h,l));return g(m);},e['wbg']['__wbg_new_with_args_df9e7125ffe55248']=function(h,l,m,s){const u=new Function(I(h,l),I(m,s));return g(u);},e[ba(0xa7)]['__wbg_next_138a17bbf04e926c']=function(h){const l=a(h)['next'];return g(l);},e['wbg']['__wbg_next_3cfe5c0fe2a4cc53']=function(){return S(function(h){const l=a(h)['next']();return g(l);},arguments);},e[ba(0xa7)]['__wbg_now_69d776cd24f5215b']=function(){const bh=ba;return Date[bh(0x9c)]();},e['wbg'][ba(0x7f)]=function(h,l,m){Uint8Array['prototype']['set']['call'](J(h,l),a(m));},e['wbg']['__wbg_proxycontext_new']=function(h){const bi=ba,l=B[bi(0xa9)](h);return g(l);},e['wbg']['__wbg_push_7d9be8f38fc13975']=function(h,l){const bj=ba;return a(h)[bj(0x9b)](a(l));},e[ba(0xa7)]['__wbg_queueMicrotask_9b549dfce8865860']=function(h){const l=a(h)['queueMicrotask'];return g(l);},e[ba(0xa7)]['__wbg_queueMicrotask_fca69f5bfad613a5']=function(h){queueMicrotask(a(h));},e['wbg']['__wbg_resolve_fd5bfbaa4ce36e1e']=function(h){const l=Promise['resolve'](a(h));return g(l);},e[ba(0xa7)]['__wbg_set_3f1d0b984ed272ed']=function(h,l,m){a(h)[b(l)]=b(m);},e['wbg']['__wbg_set_781438a03c0c3c81']=function(){return S(function(h,l,m){return Reflect['set'](a(h),a(l),a(m));},arguments);},e['wbg']['__wbg_set_7df433eea03a5c14']=function(h,l,m){a(h)[l>>>0x0]=b(m);},e[ba(0xa7)]['__wbg_stack_0ed75d68575b0f3c']=function(h,l){const m=a(l)['stack'],s=f(m,r['__wbindgen_export'],r['__wbindgen_export2']),u=w;i()['setInt32'](h+0x4*0x1,u,!0x0),i()['setInt32'](h+0x4*0x0,s,!0x0);},e['wbg']['__wbg_static_accessor_GLOBAL_769e6b65d6557335']=function(){const h=typeof global>'u'?null:global;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1']=function(){const h=typeof globalThis>'u'?null:globalThis;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_SELF_08f5a74c69739274']=function(){const h=typeof self>'u'?null:self;return p(h)?0x0:g(h);},e['wbg']['__wbg_static_accessor_WINDOW_a8924b26aa92d024']=function(){const h=typeof window>'u'?null:window;return p(h)?0x0:g(h);},e['wbg'][ba(0x82)]=function(h,l){const m=a(h)['then'](a(l));return g(m);},e['wbg']['__wbg_typstcompiler_new']=function(h){const l=D['__wrap'](h);return g(l);},e['wbg']['__wbg_typstfontresolver_new']=function(h){const l=j['__wrap'](h);return g(l);},e[ba(0xa7)]['__wbg_value_57b7b035e117f7ee']=function(h){const l=a(h)['value'];return g(l);},e['wbg'][ba(0x77)]=function(h,l){const m=I(h,l);return g(m);},e['wbg']['__wbindgen_cast_3334ea73b4b28ba3']=function(h,l){const m=dt(h,l,r['__wasm_bindgen_func_elem_957'],lt);return g(m);},e[ba(0xa7)]['__wbindgen_cast_4625c577ab2ec9ee']=function(h){const l=BigInt['asUintN'](0x40,h);return g(l);},e['wbg'][ba(0x7a)]=function(h){return g(h);},e['wbg']['__wbindgen_cast_d6cd19b81560fd6e']=function(h){return g(h);},e['wbg']['__wbindgen_object_clone_ref']=function(h){const l=a(h);return g(l);},e[ba(0xa7)]['__wbindgen_object_drop_ref']=function(h){b(h);},e;}function d(a,b){a=a-0x69;const e=c();let f=e[a];return f;}function _t(e,h){return r=e['exports'],vt['__wbindgen_wasm_module']=h,F=null,E=null,M=null,r;}function At(h){const bk=ar;if(r!==void 0x0)return r;typeof h<'u'&&(Object['getPrototypeOf'](h)===Object['prototype']?{module:h}=h:console['warn']('using\x20deprecated\x20parameters\x20for\x20`initSync()`;\x20pass\x20a\x20single\x20object\x20instead'));const l=rt();h instanceof WebAssembly['Module']||(h=new WebAssembly[(bk(0xaa))](h));const m=new WebAssembly['Instance'](h,l);return _t(m,h);}async function vt(h){const bl=ar;if(r!==void 0x0)return r;typeof h<'u'&&(Object[bl(0x8e)](h)===Object['prototype']?{module_or_path:h}=h:console[bl(0x81)]('using\x20deprecated\x20parameters\x20for\x20the\x20initialization\x20function;\x20pass\x20a\x20single\x20object\x20instead')),typeof h>'u'&&(h=ot('typst_ts_web_compiler_bg.wasm',import.meta.url));const l=rt();(typeof h=='string'||typeof Request=='function'&&h instanceof Request||typeof URL=='function'&&h instanceof URL)&&(h=fetch(h));const {instance:m,module:o}=await mt(await h,l);return _t(m,o);}let ot=async function(e,h){const bm=ar;throw new Error(bm(0x71)+e+'\x20'+h);};function It(e){ot=e;}let xt=async function(h,l){const m=new Function('m','return\x20import(m)'),{readFileSync:s}=await m('fs'),u=new URL(h,l);return await s(u)['buffer'];};const kt=typeof process<'u'&&process['versions']!=null&&process['versions']['node']!=null;kt&&It(xt);export{A as IncrServer,B as ProxyContext,C as TypstCompileWorld,D as TypstCompiler,tt as TypstCompilerBuilder,j as TypstFontResolver,et as TypstFontResolverBuilder,vt as default,Ft as get_font_info,At as initSync,It as setImportWasmModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function b(c,d){c=c-
|
|
1
|
+
function b(c,d){c=c-0x1a3;var e=a();var f=e[c];return f;}var i=b;(function(c,d){var h=b,e=c();while(!![]){try{var f=-parseInt(h(0x1a5))/0x1*(-parseInt(h(0x1a6))/0x2)+-parseInt(h(0x1ac))/0x3+parseInt(h(0x1a3))/0x4*(parseInt(h(0x1a7))/0x5)+-parseInt(h(0x1aa))/0x6+parseInt(h(0x1a4))/0x7+-parseInt(h(0x1a8))/0x8+parseInt(h(0x1a9))/0x9*(parseInt(h(0x1ad))/0xa);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xd779e));class o{['worker']=null;constructor(c){this['worker']=c;}[i(0x1ab)](c){return this['worker']||c();}}function l(c,d=!0x1){return new o(null);}export{l as r};function a(){var j=['6377476XgUgst','483010dPbIcK','2nPOoZd','1055vTbIaM','2074056dcNJpb','3681oyjpHN','1226382LPmNcH','defaults','3926031qJkjoL','1370jCsDkR','22840XFvlBQ'];a=function(){return j;};return a();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function b(c,d){c=c-0x10d;const e=a();let f=e[c];return f;}(function(c,d){const w=b,e=c();while(!![]){try{const f=parseInt(w(0x10d))/0x1*(parseInt(w(0x110))/0x2)+-parseInt(w(0x117))/0x3+parseInt(w(0x113))/0x4*(-parseInt(w(0x118))/0x5)+parseInt(w(0x111))/0x6*(-parseInt(w(0x112))/0x7)+-parseInt(w(0x116))/0x8*(parseInt(w(0x11e))/0x9)+-parseInt(w(0x114))/0xa*(parseInt(w(0x121))/0xb)+parseInt(w(0x11c))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(h){e['push'](e['shift']());}}}(a,0x91d29));function g(d){const x=b,f=d['regex'],h=f[x(0x11f)](/[\p{L}_]/u,f['optional'](/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),j=/[\p{L}0-9._:-]+/u,k={'className':'symbol','begin':/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},m={'begin':/\s/,'contains':[{'className':'keyword','begin':/#?[a-z_][a-z1-9_-]+/,'illegal':/\n/}]},p=d[x(0x115)](m,{'begin':/\(/,'end':/\)/}),q=d[x(0x115)](d[x(0x119)],{'className':'string'}),u=d['inherit'](d['QUOTE_STRING_MODE'],{'className':x(0x10e)}),v={'endsWithParent':!0x0,'illegal':/</,'relevance':0x0,'contains':[{'className':'attr','begin':j,'relevance':0x0},{'begin':/=\s*/,'relevance':0x0,'contains':[{'className':'string','endsParent':!0x0,'variants':[{'begin':/"/,'end':/"/,'contains':[k]},{'begin':/'/,'end':/'/,'contains':[k]},{'begin':/[^\s"'=<>`]+/}]}]}]};return{'name':'HTML,\x20XML','aliases':['html','xhtml','rss',x(0x11a),x(0x11d),'xsd','xsl',x(0x10f),'wsf','svg'],'case_insensitive':!0x0,'unicodeRegex':!0x0,'contains':[{'className':'meta','begin':/<![a-z]/,'end':/>/,'relevance':0xa,'contains':[m,u,q,p,{'begin':/\[/,'end':/\]/,'contains':[{'className':x(0x11b),'begin':/<![a-z]/,'end':/>/,'contains':[m,p,u,q]}]}]},d['COMMENT'](/<!--/,/-->/,{'relevance':0xa}),{'begin':/<!\[CDATA\[/,'end':/\]\]>/,'relevance':0xa},k,{'className':'meta','end':/\?>/,'variants':[{'begin':/<\?xml/,'relevance':0xa,'contains':[u]},{'begin':/<\?[a-z][a-z0-9]+/}]},{'className':'tag','begin':/<style(?=\s|>)/,'end':/>/,'keywords':{'name':'style'},'contains':[v],'starts':{'end':/<\/style>/,'returnEnd':!0x0,'subLanguage':[x(0x120),'xml']}},{'className':'tag','begin':/<script(?=\s|>)/,'end':/>/,'keywords':{'name':'script'},'contains':[v],'starts':{'end':/<\/script>/,'returnEnd':!0x0,'subLanguage':['javascript','handlebars','xml']}},{'className':'tag','begin':/<>|<\/>/},{'className':'tag','begin':f['concat'](/</,f['lookahead'](f[x(0x11f)](h,f['either'](/\/>/,/>/,/\s/)))),'end':/\/?>/,'contains':[{'className':'name','begin':h,'relevance':0x0,'starts':v}]},{'className':'tag','begin':f[x(0x11f)](/<\//,f['lookahead'](f['concat'](h,/>/))),'contains':[{'className':'name','begin':h,'relevance':0x0},{'begin':/>/,'relevance':0x0,'endsParent':!0x0}]}]};}export{g as default};function a(){const y=['8pBemiW','10EBGDtV','inherit','8llJnYE','3338757bDWenx','2794510bbgFzK','APOS_STRING_MODE','atom','meta','50601828rgrrif','xjb','4052142DlNTJn','concat','css','6717953LsoxFp','86EAKOPr','string','plist','5752CkvTjJ','1725546KAgqNS','14mmdaXZ'];a=function(){return y;};return a();}
|