diff --git a/AppResources/ViewerBundle/assets/index-CAOhqgy0.js b/AppResources/ViewerBundle/assets/index-CAOhqgy0.js new file mode 100644 index 0000000..617d0f9 --- /dev/null +++ b/AppResources/ViewerBundle/assets/index-CAOhqgy0.js @@ -0,0 +1 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))_(o);new MutationObserver(o=>{for(const n of o)if(n.type==="childList")for(const d of n.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&_(d)}).observe(document,{childList:!0,subtree:!0});function r(o){const n={};return o.integrity&&(n.integrity=o.integrity),o.referrerPolicy&&(n.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?n.credentials="include":o.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function _(o){if(o.ep)return;o.ep=!0;const n=r(o);fetch(o.href,n)}})();class R{static __wrap(t){const r=Object.create(R.prototype);return r.__wbg_ptr=t,U.register(r,r.__wbg_ptr,r),r}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),t}free(){const t=this.__destroy_into_raw();e.__wbg_hwpdocument_free(t,0)}addBookmark(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_addBookmark(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}applyCellStyle(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_applyCellStyle(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}applyCharFormat(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_applyCharFormat(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}applyCharFormatInCell(t,r,_,o,n,d,l,i){let a,c;try{const u=b(i,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=e.hwpdocument_applyCharFormatInCell(this.__wbg_ptr,t,r,_,o,n,d,l,u,p);var s=m[0],g=m[1];if(m[3])throw s=0,g=0,w(m[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}applyCharFormatInCellByPath(t,r,_,o,n,d){let l,i;try{const s=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=e.hwpdocument_applyCharFormatInCellByPath(this.__wbg_ptr,t,r,s,g,o,n,u,p);var a=m[0],c=m[1];if(m[3])throw a=0,c=0,w(m[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}applyCharFormatInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_applyCharFormatInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}applyEndnoteShape(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_applyEndnoteShape(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}applyHfTemplate(t,r,_,o){let n,d;try{const a=e.hwpdocument_applyHfTemplate(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}applyParaFormat(t,r,_){let o,n;try{const i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_applyParaFormat(this.__wbg_ptr,t,r,i,a);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}applyParaFormatInCell(t,r,_,o,n,d){let l,i;try{const s=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_applyParaFormatInCell(this.__wbg_ptr,t,r,_,o,n,s,g);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}applyParaFormatInFootnote(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_applyParaFormatInFootnote(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}applyParaFormatInHf(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_applyParaFormatInHf(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}applyStyle(t,r,_){let o,n;try{const i=e.hwpdocument_applyStyle(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}assignPictureImage(t,r,_,o,n,d,l,i){let a,c;try{const u=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=H(n,e.__wbindgen_malloc),C=h,x=b(i,e.__wbindgen_malloc,e.__wbindgen_realloc),I=h,T=e.hwpdocument_assignPictureImage(this.__wbg_ptr,t,r,u,p,o,m,C,d,l,x,I);var s=T[0],g=T[1];if(T[3])throw s=0,g=0,w(T[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}beginBatch(){let t,r;try{const n=e.hwpdocument_beginBatch(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}beginDeferredPagination(t){let r,_;try{const d=e.hwpdocument_beginDeferredPagination(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}cancelDeferredPagination(){return e.hwpdocument_cancelDeferredPagination(this.__wbg_ptr)!==0}changeShapeZOrder(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_changeShapeZOrder(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}clearActiveField(){e.hwpdocument_clearActiveField(this.__wbg_ptr)}clearClipboard(){e.hwpdocument_clearClipboard(this.__wbg_ptr)}clipboardHasControl(){return e.hwpdocument_clipboardHasControl(this.__wbg_ptr)!==0}convertToEditable(){let t,r;try{const n=e.hwpdocument_convertToEditable(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}copyControl(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_copyControl(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}copySelection(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_copySelection(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}copySelectionInCell(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_copySelectionInCell(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}copySelectionInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_copySelectionInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}copyTableCellsTransposed(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_copyTableCellsTransposed(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}createBlankDocument(){let t,r;try{const n=e.hwpdocument_createBlankDocument(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}static createEmpty(){const t=e.hwpdocument_createEmpty();return R.__wrap(t)}createHeaderFooter(t,r,_){let o,n;try{const i=e.hwpdocument_createHeaderFooter(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}createNumbering(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;return e.hwpdocument_createNumbering(this.__wbg_ptr,r,_)}createShapeControl(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_createShapeControl(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}createStyle(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;return e.hwpdocument_createStyle(this.__wbg_ptr,r,_)}createTable(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_createTable(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}createTableEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_createTableEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}deleteBookmark(t,r,_){let o,n;try{const i=e.hwpdocument_deleteBookmark(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteCellPictureControlByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_deleteCellPictureControlByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}deleteEquationControl(t,r,_){let o,n;try{const i=e.hwpdocument_deleteEquationControl(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteFootnote(t,r,_){let o,n;try{const i=e.hwpdocument_deleteFootnote(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteHeaderFooter(t,r,_){let o,n;try{const i=e.hwpdocument_deleteHeaderFooter(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteParagraph(t,r){let _,o;try{const l=e.hwpdocument_deleteParagraph(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}deletePictureControl(t,r,_){let o,n;try{const i=e.hwpdocument_deletePictureControl(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteRange(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_deleteRange(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}deleteRangeInCell(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_deleteRangeInCell(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}deleteRangeInCellByPath(t,r,_,o,n,d,l){let i,a;try{const g=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_deleteRangeInCellByPath(this.__wbg_ptr,t,r,g,u,o,n,d,l);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}deleteRangeInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_deleteRangeInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}deleteShapeControl(t,r,_){let o,n;try{const i=e.hwpdocument_deleteShapeControl(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteStyle(t){return e.hwpdocument_deleteStyle(this.__wbg_ptr,t)!==0}deleteTableColumn(t,r,_,o){let n,d;try{const a=e.hwpdocument_deleteTableColumn(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}deleteTableControl(t,r,_){let o,n;try{const i=e.hwpdocument_deleteTableControl(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}deleteTableRow(t,r,_,o){let n,d;try{const a=e.hwpdocument_deleteTableRow(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}deleteText(t,r,_,o){let n,d;try{const a=e.hwpdocument_deleteText(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}deleteTextInCell(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_deleteTextInCell(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}deleteTextInCellByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_deleteTextInCellByPath(this.__wbg_ptr,t,r,c,s,o,n);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}deleteTextInCellDeferredPagination(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_deleteTextInCellDeferredPagination(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}deleteTextInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_deleteTextInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}deleteTextInFootnote(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_deleteTextInFootnote(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}deleteTextInHeaderFooter(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_deleteTextInHeaderFooter(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}discardSnapshot(t){e.hwpdocument_discardSnapshot(this.__wbg_ptr,t)}endBatch(){let t,r;try{const n=e.hwpdocument_endBatch(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}ensureDefaultBullet(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;return e.hwpdocument_ensureDefaultBullet(this.__wbg_ptr,r,_)}ensureDefaultNumbering(){return e.hwpdocument_ensureDefaultNumbering(this.__wbg_ptr)}evaluateTableFormula(t,r,_,o,n,d,l){let i,a;try{const g=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_evaluateTableFormula(this.__wbg_ptr,t,r,_,o,n,g,u,l);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}evaluateTableFormulaEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_evaluateTableFormulaEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}exportControlHtml(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_exportControlHtml(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}exportHml(){const t=e.hwpdocument_exportHml(this.__wbg_ptr);if(t[3])throw w(t[2]);var r=M(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),r}exportHwp(){const t=e.hwpdocument_exportHwp(this.__wbg_ptr);if(t[3])throw w(t[2]);var r=M(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),r}exportHwpVerify(){let t,r;try{const n=e.hwpdocument_exportHwpVerify(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}exportHwpx(){const t=e.hwpdocument_exportHwpx(this.__wbg_ptr);if(t[3])throw w(t[2]);var r=M(t[0],t[1]).slice();return e.__wbindgen_free(t[0],t[1]*1,1),r}exportSelectionHtml(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_exportSelectionHtml(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}exportSelectionInCellHtml(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_exportSelectionInCellHtml(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}exportSelectionInCellHtmlEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_exportSelectionInCellHtmlEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}findNearestControlBackward(t,r,_){let o,n;try{const d=e.hwpdocument_findNearestControlBackward(this.__wbg_ptr,t,r,_);return o=d[0],n=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(o,n,1)}}findNearestControlForward(t,r,_){let o,n;try{const d=e.hwpdocument_findNearestControlForward(this.__wbg_ptr,t,r,_);return o=d[0],n=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(o,n,1)}}findNextEditableControl(t,r,_,o){let n,d;try{const l=e.hwpdocument_findNextEditableControl(this.__wbg_ptr,t,r,_,o);return n=l[0],d=l[1],f(l[0],l[1])}finally{e.__wbindgen_free(n,d,1)}}findOrCreateFontId(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;return e.hwpdocument_findOrCreateFontId(this.__wbg_ptr,r,_)}findOrCreateFontIdForLang(t,r){const _=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=h;return e.hwpdocument_findOrCreateFontIdForLang(this.__wbg_ptr,t,_,o)}flushDeferredPagination(){let t,r;try{const n=e.hwpdocument_flushDeferredPagination(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}getBookmarks(){let t,r;try{const n=e.hwpdocument_getBookmarks(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}getBulletList(){let t,r;try{const _=e.hwpdocument_getBulletList(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getCanvasKitDocumentPreflight(t,r){let _,o;try{const l=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getCanvasKitDocumentPreflight(this.__wbg_ptr,l,i,a,c);var n=s[0],d=s[1];if(s[3])throw n=0,d=0,w(s[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getCanvasKitReplayPlan(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_getCanvasKitReplayPlan(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getCanvasKitReplayPlanWithProfile(t,r,_){let o,n;try{const i=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_getCanvasKitReplayPlanWithProfile(this.__wbg_ptr,t,i,a,c,s);var d=g[0],l=g[1];if(g[3])throw d=0,l=0,w(g[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getCaretPosition(){let t,r;try{const n=e.hwpdocument_getCaretPosition(this.__wbg_ptr);var _=n[0],o=n[1];if(n[3])throw _=0,o=0,w(n[2]);return t=_,r=o,f(_,o)}finally{e.__wbindgen_free(t,r,1)}}getCellCharPropertiesAt(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_getCellCharPropertiesAt(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getCellCharPropertiesAtByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getCellCharPropertiesAtByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellInfo(t,r,_,o){let n,d;try{const a=e.hwpdocument_getCellInfo(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellInfoByPath(t,r,_){let o,n;try{const i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_getCellInfoByPath(this.__wbg_ptr,t,r,i,a);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getCellOwnProperties(t,r,_,o){let n,d;try{const a=e.hwpdocument_getCellOwnProperties(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellParaPropertiesAt(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_getCellParaPropertiesAt(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getCellParagraphCount(t,r,_,o){const n=e.hwpdocument_getCellParagraphCount(this.__wbg_ptr,t,r,_,o);if(n[2])throw w(n[1]);return n[0]>>>0}getCellParagraphCountByPath(t,r,_){const o=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=e.hwpdocument_getCellParagraphCountByPath(this.__wbg_ptr,t,r,o,n);if(d[2])throw w(d[1]);return d[0]>>>0}getCellParagraphLength(t,r,_,o,n){const d=e.hwpdocument_getCellParagraphLength(this.__wbg_ptr,t,r,_,o,n);if(d[2])throw w(d[1]);return d[0]>>>0}getCellParagraphLengthByPath(t,r,_){const o=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=e.hwpdocument_getCellParagraphLengthByPath(this.__wbg_ptr,t,r,o,n);if(d[2])throw w(d[1]);return d[0]>>>0}getCellPicturePropertiesByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getCellPicturePropertiesByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellProperties(t,r,_,o){let n,d;try{const a=e.hwpdocument_getCellProperties(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellShapePropertiesByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getCellShapePropertiesByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCellStyleAt(t,r,_,o,n){let d,l;try{const i=e.hwpdocument_getCellStyleAt(this.__wbg_ptr,t,r,_,o,n);return d=i[0],l=i[1],f(i[0],i[1])}finally{e.__wbindgen_free(d,l,1)}}getCellTextDirection(t,r,_,o){const n=e.hwpdocument_getCellTextDirection(this.__wbg_ptr,t,r,_,o);if(n[2])throw w(n[1]);return n[0]>>>0}getCharPropertiesAt(t,r,_){let o,n;try{const i=e.hwpdocument_getCharPropertiesAt(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getClickHereProps(t){let r,_;try{const o=e.hwpdocument_getClickHereProps(this.__wbg_ptr,t);return r=o[0],_=o[1],f(o[0],o[1])}finally{e.__wbindgen_free(r,_,1)}}getClipboardText(){let t,r;try{const _=e.hwpdocument_getClipboardText(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getColumnDef(t){let r,_;try{const d=e.hwpdocument_getColumnDef(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getControlImageData(t,r,_,o){const n=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),d=h,l=e.hwpdocument_getControlImageData(this.__wbg_ptr,t,r,n,d,o);if(l[3])throw w(l[2]);var i=M(l[0],l[1]).slice();return e.__wbindgen_free(l[0],l[1]*1,1),i}getControlImageMime(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getControlImageMime(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getControlTextPositions(t,r){let _,o;try{const n=e.hwpdocument_getControlTextPositions(this.__wbg_ptr,t,r);return _=n[0],o=n[1],f(n[0],n[1])}finally{e.__wbindgen_free(_,o,1)}}getCursorRect(t,r,_){let o,n;try{const i=e.hwpdocument_getCursorRect(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getCursorRectByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getCursorRectByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCursorRectByPathNear(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_getCursorRectByPathNear(this.__wbg_ptr,t,r,c,s,o,n);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getCursorRectInCell(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_getCursorRectInCell(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getCursorRectInFootnote(t,r,_,o){let n,d;try{const a=e.hwpdocument_getCursorRectInFootnote(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getCursorRectInHeaderFooter(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_getCursorRectInHeaderFooter(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getCursorRectInNote(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_getCursorRectInNote(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getCursorRectOnLine(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_getCursorRectOnLine(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}getDocumentInfo(){let t,r;try{const _=e.hwpdocument_getDocumentInfo(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getDpi(){return e.hwpdocument_getDpi(this.__wbg_ptr)}getEndnoteShape(t){let r,_;try{const d=e.hwpdocument_getEndnoteShape(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getEquationProperties(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_getEquationProperties(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getEventLog(){let t,r;try{const _=e.hwpdocument_getEventLog(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getExternalImageBasenames(){let t,r;try{const _=e.hwpdocument_getExternalImageBasenames(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getExternalImageReferences(){let t,r;try{const _=e.hwpdocument_getExternalImageReferences(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getFallbackFont(){let t,r;try{const _=e.hwpdocument_getFallbackFont(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getFieldInfoAt(t,r,_){let o,n;try{const d=e.hwpdocument_getFieldInfoAt(this.__wbg_ptr,t,r,_);return o=d[0],n=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(o,n,1)}}getFieldInfoAtByPath(t,r,_,o){let n,d;try{const l=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_getFieldInfoAtByPath(this.__wbg_ptr,t,r,l,i,o);return n=a[0],d=a[1],f(a[0],a[1])}finally{e.__wbindgen_free(n,d,1)}}getFieldInfoAtInCell(t,r,_,o,n,d,l){let i,a;try{const c=e.hwpdocument_getFieldInfoAtInCell(this.__wbg_ptr,t,r,_,o,n,d,l);return i=c[0],a=c[1],f(c[0],c[1])}finally{e.__wbindgen_free(i,a,1)}}getFieldInfoAtInCellEx(t){let r,_;try{const o=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=e.hwpdocument_getFieldInfoAtInCellEx(this.__wbg_ptr,o,n);return r=d[0],_=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(r,_,1)}}getFieldList(){let t,r;try{const _=e.hwpdocument_getFieldList(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getFieldValue(t){let r,_;try{const d=e.hwpdocument_getFieldValue(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getFieldValueByName(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_getFieldValueByName(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getFootnoteAtCursor(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_getFootnoteAtCursor(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getFootnoteInfo(t,r,_){let o,n;try{const i=e.hwpdocument_getFootnoteInfo(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getFormObjectAt(t,r,_){let o,n;try{const i=e.hwpdocument_getFormObjectAt(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getFormObjectInfo(t,r,_){let o,n;try{const i=e.hwpdocument_getFormObjectInfo(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getFormValue(t,r,_){let o,n;try{const i=e.hwpdocument_getFormValue(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getHeaderFooter(t,r,_){let o,n;try{const i=e.hwpdocument_getHeaderFooter(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getHeaderFooterEditTarget(t,r){let _,o;try{const l=e.hwpdocument_getHeaderFooterEditTarget(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getHeaderFooterList(t,r,_){let o,n;try{const i=e.hwpdocument_getHeaderFooterList(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getHeaderFooterParaInfo(t,r,_,o){let n,d;try{const a=e.hwpdocument_getHeaderFooterParaInfo(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getHeaderFooterPictureProperties(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_getHeaderFooterPictureProperties(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getHmlOpenMetadata(){let t,r;try{const _=e.hwpdocument_getHmlOpenMetadata(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getHmlSaveState(){let t,r;try{const _=e.hwpdocument_getHmlSaveState(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getLineInfo(t,r,_){let o,n;try{const i=e.hwpdocument_getLineInfo(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getLineInfoInCell(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_getLineInfoInCell(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getLogicalLength(t,r){const _=e.hwpdocument_getLogicalLength(this.__wbg_ptr,t,r);if(_[2])throw w(_[1]);return _[0]>>>0}getNoteEditInfo(t,r,_){let o,n;try{const i=e.hwpdocument_getNoteEditInfo(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getNoteEquationProperties(t,r,_,o,n,d){let l,i;try{const s=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_getNoteEquationProperties(this.__wbg_ptr,s,g,r,_,o,n,d);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getNumberingList(){let t,r;try{const _=e.hwpdocument_getNumberingList(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getPageBorderFill(t){let r,_;try{const d=e.hwpdocument_getPageBorderFill(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageControlLayout(t){let r,_;try{const d=e.hwpdocument_getPageControlLayout(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageDef(t){let r,_;try{const d=e.hwpdocument_getPageDef(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageFootnoteInfo(t,r){let _,o;try{const l=e.hwpdocument_getPageFootnoteInfo(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getPageHide(t,r){let _,o;try{const l=e.hwpdocument_getPageHide(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getPageInfo(t){let r,_;try{const d=e.hwpdocument_getPageInfo(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageLayerTree(t){let r,_;try{const d=e.hwpdocument_getPageLayerTree(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageLayerTreeWithProfile(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_getPageLayerTreeWithProfile(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getPageOfPosition(t,r){let _,o;try{const l=e.hwpdocument_getPageOfPosition(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getPageOverlayImages(t){let r,_;try{const d=e.hwpdocument_getPageOverlayImages(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageRenderTree(t){let r,_;try{const d=e.hwpdocument_getPageRenderTree(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getPageTextLayout(t){let r,_;try{const d=e.hwpdocument_getPageTextLayout(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getParaPropertiesAt(t,r){let _,o;try{const l=e.hwpdocument_getParaPropertiesAt(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}getParaPropertiesInFootnote(t,r,_,o){let n,d;try{const a=e.hwpdocument_getParaPropertiesInFootnote(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getParaPropertiesInHf(t,r,_,o){let n,d;try{const a=e.hwpdocument_getParaPropertiesInHf(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getParagraphCount(t){const r=e.hwpdocument_getParagraphCount(this.__wbg_ptr,t);if(r[2])throw w(r[1]);return r[0]>>>0}getParagraphLength(t,r){const _=e.hwpdocument_getParagraphLength(this.__wbg_ptr,t,r);if(_[2])throw w(_[1]);return _[0]>>>0}getPictureProperties(t,r,_){let o,n;try{const i=e.hwpdocument_getPictureProperties(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getPositionOfPage(t){let r,_;try{const d=e.hwpdocument_getPositionOfPage(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getSectionCount(){return e.hwpdocument_getSectionCount(this.__wbg_ptr)>>>0}getSectionDef(t){let r,_;try{const d=e.hwpdocument_getSectionDef(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getSelectionRects(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_getSelectionRects(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getSelectionRectsInCell(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_getSelectionRectsInCell(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}getSelectionRectsInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_getSelectionRectsInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getSelectionRectsInFootnote(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_getSelectionRectsInFootnote(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}getShapeBBox(t,r,_){let o,n;try{const i=e.hwpdocument_getShapeBBox(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getShapeProperties(t,r,_){let o,n;try{const i=e.hwpdocument_getShapeProperties(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getShowControlCodes(){return e.hwpdocument_getShowControlCodes(this.__wbg_ptr)!==0}getShowParagraphMarks(){return e.hwpdocument_getShowParagraphMarks(this.__wbg_ptr)!==0}getShowTransparentBorders(){return e.hwpdocument_getShowTransparentBorders(this.__wbg_ptr)!==0}getSourceFormat(){let t,r;try{const _=e.hwpdocument_getSourceFormat(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getStructure(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_getStructure(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getStyleAt(t,r){let _,o;try{const n=e.hwpdocument_getStyleAt(this.__wbg_ptr,t,r);return _=n[0],o=n[1],f(n[0],n[1])}finally{e.__wbindgen_free(_,o,1)}}getStyleDetail(t){let r,_;try{const o=e.hwpdocument_getStyleDetail(this.__wbg_ptr,t);return r=o[0],_=o[1],f(o[0],o[1])}finally{e.__wbindgen_free(r,_,1)}}getStyleList(){let t,r;try{const _=e.hwpdocument_getStyleList(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}getTableBBox(t,r,_){let o,n;try{const i=e.hwpdocument_getTableBBox(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getTableBBoxAtPage(t,r,_,o){let n,d;try{const a=e.hwpdocument_getTableBBoxAtPage(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getTableCellBboxes(t,r,_,o){let n,d;try{const a=e.hwpdocument_getTableCellBboxes(this.__wbg_ptr,t,r,_,P(o)?Number.MAX_SAFE_INTEGER:o>>>0);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getTableCellBboxesByPath(t,r,_){let o,n;try{const i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_getTableCellBboxesByPath(this.__wbg_ptr,t,r,i,a);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getTableDimensions(t,r,_){let o,n;try{const i=e.hwpdocument_getTableDimensions(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getTableDimensionsByPath(t,r,_){let o,n;try{const i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_getTableDimensionsByPath(this.__wbg_ptr,t,r,i,a);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getTableProperties(t,r,_){let o,n;try{const i=e.hwpdocument_getTableProperties(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}getTextBoxControlIndex(t,r){return e.hwpdocument_getTextBoxControlIndex(this.__wbg_ptr,t,r)}getTextInCell(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_getTextInCell(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}getTextInCellByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_getTextInCellByPath(this.__wbg_ptr,t,r,c,s,o,n);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}getTextInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_getTextInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}getTextRange(t,r,_,o){let n,d;try{const a=e.hwpdocument_getTextRange(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}getValidationWarnings(){let t,r;try{const _=e.hwpdocument_getValidationWarnings(this.__wbg_ptr);return t=_[0],r=_[1],f(_[0],_[1])}finally{e.__wbindgen_free(t,r,1)}}groupShapes(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_groupShapes(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}hasInternalClipboard(){return e.hwpdocument_hasInternalClipboard(this.__wbg_ptr)!==0}hasTableTransposeClipboard(){return e.hwpdocument_hasTableTransposeClipboard(this.__wbg_ptr)!==0}hitTest(t,r,_){let o,n;try{const i=e.hwpdocument_hitTest(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}hitTestBodyFootnoteMarker(t,r,_){let o,n;try{const i=e.hwpdocument_hitTestBodyFootnoteMarker(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}hitTestFootnote(t,r,_){let o,n;try{const i=e.hwpdocument_hitTestFootnote(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}hitTestHeaderFooter(t,r,_){let o,n;try{const i=e.hwpdocument_hitTestHeaderFooter(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}hitTestInFootnote(t,r,_){let o,n;try{const i=e.hwpdocument_hitTestInFootnote(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}hitTestInHeaderFooter(t,r,_,o){let n,d;try{const a=e.hwpdocument_hitTestInHeaderFooter(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}injectExternalImage(t,r,_){const o=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=H(r,e.__wbindgen_malloc),l=h,i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h;return e.hwpdocument_injectExternalImage(this.__wbg_ptr,o,n,d,l,i,a)>>>0}injectExternalImageByKey(t,r,_){const o=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=H(r,e.__wbindgen_malloc),l=h,i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h;return e.hwpdocument_injectExternalImageByKey(this.__wbg_ptr,o,n,d,l,i,a)>>>0}insertClickHereField(t,r,_,o,n,d,l){let i,a;try{const g=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),m=h,C=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),x=h,I=e.hwpdocument_insertClickHereField(this.__wbg_ptr,t,r,_,g,u,p,m,C,x,l);var c=I[0],s=I[1];if(I[3])throw c=0,s=0,w(I[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}insertClickHereFieldByPath(t,r,_,o,n,d,l,i){let a,c;try{const u=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),C=h,x=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),I=h,T=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),L=h,F=e.hwpdocument_insertClickHereFieldByPath(this.__wbg_ptr,t,r,u,p,o,m,C,x,I,T,L,i);var s=F[0],g=F[1];if(F[3])throw s=0,g=0,w(F[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}insertClickHereFieldByPathEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_insertClickHereFieldByPathEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}insertClickHereFieldEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_insertClickHereFieldEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}insertClickHereFieldInCell(t,r,_,o,n,d,l,i,a,c,s){let g,u;try{const C=b(i,e.__wbindgen_malloc,e.__wbindgen_realloc),x=h,I=b(a,e.__wbindgen_malloc,e.__wbindgen_realloc),T=h,L=b(c,e.__wbindgen_malloc,e.__wbindgen_realloc),F=h,B=e.hwpdocument_insertClickHereFieldInCell(this.__wbg_ptr,t,r,_,o,n,d,l,C,x,I,T,L,F,s);var p=B[0],m=B[1];if(B[3])throw p=0,m=0,w(B[2]);return g=p,u=m,f(p,m)}finally{e.__wbindgen_free(g,u,1)}}insertClickHereFieldInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_insertClickHereFieldInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}insertColumnBreak(t,r,_){let o,n;try{const i=e.hwpdocument_insertColumnBreak(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}insertEndnote(t,r,_){let o,n;try{const i=e.hwpdocument_insertEndnote(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}insertEquation(t,r,_,o,n,d){let l,i;try{const s=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_insertEquation(this.__wbg_ptr,t,r,_,s,g,n,d);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}insertFieldInHf(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_insertFieldInHf(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}insertFootnote(t,r,_){let o,n;try{const i=e.hwpdocument_insertFootnote(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}insertNewNumber(t,r,_,o){let n,d;try{const a=e.hwpdocument_insertNewNumber(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}insertPageBreak(t,r,_){let o,n;try{const i=e.hwpdocument_insertPageBreak(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}insertParagraph(t,r){let _,o;try{const l=e.hwpdocument_insertParagraph(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}insertPicture(t,r,_,o,n,d,l,i,a,c,s,g,u){let p,m;try{const I=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),T=h,L=H(n,e.__wbindgen_malloc),F=h,B=b(c,e.__wbindgen_malloc,e.__wbindgen_realloc),X=h,Y=b(s,e.__wbindgen_malloc,e.__wbindgen_realloc),J=h,W=e.hwpdocument_insertPicture(this.__wbg_ptr,t,r,_,I,T,L,F,d,l,i,a,B,X,Y,J,P(g)?Number.MAX_SAFE_INTEGER:g>>0,P(u)?Number.MAX_SAFE_INTEGER:u>>0);var C=W[0],x=W[1];if(W[3])throw C=0,x=0,w(W[2]);return p=C,m=x,f(C,x)}finally{e.__wbindgen_free(p,m,1)}}insertPictureEx(t,r){let _,o;try{const l=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=H(r,e.__wbindgen_malloc),c=h,s=e.hwpdocument_insertPictureEx(this.__wbg_ptr,l,i,a,c);var n=s[0],d=s[1];if(s[3])throw n=0,d=0,w(s[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}insertTableColumn(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_insertTableColumn(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}insertTableRow(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_insertTableRow(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}insertText(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_insertText(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}insertTextInCell(t,r,_,o,n,d,l){let i,a;try{const g=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_insertTextInCell(this.__wbg_ptr,t,r,_,o,n,d,g,u);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}insertTextInCellByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_insertTextInCellByPath(this.__wbg_ptr,t,r,c,s,o,g,u);var i=p[0],a=p[1];if(p[3])throw i=0,a=0,w(p[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}insertTextInCellDeferredPagination(t,r,_,o,n,d,l){let i,a;try{const g=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_insertTextInCellDeferredPagination(this.__wbg_ptr,t,r,_,o,n,d,g,u);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}insertTextInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_insertTextInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}insertTextInFootnote(t,r,_,o,n,d){let l,i;try{const s=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_insertTextInFootnote(this.__wbg_ptr,t,r,_,o,n,s,g);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}insertTextInHeaderFooter(t,r,_,o,n,d){let l,i;try{const s=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_insertTextInHeaderFooter(this.__wbg_ptr,t,r,_,o,n,s,g);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}insertTextLogical(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_insertTextLogical(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}logicalToTextOffset(t,r,_){const o=e.hwpdocument_logicalToTextOffset(this.__wbg_ptr,t,r,_);if(o[2])throw w(o[1]);return o[0]>>>0}measureWidthDiagnostic(t,r){let _,o;try{const l=e.hwpdocument_measureWidthDiagnostic(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}mergeParagraph(t,r){let _,o;try{const l=e.hwpdocument_mergeParagraph(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}mergeParagraphInCell(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_mergeParagraphInCell(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}mergeParagraphInCellByPath(t,r,_){let o,n;try{const i=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_mergeParagraphInCellByPath(this.__wbg_ptr,t,r,i,a);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}mergeParagraphInFootnote(t,r,_,o){let n,d;try{const a=e.hwpdocument_mergeParagraphInFootnote(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}mergeParagraphInHeaderFooter(t,r,_,o){let n,d;try{const a=e.hwpdocument_mergeParagraphInHeaderFooter(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}mergeTableCells(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_mergeTableCells(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}mergeTableCellsEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_mergeTableCellsEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}moveLineEndpoint(t,r,_,o,n,d,l){let i,a;try{const g=e.hwpdocument_moveLineEndpoint(this.__wbg_ptr,t,r,_,o,n,d,l);var c=g[0],s=g[1];if(g[3])throw c=0,s=0,w(g[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}moveLineEndpointEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_moveLineEndpointEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}moveTableOffset(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_moveTableOffset(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}moveVertical(t,r,_,o,n,d,l,i,a){let c,s;try{const p=e.hwpdocument_moveVertical(this.__wbg_ptr,t,r,_,o,n,d,l,i,a);var g=p[0],u=p[1];if(p[3])throw g=0,u=0,w(p[2]);return c=g,s=u,f(g,u)}finally{e.__wbindgen_free(c,s,1)}}moveVerticalByPath(t,r,_,o,n,d){let l,i;try{const s=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_moveVerticalByPath(this.__wbg_ptr,t,r,s,g,o,n,d);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}moveVerticalEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_moveVerticalEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}navigateHeaderFooterByPage(t,r,_){let o,n;try{const i=e.hwpdocument_navigateHeaderFooterByPage(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}navigateNextEditable(t,r,_,o,n){let d,l;try{const i=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_navigateNextEditable(this.__wbg_ptr,t,r,_,o,i,a);return d=c[0],l=c[1],f(c[0],c[1])}finally{e.__wbindgen_free(d,l,1)}}constructor(t){const r=H(t,e.__wbindgen_malloc),_=h,o=e.hwpdocument_new(r,_);if(o[2])throw w(o[1]);return this.__wbg_ptr=o[0],U.register(this,this.__wbg_ptr,this),this}pageCount(){return e.hwpdocument_pageCount(this.__wbg_ptr)>>>0}pageHasFootnoteFootholds(t){return e.hwpdocument_pageHasFootnoteFootholds(this.__wbg_ptr,t)!==0}pasteControl(t,r,_){let o,n;try{const i=e.hwpdocument_pasteControl(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}pasteHtml(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_pasteHtml(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}pasteHtmlInCell(t,r,_,o,n,d,l){let i,a;try{const g=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_pasteHtmlInCell(this.__wbg_ptr,t,r,_,o,n,d,g,u);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}pasteHtmlInCellByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_pasteHtmlInCellByPath(this.__wbg_ptr,t,r,c,s,o,g,u);var i=p[0],a=p[1];if(p[3])throw i=0,a=0,w(p[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}pasteHtmlInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_pasteHtmlInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}pasteInternal(t,r,_){let o,n;try{const i=e.hwpdocument_pasteInternal(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}pasteInternalInCell(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_pasteInternalInCell(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}pasteInternalInCellByPath(t,r,_,o){let n,d;try{const a=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_pasteInternalInCellByPath(this.__wbg_ptr,t,r,a,c,o);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}pasteTableCellsTransposed(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_pasteTableCellsTransposed(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}pasteTableCellsTransposedAsTable(t,r,_){let o,n;try{const i=e.hwpdocument_pasteTableCellsTransposedAsTable(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}reflowLinesegs(){return e.hwpdocument_reflowLinesegs(this.__wbg_ptr)>>>0}removeFieldAt(t,r,_){let o,n;try{const d=e.hwpdocument_removeFieldAt(this.__wbg_ptr,t,r,_);return o=d[0],n=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(o,n,1)}}removeFieldAtInCell(t,r,_,o,n,d,l){let i,a;try{const c=e.hwpdocument_removeFieldAtInCell(this.__wbg_ptr,t,r,_,o,n,d,l);return i=c[0],a=c[1],f(c[0],c[1])}finally{e.__wbindgen_free(i,a,1)}}removeFieldAtInCellEx(t){let r,_;try{const o=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=e.hwpdocument_removeFieldAtInCellEx(this.__wbg_ptr,o,n);return r=d[0],_=d[1],f(d[0],d[1])}finally{e.__wbindgen_free(r,_,1)}}renameBookmark(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_renameBookmark(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}renderEquationPreview(t,r,_){let o,n;try{const i=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_renderEquationPreview(this.__wbg_ptr,i,a,r,_);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}renderPageCanvas(t){const r=e.hwpdocument_renderPageCanvas(this.__wbg_ptr,t);if(r[2])throw w(r[1]);return r[0]>>>0}renderPageCanvasLegacy(t){const r=e.hwpdocument_renderPageCanvasLegacy(this.__wbg_ptr,t);if(r[2])throw w(r[1]);return r[0]>>>0}renderPageHtml(t){let r,_;try{const d=e.hwpdocument_renderPageHtml(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}renderPageSvg(t){let r,_;try{const d=e.hwpdocument_renderPageSvg(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}renderPageSvgWithProfile(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_renderPageSvgWithProfile(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}renderPageToCanvas(t,r,_){const o=e.hwpdocument_renderPageToCanvas(this.__wbg_ptr,t,r,_);if(o[1])throw w(o[0])}renderPageToCanvasFiltered(t,r,_,o){const n=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),d=h,l=e.hwpdocument_renderPageToCanvasFiltered(this.__wbg_ptr,t,r,_,n,d);if(l[1])throw w(l[0])}renderPageToCanvasFilteredWithProfile(t,r,_,o,n){const d=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_renderPageToCanvasFilteredWithProfile(this.__wbg_ptr,t,r,_,d,l,i,a);if(c[1])throw w(c[0])}renderPageToCanvasLegacy(t,r,_){const o=e.hwpdocument_renderPageToCanvasLegacy(this.__wbg_ptr,t,r,_);if(o[1])throw w(o[0])}replaceAll(t,r,_){let o,n;try{const i=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_replaceAll(this.__wbg_ptr,i,a,c,s,_);var d=g[0],l=g[1];if(g[3])throw d=0,l=0,w(g[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}replaceBodyTextLocal(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_replaceBodyTextLocal(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}replaceOne(t,r,_){let o,n;try{const i=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_replaceOne(this.__wbg_ptr,i,a,c,s,_);var d=g[0],l=g[1];if(g[3])throw d=0,l=0,w(g[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}replaceText(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_replaceText(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}replaceTextInCellDeferredPagination(t,r,_,o,n,d,l,i){let a,c;try{const u=b(i,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=e.hwpdocument_replaceTextInCellDeferredPagination(this.__wbg_ptr,t,r,_,o,n,d,l,u,p);var s=m[0],g=m[1];if(m[3])throw s=0,g=0,w(m[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}resizeTableCells(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_resizeTableCells(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}restoreSnapshot(t){let r,_;try{const d=e.hwpdocument_restoreSnapshot(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}saveSnapshot(){return e.hwpdocument_saveSnapshot(this.__wbg_ptr)>>>0}searchAllText(t,r,_){let o,n;try{const i=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=e.hwpdocument_searchAllText(this.__wbg_ptr,i,a,r,_);var d=c[0],l=c[1];if(c[3])throw d=0,l=0,w(c[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}searchText(t,r,_,o,n,d){let l,i;try{const s=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_searchText(this.__wbg_ptr,s,g,r,_,o,n,d);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}setActiveField(t,r,_){return e.hwpdocument_setActiveField(this.__wbg_ptr,t,r,_)!==0}setActiveFieldByPath(t,r,_,o){const n=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),d=h;return e.hwpdocument_setActiveFieldByPath(this.__wbg_ptr,t,r,n,d,o)!==0}setActiveFieldInCell(t,r,_,o,n,d,l){return e.hwpdocument_setActiveFieldInCell(this.__wbg_ptr,t,r,_,o,n,d,l)!==0}setActiveFieldInCellEx(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;return e.hwpdocument_setActiveFieldInCellEx(this.__wbg_ptr,r,_)!==0}setCellParaShapeId(t,r,_,o,n,d){let l,i;try{const s=e.hwpdocument_setCellParaShapeId(this.__wbg_ptr,t,r,_,o,n,d);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}setCellPicturePropertiesByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_setCellPicturePropertiesByPath(this.__wbg_ptr,t,r,c,s,o,g,u);var i=p[0],a=p[1];if(p[3])throw i=0,a=0,w(p[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}setCellProperties(t,r,_,o,n){let d,l;try{const c=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=e.hwpdocument_setCellProperties(this.__wbg_ptr,t,r,_,o,c,s);var i=g[0],a=g[1];if(g[3])throw i=0,a=0,w(g[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}setCellShapePropertiesByPath(t,r,_,o,n){let d,l;try{const c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_setCellShapePropertiesByPath(this.__wbg_ptr,t,r,c,s,o,g,u);var i=p[0],a=p[1];if(p[3])throw i=0,a=0,w(p[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}setCellZoneProperties(t,r,_,o,n,d,l,i){let a,c;try{const u=b(i,e.__wbindgen_malloc,e.__wbindgen_realloc),p=h,m=e.hwpdocument_setCellZoneProperties(this.__wbg_ptr,t,r,_,o,n,d,l,u,p);var s=m[0],g=m[1];if(m[3])throw s=0,g=0,w(m[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}setCharShapeId(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_setCharShapeId(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}setCharShapeIdInCell(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_setCharShapeIdInCell(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}setCharShapeIdInCellByPath(t,r,_,o,n,d){let l,i;try{const s=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_setCharShapeIdInCellByPath(this.__wbg_ptr,t,r,s,g,o,n,d);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}setCharShapeIdInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_setCharShapeIdInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}setClipEnabled(t){e.hwpdocument_setClipEnabled(this.__wbg_ptr,t)}setColumnDef(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_setColumnDef(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}setDpi(t){e.hwpdocument_setDpi(this.__wbg_ptr,t)}setEquationProperties(t,r,_,o,n,d){let l,i;try{const s=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_setEquationProperties(this.__wbg_ptr,t,r,_,o,n,s,g);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}setFallbackFont(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;e.hwpdocument_setFallbackFont(this.__wbg_ptr,r,_)}setFieldValue(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_setFieldValue(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}setFieldValueByName(t,r){let _,o;try{const l=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_setFieldValueByName(this.__wbg_ptr,l,i,a,c);var n=s[0],d=s[1];if(s[3])throw n=0,d=0,w(s[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}setFileName(t){const r=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=h;e.hwpdocument_setFileName(this.__wbg_ptr,r,_)}setFormValue(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_setFormValue(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}setFormValueInCell(t,r,_,o,n,d,l){let i,a;try{const g=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_setFormValueInCell(this.__wbg_ptr,t,r,_,o,n,d,g,u);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}setFormValueInCellEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_setFormValueInCellEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}setHeaderFooterPictureProperties(t,r,_,o,n,d){let l,i;try{const s=b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),g=h,u=e.hwpdocument_setHeaderFooterPictureProperties(this.__wbg_ptr,t,r,_,o,n,s,g);var a=u[0],c=u[1];if(u[3])throw a=0,c=0,w(u[2]);return l=a,i=c,f(a,c)}finally{e.__wbindgen_free(l,i,1)}}setNoteEquationProperties(t,r,_,o,n,d,l){let i,a;try{const g=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),m=h,C=e.hwpdocument_setNoteEquationProperties(this.__wbg_ptr,g,u,r,_,o,n,d,p,m);var c=C[0],s=C[1];if(C[3])throw c=0,s=0,w(C[2]);return i=c,a=s,f(c,s)}finally{e.__wbindgen_free(i,a,1)}}setNoteEquationPropertiesEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_setNoteEquationPropertiesEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}setNumberingRestart(t,r,_,o){let n,d;try{const a=e.hwpdocument_setNumberingRestart(this.__wbg_ptr,t,r,_,o);var l=a[0],i=a[1];if(a[3])throw l=0,i=0,w(a[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}setPageBorderFill(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_setPageBorderFill(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}setPageDef(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_setPageDef(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}setPageHide(t,r,_,o,n,d,l,i){let a,c;try{const u=e.hwpdocument_setPageHide(this.__wbg_ptr,t,r,_,o,n,d,l,i);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return a=s,c=g,f(s,g)}finally{e.__wbindgen_free(a,c,1)}}setPageHideEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_setPageHideEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}setParaShapeId(t,r,_){let o,n;try{const i=e.hwpdocument_setParaShapeId(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}setPictureProperties(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_setPictureProperties(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}setSectionDef(t,r){let _,o;try{const l=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h,a=e.hwpdocument_setSectionDef(this.__wbg_ptr,t,l,i);var n=a[0],d=a[1];if(a[3])throw n=0,d=0,w(a[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}setSectionDefAll(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_setSectionDefAll(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}setShapeProperties(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_setShapeProperties(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}setShowControlCodes(t){e.hwpdocument_setShowControlCodes(this.__wbg_ptr,t)}setShowParagraphMarks(t){e.hwpdocument_setShowParagraphMarks(this.__wbg_ptr,t)}setShowTransparentBorders(t){e.hwpdocument_setShowTransparentBorders(this.__wbg_ptr,t)}setTableProperties(t,r,_,o){let n,d;try{const a=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h,s=e.hwpdocument_setTableProperties(this.__wbg_ptr,t,r,_,a,c);var l=s[0],i=s[1];if(s[3])throw l=0,i=0,w(s[2]);return n=l,d=i,f(l,i)}finally{e.__wbindgen_free(n,d,1)}}set_debug_overlay(t){e.hwpdocument_set_debug_overlay(this.__wbg_ptr,t)}set_respect_vpos_reset(t){e.hwpdocument_set_respect_vpos_reset(this.__wbg_ptr,t)}splitParagraph(t,r,_,o){let n,d;try{var l=P(o)?0:b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),i=h;const s=e.hwpdocument_splitParagraph(this.__wbg_ptr,t,r,_,l,i);var a=s[0],c=s[1];if(s[3])throw a=0,c=0,w(s[2]);return n=a,d=c,f(a,c)}finally{e.__wbindgen_free(n,d,1)}}splitParagraphInCell(t,r,_,o,n,d,l){let i,a;try{var c=P(l)?0:b(l,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h;const p=e.hwpdocument_splitParagraphInCell(this.__wbg_ptr,t,r,_,o,n,d,c,s);var g=p[0],u=p[1];if(p[3])throw g=0,u=0,w(p[2]);return i=g,a=u,f(g,u)}finally{e.__wbindgen_free(i,a,1)}}splitParagraphInCellByPath(t,r,_,o,n){let d,l;try{const g=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h;var i=P(n)?0:b(n,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h;const p=e.hwpdocument_splitParagraphInCellByPath(this.__wbg_ptr,t,r,g,u,o,i,a);var c=p[0],s=p[1];if(p[3])throw c=0,s=0,w(p[2]);return d=c,l=s,f(c,s)}finally{e.__wbindgen_free(d,l,1)}}splitParagraphInFootnote(t,r,_,o,n,d){let l,i;try{var a=P(d)?0:b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h;const u=e.hwpdocument_splitParagraphInFootnote(this.__wbg_ptr,t,r,_,o,n,a,c);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return l=s,i=g,f(s,g)}finally{e.__wbindgen_free(l,i,1)}}splitParagraphInHeaderFooter(t,r,_,o,n,d){let l,i;try{var a=P(d)?0:b(d,e.__wbindgen_malloc,e.__wbindgen_realloc),c=h;const u=e.hwpdocument_splitParagraphInHeaderFooter(this.__wbg_ptr,t,r,_,o,n,a,c);var s=u[0],g=u[1];if(u[3])throw s=0,g=0,w(u[2]);return l=s,i=g,f(s,g)}finally{e.__wbindgen_free(l,i,1)}}splitTableCell(t,r,_,o,n){let d,l;try{const c=e.hwpdocument_splitTableCell(this.__wbg_ptr,t,r,_,o,n);var i=c[0],a=c[1];if(c[3])throw i=0,a=0,w(c[2]);return d=i,l=a,f(i,a)}finally{e.__wbindgen_free(d,l,1)}}splitTableCellInto(t,r,_,o,n,d,l,i,a){let c,s;try{const p=e.hwpdocument_splitTableCellInto(this.__wbg_ptr,t,r,_,o,n,d,l,i,a);var g=p[0],u=p[1];if(p[3])throw g=0,u=0,w(p[2]);return c=g,s=u,f(g,u)}finally{e.__wbindgen_free(c,s,1)}}splitTableCellIntoEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_splitTableCellIntoEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}splitTableCellsInRange(t,r,_,o,n,d,l,i,a,c){let s,g;try{const m=e.hwpdocument_splitTableCellsInRange(this.__wbg_ptr,t,r,_,o,n,d,l,i,a,c);var u=m[0],p=m[1];if(m[3])throw u=0,p=0,w(m[2]);return s=u,g=p,f(u,p)}finally{e.__wbindgen_free(s,g,1)}}splitTableCellsInRangeEx(t){let r,_;try{const d=b(t,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h,i=e.hwpdocument_splitTableCellsInRangeEx(this.__wbg_ptr,d,l);var o=i[0],n=i[1];if(i[3])throw o=0,n=0,w(i[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}stepDeferredPagination(t){let r,_;try{const d=e.hwpdocument_stepDeferredPagination(this.__wbg_ptr,t);var o=d[0],n=d[1];if(d[3])throw o=0,n=0,w(d[2]);return r=o,_=n,f(o,n)}finally{e.__wbindgen_free(r,_,1)}}textToLogicalOffset(t,r,_){const o=e.hwpdocument_textToLogicalOffset(this.__wbg_ptr,t,r,_);if(o[2])throw w(o[1]);return o[0]>>>0}toggleHideHeaderFooter(t,r){let _,o;try{const l=e.hwpdocument_toggleHideHeaderFooter(this.__wbg_ptr,t,r);var n=l[0],d=l[1];if(l[3])throw n=0,d=0,w(l[2]);return _=n,o=d,f(n,d)}finally{e.__wbindgen_free(_,o,1)}}transposeTableCellsInPlace(t,r,_){let o,n;try{const i=e.hwpdocument_transposeTableCellsInPlace(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}ungroupShape(t,r,_){let o,n;try{const i=e.hwpdocument_ungroupShape(this.__wbg_ptr,t,r,_);var d=i[0],l=i[1];if(i[3])throw d=0,l=0,w(i[2]);return o=d,n=l,f(d,l)}finally{e.__wbindgen_free(o,n,1)}}updateClickHereProps(t,r,_,o,n){let d,l;try{const i=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),a=h,c=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),s=h,g=b(o,e.__wbindgen_malloc,e.__wbindgen_realloc),u=h,p=e.hwpdocument_updateClickHereProps(this.__wbg_ptr,t,i,a,c,s,g,u,n);return d=p[0],l=p[1],f(p[0],p[1])}finally{e.__wbindgen_free(d,l,1)}}updateConnectorsInSection(t){e.hwpdocument_updateConnectorsInSection(this.__wbg_ptr,t)}updateStyle(t,r){const _=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=h;return e.hwpdocument_updateStyle(this.__wbg_ptr,t,_,o)!==0}updateStyleShapes(t,r,_){const o=b(r,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h,d=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),l=h;return e.hwpdocument_updateStyleShapes(this.__wbg_ptr,t,o,n,d,l)!==0}}Symbol.dispose&&(R.prototype[Symbol.dispose]=R.prototype.free);function Q(){let y,t;try{const r=e.version();return y=r[0],t=r[1],f(r[0],r[1])}finally{e.__wbindgen_free(y,t,1)}}function ee(){return{__proto__:null,"./rhwp_bg.js":{__proto__:null,__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(t){return t===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(t,r){throw new Error(f(t,r))},__wbg_addColorStop_d8d26268addcc37f:function(){return v(function(t,r,_,o){t.addColorStop(r,f(_,o))},arguments)},__wbg_arcTo_030671497547c6fa:function(){return v(function(t,r,_,o,n,d){t.arcTo(r,_,o,n,d)},arguments)},__wbg_arc_74cf0c033e9df542:function(){return v(function(t,r,_,o,n,d){t.arc(r,_,o,n,d)},arguments)},__wbg_beginPath_c99b5be3516a2077:function(t){t.beginPath()},__wbg_bezierCurveTo_22132b66df298a0b:function(t,r,_,o,n,d,l){t.bezierCurveTo(r,_,o,n,d,l)},__wbg_clearRect_844ea1fa6026e6b1:function(t,r,_,o,n){t.clearRect(r,_,o,n)},__wbg_clip_8ac1823db730edf8:function(t){t.clip()},__wbg_closePath_47136fd7a8a2f043:function(t){t.closePath()},__wbg_complete_30e748f517efbba7:function(t){return t.complete},__wbg_createElement_9e23ac95e40e302c:function(){return v(function(t,r,_){return t.createElement(f(r,_))},arguments)},__wbg_createLinearGradient_e941e9b32e45fd4d:function(t,r,_,o,n){return t.createLinearGradient(r,_,o,n)},__wbg_createPattern_3478569326f74b57:function(){return v(function(t,r,_,o){const n=t.createPattern(r,f(_,o));return P(n)?0:S(n)},arguments)},__wbg_createRadialGradient_f005132888c69736:function(){return v(function(t,r,_,o,n,d,l){return t.createRadialGradient(r,_,o,n,d,l)},arguments)},__wbg_document_2634180a4c694068:function(t){const r=t.document;return P(r)?0:S(r)},__wbg_drawImage_09ec9d21672d9050:function(){return v(function(t,r,_,o,n,d){t.drawImage(r,_,o,n,d)},arguments)},__wbg_drawImage_73c15f7176721ca4:function(){return v(function(t,r,_,o,n,d,l,i,a,c){t.drawImage(r,_,o,n,d,l,i,a,c)},arguments)},__wbg_drawImage_7a34d4ec316e9b66:function(){return v(function(t,r,_,o,n,d,l,i,a,c){t.drawImage(r,_,o,n,d,l,i,a,c)},arguments)},__wbg_drawImage_a7e0087acea080d1:function(){return v(function(t,r,_,o,n,d){t.drawImage(r,_,o,n,d)},arguments)},__wbg_ellipse_69edbc4c6b78175b:function(){return v(function(t,r,_,o,n,d,l,i){t.ellipse(r,_,o,n,d,l,i)},arguments)},__wbg_error_a6fa202b58aa1cd3:function(t,r){let _,o;try{_=t,o=r,console.error(f(t,r))}finally{e.__wbindgen_free(_,o,1)}},__wbg_fillRect_3c420f5077df8d3b:function(t,r,_,o,n){t.fillRect(r,_,o,n)},__wbg_fillText_cdea0ac33ff3d2d1:function(){return v(function(t,r,_,o,n){t.fillText(f(r,_),o,n)},arguments)},__wbg_fill_b39141050e50c461:function(t){t.fill()},__wbg_getContext_486aab500e1c34c9:function(){return v(function(t,r,_){const o=t.getContext(f(r,_));return P(o)?0:S(o)},arguments)},__wbg_height_a04613570d793df2:function(t){return t.height},__wbg_instanceof_CanvasRenderingContext2d_d0cab9e931424c52:function(t){let r;try{r=t instanceof CanvasRenderingContext2D}catch{r=!1}return r},__wbg_instanceof_HtmlCanvasElement_8ce29a370a2b10a4:function(t){let r;try{r=t instanceof HTMLCanvasElement}catch{r=!1}return r},__wbg_instanceof_Window_0d356b88a2f77c42:function(t){let r;try{r=t instanceof Window}catch{r=!1}return r},__wbg_lineTo_2a649fce185f0bf0:function(t,r,_){t.lineTo(r,_)},__wbg_measureText_e19eb06d922845ef:function(){return v(function(t,r,_){return t.measureText(f(r,_))},arguments)},__wbg_moveTo_8973531c3399ba16:function(t,r,_){t.moveTo(r,_)},__wbg_naturalWidth_5c95710d6c0ff97a:function(t){return t.naturalWidth},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_36e147a8ced3c6e0:function(){return new Array},__wbg_new_ca1920fd471d29cf:function(){return v(function(){return new Image},arguments)},__wbg_new_with_u8_clamped_array_and_sh_adb3f647b0414eb2:function(){return v(function(t,r,_,o){return new ImageData(te(t,r),_>>>0,o>>>0)},arguments)},__wbg_of_3ed679d45555e384:function(t,r){return Array.of(t,r)},__wbg_push_f724b5db8acf89d2:function(t,r){return t.push(r)},__wbg_putImageData_d36ffa8305aea239:function(){return v(function(t,r,_,o){t.putImageData(r,_,o)},arguments)},__wbg_quadraticCurveTo_fbe34acd0fc81443:function(t,r,_,o,n){t.quadraticCurveTo(r,_,o,n)},__wbg_rect_ec6fe62084b85fe8:function(t,r,_,o,n){t.rect(r,_,o,n)},__wbg_restore_6d0b3ce5b0ed7f95:function(t){t.restore()},__wbg_rotate_752e71c58c20a87b:function(){return v(function(t,r){t.rotate(r)},arguments)},__wbg_save_38619d761125d8ce:function(t){t.save()},__wbg_scale_9ba8ea52032e5849:function(){return v(function(t,r,_){t.scale(r,_)},arguments)},__wbg_setLineDash_7394cefd476e675f:function(){return v(function(t,r){t.setLineDash(r)},arguments)},__wbg_set_fillStyle_35471aa9a10a6686:function(t,r,_){t.fillStyle=f(r,_)},__wbg_set_fillStyle_f1c2f1fa8e51c4d8:function(t,r){t.fillStyle=r},__wbg_set_fillStyle_f62049a82dbcd6e2:function(t,r){t.fillStyle=r},__wbg_set_filter_3d4de6c6964b41ad:function(t,r,_){t.filter=f(r,_)},__wbg_set_font_e2bce6175ef42bc3:function(t,r,_){t.font=f(r,_)},__wbg_set_globalAlpha_60fedcc06aa9a61c:function(t,r){t.globalAlpha=r},__wbg_set_height_ad5056ea051acd78:function(t,r){t.height=r>>>0},__wbg_set_lineCap_d2d08bad90cdbd14:function(t,r,_){t.lineCap=f(r,_)},__wbg_set_lineWidth_fef15cb5c15a6cdc:function(t,r){t.lineWidth=r},__wbg_set_shadowBlur_062c1f25276f0434:function(t,r){t.shadowBlur=r},__wbg_set_shadowColor_100ad7306fd5addf:function(t,r,_){t.shadowColor=f(r,_)},__wbg_set_shadowOffsetX_61a6196c2ef7006c:function(t,r){t.shadowOffsetX=r},__wbg_set_shadowOffsetY_545ef89bd50db5bd:function(t,r){t.shadowOffsetY=r},__wbg_set_src_00190c2976c83211:function(t,r,_){t.src=f(r,_)},__wbg_set_strokeStyle_d494db5851ff0dbd:function(t,r,_){t.strokeStyle=f(r,_)},__wbg_set_textAlign_8cc28de727b5df6f:function(t,r,_){t.textAlign=f(r,_)},__wbg_set_textBaseline_6f233751bd79619e:function(t,r,_){t.textBaseline=f(r,_)},__wbg_set_width_031bdecd763c5855:function(t,r){t.width=r>>>0},__wbg_stack_3b0d974bbf31e44f:function(t,r){const _=r.stack,o=b(_,e.__wbindgen_malloc,e.__wbindgen_realloc),n=h;$().setInt32(t+4,n,!0),$().setInt32(t+0,o,!0)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){const t=typeof globalThis>"u"?null:globalThis;return P(t)?0:S(t)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){const t=typeof global>"u"?null:global;return P(t)?0:S(t)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){const t=typeof self>"u"?null:self;return P(t)?0:S(t)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){const t=typeof window>"u"?null:window;return P(t)?0:S(t)},__wbg_strokeRect_a9cb57c3713e908d:function(t,r,_,o,n){t.strokeRect(r,_,o,n)},__wbg_strokeText_cb4bcb210ee49c63:function(){return v(function(t,r,_,o,n){t.strokeText(f(r,_),o,n)},arguments)},__wbg_stroke_d0c2cfbe28711bcb:function(t){t.stroke()},__wbg_translate_6e0bcb06249a8f57:function(){return v(function(t,r,_){t.translate(r,_)},arguments)},__wbg_width_278a5d63ceedc79b:function(t){return t.width},__wbg_width_c8740d5bdf596189:function(t){return t.width},__wbindgen_cast_0000000000000001:function(t){return t},__wbindgen_cast_0000000000000002:function(t,r){return f(t,r)},__wbindgen_init_externref_table:function(){const t=e.__wbindgen_externrefs,r=t.grow(4);t.set(0,void 0),t.set(r+0,void 0),t.set(r+1,null),t.set(r+2,!0),t.set(r+3,!1)}}}}const U=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(y=>e.__wbg_hwpdocument_free(y,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(y=>e.__wbg_hwpviewer_free(y,1));function S(y){const t=e.__externref_table_alloc();return e.__wbindgen_externrefs.set(t,y),t}function M(y,t){return y=y>>>0,A().subarray(y/1,y/1+t)}function te(y,t){return y=y>>>0,re().subarray(y/1,y/1+t)}let E=null;function $(){return(E===null||E.buffer.detached===!0||E.buffer.detached===void 0&&E.buffer!==e.memory.buffer)&&(E=new DataView(e.memory.buffer)),E}function f(y,t){return ne(y>>>0,t)}let N=null;function A(){return(N===null||N.byteLength===0)&&(N=new Uint8Array(e.memory.buffer)),N}let k=null;function re(){return(k===null||k.byteLength===0)&&(k=new Uint8ClampedArray(e.memory.buffer)),k}function v(y,t){try{return y.apply(this,t)}catch(r){const _=S(r);e.__wbindgen_exn_store(_)}}function P(y){return y==null}function H(y,t){const r=t(y.length*1,1)>>>0;return A().set(y,r/1),h=y.length,r}function b(y,t,r){if(r===void 0){const l=O.encode(y),i=t(l.length,1)>>>0;return A().subarray(i,i+l.length).set(l),h=l.length,i}let _=y.length,o=t(_,1)>>>0;const n=A();let d=0;for(;d<_;d++){const l=y.charCodeAt(d);if(l>127)break;n[o+d]=l}if(d!==_){d!==0&&(y=y.slice(d)),o=r(o,_,_=d+y.length*3,1)>>>0;const l=A().subarray(o+d,o+_),i=O.encodeInto(y,l);d+=i.written,o=r(o,_,d,1)>>>0}return h=d,o}function w(y){const t=e.__wbindgen_externrefs.get(y);return e.__externref_table_dealloc(y),t}let q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});q.decode();const _e=2146435072;let j=0;function ne(y,t){return j+=t,j>=_e&&(q=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),q.decode(),j=t),q.decode(A().subarray(y,y+t))}const O=new TextEncoder;"encodeInto"in O||(O.encodeInto=function(y,t){const r=O.encode(y);return t.set(r),{read:y.length,written:r.length}});let h=0,e;function oe(y,t){return e=y.exports,E=null,N=null,k=null,e.__wbindgen_start(),e}async function de(y,t){if(typeof Response=="function"&&y instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(y,t)}catch(o){if(y.ok&&r(y.type)&&y.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",o);else throw o}const _=await y.arrayBuffer();return await WebAssembly.instantiate(_,t)}else{const _=await WebAssembly.instantiate(y,t);return _ instanceof WebAssembly.Instance?{instance:_,module:y}:_}function r(_){switch(_){case"basic":case"cors":case"default":return!0}return!1}}async function ie(y){if(e!==void 0)return e;y!==void 0&&(Object.getPrototypeOf(y)===Object.prototype?{module_or_path:y}=y:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),y===void 0&&(y=new URL(""+new URL("rhwp_bg-CyTz_Bvf.wasm",import.meta.url).href,import.meta.url));const t=ee();(typeof y=="string"||typeof Request=="function"&&y instanceof Request||typeof URL=="function"&&y instanceof URL)&&(y=fetch(y));const{instance:r,module:_}=await de(await y,t);return oe(r)}const le=""+new URL("rhwp_bg-CyTz_Bvf.wasm",import.meta.url).href,K=document.querySelector("#pages"),Z=document.querySelector("#error-message");if(!K||!Z)throw new Error("Viewer shell is missing required elements.");const V=K,ae=Z;let D=null,G="";globalThis.measureTextWidth=(y,t)=>(D||(D=document.createElement("canvas").getContext("2d")),D?(y!==G&&(D.font=y,G=y),D.measureText(t).width):t.length*10);const z=y=>{window.webkit?.messageHandlers?.viewer?.postMessage(y)},ce=(y,t=!1)=>{ae.textContent=y,document.body.classList.add("has-error"),z({type:"renderError",message:y,recoverable:t})};class se{document=null;observer=null;pageCount=0;pageInfos=[];renderedPages=new Set;currentPageIndex=-1;userZoom=1;fitScale=1;constructor(){window.addEventListener("resize",()=>this.updateFitScale()),window.addEventListener("orientationchange",()=>{window.setTimeout(()=>this.updateFitScale(),150)})}async loadCurrentDocument(){try{await ie({module_or_path:le});const t=await fetch("./document/current",{cache:"no-store"});if(!t.ok)throw new Error(`문서 데이터를 읽을 수 없습니다. (${t.status})`);const r=decodeURIComponent(t.headers.get("X-Document-Name")??"document.hwp"),_=new Uint8Array(await t.arrayBuffer());this.document?.free(),this.document=new R(_),this.pageCount=this.document.pageCount(),this.pageInfos=this.collectPageInfo(),this.buildPlaceholders(),this.updateFitScale(),document.body.classList.add("is-loaded"),document.body.classList.remove("has-error"),z({type:"loaded",pageCount:this.pageCount,fileName:r,rhwpVersion:Q()})}catch(t){ce(t instanceof Error?t.message:String(t))}}setZoom(t){this.userZoom=Number.isFinite(t)?Math.min(4,Math.max(.35,t)):1,this.applyDisplaySizes()}renderAllPages(){if(!this.document)return!1;for(let t=0;t{const r=t.filter(_=>_.isIntersecting).map(_=>Number(_.target.dataset.pageIndex)).filter(Number.isFinite).sort((_,o)=>_-o);for(const _ of r)this.renderPage(_);r.length>0&&r[0]!==this.currentPageIndex&&(this.currentPageIndex=r[0],z({type:"pageChanged",pageIndex:r[0]}))},{rootMargin:"900px 0px 900px 0px",threshold:.05});for(let t=0;t0&&(t.style.setProperty("--page-width",`${o}px`),this.applyDisplaySizes()),Number.isFinite(n)&&n>0&&t.style.setProperty("--page-height",`${n}px`)}updateFitScale(){const t=this.pageInfos.find(_=>Number.isFinite(_.width)&&(_.width??0)>0)?.width??794,r=Math.max(240,window.innerWidth||document.documentElement.clientWidth||390);this.fitScale=Math.min(2.5,Math.max(.2,r/t)),this.applyDisplaySizes()}applyDisplaySizes(){const t=V.querySelectorAll(".page");for(const r of t){const _=Number(r.dataset.pageIndex),o=Number.isFinite(_)?this.pageInfos[_]:void 0,n=this.readPageDimension(r,"--page-width",o?.width,794),d=this.readPageDimension(r,"--page-height",o?.height,1123),l=n*this.fitScale*this.userZoom,i=d*this.fitScale*this.userZoom;r.style.setProperty("--display-width",`${l}px`),r.style.setProperty("--display-height",`${i}px`)}}readPageDimension(t,r,_,o){if(Number.isFinite(_)&&_&&_>0)return _;const n=Number.parseFloat(t.style.getPropertyValue(r));return Number.isFinite(n)&&n>0?n:o}}window.RHWPViewer=new se;window.RHWPViewer.loadCurrentDocument(); diff --git a/AppResources/ViewerBundle/assets/index-mJXUQ_mt.js b/AppResources/ViewerBundle/assets/index-mJXUQ_mt.js deleted file mode 100644 index 2c25de7..0000000 --- a/AppResources/ViewerBundle/assets/index-mJXUQ_mt.js +++ /dev/null @@ -1 +0,0 @@ -(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const _ of document.querySelectorAll('link[rel="modulepreload"]'))r(_);new MutationObserver(_=>{for(const d of _)if(d.type==="childList")for(const n of d.addedNodes)n.tagName==="LINK"&&n.rel==="modulepreload"&&r(n)}).observe(document,{childList:!0,subtree:!0});function t(_){const d={};return _.integrity&&(d.integrity=_.integrity),_.referrerPolicy&&(d.referrerPolicy=_.referrerPolicy),_.crossOrigin==="use-credentials"?d.credentials="include":_.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function r(_){if(_.ep)return;_.ep=!0;const d=t(_);fetch(_.href,d)}})();class T{static __wrap(e){const t=Object.create(T.prototype);return t.__wbg_ptr=e,R.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,R.unregister(this),e}free(){const e=this.__destroy_into_raw();o.__wbg_hwpdocument_free(e,0)}addBookmark(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_addBookmark(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}applyCellStyle(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_applyCellStyle(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}applyCharFormat(e,t,r,_,d){let n,a;try{const s=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_applyCharFormat(this.__wbg_ptr,e,t,r,_,s,c);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}applyCharFormatInCell(e,t,r,_,d,n,a,i){let l,s;try{const h=b(i,o.__wbindgen_malloc,o.__wbindgen_realloc),y=u,v=o.hwpdocument_applyCharFormatInCell(this.__wbg_ptr,e,t,r,_,d,n,a,h,y);var c=v[0],g=v[1];if(v[3])throw c=0,g=0,w(v[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}applyHfTemplate(e,t,r,_){let d,n;try{const l=o.hwpdocument_applyHfTemplate(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}applyParaFormat(e,t,r){let _,d;try{const i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_applyParaFormat(this.__wbg_ptr,e,t,i,l);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}applyParaFormatInCell(e,t,r,_,d,n){let a,i;try{const c=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_applyParaFormatInCell(this.__wbg_ptr,e,t,r,_,d,c,g);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}applyParaFormatInHf(e,t,r,_,d){let n,a;try{const s=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_applyParaFormatInHf(this.__wbg_ptr,e,t,r,_,s,c);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}applyStyle(e,t,r){let _,d;try{const i=o.hwpdocument_applyStyle(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}beginBatch(){let e,t;try{const d=o.hwpdocument_beginBatch(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}changeShapeZOrder(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_changeShapeZOrder(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}clearActiveField(){o.hwpdocument_clearActiveField(this.__wbg_ptr)}clearClipboard(){o.hwpdocument_clearClipboard(this.__wbg_ptr)}clipboardHasControl(){return o.hwpdocument_clipboardHasControl(this.__wbg_ptr)!==0}convertToEditable(){let e,t;try{const d=o.hwpdocument_convertToEditable(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}copyControl(e,t,r){let _,d;try{const i=o.hwpdocument_copyControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}copySelection(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_copySelection(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}copySelectionInCell(e,t,r,_,d,n,a,i){let l,s;try{const h=o.hwpdocument_copySelectionInCell(this.__wbg_ptr,e,t,r,_,d,n,a,i);var c=h[0],g=h[1];if(h[3])throw c=0,g=0,w(h[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}createBlankDocument(){let e,t;try{const d=o.hwpdocument_createBlankDocument(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}static createEmpty(){const e=o.hwpdocument_createEmpty();return T.__wrap(e)}createHeaderFooter(e,t,r){let _,d;try{const i=o.hwpdocument_createHeaderFooter(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}createNumbering(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;return o.hwpdocument_createNumbering(this.__wbg_ptr,t,r)}createShapeControl(e){let t,r;try{const n=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u,i=o.hwpdocument_createShapeControl(this.__wbg_ptr,n,a);var _=i[0],d=i[1];if(i[3])throw _=0,d=0,w(i[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}createStyle(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;return o.hwpdocument_createStyle(this.__wbg_ptr,t,r)}createTable(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_createTable(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}createTableEx(e){let t,r;try{const n=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u,i=o.hwpdocument_createTableEx(this.__wbg_ptr,n,a);var _=i[0],d=i[1];if(i[3])throw _=0,d=0,w(i[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}deleteBookmark(e,t,r){let _,d;try{const i=o.hwpdocument_deleteBookmark(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteEquationControl(e,t,r){let _,d;try{const i=o.hwpdocument_deleteEquationControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteFootnote(e,t,r){let _,d;try{const i=o.hwpdocument_deleteFootnote(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteHeaderFooter(e,t,r){let _,d;try{const i=o.hwpdocument_deleteHeaderFooter(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteParagraph(e,t){let r,_;try{const a=o.hwpdocument_deleteParagraph(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}deletePictureControl(e,t,r){let _,d;try{const i=o.hwpdocument_deletePictureControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteRange(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_deleteRange(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}deleteRangeInCell(e,t,r,_,d,n,a,i){let l,s;try{const h=o.hwpdocument_deleteRangeInCell(this.__wbg_ptr,e,t,r,_,d,n,a,i);var c=h[0],g=h[1];if(h[3])throw c=0,g=0,w(h[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}deleteShapeControl(e,t,r){let _,d;try{const i=o.hwpdocument_deleteShapeControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteStyle(e){return o.hwpdocument_deleteStyle(this.__wbg_ptr,e)!==0}deleteTableColumn(e,t,r,_){let d,n;try{const l=o.hwpdocument_deleteTableColumn(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}deleteTableControl(e,t,r){let _,d;try{const i=o.hwpdocument_deleteTableControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}deleteTableRow(e,t,r,_){let d,n;try{const l=o.hwpdocument_deleteTableRow(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}deleteText(e,t,r,_){let d,n;try{const l=o.hwpdocument_deleteText(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}deleteTextInCell(e,t,r,_,d,n,a){let i,l;try{const g=o.hwpdocument_deleteTextInCell(this.__wbg_ptr,e,t,r,_,d,n,a);var s=g[0],c=g[1];if(g[3])throw s=0,c=0,w(g[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}deleteTextInCellByPath(e,t,r,_,d){let n,a;try{const s=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_deleteTextInCellByPath(this.__wbg_ptr,e,t,s,c,_,d);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}deleteTextInFootnote(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_deleteTextInFootnote(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}deleteTextInHeaderFooter(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_deleteTextInHeaderFooter(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}discardSnapshot(e){o.hwpdocument_discardSnapshot(this.__wbg_ptr,e)}endBatch(){let e,t;try{const d=o.hwpdocument_endBatch(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}ensureDefaultBullet(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;return o.hwpdocument_ensureDefaultBullet(this.__wbg_ptr,t,r)}ensureDefaultNumbering(){return o.hwpdocument_ensureDefaultNumbering(this.__wbg_ptr)}evaluateTableFormula(e,t,r,_,d,n,a){let i,l;try{const g=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_evaluateTableFormula(this.__wbg_ptr,e,t,r,_,d,g,h,a);var s=y[0],c=y[1];if(y[3])throw s=0,c=0,w(y[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}exportControlHtml(e,t,r){let _,d;try{const i=o.hwpdocument_exportControlHtml(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}exportHwp(){const e=o.hwpdocument_exportHwp(this.__wbg_ptr);if(e[3])throw w(e[2]);var t=D(e[0],e[1]).slice();return o.__wbindgen_free(e[0],e[1]*1,1),t}exportHwpVerify(){let e,t;try{const d=o.hwpdocument_exportHwpVerify(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}exportHwpx(){const e=o.hwpdocument_exportHwpx(this.__wbg_ptr);if(e[3])throw w(e[2]);var t=D(e[0],e[1]).slice();return o.__wbindgen_free(e[0],e[1]*1,1),t}exportSelectionHtml(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_exportSelectionHtml(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}exportSelectionInCellHtml(e,t,r,_,d,n,a,i){let l,s;try{const h=o.hwpdocument_exportSelectionInCellHtml(this.__wbg_ptr,e,t,r,_,d,n,a,i);var c=h[0],g=h[1];if(h[3])throw c=0,g=0,w(h[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}findNearestControlBackward(e,t,r){let _,d;try{const n=o.hwpdocument_findNearestControlBackward(this.__wbg_ptr,e,t,r);return _=n[0],d=n[1],f(n[0],n[1])}finally{o.__wbindgen_free(_,d,1)}}findNearestControlForward(e,t,r){let _,d;try{const n=o.hwpdocument_findNearestControlForward(this.__wbg_ptr,e,t,r);return _=n[0],d=n[1],f(n[0],n[1])}finally{o.__wbindgen_free(_,d,1)}}findNextEditableControl(e,t,r,_){let d,n;try{const a=o.hwpdocument_findNextEditableControl(this.__wbg_ptr,e,t,r,_);return d=a[0],n=a[1],f(a[0],a[1])}finally{o.__wbindgen_free(d,n,1)}}findOrCreateFontId(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;return o.hwpdocument_findOrCreateFontId(this.__wbg_ptr,t,r)}findOrCreateFontIdForLang(e,t){const r=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=u;return o.hwpdocument_findOrCreateFontIdForLang(this.__wbg_ptr,e,r,_)}getBookmarks(){let e,t;try{const d=o.hwpdocument_getBookmarks(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}getBulletList(){let e,t;try{const r=o.hwpdocument_getBulletList(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getCanvasKitReplayPlan(e,t){let r,_;try{const a=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=o.hwpdocument_getCanvasKitReplayPlan(this.__wbg_ptr,e,a,i);var d=l[0],n=l[1];if(l[3])throw d=0,n=0,w(l[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}getCaretPosition(){let e,t;try{const d=o.hwpdocument_getCaretPosition(this.__wbg_ptr);var r=d[0],_=d[1];if(d[3])throw r=0,_=0,w(d[2]);return e=r,t=_,f(r,_)}finally{o.__wbindgen_free(e,t,1)}}getCellCharPropertiesAt(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_getCellCharPropertiesAt(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}getCellInfo(e,t,r,_){let d,n;try{const l=o.hwpdocument_getCellInfo(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getCellInfoByPath(e,t,r){let _,d;try{const i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_getCellInfoByPath(this.__wbg_ptr,e,t,i,l);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getCellParaPropertiesAt(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_getCellParaPropertiesAt(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}getCellParagraphCount(e,t,r,_){const d=o.hwpdocument_getCellParagraphCount(this.__wbg_ptr,e,t,r,_);if(d[2])throw w(d[1]);return d[0]>>>0}getCellParagraphCountByPath(e,t,r){const _=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),d=u,n=o.hwpdocument_getCellParagraphCountByPath(this.__wbg_ptr,e,t,_,d);if(n[2])throw w(n[1]);return n[0]>>>0}getCellParagraphLength(e,t,r,_,d){const n=o.hwpdocument_getCellParagraphLength(this.__wbg_ptr,e,t,r,_,d);if(n[2])throw w(n[1]);return n[0]>>>0}getCellParagraphLengthByPath(e,t,r){const _=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),d=u,n=o.hwpdocument_getCellParagraphLengthByPath(this.__wbg_ptr,e,t,_,d);if(n[2])throw w(n[1]);return n[0]>>>0}getCellProperties(e,t,r,_){let d,n;try{const l=o.hwpdocument_getCellProperties(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getCellStyleAt(e,t,r,_,d){let n,a;try{const i=o.hwpdocument_getCellStyleAt(this.__wbg_ptr,e,t,r,_,d);return n=i[0],a=i[1],f(i[0],i[1])}finally{o.__wbindgen_free(n,a,1)}}getCellTextDirection(e,t,r,_){const d=o.hwpdocument_getCellTextDirection(this.__wbg_ptr,e,t,r,_);if(d[2])throw w(d[1]);return d[0]>>>0}getCharPropertiesAt(e,t,r){let _,d;try{const i=o.hwpdocument_getCharPropertiesAt(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getClickHereProps(e){let t,r;try{const _=o.hwpdocument_getClickHereProps(this.__wbg_ptr,e);return t=_[0],r=_[1],f(_[0],_[1])}finally{o.__wbindgen_free(t,r,1)}}getClipboardText(){let e,t;try{const r=o.hwpdocument_getClipboardText(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getColumnDef(e){let t,r;try{const n=o.hwpdocument_getColumnDef(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getControlImageData(e,t,r){const _=o.hwpdocument_getControlImageData(this.__wbg_ptr,e,t,r);if(_[3])throw w(_[2]);var d=D(_[0],_[1]).slice();return o.__wbindgen_free(_[0],_[1]*1,1),d}getControlImageMime(e,t,r){let _,d;try{const i=o.hwpdocument_getControlImageMime(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getControlTextPositions(e,t){let r,_;try{const d=o.hwpdocument_getControlTextPositions(this.__wbg_ptr,e,t);return r=d[0],_=d[1],f(d[0],d[1])}finally{o.__wbindgen_free(r,_,1)}}getCursorRect(e,t,r){let _,d;try{const i=o.hwpdocument_getCursorRect(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getCursorRectByPath(e,t,r,_){let d,n;try{const l=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_getCursorRectByPath(this.__wbg_ptr,e,t,l,s,_);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getCursorRectInCell(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_getCursorRectInCell(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}getCursorRectInFootnote(e,t,r,_){let d,n;try{const l=o.hwpdocument_getCursorRectInFootnote(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getCursorRectInHeaderFooter(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_getCursorRectInHeaderFooter(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}getDocumentInfo(){let e,t;try{const r=o.hwpdocument_getDocumentInfo(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getDpi(){return o.hwpdocument_getDpi(this.__wbg_ptr)}getEquationProperties(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_getEquationProperties(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}getEventLog(){let e,t;try{const r=o.hwpdocument_getEventLog(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getExternalImageBasenames(){let e,t;try{const r=o.hwpdocument_getExternalImageBasenames(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getFallbackFont(){let e,t;try{const r=o.hwpdocument_getFallbackFont(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getFieldInfoAt(e,t,r){let _,d;try{const n=o.hwpdocument_getFieldInfoAt(this.__wbg_ptr,e,t,r);return _=n[0],d=n[1],f(n[0],n[1])}finally{o.__wbindgen_free(_,d,1)}}getFieldInfoAtByPath(e,t,r,_){let d,n;try{const a=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=o.hwpdocument_getFieldInfoAtByPath(this.__wbg_ptr,e,t,a,i,_);return d=l[0],n=l[1],f(l[0],l[1])}finally{o.__wbindgen_free(d,n,1)}}getFieldInfoAtInCell(e,t,r,_,d,n,a){let i,l;try{const s=o.hwpdocument_getFieldInfoAtInCell(this.__wbg_ptr,e,t,r,_,d,n,a);return i=s[0],l=s[1],f(s[0],s[1])}finally{o.__wbindgen_free(i,l,1)}}getFieldList(){let e,t;try{const r=o.hwpdocument_getFieldList(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getFieldValue(e){let t,r;try{const n=o.hwpdocument_getFieldValue(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getFieldValueByName(e){let t,r;try{const n=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u,i=o.hwpdocument_getFieldValueByName(this.__wbg_ptr,n,a);var _=i[0],d=i[1];if(i[3])throw _=0,d=0,w(i[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getFootnoteAtCursor(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_getFootnoteAtCursor(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getFootnoteInfo(e,t,r){let _,d;try{const i=o.hwpdocument_getFootnoteInfo(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getFormObjectAt(e,t,r){let _,d;try{const i=o.hwpdocument_getFormObjectAt(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getFormObjectInfo(e,t,r){let _,d;try{const i=o.hwpdocument_getFormObjectInfo(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getFormValue(e,t,r){let _,d;try{const i=o.hwpdocument_getFormValue(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getHeaderFooter(e,t,r){let _,d;try{const i=o.hwpdocument_getHeaderFooter(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getHeaderFooterList(e,t,r){let _,d;try{const i=o.hwpdocument_getHeaderFooterList(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getHeaderFooterParaInfo(e,t,r,_){let d,n;try{const l=o.hwpdocument_getHeaderFooterParaInfo(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getHeaderFooterPictureProperties(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_getHeaderFooterPictureProperties(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}getLineInfo(e,t,r){let _,d;try{const i=o.hwpdocument_getLineInfo(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getLineInfoInCell(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_getLineInfoInCell(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}getLogicalLength(e,t){const r=o.hwpdocument_getLogicalLength(this.__wbg_ptr,e,t);if(r[2])throw w(r[1]);return r[0]>>>0}getNumberingList(){let e,t;try{const r=o.hwpdocument_getNumberingList(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getPageControlLayout(e){let t,r;try{const n=o.hwpdocument_getPageControlLayout(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageDef(e){let t,r;try{const n=o.hwpdocument_getPageDef(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageFootnoteInfo(e,t){let r,_;try{const a=o.hwpdocument_getPageFootnoteInfo(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}getPageHide(e,t){let r,_;try{const a=o.hwpdocument_getPageHide(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}getPageInfo(e){let t,r;try{const n=o.hwpdocument_getPageInfo(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageLayerTree(e){let t,r;try{const n=o.hwpdocument_getPageLayerTree(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageOfPosition(e,t){let r,_;try{const a=o.hwpdocument_getPageOfPosition(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}getPageOverlayImages(e){let t,r;try{const n=o.hwpdocument_getPageOverlayImages(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageRenderTree(e){let t,r;try{const n=o.hwpdocument_getPageRenderTree(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getPageTextLayout(e){let t,r;try{const n=o.hwpdocument_getPageTextLayout(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getParaPropertiesAt(e,t){let r,_;try{const a=o.hwpdocument_getParaPropertiesAt(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}getParaPropertiesInHf(e,t,r,_){let d,n;try{const l=o.hwpdocument_getParaPropertiesInHf(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getParagraphCount(e){const t=o.hwpdocument_getParagraphCount(this.__wbg_ptr,e);if(t[2])throw w(t[1]);return t[0]>>>0}getParagraphLength(e,t){const r=o.hwpdocument_getParagraphLength(this.__wbg_ptr,e,t);if(r[2])throw w(r[1]);return r[0]>>>0}getPictureProperties(e,t,r){let _,d;try{const i=o.hwpdocument_getPictureProperties(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getPositionOfPage(e){let t,r;try{const n=o.hwpdocument_getPositionOfPage(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getSectionCount(){return o.hwpdocument_getSectionCount(this.__wbg_ptr)>>>0}getSectionDef(e){let t,r;try{const n=o.hwpdocument_getSectionDef(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}getSelectionRects(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_getSelectionRects(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}getSelectionRectsInCell(e,t,r,_,d,n,a,i){let l,s;try{const h=o.hwpdocument_getSelectionRectsInCell(this.__wbg_ptr,e,t,r,_,d,n,a,i);var c=h[0],g=h[1];if(h[3])throw c=0,g=0,w(h[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}getShapeBBox(e,t,r){let _,d;try{const i=o.hwpdocument_getShapeBBox(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getShapeProperties(e,t,r){let _,d;try{const i=o.hwpdocument_getShapeProperties(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getShowControlCodes(){return o.hwpdocument_getShowControlCodes(this.__wbg_ptr)!==0}getShowTransparentBorders(){return o.hwpdocument_getShowTransparentBorders(this.__wbg_ptr)!==0}getSourceFormat(){let e,t;try{const r=o.hwpdocument_getSourceFormat(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getStyleAt(e,t){let r,_;try{const d=o.hwpdocument_getStyleAt(this.__wbg_ptr,e,t);return r=d[0],_=d[1],f(d[0],d[1])}finally{o.__wbindgen_free(r,_,1)}}getStyleDetail(e){let t,r;try{const _=o.hwpdocument_getStyleDetail(this.__wbg_ptr,e);return t=_[0],r=_[1],f(_[0],_[1])}finally{o.__wbindgen_free(t,r,1)}}getStyleList(){let e,t;try{const r=o.hwpdocument_getStyleList(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}getTableBBox(e,t,r){let _,d;try{const i=o.hwpdocument_getTableBBox(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getTableCellBboxes(e,t,r,_){let d,n;try{const l=o.hwpdocument_getTableCellBboxes(this.__wbg_ptr,e,t,r,P(_)?Number.MAX_SAFE_INTEGER:_>>>0);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getTableCellBboxesByPath(e,t,r){let _,d;try{const i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_getTableCellBboxesByPath(this.__wbg_ptr,e,t,i,l);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getTableDimensions(e,t,r){let _,d;try{const i=o.hwpdocument_getTableDimensions(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getTableDimensionsByPath(e,t,r){let _,d;try{const i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_getTableDimensionsByPath(this.__wbg_ptr,e,t,i,l);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getTableProperties(e,t,r){let _,d;try{const i=o.hwpdocument_getTableProperties(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}getTextBoxControlIndex(e,t){return o.hwpdocument_getTextBoxControlIndex(this.__wbg_ptr,e,t)}getTextInCell(e,t,r,_,d,n,a){let i,l;try{const g=o.hwpdocument_getTextInCell(this.__wbg_ptr,e,t,r,_,d,n,a);var s=g[0],c=g[1];if(g[3])throw s=0,c=0,w(g[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}getTextInCellByPath(e,t,r,_,d){let n,a;try{const s=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_getTextInCellByPath(this.__wbg_ptr,e,t,s,c,_,d);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}getTextRange(e,t,r,_){let d,n;try{const l=o.hwpdocument_getTextRange(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}getValidationWarnings(){let e,t;try{const r=o.hwpdocument_getValidationWarnings(this.__wbg_ptr);return e=r[0],t=r[1],f(r[0],r[1])}finally{o.__wbindgen_free(e,t,1)}}groupShapes(e){let t,r;try{const n=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u,i=o.hwpdocument_groupShapes(this.__wbg_ptr,n,a);var _=i[0],d=i[1];if(i[3])throw _=0,d=0,w(i[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}hasInternalClipboard(){return o.hwpdocument_hasInternalClipboard(this.__wbg_ptr)!==0}hitTest(e,t,r){let _,d;try{const i=o.hwpdocument_hitTest(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}hitTestBodyFootnoteMarker(e,t,r){let _,d;try{const i=o.hwpdocument_hitTestBodyFootnoteMarker(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}hitTestFootnote(e,t,r){let _,d;try{const i=o.hwpdocument_hitTestFootnote(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}hitTestHeaderFooter(e,t,r){let _,d;try{const i=o.hwpdocument_hitTestHeaderFooter(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}hitTestInFootnote(e,t,r){let _,d;try{const i=o.hwpdocument_hitTestInFootnote(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}hitTestInHeaderFooter(e,t,r,_){let d,n;try{const l=o.hwpdocument_hitTestInHeaderFooter(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}injectExternalImage(e,t,r){const _=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),d=u,n=N(t,o.__wbindgen_malloc),a=u,i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u;return o.hwpdocument_injectExternalImage(this.__wbg_ptr,_,d,n,a,i,l)>>>0}insertColumnBreak(e,t,r){let _,d;try{const i=o.hwpdocument_insertColumnBreak(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}insertEquation(e,t,r,_,d,n){let a,i;try{const c=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_insertEquation(this.__wbg_ptr,e,t,r,c,g,d,n);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}insertFieldInHf(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_insertFieldInHf(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}insertFootnote(e,t,r){let _,d;try{const i=o.hwpdocument_insertFootnote(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}insertNewNumber(e,t,r,_){let d,n;try{const l=o.hwpdocument_insertNewNumber(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}insertPageBreak(e,t,r){let _,d;try{const i=o.hwpdocument_insertPageBreak(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}insertParagraph(e,t){let r,_;try{const a=o.hwpdocument_insertParagraph(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}insertPicture(e,t,r,_,d,n,a,i,l,s){let c,g;try{const v=N(_,o.__wbindgen_malloc),q=u,z=b(l,o.__wbindgen_malloc,o.__wbindgen_realloc),j=u,U=b(s,o.__wbindgen_malloc,o.__wbindgen_realloc),$=u,H=o.hwpdocument_insertPicture(this.__wbg_ptr,e,t,r,v,q,d,n,a,i,z,j,U,$);var h=H[0],y=H[1];if(H[3])throw h=0,y=0,w(H[2]);return c=h,g=y,f(h,y)}finally{o.__wbindgen_free(c,g,1)}}insertTableColumn(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_insertTableColumn(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}insertTableRow(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_insertTableRow(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}insertText(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_insertText(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}insertTextInCell(e,t,r,_,d,n,a){let i,l;try{const g=b(a,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_insertTextInCell(this.__wbg_ptr,e,t,r,_,d,n,g,h);var s=y[0],c=y[1];if(y[3])throw s=0,c=0,w(y[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}insertTextInCellByPath(e,t,r,_,d){let n,a;try{const s=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_insertTextInCellByPath(this.__wbg_ptr,e,t,s,c,_,g,h);var i=y[0],l=y[1];if(y[3])throw i=0,l=0,w(y[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}insertTextInFootnote(e,t,r,_,d,n){let a,i;try{const c=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_insertTextInFootnote(this.__wbg_ptr,e,t,r,_,d,c,g);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}insertTextInHeaderFooter(e,t,r,_,d,n){let a,i;try{const c=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_insertTextInHeaderFooter(this.__wbg_ptr,e,t,r,_,d,c,g);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}insertTextLogical(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_insertTextLogical(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}logicalToTextOffset(e,t,r){const _=o.hwpdocument_logicalToTextOffset(this.__wbg_ptr,e,t,r);if(_[2])throw w(_[1]);return _[0]>>>0}measureWidthDiagnostic(e,t){let r,_;try{const a=o.hwpdocument_measureWidthDiagnostic(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}mergeParagraph(e,t){let r,_;try{const a=o.hwpdocument_mergeParagraph(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}mergeParagraphInCell(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_mergeParagraphInCell(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}mergeParagraphInCellByPath(e,t,r){let _,d;try{const i=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_mergeParagraphInCellByPath(this.__wbg_ptr,e,t,i,l);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}mergeParagraphInFootnote(e,t,r,_){let d,n;try{const l=o.hwpdocument_mergeParagraphInFootnote(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}mergeParagraphInHeaderFooter(e,t,r,_){let d,n;try{const l=o.hwpdocument_mergeParagraphInHeaderFooter(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}mergeTableCells(e,t,r,_,d,n,a){let i,l;try{const g=o.hwpdocument_mergeTableCells(this.__wbg_ptr,e,t,r,_,d,n,a);var s=g[0],c=g[1];if(g[3])throw s=0,c=0,w(g[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}moveLineEndpoint(e,t,r,_,d,n,a){let i,l;try{const g=o.hwpdocument_moveLineEndpoint(this.__wbg_ptr,e,t,r,_,d,n,a);var s=g[0],c=g[1];if(g[3])throw s=0,c=0,w(g[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}moveTableOffset(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_moveTableOffset(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}moveVertical(e,t,r,_,d,n,a,i,l){let s,c;try{const y=o.hwpdocument_moveVertical(this.__wbg_ptr,e,t,r,_,d,n,a,i,l);var g=y[0],h=y[1];if(y[3])throw g=0,h=0,w(y[2]);return s=g,c=h,f(g,h)}finally{o.__wbindgen_free(s,c,1)}}moveVerticalByPath(e,t,r,_,d,n){let a,i;try{const c=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_moveVerticalByPath(this.__wbg_ptr,e,t,c,g,_,d,n);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}navigateHeaderFooterByPage(e,t,r){let _,d;try{const i=o.hwpdocument_navigateHeaderFooterByPage(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}navigateNextEditable(e,t,r,_,d){let n,a;try{const i=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_navigateNextEditable(this.__wbg_ptr,e,t,r,_,i,l);return n=s[0],a=s[1],f(s[0],s[1])}finally{o.__wbindgen_free(n,a,1)}}constructor(e){const t=N(e,o.__wbindgen_malloc),r=u,_=o.hwpdocument_new(t,r);if(_[2])throw w(_[1]);return this.__wbg_ptr=_[0],R.register(this,this.__wbg_ptr,this),this}pageCount(){return o.hwpdocument_pageCount(this.__wbg_ptr)>>>0}pasteControl(e,t,r){let _,d;try{const i=o.hwpdocument_pasteControl(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}pasteHtml(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_pasteHtml(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}pasteHtmlInCell(e,t,r,_,d,n,a){let i,l;try{const g=b(a,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_pasteHtmlInCell(this.__wbg_ptr,e,t,r,_,d,n,g,h);var s=y[0],c=y[1];if(y[3])throw s=0,c=0,w(y[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}pasteInternal(e,t,r){let _,d;try{const i=o.hwpdocument_pasteInternal(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}pasteInternalInCell(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_pasteInternalInCell(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}reflowLinesegs(){return o.hwpdocument_reflowLinesegs(this.__wbg_ptr)>>>0}removeFieldAt(e,t,r){let _,d;try{const n=o.hwpdocument_removeFieldAt(this.__wbg_ptr,e,t,r);return _=n[0],d=n[1],f(n[0],n[1])}finally{o.__wbindgen_free(_,d,1)}}removeFieldAtInCell(e,t,r,_,d,n,a){let i,l;try{const s=o.hwpdocument_removeFieldAtInCell(this.__wbg_ptr,e,t,r,_,d,n,a);return i=s[0],l=s[1],f(s[0],s[1])}finally{o.__wbindgen_free(i,l,1)}}renameBookmark(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_renameBookmark(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}renderEquationPreview(e,t,r){let _,d;try{const i=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_renderEquationPreview(this.__wbg_ptr,i,l,t,r);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}renderPageCanvas(e){const t=o.hwpdocument_renderPageCanvas(this.__wbg_ptr,e);if(t[2])throw w(t[1]);return t[0]>>>0}renderPageCanvasLegacy(e){const t=o.hwpdocument_renderPageCanvasLegacy(this.__wbg_ptr,e);if(t[2])throw w(t[1]);return t[0]>>>0}renderPageHtml(e){let t,r;try{const n=o.hwpdocument_renderPageHtml(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}renderPageSvg(e){let t,r;try{const n=o.hwpdocument_renderPageSvg(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}renderPageToCanvas(e,t,r){const _=o.hwpdocument_renderPageToCanvas(this.__wbg_ptr,e,t,r);if(_[1])throw w(_[0])}renderPageToCanvasFiltered(e,t,r,_){const d=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),n=u,a=o.hwpdocument_renderPageToCanvasFiltered(this.__wbg_ptr,e,t,r,d,n);if(a[1])throw w(a[0])}renderPageToCanvasLegacy(e,t,r){const _=o.hwpdocument_renderPageToCanvasLegacy(this.__wbg_ptr,e,t,r);if(_[1])throw w(_[0])}replaceAll(e,t,r){let _,d;try{const i=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_replaceAll(this.__wbg_ptr,i,l,s,c,r);var n=g[0],a=g[1];if(g[3])throw n=0,a=0,w(g[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}replaceOne(e,t,r){let _,d;try{const i=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_replaceOne(this.__wbg_ptr,i,l,s,c,r);var n=g[0],a=g[1];if(g[3])throw n=0,a=0,w(g[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}replaceText(e,t,r,_,d){let n,a;try{const s=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_replaceText(this.__wbg_ptr,e,t,r,_,s,c);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}resizeTableCells(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_resizeTableCells(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}restoreSnapshot(e){let t,r;try{const n=o.hwpdocument_restoreSnapshot(this.__wbg_ptr,e);var _=n[0],d=n[1];if(n[3])throw _=0,d=0,w(n[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}saveSnapshot(){return o.hwpdocument_saveSnapshot(this.__wbg_ptr)>>>0}searchAllText(e,t,r){let _,d;try{const i=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=o.hwpdocument_searchAllText(this.__wbg_ptr,i,l,t,r);var n=s[0],a=s[1];if(s[3])throw n=0,a=0,w(s[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}searchText(e,t,r,_,d,n){let a,i;try{const c=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_searchText(this.__wbg_ptr,c,g,t,r,_,d,n);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}setActiveField(e,t,r){return o.hwpdocument_setActiveField(this.__wbg_ptr,e,t,r)!==0}setActiveFieldByPath(e,t,r,_){const d=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),n=u;return o.hwpdocument_setActiveFieldByPath(this.__wbg_ptr,e,t,d,n,_)!==0}setActiveFieldInCell(e,t,r,_,d,n,a){return o.hwpdocument_setActiveFieldInCell(this.__wbg_ptr,e,t,r,_,d,n,a)!==0}setCellProperties(e,t,r,_,d){let n,a;try{const s=b(d,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=o.hwpdocument_setCellProperties(this.__wbg_ptr,e,t,r,_,s,c);var i=g[0],l=g[1];if(g[3])throw i=0,l=0,w(g[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}setClipEnabled(e){o.hwpdocument_setClipEnabled(this.__wbg_ptr,e)}setColumnDef(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_setColumnDef(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}setDpi(e){o.hwpdocument_setDpi(this.__wbg_ptr,e)}setEquationProperties(e,t,r,_,d,n){let a,i;try{const c=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_setEquationProperties(this.__wbg_ptr,e,t,r,_,d,c,g);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}setFallbackFont(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;o.hwpdocument_setFallbackFont(this.__wbg_ptr,t,r)}setFieldValue(e,t){let r,_;try{const a=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=o.hwpdocument_setFieldValue(this.__wbg_ptr,e,a,i);var d=l[0],n=l[1];if(l[3])throw d=0,n=0,w(l[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}setFieldValueByName(e,t){let r,_;try{const a=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_setFieldValueByName(this.__wbg_ptr,a,i,l,s);var d=c[0],n=c[1];if(c[3])throw d=0,n=0,w(c[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}setFileName(e){const t=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),r=u;o.hwpdocument_setFileName(this.__wbg_ptr,t,r)}setFormValue(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_setFormValue(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}setFormValueInCell(e,t,r,_,d,n,a){let i,l;try{const g=b(a,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_setFormValueInCell(this.__wbg_ptr,e,t,r,_,d,n,g,h);var s=y[0],c=y[1];if(y[3])throw s=0,c=0,w(y[2]);return i=s,l=c,f(s,c)}finally{o.__wbindgen_free(i,l,1)}}setHeaderFooterPictureProperties(e,t,r,_,d,n){let a,i;try{const c=b(n,o.__wbindgen_malloc,o.__wbindgen_realloc),g=u,h=o.hwpdocument_setHeaderFooterPictureProperties(this.__wbg_ptr,e,t,r,_,d,c,g);var l=h[0],s=h[1];if(h[3])throw l=0,s=0,w(h[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}setNumberingRestart(e,t,r,_){let d,n;try{const l=o.hwpdocument_setNumberingRestart(this.__wbg_ptr,e,t,r,_);var a=l[0],i=l[1];if(l[3])throw a=0,i=0,w(l[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}setPageDef(e,t){let r,_;try{const a=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=o.hwpdocument_setPageDef(this.__wbg_ptr,e,a,i);var d=l[0],n=l[1];if(l[3])throw d=0,n=0,w(l[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}setPageHide(e,t,r,_,d,n,a,i){let l,s;try{const h=o.hwpdocument_setPageHide(this.__wbg_ptr,e,t,r,_,d,n,a,i);var c=h[0],g=h[1];if(h[3])throw c=0,g=0,w(h[2]);return l=c,s=g,f(c,g)}finally{o.__wbindgen_free(l,s,1)}}setPictureProperties(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_setPictureProperties(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}setSectionDef(e,t){let r,_;try{const a=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),i=u,l=o.hwpdocument_setSectionDef(this.__wbg_ptr,e,a,i);var d=l[0],n=l[1];if(l[3])throw d=0,n=0,w(l[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}setSectionDefAll(e){let t,r;try{const n=b(e,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u,i=o.hwpdocument_setSectionDefAll(this.__wbg_ptr,n,a);var _=i[0],d=i[1];if(i[3])throw _=0,d=0,w(i[2]);return t=_,r=d,f(_,d)}finally{o.__wbindgen_free(t,r,1)}}setShapeProperties(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_setShapeProperties(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}setShowControlCodes(e){o.hwpdocument_setShowControlCodes(this.__wbg_ptr,e)}setShowParagraphMarks(e){o.hwpdocument_setShowParagraphMarks(this.__wbg_ptr,e)}setShowTransparentBorders(e){o.hwpdocument_setShowTransparentBorders(this.__wbg_ptr,e)}setTableProperties(e,t,r,_){let d,n;try{const l=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_setTableProperties(this.__wbg_ptr,e,t,r,l,s);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}set_debug_overlay(e){o.hwpdocument_set_debug_overlay(this.__wbg_ptr,e)}set_respect_vpos_reset(e){o.hwpdocument_set_respect_vpos_reset(this.__wbg_ptr,e)}splitParagraph(e,t,r){let _,d;try{const i=o.hwpdocument_splitParagraph(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}splitParagraphInCell(e,t,r,_,d,n){let a,i;try{const c=o.hwpdocument_splitParagraphInCell(this.__wbg_ptr,e,t,r,_,d,n);var l=c[0],s=c[1];if(c[3])throw l=0,s=0,w(c[2]);return a=l,i=s,f(l,s)}finally{o.__wbindgen_free(a,i,1)}}splitParagraphInCellByPath(e,t,r,_){let d,n;try{const l=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),s=u,c=o.hwpdocument_splitParagraphInCellByPath(this.__wbg_ptr,e,t,l,s,_);var a=c[0],i=c[1];if(c[3])throw a=0,i=0,w(c[2]);return d=a,n=i,f(a,i)}finally{o.__wbindgen_free(d,n,1)}}splitParagraphInFootnote(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_splitParagraphInFootnote(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}splitParagraphInHeaderFooter(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_splitParagraphInHeaderFooter(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}splitTableCell(e,t,r,_,d){let n,a;try{const s=o.hwpdocument_splitTableCell(this.__wbg_ptr,e,t,r,_,d);var i=s[0],l=s[1];if(s[3])throw i=0,l=0,w(s[2]);return n=i,a=l,f(i,l)}finally{o.__wbindgen_free(n,a,1)}}splitTableCellInto(e,t,r,_,d,n,a,i,l){let s,c;try{const y=o.hwpdocument_splitTableCellInto(this.__wbg_ptr,e,t,r,_,d,n,a,i,l);var g=y[0],h=y[1];if(y[3])throw g=0,h=0,w(y[2]);return s=g,c=h,f(g,h)}finally{o.__wbindgen_free(s,c,1)}}splitTableCellsInRange(e,t,r,_,d,n,a,i,l,s){let c,g;try{const v=o.hwpdocument_splitTableCellsInRange(this.__wbg_ptr,e,t,r,_,d,n,a,i,l,s);var h=v[0],y=v[1];if(v[3])throw h=0,y=0,w(v[2]);return c=h,g=y,f(h,y)}finally{o.__wbindgen_free(c,g,1)}}textToLogicalOffset(e,t,r){const _=o.hwpdocument_textToLogicalOffset(this.__wbg_ptr,e,t,r);if(_[2])throw w(_[1]);return _[0]>>>0}toggleHideHeaderFooter(e,t){let r,_;try{const a=o.hwpdocument_toggleHideHeaderFooter(this.__wbg_ptr,e,t);var d=a[0],n=a[1];if(a[3])throw d=0,n=0,w(a[2]);return r=d,_=n,f(d,n)}finally{o.__wbindgen_free(r,_,1)}}ungroupShape(e,t,r){let _,d;try{const i=o.hwpdocument_ungroupShape(this.__wbg_ptr,e,t,r);var n=i[0],a=i[1];if(i[3])throw n=0,a=0,w(i[2]);return _=n,d=a,f(n,a)}finally{o.__wbindgen_free(_,d,1)}}updateClickHereProps(e,t,r,_,d){let n,a;try{const i=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),l=u,s=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),c=u,g=b(_,o.__wbindgen_malloc,o.__wbindgen_realloc),h=u,y=o.hwpdocument_updateClickHereProps(this.__wbg_ptr,e,i,l,s,c,g,h,d);return n=y[0],a=y[1],f(y[0],y[1])}finally{o.__wbindgen_free(n,a,1)}}updateConnectorsInSection(e){o.hwpdocument_updateConnectorsInSection(this.__wbg_ptr,e)}updateStyle(e,t){const r=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),_=u;return o.hwpdocument_updateStyle(this.__wbg_ptr,e,r,_)!==0}updateStyleShapes(e,t,r){const _=b(t,o.__wbindgen_malloc,o.__wbindgen_realloc),d=u,n=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),a=u;return o.hwpdocument_updateStyleShapes(this.__wbg_ptr,e,_,d,n,a)!==0}}Symbol.dispose&&(T.prototype[Symbol.dispose]=T.prototype.free);function G(){let p,e;try{const t=o.version();return p=t[0],e=t[1],f(t[0],t[1])}finally{o.__wbindgen_free(p,e,1)}}function Z(){return{__proto__:null,"./rhwp_bg.js":{__proto__:null,__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(e){return e===void 0},__wbg___wbindgen_throw_1506f2235d1bdba0:function(e,t){throw new Error(f(e,t))},__wbg_addColorStop_327b92fde5be2a67:function(){return m(function(e,t,r,_){e.addColorStop(t,f(r,_))},arguments)},__wbg_arcTo_6b47eaa88893c130:function(){return m(function(e,t,r,_,d,n){e.arcTo(t,r,_,d,n)},arguments)},__wbg_arc_666e3efb470f705c:function(){return m(function(e,t,r,_,d,n){e.arc(t,r,_,d,n)},arguments)},__wbg_beginPath_1da975fa79b7c1b9:function(e){e.beginPath()},__wbg_bezierCurveTo_db8436369e181c44:function(e,t,r,_,d,n,a){e.bezierCurveTo(t,r,_,d,n,a)},__wbg_clearRect_c6c4586d143d768c:function(e,t,r,_,d){e.clearRect(t,r,_,d)},__wbg_clip_512aa0849d54e0d5:function(e){e.clip()},__wbg_closePath_6a67796205fda3c8:function(e){e.closePath()},__wbg_complete_be51db166b7d8f49:function(e){return e.complete},__wbg_createElement_c3c16a9aa7f5cc74:function(){return m(function(e,t,r){return e.createElement(f(t,r))},arguments)},__wbg_createLinearGradient_420cb52eeee8a7b5:function(e,t,r,_,d){return e.createLinearGradient(t,r,_,d)},__wbg_createPattern_67eadc263c88cfac:function(){return m(function(e,t,r,_){const d=e.createPattern(t,f(r,_));return P(d)?0:C(d)},arguments)},__wbg_createRadialGradient_50fd152eec9510d1:function(){return m(function(e,t,r,_,d,n,a){return e.createRadialGradient(t,r,_,d,n,a)},arguments)},__wbg_document_aceb08cd6489baf5:function(e){const t=e.document;return P(t)?0:C(t)},__wbg_drawImage_1256ee5423e2545a:function(){return m(function(e,t,r,_,d,n,a,i,l,s){e.drawImage(t,r,_,d,n,a,i,l,s)},arguments)},__wbg_drawImage_92a28897b8ab19b6:function(){return m(function(e,t,r,_,d,n){e.drawImage(t,r,_,d,n)},arguments)},__wbg_ellipse_3fbf05a162a6d8bd:function(){return m(function(e,t,r,_,d,n,a,i){e.ellipse(t,r,_,d,n,a,i)},arguments)},__wbg_error_a6fa202b58aa1cd3:function(e,t){let r,_;try{r=e,_=t,console.error(f(e,t))}finally{o.__wbindgen_free(r,_,1)}},__wbg_fillRect_3916c35e6834cd1b:function(e,t,r,_,d){e.fillRect(t,r,_,d)},__wbg_fillText_9a0aa2acf11b7d03:function(){return m(function(e,t,r,_,d){e.fillText(f(t,r),_,d)},arguments)},__wbg_fill_e9ef1c011f58f948:function(e){e.fill()},__wbg_getContext_469d34698d869fc1:function(){return m(function(e,t,r){const _=e.getContext(f(t,r));return P(_)?0:C(_)},arguments)},__wbg_height_ef5b5950872773b5:function(e){return e.height},__wbg_instanceof_CanvasRenderingContext2d_6f2951bc60fb6d97:function(e){let t;try{t=e instanceof CanvasRenderingContext2D}catch{t=!1}return t},__wbg_instanceof_HtmlCanvasElement_8325b7578cc1684c:function(e){let t;try{t=e instanceof HTMLCanvasElement}catch{t=!1}return t},__wbg_instanceof_Window_e093be59ee9a8e14:function(e){let t;try{t=e instanceof Window}catch{t=!1}return t},__wbg_lineTo_1c1d0e0fabd76dd5:function(e,t,r){e.lineTo(t,r)},__wbg_measureText_b7ba8e89644fa634:function(){return m(function(e,t,r){return e.measureText(f(t,r))},arguments)},__wbg_moveTo_3356d453f2b376d1:function(e,t,r){e.moveTo(t,r)},__wbg_naturalWidth_2111265fa11a1862:function(e){return e.naturalWidth},__wbg_new_227d7c05414eb861:function(){return new Error},__wbg_new_8846e7e032e73b15:function(){return m(function(){return new Image},arguments)},__wbg_new_d90091b82fdf5b91:function(){return new Array},__wbg_of_f34f1ce50f299ee9:function(e,t){return Array.of(e,t)},__wbg_push_a6822215aa43e71c:function(e,t){return e.push(t)},__wbg_quadraticCurveTo_6c803a7678029e24:function(e,t,r,_,d){e.quadraticCurveTo(t,r,_,d)},__wbg_rect_72dd146afd51fd1d:function(e,t,r,_,d){e.rect(t,r,_,d)},__wbg_restore_35d33f272777a212:function(e){e.restore()},__wbg_rotate_404ece42a9f2263d:function(){return m(function(e,t){e.rotate(t)},arguments)},__wbg_save_e8d837ef098cd6fc:function(e){e.save()},__wbg_scale_28884a905dff3c86:function(){return m(function(e,t,r){e.scale(t,r)},arguments)},__wbg_setLineDash_df865b04e5ed4790:function(){return m(function(e,t){e.setLineDash(t)},arguments)},__wbg_set_fillStyle_8a802b39592e50ac:function(e,t){e.fillStyle=t},__wbg_set_fillStyle_ad834564981122a6:function(e,t){e.fillStyle=t},__wbg_set_fillStyle_e96ce0e2e6d0bd13:function(e,t,r){e.fillStyle=f(t,r)},__wbg_set_filter_307bd6f64d4aba17:function(e,t,r){e.filter=f(t,r)},__wbg_set_font_3700823e473a6204:function(e,t,r){e.font=f(t,r)},__wbg_set_globalAlpha_8ed66eb71dbee04d:function(e,t){e.globalAlpha=t},__wbg_set_height_0739170de8653cc4:function(e,t){e.height=t>>>0},__wbg_set_lineCap_4709bda4f8626b19:function(e,t,r){e.lineCap=f(t,r)},__wbg_set_lineWidth_57a9e0b365e06eba:function(e,t){e.lineWidth=t},__wbg_set_shadowBlur_9a876dbc0f0e0e7d:function(e,t){e.shadowBlur=t},__wbg_set_shadowColor_1b8fb4690ca58666:function(e,t,r){e.shadowColor=f(t,r)},__wbg_set_shadowOffsetX_d2689cb0ee49a06f:function(e,t){e.shadowOffsetX=t},__wbg_set_shadowOffsetY_21d7b928ae23beec:function(e,t){e.shadowOffsetY=t},__wbg_set_src_44ba1ad03eb5113d:function(e,t,r){e.src=f(t,r)},__wbg_set_strokeStyle_f44ddd692cbef122:function(e,t,r){e.strokeStyle=f(t,r)},__wbg_set_textAlign_2cf46493669911fa:function(e,t,r){e.textAlign=f(t,r)},__wbg_set_textBaseline_5a3fa8559d95dd95:function(e,t,r){e.textBaseline=f(t,r)},__wbg_set_width_87301412247f3343:function(e,t){e.width=t>>>0},__wbg_stack_3b0d974bbf31e44f:function(e,t){const r=t.stack,_=b(r,o.__wbindgen_malloc,o.__wbindgen_realloc),d=u;k().setInt32(e+4,d,!0),k().setInt32(e+0,_,!0)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){const e=typeof global>"u"?null:global;return P(e)?0:C(e)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){const e=typeof globalThis>"u"?null:globalThis;return P(e)?0:C(e)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){const e=typeof self>"u"?null:self;return P(e)?0:C(e)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){const e=typeof window>"u"?null:window;return P(e)?0:C(e)},__wbg_strokeRect_0b35a3d8bed14f36:function(e,t,r,_,d){e.strokeRect(t,r,_,d)},__wbg_strokeText_0c03fc18dca3b589:function(){return m(function(e,t,r,_,d){e.strokeText(f(t,r),_,d)},arguments)},__wbg_stroke_298b6b02ba692298:function(e){e.stroke()},__wbg_translate_2ae35da53e449a37:function(){return m(function(e,t,r){e.translate(t,r)},arguments)},__wbg_width_796e38875beab5e6:function(e){return e.width},__wbg_width_a01fb50fdb566912:function(e){return e.width},__wbindgen_cast_0000000000000001:function(e){return e},__wbindgen_cast_0000000000000002:function(e,t){return f(e,t)},__wbindgen_init_externref_table:function(){const e=o.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)}}}}const R=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(p=>o.__wbg_hwpdocument_free(p,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(p=>o.__wbg_hwpviewer_free(p,1));function C(p){const e=o.__externref_table_alloc();return o.__wbindgen_externrefs.set(e,p),e}function D(p,e){return p=p>>>0,F().subarray(p/1,p/1+e)}let I=null;function k(){return(I===null||I.buffer.detached===!0||I.buffer.detached===void 0&&I.buffer!==o.memory.buffer)&&(I=new DataView(o.memory.buffer)),I}function f(p,e){return K(p>>>0,e)}let S=null;function F(){return(S===null||S.byteLength===0)&&(S=new Uint8Array(o.memory.buffer)),S}function m(p,e){try{return p.apply(this,e)}catch(t){const r=C(t);o.__wbindgen_exn_store(r)}}function P(p){return p==null}function N(p,e){const t=e(p.length*1,1)>>>0;return F().set(p,t/1),u=p.length,t}function b(p,e,t){if(t===void 0){const a=B.encode(p),i=e(a.length,1)>>>0;return F().subarray(i,i+a.length).set(a),u=a.length,i}let r=p.length,_=e(r,1)>>>0;const d=F();let n=0;for(;n127)break;d[_+n]=a}if(n!==r){n!==0&&(p=p.slice(n)),_=t(_,r,r=n+p.length*3,1)>>>0;const a=F().subarray(_+n,_+r),i=B.encodeInto(p,a);n+=i.written,_=t(_,r,n,1)>>>0}return u=n,_}function w(p){const e=o.__wbindgen_externrefs.get(p);return o.__externref_table_dealloc(p),e}let A=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});A.decode();const X=2146435072;let O=0;function K(p,e){return O+=e,O>=X&&(A=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),A.decode(),O=e),A.decode(F().subarray(p,p+e))}const B=new TextEncoder;"encodeInto"in B||(B.encodeInto=function(p,e){const t=B.encode(p);return e.set(t),{read:p.length,written:t.length}});let u=0,o;function Y(p,e){return o=p.exports,I=null,S=null,o.__wbindgen_start(),o}async function Q(p,e){if(typeof Response=="function"&&p instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(p,e)}catch(_){if(p.ok&&t(p.type)&&p.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const r=await p.arrayBuffer();return await WebAssembly.instantiate(r,e)}else{const r=await WebAssembly.instantiate(p,e);return r instanceof WebAssembly.Instance?{instance:r,module:p}:r}function t(r){switch(r){case"basic":case"cors":case"default":return!0}return!1}}async function J(p){if(o!==void 0)return o;p!==void 0&&(Object.getPrototypeOf(p)===Object.prototype?{module_or_path:p}=p:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),p===void 0&&(p=new URL(""+new URL("rhwp_bg-CWgV9Qnr.wasm",import.meta.url).href,import.meta.url));const e=Z();(typeof p=="string"||typeof Request=="function"&&p instanceof Request||typeof URL=="function"&&p instanceof URL)&&(p=fetch(p));const{instance:t,module:r}=await Q(await p,e);return Y(t)}const ee=""+new URL("rhwp_bg-CWgV9Qnr.wasm",import.meta.url).href,V=document.querySelector("#pages"),M=document.querySelector("#error-message");if(!V||!M)throw new Error("Viewer shell is missing required elements.");const L=V,te=M;let x=null,W="";globalThis.measureTextWidth=(p,e)=>(x||(x=document.createElement("canvas").getContext("2d")),x?(p!==W&&(x.font=p,W=p),x.measureText(e).width):e.length*10);const E=p=>{window.webkit?.messageHandlers?.viewer?.postMessage(p)},re=(p,e=!1)=>{te.textContent=p,document.body.classList.add("has-error"),E({type:"renderError",message:p,recoverable:e})};class _e{document=null;observer=null;pageCount=0;pageInfos=[];renderedPages=new Set;currentPageIndex=-1;userZoom=1;fitScale=1;constructor(){window.addEventListener("resize",()=>this.updateFitScale()),window.addEventListener("orientationchange",()=>{window.setTimeout(()=>this.updateFitScale(),150)})}async loadCurrentDocument(){try{await J({module_or_path:ee});const e=await fetch("./document/current",{cache:"no-store"});if(!e.ok)throw new Error(`문서 데이터를 읽을 수 없습니다. (${e.status})`);const t=decodeURIComponent(e.headers.get("X-Document-Name")??"document.hwp"),r=new Uint8Array(await e.arrayBuffer());this.document?.free(),this.document=new T(r),this.pageCount=this.document.pageCount(),this.pageInfos=this.collectPageInfo(),this.buildPlaceholders(),this.updateFitScale(),document.body.classList.add("is-loaded"),document.body.classList.remove("has-error"),E({type:"loaded",pageCount:this.pageCount,fileName:t,rhwpVersion:G()})}catch(e){re(e instanceof Error?e.message:String(e))}}setZoom(e){this.userZoom=Number.isFinite(e)?Math.min(4,Math.max(.35,e)):1,this.applyDisplaySizes()}renderAllPages(){if(!this.document)return!1;for(let e=0;e{const t=e.filter(r=>r.isIntersecting).map(r=>Number(r.target.dataset.pageIndex)).filter(Number.isFinite).sort((r,_)=>r-_);for(const r of t)this.renderPage(r);t.length>0&&t[0]!==this.currentPageIndex&&(this.currentPageIndex=t[0],E({type:"pageChanged",pageIndex:t[0]}))},{rootMargin:"900px 0px 900px 0px",threshold:.05});for(let e=0;e0&&(e.style.setProperty("--page-width",`${_}px`),this.applyDisplaySizes()),Number.isFinite(d)&&d>0&&e.style.setProperty("--page-height",`${d}px`)}updateFitScale(){const e=this.pageInfos.find(r=>Number.isFinite(r.width)&&(r.width??0)>0)?.width??794,t=Math.max(240,window.innerWidth||document.documentElement.clientWidth||390);this.fitScale=Math.min(2.5,Math.max(.2,t/e)),this.applyDisplaySizes()}applyDisplaySizes(){const e=L.querySelectorAll(".page");for(const t of e){const r=Number(t.dataset.pageIndex),_=Number.isFinite(r)?this.pageInfos[r]:void 0,d=this.readPageDimension(t,"--page-width",_?.width,794),n=this.readPageDimension(t,"--page-height",_?.height,1123),a=d*this.fitScale*this.userZoom,i=n*this.fitScale*this.userZoom;t.style.setProperty("--display-width",`${a}px`),t.style.setProperty("--display-height",`${i}px`)}}readPageDimension(e,t,r,_){if(Number.isFinite(r)&&r&&r>0)return r;const d=Number.parseFloat(e.style.getPropertyValue(t));return Number.isFinite(d)&&d>0?d:_}}window.RHWPViewer=new _e;window.RHWPViewer.loadCurrentDocument(); diff --git a/AppResources/ViewerBundle/assets/rhwp_bg-CWgV9Qnr.wasm b/AppResources/ViewerBundle/assets/rhwp_bg-CWgV9Qnr.wasm deleted file mode 100644 index eb53243..0000000 Binary files a/AppResources/ViewerBundle/assets/rhwp_bg-CWgV9Qnr.wasm and /dev/null differ diff --git a/AppResources/ViewerBundle/assets/rhwp_bg-CyTz_Bvf.wasm b/AppResources/ViewerBundle/assets/rhwp_bg-CyTz_Bvf.wasm new file mode 100644 index 0000000..06b7cba Binary files /dev/null and b/AppResources/ViewerBundle/assets/rhwp_bg-CyTz_Bvf.wasm differ diff --git a/AppResources/ViewerBundle/index.html b/AppResources/ViewerBundle/index.html index e64496a..f237344 100644 --- a/AppResources/ViewerBundle/index.html +++ b/AppResources/ViewerBundle/index.html @@ -5,7 +5,7 @@ Hoply - + diff --git a/package-lock.json b/package-lock.json index 93adb23..b6f53fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -452,10 +452,13 @@ } }, "node_modules/@rhwp/core": { - "version": "0.7.13", - "resolved": "https://registry.npmjs.org/@rhwp/core/-/core-0.7.13.tgz", - "integrity": "sha512-IrAubU8/gfFJwXEdTrq/zgfO50uKEuo3p/m4FkcwS7QYFMS94bAHhrBr3mxPsFv5rwqiskI68pJjqaS9K/be1A==", - "license": "MIT" + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@rhwp/core/-/core-0.8.0.tgz", + "integrity": "sha512-NBcWB7LU0T3W+Bd1vrvug1EvbfHFtL/TtgVjHwJIqXdOe6riEVvhvBYeNpMzkeTuLkuOCK/+IPmMyIMTsh6Oeg==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/edwardkim" + } }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.60.4", @@ -1143,7 +1146,7 @@ "name": "hoply-web", "version": "0.1.2", "dependencies": { - "@rhwp/core": "0.7.13" + "@rhwp/core": "0.8.0" }, "devDependencies": { "@types/node": "^24.0.0", diff --git a/web-viewer/package.json b/web-viewer/package.json index 0e11e1a..01d27dc 100644 --- a/web-viewer/package.json +++ b/web-viewer/package.json @@ -8,7 +8,7 @@ "dev": "vite --host 127.0.0.1 --port 5173" }, "dependencies": { - "@rhwp/core": "0.7.13" + "@rhwp/core": "0.8.0" }, "devDependencies": { "@types/node": "^24.0.0",