Pārlūkot izejas kodu

删除部分代码,登录逻辑调整

lwei 1 gadu atpakaļ
vecāks
revīzija
2c2321d7fe
100 mainītis faili ar 2 papildinājumiem un 3797 dzēšanām
  1. 0 10
      package-lock.json
  2. 0 2
      package.json
  3. 2 2
      public/index.html
  4. 0 8
      public/lib/webviewer/core/22.chunk.js
  5. 0 8
      public/lib/webviewer/core/23.chunk.js
  6. 0 3
      public/lib/webviewer/core/AndroidContentPartRetriever.chunk.js
  7. 0 2
      public/lib/webviewer/core/ArrayBufferPdfPartRetriever.chunk.js
  8. 0 3
      public/lib/webviewer/core/AzurePartRetriever.chunk.js
  9. 0 3
      public/lib/webviewer/core/CORSWorker.js
  10. 0 26
      public/lib/webviewer/core/ContentEdit.chunk.js
  11. 0 26
      public/lib/webviewer/core/DecryptWorker.js
  12. 0 14
      public/lib/webviewer/core/ExternalAnnotationMerger.chunk.js
  13. 0 7
      public/lib/webviewer/core/ExternalPdfPartRetriever.chunk.js
  14. 0 12
      public/lib/webviewer/core/HttpPartRetriever.chunk.js
  15. 0 4
      public/lib/webviewer/core/IOSPartRetriever.chunk.js
  16. 0 5
      public/lib/webviewer/core/LocalPartRetriever.chunk.js
  17. 0 4
      public/lib/webviewer/core/LocalPdfPartRetriever.chunk.js
  18. 0 16
      public/lib/webviewer/core/PDFInfoVersion1.chunk.js
  19. 0 15
      public/lib/webviewer/core/SelectionInfoOld.chunk.js
  20. 0 10
      public/lib/webviewer/core/StreamingPartRetriever.chunk.js
  21. 0 3
      public/lib/webviewer/core/WebDBPartRetriever.chunk.js
  22. 0 32
      public/lib/webviewer/core/WebViewerServerPartRetriever.chunk.js
  23. 0 3
      public/lib/webviewer/core/WinRTPartRetriever.chunk.js
  24. 0 123
      public/lib/webviewer/core/Worker.js
  25. BIN
      public/lib/webviewer/core/assets/1px.png
  26. BIN
      public/lib/webviewer/core/assets/dragginghand.cur
  27. BIN
      public/lib/webviewer/core/assets/dragginghand.png
  28. BIN
      public/lib/webviewer/core/assets/hand.cur
  29. BIN
      public/lib/webviewer/core/assets/hand.png
  30. 0 0
      public/lib/webviewer/core/assets/mime-types/test.mem
  31. 0 0
      public/lib/webviewer/core/assets/mime-types/test.res
  32. 0 0
      public/lib/webviewer/core/assets/mime-types/test.wasm
  33. 0 0
      public/lib/webviewer/core/assets/mime-types/test.xod
  34. BIN
      public/lib/webviewer/core/assets/zoom-in.cur
  35. BIN
      public/lib/webviewer/core/assets/zoom-out.cur
  36. 0 0
      public/lib/webviewer/core/contentEdit/InfixServer.js
  37. 0 802
      public/lib/webviewer/core/contentEdit/InfixServer.mem
  38. BIN
      public/lib/webviewer/core/contentEdit/InfixServer.wasm
  39. 0 11
      public/lib/webviewer/core/contentEdit/InfixServerModule.js
  40. 0 341
      public/lib/webviewer/core/external/Promise.js
  41. 0 65
      public/lib/webviewer/core/external/decode.min.js
  42. 0 80
      public/lib/webviewer/core/external/model-viewer-1.3.0.min.js
  43. 0 109
      public/lib/webviewer/core/external/model-viewer-legacy-1.3.0.min.js
  44. 0 1
      public/lib/webviewer/core/external/pako_inflate.min.js
  45. 0 0
      public/lib/webviewer/core/external/pikaday.css
  46. 0 105
      public/lib/webviewer/core/external/pikaday.override.css
  47. 0 1
      public/lib/webviewer/core/external/quill.css
  48. 0 370
      public/lib/webviewer/core/external/webcomponents-bundle.js
  49. 0 0
      public/lib/webviewer/core/legacyOffice/LegacyOfficeWorker.js
  50. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.br.js.mem
  51. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.br.mem
  52. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.gz.js.mem
  53. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.gz.mem
  54. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.br.js.mem
  55. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.br.wasm
  56. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.js.mem
  57. BIN
      public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.wasm
  58. 0 85
      public/lib/webviewer/core/office/OfficeWorker.js
  59. BIN
      public/lib/webviewer/core/office/WebOfficeWorker.br.js.mem
  60. BIN
      public/lib/webviewer/core/office/WebOfficeWorker.br.mem
  61. BIN
      public/lib/webviewer/core/office/WebOfficeWorker.gz.js.mem
  62. BIN
      public/lib/webviewer/core/office/WebOfficeWorker.gz.mem
  63. 0 10
      public/lib/webviewer/core/office/WebOfficeWorkerSubzero.nmf
  64. BIN
      public/lib/webviewer/core/office/WebOfficeWorkerWasm.br.js.mem
  65. BIN
      public/lib/webviewer/core/office/WebOfficeWorkerWasm.br.wasm
  66. BIN
      public/lib/webviewer/core/office/WebOfficeWorkerWasm.gz.js.mem
  67. BIN
      public/lib/webviewer/core/office/WebOfficeWorkerWasm.gz.wasm
  68. 0 1193
      public/lib/webviewer/core/pdf/PDFNet.js
  69. 0 0
      public/lib/webviewer/core/pdf/PDFNet.prod.js
  70. 0 248
      public/lib/webviewer/core/pdf/PDFworker.js
  71. 0 33
      public/lib/webviewer/core/pdf/WasmThread.js
  72. BIN
      public/lib/webviewer/core/pdf/full/PDFNetC.br.js.mem
  73. BIN
      public/lib/webviewer/core/pdf/full/PDFNetC.gz.js.mem
  74. BIN
      public/lib/webviewer/core/pdf/full/PDFNetC.gz.mem
  75. BIN
      public/lib/webviewer/core/pdf/full/PDFNetCWasm.br.js.mem
  76. BIN
      public/lib/webviewer/core/pdf/full/PDFNetCWasm.br.wasm
  77. BIN
      public/lib/webviewer/core/pdf/full/PDFNetCWasm.gz.js.mem
  78. BIN
      public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.br.js.mem
  79. BIN
      public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.br.wasm
  80. 0 0
      public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.worker.js
  81. BIN
      public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.br.js.mem
  82. BIN
      public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.br.wasm
  83. BIN
      public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.gz.js.mem
  84. BIN
      public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.br.js.mem
  85. BIN
      public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.br.wasm
  86. 0 0
      public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.worker.js
  87. 0 1
      public/lib/webviewer/core/pdf/iframe.aspx
  88. 0 1
      public/lib/webviewer/core/pdf/iframe.html
  89. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetC.br.js.mem
  90. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetC.gz.js.mem
  91. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetC.gz.mem
  92. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetCWasm.br.js.mem
  93. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetCWasm.br.wasm
  94. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetCWasm.gz.js.mem
  95. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.br.js.mem
  96. BIN
      public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.br.wasm
  97. 0 0
      public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.worker.js
  98. BIN
      public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.br.js.mem
  99. BIN
      public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.br.wasm
  100. BIN
      public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.gz.js.mem

+ 0 - 10
package-lock.json

@@ -14,7 +14,6 @@
         "@babel/core": "^7.16.0",
         "@material-ui/core": "^4.12.3",
         "@mui/material": "^5.5.0",
-        "@pdftron/webviewer": "^8.5.0",
         "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
         "@svgr/webpack": "^5.5.0",
         "@testing-library/jest-dom": "^5.11.5",
@@ -115,7 +114,6 @@
         "xlsx": "https://cdn.sheetjs.com/xlsx-0.19.1/xlsx-0.19.1.tgz"
       },
       "devDependencies": {
-        "@pdftron/webviewer": "^8.5.0",
         "@types/file-saver": "^2.0.4",
         "@types/jspdf": "^2.0.0",
         "@types/lodash": "^4.14.182",
@@ -3516,10 +3514,6 @@
         "node": ">= 8"
       }
     },
-    "node_modules/@pdftron/webviewer": {
-      "version": "8.12.1",
-      "dev": true
-    },
     "node_modules/@pmmmwh/react-refresh-webpack-plugin": {
       "version": "0.5.11",
       "license": "MIT",
@@ -22489,10 +22483,6 @@
         "fastq": "^1.6.0"
       }
     },
-    "@pdftron/webviewer": {
-      "version": "8.12.1",
-      "dev": true
-    },
     "@pmmmwh/react-refresh-webpack-plugin": {
       "version": "0.5.11",
       "requires": {

+ 0 - 2
package.json

@@ -8,7 +8,6 @@
     "@babel/core": "^7.16.0",
     "@material-ui/core": "^4.12.3",
     "@mui/material": "^5.5.0",
-    "@pdftron/webviewer": "^8.5.0",
     "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
     "@svgr/webpack": "^5.5.0",
     "@testing-library/jest-dom": "^5.11.5",
@@ -137,7 +136,6 @@
     ]
   },
   "devDependencies": {
-    "@pdftron/webviewer": "^8.5.0",
     "@types/file-saver": "^2.0.4",
     "@types/jspdf": "^2.0.0",
     "@types/lodash": "^4.14.182",

+ 2 - 2
public/index.html

@@ -1,9 +1,9 @@
 <!DOCTYPE html>
 <html lang="en">
   <head>
-    <!-- <script>
+    <script>
       document.domain = 'hzinsights.com'
-    </script> -->
+    </script>
     <meta charset="utf-8" />
     <link rel="icon" href="https://hzstatic.hzinsights.com/cygx_web/ico/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1" />

+ 0 - 8
public/lib/webviewer/core/22.chunk.js

@@ -1,8 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{444:function(ia){(function(){ia.exports={pW:function(){function da(e,h){this.scrollLeft=e;this.scrollTop=h}function e(e){if(null===e||"object"!==typeof e||void 0===e.behavior||"auto"===e.behavior||"instant"===e.behavior)return!0;if("object"===typeof e&&"smooth"===e.behavior)return!1;throw new TypeError("behavior member of ScrollOptions "+e.behavior+" is not a valid value for enumeration ScrollBehavior.");}function ca(e,h){if("Y"===
-h)return e.clientHeight+n<e.scrollHeight;if("X"===h)return e.clientWidth+n<e.scrollWidth}function y(e,h){e=ba.getComputedStyle(e,null)["overflow"+h];return"auto"===e||"scroll"===e}function ha(e){var f=ca(e,"Y")&&y(e,"Y");e=ca(e,"X")&&y(e,"X");return f||e}function ea(e){var f=(h()-e.startTime)/468;var n=.5*(1-Math.cos(Math.PI*(1<f?1:f)));f=e.cy+(e.x-e.cy)*n;n=e.dy+(e.y-e.dy)*n;e.method.call(e.XD,f,n);f===e.x&&n===e.y||ba.requestAnimationFrame(ea.bind(ba,e))}function fa(e,n,x){var f=h();if(e===w.body){var y=
-ba;var z=ba.scrollX||ba.pageXOffset;e=ba.scrollY||ba.pageYOffset;var aa=r.scroll}else y=e,z=e.scrollLeft,e=e.scrollTop,aa=da;ea({XD:y,method:aa,startTime:f,cy:z,dy:e,x:n,y:x})}var ba=window,w=document;if(!("scrollBehavior"in w.documentElement.style&&!0!==ba.Jma)){var aa=ba.HTMLElement||ba.Element,r={scroll:ba.scroll||ba.scrollTo,scrollBy:ba.scrollBy,SR:aa.prototype.scroll||da,scrollIntoView:aa.prototype.scrollIntoView},h=ba.performance&&ba.performance.now?ba.performance.now.bind(ba.performance):Date.now,
-n=/MSIE |Trident\/|Edge\//.test(ba.navigator.userAgent)?1:0;ba.scroll=ba.scrollTo=function(f,h){void 0!==f&&(!0===e(f)?r.scroll.call(ba,void 0!==f.left?f.left:"object"!==typeof f?f:ba.scrollX||ba.pageXOffset,void 0!==f.top?f.top:void 0!==h?h:ba.scrollY||ba.pageYOffset):fa.call(ba,w.body,void 0!==f.left?~~f.left:ba.scrollX||ba.pageXOffset,void 0!==f.top?~~f.top:ba.scrollY||ba.pageYOffset))};ba.scrollBy=function(f,h){void 0!==f&&(e(f)?r.scrollBy.call(ba,void 0!==f.left?f.left:"object"!==typeof f?f:
-0,void 0!==f.top?f.top:void 0!==h?h:0):fa.call(ba,w.body,~~f.left+(ba.scrollX||ba.pageXOffset),~~f.top+(ba.scrollY||ba.pageYOffset)))};aa.prototype.scroll=aa.prototype.scrollTo=function(f,h){if(void 0!==f)if(!0===e(f)){if("number"===typeof f&&void 0===h)throw new SyntaxError("Value could not be converted");r.SR.call(this,void 0!==f.left?~~f.left:"object"!==typeof f?~~f:this.scrollLeft,void 0!==f.top?~~f.top:void 0!==h?~~h:this.scrollTop)}else h=f.left,f=f.top,fa.call(this,this,"undefined"===typeof h?
-this.scrollLeft:~~h,"undefined"===typeof f?this.scrollTop:~~f)};aa.prototype.scrollBy=function(f,h){void 0!==f&&(!0===e(f)?r.SR.call(this,void 0!==f.left?~~f.left+this.scrollLeft:~~f+this.scrollLeft,void 0!==f.top?~~f.top+this.scrollTop:~~h+this.scrollTop):this.scroll({left:~~f.left+this.scrollLeft,top:~~f.top+this.scrollTop,behavior:f.behavior}))};aa.prototype.scrollIntoView=function(f){if(!0===e(f))r.scrollIntoView.call(this,void 0===f?!0:f);else{for(f=this;f!==w.body&&!1===ha(f);)f=f.parentNode||
-f.host;var h=f.getBoundingClientRect(),n=this.getBoundingClientRect();f!==w.body?(fa.call(this,f,f.scrollLeft+n.left-h.left,f.scrollTop+n.top-h.top),"fixed"!==ba.getComputedStyle(f).position&&ba.scrollBy({left:h.left,top:h.top,behavior:"smooth"})):ba.scrollBy({left:n.left,top:n.top,behavior:"smooth"})}}}}}})()}}]);}).call(this || window)

+ 0 - 8
public/lib/webviewer/core/23.chunk.js

@@ -1,8 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[23],{446:function(ia,da,e){e.r(da);var ca=e(1),y=e(11),ha=e(2);ia=e(50);var ea=e(31),fa=e(10);e=function(){function e(){this.init()}e.prototype.init=function(){this.r5=!1;this.qf=this.al=this.connection=null;this.Lr={};this.fa=this.OE=null};e.prototype.ela=function(e){for(var w=this,r=0;r<e.length;++r){var h=e[r];switch(h.at){case "create":this.Lr[h.author]||(this.Lr[h.author]=h.aName);this.ica(h);break;case "modify":this.fa.El(h.xfdf).then(function(e){w.fa.rb(e[0])});
-break;case "delete":this.fa.El("<delete><id>"+h.aId+"</id></delete>")}}};e.prototype.ica=function(e){var w=this;this.fa.El(e.xfdf).then(function(r){r=r[0];r.authorId=e.author;w.fa.rb(r);w.fa.trigger(y.a.UPDATE_ANNOTATION_PERMISSION,[r])})};e.prototype.Iba=function(e,y,r){this.al&&this.al(e,y,r)};e.prototype.preloadAnnotations=function(e){this.addEventListener("webViewerServerAnnotationsEnabled",this.Iba.bind(this,e,"add",{imported:!1}),{once:!0})};e.prototype.initiateCollaboration=function(w,aa,r){var h=
-this;if(w){h.qf=aa;h.fa=r.ua();r.addEventListener(y.c.DOCUMENT_UNLOADED,function(){h.disableCollaboration()});h.Gla(w);var n=new XMLHttpRequest;n.addEventListener("load",function(){if(200===n.status&&0<n.responseText.length)try{var f=JSON.parse(n.responseText);h.connection=exports.Xa.kma(Object(ea.j)(h.qf,"blackbox/"),"annot");h.OE=f.id;h.Lr[f.id]=f.user_name;h.fa.JL(f.id);h.connection.qM(function(e){e.t&&e.t.startsWith("a_")&&e.data&&h.ela(e.data)},function(){h.connection.send({t:"a_retrieve",dId:w});
-h.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[h.Lr[f.id],h.OE])},function(){h.disableCollaboration()})}catch(z){Object(ha.g)(z.message)}});n.open("GET",Object(ea.j)(this.qf,"demo/SessionInfo.jsp"));n.withCredentials=!0;n.send();h.r5=!0;h.fa.KX(function(e){return h.Lr[e.Author]||e.Author})}else Object(ha.g)("Document ID required for collaboration")};e.prototype.disableCollaboration=function(){this.al&&(this.fa.removeEventListener(fa.a.Events.ANNOTATION_CHANGED,this.al),this.al=null);this.connection&&
-this.connection.OH();this.fa&&this.fa.JL("Guest");this.init();this.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};e.prototype.Gla=function(e){var w=this;this.al&&this.fa.removeEventListener(fa.a.Events.ANNOTATION_CHANGED,this.al);this.al=function(r,h,n){return Object(ca.b)(this,void 0,void 0,function(){var f,y,x,aa,ba,da,ea,fa,ha;return Object(ca.d)(this,function(z){switch(z.label){case 0:if(n.imported)return[2];f={t:"a_"+h,dId:e,annots:[]};return[4,w.fa.TH()];case 1:y=z.ea();"delete"!==
-h&&(x=(new DOMParser).parseFromString(y,"text/xml"),aa=new XMLSerializer);for(ba=0;ba<r.length;ba++)da=r[ba],fa=ea=void 0,"add"===h?(ea=x.querySelector('[name="'+da.Id+'"]'),fa=aa.serializeToString(ea),ha=null,da.InReplyTo&&(ha=w.fa.$f(da.InReplyTo).authorId||"default"),f.annots.push({at:"create",aId:da.Id,author:w.OE,aName:w.Lr[w.OE],parent:ha,xfdf:"<add>"+fa+"</add>"})):"modify"===h?(ea=x.querySelector('[name="'+da.Id+'"]'),fa=aa.serializeToString(ea),f.annots.push({at:"modify",aId:da.Id,xfdf:"<modify>"+
-fa+"</modify>"})):"delete"===h&&f.annots.push({at:"delete",aId:da.Id});0<f.annots.length&&w.connection.send(f);return[2]}})})}.bind(w);this.fa.addEventListener(fa.a.Events.ANNOTATION_CHANGED,this.al)};e.Events={WEBVIEWER_SERVER_ANNOTATIONS_ENABLED:"webViewerServerAnnotationsEnabled",WEBVIEWER_SERVER_ANNOTATIONS_DISABLED:"webViewerServerAnnotationsDisabled"};return e}();Object(ia.a)(e);da["default"]=e}}]);}).call(this || window)

+ 0 - 3
public/lib/webviewer/core/AndroidContentPartRetriever.chunk.js

@@ -1,3 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[3],{432:function(ia,da,e){e.r(da);var ca=e(1),y=e(243);ia=e(428);e=e(371);var ha=window,ea=function(e){function ba(w,aa){var r=e.call(this,w,aa)||this;r.url=w;r.range=aa;r.request=new XMLHttpRequest;r.request.open("GET",r.url,!0);ha.Uint8Array&&(r.request.responseType="arraybuffer");r.request.setRequestHeader("X-Requested-With","XMLHttpRequest");r.status=y.a.NOT_STARTED;return r}Object(ca.c)(ba,e);return ba}(ia.ByteRangeRequest);
-ia=function(e){function y(w,aa,r,h){w=e.call(this,w,aa,r,h)||this;w.zx=ea;return w}Object(ca.c)(y,e);y.prototype.Cv=function(e,aa){return e+"/bytes="+aa.start+","+(aa.stop?aa.stop:"")};return y}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 2
public/lib/webviewer/core/ArrayBufferPdfPartRetriever.chunk.js

@@ -1,2 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[4],{433:function(ia,da,e){e.r(da);ia=e(50);e=e(371);var ca=function(){function e(e){this.buffer=e;this.fileSize=null===e||void 0===e?void 0:e.byteLength}e.prototype.getFileData=function(e){e(new Uint8Array(this.buffer))};e.prototype.getFile=function(){return Promise.resolve(null)};return e}();Object(ia.a)(ca);Object(e.a)(ca);Object(e.b)(ca);da["default"]=ca}}]);}).call(this || window)

+ 0 - 3
public/lib/webviewer/core/AzurePartRetriever.chunk.js

@@ -1,3 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[5],{434:function(ia,da,e){e.r(da);var ca=e(1),y=e(148);ia=e(428);e=e(371);ia=function(e){function ea(y,ba,w,aa){return e.call(this,y,ba,w,aa)||this}Object(ca.c)(ea,e);ea.prototype.RS=function(){return{start:this.cS-y.a,stop:this.cS}};ea.prototype.Zs=function(y){var ba=this;this.Sn(this.url,{start:0,stop:1},function(w,aa,r){if(w)return y(w);w=r.request.getResponseHeader("Content-Range");ba.cS=w.split("/")[1];e.prototype.Zs.call(ba,
-y)})};return ea}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 3
public/lib/webviewer/core/CORSWorker.js

@@ -1,3 +0,0 @@
-(function(){(function(e){function c(a){if(d[a])return d[a].exports;var b=d[a]={i:a,l:!1,exports:{}};e[a].call(b.exports,b,b.exports,c);b.l=!0;return b.exports}var d={};c.m=e;c.c=d;c.d=function(a,b,d){c.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:d})};c.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};c.t=function(a,b){b&1&&(a=c(a));if(b&8||b&4&&"object"===typeof a&&a&&a.__esModule)return a;
-var d=Object.create(null);c.r(d);Object.defineProperty(d,"default",{enumerable:!0,value:a});if(b&2&&"string"!=typeof a)for(var e in a)c.d(d,e,function(b){return a[b]}.bind(null,e));return d};c.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};c.d(b,"a",b);return b};c.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};c.p="/core/";return c(c.s=0)})([function(e,c,d){e.exports=d(1)},function(e,c,d){self.onmessage=function(a){if("init"===a.data.action){var b=
-a.data.path;b&&(self.workerBasePath=b,self.pdfWorkerPath="".concat(b,"pdf/"),self.officeWorkerPath="".concat(b,"office/"),self.legacyOfficeWorkerPath="".concat(b,"legacyOffice/"));importScripts(a.data.file);self.onmessage(a)}}}]);}).call(this || window)

+ 0 - 26
public/lib/webviewer/core/ContentEdit.chunk.js

@@ -1,26 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[6],{165:function(ia,da,e){function ca(e,f,h,n){return Object(ra.b)(void 0,void 0,void 0,function(){var r,w,x,y,aa,ba,ca,da,fa;return Object(ra.d)(this,function(ha){switch(ha.label){case 0:return r=Ba.getDocument(),w=[1],[4,Object(ma.c)(f,{extension:"pdf"})];case 1:return x=ha.ea(),y=Ba.ua(),ca=(ba=na.a).Ifa,[4,x.DB()];case 2:return aa=ca.apply(ba,[ha.ea().xfdfString,e]),da=!0,[4,r.Ef(x,w,e,da)];case 3:return ha.ea(),[4,r.pg([e+1],
-da)];case 4:return ha.ea(),fa=y.vb().filter(function(f){return f.OJ()&&f.PageNumber===e}),y.Ah(fa,{force:!0,source:"contentEditTool"}),[4,y.uJ(aa)];case 5:return ha.ea(),Ba.getDocument().fL(),Ba.eL(e),Ba.We(),ea(e),z(e,h.galleys,n),z(e,h.objects,n),[2]}})})}function y(e){e=(new DOMParser).parseFromString(e,"text/html").documentElement.querySelector("body");e.querySelectorAll("p").forEach(function(e){e.querySelectorAll("span").forEach(function(e){var f=e.getAttribute("style");f=ha(f,e.innerHTML);e.innerHTML=
-f});var f=e.getAttribute("style"),h=e.innerHTML.uk("<br>","");e.innerHTML=ha(f,h)});return e.innerHTML.trim()}function ha(e,f){e.includes("bold")&&(f="<strong>"+f+"</strong>");e.includes("italic")&&(f="<em>"+f+"</em>");e.includes("text-decoration: underline")&&(f="<u>"+f+"</u>");return f}function ea(e){var f=Ba.ua(),h=f.vb().filter(function(f){return f.Mh()&&f.PageNumber===e});f.Ah(h,{force:!0,source:"contentEditTool"})}function fa(e,f){f.forEach(function(f){za[e]||(za[e]=[]);za[e].find(function(e){return e.id===
-f.id})||za[e].push(f)})}function ba(e,f){f.forEach(function(f){Ca[e]||(Ca[e]=[]);Ca[e].find(function(e){return e.id===f.id})||Ca[e].push(f)})}function w(e){var f=new DOMParser,h=f.parseFromString(e,"text/xml");h.querySelector("parsererror")&&(h=f.parseFromString("<Root>"+e+"</Root>","text/xml"));h.querySelectorAll("a").forEach(function(e){var f=e.childNodes[0];Array.from(e.querySelectorAll("*")).find(function(e){return"u"===e.tagName.toLowerCase()})||(e=document.createElement("u"),f.after(e),e.appendChild(f))});
-return(new XMLSerializer).serializeToString(h)}function aa(e,f,h,n){this.top=e;this.left=f;this.bottom=h;this.right=n;this.topVal=function(){return Math.round(this.top)};this.bottomVal=function(){return Math.round(this.bottom)};this.leftVal=function(){return Math.round(this.left)};this.rightVal=function(){return Math.round(this.right)};this.height=function(){return Math.round(Math.abs(this.top-this.bottom))};this.width=function(){return Math.round(this.right-this.left)};this.yQ=function(e){return this.topVal()!==
-e.topVal()||this.leftVal()!==e.leftVal()||this.bottomVal()!==e.bottomVal()||this.rightVal()!==e.rightVal()}}function r(e,f,h,n,r){this.id=e;this.pagenum=f;this.galleysContents=h;this.contents=n;this.galleyBox=r}function h(e,f,h,n){this.id=f;this.type=e;this.bbox=h;this.pagenum=n}function n(e,f,h,n,r){this.id=e;this.pagecount=f;this.pageBBox=h;this.galleys=n;this.objects=r}function f(e,f,h,n,r){var w=[];(new DOMParser).parseFromString(n,"text/html").documentElement.querySelectorAll("p").forEach(function(e,
-f){w[f]=e.innerHTML});h=(new DOMParser).parseFromString(h,"text/html");var x=null;h.documentElement.querySelectorAll("p").forEach(function(e,f){f<w.length?(e.innerHTML=w[f],x=e.getAttribute("style"),x=x.replace("font:italic","font:normal"),x=x.replace(" bold "," normal "),x=x.replace("underline:1;","underline:0;"),e.setAttribute("style",x)):e.remove()});for(n=h.documentElement.querySelectorAll("p").length;n<w.length;n++){var y=document.createElement("p");y.setAttribute("id","0");y.innerHTML=w[n];
-null!=x&&y.setAttribute("style",x);h.documentElement.querySelector("body").appendChild(y)}h=h.documentElement.querySelector("body").innerHTML;var z="";Ca[e].forEach(function(e){e.id===r&&(z=e)});if(""===z)return"";f="<DOC id='"+f.id+"' pagecount='"+f.pagecount+"'>";f=f+("<STORY galley_ids='"+r+"' pagenum='"+e+"'>")+("<galleys>"+z.galleysContents+"</galleys>");z.contents=h;f=f+h+"\n</STORY>";return f+="</DOC>"}function z(e,f,n){var w=[],x=Ba.getDocument(),y=null;f.forEach(function(f){if(f instanceof
-h){var z=x.Gn(e,f.bbox.leftVal(),f.bbox.topVal());var aa=z.x;var ba=z.y;var ca=x.Gn(e,f.bbox.rightVal(),f.bbox.bottomVal());z=ca.x;ca=ca.y}else if(f instanceof r)z=x.Gn(e,f.galleyBox.leftVal(),f.galleyBox.topVal()),aa=z.x,ba=z.y,ca=x.Gn(e,f.galleyBox.rightVal(),f.galleyBox.bottomVal()),z=ca.x,ca=ca.y;else return;var da=new window.Core.Annotations.RectangleAnnotation,ea=sa.a.OBJECT;f instanceof r&&(ea=sa.a.TEXT);da.mia(f,ea);da.PageNumber=f.pagenum;da.X=aa;da.Y=ba;da.Width=z-aa;da.Height=ca-ba;da.StrokeColor=
-new Aa.a("#3183C8");da.FillColor=new Aa.a(255,255,255,.01);da.Style="dash";da.Dashes="4,3";da.lB();da.selectionModel=ya.a;w.push(da);"undefined"!==typeof n&&n===f.id&&(y=da)});f=Ba.ua();f.Gg(w);y&&f.jh(y);f.re(w)}function x(e,f,h){return Object(ra.b)(this,void 0,void 0,function(){var n,r,w,x,y;return Object(ra.d)(this,function(aa){switch(aa.label){case 0:n=e.data;w=n.cmd;switch(w){case "isReady":return[3,1];case "initialiseInfixServer":return[3,3];case "exportFile":return[3,4];case "importText":return[3,
-5];case "transformObject":return[3,5];case "deleteObject":return[3,6]}return[3,7];case 1:return[4,Object(ta.b)()];case 2:return x=aa.ea(),Da.postMessage({cmd:"initialiseInfixServer",l:x}),[3,7];case 3:return(y=ka(n.resultsXML))?f():h("License key does not have content edit permission"),[3,7];case 4:return n.exportPerformed?ja(n.pageNumber,n.exportXML,n.objectXML,n.resultsXML):(r=Fa[n.pageNumber],ba(n.pageNumber,r.galleys),fa(n.pageNumber,r.objects),ea(n.pageNumber),z(n.pageNumber,r.galleys),z(n.pageNumber,
-r.objects)),[3,7];case 5:return r=Fa[n.pageNumber],la(n.pageNumber,n.resultsXML),ca(n.pageNumber,n.pdfBuffer,r,n.id),[3,7];case 6:return r=Fa[n.pageNumber],la(n.pageNumber,n.resultsXML),r.galleys=r.galleys.filter(function(e){return e.id!==n.id}),r.objects=r.objects.filter(function(e){return e.id!==n.id}),ca(n.pageNumber,n.pdfBuffer,r),[3,7];case 7:return[2]}})})}function ka(e){e=new Uint8Array(e);var f=(new TextDecoder("utf-8")).decode(e);e=!1;f=(new DOMParser).parseFromString(f,"text/xml").getElementsByTagName("LicenseCheck");
-null!==f&&0<f.length&&(f=f[0].getElementsByTagName("Status")[0].innerHTML,"error"!==f&&"ok"===f&&(e=!0));return e}function ja(e,f,h,n){var r=new Uint8Array(f),w=new TextDecoder("utf-8");f=w.decode(r);r=new Uint8Array(h);h=w.decode(r);r=new Uint8Array(n);n=w.decode(r);Fa[e]=oa(e,f,h,n);n=Fa[e];ba(e,n.galleys);fa(e,n.objects);ea(e);z(e,n.galleys);z(e,n.objects)}function ua(e,f){e=parseFloat(e);return isNaN(f)||f<e?e:f}function oa(e,f,w,x){var y;var z=new DOMParser;x=z.parseFromString(x,"text/xml");
-Array.prototype.slice.call(x.getElementsByTagName("BBox")).forEach(function(e){if("CropBox"===e.getAttribute("Name")){var f=parseFloat(e.getElementsByTagName("Top").item(0).innerHTML),h=parseFloat(e.getElementsByTagName("Bottom").item(0).innerHTML),n=parseFloat(e.getElementsByTagName("Left").item(0).innerHTML);e=parseFloat(e.getElementsByTagName("Right").item(0).innerHTML);y=new aa(f,n,h,e)}});z=new DOMParser;x=z.parseFromString(f,"text/xml");var ba=[];Array.prototype.slice.call(x.getElementsByTagName("STORY")).forEach(function(f){var h=
-f.getAttribute("galley_ids"),n=Array.prototype.slice.call(f.getElementsByTagName("g"))[0],w=n.getAttribute("bbox").split(" ");w=new aa(parseFloat(w[0]),parseFloat(w[1]),parseFloat(w[2]),parseFloat(w[3]));n=n.innerHTML;var x=Array.prototype.slice.call(f.getElementsByTagName("galleys"))[0];x.parentNode.removeChild(x);f=f.innerHTML;f=(new DOMParser).parseFromString(f,"text/html").documentElement.querySelector("body").innerHTML.trim();ba.push(new r(h,e,n,f,w))});z=new DOMParser;var ca=[];f=z.parseFromString(w,
-"text/xml").getElementsByTagName("Object");Array.prototype.slice.call(f).forEach(function(f){var n=f.getAttribute("Type"),r=f.getAttribute("OID");f=Array.prototype.slice.call(f.getElementsByTagName("Point"));var w=Number.NaN,x=Number.NaN,y=Number.NaN,z=Number.NaN;f.forEach(function(e){var f=e.getAttribute("Name");"TL"===f?(w=ua(e.getAttribute("Y"),w),y=ua(e.getAttribute("X"),y)):"TR"===f?(w=ua(e.getAttribute("Y"),w),z=ua(e.getAttribute("X"),z)):"BR"===f?(x=ua(e.getAttribute("Y"),x),z=ua(e.getAttribute("X"),
-z)):"BL"===f&&(x=ua(e.getAttribute("Y"),x),y=ua(e.getAttribute("X"),y))});ca.push(new h(n,r,new aa(w,y,x,z),e))});f=Array.prototype.slice.call(x.getElementsByTagName("DOC"))[0].getAttribute("id");return new n(f,1,y,ba,ca)}function la(e,f){var h;f=(new TextDecoder("utf-8")).decode(f);f=(new DOMParser).parseFromString(f,"text/xml");var n=f.getElementsByTagName("Galley").item(0);if(null!=n){var r=n.getAttribute("id");n=f.getElementsByTagName("BBox");n=Array.prototype.slice.call(n);n.forEach(function(e){var f=
-e.getElementsByTagName("Top"),n=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Left");var r=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Bottom");var w=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Right");e=parseFloat(f.item(0).innerHTML);h=new aa(n,r,w,e)});Ca[e].forEach(function(e){e.id===r&&!0===h.yQ(e.galleyBox)&&(e.galleyBox=h)})}n=f.getElementsByTagName("Object").item(0);if(null!=n){var w=n.getAttribute("OID");n=f.getElementsByTagName("BBox");n=Array.prototype.slice.call(n);
-n.forEach(function(e){var f=e.getElementsByTagName("Top"),n=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Left");var r=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Bottom");var w=parseFloat(f.item(0).innerHTML);f=e.getElementsByTagName("Right");e=parseFloat(f.item(0).innerHTML);h=new aa(n,r,w,e)});za[e].forEach(function(e){e.id===w&&!0===h.yQ(e.bbox)&&(e.bbox=h)})}}e.r(da);var ra=e(1),ma=e(55),Aa=e(7),ya=e(469),wa=e(37),ta=e(75),qa=e(2),sa=e(176),na=e(6),Da=null,Ea=null,Ca=
-{},za={},Fa={},Ba;da["default"]={Efa:function(e){return Object(ra.b)(void 0,void 0,void 0,function(){return Object(ra.d)(this,function(){Ea||(Ba=e,Ea=new Promise(function(e,f){Da=new Worker(window.Core.getWorkerPath()+"contentEdit/InfixServerModule.js");Da.onmessage=function(h){x(h,e,f)};Da.postMessage({cmd:"isReady"})}));return[2,Ea]})})},Gfa:function(e,f,h){return Object(ra.b)(void 0,void 0,void 0,function(){var n,r,w,x;return Object(ra.d)(this,function(y){switch(y.label){case 0:return ea(f),Ca[f]=
-[],za[f]=[],[4,e.He([f])];case 1:return n=y.ea(),r=new TextEncoder,w=r.encode(""),x=w.buffer,Da.postMessage({cmd:"exportFile",pageNumber:f,performExport:h,pdfFile:n,tableData:x},[n,x]),[2]}})})},C6:function(e){return Object(ra.b)(void 0,void 0,void 0,function(){var f,h,n,r,w,x,y,z;return Object(ra.d)(this,function(aa){switch(aa.label){case 0:return f=e.id,h=e.isText,n=e.pageNumber,r=Ba.getDocument(),[4,r.He([n])];case 1:return w=aa.ea(),x=new TextEncoder,y=x.encode(""),z=y.buffer,Da.postMessage({cmd:"deleteObject",
-pdfFile:w,pageNumber:n,objectID:f,isText:h,tableData:z},[z]),[2]}})})},Ska:function(e){return Object(ra.b)(void 0,void 0,void 0,function(){var f,h,n,r,w,x,y,z,aa,ba,ca,da,ea;return Object(ra.d)(this,function(fa){switch(fa.label){case 0:return f=e.id,h=e.position,n=h.top,r=h.left,w=h.bottom,x=h.right,y=e.isText,z=e.pageNumber,aa=Ba.getDocument(),[4,aa.He([z])];case 1:return ba=fa.ea(),ca=new TextEncoder,da=ca.encode(""),ea=da.buffer,Da.postMessage({cmd:"transformObject",pdfFile:ba,pageNumber:z,objectID:f,
-isText:y,topVal:n,leftVal:r,bottomVal:w,rightVal:x,tableData:ea},[ea]),[2]}})})},kla:function(e,h){return Object(ra.b)(void 0,void 0,void 0,function(){var n,r,x,z,aa,ba,ca,da,ea,fa,ha,ia,ja,ka,la;return Object(ra.d)(this,function(ma){switch(ma.label){case 0:n=w(h);n=n.replace(/<span style="color: var\(--text-color\);">(.*?)<\/span>/g,"$1");r=e.Cu.id;x=e.PageNumber;z=Fa[x];aa=z.galleys.find(function(e){return e.id===r});ba=y(aa.contents);ca=f(x,z,ba,n,r);if(""===ca)return[3,2];da=new TextEncoder;ea=
-da.encode(ca);fa=ea.buffer;ha=Object(wa.c)()||"https://www.pdftron.com/webfonts/v2/";ia=Ba.getDocument();return[4,ia.He([x])];case 1:return ja=ma.ea(),da=new TextEncoder,ka=da.encode(""),la=ka.buffer,Da.postMessage({cmd:"importText",pdfFile:ja,pageNumber:x,webFontURL:ha,galleyId:r,importData:fa,tableData:la},[fa,la]),[3,3];case 2:Object(qa.g)("Unable to generate import XML"),ma.label=3;case 3:return[2]}})})},N$:function(e){if(e)return y(e.contents);Object(qa.g)("Unable to extract document content")}}},
-469:function(ia,da,e){var ca=e(1);ia=e(81);var y=e(47);e=function(e){function da(){return null!==e&&e.apply(this,arguments)||this}Object(ca.c)(da,e);da.prototype.testSelection=function(e,ba,w){return y.a.Zk(e,ba,w)};return da}(ia.a);da.a=e}}]);}).call(this || window)

+ 0 - 26
public/lib/webviewer/core/DecryptWorker.js

@@ -1,26 +0,0 @@
-(function(){(function(n){function f(h){if(e[h])return e[h].g;var k=e[h]={ha:h,N:!1,g:{}};n[h].call(k.g,k,k.g,f);k.N=!0;return k.g}var e={};f.ka=n;f.Z=e;f.d=function(h,k,e){f.O(h,k)||Object.defineProperty(h,k,{enumerable:!0,get:e})};f.r=function(h){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"});Object.defineProperty(h,"__esModule",{value:!0})};f.t=function(h,k){k&1&&(h=f(h));if(k&8||k&4&&"object"===typeof h&&h&&h.v)return h;var e=Object.create(null);
-f.r(e);Object.defineProperty(e,"default",{enumerable:!0,value:h});if(k&2&&"string"!=typeof h)for(var w in h)f.d(e,w,function(k){return h[k]}.bind(null,w));return e};f.n=function(h){var k=h&&h.v?function(){return h["default"]}:function(){return h};f.d(k,"a",k);return k};f.O=function(h,k){return Object.prototype.hasOwnProperty.call(h,k)};f.p="/core/";return f(f.pa=4)})([function(n,f,e){var h=e(1);f.a=function(k,e,f){for(var l=[],r=0;16>r;++r){l[r]=r;r<e.length&&(l[r]|=e.charCodeAt(r));var p=f.length+
-r-16;0<=p&&(l[r]|=f.charCodeAt(p))}e=[];for(f=0;16>f;++f)e.push(k.charCodeAt(f));k=k.slice(16);l=h.a.c.U(l,e);l.update(h.a.f.createBuffer(k));return l.finish()?l.o.data:{error:"Bad password or file corrupt"}}},function(n,f,e){n=e(2);f.a=n.a},function(n,f,e){function h(a,c,g,m){var b=null;r||w();if(a.constructor==String&&(16==a.length||24==a.length||32==a.length))a=l.f.createBuffer(a);else if(a.constructor==Array&&(16==a.length||24==a.length||32==a.length)){var d=a;a=l.f.createBuffer();for(var t=0;t<
-d.length;++t)a.s(d[t])}if(a.constructor!=Array&&(d=a,a=[],t=d.length(),16==t||24==t||32==t)){t>>>=2;for(var h=0;h<t;++h)a.push(d.getInt32())}if(a.constructor==Array&&(4==a.length||6==a.length||8==a.length)){var f=y(a,m),q,e,p,B,z,n;b={o:null,update:function(a){n||q.S(a);for(a=m&&!n?32:16;q.length()>=a;){if(m)for(var b=0;4>b;++b)p[b]=q.getInt32();else for(b=0;4>b;++b)p[b]=z[b]^q.getInt32();k(f,p,B,m);if(m){for(b=0;4>b;++b)e.u(z[b]^B[b]);z=p.slice(0)}else{for(b=0;4>b;++b)e.u(B[b]);z=B}}},finish:function(a){var c=
-!0;if(!m)if(a)c=a(16,q,m);else{var g=16==q.length()?16:16-q.length();q.F(g,g)}c&&(n=!0,b.update());m&&(c=0===q.length())&&(a?c=a(16,e,m):(a=e.length(),a=e.w(a-1),16<a?c=!1:e.truncate(a)));return c},start:function(a,c){a=a||z.slice(0);if(a.constructor==String&&16==a.length)a=l.f.createBuffer(a);else if(a.constructor==Array&&16==a.length){var g=a;a=l.f.createBuffer();for(var m=0;16>m;++m)a.s(g[m])}a.constructor!=Array&&(g=a,a=Array(4),a[0]=g.getInt32(),a[1]=g.getInt32(),a[2]=g.getInt32(),a[3]=g.getInt32());
-q=l.f.createBuffer();e=c||l.f.createBuffer();z=a.slice(0);p=Array(4);B=Array(4);n=!1;b.o=e}};null!==c&&b.start(c,g)}return b}function k(b,c,g,m){var u=b.length/4-1;if(m){var A=a[0];var t=a[1];var h=a[2];var e=a[3];var q=d}else A=v[0],t=v[1],h=v[2],e=v[3],q=p;var k=c[0]^b[0];var f=c[m?3:1]^b[1];var l=c[2]^b[2];c=c[m?1:3]^b[3];for(var n=3,r=1;r<u;++r){var w=A[k>>>24]^t[f>>>16&255]^h[l>>>8&255]^e[c&255]^b[++n];var y=A[f>>>24]^t[l>>>16&255]^h[c>>>8&255]^e[k&255]^b[++n];var x=A[l>>>24]^t[c>>>16&255]^h[k>>>
-8&255]^e[f&255]^b[++n];c=A[c>>>24]^t[k>>>16&255]^h[f>>>8&255]^e[l&255]^b[++n];k=w;f=y;l=x}g[0]=q[k>>>24]<<24^q[f>>>16&255]<<16^q[l>>>8&255]<<8^q[c&255]^b[++n];g[m?3:1]=q[f>>>24]<<24^q[l>>>16&255]<<16^q[c>>>8&255]<<8^q[k&255]^b[++n];g[2]=q[l>>>24]<<24^q[c>>>16&255]<<16^q[k>>>8&255]<<8^q[f&255]^b[++n];g[m?1:3]=q[c>>>24]<<24^q[k>>>16&255]<<16^q[f>>>8&255]<<8^q[l&255]^b[++n]}function y(b,c){b=b.slice(0);for(var g,m=1,d=b.length,h=4*(d+6+1),e=d;e<h;++e)g=b[e-1],0===e%d?(g=p[g>>>16&255]<<24^p[g>>>8&255]<<
-16^p[g&255]<<8^p[g>>>24]^x[m]<<24,m++):6<d&&4===e%d&&(g=p[g>>>24]<<24^p[g>>>16&255]<<16^p[g>>>8&255]<<8^p[g&255]),b[e]=b[e-d]^g;if(c){g=a[0];m=a[1];d=a[2];e=a[3];var k=b.slice(0);h=b.length;for(var f=0,l=h-4;f<h;f+=4,l-=4)if(0===f||f===h-4)k[f]=b[l],k[f+1]=b[l+3],k[f+2]=b[l+2],k[f+3]=b[l+1];else for(var n=0;4>n;++n)c=b[l+n],k[f+(3&-n)]=g[p[c>>>24]]^m[p[c>>>16&255]]^d[p[c>>>8&255]]^e[p[c&255]];b=k}return b}function w(){r=!0;x=[0,1,2,4,8,16,32,64,128,27,54];for(var b=Array(256),c=0;128>c;++c)b[c]=c<<
-1,b[c+128]=c+128<<1^283;p=Array(256);d=Array(256);v=Array(4);a=Array(4);for(c=0;4>c;++c)v[c]=Array(256),a[c]=Array(256);for(var g=c=0,m,u,e,f,h,k=0;256>k;++k){f=g^g<<1^g<<2^g<<3^g<<4;f=f>>8^f&255^99;p[c]=f;d[f]=c;h=b[f];m=b[c];u=b[m];e=b[u];h^=h<<24^f<<16^f<<8^f;u=(m^u^e)<<24^(c^e)<<16^(c^u^e)<<8^c^m^e;for(var l=0;4>l;++l)v[l][c]=h,a[l][f]=u,h=h<<24|h>>>8,u=u<<24|u>>>8;0===c?c=g=1:(c=m^b[b[b[m^e]]],g^=b[b[g]])}}n=e(3);"undefined"!==typeof window&&((window.G=window.G||{}).c={});var l={c:{}};l.f=n.a;
-var r=!1,p,d,x,v,a;l.c.ra=function(a,c,g){return h(a,c,g,!1)};l.c.ba=function(a){return h(a,null,null,!1)};l.c.U=function(a,c){return h(a,c,void 0,!0)};l.c.aa=function(a){return h(a,null,null,!0)};l.c.W=function(a,c){r||w();return y(a,c)};l.c.X=k;f.a=l},function(n,f){function e(a,b,c){var g=null;"undefined"===typeof c&&(c=["web","flash"]);var m=!1,d=null,f;for(f in c){var e=c[f];try{if("flash"===e||"both"===e){if(null===b[0])throw{message:"Flash local storage not available."};g=a.apply(this,b);m=
-"flash"===e}if("web"===e||"both"===e)b[0]=localStorage,g=a.apply(this,b),m=!0}catch(C){d=C}if(m)break}if(!m)throw d;return g}function h(a,b){r(a,b,null)}function k(a,b,c){var g=l(a,b);if(null!==g&&c in g){delete g[c];c=!0;for(var m in tmp){c=!1;break}c&&(g=null);r(a,b,g)}}function y(a,b,c){a=l(a,b);null!==a&&(a=c in a?a[c]:null);return a}function w(a,b,c,g){var m=l(a,b);null===m&&(m={});m[c]=g;r(a,b,m)}function l(a,b){if(!a)throw{message:"WebStorage not available."};b=a.getItem(b);if(a.ia)if(null===
-b.j){if(b.error)throw b.error;b=null}else b=b.j;null!==b&&(b=JSON.parse(d.l(b)));return b}function r(a,b,c){if(!a)throw{message:"WebStorage not available."};null===c?a=a.removeItem(b):(c=d.m(JSON.stringify(c)),a=a.setItem(b,c));if("undefined"!==typeof a&&!0!==a.j)throw a.error;}function p(a){"@babel/helpers - typeof";return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?
-"symbol":typeof a},p(a)}var d={b:function(a){this.data=a||"";this.read=0}};d.b.prototype.length=function(){return this.data.length-this.read};d.b.prototype.M=function(){return 0===this.data.length-this.read};d.b.prototype.s=function(a){this.data+=String.fromCharCode(a)};d.b.prototype.F=function(a,b){a=String.fromCharCode(a);for(var c=this.data;0<b;)b&1&&(c+=a),b>>>=1,0<b&&(a+=a);this.data=c};d.b.prototype.u=function(a){this.data+=String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>
-8&255)+String.fromCharCode(a&255)};d.b.prototype.S=function(a){this.data+=a.I()};d.b.prototype.getInt16=function(){var a=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);this.read+=2;return a};d.b.prototype.getInt32=function(){var a=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);this.read+=4;return a};d.b.prototype.I=function(){if(a){var a=Math.min(this.length(),a);var b=this.data.slice(this.read,
-this.read+a);this.read+=a}else 0===a?b="":(b=0===this.read?this.data:this.data.slice(this.read),this.clear());return b};d.b.prototype.A=function(){return this.data.slice(this.read)};d.b.prototype.w=function(a){return this.data.charCodeAt(this.read+a)};d.b.prototype.compact=function(){0<this.read&&(this.data=this.data.slice(this.read),this.read=0)};d.b.prototype.clear=function(){this.data="";this.read=0};d.b.prototype.truncate=function(a){a=Math.max(0,this.length()-a);this.data=this.data.substr(this.read,
-a);this.read=0};d.b.prototype.V=function(){for(var a="",b=this.read;b<this.data.length;++b){var c=this.data.charCodeAt(b);16>c&&(a+="0");a+=c.toString(16)}return a};d.b.prototype.toString=function(){return d.B(this.A())};d.createBuffer=function(a,b){void 0!==a&&"utf8"===(b||"raw")&&(a=d.D(a));return new d.b(a)};d.da=function(a,b){for(var c="";0<b;)b&1&&(c+=a),b>>>=1,0<b&&(a+=a);return c};d.sa=function(a,b,c){for(var g="",m,d="",e=0,f=0;0<c;--c,++e)m=a.charCodeAt(e)^b.charCodeAt(e),10<=f&&(g+=d,d=
-"",f=0),d+=String.fromCharCode(m),++f;return g+d};d.ga=function(a){var b="",c=0;a.length&1&&(c=1,b+=String.fromCharCode(parseInt(a[0],16)));for(;c<a.length;c+=2)b+=String.fromCharCode(parseInt(a.substr(c,2),16));return b};d.Y=function(a){return d.createBuffer(a).V()};d.ja=function(a){return String.fromCharCode(a>>24&255)+String.fromCharCode(a>>16&255)+String.fromCharCode(a>>8&255)+String.fromCharCode(a&255)};var x=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,
-8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];d.m=function(a){for(var b="",c,g,d,e=0;e<a.length;)c=a.charCodeAt(e++),g=a.charCodeAt(e++),d=a.charCodeAt(e++),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c>>2),b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((c&3)<<4|g>>4),isNaN(g)?b+="==":(b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt((g&
-15)<<2|d>>6),b+=isNaN(d)?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d&63));return""+b};d.l=function(a){a=a.replace(/[^A-Za-z0-9\+\/=]/g,"");for(var b="",c,g,d,e,f=0;f<a.length;)c=x[a.charCodeAt(f++)-43],g=x[a.charCodeAt(f++)-43],d=x[a.charCodeAt(f++)-43],e=x[a.charCodeAt(f++)-43],b+=String.fromCharCode(c<<2|g>>4),64!==d&&(b+=String.fromCharCode((g&15)<<4|d>>2),64!==e&&(b+=String.fromCharCode((d&3)<<6|e)));return b};d.D=function(a){return unescape(encodeURIComponent(a))};
-d.B=function(a){return decodeURIComponent(escape(a))};d.C=function(a){var b;return b=d.l(a.C(d.m(b)).j)};d.L=function(a){a=a.L(d.m(void 0)).j;return null===a?null:d.l(a)};d.setItem=function(a,b,c,g,d){e(w,arguments,d)};d.getItem=function(a,b,c,g){return e(y,arguments,g)};d.removeItem=function(a,b,c,g){e(k,arguments,g)};d.$=function(a,b,c){e(h,arguments,c)};d.oa=function(a){var b=/^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g;b.lastIndex=0;b=b.exec(a);if(a=null===b?null:{H:a,scheme:b[1],host:b[2],port:b[3],
-path:b[4]})a.h=a.host,a.port?80!==a.port&&"http"===a.scheme?a.h+=":".concat(a.port):443!==a.port&&"https"===a.scheme&&(a.h+=":".concat(a.port)):"http"===a.scheme?a.port=80:"https"===a.scheme&&(a.port=443),a.H="".concat(a.scheme,"://").concat(a.h);return a};var v=null;d.K=function(a){function b(a){var b={};a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("=");if(0<d){var e=a[c].substring(0,d);d=a[c].substring(d+1)}else e=a[c],d=null;e in b||(b[e]=[]);null!==d&&b[e].push(unescape(d))}return b}
-"undefined"===typeof a?(null===v&&(v="undefined"===typeof window?{}:b(window.location.search.substring(1))),a=v):a=b(a);return a};d.P=function(a){var b=a,c="",g=a.indexOf("?");0<g&&(b=a.substring(0,g),c=a.substring(g+1));a=b.split("/");0<a.length&&""==a[0]&&a.shift();g=""==c?{}:d.K(c);return{R:b,T:c,path:a,query:g}};d.ma=function(a){var b=d.P(a),c={path:b.R,query:b.T,J:function(a){return"undefined"===typeof a?b.path:b.path[a]},getQuery:function(a,c){"undefined"===typeof a?a=b.query:(a=b.query[a])&&
-"undefined"!==typeof c&&(a=a[c]);return a},fa:function(a,b){return(a=c.getQuery(a))?a[a.length-1]:b}};return c};d.la=function(a,b,c){a=jQuery.isArray(a)?a.join("/"):a;b=jQuery.na(b||{});c=c||"";return a+(0<b.length?"?".concat(b):"")+(0<c.length?"#".concat(c):"")};d.qa=function(a,b,c){if("object"===p(a)&&null!==a)for(var d=0,e=b.length;d<e;){var f=b[d++];if(d==e)a[f]=c;else{var h=f in a;if(!h||h&&"object"!==p(a[f])||h&&null===a[f])a[f]={};a=a[f]}}};d.J=function(a,b,c){for(var d=0,e=b.length,f=!0;f&&
-d<e&&"object"===p(a)&&null!==a;){var h=b[d++];(f=h in a)&&(a=a[h])}return f?a:c};d.ca=function(a,b){if("object"===p(a)&&null!==a)for(var c=0,d=b.length;c<d;){var e=b[c++];if(c==d)delete a[e];else{if(!(e in a)||"object"!==p(a[e])||null===a[e])break;a=a[e]}}};d.M=function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0};d.format=function(a){var b=/%./g,c,d,e=0,f=[];for(d=0;c=b.exec(a);)switch(d=a.substring(d,b.lastIndex-2),0<d.length&&f.push(d),d=b.lastIndex,c=c[0][1],c){case "s":case "o":e<
-arguments.length?f.push(arguments[e++ +1]):f.push("<?>");break;case "%":f.push("%");break;default:f.push("<%".concat(c,"?>"))}f.push(a.substring(d));return f.join("")};d.i=function(a,b,c,d){var e=isNaN(b=Math.abs(b))?2:b;b=void 0===c?",":c;d=void 0===d?".":d;c=0>a?"-":"";var f="".concat(parseInt(a=Math.abs(+a||0).toFixed(e),10)),g=3<f.length?f.length%3:0;return c+(g?f.substr(0,g)+d:"")+f.substr(g).replace(/(\d{3})(?=\d)/g,"$1".concat(d))+(e?b+Math.abs(a-f).toFixed(e).slice(2):"")};d.ea=function(a){return a=
-1073741824<=a?"".concat(d.i(a/1073741824,2,".","")," GiB"):1048576<=a?"".concat(d.i(a/1048576,2,".","")," MiB"):1024<=a?"".concat(d.i(a/1024,0)," KiB"):"".concat(d.i(a,0)," bytes")};f.a=d},function(n,f,e){n.g=e(5)},function(n,f,e){e.r(f);e(6)},function(n,f,e){var h=e(0);self.onmessage=function(e){var f=e.data.data,k=e.data.password,l=e.data.partName;switch(e.data.type){case "AES":e=Object(h.a)(f,k,l);break;default:e=Object(h.a)(f,k,l)}self.postMessage(e)}}]);}).call(this || window)

+ 0 - 14
public/lib/webviewer/core/ExternalAnnotationMerger.chunk.js

@@ -1,14 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{443:function(ia,da,e){e.r(da);var ca=e(1),y=e(470),ha=e(471),ea;(function(e){e[e.EXTERNAL_XFDF_NOT_REQUESTED=0]="EXTERNAL_XFDF_NOT_REQUESTED";e[e.EXTERNAL_XFDF_NOT_AVAILABLE=1]="EXTERNAL_XFDF_NOT_AVAILABLE";e[e.EXTERNAL_XFDF_AVAILABLE=2]="EXTERNAL_XFDF_AVAILABLE"})(ea||(ea={}));ia=function(){function e(e){this.aa=e;this.state=ea.EXTERNAL_XFDF_NOT_REQUESTED}e.prototype.Cba=function(){var e=this;return function(w,y,r){return Object(ca.b)(e,
-void 0,void 0,function(){var e,n,f,z,x,aa,ba,da=this,fa;return Object(ca.d)(this,function(h){switch(h.label){case 0:if(this.state!==ea.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().ls();return[4,this.R$(e)];case 1:n=h.ea(),f=this.V5(n),this.UH=null!==(fa=null===f||void 0===f?void 0:f.parse())&&void 0!==fa?fa:null,this.state=null===this.UH?ea.EXTERNAL_XFDF_NOT_AVAILABLE:ea.EXTERNAL_XFDF_AVAILABLE,h.label=2;case 2:if(this.state===ea.EXTERNAL_XFDF_NOT_AVAILABLE)return r(w),[2];z=new DOMParser;
-x=z.parseFromString(w,"text/xml");y.forEach(function(e){da.merge(x,da.UH,e-1)});aa=new XMLSerializer;ba=aa.serializeToString(x);r(ba);return[2]}})})}};e.prototype.KL=function(e){this.R$=e};e.prototype.qe=function(){this.UH=void 0;this.state=ea.EXTERNAL_XFDF_NOT_REQUESTED};e.prototype.V5=function(e){return e?Array.isArray(e)?new y.a(e):"string"!==typeof e?null:(new DOMParser).parseFromString(e,"text/xml").querySelector("xfdf > add")?new y.a(e):new ha.a(e):null};e.prototype.merge=function(e,w,y){var r=
-this;0===y&&(this.Wda(e,w.gp),this.Yda(e,w.AH));var h=w.ca[y];h&&(this.Zda(e,h.$m),this.aea(e,h.vZ,w.Uv),this.$da(e,h.page,y),this.Xda(e,h.vR));h=this.aa.Pb();if(y===h-1){var n=w.Uv;Object.keys(n).forEach(function(f){n[f].iJ||r.gV(e,f,n[f])})}};e.prototype.Wda=function(e,w){null!==w&&(e=this.iv(e),this.vq(e,"calculation-order",w))};e.prototype.Yda=function(e,w){null!==w&&(e=this.iv(e),this.vq(e,"document-actions",w))};e.prototype.Zda=function(e,w){var y=this,r=this.hv(e.querySelector("xfdf"),"annots");
-Object.keys(w).forEach(function(e){y.vq(r,'[name="'+e+'"]',w[e])})};e.prototype.aea=function(e,w,y){var r=this;if(0!==w.length){var h=this.iv(e);w.forEach(function(n){var f=n.getAttribute("field"),w=y[f];w&&(r.gV(e,f,w),r.vq(h,"null",n))})}};e.prototype.gV=function(e,w,y){var r=this.iv(e);null!==y.EB&&this.vq(r,'ffield [name="'+w+'"]',y.EB);e=this.hv(e.querySelector("xfdf"),"fields");w=w.split(".");this.XK(e,w,0,y.value);y.iJ=!0};e.prototype.$da=function(e,w,y){null!==w&&(e=this.iv(e),e=this.hv(e,
-"pages"),this.vq(e,'[number="'+(y+1)+'"]',w))};e.prototype.Xda=function(e,w){Object.keys(w).forEach(function(w){(w=e.querySelector('annots [name="'+w+'"]'))&&w.parentElement.removeChild(w)})};e.prototype.XK=function(e,w,y,r){if(y===w.length)w=document.createElementNS("","value"),w.textContent=r,this.vq(e,"value",w);else{var h=w[y];this.hv(e,'[name="'+h+'"]',"field").setAttribute("name",h);e=e.querySelectorAll('[name="'+h+'"]');1===e.length?this.XK(e[0],w,y+1,r):(h=this.H9(e),this.XK(y===w.length-
-1?h:this.Jka(e,h),w,y+1,r))}};e.prototype.H9=function(e){for(var w=null,y=0;y<e.length;y++){var r=e[y];if(0===r.childElementCount||1===r.childElementCount&&"value"===r.children[0].tagName){w=r;break}}return w};e.prototype.Jka=function(e,w){for(var y=0;y<e.length;y++)if(e[y]!==w)return e[y];return null};e.prototype.vq=function(e,w,y){w=e.querySelector(w);null!==w&&e.removeChild(w);e.appendChild(y)};e.prototype.iv=function(e){var w=e.querySelector("pdf-info");if(null!==w)return w;w=this.hv(e.querySelector("xfdf"),
-"pdf-info");w.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");w.setAttribute("version","2");w.setAttribute("import-version","4");return w};e.prototype.hv=function(e,w,y){var r=e.querySelector(w);if(null!==r)return r;r=document.createElementNS("",y||w);e.appendChild(r);return r};return e}();da["default"]=ia},455:function(ia,da){ia=function(){function e(){}e.prototype.bA=function(e){var y={gp:null,AH:null,Uv:{},ca:{}};e=(new DOMParser).parseFromString(e,"text/xml");y.gp=e.querySelector("pdf-info calculation-order");
-y.AH=e.querySelector("pdf-info document-actions");y.Uv=this.Rea(e);y.ca=this.cfa(e);return y};e.prototype.Rea=function(e){var y=e.querySelector("fields");e=e.querySelectorAll("pdf-info > ffield");if(null===y&&null===e)return{};var ca={};this.s3(ca,y);this.q3(ca,e);return ca};e.prototype.s3=function(e,y){if(null!==y&&y.children){for(var ca=[],da=0;da<y.children.length;da++){var fa=y.children[da];ca.push({name:fa.getAttribute("name"),element:fa})}for(;0!==ca.length;)for(y=ca.shift(),da=0;da<y.element.children.length;da++)fa=
-y.element.children[da],"value"===fa.tagName?e[y.name]={value:fa.textContent,EB:null,iJ:!1}:fa.children&&ca.push({name:y.name+"."+fa.getAttribute("name"),element:fa})}};e.prototype.q3=function(e,y){y.forEach(function(y){var ca=y.getAttribute("name");e[ca]?e[ca].EB=y:e[ca]={value:null,EB:y,iJ:!1}})};e.prototype.cfa=function(e){var y=this,ca={};e.querySelectorAll("pdf-info widget").forEach(function(e){var da=parseInt(e.getAttribute("page"),10)-1;y.CC(ca,da);ca[da].vZ.push(e)});e.querySelectorAll("pdf-info page").forEach(function(e){var da=
-parseInt(e.getAttribute("number"),10)-1;y.CC(ca,da);ca[da].page=e});this.$S(e).forEach(function(e){var da=parseInt(e.getAttribute("page"),10),ba=e.getAttribute("name");y.CC(ca,da);ca[da].$m[ba]=e});this.MS(e).forEach(function(e){var da=parseInt(e.getAttribute("page"),10);e=e.textContent;y.CC(ca,da);ca[da].vR[e]=!0});return ca};e.prototype.CC=function(e,y){e[y]||(e[y]={$m:{},vR:{},vZ:[],page:null})};return e}();da.a=ia},470:function(ia,da,e){var ca=e(1),y=e(0);e.n(y);ia=function(e){function da(y){var ba=
-e.call(this)||this;ba.t9=Array.isArray(y)?y:[y];return ba}Object(ca.c)(da,e);da.prototype.parse=function(){var e=this,ba={gp:null,AH:null,Uv:{},ca:{}};this.t9.forEach(function(w){ba=Object(y.merge)(ba,e.bA(w))});return ba};da.prototype.$S=function(e){var y=[];e.querySelectorAll("add > *").forEach(function(e){y.push(e)});e.querySelectorAll("modify > *").forEach(function(e){y.push(e)});return y};da.prototype.MS=function(e){return e.querySelectorAll("delete > *")};return da}(e(455).a);da.a=ia},471:function(ia,
-da,e){var ca=e(1);ia=function(e){function y(y){var ca=e.call(this)||this;ca.u9=y;return ca}Object(ca.c)(y,e);y.prototype.parse=function(){return this.bA(this.u9)};y.prototype.$S=function(e){return e.querySelectorAll("annots > *")};y.prototype.MS=function(){return[]};return y}(e(455).a);da.a=ia}}]);}).call(this || window)

+ 0 - 7
public/lib/webviewer/core/ExternalPdfPartRetriever.chunk.js

@@ -1,7 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{435:function(ia,da,e){e.r(da);var ca=e(1);ia=e(50);var y=e(164),ha=e(371),ea=e(229),fa=window;e=function(){function e(e,y){this.vU=function(e){e=e.split(".");return e[e.length-1].match(/(jpg|jpeg|png|gif)$/i)};y=y||{};this.url=e;this.filename=y.filename||e;this.ef=y.customHeaders;this.ula=!!y.useDownloader;this.withCredentials=!!y.withCredentials}e.prototype.eE=function(e){this.ef=e};e.prototype.getCustomHeaders=function(){return this.ef};
-e.prototype.getFileData=function(w){var aa=this,r=this,h=new XMLHttpRequest,n=0===this.url.indexOf("blob:")?"blob":"arraybuffer";h.open("GET",this.url,!0);h.withCredentials=this.withCredentials;h.responseType=n;this.ef&&Object.keys(this.ef).forEach(function(e){h.setRequestHeader(e,aa.ef[e])});var f=/^https?:/i.test(this.url);h.addEventListener("load",function(h){return Object(ca.b)(this,void 0,void 0,function(){var n,z,aa,ba,da,fa;return Object(ca.d)(this,function(x){switch(x.label){case 0:if(200!==
-this.status&&(f||0!==this.status))return[3,10];r.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,h.loaded]);if("blob"!==this.responseType)return[3,4];n=this.response;return r.vU(r.filename)?[4,Object(ea.b)(n)]:[3,2];case 1:return z=x.ea(),r.fileSize=z.byteLength,w(new Uint8Array(z)),[3,3];case 2:aa=new FileReader,aa.onload=function(e){e=new Uint8Array(e.target.result);r.fileSize=e.length;w(e)},aa.readAsArrayBuffer(n),x.label=3;case 3:return[3,9];case 4:x.ei.push([4,8,,9]);ba=new Uint8Array(this.response);
-if(!r.vU(r.filename))return[3,6];n=new Blob([ba.buffer]);return[4,Object(ea.b)(n)];case 5:return z=x.ea(),r.fileSize=z.byteLength,w(new Uint8Array(z)),[3,7];case 6:r.fileSize=ba.length,w(ba),x.label=7;case 7:return[3,9];case 8:return x.ea(),r.trigger(e.Events.ERROR,["pdfLoad","Out of memory"]),[3,9];case 9:return[3,11];case 10:da=h.currentTarget,fa=Object(y.b)(da),r.trigger(e.Events.ERROR,["pdfLoad",this.status+" "+da.statusText,fa]),x.label=11;case 11:return r.Dy=null,[2]}})})},!1);h.onprogress=
-function(f){r.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,0<f.total?f.total:0])};h.addEventListener("error",function(){r.trigger(e.Events.ERROR,["pdfLoad","Network failure"]);r.Dy=null},!1);h.send();this.Dy=h};e.prototype.getFile=function(){var e=this;return new Promise(function(w){fa.utils.isJSWorker&&w(e.url);if(e.ula){var r=Object(ca.a)({url:e.url},e.ef?{customHeaders:e.ef}:{});w(r)}w(null)})};e.prototype.abort=function(){this.Dy&&(this.Dy.abort(),this.Dy=null)};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",
-ERROR:"error"};return e}();Object(ia.a)(e);Object(ha.a)(e);Object(ha.b)(e);da["default"]=e}}]);}).call(this || window)

+ 0 - 12
public/lib/webviewer/core/HttpPartRetriever.chunk.js

@@ -1,12 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[0],{428:function(ia,da,e){e.r(da);e.d(da,"ByteRangeRequest",function(){return ka});var ca=e(1),y=e(0);e.n(y);var ha=e(2),ea=e(148);ia=e(94);var fa=e(244),ba=e(71),w=e(69),aa=e(243),r=e(164);e=e(371);var h=[],n=[],f=window,z=function(){return function(){this.am=1}}(),x;(function(f){f[f.UNSENT=0]="UNSENT";f[f.DONE=4]="DONE"})(x||(x={}));var ka=function(){function e(e,h,n,r){var w=this;this.url=e;this.range=h;this.ef=n;this.withCredentials=
-r;this.g1=x;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);f.Uint8Array&&(this.request.responseType="arraybuffer");r&&(this.request.withCredentials=r);ja.DISABLE_RANGE_HEADER||(Object(y.isUndefined)(h.stop)?this.request.setRequestHeader("Range","bytes="+h.start):this.request.setRequestHeader("Range",["bytes=",h.start,"-",h.stop-1].join("")));n&&Object.keys(n).forEach(function(f){w.request.setRequestHeader(f,n[f])});this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):
-this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=aa.a.NOT_STARTED}e.prototype.start=function(e){var h=this,n=this.request;n.onreadystatechange=function(){if(h.aborted)return h.status=aa.a.ABORTED,e({code:aa.a.ABORTED});if(this.readyState===h.g1.DONE){h.dC();var r=0===window.document.URL.indexOf("file:///");200===n.status||206===n.status||r&&0===n.status?(r=f.mT(this),h.Wt(r,e)):(h.status=aa.a.ERROR,e({code:h.status,status:h.status}))}};this.request.send(null);this.status=
-aa.a.STARTED};e.prototype.Wt=function(f,e){this.status=aa.a.SUCCESS;if(e)return e(!1,f)};e.prototype.abort=function(){this.dC();this.aborted=!0;this.request.abort()};e.prototype.dC=function(){var f=Object(r.c)(this.url,this.range,n);-1!==f&&n.splice(f,1);if(0<h.length){f=h.shift();var w=new e(f.url,f.range,this.ef,this.withCredentials);f.request=w;n.push(f);w.start(Object(r.d)(f))}};e.prototype.extend=function(f){var e=Object.assign({},this,f.prototype);e.constructor=f;return e};return e}(),ja=function(f){function e(e,
-h,n,r,w){n=f.call(this,e,n,r)||this;n.em={};n.DA=h;n.url=e;n.DISABLE_RANGE_HEADER=!1;n.zx=ka;n.pN=3;n.ef=w||{};return n}Object(ca.c)(e,f);e.prototype.Cv=function(f,e,h){var n=-1===f.indexOf("?")?"?":"&";switch(h){case !1:case w.a.NEVER_CACHE:f=f+n+"_="+Object(y.uniqueId)();break;case !0:case w.a.CACHE:f=f+n+"_="+e.start+","+(Object(y.isUndefined)(e.stop)?"":e.stop)}return f};e.prototype.kR=function(f,e,h,n){void 0===h&&(h={});return new this.zx(f,e,h,n)};e.prototype.j9=function(f,e,r,w,x){for(var z=
-0;z<h.length;z++)if(Object(y.isEqual)(h[z].range,e)&&Object(y.isEqual)(h[z].url,f))return h[z].Lg.push(w),h[z].eD++,null;for(z=0;z<n.length;z++)if(Object(y.isEqual)(n[z].range,e)&&Object(y.isEqual)(n[z].url,f))return n[z].Lg.push(w),n[z].eD++,null;r={url:f,range:e,DA:r,Lg:[w],eD:1};if(0===h.length&&n.length<this.pN)return n.push(r),r.request=this.kR(f,e,x,this.withCredentials),r;h.push(r);return null};e.prototype.Sn=function(f,e,w){var x=this.Cv(f,e,this.DA);(f=this.j9(x,e,this.DA,w,this.ef))&&f.request.start(Object(r.d)(f));
-return function(){var f=Object(r.c)(x,e,n);if(-1!==f){var w=--n[f].eD;0===w&&n[f].request&&n[f].request.abort()}else f=Object(r.c)(x,e,h),-1!==f&&(w=--h[f].eD,0===w&&h.splice(f,1))}};e.prototype.RS=function(){return{start:-ea.a}};e.prototype.Lba=function(){var f=-(ea.a+ea.e);return{start:f-ea.d,end:f}};e.prototype.Zs=function(f){var e=this;this.KA=!0;var h=ea.a;this.Sn(this.url,this.RS(),function(n,r,w){function x(){var h=e.$d.NS();e.Sn(e.url,h,function(n,r){if(n)return Object(ha.j)("Error loading central directory: "+
-n),f(n);r=Object(ba.a)(r);if(r.length!==h.stop-h.start)return f("Invalid XOD file: Zip central directory data is wrong size! Should be "+(h.stop-h.start)+" but is "+r.length);e.$d.AW(r);e.cH=!0;e.KA=!1;return f(!1)})}if(n)return Object(ha.j)("Error loading end header: "+n),f(n,r,w);r=Object(ba.a)(r);if(r.length!==h)return f("Invalid XOD file: Zip end header data is wrong size!");try{e.$d=new fa.a(r)}catch(qa){return f(qa)}e.$d.oda?e.Sn(e.url,e.Lba(),function(h,n){if(h)return Object(ha.j)("Error loading zip64 header: "+
-h),f(h);n=Object(ba.a)(n);e.$d.Ida(n);x()}):x()})};e.prototype.jT=function(f){f(Object.keys(this.$d.sn))};e.prototype.$K=function(f,e){var h=this;if(this.$d.$Q(f)){var n=this.$d.ZB(f);if(n in this.em){var r=this.Yh[f];r.Or=this.em[n];r.Or.am++;r.cancel=r.Or.cancel}else{var w=this.$d.Y$(f),x=this.Sn(this.url,w,function(r,x){r?(Object(ha.j)('Error loading part "'+f+'": '+r),h.Sn(h.url,w,function(r,x){if(r)return e(r,f);h.FW(x,w,n,f,e)})):h.FW(x,w,n,f,e)}),aa=this.Yh[f];aa&&(aa.FY=!0,aa.cancel=function(){aa.Or.am--;
-0===aa.Or.am&&(x(),delete h.em[n])},this.em[n]=new z(n),aa.Or=this.em[n],aa.Or.cancel=aa.cancel)}}else delete this.Yh[f],e(Error('File not found: "'+f+'"'),f)};e.prototype.FW=function(f,e,h,n,r){if(f.length!==e.stop-e.start)r(Error("Part data is wrong size!"),n);else{do{if(!this.em[h])return;n=this.em[h].am;for(var w=e.wq.length,x=0;x<w;++x){var z=e.wq[x];r(!1,z.sq,f["string"===typeof f?"substring":"subarray"](z.start,z.stop),this.$d.mU(z.sq));z.sq in this.Yh&&delete this.Yh[z.sq]}}while(n!==this.em[h].am);
-delete this.em[h]}};e.DISABLE_RANGE_HEADER=!1;e.pN=3;return e}(ia.a);(function(f){function e(e,h,n){var r=f.call(this)||this,w;for(w in e)r[w]=e[w];r.Woa=e;r.startOffset=h;r.endOffset=n;r.kR=function(f,h,n,w){Object(y.isUndefined)(h.stop)?(h.start+=r.endOffset,h.stop=r.endOffset):(h.start+=r.startOffset,h.stop+=r.startOffset);f=r.Cv(r.url,h,r.DA);return new e.zx(f,h,n,w)};return r}Object(ca.c)(e,f);return e})(ja);Object(e.a)(ja);Object(e.b)(ja);da["default"]=ja}}]);}).call(this || window)

+ 0 - 4
public/lib/webviewer/core/IOSPartRetriever.chunk.js

@@ -1,4 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[9],{436:function(ia,da,e){e.r(da);var ca=e(1),y=e(243);ia=e(428);var ha=e(31);e=e(371);var ea={},fa=function(e){function w(w,r){var h=e.call(this,w,r)||this;h.url=w;h.range=r;h.status=y.a.NOT_STARTED;return h}Object(ca.c)(w,e);w.prototype.start=function(e){var r=this;ea[this.range.start]={Wt:function(h){var f=atob(h),n,w=f.length;h=new Uint8Array(w);for(n=0;n<w;++n)h[n]=f.charCodeAt(n);f=h.length;n="";var aa=0;if(Object(ha.q)())for(;aa<
-f;)w=h.subarray(aa,aa+1024),aa+=1024,n+=String.fromCharCode.apply(null,w);else for(w=Array(1024);aa<f;){for(var y=0,ba=Math.min(aa+1024,f);aa<ba;y++,aa++)w[y]=h[aa];n+=String.fromCharCode.apply(null,1024>y?w.slice(0,y):w)}r.Wt(n,e)},bS:function(){r.status=y.a.ERROR;e({code:r.status})}};var h=document.createElement("IFRAME");h.setAttribute("src",this.url);document.documentElement.appendChild(h);h.parentNode.removeChild(h);h=null;this.status=y.a.STARTED;r.dC()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,
-r,h,n){w=e.call(this,w,r,h,n)||this;w.zx=fa;return w}Object(ca.c)(w,e);w.prototype.Cv=function(e,r){return e+"#"+r.start+"&"+(r.stop?r.stop:"")};w.apa=function(e,r){var h=ea[r];delete ea[r];h.Wt(e)};w.$oa=function(e,r){e=ea[r];delete ea[r];e.bS()};return w}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 5
public/lib/webviewer/core/LocalPartRetriever.chunk.js

@@ -1,5 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[10],{430:function(ia,da,e){e.r(da);var ca=e(1),y=e(2),ha=e(148);ia=e(94);var ea=e(244);e=e(371);var fa=window;ia=function(e){function w(w,r,h){r=e.call(this,w,r,h)||this;if(w.name&&"xod"!==w.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!fa.FileReader||!fa.File||!fa.Blob)throw Error("File API is not supported in this browser");r.file=w;r.OA=[];r.pH=0;return r}Object(ca.c)(w,e);w.prototype.fK=function(e,r,
-h){var n=this,f=new FileReader;f.onloadend=function(e){if(0<n.OA.length){var w=n.OA.shift();w.oga.readAsBinaryString(w.file)}else n.pH--;if(f.error){e=f.error;if(e.code===e.ABORT_ERR){Object(y.j)("Request for chunk "+r.start+"-"+r.stop+" was aborted");return}return h(e)}if(e=f.content||e.target.result)return h(!1,e);Object(y.j)("No data was returned from FileReader.")};r&&(e=(e.slice||e.webkitSlice||e.mozSlice||e.Yna).call(e,r.start,r.stop));0===n.OA.length&&50>n.pH?(f.readAsBinaryString(e),n.pH++):
-n.OA.push({oga:f,file:e});return function(){f.abort()}};w.prototype.Zs=function(e){var r=this;r.KA=!0;var h=ha.a;r.fK(r.file,{start:-h,stop:r.file.size},function(n,f){if(n)return Object(y.j)("Error loading end header: %s "+n),e(n);if(f.length!==h)throw Error("Zip end header data is wrong size!");r.$d=new ea.a(f);var w=r.$d.NS();r.fK(r.file,w,function(f,h){if(f)return Object(y.j)("Error loading central directory: %s "+f),e(f);if(h.length!==w.stop-w.start)throw Error("Zip central directory data is wrong size!");
-r.$d.AW(h);r.cH=!0;r.KA=!1;return e(!1)})})};w.prototype.$K=function(e,r){var h=this,n=h.Yh[e];if(h.$d.$Q(e)){var f=h.$d.ew(e),w=h.fK(h.file,f,function(n,w){delete h.Yh[e];if(n)return Object(y.j)('Error loading part "%s": %s, '+e+", "+n),r(n);if(w.length!==f.stop-f.start)throw Error("Part data is wrong size!");r(!1,e,w,h.$d.mU(e))});n.FY=!0;n.cancel=w}else r(Error('File not found: "'+e+'"'),e)};return w}(ia.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 4
public/lib/webviewer/core/LocalPdfPartRetriever.chunk.js

@@ -1,4 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{431:function(ia,da,e){e.r(da);var ca=e(1);ia=e(50);var y=e(371),ha=e(229),ea=e(20),fa=window;e=function(){function e(e){var w=this;this.Pca=function(e){return e&&("image"===e.type.split("/")[0].toLowerCase()||e.name&&!!e.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=e;this.bda=new Promise(function(r){return Object(ca.b)(w,void 0,void 0,function(){var h;return Object(ca.d)(this,function(n){switch(n.label){case 0:return this.Pca(this.file)?
-[4,Object(ha.b)(e)]:[3,2];case 1:h=n.ea(),this.file=ea.p?new Blob([h],{type:e.type}):new File([h],null===e||void 0===e?void 0:e.name,{type:e.type}),n.label=2;case 2:return r(!0),[2]}})})})}e.prototype.getFileData=function(w){var y=this,r=new FileReader;r.onload=function(h){y.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,h.loaded]);w(new Uint8Array(h.target.result))};r.onprogress=function(h){h.lengthComputable&&y.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,0<h.total?h.total:0])};r.readAsArrayBuffer(this.file)};
-e.prototype.getFile=function(){return Object(ca.b)(this,void 0,Promise,function(){return Object(ca.d)(this,function(e){switch(e.label){case 0:return[4,this.bda];case 1:return e.ea(),fa.utils.isJSWorker?[2,this.file.path]:[2,this.file]}})})};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return e}();Object(ia.a)(e);Object(y.a)(e);Object(y.b)(e);da["default"]=e}}]);}).call(this || window)

+ 0 - 16
public/lib/webviewer/core/PDFInfoVersion1.chunk.js

@@ -1,16 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[12],{442:function(ia,da,e){function ca(e){e.Ja();e.advance();var f=e.current.textContent;e.Za();return f}function y(e){var f=[];for(e.Ja();e.advance();){var h=e.Oa();"field"===h?f.push(String(e.ga("name"))):Object(x.j)("unrecognised field list element: "+h)}e.Za();return f}function ha(e,f){return f?"false"!==e:"true"===e}function ea(e,f){var h=e.Oa();switch(h){case "javascript":return{name:"JavaScript",javascript:e.current.textContent};
-case "uri":return{name:"URI",uri:e.ga("uri")};case "goto":h=null;e.Ja();if(e.advance()){var n=e.ga("fit");h={page:e.ga("page"),fit:n};if("0"===h.page)Object(x.j)("null page encountered in dest");else switch(f=f(Number(h.page)),n){case "Fit":case "FitB":break;case "FitH":case "FitBH":h.top=f.ra({x:0,y:e.ga("top")||0}).y;break;case "FitV":case "FitBV":h.left=f.ra({x:e.ga("left")||0,y:0}).x;break;case "FitR":n=f.ra({x:e.ga("left")||0,y:e.ga("top")||0});f=f.ra({x:e.ga("right")||0,y:e.ga("bottom")||0});
-f=new ua.d(n.x,n.y,f.x,f.y);h.top=f.ka;h.left=f.ma;h.bottom=f.la;h.right=f.oa;break;case "XYZ":n=f.ra({x:e.ga("left")||0,y:e.ga("top")||0});h.top=n.y;h.left=n.x;h.zoom=e.ga("zoom")||0;break;default:Object(x.j)("unknown dest fit: "+n)}h={name:"GoTo",dest:h}}else Object(x.j)("missing dest in GoTo action");e.Za();return h;case "submit-form":h={name:"SubmitForm",url:e.ga("url"),format:e.ga("format"),method:e.ga("method")||"POST",exclude:ha(e.ga("exclude"),!1)};f=e.ga("flags");h.flags=f?f.split(" "):[];
-for(e.Ja();e.advance();)switch(f=e.Oa(),f){case "fields":h.fields=y(e);break;default:Object(x.j)("unrecognised submit-form child: "+f)}e.Za();return h;case "reset-form":h={name:"ResetForm",exclude:ha(e.ga("exclude"),!1)};for(e.Ja();e.advance();)switch(f=e.Oa(),f){case "fields":h.fields=y(e);break;default:Object(x.j)("unrecognised reset-form child: "+f)}e.Za();return h;case "hide":h={name:"Hide",hide:ha(e.ga("hide"),!0)};for(e.Ja();e.advance();)switch(f=e.Oa(),f){case "fields":h.fields=y(e);break;
-default:Object(x.j)("unrecognised hide child: "+f)}e.Za();return h;case "named":return{name:"Named",action:e.ga("name")};default:Object(x.j)("Encountered unexpected action type: "+h)}return null}function fa(e,f,h){var n={};for(e.Ja();e.advance();){var r=e.Oa();switch(r){case "action":r=e.ga("trigger");if(f?-1!==f.indexOf(r):1){n[r]=[];for(e.Ja();e.advance();){var w=ea(e,h);Object(ka.isNull)(w)||n[r].push(w)}e.Za()}else Object(x.j)("encountered unexpected trigger on field: "+r);break;default:Object(x.j)("encountered unknown action child: "+
-r)}}e.Za();return n}function ba(e){return new oa.a(e.ga("r")||0,e.ga("g")||0,e.ga("b")||0,e.ga("a")||1)}function w(e,f){var h=e.ga("name"),n=e.ga("type")||"Type1",r=e.ga("size"),w=f.ra({x:0,y:0});r=f.ra({x:Number(r),y:0});f=w.x-r.x;w=w.y-r.y;h={name:h,type:n,size:Math.sqrt(f*f+w*w)||0,strokeColor:[0,0,0],fillColor:[0,0,0]};for(e.Ja();e.advance();)switch(n=e.Oa(),n){case "stroke-color":h.strokeColor=ba(e);break;case "fill-color":h.fillColor=ba(e);break;default:Object(x.j)("unrecognised font child: "+
-n)}e.Za();return h}function aa(e){return{value:e.ga("value"),displayValue:e.ga("display-value")||void 0}}function r(e){var f=[];for(e.Ja();e.advance();){var h=e.Oa();switch(h){case "option":f.push(aa(e));break;default:Object(x.j)("unrecognised options child: "+h)}}e.Za();return f}function h(e,f){var h=e.ga("name"),n={type:e.ga("type"),quadding:e.ga("quadding")||"Left-justified",maxLen:e.ga("max-len")||-1},y=e.ga("flags");Object(ka.isString)(y)&&(n.flags=y.split(" "));for(e.Ja();e.advance();)switch(y=
-e.Oa(),y){case "actions":n.actions=fa(e,["C","F","K","V"],function(){return f});break;case "default-value":n.defaultValue=ca(e);break;case "font":n.font=w(e,f);break;case "options":n.options=r(e);break;default:Object(x.j)("unknown field child: "+y)}e.Za();return new window.Annotations.ha.qa(h,n)}function n(e,f){switch(e.type){case "Tx":try{if(Object(ra.c)(e.actions))return new ja.a.DatePickerWidgetAnnotation(e,f)}catch(wa){Object(x.j)(wa)}return new ja.a.TextWidgetAnnotation(e,f);case "Ch":return e.flags.get(ma.WidgetFlags.COMBO)?
-new ja.a.ChoiceWidgetAnnotation(e,f):new ja.a.ListWidgetAnnotation(e,f);case "Btn":return e.flags.get(ma.WidgetFlags.PUSH_BUTTON)?new ja.a.PushButtonWidgetAnnotation(e,f):e.flags.get(ma.WidgetFlags.RADIO)?new ja.a.RadioButtonWidgetAnnotation(e,f):new ja.a.CheckButtonWidgetAnnotation(e,f);case "Sig":return new ja.a.SignatureWidgetAnnotation(e,f);default:Object(x.j)("Unrecognised field type: "+e.type)}return null}function f(e,f){var h={number:e.ga("number")};for(e.Ja();e.advance();){var n=e.Oa();switch(n){case "actions":h.actions=
-fa(e,["O","C"],f);break;default:Object(x.j)("unrecognised page child: "+n)}}e.Za();return h}function z(e,r,z,aa){var ca=[],ea={};e.Ja();var da=[],ha={},ia=[];Object(la.a)(function(){if(e.advance()){var z=e.Oa();switch(z){case "calculation-order":da="calculation-order"===e.Oa()?y(e):[];break;case "document-actions":ha=fa(e,["Init","Open"],r);break;case "pages":z=[];for(e.Ja();e.advance();){var aa=e.Oa();switch(aa){case "page":z.push(f(e,r));break;default:Object(x.j)("unrecognised page child: "+aa)}}e.Za();
-ia=z;break;case "field":aa=h(e,r(1));ea[aa.name]=aa;break;case "widget":z={border:{style:"Solid",width:1},backgroundColor:[],fieldName:e.ga("field"),page:e.ga("page"),index:e.ga("index")||0,rotation:e.ga("rotation")||0,flags:[],isImporting:!0};(aa=e.ga("appearance"))&&(z.appearance=aa);(aa=e.ga("flags"))&&(z.flags=aa.split(" "));for(e.Ja();e.advance();)switch(aa=e.Oa(),aa){case "rect":var ja=e,wa=r(Number(z.page));aa=wa.ra({x:ja.ga("x1")||0,y:ja.ga("y1")||0});ja=wa.ra({x:ja.ga("x2")||0,y:ja.ga("y2")||
-0});aa=new ua.d(aa.x,aa.y,ja.x,ja.y);aa.normalize();z.rect={x1:aa.x1,y1:aa.y1,x2:aa.x2,y2:aa.y2};break;case "border":aa=e;ja={style:aa.ga("style")||"Solid",width:aa.ga("width")||1,color:[0,0,0]};for(aa.Ja();aa.advance();)switch(wa=aa.Oa(),wa){case "color":ja.color=ba(aa);break;default:Object(x.j)("unrecognised border child: "+wa)}aa.Za();z.border=ja;break;case "background-color":z.backgroundColor=ba(e);break;case "actions":z.actions=fa(e,"E X D U Fo Bl PO PC PV PI".split(" "),r);break;case "appearances":aa=
-e;ja=Object(ra.b)(z,"appearances");for(aa.Ja();aa.advance();)if(wa=aa.Oa(),"appearance"===wa){wa=aa.ga("name");var ma=Object(ra.b)(ja,wa);wa=aa;for(wa.Ja();wa.advance();){var ka=wa.Oa();switch(ka){case "Normal":Object(ra.b)(ma,"Normal").data=wa.current.textContent;break;default:Object(x.j)("unexpected appearance state: ",ka)}}wa.Za()}else Object(x.j)("unexpected appearances child: "+wa);aa.Za();break;case "extra":aa=e;ja=r;wa={};for(aa.Ja();aa.advance();)switch(ma=aa.Oa(),ma){case "font":wa.font=
-w(aa,ja(1));break;default:Object(x.j)("unrecognised extra child: "+ma)}aa.Za();aa=wa;aa.font&&(z.font=aa.font);break;case "captions":ja=e;aa={};(wa=ja.ga("Normal"))&&(aa.Normal=wa);(wa=ja.ga("Rollover"))&&(aa.Rollover=wa);(ja=ja.ga("Down"))&&(aa.Down=ja);z.captions=aa;break;default:Object(x.j)("unrecognised widget child: "+aa)}e.Za();(aa=ea[z.fieldName])?(z=n(aa,z),ca.push(z)):Object(x.j)("ignoring widget with no corresponding field data: "+z.fieldName);break;default:Object(x.j)("Unknown element encountered in PDFInfo: "+
-z)}return!0}return!1},function(){e.Za();z({calculationOrder:da,widgets:ca,fields:ea,documentActions:ha,pages:ia,custom:[]})},aa)}e.r(da);e.d(da,"parse",function(){return z});var x=e(2),ka=e(0);e.n(ka);var ja=e(116),ua=e(4),oa=e(7),la=e(20),ra=e(103),ma=e(17)}}]);}).call(this || window)

+ 0 - 15
public/lib/webviewer/core/SelectionInfoOld.chunk.js

@@ -1,15 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[13],{445:function(ia,da,e){e.r(da);var ca=e(456),y=e(115),ha=e(39),ea=e(73);ia=function(){function e(){this.tb=this.ve=this.Sb=this.gc=null;this.Ne=!1}e.prototype.clear=function(){Object(ha.b)(this.gc);this.Sb="";Object(ha.b)(this.ve);Object(ha.b)(this.tb);this.Ne=!1};e.prototype.hd=function(){this.gc=[];this.ve=[];this.tb=[];this.Ne=!1};e.prototype.Hz=function(e){for(var w="",y=0,r,h,n;y<e.length;)r=e.charCodeAt(y),9===r?(w+=String.fromCharCode(10),
-y++):128>r?(w+=String.fromCharCode(r),y++):191<r&&224>r?(h=e.charCodeAt(y+1),w+=String.fromCharCode((r&31)<<6|h&63),y+=2):(h=e.charCodeAt(y+1),n=e.charCodeAt(y+2),w+=String.fromCharCode((r&15)<<12|(h&63)<<6|n&63),y+=3);return w};e.prototype.initData=function(e){this.gc=[];this.ve=[];this.tb=[];this.Ne=!1;try{var w=new ea.a(e);this.Sb="";w.Ja();if(!w.advance())return;var aa=w.current.textContent;this.Sb=aa=this.Hz(aa);Object(ha.b)(this.ve);w.advance();aa=w.current.textContent;for(var r=aa.split(","),
-h=Object(y.a)(r);h.Pl();){var n=h.current;try{var f=parseInt(n.trim(),10);this.ve.push(f)}catch(la){}}Object(ha.b)(this.gc);w.advance();aa=w.current.textContent;r=aa.split(",");for(var z=Object(y.a)(r);z.Pl();){n=z.current;try{f=parseFloat(n.trim()),this.gc.push(f)}catch(la){}}Object(ha.b)(this.tb);w.advance();aa=w.current.textContent;r=aa.split(",");e=[];w=[];aa=0;for(var x=Object(y.a)(r);x.Pl();){n=x.current;switch(n){case "Q":aa=1;break;case "R":aa=2;break;case "S":aa=3;break;default:aa=0}if(aa)e.push(0),
-w.push(aa);else try{f=parseFloat(n.trim()),e.push(f),w.push(aa)}catch(la){return}}aa=0;var ba=e.length;h=x=n=r=void 0;for(var ca=z=0,fa=0;fa<ba;){var da=w[fa];if(0<da)aa=da,++fa,3===aa&&(z=e[fa],ca=e[fa+1],fa+=2);else if(1===aa)for(f=0;8>f;++f)this.tb.push(e[fa++]);else 2===aa?(r=e[fa++],n=e[fa++],x=e[fa++],h=e[fa++],this.tb.push(r),this.tb.push(n),this.tb.push(x),this.tb.push(n),this.tb.push(x),this.tb.push(h),this.tb.push(r),this.tb.push(h)):3===aa&&(r=e[fa++],n=z,x=e[fa++],h=ca,this.tb.push(r),
-this.tb.push(n),this.tb.push(x),this.tb.push(n),this.tb.push(x),this.tb.push(h),this.tb.push(r),this.tb.push(h))}}catch(la){return}this.Sb.length&&this.Sb.length===this.ve.length&&8*this.Sb.length===this.tb.length&&(this.Ne=!0)};e.prototype.ready=function(){return this.Ne};e.prototype.fw=function(){var e=new ca.a;if(!this.gc.length)return e.Wg(this.gc,-1,this.Sb,this.tb,0),e;e.Wg(this.gc,1,this.Sb,this.tb,1);return e};e.prototype.jf=function(){return this.tb};e.prototype.getData=function(){return{m_Struct:this.gc,
-m_Str:this.Sb,m_Offsets:this.ve,m_Quads:this.tb,m_Ready:this.Ne}};return e}();da["default"]=ia},456:function(ia,da,e){var ca=e(84),y=e(49),ha=e(472);ia=function(){function e(){this.be=0;this.sb=this.Ea=this.$e=null;this.Lc=0;this.ae=null}e.prototype.hd=function(){this.be=-1;this.Lc=0;this.ae=[]};e.prototype.Wg=function(e,y,w,aa,r){this.be=y;this.Lc=r;this.ae=[];this.$e=e;this.Ea=w;this.sb=aa};e.prototype.Ac=function(e){return this.be===e.be};e.prototype.Uj=function(){return Math.abs(this.$e[this.be])};
-e.prototype.Ll=function(){return 0<this.$e[this.be]};e.prototype.Pg=function(){var e=this.Ll()?6:10,y=new ha.a;y.Wg(this.$e,this.be+e,this.be,this.Ea,this.sb,1);return y};e.prototype.BT=function(e){if(0>e||e>=this.Uj())return e=new ha.a,e.Wg(this.$e,-1,-1,this.Ea,this.sb,0),e;var y=this.Ll()?6:10,w=this.Ll()?5:11,aa=new ha.a;aa.Wg(this.$e,this.be+y+w*e,this.be,this.Ea,this.sb,1+e);return aa};e.prototype.An=function(){var y=this.be+parseInt(this.$e[this.be+1],10);if(y>=this.$e.length)return y=new e,
-y.Wg(this.$e,-1,this.Ea,this.sb,0),y;var ba=new e;ba.Wg(this.$e,y,this.Ea,this.sb,this.Lc+1);return ba};e.prototype.Ie=function(e){if(this.Ll())e.ma=this.$e[this.be+2+0],e.ka=this.$e[this.be+2+1],e.oa=this.$e[this.be+2+2],e.la=this.$e[this.be+2+3];else{for(var y=1.79769E308,w=ca.a.MIN,aa=1.79769E308,r=ca.a.MIN,h=0;4>h;++h){var n=this.$e[this.be+2+2*h],f=this.$e[this.be+2+2*h+1];y=Math.min(y,n);w=Math.max(w,n);aa=Math.min(aa,f);r=Math.max(r,f)}e.ma=y;e.ka=aa;e.oa=w;e.la=r}};e.prototype.WB=function(){if(this.ae.length)return this.ae[0];
-var e=new y.a,ba=new y.a,w=new ha.a;w.hd();var aa=this.Pg(),r=new ha.a;r.hd();for(var h=this.Pg();!h.Ac(w);h=h.Sg())r=h;w=Array(8);h=Array(8);aa.Je(0,w);e.x=(w[0]+w[2]+w[4]+w[6])/4;e.y=(w[1]+w[3]+w[5]+w[7])/4;r.Je(r.Tj()-1,h);ba.x=(h[0]+h[2]+h[4]+h[6])/4;ba.y=(h[1]+h[3]+h[5]+h[7])/4;.01>Math.abs(e.x-ba.x)&&.01>Math.abs(e.y-ba.y)&&this.ae.push(0);e=Math.atan2(ba.y-e.y,ba.x-e.x);e*=180/3.1415926;0>e&&(e+=360);this.ae.push(e);return 0};return e}();da.a=ia},472:function(ia,da,e){var ca=e(456),y=e(95),
-ha=e(84);ia=function(){function e(){this.Pk=this.Dd=0;this.sb=this.Ea=this.gc=null;this.Lc=0}e.prototype.hd=function(){this.Pk=this.Dd=-1;this.Lc=0};e.prototype.Wg=function(e,y,w,aa,r,h){this.Dd=y;this.Pk=w;this.gc=e;this.Ea=aa;this.sb=r;this.Lc=h};e.prototype.Ac=function(e){return this.Dd===e.Dd};e.prototype.Tj=function(){return parseInt(this.gc[this.Dd],10)};e.prototype.Ki=function(){return parseInt(this.gc[this.Dd+2],10)};e.prototype.Ug=function(){return parseInt(this.gc[this.Dd+1],10)};e.prototype.Ll=
-function(){return 0<this.gc[this.Pk]};e.prototype.Oaa=function(){return Math.abs(this.gc[this.Pk])};e.prototype.Sg=function(){var y=this.Ll(),ba=y?5:11;if(this.Dd>=this.Pk+(y?6:10)+(this.Oaa()-1)*ba)return ba=new e,ba.Wg(this.gc,-1,-1,this.Ea,this.sb,0),ba;y=new e;y.Wg(this.gc,this.Dd+ba,this.Pk,this.Ea,this.sb,this.Lc+1);return y};e.prototype.daa=function(e){var y=this.Tj();return 0>e||e>=y?-1:parseInt(this.gc[this.Dd+1],10)+e};e.prototype.Je=function(e,ba){e=this.daa(e);if(!(0>e)){var w=new ca.a;
-w.Wg(this.gc,this.Pk,this.Ea,this.sb,0);if(w.Ll()){var aa=new y.a;w.Ie(aa);w=aa.ka<aa.la?aa.ka:aa.la;aa=aa.ka>aa.la?aa.ka:aa.la;e*=8;ba[0]=this.sb[e];ba[1]=w;ba[2]=this.sb[e+2];ba[3]=ba[1];ba[4]=this.sb[e+4];ba[5]=aa;ba[6]=this.sb[e+6];ba[7]=ba[5]}else for(e*=8,w=0;8>w;++w)ba[w]=this.sb[e+w]}};e.prototype.he=function(e){var ba=new ca.a;ba.Wg(this.gc,this.Pk,this.Ea,this.sb,0);if(ba.Ll()){var w=this.gc[this.Dd+3],aa=this.gc[this.Dd+4];if(w>aa){var r=w;w=aa;aa=r}r=new y.a;ba.Ie(r);ba=r.ka<r.la?r.ka:
-r.la;r=r.ka>r.la?r.ka:r.la;e[0]=w;e[1]=ba;e[2]=aa;e[3]=ba;e[4]=aa;e[5]=r;e[6]=w;e[7]=r}else for(w=this.Dd+3,aa=0;8>aa;++aa)e[aa]=this.gc[w+aa]};e.prototype.Ie=function(e){var ba=new ca.a;ba.Wg(this.gc,this.Pk,this.Ea,this.sb,0);if(ba.Ll()){var w=this.gc[this.Dd+3],aa=this.gc[this.Dd+4];if(w>aa){var r=w;w=aa;aa=r}r=new y.a;ba.Ie(r);ba=r.ka<r.la?r.ka:r.la;r=r.ka>r.la?r.ka:r.la;e[0]=w;e[1]=ba;e[2]=aa;e[3]=r}else{w=1.79769E308;aa=ha.a.MIN;ba=1.79769E308;r=ha.a.MIN;for(var h=this.Dd+3,n=0;4>n;++n){var f=
-this.gc[h+2*n],z=this.gc[h+2*n+1];w=Math.min(w,f);aa=Math.max(aa,f);ba=Math.min(ba,z);r=Math.max(r,z)}e[0]=w;e[1]=ba;e[2]=aa;e[3]=r}};return e}();da.a=ia}}]);}).call(this || window)

+ 0 - 10
public/lib/webviewer/core/StreamingPartRetriever.chunk.js

@@ -1,10 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{437:function(ia,da,e){e.r(da);var ca=e(1),y=e(0);e.n(y);var ha=e(2),ea=e(148);ia=e(50);var fa=e(94),ba=e(244),w=e(69),aa=e(243);e=e(371);var r=window,h=function(){function e(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(f){case w.a.NEVER_CACHE:this.url=e+n+"_="+Object(y.uniqueId)();break;default:this.url=e}this.ef=h;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With",
-"XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=aa.a.NOT_STARTED}e.prototype.start=function(f,h){var n=this,r=this,w=this.request,x;r.Sw=0;f&&Object.keys(f).forEach(function(e){n.request.setRequestHeader(e,f[e])});h&&(this.request.withCredentials=h);this.DD=setInterval(function(){var f=0===window.document.URL.indexOf("file:///");f=200===w.status||f&&0===
-w.status;if(w.readyState!==aa.b.DONE||f){try{w.responseText}catch(ma){return}r.Sw<w.responseText.length&&(x=r.Wfa())&&r.trigger(e.Events.DATA,[x]);0===w.readyState&&(clearInterval(r.DD),r.trigger(e.Events.DONE))}else clearInterval(r.DD),r.trigger(e.Events.DONE,["Error received return status "+w.status])},1E3);this.request.send(null);this.status=aa.a.STARTED};e.prototype.Wfa=function(){var f=this.request,h=f.responseText;if(0!==h.length)if(this.Sw===h.length)clearInterval(this.DD),this.trigger(e.Events.DONE);
-else return h=Math.min(this.Sw+3E6,h.length),f=r.mT(f,this.Sw,!0,h),this.Sw=h,f};e.prototype.abort=function(){clearInterval(this.DD);var f=this;this.request.onreadystatechange=function(){Object(ha.j)("StreamingRequest aborted");f.status=aa.a.ABORTED;return f.trigger(e.Events.ABORTED)};this.request.abort()};e.prototype.finish=function(){var f=this;this.request.onreadystatechange=function(){f.status=aa.a.SUCCESS;return f.trigger(e.Events.DONE)};this.request.abort()};e.Events={DONE:"done",DATA:"data",
-ABORTED:"aborted"};return e}();Object(ia.a)(h);var n;(function(e){e[e.LOCAL_HEADER=0]="LOCAL_HEADER";e[e.FILE=1]="FILE";e[e.CENTRAL_DIR=2]="CENTRAL_DIR"})(n||(n={}));var f=function(e){function f(){var f=e.call(this)||this;f.buffer="";f.state=n.LOCAL_HEADER;f.mM=4;f.Nl=null;f.dt=ea.c;f.sn={};return f}Object(ca.c)(f,e);f.prototype.Qfa=function(e){var h;for(e=this.buffer+e;e.length>=this.dt;)switch(this.state){case n.LOCAL_HEADER:this.Nl=h=this.$fa(e.slice(0,this.dt));if(h.Pt!==ea.g)throw Error("Wrong signature in local header: "+
-h.Pt);e=e.slice(this.dt);this.state=n.FILE;this.dt=h.VG+h.kq+h.Tv+this.mM;this.trigger(f.Events.HEADER,[h]);break;case n.FILE:this.Nl.name=e.slice(0,this.Nl.kq);this.sn[this.Nl.name]=this.Nl;h=this.dt-this.mM;var r=e.slice(this.Nl.kq+this.Nl.Tv,h);this.trigger(f.Events.FILE,[this.Nl.name,r,this.Nl.jH]);e=e.slice(h);if(e.slice(0,this.mM)===ea.h)this.state=n.LOCAL_HEADER,this.dt=ea.c;else return this.state=n.CENTRAL_DIR,!0}this.buffer=e;return!1};f.Events={HEADER:"header",FILE:"file"};return f}(ba.a);
-Object(ia.a)(f);ia=function(e){function n(n,r,w,x,y){w=e.call(this,n,w,x)||this;w.url=n;w.stream=new h(n,r);w.$d=new f;w.jW=window.createPromiseCapability();w.LW={};w.ef=y;return w}Object(ca.c)(n,e);n.prototype.Fx=function(e){var n=this;this.request([this.qj,this.Ik,this.pj]);this.stream.addEventListener(h.Events.DATA,function(f){try{if(n.$d.Qfa(f))return n.stream.finish()}catch(oa){throw n.stream.abort(),n.Pv(oa),e(oa),oa;}});this.stream.addEventListener(h.Events.DONE,function(f){n.ufa=!0;n.jW.resolve();
-f&&(n.Pv(f),e(f))});this.$d.addEventListener(f.Events.HEADER,Object(y.bind)(this.KW,this));this.$d.addEventListener(f.Events.FILE,Object(y.bind)(this.pga,this));return this.stream.start(this.ef,this.withCredentials)};n.prototype.jT=function(e){var f=this;this.jW.promise.then(function(){e(Object.keys(f.$d.sn))})};n.prototype.Zn=function(){return!0};n.prototype.request=function(e){var f=this;this.ufa&&e.forEach(function(e){f.LW[e]||f.Uka(e)})};n.prototype.KW=function(){};n.prototype.abort=function(){this.stream&&
-this.stream.abort()};n.prototype.Uka=function(e){this.trigger(fa.a.Events.PART_READY,[{bb:e,error:"Requested part not found",Di:!1,Yf:!1}])};n.prototype.pga=function(e,f,h){this.LW[e]=!0;this.trigger(fa.a.Events.PART_READY,[{bb:e,data:f,Di:!1,Yf:!1,error:null,ed:h}])};return n}(fa.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 3
public/lib/webviewer/core/WebDBPartRetriever.chunk.js

@@ -1,3 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[15],{440:function(ia,da,e){e.r(da);var ca=e(1),y=e(0);e.n(y);ia=e(94);e=e(371);ia=function(e){function ea(y,ba,w){ba=e.call(this,y,ba,w)||this;ba.db=y;return ba}Object(ca.c)(ea,e);ea.prototype.request=function(e){var ba=this;Object(y.each)(e,function(e){ba.db.get(e,function(w,r,h){return w?ba.trigger("partReady",{bb:e,error:w}):ba.trigger("partReady",{bb:e,data:r,Di:!1,Yf:!1,error:null,ed:h})})})};ea.prototype.Zs=function(e){e()};
-return ea}(ia.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 32
public/lib/webviewer/core/WebViewerServerPartRetriever.chunk.js

@@ -1,32 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[16],{439:function(ia,da,e){function ca(e,f,h){f.endsWith("/")||(f+="/");h=h||{};var n=h.disableWebsockets||!1;this.yY=h.singleServerMode||!1;null!=h.customQueryParameters&&Object(z.b)("wvsQueryParameters",h.customQueryParameters);f.endsWith("blackbox/")||(f+="blackbox/");this.po=h.uploadData||null;this.sy=h.uriData||null;this.FQ=h.cacheKey||null;this.wV=h.officeOptions||null;this.Bv=Object(r.a)(f,null,n);this.qf=f;this.zH=e;this.If=
-null;this.qk=ha();this.jn=ha();this.VA=!1;this.Ig=this.ke=this.De=this.pf=null;this.Nf=[];this.JB=[];this.cache={};this.timeStamp=0;this.mg=[];this.Sh=[];this.YH=null;this.sH=!1;this.GL=this.id=null;this.eK=this.RT=ea;this.SD=0;this.fJ=!1;this.rV=1;this.Vi={};this.Er=0;this.wt=y();this.Mq(!0)}function y(){var e={Es:{},Jb:[],pop:function(){var f=e.Jb.pop();e.Es[f.key]=void 0;return f},push:function(f,h){h={key:f,data:h};e.Jb.push(h);e.Es[f]=h.data},contains:function(f){return!!e.Es[f]},get:function(f){return e.Es[f]},
-set:function(f,h){e.Es[f]=h;e.Jb.forEach(function(h,n){h.key===f&&(e.Jb[n]=h)})},remove:function(f){e.Es[f]=void 0;e.Jb.forEach(function(h,n){h.key===f&&e.Jb.splice(n,1)})},length:function(){return e.Jb.length}};return e}function ha(){var e={promise:null,resolve:null,reject:null,state:0,result:null,request:null,Ts:function(){return 1===(e.state&1)},cda:function(){return 2===(e.state&2)},Qi:function(){return!e.cda()&&!e.Ts()},Eca:function(){return 4===(e.state&4)},QX:function(){e.state|=4}};e.promise=
-new Promise(function(f,h){e.resolve=function(){if(0===e.state||4===e.state)e.state=1,e.result=arguments[0],f.apply(null,arguments)};e.reject=function(){if(0===e.state||4===e.state)e.state=2,h.apply(null,arguments)}});return e}function ea(){return!1}function fa(e,f,h){if(!(f in ka))return!0;f=ka[f];for(var n=0;n<f.length;n++){var r=e;var w=f[n];var x=h;if(w.name in r){var y="",z=!1;r=r[w.name];switch(w.type){case "s":y="String";z=Object(ba.isString)(r);break;case "a":y="Array";z=Object(ba.isArray)(r);
-break;case "n":y="Number";z=Object(ba.isNumber)(r)&&Object(ba.isFinite)(r);break;case "o":y="Object",z=Object(ba.isObject)(r)&&!Object(ba.isArray)(r)}z||x.reject('Expected response field "'+w.name+'" to have type '+y);w=z}else x.reject('Response missing field "'+w.name+'"'),w=!1;if(!w)return!1}return!0}e.r(da);var ba=e(0);e.n(ba);var w=e(2);ia=e(50);var aa=e(31),r=e(457),h=e(94),n=e(371),f=e(113),z=e(40),x=e(164),ka={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",
-type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],annots:[{name:"url",type:"s"},{name:"name",type:"s"}],image:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],text:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],ApString2Xod:[{name:"url",type:"s"},{name:"rID",type:"s"}]};ca.prototype=Object(ba.extend)(ca.prototype,{H6:function(){var e=this;return new Promise(function(f,h){var n=
-new XMLHttpRequest;n.open("GET",e.qf+"ck");n.withCredentials=e.wl();n.onreadystatechange=function(){n.readyState===XMLHttpRequest.DONE&&(200===n.status?f():h())};n.send()})},Xia:function(e,f){this.RT=e||ea;this.eK=f||ea},WQ:function(){var e=this;this.jn=ha();this.qk=ha();return this.Bv.OH().then(function(){e.VA=!1;e.id=null;e.sH=!1;return e.H6()})},rL:function(){this.RT();this.yJ();this.pf&&(this.pf.Qi()?this.kh(this.pf.request):this.pf.Ts()&&this.eK(this.pf.result.url,"pdf")&&(this.pf=null,this.oX()));
-this.Ig&&this.Ig.Qi()&&this.kh(this.Ig.request);this.De&&this.De.Qi()?this.kh(this.De.request):this.ke&&this.ke.Qi()&&this.CT(this.ke.request);var e;for(e=0;e<this.mg.length;e++)this.mg[e]&&this.mg[e]&&(this.mg[e].Qi()?this.kh(this.mg[e].request):this.mg[e].Ts()&&this.eK(this.mg[e].result.url,"image")&&(this.mg[e]=null,this.PD(Object(ba.uniqueId)(),e)));for(e=0;e<this.Sh.length;e++)this.Sh[e]&&this.Sh[e]&&this.Sh[e].Qi()&&!this.Sh[e].Eca()&&this.kh(this.Sh[e].request);for(e=0;e<this.Nf.length;e++)this.Nf[e]&&
-this.Nf[e].Qi()&&this.kh(this.Nf[e].request)},yJ:function(e){var h=this;this.VA||(this.timeStamp=Date.now(),this.Bv.qM(function(e){h.uea(e)},function(){return null},function(){return null},!0).then(function(){clearInterval(h.HD);h.HD=null},function(n){h.VA=!1;if(!h.HD){var r=0;h.sH=!0;h.GL=0;h.HD=setInterval(function(){2>r++?h.rL():(clearInterval(h.HD),e&&e.reject(f.a),Object(w.g)("WebViewerServer connection failed:"+n))},5E3)}}),this.VA=!0)},rla:function(){var e=this,f=createPromiseCapability();
-if(this.po){var h=new FormData;h.append("file",this.po.fileHandle,this.po.fileHandle.name);var n=this.po.loadCallback;var r="upload";var w=this.po.extension}else if(this.sy){h={uri:this.sy.uri,spa:this.sy.shareId};h=Object.keys(h).map(function(e){return e+"="+(h[e]?encodeURIComponent(h[e]):"")}).join("&");var y="application/x-www-form-urlencoded; charset=UTF-8";n=this.sy.loadCallback;r="url";w=this.sy.extension}else return Promise.resolve();var z=new XMLHttpRequest,ba=Object(aa.j)(e.qf,"AuxUpload");
-ba=Object(x.a)(ba)+"&type="+r+"&ext="+w;z.open("POST",ba);z.withCredentials=this.wl();y&&z.setRequestHeader("Content-Type",y);z.addEventListener("load",function(){if(z.readyState===z.DONE&&200===z.status){var h=JSON.parse(z.response);e.zH=h.uri;n(h);f.resolve(h)}});z.addEventListener("error",function(){f.reject(z.statusText+" "+JSON.stringify(z))});this.po&&null!=this.po.onProgress&&(z.upload.onprogress=function(f){e.po.onProgress(f)});z.send(h);return f.promise},pha:function(e){this.password=e||
-null;this.qk.Ts()||(this.qk=ha(),this.kh({t:"pages"}));return this.qk.promise},Fx:function(e){this.YH=e||null;this.qk.Ts()||(this.yJ(this.qk),this.kh({t:"pages"}));return this.qk.promise},Av:function(e){e=Object.assign(e,{uri:encodeURIComponent(this.zH)});this.YH&&(e.ext=this.YH);this.If&&(e.c=this.If);this.password&&(e.pswd=this.password);this.FQ&&(e.cacheKey=this.FQ);this.wV&&(e.officeOptions=this.wV);return e},Vha:function(){0<this.wt.length()&&10>=this.Er&&this.Wha(this.wt.pop().data)},T4:function(e){return 0<
-this.wt.length()&&this.wt.contains(e)?(this.wt.remove(e),!0):!1},kh:function(e){e=this.Av(e);this.Bv.send(e)},EX:function(e,f){10<this.Er?this.wt.push(e,f):(this.Er++,e=this.Av(f),this.Bv.send(e))},Wha:function(e){this.Er++;e=this.Av(e);this.Bv.send(e)},fl:function(e){return e},uea:function(e){var f=this,n=e.data,r=e.err,y=e.t;switch(y){case "upload":r?f.sla.reject(r):f.sla.resolve("Success");break;case "pages":r?f.qk.reject(r):fa(n,y,f.qk)&&f.qk.resolve(n);break;case "config":if(r)f.jn.reject(r);
-else if(fa(n,y,f.jn)){n.id&&(f.id=n.id);if(n.auth){var aa=Object(z.a)("wvsQueryParameters");aa.auth=n.auth;Object(z.b)("wvsQueryParameters",aa)}n.serverVersion&&(f.EZ=n.serverVersion,Object(w.h)("[WebViewer Server] server version: "+f.EZ));n.serverID?(f.SD=n.serverID===f.GL&&f.fJ?f.SD+1:0,f.GL=n.serverID):f.SD=0;f.fJ=!1;f.jn.resolve(n)}break;case "health":r?f.jn.reject(r):fa(n,y,f.jn)&&(n=n.unhealthy,f.yY&&n?Object(w.j)("Server failed health check. Single server mode ignoring check."):!f.Kna&&n&&
-1>=f.SD&&(f.fJ=!0,f.WQ().then(function(){f.rL()},function(){f.rL()})));break;case "pdf":n.url=Object(x.a)(f.qf+"../"+encodeURI(n.url));r?f.pf.reject(r):fa(n,y,f.pf)&&f.pf.resolve(n);break;case "ApString2Xod":n.url=Object(x.a)(f.qf+"../data/"+encodeURI(n.url));r?f.Vi[n.rID].reject(r):fa(n,y,f.Vi[n.rID])&&f.Vi[n.rID].resolve(n);break;case "docmod":n.url=Object(x.a)(f.qf+"../"+encodeURI(n.url));r?f.Vi[n.rID].reject(r):fa(n,y,f.pf)&&f.Vi[n.rID].resolve(n);break;case "xod":if(r)this.De&&this.De.Qi()&&
-this.De.reject(r),this.ke&&this.ke.Qi()&&this.ke.reject(r);else if(n.notFound)n.noCreate||this.De&&this.De.Qi()&&this.De.resolve(n),this.ke&&this.ke.Qi()&&this.ke.resolve(n);else{n.url&&(n.url=Object(x.a)(f.qf+"../"+encodeURI(n.url)));if(!this.ke||this.ke.Ts())this.ke=ha(),this.ke.request={t:"xod",noCreate:!0};this.De||(this.De=ha(),this.De.request={t:"xod"});this.ke.resolve(n);this.De.resolve(n)}break;case "annots":if(r)f.Ig.reject(r);else if(fa(n,y,f.Ig)){f.Ig.QX();var ba=new XMLHttpRequest;aa=
-f.qf+"../"+encodeURI(n.url);var ca=n.hasAppearance?Object(x.a)(aa+".xodapp"):null;ba.open("GET",Object(x.a)(aa));ba.responseType="text";ba.withCredentials=this.wl();ba.addEventListener("load",function(){ba.readyState===ba.DONE&&200===ba.status&&f.Ig.resolve({RM:ba.response,xA:ca})});ba.addEventListener("error",function(){f.Ig.reject(ba.statusText+" "+JSON.stringify(ba))});ba.send()}break;case "image":f.Er--;var ea=this.mg[n.p];r?ea.promise.reject(r):fa(n,y,ea)&&(ea.result=n,ea.result.url=Object(x.a)(f.qf+
-"../"+encodeURI(ea.result.url)),ea.resolve(ea.result));break;case "tiles":f.Er--;ea=n.rID;aa=this.Nf[ea];this.Nf[ea]=null;this.JB.push(ea);if(r)aa.reject(r);else if(fa(n,y,aa)){for(r=0;r<n.tiles.length;r++)n.tiles[r]=Object(x.a)(f.qf+"../"+encodeURI(n.tiles[r]));aa.resolve(n)}break;case "text":ea=this.Sh[n.p];if(r)ea.reject(r);else if(fa(n,y,ea)){ea.QX();var da=new XMLHttpRequest;n=Object(x.a)(f.qf+"../"+encodeURI(n.url));da.open("GET",n);da.withCredentials=this.wl();da.addEventListener("load",function(){da.readyState===
-da.DONE&&200===da.status&&(ea.result=JSON.parse(da.response),ea.resolve(ea.result))});da.addEventListener("error",function(e){ea.reject(da.statusText+" "+JSON.stringify(e))});da.send()}break;case "progress":"loading"===n.t&&f.trigger(h.a.Events.DOCUMENT_LOADING_PROGRESS,[n.bytes,n.total])}this.Vha();!y&&e.echo&&e&&"apstring2xod"===e.echo.t&&(e=e.echo.reqID)&&(2<=parseInt(f.EZ,10)?f.Vi[e].reject("Message unhandled by server"):f.Vi[e].reject())},FS:function(){this.yJ(this.jn);return this.jn.promise},
-n$:function(e){for(var f=this,h=new XMLHttpRequest,n=Object(x.a)(this.qf+"aul")+"&id="+this.id,r=new FormData,w={},y=0;y<e.body.length;y++){var z=e.body[y];w[z.id]=z.JG.w+";"+z.JG.h;r.append(z.id,z.JG.dataString)}e={t:"apstring2xod",reqID:this.rV++,parts:w};var aa=this.Av(e);r.append("msg",JSON.stringify(aa));f.Vi[aa.reqID]=ha();h.open("POST",n);h.withCredentials=f.wl;n=new Promise(function(e,f){h.onreadystatechange=function(){4===h.readyState&&(200===h.status?e():f("An error occurred while sending down appearance strings to the server"))}});
-h.send(r);return n.then(function(){return f.Vi[aa.reqID].promise})},m$:function(){this.Ig||(this.Ig=ha(),this.Ig.request={t:"annots"},this.kh(this.Ig.request));return this.Ig.promise},PD:function(e,f){this.mg[f]||(this.mg[f]=ha(),this.mg[f].request={t:"image",p:f},this.EX(e,this.mg[f].request));return this.mg[f].promise},qha:function(e){this.Sh[e]||(this.Sh[e]=ha(),this.Sh[e].request={t:"text",p:e},this.kh(this.Sh[e].request));return this.Sh[e].promise},rha:function(e,f,h,n,r){var w=this.Nf.length;
-this.JB.length&&(w=this.JB.pop());this.Nf[w]=ha();this.Nf[w].request={t:"tiles",p:f,z:h,r:n,size:r,rID:w};this.EX(e,this.Nf[w].request);return this.Nf[w].promise},oX:function(){this.pf||(this.pf=ha(),this.pf.request={t:"pdf"},this.sH?this.pf.resolve({url:this.zH}):this.kh(this.pf.request));return this.pf.promise},bT:function(e){var f=this,h=new XMLHttpRequest,n=Object(x.a)(this.qf+"aul")+"&id="+this.id,r=new FormData,w={};e.annots&&(w.annots="xfdf");e.watermark&&(w.watermark="png");e.redactions&&
-(w.redactions="redact");w={t:"docmod",reqID:this.rV++,parts:w};e.print&&(w.print=!0);var y=this.Av(w);r.append("msg",JSON.stringify(y));return Promise.all([e.annots,e.watermark,e.redactions].map(function(e){return Promise.resolve(e)})).then(function(e){var w=e[0],x=e[1];e=e[2];w&&r.append("annots",w);x&&r.append("watermark",x);e&&r.append("redactions",e);f.Vi[y.reqID]=ha();h.open("POST",n);h.withCredentials=f.wl;w=new Promise(function(e,f){h.onreadystatechange=function(){4===h.readyState&&(200===
-h.status?e():f("An error occurred while sending down annotation data to the server"))}});h.send(r);return w.then(function(){return f.Vi[y.reqID].promise})})},CT:function(){this.ke||(this.ke=ha(),this.ke.request={t:"xod",noCreate:!0},this.kh(this.ke.request));return this.ke.promise},sha:function(){this.De||(this.De=ha(),this.De.request={t:"xod"},this.kh(this.De.request));return this.De.promise},Zn:function(){return!0},request:function(){},KW:function(){},abort:function(){for(var e=0;e<this.Nf.length;e++)this.Nf[e]&&
-(this.Nf[e].resolve(null),this.Nf[e]=null,this.JB.push(e));this.close()},eE:function(e){this.If=this.If||{};this.If.headers=e},ioa:function(){return this.If?Object(ba.omit)(this.If.headers,["Cookie","cookie"]):null},Mq:function(e){this.If=this.If||{};this.If.internal=this.If.internal||{};this.If.internal.withCredentials=e},wl:function(){return this.If&&this.If.internal?this.If.internal.withCredentials:null},getFileData:function(){return Promise.reject()}});Object(ia.a)(ca);Object(n.a)(ca);Object(n.b)(ca);
-da["default"]=ca},457:function(ia,da,e){function ca(e,w,aa){function r(e,f){function h(e){r().then(function(f){da&&!ia?setTimeout(function(){h(e)},1):f.send(JSON.stringify(e))})}function n(e,f,n,r){var x=window.createPromiseCapability(),z=!1,ja=x;aa=e;ba=f;ca=n;y=null;r&&(e=Object(ea.a)("wvsQueryParameters"),e.bcid=Object(ha.k)(8),Object(ea.b)("wvsQueryParameters",e));try{e=ya?wa+"/"+ya:wa+"/ws";e=Object(fa.a)(e);var ma=new WebSocket(e);ma.onopen=function(){x.resolve();z=!0;x=null;da=!1;w.resolve(ma);
-ba&&ba()};ma.onerror=function(e){da=ia=!0;x&&x.reject(e);y&&y.reject()};ma.onclose=function(){w=window.createPromiseCapability();da=!0;y||(y=window.createPromiseCapability());y.resolve();ca&&ca();aa&&z&&aa({t:"health",data:{unhealthy:!0,isDead:!0}})};ma.onmessage=function(e){e&&e.data&&(e=JSON.parse(e.data),e.hb?h({hb:!0}):e.end?close():aa(e))}}catch(Fa){x.reject(Fa),x=null}return ja.promise}function r(){da&&aa&&n(aa);return w.promise}var w=window.createPromiseCapability(),y=null,aa,ba,ca=null,da=
-!1,ia=!1,ya=f,wa=function(e){var f=e.indexOf("://"),h="ws://";0>f?f=0:(5===f&&(h="wss://"),f+=3);var n=e.lastIndexOf("/");0>n&&(n=e.length);return h+e.slice(f,n)}(e);return{send:h,qM:n,OH:function(){return y?y.promise:r().then(function(e){y=window.createPromiseCapability();aa=null;e.close();return y.promise})}}}function h(e){var f=e.lastIndexOf("/");0>f&&(f=e.length);return e.slice(0,f)}return window.WebSocket&&!aa?r(e,w):function(e,f){function n(e){(da?da.promise:Promise.resolve(ea)).then(function(f){var h=
-new XMLHttpRequest,n=ca?ba+"/"+ca+"pf":ba+"/pf";n=Object(fa.a)(n)+"&id="+f;f=new FormData;f.append("data",JSON.stringify(e));h.open("POST",n);h.withCredentials=!0;h.send(f)})}function r(){ea=0;da||(da=window.createPromiseCapability())}function w(){aa=new XMLHttpRequest;var e=ba+"/pf";e+=0!==ea?"?id="+ea+"&uc="+wa:"?uc="+wa;wa++;aa.open("GET",e,!0);aa.withCredentials=!0;aa.setRequestHeader("Cache-Control","no-cache");aa.setRequestHeader("X-Requested-With","XMLHttpRequest");var f=aa,h=!1;aa.onreadystatechange=
-function(){a:if(3<=f.readyState&&!h){try{var e=f.responseText.length}catch(Ca){Object(y.h)("caught exception");break a}if(0<e)try{var x=f.responseText.split("\n");for(x[x.length-1]&&x.pop();0<x.length&&3>x[x.length-1].length;)"]"===x.pop()&&r();0<x.length&&3>x[0].length&&x.shift();for(e=0;e<x.length;++e)x[e].endsWith(",")&&(x[e]=x[e].substr(0,x[e].length-1));0===ea&&0<x.length&&(ea=JSON.parse(x.shift()).id,e=da,da=null,e.resolve(ea));var z;for(e=0;e<x.length;++e)(z=JSON.parse(x[e]))&&z.end?close():
-z&&z.hb&&z.id===ea?n({hb:!0}):ya(z)}catch(Ca){}ha||(h=!0,w())}};aa.send()}var aa,ba=h(e),ca=f,ea=0,da=window.createPromiseCapability(),ha=!1,ia=null,ya=null,wa=0;return{send:n,qM:function(e,f,h){ya=e;ia=h;ha=!1;r();w();f&&f();return Promise.resolve()},OH:function(){r();ya=null;ha=!0;ia&&ia();aa.abort();return Promise.resolve()}}}(e,w)}e.d(da,"a",function(){return ca});var y=e(2),ha=e(31),ea=e(40),fa=e(164)}}]);}).call(this || window)

+ 0 - 3
public/lib/webviewer/core/WinRTPartRetriever.chunk.js

@@ -1,3 +0,0 @@
-/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
-(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[17],{438:function(ia,da,e){e.r(da);var ca=e(1),y=e(243);ia=e(428);var ha=e(94);e=e(371);var ea={},fa=function(e){function w(w,r){var h=e.call(this,w,r)||this;h.url=w;h.range=r;h.status=y.a.NOT_STARTED;return h}Object(ca.c)(w,e);w.prototype.start=function(e){var r=this;"undefined"===typeof ea[this.range.start]&&(ea[this.range.start]={Wt:function(h){var n=atob(h),f,w=n.length;h=new Uint8Array(w);for(f=0;f<w;++f)h[f]=n.charCodeAt(f);
-n=h.length;f="";for(var x=0;x<n;)w=h.subarray(x,x+1024),x+=1024,f+=String.fromCharCode.apply(null,w);r.Wt(f,e)},bS:function(){r.status=y.a.ERROR;e({code:r.status})}},window.external.Qoa(this.url),this.status=y.a.STARTED);r.dC()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,r,h,n){w=e.call(this,w,h,n)||this;w.zx=fa;return w}Object(ca.c)(w,e);w.prototype.Cv=function(e,r){return e+"?"+r.start+"&"+(r.stop?r.stop:"")};return w}(ha.a);Object(e.a)(ia);Object(e.b)(ia);da["default"]=ia}}]);}).call(this || window)

+ 0 - 123
public/lib/webviewer/core/Worker.js

@@ -1,123 +0,0 @@
-(function(){var P="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function Q(n){var f=0;return function(){return f<n.length?{done:!1,value:n[f++]}:{done:!0}}}var T="function"==typeof Object.defineProperties?Object.defineProperty:function(n,f,l){n!=Array.prototype&&n!=Object.prototype&&(n[f]=l.value)};function U(){U=function(){};P.Symbol||(P.Symbol=V)}var V=function(){var n=0;return function(f){return"jscomp_symbol_"+(f||"")+n++}}();
-function X(){U();var n=P.Symbol.iterator;n||(n=P.Symbol.iterator=P.Symbol("iterator"));"function"!=typeof Array.prototype[n]&&T(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return aa(Q(this))}});X=function(){}}function aa(n){X();n={next:n};n[P.Symbol.iterator]=function(){return this};return n}function Y(n,f){return Object.prototype.hasOwnProperty.call(n,f)}
-function Z(n,f){if(f){var l=P;n=n.split(".");for(var h=0;h<n.length-1;h++){var d=n[h];d in l||(l[d]={});l=l[d]}n=n[n.length-1];h=l[n];f=f(h);f!=h&&null!=f&&T(l,n,{configurable:!0,writable:!0,value:f})}}
-Z("WeakMap",function(n){function f(d){this.wb=(y+=Math.random()+1).toString();if(d){var p="undefined"!=typeof Symbol&&Symbol.iterator&&d[Symbol.iterator];for(d=p?p.call(d):{next:Q(d)};!(p=d.next()).done;)p=p.value,this.set(p[0],p[1])}}function l(){}function h(d){Y(d,D)||T(d,D,{value:new l})}function d(d){var p=Object[d];p&&(Object[d]=function(b){if(b instanceof l)return b;h(b);return p(b)})}if(function(){if(!n||!Object.seal)return!1;try{var d=Object.seal({}),p=Object.seal({}),b=new n([[d,2],[p,3]]);
-if(2!=b.get(d)||3!=b.get(p))return!1;b.delete(d);b.set(p,4);return!b.has(d)&&4==b.get(p)}catch(a){return!1}}())return n;var D="$jscomp_hidden_"+Math.random();d("freeze");d("preventExtensions");d("seal");var y=0;f.prototype.set=function(d,p){h(d);if(!Y(d,D))throw Error("WeakMap key fail: "+d);d[D][this.wb]=p;return this};f.prototype.get=function(d){return Y(d,D)?d[D][this.wb]:void 0};f.prototype.has=function(d){return Y(d,D)&&Y(d[D],this.wb)};f.prototype.delete=function(d){return Y(d,D)&&Y(d[D],this.wb)?
-delete d[D][this.wb]:!1};return f});Z("String.fromCodePoint",function(n){return n?n:function(f){for(var l="",h=0;h<arguments.length;h++){var d=Number(arguments[h]);if(0>d||1114111<d||d!==Math.floor(d))throw new RangeError("invalid_code_point "+d);65535>=d?l+=String.fromCharCode(d):(d-=65536,l+=String.fromCharCode(d>>>10&1023|55296),l+=String.fromCharCode(d&1023|56320))}return l}});
-function ba(n,f){X();n instanceof String&&(n+="");var l=0,h={next:function(){if(l<n.length){var d=l++;return{value:f(d,n[d]),done:!1}}h.next=function(){return{done:!0,value:void 0}};return h.next()}};h[Symbol.iterator]=function(){return h};return h}Z("Array.prototype.keys",function(n){return n?n:function(){return ba(this,function(f){return f})}});
-(function(n){function f(h){if(l[h])return l[h].la;var d=l[h]={Af:h,ue:!1,la:{}};n[h].call(d.la,d,d.la,f);d.ue=!0;return d.la}var l={};f.Gf=n;f.c=l;f.d=function(h,d,D){f.xe(h,d)||Object.defineProperty(h,d,{enumerable:!0,get:D})};f.r=function(h){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"});Object.defineProperty(h,"__esModule",{value:!0})};f.t=function(h,d){d&1&&(h=f(h));if(d&8||d&4&&"object"===typeof h&&h&&h.kd)return h;var D=Object.create(null);
-f.r(D);Object.defineProperty(D,"default",{enumerable:!0,value:h});if(d&2&&"string"!=typeof h)for(var y in h)f.d(D,y,function(d){return h[d]}.bind(null,y));return D};f.n=function(h){var d=h&&h.kd?function(){return h["default"]}:function(){return h};f.d(d,"a",d);return d};f.xe=function(h,d){return Object.prototype.hasOwnProperty.call(h,d)};f.p="/core/";return f(f.Hf=9)})([function(n,f,l){function h(d,h){d.splice(h,1)}function d(d){return d.length?d[d.length-1]:null}l.d(f,"a",function(){return d});l.d(f,
-"b",function(){return h});l(6)},function(n,f,l){function h(d,h){var b;y[d]=h;null===(b=D[d])||void 0===b?void 0:b.forEach(function(a){a(h)})}function d(d){return y[d]}l.d(f,"a",function(){return d});l.d(f,"b",function(){return h});var D={},y={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null}},function(n,f,l){function h(h,f){Object(d.a)("disableLogs")||(f?console.warn(h+": "+f):console.warn(h))}
-l.d(f,"a",function(){return h});var d=l(1)},function(n,f){n="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;f.assign=function(d){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var f=h.shift();if(f){if("object"!==typeof f)throw new TypeError(f+"must be non-object");for(var l in f)Object.prototype.hasOwnProperty.call(f,l)&&(d[l]=f[l])}}return d};f.shrinkBuf=function(d,h){if(d.length===h)return d;if(d.subarray)return d.subarray(0,h);d.length=
-h;return d};var l={arraySet:function(d,h,f,l,p){if(h.subarray&&d.subarray)d.set(h.subarray(f,f+l),p);else for(var b=0;b<l;b++)d[p+b]=h[f+b]},flattenChunks:function(d){var h,f;var l=f=0;for(h=d.length;l<h;l++)f+=d[l].length;var p=new Uint8Array(f);l=f=0;for(h=d.length;l<h;l++){var b=d[l];p.set(b,f);f+=b.length}return p}},h={arraySet:function(d,h,f,l,p){for(var b=0;b<l;b++)d[p+b]=h[f+b]},flattenChunks:function(d){return[].concat.apply([],d)}};f.ze=function(d){d?(f.Buf8=Uint8Array,f.kb=Uint16Array,f.lb=
-Int32Array,f.assign(f,l)):(f.Buf8=Array,f.kb=Array,f.lb=Array,f.assign(f,h))};f.ze(n)},function(n,f){n=function(){function f(h){this.depth=this.index=0;this.M=h;this.location={start:0,Rb:1,Sb:1,end:!!h.length,empty:!0};this.xb=[this.location];this.oc=!1;"?"===this.M.charAt(1)&&this.dd();this.location.empty=!1}f.prototype.advance=function(){this.Ea=null;this.dd();var h=this.location.start;++h;this.location.empty=!1;if("/"!==this.M.charAt(h))return this.location.empty="/"===this.M.charAt(this.M.indexOf(">",
-h)-1),!0;this.location.end=!0;return!1};f.prototype.gd=function(){var h=this.location.start+1,d=this.M.indexOf(">",h);this.location.empty&&--d;h=this.M.substring(h,d);this.Ea={};d=h.indexOf(" ");if(-1!==d){this.bd=h.substring(0,d);h=h.slice(d);h=h.split('"');d=h.length-1;for(var f=0;f<d;++f){var l=h[f],n=h[++f];this.Ea[l.substring(1,l.length-1)]=n}}else this.bd=h};f.prototype.dd=function(){if(this.oc)this.oc=!1,this.location.start=this.M.indexOf("<",this.location.start+1);else{var h=this.location.Rb;
-if(!this.location.empty)for(var d=this.location.Sb;0<d;)h=this.M.indexOf("<",h),"/"===this.M.charAt(++h)?--d:(h=this.M.indexOf(">",h),"/"!==this.M.charAt(h-1)&&++d);this.location.start=this.M.indexOf("<",h)}this.location.Rb=this.location.start+1;this.location.Sb=1};f.prototype.mark=function(){this.M.mark&&this.M.mark(this.location.start)};f.prototype.O=function(){null!==this.Ea&&"undefined"!==typeof this.Ea||this.gd();return this.bd};f.prototype.J=function(){++this.depth;this.location={start:this.location.start};
-this.xb[this.xb.length]=this.location;this.oc=!0};f.prototype.I=function(){--this.depth;this.Ea=null;var h=this.location.Rb,d=this.location.Sb,f=this.location.empty,l=this.location.end;this.xb.pop();this.location=this.xb[this.xb.length-1];this.location.Rb=h;this.location.Sb=l?0:f?d:d+1};f.prototype.V=function(){return this.location.empty?!0:"/"===this.M.charAt(this.M.indexOf("<",this.location.start+1)+1)};f.prototype.D=function(h){null!==this.Ea&&"undefined"!==typeof this.Ea||this.gd();return this.Be(this.Ea[h])};
-f.prototype.Be=function(h){if(h)return h.replace(/&[^;]*;/g,function(d){switch(d.charAt(1)){case "q":return'"';case "a":return"&";case "l":return"<";case "g":return">";case "#":return"x"===d.charAt(2)?String.fromCharCode(parseInt(d.substring(3,d.length-1),16)):String.fromCharCode(parseInt(d.substring(2,d.length-1),10))}return d})};return f}();f.a=n},function(n,f,l){function h(h){return new d(h)}l.d(f,"a",function(){return h});var d=function(){function d(d){this.uc=d;this.Ha=-1;this.current=null}d.prototype.ve=
-function(){this.Ha++;this.current=this.uc[this.Ha];return this.Ha<this.uc.length};d.prototype.reset=function(){this.Ha=-1;this.current=null};return d}()},function(n,f,l){function h(){for(var d=0,h=0,f=arguments.length;h<f;h++)d+=arguments[h].length;d=Array(d);var l=0;for(h=0;h<f;h++)for(var p=arguments[h],b=0,a=p.length;b<a;b++,l++)d[l]=p[b];return d}l.d(f,"a",function(){return h})},function(n,f,l){function h(d){if("string"!==typeof d){for(var h="",f=0,l=d.length,p;f<l;)p=d.subarray(f,f+1024),f+=
-1024,h+=String.fromCharCode.apply(null,p);return h}return d}l.d(f,"a",function(){return h})},function(n,f,l){function h(A){if(!(this instanceof h))return new h(A);var m=this.options=y.assign({chunkSize:16384,windowBits:0,to:""},A||{});m.raw&&0<=m.windowBits&&16>m.windowBits&&(m.windowBits=-m.windowBits,0===m.windowBits&&(m.windowBits=-15));!(0<=m.windowBits&&16>m.windowBits)||A&&A.windowBits||(m.windowBits+=32);15<m.windowBits&&48>m.windowBits&&0===(m.windowBits&15)&&(m.windowBits|=15);this.err=0;
-this.msg="";this.ended=!1;this.chunks=[];this.strm=new a;this.strm.avail_out=0;A=D.inflateInit2(this.strm,m.windowBits);if(A!==p.Z_OK)throw Error(b[A]);this.header=new k;D.inflateGetHeader(this.strm,this.header);if(m.dictionary&&("string"===typeof m.dictionary?m.dictionary=v.string2buf(m.dictionary):"[object ArrayBuffer]"===e.call(m.dictionary)&&(m.dictionary=new Uint8Array(m.dictionary)),m.raw&&(A=D.inflateSetDictionary(this.strm,m.dictionary),A!==p.Z_OK)))throw Error(b[A]);}function d(a,e){e=new h(e);
-e.push(a,!0);if(e.err)throw e.msg||b[e.err];return e.result}var D=l(13),y=l(3),v=l(18),p=l(19),b=l(20),a=l(21),k=l(22),e=Object.prototype.toString;h.prototype.push=function(a,b){var k=this.strm,m=this.options.chunkSize,A=this.options.dictionary,t=!1;if(this.ended)return!1;b=b===~~b?b:!0===b?p.Z_FINISH:p.Z_NO_FLUSH;"string"===typeof a?k.input=v.binstring2buf(a):"[object ArrayBuffer]"===e.call(a)?k.input=new Uint8Array(a):k.input=a;k.next_in=0;k.avail_in=k.input.length;do{0===k.avail_out&&(k.output=
-new y.Buf8(m),k.next_out=0,k.avail_out=m);a=D.inflate(k,p.Z_NO_FLUSH);a===p.Z_NEED_DICT&&A&&(a=D.inflateSetDictionary(this.strm,A));a===p.Z_BUF_ERROR&&!0===t&&(a=p.Z_OK,t=!1);if(a!==p.Z_STREAM_END&&a!==p.Z_OK)return this.onEnd(a),this.ended=!0,!1;if(k.next_out&&(0===k.avail_out||a===p.Z_STREAM_END||0===k.avail_in&&(b===p.Z_FINISH||b===p.Z_SYNC_FLUSH)))if("string"===this.options.to){var d=v.utf8border(k.output,k.next_out);var h=k.next_out-d;var f=v.buf2string(k.output,d);k.next_out=h;k.avail_out=m-
-h;h&&y.arraySet(k.output,k.output,d,h,0);this.onData(f)}else this.onData(y.shrinkBuf(k.output,k.next_out));0===k.avail_in&&0===k.avail_out&&(t=!0)}while((0<k.avail_in||0===k.avail_out)&&a!==p.Z_STREAM_END);a===p.Z_STREAM_END&&(b=p.Z_FINISH);if(b===p.Z_FINISH)return a=D.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===p.Z_OK;b===p.Z_SYNC_FLUSH&&(this.onEnd(p.Z_OK),k.avail_out=0);return!0};h.prototype.onData=function(a){this.chunks.push(a)};h.prototype.onEnd=function(a){a===p.Z_OK&&(this.result=
-"string"===this.options.to?this.chunks.join(""):y.flattenChunks(this.chunks));this.chunks=[];this.err=a;this.msg=this.strm.msg};f.Inflate=h;f.inflate=d;f.inflateRaw=function(a,b){b=b||{};b.raw=!0;return d(a,b)};f.ungzip=d},function(n,f,l){n.la=l(10)},function(n,f,l){l.r(f);l(4);l(11);l(12)},function(n,f,l){function h(d){"@babel/helpers - typeof";return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(d){return typeof d}:function(d){return d&&"function"==typeof Symbol&&d.constructor===
-Symbol&&d!==Symbol.prototype?"symbol":typeof d},h(d)}var d=l(2),D=l(5),y=l(0);(function(f){function p(a,b){this.v=[];this.A=[];a&&this.L(a,b)}var b=f.trn||{};f.trn=b;String.fromCodePoint||function(){function a(){var a=[],b=-1,k=arguments.length;if(!k)return"";for(var A="";++b<k;){var t=Number(arguments[b]);if(!isFinite(t)||0>t||1114111<t||d(t)!==t)throw RangeError("Invalid code point: ".concat(t));if(65535>=t)a.push(t);else{t-=65536;var h=(t>>10)+55296;t=t%1024+56320;a.push(h,t)}if(b+1===k||16384<
-a.length)A+=e.apply(void 0,a),a.length=0}return A}var b=function(){try{var a={},b=Object.defineProperty;var e=b(a,a,a)&&b}catch(R){}return e}(),e=String.fromCharCode,d=Math.floor;b?b(String,"fromCodePoint",{value:a,configurable:!0,writable:!0}):String.fromCodePoint=a}();Array.prototype.Pa&&Object(d.a)("Overriding existing Array.prototype.equals. Possible causes: New API defines the method, there's a framework conflict or you've got double inclusions in your code.");Array.prototype.Pa=function(a){if(!a||
-this.length!==a.length)return!1;for(var b=0,e=this.length;b<e;b++)if(this[b]instanceof Array&&a[b]instanceof Array){if(!this[b].Pa(a[b]))return!1}else if(this[b]!==a[b])return!1;return!0};Object.defineProperty(Array.prototype,"equals",{enumerable:!1,writable:!0});p.prototype={C:function(a){this.v=this.v.concat(a.v);this.A=this.A.concat(a.A)},L:function(a,b){this.v.push(a);a=h(b);this.A.push("object"===a?b:"undefined"===a?null:[b])},Pa:function(a){return this.v.Pa(a.v)&&this.A.Pa(a.A)},save:function(){this.v.push(b.f.Nd);
-this.A.push(null)},restore:function(){this.L(b.f.Md,null)}};b.f=function(a,k,e,d){this.done=!1;this.Hc=2E3;this.Ja={};this.La=0;this.P=[];this.Jb=[];this.fa=[];this.fa.push({});this.g=a;this.Lc=this.zb("Width");this.Kc=this.zb("Height");this.P.push(b.Sa.se(this.Lc,this.Kc));this.ca=!1;this.Ib=e;this.ce=-1<navigator.userAgent.indexOf("Android")&&-1===navigator.userAgent.indexOf("Chrome")&&-1===navigator.userAgent.indexOf("Firefox");this.v=[];this.A=[];this.g.J();this.g.advance();this.lc=d;a=this.g.O();
-b.f.m(a,"FixedPage.Resources",b.f.l)&&(this.g.J(),this.g.advance(),this.Qc(),this.g.I());this.Ia=!1};b.f.m=function(a,b,e){return a===b?!0:a===e+b};b.f.ad=function(a){return b.f.ne(a)};b.f.ne=function(a){var b=3,e=Math.abs(a);.5>e&&(b=5E-4>e?5E-7>e?9:7:5);b=Math.pow(10,b);a=Math.round(a*b)/b;return a.toString()};b.f.H=function(a,b){if(!a)throw Error(b);};b.f.zf=function(a){return(new b.f(a,!1)).Td()};b.f.prototype={$d:function(){return this.ac()},Wb:function(a,k,e){var d=this.Sd(),m=this.g.O();if(b.f.m(m,
-"Path",b.f.l))var h=this.Zb();else b.f.m(m,"Canvas",b.f.l)?h=this.Fb():b.f.m(m,"Glyphs",b.f.l)?h=this.Yb():(h=null,b.f.H(!1,"Invalid Element ".concat(m)));h.gb(d);if(h.te()){d=this.$d();m=this.Ua();d.mtx=[m.W,m.X,m.Y,m.Z,m.ba,m.da];if(a){a={operators:a.v,data:a.A};var f=this.g.D("RenderTransform");if(null!=f){var p=new b.K;p.$(f);f=new b.K;f.bc(m);f.Ga(p);m=f}a.mtx=[m.W,m.X,m.Y,m.Z,m.ba,m.da]}this.L(b.f.Qd,[d,{x1:h.s,y1:h.u,x2:h.s+h.G,y2:h.u+h.F},k,a,e]);this.Mc=!0}else this.ca=!1},Fb:function(){var a=
-new b.ha;this.aa();var k=this.g.D("RenderTransform");if(null!=k){var e=new b.K;e.$(k);this.S(e)}k=this.g.D("Clip");null!=k&&(a=this.Ba(k));k=null;if(!this.g.V()){for(this.g.J();this.g.advance();)e=this.g.O(),b.f.m(e,"Canvas.Clip",b.f.l)?(b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(e=new b.K,e.$(this.B("Transform")),this.S(e),a.gb(this.Ba(this.B("Figures"))),e=e.Va(),this.S(e)),this.g.I()):b.f.m(e,"Path",b.f.l)?null!=k?k.sc(this.Zb()):k=this.Zb():
-b.f.m(e,"Glyphs",b.f.l)?null!=k?k.sc(this.Yb()):k=this.Yb():b.f.m(e,"Canvas",b.f.l)&&(null!=k?k.sc(this.Fb()):k=this.Fb());this.g.I()}null!=k&&a.gb(k);this.qa();return a},ge:function(){var a=this.sa("trn:BlendMode","source-over");a=this.ca?"source-over":a;var k=this.hc();k||(this.save(),this.aa());var e=null,A=this.g.D("OpacityMask");null!=A&&(Object(d.a)("Uh oh OpacityMask Resource!"),e=this.Ca(A));A=this.ma("Opacity",1);if(!this.g.V()){for(this.g.J();this.g.advance();){var m=this.g.O();if(b.f.m(m,
-"Canvas.Resources",b.f.l))this.g.V()?b.f.H(!1,"Canvas.Resources must contain ResourceDictionary element"):(this.g.J(),this.g.advance(),this.Qc(),this.g.I());else if(b.f.m(m,"Canvas.Clip",b.f.l))b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(k||(this.save(),k=!0,this.aa()),m=new b.K,m.$(this.B("Transform")),this.C(this.S(m)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),this.Pb(this.B("Figures")),m=m.Va(),this.C(this.S(m))),
-this.g.I();else if(b.f.m(m,"Canvas.OpacityMask",b.f.l))this.ca||(this.g.J(),this.g.advance(),e=this.Ta(b.f.na,new p(b.f.Cb)),this.g.I());else if(b.f.m(m,"Path",b.f.l)||b.f.m(m,"Glyphs",b.f.l)||b.f.m(m,"Canvas",b.f.l)||b.f.m(m,"trn:Glyphs",b.f.l)){if(null!=e||"source-over"!==a||1>A&&!this.ca){this.vb();this.g.I();this.ca=!0;this.Wb(e,a,A);return}this.Ia=!1;break}}this.Ia&&this.g.I()}this.Ia&&this.vb();this.ca=!1},vb:function(){this.restore();this.qa()},zb:function(a){a=this.g.D(a);b.f.H(null!=a,"".concat(this.g.O(),
-": ").concat(a," is not defined"));return parseFloat(a)},ma:function(a,b){a=this.g.D(a);return null!=a?parseFloat(a):b},B:function(a){a=this.g.D(a);b.f.H(null!=a,"".concat(this.g.O(),": ").concat(a," is not defined"));return a},sa:function(a,b){a=this.g.D(a);return null!=a?a:b},cd:function(){var a=this.g.D("x:Key");b.f.H(null!=a,"Key must be defined for elements in a resource dictionary");return a},hc:function(){0===this.La&&this.g.mark();var a=!1,b=this.ma("Opacity",1);1>b&&!this.ca&&(a||(a=!0,this.save(),
-this.aa()),this.C(this.Ra(b)));b=this.g.D("RenderTransform");null!=b&&(a||(a=!0,this.save(),this.aa()),this.ie(b));b=this.g.D("Clip");null!=b&&(a||(this.save(),this.aa()),this.Pb(b),a=!0);return a},Pb:function(a){var k=!0;a&&"F"===a[0]&&(k=!1);this.Sc(k?"evenodd":"nonzero");this.be(this.Ba(a));this.Oc(a);this.v.push(b.f.rd);this.A.push(k?["evenodd"]:[])},fe:function(a){var k=[];for(a=Object(D.a)(a.split(";"));a.ve();){var e=a.current,d=new b.Ha;e=e.split(",");if(1<=e.length){if(0<e[0].length){var m=
-e[0].split(")");if(2<=m.length){var h=m[0].substr(1).split(":");d.rb=parseInt(h[0]);d.dc=parseInt(h[1])}d.Mb=parseInt(m[m.length-1]);d.ub=!0}2<=e.length&&(0<e[1].length&&(d.cc=parseFloat(e[1]),d.fc=!0),3<=e.length&&(0<e[2].length&&(d.Nb=parseFloat(e[2])),4<=e.length&&0<e[3].length&&(d.Ob=parseFloat(e[3]))))}k.push(d)}return k},ae:function(){var a=this.B("UnicodeString"),b="",e=0;for(2<=a.length&&"{"===a.charAt(0)&&"}"===a.charAt(1)&&(a=a.substr(2));e<a.length;){var h=a.charCodeAt(e);if(9==h)b+=String.fromCharCode(10),
-e++;else if(128>h)b+=String.fromCharCode(h),e++;else if(191<h)if(224>h){var m=a.charCodeAt(e+1);b+=String.fromCharCode((h&31)<<6|m&63);e+=2}else if(240>h){m=a.charCodeAt(e+1);var f=a.charCodeAt(e+2);b+=String.fromCharCode((h&15)<<12|(m&63)<<6|f&63);e+=3}else{m=a.charCodeAt(e+1);f=a.charCodeAt(e+2);var p=a.charCodeAt(e+3);b+=String.fromCodePoint((h&7)<<18|(m&63)<<12|(f&63)<<6|p&63);e+=4}else Object(d.a)("Invalid UTF-8 character")}return b},Yb:function(){var a=new b.ha,k=this.g.D("Clip");null!=k&&(a=
-this.Ba(k));return a},$b:function(a,k){return this.ce&&1===a.length?k===b.f.wc?b.f.yd:k===b.f.Xb?b.f.Xb:b.f.zd:k},tc:function(a){return 0===Object.keys(a).length&&a.constructor===Object},Nc:function(a){var k=this.sa("trn:BlendMode","source-over");k=this.ca?"source-over":k;var e="source-over"!=k&&!this.Ib,h=this.hc();this.Ib&&this.Rc(k);var m=this.zb("OriginX"),f=this.zb("OriginY"),E=this.B("FontUri");this.qb[E]=null;var l=this.zb("FontRenderingEmSize"),t=this.fe(this.sa("Indices",""));if(200>l){var z=
-l/200;h||(this.aa(),this.save(),h=!0);var n=new b.K;n.ob(z,0,0,z,m,f);l=200;f=0;this.v.push(b.f.Eb);this.A.push(n.Gb())}var C=0;m=new p;var w=this.ae(),g=0,y=0,D=l/100,v="";n=null;var O=this.g.D("Stroke");a=O?b.f.Xb:a?b.f.wc:b.f.xd;m.L(b.f.Od,0);for(var K={},x,r=0;r<t.length;){var q=t[r],M=w.charCodeAt(C);M=55296<=M&&57344>M?Math.max(2,q.rb):q.rb;if(g!==q.Nb||y!==q.Ob)v&&(m.L(this.$b(x,a),[v,g?g*D:0,f-y*D]),m.L(b.f.yc,[v])),g=q.Nb,y=q.Ob,v="";q.ub&&(K[v.length]=w.substr(C,q.rb));q.fc?(this.tc(K)||
-m.L(b.f.Bc,[K]),x=v+(q.ub?String.fromCharCode(q.Mb+57344):w.substr(C,M)),m.L(this.$b(x,a),[x,g?g*D:0,f-y*D]),v&&m.L(b.f.yc,[v]),m.L(b.f.od,[q.cc*D]),K={},v=""):v+=q.ub?String.fromCharCode(q.Mb+57344):w.substr(C,M);r+=q.dc;C+=M}if(v||C<w.length)this.tc(K)||m.L(b.f.Bc,[K]),x=v+w.substr(C,w.length-C),m.L(this.$b(x,a),[x,0,0]);f=x=null;g=this.g.D("Fill");C=!1;null!=g&&(this.Hb(g)?x=this.Ca(g,b.f.na,m):(C=!0,x=this.nb(g,b.f.na,m)));t=!1;null!=O&&(this.Hb(O)?n=this.Ca(O,b.f.Aa,m):(t=!0,n=this.nb(O,b.f.Aa,
-m)));g=this.g.D("OpacityMask");null!=g&&(Object(d.a)("Uh oh OpacityMask Resource!"),f=this.Ca(g));if(!this.g.V()&&!a){for(this.g.J();this.g.advance();)a=this.g.O(),b.f.m(a,"Glyphs.Clip",b.f.l)?(b.f.H(!this.g.V(),"Canvas.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(h||(h=!0,this.save(),this.aa()),a=new b.K,a.$(this.B("Transform")),this.v.push(b.f.Eb),this.A.push(a.Gb()),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),O=this.B("Figures"),
-this.Pb(O),a=a.Va(),this.v.push(b.f.Eb),this.A.push(a.Gb())),this.g.I()):b.f.m(a,"Glyphs.Fill",b.f.l)?(this.g.J(),this.g.advance(),x=this.Ta(b.f.na,m),this.g.I()):b.f.m(a,"Glyphs.OpacityMask",b.f.l)&&!this.ca&&(this.g.J(),this.g.advance(),f=this.Ta(b.f.na,new p(b.f.Cb)),this.g.I());this.g.I()}if(null==f||e)"otf"===E.substr(E.indexOf(".")+1)?(E=E.substr(0,E.length-4),E=parseInt(E.substr(7))):E=parseInt(E.substr(35,8),16),E="f".concat(this.lc,"-").concat(E),this.Ja[E]?10>this.Ja[E].length&&(this.Ja[E]+=
-w.substr(0,10-this.Ja[E].length)):this.Ja[E]=w.substr(0,10),this.ke("".concat(b.f.ad(l),"px ").concat(E)),null!==x&&(C||(x=new p(b.f.na,"#000000"),x.C(m)),this.ic(x,m)),null!=n&&(l=this.ma("StrokeThickness",1),E=this.g.D("RenderTransform"),w=new b.K,null!=E&&w.$(E),this.jc(l/(z*w.Qa())),this.Tc(this.Ec(this.sa("StrokeStartLineCap","Flat"))),this.Uc(this.sa("StrokeLineJoin","miter").toLowerCase()),this.Vc(this.ma("StrokeMiterLimit",10)),t||(n=new p(b.f.Aa,"#000000"),n.C(m)),this.Wc(n,m));h&&(this.restore(),
-this.qa());if(null!=f||e)this.ca=!0,this.Wb(f,k);this.ca=!1},Dc:function(){var a=[];this.g.J();b.f.H(this.g.advance(),"Gradient brushes must contain GradientStops");for(this.g.J();this.g.advance();){var k=this.B("Color"),e=this.B("Offset");a.push(e);a.push(this.Cc(k))}this.g.I();this.g.I();return a},Wd:function(a,k,e){var d=this.g.D("Transform"),m=new p;m.save();this.aa();null!=d&&(e.$(d),m.C(this.S(e)));e=this.ma("Opacity",1);1>e&&m.C(this.Ra(e));d=this.B("StartPoint").split(",");e=parseFloat(d[0]);
-d=parseFloat(d[1]);var h=this.B("EndPoint").split(",");e={type:b.f.Hd,x0:e,y0:d,x1:parseFloat(h[0]),y1:parseFloat(h[1]),stops:this.Dc()};m.L(a,[e]);m.C(k);m.restore();this.qa();return m},Yd:function(a,k,e){var d=this.g.D("Transform"),m=new p,h=this.B("RadiusX"),f=this.B("RadiusY"),l=this.B("GradientOrigin"),t=this.B("Center");m.save();this.aa();var z=parseFloat(h),n=parseFloat(f);b.f.H(0<z&&0<n,"Invalid radius value");var C=t.split(",");t=parseFloat(C[0]);C=parseFloat(C[1]);var w=l.split(",");l=parseFloat(w[0]);
-w=parseFloat(w[1]);if(null!=d||h!==f)null!=d&&e.$(d),d=n/z,w/=d,C/=d,f=new b.K,f.ob(1,0,0,d,0,0),e.Ga(f),m.C(this.S(e));e=this.ma("Opacity",1);1>e&&m.C(this.Ra(e));h={type:b.f.Kd,x0:l,y0:w,x1:t,y1:C,r:h,stops:this.Dc()};m.L(a,[h]);m.C(k);m.restore();this.qa();return m},le:function(){b.f.H(!this.Lb,"Incorrect custom glyph start");this.v.push(b.f.td);this.A.push(null);this.Lb=!0},Rd:function(){b.f.H(this.Lb,"Incorrect custom glyph end");this.v.push(b.f.ud);this.A.push(null);this.Lb=!1},C:p.prototype.C,
-L:p.prototype.L,Wc:function(a,k){var e=Object(y.a)(this.P);a.Pa(e.cb)?k?this.C(k):this.L(b.f.Db,null):(a.v[0]===b.f.Aa&&(e.cb=a),this.C(a))},ic:function(a,k){var e=Object(y.a)(this.P);a.Pa(e.Xa)?this.C(k):(a.v[0]===b.f.na&&(e.Xa=a),this.C(a))},Rc:function(a){var k=Object(y.a)(this.P);a!==k.tb&&(k.tb=a,this.L(b.f.Cd,[a]))},Ra:function(a){var k=Object(y.a)(this.P);k.Ka*=a;return new p(b.f.Bd,[k.Ka])},Sc:function(a){var b=Object(y.a)(this.P);a!==b.Wa&&(b.Wa=a)},jc:function(a){var k=Object(y.a)(this.P);
-a!==k.ab&&(k.ab=a,this.v.push(b.f.Gd),this.A.push([a,this.Ua().Qa()]))},Tc:function(a){var k=Object(y.a)(this.P);a!==k.Za&&(k.Za=a,this.v.push(b.f.Ed),this.A.push([a]))},Uc:function(a){var k=Object(y.a)(this.P);a!==k.$a&&(k.$a=a,this.v.push(b.f.Fd),this.A.push([a]))},Vc:function(a){var k=Object(y.a)(this.P);a!==k.bb&&(k.bb=a,this.v.push(b.f.Id),this.A.push([a]))},ke:function(a){var k=Object(y.a)(this.P);a!==k.Ya&&(k.Ya=a,this.v.push(b.f.Ad),this.A.push([a]))},S:function(a){Object(y.a)(this.P).wa.Ga(a);
-return new p(b.f.Eb,a.Gb())},Ua:function(){return Object(y.a)(this.P).wa},Sd:function(){return Object(y.a)(this.P).ta},be:function(a){Object(y.a)(this.P).ta.gb(a)},aa:function(a){a=a?Object(y.a)(this.P).we():Object(y.a)(this.P).clone();this.P.push(a);this.fa.push({})},qa:function(){this.P.pop();for(var a=Object.keys(this.fa[this.fa.length-1]),k=0;k<a;++k)this.L(b.f.wd);Object(y.b)(this.fa,this.fa.length-1)},Ud:function(a,k,e){var d=new p,m=this.g.D("Transform");d.save();this.aa();var h=this.B("Viewbox"),
-f=new b.ha;f.fb(h);h=this.B("Viewport");var l=new b.ha;l.fb(h);if(null!=m||f!==l){h=l.G/f.G;var t=l.F/f.F,z=l.s-f.s*h;f=l.u-f.u*t;null!=m&&e.$(m);m=new b.K;m.ob(h,0,0,t,z,f);e.Ga(m);d.C(this.S(e))}e=this.ma("Opacity",1);1>e&&d.C(this.Ra(e));e=this.sa("TileMode","None");m=this.B("ImageSource");this.qb[m]=null;d.L(a,[{type:b.f.Dd,name:"i".concat(this.lc,"-").concat(parseInt(m.split("/")[2])),tm:"None"===e?"no-repeat":"repeat"}]);d.C(k);d.restore();this.qa();return d},Vd:function(){var a=new p,k=this.g.D("Transform");
-a.save();this.aa();var e=this.B("Viewbox"),d=new b.ha;d.fb(e);e=this.B("Viewport");var m=new b.ha;m.fb(e);if(null!=k||d!==m){e=m.G/d.G;var h=m.F/d.F,f=m.s-d.s*e;d=m.u-d.u*h;m=new b.K;null!=k&&m.$(k);k=new b.K;k.ob(e,0,0,h,f,d);m.Ga(k);a.C(this.S(m))}k=this.ma("Opacity",1);1>k&&a.C(this.Ra(k));this.sa("TileMode","None");k=this.B("ImageSource");this.qb[k]=null;k="i".concat(this.lc,"-").concat(parseInt(k.split("/")[2]));e="false"!==this.sa("trn:smooth","true");a.L(b.f.vd,[k,this.Ua().Qa(),e]);a.restore();
-this.qa();return a},ie:function(a){if(null!=a){var k=new b.K;k.$(a);this.C(this.S(k))}},o:function(a){for(var b,e=b=a.N,d=a.ga,m=d[b];" "!==m&&","!==m;)++b,m=d[b];e=d.substring(e,b);++b;a.N=b;return parseFloat(e)},Ba:function(a){var k=" ",e=new b.Vb(a,null,0),d=new b.ha,m=!0;d.initData(0,0,0,0);if(e.N<e.ga.length)for(;" "===e.ga.charAt(e.N);)e.N++;for(;e.N<a.length;){if("A"<=e.ga.charAt(e.N)&&"Z">=e.ga.charAt(e.N)||"a"<=e.ga.charAt(e.N)&&"z">=e.ga.charAt(e.N))k=e.ga.charAt(e.N),e.N++;else switch("a">
-k&&("H"!==k&&(e.j=0),"V"!==k&&(e.i=0)),k){case "m":case "M":e.i+=this.o(e);e.j+=this.o(e);m?(d.initData(e.i,e.j,e.i,e.j),m=!1):d.ia(e.i,e.j);e.T=!1;break;case "l":case "L":e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;case "c":case "C":var h=this.o(e)+e.i;var f=this.o(e)+e.j;d.ia(h,f);e.T=!0;e.oa=this.o(e)+e.i;e.pa=this.o(e)+e.j;d.ia(e.oa,e.pa);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);break;case "q":case "Q":h=this.o(e)+e.i;f=this.o(e)+e.j;d.ia(h,f);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,
-e.j);e.T=!1;break;case "s":case "S":e.T||(e.oa=e.i,e.pa=e.j);h=2*e.i-e.oa;f=2*e.j-e.pa;d.ia(h,f);e.T=!0;e.oa=this.o(e)+e.i;e.pa=this.o(e)+e.j;d.ia(e.oa,e.pa);e.i+=this.o(e);e.j+=this.o(e);d.ia(e.i,e.j);break;case "h":case "H":e.i+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;case "v":case "V":e.j+=this.o(e);d.ia(e.i,e.j);e.T=!1;break;default:this.o(e),e.T=!1}for(;" "===a.charAt(e.N);)++e.N}return d.qe(this.Ua())},Zb:function(){var a=null;this.aa();var k=this.g.D("RenderTransform");if(null!=k){var e=new b.K;
-e.$(k);this.S(e)}e=this.g.D("Stroke");var d=this.ma("StrokeThickness",1);k=this.g.D("Clip");null!=k&&(a=this.Ba(k));k=this.g.D("Data");if(!this.g.V()){for(this.g.J();this.g.advance();){var m=this.g.O();if(b.f.m(m,"Path.Data",b.f.l)&&!this.g.V()){this.g.J();this.g.advance()&&(k=new b.K,k.$(this.B("Transform")),this.S(k),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Data must contain PathGeometry"),k=this.B("Figures"));this.g.I();break}else b.f.m(m,"Path.Clip",b.f.l)?(b.f.H(!this.g.V(),"Path.Clip: Must contain PathGeometry element"),
-this.g.J(),this.g.advance()&&(m=new b.K,m.$(this.B("Transform")),this.S(m),a=this.Ba(this.B("Figures")),m=m.Va(),this.S(m)),this.g.I()):b.f.m(m,"Path.Stroke",b.f.l)&&(e=!0)}this.g.I()}null!=a?a.gb(this.Ba(k)):a=this.Ba(k);this.qa();e&&a.inflate(d);return a},pb:function(a,k,e){a.T=!1;if(null==a.ua)this.v.push(b.f.xc),this.A.push([a.i,a.j]);else for(var d=a.ua.length,m=a.i-k,h=a.j-e,f=h/m,p=Math.sqrt(m*m+h*h);1E-10<p;){var t=a.ua[a.Kb%d]-a.sb,l=t>p;l&&(a.sb+=p,t=p);if(m){var n=Math.sqrt(t*t/(1+f*f));
-0>m&&(n=-n);k+=n;e+=f*n}else e+=0<h?t:-t;this.v.push(a.Kb%2?b.f.zc:b.f.xc);this.A.push([k,e]);p-=t;l||(++a.Kb,a.sb=0)}},vc:function(a,k,e,d,m){a.T=!0;if(null==a.ua)this.v.push(b.f.qd),this.A.push([d,m,a.oa,a.pa,a.i,a.j]);else{var h=this.Ua().Qa();h*=(Math.abs(a.i-k)+Math.abs(a.j-e))/5;var f=a.i,p=a.j;a.i=k;a.j=e;h=1/parseInt(h);for(var t=0;1>=t;t+=h){var l=1-t,A=a.i,n=a.j;a.i=l*l*l*k+3*l*l*t*d+3*l*t*t*a.oa+t*t*t*f;a.j=l*l*l*e+3*l*l*t*m+3*l*t*t*a.pa+t*t*t*p;this.pb(a,A,n)}}},nd:function(a){if(null==
-a.ua)this.v.push(b.f.sd),this.A.push(null);else{var k=a.i,e=a.j;a.i=a.Ic;a.j=a.Jc;this.pb(a,k,e)}},de:function(a){a.Ic=a.i;a.Jc=a.j;this.v.push(b.f.zc);this.A.push([a.i,a.j]);a.T=!1;a.Kb=a.ec;a.sb=a.Da},he:function(a,k){var e=a.i,d=a.j;"a">k&&("H"!==k&&(a.j=0),"V"!==k&&(a.i=0));switch(k){case "m":case "M":a.i+=this.o(a);a.j+=this.o(a);this.de(a);break;case "l":case "L":a.i+=this.o(a);a.j+=this.o(a);this.pb(a,e,d);break;case "c":case "C":k=this.o(a)+a.i;var h=this.o(a)+a.j;a.oa=this.o(a)+a.i;a.pa=
-this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.vc(a,e,d,k,h);break;case "q":case "Q":k=this.o(a)+a.i;h=this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.L(b.f.Jd,[k,h,a.i,a.j]);a.T=!1;break;case "s":case "S":a.T||(a.oa=a.i,a.pa=a.j);k=2*a.i-a.oa;h=2*a.j-a.pa;a.T=!0;a.oa=this.o(a)+a.i;a.pa=this.o(a)+a.j;a.i+=this.o(a);a.j+=this.o(a);this.vc(a,e,d,k,h);break;case "h":case "H":a.i+=this.o(a);this.pb(a,e,d);a.T=!1;break;case "v":case "V":a.j+=this.o(a);this.pb(a,e,d);a.T=!1;break;default:this.o(a),a.T=
-!1}},Ec:function(a){if("Flat"===a)return"butt";if("Square"===a)return"square";if("Round"===a||"Triangle"===a)return"round";b.f.H(!1,"Invalid line cap ".concat(a));return""},Oc:function(a){this.Pc(a,null,0)},Pc:function(a,k,e){var d=" ";k=new b.Vb(a,k,e);e=k.ga.charAt(k.N);this.v.push(b.f.pd);this.A.push(null);if(k.N<k.ga.length)for(;" "===e;)k.N++,e=k.ga.charAt(k.N);for(;k.N<a.length;)for("A"<=e&&"Z">=e||"a"<=e&&"z">=e?(d=e,"z"!==e&&"Z"!==e||this.nd(k),k.N++):this.he(k,d),e=k.ga.charAt(k.N);" "===
-e;)++k.N,e=k.ga.charAt(k.N)},save:p.prototype.save,restore:p.prototype.restore,je:function(){var a=this.sa("trn:BlendMode","source-over");a=this.ca?"source-over":a;var k="source-over"!=a&&!this.Ib,e=this.g.D("Data"),h=!0;e&&"F"===e[0]&&(h=!1);var m=new p(b.f.Cb,h?["evenodd"]:null),f=!1,l=this.hc(),n=null,t=this.g.D("Fill");null!=t&&(n=this.Hb(t)?this.Ca(t,b.f.na,m):this.nb(t,b.f.na,m));this.Ib&&this.Rc(a);var z=t=null,y=this.ma("StrokeThickness",1),C=this.g.D("Stroke");null!=C&&(this.jc(y),t=this.Hb(C)?
-this.Ca(C,b.f.Aa,new p(b.f.Db)):this.nb(C,b.f.Aa,new p(b.f.Db)));C=null;var w=this.g.D("OpacityMask");null!=w&&(Object(d.a)("Uh oh OpacityMask Resource!"),C=this.Ca(w));w=null;if(!this.g.V()){for(this.g.J();this.g.advance();){var g=this.g.O();b.f.m(g,"Path.Clip",b.f.l)?(b.f.H(!this.g.V(),"Path.Clip: Must contain PathGeometry element"),this.g.J(),this.g.advance()&&(l||(l=!0,this.save(),this.aa()),w=new b.K,w.$(this.B("Transform")),this.C(this.S(w)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Clip must contain PathGeometry"),
-g=this.B("Figures"),this.Pb(g),w=w.Va()),this.g.I()):b.f.m(g,"Path.Data",b.f.l)&&!this.g.V()?(this.g.J(),this.g.advance()&&(e=new b.K,e.$(this.B("Transform")),null!=w?w.Ga(e):w=e,this.C(this.S(w)),b.f.H(b.f.m(this.g.O(),"PathGeometry",b.f.l),"Path.Data must contain PathGeometry"),e=this.B("Figures")),this.g.I()):b.f.m(g,"Path.Fill",b.f.l)?(this.g.J(),this.g.advance(),null!=C||k||"ImageBrush"!==this.g.O()?n=this.Ta(b.f.na,m):(f=!0,this.C(this.Vd())),this.g.I()):b.f.m(g,"Path.OpacityMask",b.f.l)?this.ca||
-(this.g.J(),this.g.advance(),C=this.Ta(b.f.na,m),this.g.I()):b.f.m(g,"Path.Stroke",b.f.l)&&(this.g.J(),this.g.advance(),t=this.Ta(b.f.Aa,new p(b.f.Db),y),this.g.I())}this.g.I()}if(null==C&&!k&&!f){b.f.H(null!=e,"Paths must have Data defined");f=this.g.D("StrokeDashArray");if(null!=f)for(f=f.split(" "),z=Array(f.length),w=0;w<f.length;++w)if(z[w]=parseFloat(f[w])*y,!z[w]||.02>z[w])z[w]=.02;this.Sc(h?"evenodd":"nonzero");h=this.ma("StrokeDashOffset",0);null!=z&&null!=n&&(this.Oc(e),null!=n&&this.ic(n,
-m),n=null);this.Pc(e,z,h);null!=n&&this.ic(n,m);null!=t&&(this.Tc(this.Ec(this.sa("StrokeStartLineCap","Flat"))),this.Uc(this.sa("StrokeLineJoin","miter").toLowerCase()),this.Vc(this.ma("StrokeMiterLimit",10)),this.Wc(t))}l&&(this.restore(),this.qa());if(null!=C||k)this.ca=!0,this.Wb(C,a);this.ca=!1},Cc:function(a){var k=1,e=[255,255,255,255];if("#"===a.charAt(0)){if(7===a.length)return a;b.f.H(9===a.length,"Color ".concat(a," is invalid in a XOD file"));k=a.substr(1,2);var d=a.substr(3,2);var h=
-a.substr(5,2);a=a.substr(7,2);k=parseInt(k,16)/255;e[0]=parseInt(d,16);e[1]=parseInt(h,16);e[2]=parseInt(a,16)}else"s"===a.charAt(0)?(d=a.split("#")[1].split(","),3<d.length?(k=parseFloat(d[0]),h=255*parseFloat(d[1]),e[0]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[2]),e[1]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[3]),e[2]=parseInt(0>h?0:255<h?255:h)):(h=255*parseFloat(d[0]),e[0]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[1]),e[1]=parseInt(0>h?0:255<h?255:h),h=255*parseFloat(d[2]),e[2]=
-parseInt(0>h?0:255<h?255:h))):b.f.H(!1,"Invalid color for a XOD file");return"rgba(".concat(e[0],",").concat(e[1],",").concat(e[2],",").concat(b.f.ad(k),")")},Zd:function(a,b){return this.nb(this.B("Color"),a,b)},nb:function(a,b,e){a=new p(b,this.Cc(a));a.C(e);return a},ac:function(){var a=this.La,k=this.v,e=this.A;this.v=[];this.A=[];this.La=this.g.depth;this.aa(!0);if(!this.g.V()||!b.f.m(this.g.O(),"Canvas",b.f.l))for(this.Ia=!1;this.gc(););this.qa();var d={operators:this.v,data:this.A};this.La=
-a;this.v=k;this.A=e;return d},Fc:function(a,k,e,d){var h=new p,f=this.B("Viewbox"),l=new b.ha;l.fb(f);f=this.B("Viewport");var n=new b.ha;n.fb(f);f=this.g.D("Transform");h.save();this.aa();if(!this.g.V()){for(this.g.J();this.g.advance();){var t=this.g.O();if(b.f.m(t,"VisualBrush.Visual",b.f.l)){this.g.J();b.f.H(this.g.advance(),"VisualBrush.Visual must contain Canvas, Path or Glyphs element");this.aa(!0);Object(y.a)(this.P).wa=new b.K;var z=this.Fb();this.qa();this.g.I()}}this.g.I()}if("undefined"!==
-typeof z&&0!==z.F&&0!==z.G){t=n.s-l.s;var A=n.u-l.u;l.gb(z);n=l;n.s+=t;n.u+=A}if(0===l.G||0===l.F)return a=new p(a,"rgba(0,0,0,0)"),a.C(k),a;if(null!=f||l!==n)z=n.G/l.G,t=n.F/l.F,A=n.s-l.s*z,n=n.u-l.u*t,null!=f&&e.$(f),f=new b.K,f.ob(z,0,0,t,A,n),e.Ga(f),h.C(this.S(e));n=this.Ua().Qa();f=Math.min(l.G,l.F);z=this.ma("Opacity",1);1>z&&h.C(this.Ra(z));z=this.sa("TileMode","None");t={};A=this.g.D("Visual");null!=A&&(A=this.Ca(A),t.operators={operators:A.v,data:A.A});if(!this.g.V()){for(this.g.J();this.g.advance();)A=
-this.g.O(),b.f.m(A,"VisualBrush.Visual",b.f.l)&&(this.g.J(),b.f.H(this.g.advance(),"VisualBrush.Visual must contain Canvas, Path or Glyphs element"),t.operators=this.ac(),this.g.I());this.g.I()}t.type=b.f.Pd;t.tm="None"===z?"no-repeat":"repeat";a===b.f.Aa&&(t.strokeAdjust=d/e.Qa());if(l.s||l.u)t.x=l.s,t.y=l.u;t.w=l.G;t.h=l.F;t.minwh=f;t.scale=n;h.L(a,[t]);h.C(k);h.restore();this.qa();return h},Hb:function(a){return"{"===a.charAt(0)},Ca:function(a){var k=a.indexOf("StaticResource");b.f.H(0<k,"Invalid resource reference: ".concat(a));
-k+=15;a=a.substr(k,a.length-1-k);k=null;for(var e=this.fa.length-1;0<=e;--e)if(this.fa[e][a]){k=this.fa[e][a];break}b.f.H(null!=k,"Dictionary key ".concat(a," does not exist."));return new p(b.f.Ld,[a])},gc:function(){if(this.Ia){if(this.g.depth===this.La)return b.f.m(this.g.O(),"Canvas",b.f.l)&&this.vb(),!1;var a=this.g.advance();if(!a){this.g.I();if(Object(y.a)(this.Jb)===this.g.depth)return this.Jb.pop(),this.Rd(),!0;if(this.g.depth===this.La)return b.f.m(this.g.O(),"Canvas",b.f.l)&&this.vb(),
-!1;this.vb();return!0}}this.Ia=!0;a=this.g.O();b.f.m(a,"Canvas",b.f.l)?this.ge():b.f.m(a,"Path",b.f.l)?this.je():b.f.m(a,"Glyphs",b.f.l)?this.Nc(!1):b.f.m(a,"trn:Glyphs",b.f.l)&&(this.g.V()||this.Jb.push(this.g.depth),this.Nc(!0),this.g.V()||(this.g.J(),this.le()));return!0},md:function(){var a=b.f.na,k=new p(b.f.Cb);a=this.Fc(a,k,new b.K);k=this.cd();this.fa[this.fa.length-1][k]=a;this.L(b.f.Ac,[k,a.v,a.A])},ld:function(a){a=this.ac();var k=this.cd();this.fa[this.fa.length-1][k]=a;this.L(b.f.Ac,
-[k,a.operators,a.data])},Ta:function(a,k,e){var d=new b.K,h=this.g.O();if(b.f.m(h,"VisualBrush",b.f.l))var f=this.Fc(a,k,d,e);else b.f.m(h,"ImageBrush",b.f.l)?f=this.Ud(a,k,d):b.f.m(h,"LinearGradientBrush",b.f.l)?f=this.Wd(a,k,d):b.f.m(h,"RadialGradientBrush",b.f.l)?f=this.Yd(a,k,d):b.f.m(h,"SolidColorBrush",b.f.l)?f=this.Zd(a,k):b.f.H(!1,"Invalid Brush Type: ".concat(h)),"undefined"!==typeof e&&(this.S(d),this.jc(e/d.Qa()),this.S(d.Va()));return f},Qc:function(){var a=this.g.O();if(b.f.m(a,"ResourceDictionary",
-b.f.l)&&!this.g.V()){for(this.g.J();this.g.advance();)a=this.g.O(),b.f.m(a,"VisualBrush",b.f.l)?this.md():b.f.m(a,"Canvas",b.f.l)?this.ld():b.f.H(!1,"Resource type is invalid: ".concat(a));this.g.I()}},Td:function(){for(var a="";!this.done;)a+=this.hb();return a},hb:function(){this.Mc=!1;for(this.qb={};this.v.length<this.Hc&&!this.Mc&&this.gc(););this.gc()||(this.done=!0);var a={operators:this.v,data:this.A};this.v=[];this.A=[];return a},oe:function(){var a=[],b=this.qb,e;for(e in b)a.push(e.substr(1));
-return a},done:!1,Ia:!1,ca:!1,Lc:0,Kc:0,Hc:0,Ja:null,qb:null,La:0,fa:null,P:null,g:null,Jb:null,Lb:!1};b.Ha=function(){this.fc=this.ub=!1;this.rb=this.dc=1;this.cc=this.Nb=this.Ob=this.Mb=0};b.Ha.prototype={ub:!1,fc:!1,rb:0,dc:0,Mb:0,cc:0,Nb:0,Ob:0};b.Sa=function(){};b.Sa.se=function(a,k){var e=new b.Sa;e.cb="black";e.Xa="black";e.Wa="nonzero";e.Ka=1;e.tb="source-over";e.ab=1;e.Za="butt";e.$a="miter";e.bb=10;e.Ya="10px sans-serif";e.wa=new b.K;e.ta=new b.ha;e.ta.initData(0,0,a,k);return e};b.Sa.prototype=
-{clone:function(){var a=new b.Sa;a.cb=this.cb;a.Xa=this.Xa;a.Wa=this.Wa;a.Ka=this.Ka;a.tb=this.tb;a.ab=this.ab;a.Za=this.Za;a.$a=this.$a;a.bb=this.bb;a.Ya=this.Ya;a.wa=new b.K;a.wa.bc(this.wa);a.ta=new b.ha;a.ta.initData(this.ta.s,this.ta.u,this.ta.G,this.ta.F);return a},we:function(){var a=new b.Sa;a.cb="black";a.Xa="black";a.Wa="nonzero";a.Ka=1;a.tb="source-over";a.ab=1;a.Za="butt";a.$a="miter";a.bb=10;a.Ya="10px sans-serif";a.wa=new b.K;a.wa.bc(this.wa);a.ta=new b.ha;return a},cb:null,Xa:null,
-Wa:null,Ka:0,ab:0,Za:null,$a:null,bb:0,Ya:null,wa:null,ta:null};b.mb=function(a,b){this.x=a;this.y=b};b.mb.prototype={x:0,y:0};b.ha=function(){this.u=this.s=-1E6;this.G=this.F=2E6};b.ha.prototype={initData:function(a,b,e,d){this.s=a;this.u=b;this.G=e;this.F=d},te:function(){return 0<this.G&&0<this.F},fb:function(a){a=a.split(",");b.f.H(4===a.length,"Rectangles should contain 4 numbers");this.s=parseFloat(a[0]);this.u=parseFloat(a[1]);this.G=parseFloat(a[2]);this.F=parseFloat(a[3])},qe:function(a){if(a.Gc())return this;
-var d=new b.mb(this.s,this.u),e=new b.mb(this.s,this.u+this.F),h=new b.mb(this.s+this.G,this.u),f=new b.mb(this.s+this.G,this.u+this.F);a.Ub(d);a.Ub(e);a.Ub(h);a.Ub(f);a=Math.min(d.x,e.x,h.x,f.x);var l=Math.min(d.y,e.y,h.y,f.y),p=new b.ha;p.initData(a,l,Math.max(d.x,e.x,h.x,f.x)-a,Math.max(d.y,e.y,h.y,f.y)-l);return p},ia:function(a,b){a<this.s?(this.G+=this.s-a,this.s=a):a>this.s+this.G&&(this.G=a-this.s);b<this.u?(this.F+=this.u-b,this.u=b):b>this.u+this.F&&(this.F=b-this.u)},sc:function(a){this.ia(a.s,
-a.u);this.ia(a.s+a.G,a.u+a.F)},gb:function(a){var b=this.s;var e=this.s+this.G;var d=this.u;var h=this.u+this.F;var f=a.s;var l=a.s+a.G;var p=a.u;a=a.u+a.F;e<f||l<b||h<p||a<d?this.s=this.G=this.u=this.F=0:(this.s=b<f?f:b,this.G=(e<l?e:l)-this.s,this.u=d<p?p:d,this.F=(h<a?h:a)-this.u,this.G&&this.F||(this.s=this.G=this.u=this.F=0))},inflate:function(a){this.s-=a;this.u-=a;this.G+=2*a;this.F+=2*a},s:0,u:0,G:0,F:0};b.K=function(){};b.K.prototype={W:1,X:0,Y:0,Z:1,ba:0,da:0,$:function(a){var b=[1,0,0,
-1,0,0];a=a.split(",");for(var e=0;e<a.length&&6>e;++e)b[e]=parseFloat(a[e]);this.W=b[0];this.X=b[1];this.Y=b[2];this.Z=b[3];this.ba=b[4];this.da=b[5]},ob:function(a,b,e,d,h,f){this.W=a;this.X=b;this.Y=e;this.Z=d;this.ba=h;this.da=f},bc:function(a){this.W=a.W;this.X=a.X;this.Y=a.Y;this.Z=a.Z;this.ba=a.ba;this.da=a.da},Ga:function(a){var b=this.W,e=this.X,d=this.Y,h=this.Z;this.W=a.W*b+a.X*d;this.X=a.W*e+a.X*h;this.Y=a.Y*b+a.Z*d;this.Z=a.Y*e+a.Z*h;this.ba=a.ba*b+a.da*d+this.ba;this.da=a.ba*e+a.da*h+
-this.da},Va:function(){var a=new b.K,d=this.W*this.Z-this.X*this.Y;if(!d)return a;a.W=this.Z/d;a.Y=-this.Y/d;a.ba=(this.Y*this.da-this.ba*this.Z)/d;a.X=-this.X/d;a.Z=this.W/d;a.da=-(this.W*this.da-this.ba*this.X)/d;return a},Ub:function(a){var b=a.x*this.X+a.y*this.Z+this.da;a.x=a.x*this.W+a.y*this.Y+this.ba;a.y=b},Qa:function(){var a=.707106781*this.W+.707106781*this.X,b=.707106781*this.Y+.707106781*this.Z;return Math.sqrt(a*a+b*b)},Gc:function(){return 1!==this.W||this.X||this.Y||1!==this.Z||this.ba||
-this.da?!1:!0},Gb:function(){return this.Xd()},Xd:function(){return this.Gc()?null:[this.W,this.X,this.Y,this.Z,this.ba,this.da]}};b.Vb=function(a,b,e){this.ga=a;this.i=this.j=this.N=0;this.T=!1;this.ua=b;if(null!=this.ua){for(b=a=0;b<this.ua.length;++b)a+=this.ua[b];this.Da=e%a;0>this.Da&&(this.Da+=a);for(e=this.ec=0;this.Da>this.ua[e];++e)this.Da-=this.ua[e],++this.ec}};b.Vb.prototype={ga:null,N:0,ua:null,Kb:0,sb:0,ec:0,Da:0,i:0,j:0,Ic:0,Jc:0,T:!1,oa:0,pa:0};b.ee=function(){};b.ee.prototype={};
-b.f.ff="http://schemas.microsoft.com/xps/2005/06/resourcedictionary-key";b.f.mf="http://schemas.openxps.org/oxps/v1.0/resourcedictionary-key";b.f.tf="http://schemas.microsoft.com/winfx/2006/xaml";b.f.l="http://schemas.microsoft.com/xps/2005/06";b.f.uf="http://schemas.microsoft.com/winfx/2006/xaml/presentation";b.f.nf="http://schemas.openxps.org/oxps/v1.0";b.f.wf="http://schemas.microsoft.com/xps/2005/06/documentstructure";b.f.lf="http://schemas.openxps.org/oxps/v1.0/documentstructure";b.f.rf="http://schemas.openxmlformats.org/package/2006/relationships";
-b.f.Ye="http://schemas.openxmlformats.org/package/2006/content-types";b.f.gf="http://schemas.openxmlformats.org/markup-compatibility/2006";b.f.Ze="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";b.f.$e="http://purl.org/dc/elements/1.1/";b.f.af="http://purl.org/dc/terms/";b.f.vf="http://www.w3.org/XML/1998/namespace";b.f.sf="clr-namespace:PDFTron.SilverDox.Internal;assembly=SilverDox";b.f.xf="http://schemas.microsoft.com/xps/2005/06/restricted-font";b.f.pf="http://schemas.openxps.org/oxps/v1.0/restricted-font";
-b.f.hf="application/vnd.ms-package.obfuscated-opentype";b.f.qf="http://www.pdftron.com/silverdox/2010/09";b.f.Nd=0;b.f.Md=1;b.f.Eb=2;b.f.ef=3;b.f.Gd=4;b.f.Ed=5;b.f.Aa=6;b.f.na=7;b.f.Bd=8;b.f.Ac=9;b.f.wd=10;b.f.od=11;b.f.Ld=12;b.f.pd=13;b.f.sd=14;b.f.Cb=15;b.f.Db=16;b.f.rd=17;b.f.zc=18;b.f.xc=19;b.f.Jd=20;b.f.qd=21;b.f.Ad=22;b.f.xd=23;b.f.yc=24;b.f.Od=25;b.f.Id=26;b.f.Fd=27;b.f.vd=28;b.f.df=29;b.f.cf=30;b.f.zd=31;b.f.td=32;b.f.ud=33;b.f.Cd=34;b.f.Bc=35;b.f.Qd=36;b.f.bf=37;b.f.wc=38;b.f.yd=39;b.f.Xb=
-40;b.f.Pd=1;b.f.Hd=2;b.f.Kd=3;b.f.Dd=4;b.f.jf="S r t T w c s f a L R P A b z F X C M l q B n x m W i j I Z d D e xw cgb cge g bO tm".split(" ");b.f.kf="S r t T w c s f a L R P A b z F X C M l q B n xc m W i j I Z d D e xcw cgb cge g bO tm".split(" ")})("undefined"!==typeof window?window:self)},function(n,f,l){var h=l(7),d=l(4),D=l(8);l.n(D);(function(f){f.trn.f||(f.trn=trn);var l=function k(a){this.M="";this.data=a;this.ed=new D.Inflate({windowBits:-15,chunkSize:k.prototype.chunkSize});this.pc();
-this.start=0};l.prototype={chunkSize:102400,mark:function(a){var d=a-this.start;d>l.prototype.chunkSize&&(this.M=this.M.slice(d),this.start=a)},indexOf:function(a,d){d-=this.start;do var e=this.M.indexOf(a,d);while(-1===e&&this.pc());return e+this.start},charAt:function(a){a-=this.start;a>=this.M.length&&this.pc();return this.M.charAt(a)},substring:function(a,d){a-=this.start;d-=this.start;return this.M.substring(a,d)},pe:function(){var a="";this.ed.onData=function(d){a+=Object(h.a)(d)};this.ed.push(this.data.slice(0,
-l.prototype.chunkSize),2);this.data=this.data.slice(l.prototype.chunkSize);return a},pc:function(){var a=this.pe();return a.length?(this.M+=a,!0):!1}};f.hb=function(){if(f.Na.done)return f.postMessage({command:"done"}),f.Na=null,!1;var a=f.Na.hb();f.postMessage({command:"nextChunk",resources:f.Na.oe(),dataString:a});return!0};var p=function(){var a=navigator.userAgent.toLowerCase();return(a=/(msie) ([\w.]+)/.exec(a)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(a))?parseInt(a[2],10):a}();f.Yc=function(){if(9===
-p)for(;f.hb(););else setTimeout(function(){f.Na&&f.hb()&&f.Yc()},0)};f.jd=l;f.Xc=!1;f.onmessage=function(a){switch(a.data.command){case "data":var h=new d.a(new f.jd(a.data.dataString));f.Na=new f.trn.f(h,f.Xc,f.Ae,a.data.docId);f.Zc&&f.Yc();break;case "nextChunk":f.Zc||f.Na&&f.hb();break;case "cancel":f.Na=null;f.postMessage({command:"done"});break;case "options":f.Xc=a.data.imageScaling;f.Ae=a.data.specialBlendSupported;f.Zc=a.data.continueWithoutPrompt;break;default:throw Error("Unknown message command ".concat(a.data.command));
-}}})(self)},function(n,f,l){function h(a){return(a>>>24&255)+(a>>>8&65280)+((a&65280)<<8)+((a&255)<<24)}function d(){this.mode=0;this.Tb=!1;this.va=0;this.nc=!1;this.total=this.check=this.Qb=this.flags=0;this.head=null;this.ja=this.za=this.ka=this.jb=0;this.window=null;this.U=this.offset=this.length=this.R=this.Fa=0;this.Oa=this.ya=null;this.ra=this.yb=this.ib=this.hd=this.eb=this.xa=0;this.next=null;this.ea=new a.kb(320);this.Bb=new a.kb(288);this.$c=this.fd=null;this.Ce=this.back=this.qc=0}function D(b){if(!b||
-!b.state)return-2;var e=b.state;b.rc=b.Ab=e.total=0;b.msg="";e.va&&(b.Ma=e.va&1);e.mode=1;e.Tb=0;e.nc=0;e.Qb=32768;e.head=null;e.Fa=0;e.R=0;e.ya=e.fd=new a.lb(852);e.Oa=e.$c=new a.lb(592);e.qc=1;e.back=-1;return 0}function y(a){if(!a||!a.state)return-2;var b=a.state;b.ka=0;b.za=0;b.ja=0;return D(a)}function v(a,b){if(!a||!a.state)return-2;var e=a.state;if(0>b){var d=0;b=-b}else d=(b>>4)+1,48>b&&(b&=15);if(b&&(8>b||15<b))return-2;null!==e.window&&e.jb!==b&&(e.window=null);e.va=d;e.jb=b;return y(a)}
-function p(a,b){if(!a)return-2;var e=new d;a.state=e;e.window=null;b=v(a,b);0!==b&&(a.state=null);return b}function b(b,e,d,h){var f=b.state;null===f.window&&(f.ka=1<<f.jb,f.ja=0,f.za=0,f.window=new a.Buf8(f.ka));h>=f.ka?(a.arraySet(f.window,e,d-f.ka,f.ka,0),f.ja=0,f.za=f.ka):(b=f.ka-f.ja,b>h&&(b=h),a.arraySet(f.window,e,d-h,b,f.ja),(h-=b)?(a.arraySet(f.window,e,d-h,h,0),f.ja=h,f.za=f.ka):(f.ja+=b,f.ja===f.ka&&(f.ja=0),f.za<f.ka&&(f.za+=b)));return 0}var a=l(3),k=l(14),e=l(15),A=l(16),m=l(17),F=!0,
-E,R;f.Df=y;f.Ef=v;f.Ff=D;f.Cf=function(a){return p(a,15)};f.inflateInit2=p;f.inflate=function(d,f){var l,p=new a.Buf8(4),n=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!d||!d.state||!d.output||!d.input&&0!==d.avail_in)return-2;var g=d.state;12===g.mode&&(g.mode=13);var t=d.next_out;var D=d.output;var y=d.avail_out;var v=d.next_in;var z=d.input;var x=d.avail_in;var r=g.Fa;var q=g.R;var M=x;var I=y;var N=0;a:for(;;)switch(g.mode){case 1:if(0===g.va){g.mode=13;break}for(;16>q;){if(0===x)break a;
-x--;r+=z[v++]<<q;q+=8}if(g.va&2&&35615===r){g.check=0;p[0]=r&255;p[1]=r>>>8&255;g.check=e(g.check,p,2,0);q=r=0;g.mode=2;break}g.flags=0;g.head&&(g.head.done=!1);if(!(g.va&1)||(((r&255)<<8)+(r>>8))%31){d.msg="incorrect header check";g.mode=30;break}if(8!==(r&15)){d.msg="unknown compression method";g.mode=30;break}r>>>=4;q-=4;var B=(r&15)+8;if(0===g.jb)g.jb=B;else if(B>g.jb){d.msg="invalid window size";g.mode=30;break}g.Qb=1<<B;d.Ma=g.check=1;g.mode=r&512?10:12;q=r=0;break;case 2:for(;16>q;){if(0===
-x)break a;x--;r+=z[v++]<<q;q+=8}g.flags=r;if(8!==(g.flags&255)){d.msg="unknown compression method";g.mode=30;break}if(g.flags&57344){d.msg="unknown header flags set";g.mode=30;break}g.head&&(g.head.text=r>>8&1);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0;g.mode=3;case 3:for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.head&&(g.head.time=r);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,p[2]=r>>>16&255,p[3]=r>>>24&255,g.check=e(g.check,p,4,0));q=r=0;g.mode=4;case 4:for(;16>
-q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.head&&(g.head.De=r&255,g.head.ye=r>>8);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0;g.mode=5;case 5:if(g.flags&1024){for(;16>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.length=r;g.head&&(g.head.mc=r);g.flags&512&&(p[0]=r&255,p[1]=r>>>8&255,g.check=e(g.check,p,2,0));q=r=0}else g.head&&(g.head.U=null);g.mode=6;case 6:if(g.flags&1024){var u=g.length;u>x&&(u=x);u&&(g.head&&(B=g.head.mc-g.length,g.head.U||(g.head.U=Array(g.head.mc)),
-a.arraySet(g.head.U,z,v,u,B)),g.flags&512&&(g.check=e(g.check,z,u,v)),x-=u,v+=u,g.length-=u);if(g.length)break a}g.length=0;g.mode=7;case 7:if(g.flags&2048){if(0===x)break a;u=0;do B=z[v+u++],g.head&&B&&65536>g.length&&(g.head.name+=String.fromCharCode(B));while(B&&u<x);g.flags&512&&(g.check=e(g.check,z,u,v));x-=u;v+=u;if(B)break a}else g.head&&(g.head.name=null);g.length=0;g.mode=8;case 8:if(g.flags&4096){if(0===x)break a;u=0;do B=z[v+u++],g.head&&B&&65536>g.length&&(g.head.kc+=String.fromCharCode(B));
-while(B&&u<x);g.flags&512&&(g.check=e(g.check,z,u,v));x-=u;v+=u;if(B)break a}else g.head&&(g.head.kc=null);g.mode=9;case 9:if(g.flags&512){for(;16>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(r!==(g.check&65535)){d.msg="header crc mismatch";g.mode=30;break}q=r=0}g.head&&(g.head.re=g.flags>>9&1,g.head.done=!0);d.Ma=g.check=0;g.mode=12;break;case 10:for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}d.Ma=g.check=h(r);q=r=0;g.mode=11;case 11:if(0===g.nc)return d.next_out=t,d.avail_out=y,d.next_in=v,
-d.avail_in=x,g.Fa=r,g.R=q,2;d.Ma=g.check=1;g.mode=12;case 12:if(5===f||6===f)break a;case 13:if(g.Tb){r>>>=q&7;q-=q&7;g.mode=27;break}for(;3>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.Tb=r&1;r>>>=1;--q;switch(r&3){case 0:g.mode=14;break;case 1:B=g;if(F){E=new a.lb(512);R=new a.lb(32);for(u=0;144>u;)B.ea[u++]=8;for(;256>u;)B.ea[u++]=9;for(;280>u;)B.ea[u++]=7;for(;288>u;)B.ea[u++]=8;m(1,B.ea,0,288,E,0,B.Bb,{R:9});for(u=0;32>u;)B.ea[u++]=5;m(2,B.ea,0,32,R,0,B.Bb,{R:5});F=!1}B.ya=E;B.xa=9;B.Oa=R;B.eb=
-5;g.mode=20;if(6===f){r>>>=2;q-=2;break a}break;case 2:g.mode=17;break;case 3:d.msg="invalid block type",g.mode=30}r>>>=2;q-=2;break;case 14:r>>>=q&7;for(q-=q&7;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if((r&65535)!==(r>>>16^65535)){d.msg="invalid stored block lengths";g.mode=30;break}g.length=r&65535;q=r=0;g.mode=15;if(6===f)break a;case 15:g.mode=16;case 16:if(u=g.length){u>x&&(u=x);u>y&&(u=y);if(0===u)break a;a.arraySet(D,z,v,u,t);x-=u;v+=u;y-=u;t+=u;g.length-=u;break}g.mode=12;break;case 17:for(;14>
-q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.ib=(r&31)+257;r>>>=5;q-=5;g.yb=(r&31)+1;r>>>=5;q-=5;g.hd=(r&15)+4;r>>>=4;q-=4;if(286<g.ib||30<g.yb){d.msg="too many length or distance symbols";g.mode=30;break}g.ra=0;g.mode=18;case 18:for(;g.ra<g.hd;){for(;3>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.ea[n[g.ra++]]=r&7;r>>>=3;q-=3}for(;19>g.ra;)g.ea[n[g.ra++]]=0;g.ya=g.fd;g.xa=7;u={R:g.xa};N=m(0,g.ea,0,19,g.ya,0,g.Bb,u);g.xa=u.R;if(N){d.msg="invalid code lengths set";g.mode=30;break}g.ra=0;g.mode=19;
-case 19:for(;g.ra<g.ib+g.yb;){for(;;){var H=g.ya[r&(1<<g.xa)-1];u=H>>>24;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(16>H)r>>>=u,q-=u,g.ea[g.ra++]=H;else{if(16===H){for(B=u+2;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=u;q-=u;if(0===g.ra){d.msg="invalid bit length repeat";g.mode=30;break}B=g.ea[g.ra-1];u=3+(r&3);r>>>=2;q-=2}else if(17===H){for(B=u+3;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=u;q-=u;B=0;u=3+(r&7);r>>>=3;q-=3}else{for(B=u+7;q<B;){if(0===x)break a;x--;
-r+=z[v++]<<q;q+=8}r>>>=u;q-=u;B=0;u=11+(r&127);r>>>=7;q-=7}if(g.ra+u>g.ib+g.yb){d.msg="invalid bit length repeat";g.mode=30;break}for(;u--;)g.ea[g.ra++]=B}}if(30===g.mode)break;if(0===g.ea[256]){d.msg="invalid code -- missing end-of-block";g.mode=30;break}g.xa=9;u={R:g.xa};N=m(1,g.ea,0,g.ib,g.ya,0,g.Bb,u);g.xa=u.R;if(N){d.msg="invalid literal/lengths set";g.mode=30;break}g.eb=6;g.Oa=g.$c;u={R:g.eb};N=m(2,g.ea,g.ib,g.yb,g.Oa,0,g.Bb,u);g.eb=u.R;if(N){d.msg="invalid distances set";g.mode=30;break}g.mode=
-20;if(6===f)break a;case 20:g.mode=21;case 21:if(6<=x&&258<=y){d.next_out=t;d.avail_out=y;d.next_in=v;d.avail_in=x;g.Fa=r;g.R=q;A(d,I);t=d.next_out;D=d.output;y=d.avail_out;v=d.next_in;z=d.input;x=d.avail_in;r=g.Fa;q=g.R;12===g.mode&&(g.back=-1);break}for(g.back=0;;){H=g.ya[r&(1<<g.xa)-1];u=H>>>24;B=H>>>16&255;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(B&&0===(B&240)){var L=u;var W=B;for(l=H;;){H=g.ya[l+((r&(1<<L+W)-1)>>L)];u=H>>>24;B=H>>>16&255;H&=65535;if(L+u<=q)break;if(0===
-x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=L;q-=L;g.back+=L}r>>>=u;q-=u;g.back+=u;g.length=H;if(0===B){g.mode=26;break}if(B&32){g.back=-1;g.mode=12;break}if(B&64){d.msg="invalid literal/length code";g.mode=30;break}g.U=B&15;g.mode=22;case 22:if(g.U){for(B=g.U;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.length+=r&(1<<g.U)-1;r>>>=g.U;q-=g.U;g.back+=g.U}g.Ce=g.length;g.mode=23;case 23:for(;;){H=g.Oa[r&(1<<g.eb)-1];u=H>>>24;B=H>>>16&255;H&=65535;if(u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(0===
-(B&240)){L=u;W=B;for(l=H;;){H=g.Oa[l+((r&(1<<L+W)-1)>>L)];u=H>>>24;B=H>>>16&255;H&=65535;if(L+u<=q)break;if(0===x)break a;x--;r+=z[v++]<<q;q+=8}r>>>=L;q-=L;g.back+=L}r>>>=u;q-=u;g.back+=u;if(B&64){d.msg="invalid distance code";g.mode=30;break}g.offset=H;g.U=B&15;g.mode=24;case 24:if(g.U){for(B=g.U;q<B;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}g.offset+=r&(1<<g.U)-1;r>>>=g.U;q-=g.U;g.back+=g.U}if(g.offset>g.Qb){d.msg="invalid distance too far back";g.mode=30;break}g.mode=25;case 25:if(0===y)break a;
-u=I-y;if(g.offset>u){u=g.offset-u;if(u>g.za&&g.qc){d.msg="invalid distance too far back";g.mode=30;break}u>g.ja?(u-=g.ja,B=g.ka-u):B=g.ja-u;u>g.length&&(u=g.length);L=g.window}else L=D,B=t-g.offset,u=g.length;u>y&&(u=y);y-=u;g.length-=u;do D[t++]=L[B++];while(--u);0===g.length&&(g.mode=21);break;case 26:if(0===y)break a;D[t++]=g.length;y--;g.mode=21;break;case 27:if(g.va){for(;32>q;){if(0===x)break a;x--;r|=z[v++]<<q;q+=8}I-=y;d.Ab+=I;g.total+=I;I&&(d.Ma=g.check=g.flags?e(g.check,D,I,t-I):k(g.check,
-D,I,t-I));I=y;if((g.flags?r:h(r))!==g.check){d.msg="incorrect data check";g.mode=30;break}q=r=0}g.mode=28;case 28:if(g.va&&g.flags){for(;32>q;){if(0===x)break a;x--;r+=z[v++]<<q;q+=8}if(r!==(g.total&4294967295)){d.msg="incorrect length check";g.mode=30;break}q=r=0}g.mode=29;case 29:N=1;break a;case 30:N=-3;break a;case 31:return-4;default:return-2}d.next_out=t;d.avail_out=y;d.next_in=v;d.avail_in=x;g.Fa=r;g.R=q;if((g.ka||I!==d.avail_out&&30>g.mode&&(27>g.mode||4!==f))&&b(d,d.output,d.next_out,I-d.avail_out))return g.mode=
-31,-4;M-=d.avail_in;I-=d.avail_out;d.rc+=M;d.Ab+=I;g.total+=I;g.va&&I&&(d.Ma=g.check=g.flags?e(g.check,D,I,d.next_out-I):k(g.check,D,I,d.next_out-I));d.me=g.R+(g.Tb?64:0)+(12===g.mode?128:0)+(20===g.mode||15===g.mode?256:0);(0===M&&0===I||4===f)&&0===N&&(N=-5);return N};f.inflateEnd=function(a){if(!a||!a.state)return-2;var b=a.state;b.window&&(b.window=null);a.state=null;return 0};f.inflateGetHeader=function(a,b){if(!a||!a.state)return-2;a=a.state;if(0===(a.va&2))return-2;a.head=b;b.done=!1;return 0};
-f.inflateSetDictionary=function(a,d){var e=d.length;if(!a||!a.state)return-2;var f=a.state;if(0!==f.va&&11!==f.mode)return-2;if(11===f.mode){var h=k(1,d,e,0);if(h!==f.check)return-3}if(b(a,d,e,e))return f.mode=31,-4;f.nc=1;return 0};f.Bf="pako inflate (from Nodeca project)"},function(n){n.la=function(f,l,h,d){var n=f&65535|0;f=f>>>16&65535|0;for(var y;0!==h;){y=2E3<h?2E3:h;h-=y;do n=n+l[d++]|0,f=f+n|0;while(--y);n%=65521;f%=65521}return n|f<<16|0}},function(n){var f=function(){for(var f,h=[],d=0;256>
-d;d++){f=d;for(var n=0;8>n;n++)f=f&1?3988292384^f>>>1:f>>>1;h[d]=f}return h}();n.la=function(l,h,d,n){d=n+d;for(l^=-1;n<d;n++)l=l>>>8^f[(l^h[n])&255];return l^-1}},function(n){n.la=function(f,l){var h=f.state;var d=f.next_in;var n=f.input;var y=d+(f.avail_in-5);var v=f.next_out;var p=f.output;l=v-(l-f.avail_out);var b=v+(f.avail_out-257);var a=h.Qb;var k=h.ka;var e=h.za;var A=h.ja;var m=h.window;var F=h.Fa;var E=h.R;var R=h.ya;var t=h.Oa;var z=(1<<h.xa)-1;var ca=(1<<h.eb)-1;a:do{15>E&&(F+=n[d++]<<
-E,E+=8,F+=n[d++]<<E,E+=8);var C=R[F&z];b:for(;;){var w=C>>>24;F>>>=w;E-=w;w=C>>>16&255;if(0===w)p[v++]=C&65535;else if(w&16){var g=C&65535;if(w&=15)E<w&&(F+=n[d++]<<E,E+=8),g+=F&(1<<w)-1,F>>>=w,E-=w;15>E&&(F+=n[d++]<<E,E+=8,F+=n[d++]<<E,E+=8);C=t[F&ca];c:for(;;){w=C>>>24;F>>>=w;E-=w;w=C>>>16&255;if(w&16){C&=65535;w&=15;E<w&&(F+=n[d++]<<E,E+=8,E<w&&(F+=n[d++]<<E,E+=8));C+=F&(1<<w)-1;if(C>a){f.msg="invalid distance too far back";h.mode=30;break a}F>>>=w;E-=w;w=v-l;if(C>w){w=C-w;if(w>e&&h.qc){f.msg=
-"invalid distance too far back";h.mode=30;break a}var G=0;var J=m;if(0===A){if(G+=k-w,w<g){g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}}else if(A<w){if(G+=k+A-w,w-=A,w<g){g-=w;do p[v++]=m[G++];while(--w);G=0;if(A<g){w=A;g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}}}else if(G+=A-w,w<g){g-=w;do p[v++]=m[G++];while(--w);G=v-C;J=p}for(;2<g;)p[v++]=J[G++],p[v++]=J[G++],p[v++]=J[G++],g-=3;g&&(p[v++]=J[G++],1<g&&(p[v++]=J[G++]))}else{G=v-C;do p[v++]=p[G++],p[v++]=p[G++],p[v++]=p[G++],g-=3;while(2<g);g&&(p[v++]=
-p[G++],1<g&&(p[v++]=p[G++]))}}else if(0===(w&64)){C=t[(C&65535)+(F&(1<<w)-1)];continue c}else{f.msg="invalid distance code";h.mode=30;break a}break}}else if(0===(w&64)){C=R[(C&65535)+(F&(1<<w)-1)];continue b}else{w&32?h.mode=12:(f.msg="invalid literal/length code",h.mode=30);break a}break}}while(d<y&&v<b);g=E>>3;d-=g;E-=g<<3;f.next_in=d;f.next_out=v;f.avail_in=d<y?5+(y-d):5-(d-y);f.avail_out=v<b?257+(b-v):257-(v-b);h.Fa=F&(1<<E)-1;h.R=E}},function(n,f,l){var h=l(3),d=[3,4,5,6,7,8,9,10,11,13,15,17,
-19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],D=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],y=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];n.la=function(f,b,a,k,e,l,m,n){var p=n.R,A,t,z,F,C,w,g=0,G=new h.kb(16);var J=new h.kb(16);var S,O=0;for(A=0;15>=A;A++)G[A]=
-0;for(t=0;t<k;t++)G[b[a+t]]++;var K=p;for(z=15;1<=z&&0===G[z];z--);K>z&&(K=z);if(0===z)return e[l++]=20971520,e[l++]=20971520,n.R=1,0;for(p=1;p<z&&0===G[p];p++);K<p&&(K=p);for(A=F=1;15>=A;A++)if(F<<=1,F-=G[A],0>F)return-1;if(0<F&&(0===f||1!==z))return-1;J[1]=0;for(A=1;15>A;A++)J[A+1]=J[A]+G[A];for(t=0;t<k;t++)0!==b[a+t]&&(m[J[b[a+t]]++]=t);if(0===f){var x=S=m;var r=19}else 1===f?(x=d,g-=257,S=D,O-=257,r=256):(x=y,S=v,r=-1);t=C=0;A=p;var q=l;k=K;J=0;var M=-1;var I=1<<K;var N=I-1;if(1===f&&852<I||2===
-f&&592<I)return 1;for(;;){var B=A-J;if(m[t]<r){var u=0;var H=m[t]}else m[t]>r?(u=S[O+m[t]],H=x[g+m[t]]):(u=96,H=0);F=1<<A-J;p=w=1<<k;do w-=F,e[q+(C>>J)+w]=B<<24|u<<16|H|0;while(0!==w);for(F=1<<A-1;C&F;)F>>=1;0!==F?(C&=F-1,C+=F):C=0;t++;if(0===--G[A]){if(A===z)break;A=b[a+m[t]]}if(A>K&&(C&N)!==M){0===J&&(J=K);q+=p;k=A-J;for(F=1<<k;k+J<z;){F-=G[k+J];if(0>=F)break;k++;F<<=1}I+=1<<k;if(1===f&&852<I||2===f&&592<I)return 1;M=C&N;e[M]=K<<24|k<<16|q-l|0}}0!==C&&(e[q+C]=A-J<<24|4194304);n.R=K;return 0}},function(n,
-f,l){function h(f,b){if(65534>b&&(f.subarray&&y||!f.subarray&&D))return String.fromCharCode.apply(null,d.shrinkBuf(f,b));for(var a="",h=0;h<b;h++)a+=String.fromCharCode(f[h]);return a}var d=l(3),D=!0,y=!0,v=new d.Buf8(256);for(n=0;256>n;n++)v[n]=252<=n?6:248<=n?5:240<=n?4:224<=n?3:192<=n?2:1;v[254]=v[254]=1;f.string2buf=function(f){var b,a,h=f.length,e=0;for(b=0;b<h;b++){var l=f.charCodeAt(b);if(55296===(l&64512)&&b+1<h){var m=f.charCodeAt(b+1);56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),
-b++)}e+=128>l?1:2048>l?2:65536>l?3:4}var p=new d.Buf8(e);for(b=a=0;a<e;b++)l=f.charCodeAt(b),55296===(l&64512)&&b+1<h&&(m=f.charCodeAt(b+1),56320===(m&64512)&&(l=65536+(l-55296<<10)+(m-56320),b++)),128>l?p[a++]=l:(2048>l?p[a++]=192|l>>>6:(65536>l?p[a++]=224|l>>>12:(p[a++]=240|l>>>18,p[a++]=128|l>>>12&63),p[a++]=128|l>>>6&63),p[a++]=128|l&63);return p};f.yf=function(d){return h(d,d.length)};f.binstring2buf=function(f){for(var b=new d.Buf8(f.length),a=0,h=b.length;a<h;a++)b[a]=f.charCodeAt(a);return b};
-f.buf2string=function(d,b){var a,f=b||d.length,e=Array(2*f);for(b=a=0;b<f;){var l=d[b++];if(128>l)e[a++]=l;else{var m=v[l];if(4<m)e[a++]=65533,b+=m-1;else{for(l&=2===m?31:3===m?15:7;1<m&&b<f;)l=l<<6|d[b++]&63,m--;1<m?e[a++]=65533:65536>l?e[a++]=l:(l-=65536,e[a++]=55296|l>>10&1023,e[a++]=56320|l&1023)}}}return h(e,a)};f.utf8border=function(d,b){var a;b=b||d.length;b>d.length&&(b=d.length);for(a=b-1;0<=a&&128===(d[a]&192);)a--;return 0>a||0===a?b:a+v[d[a]]>b?a:b}},function(n){n.la={Z_NO_FLUSH:0,Se:1,
-Z_SYNC_FLUSH:2,Pe:3,Z_FINISH:4,He:5,We:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Me:-1,Ue:-2,Ie:-3,Z_BUF_ERROR:-5,Re:0,Fe:1,Ee:9,Je:-1,Ne:1,Qe:2,Te:3,Oe:4,Ke:0,Ge:0,Ve:1,Xe:2,Le:8}},function(n){n.la={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(n){n.la=function(){this.input=null;this.rc=this.avail_in=this.next_in=0;this.output=null;this.Ab=this.avail_out=this.next_out=
-0;this.msg="";this.state=null;this.me=2;this.Ma=0}},function(n){n.la=function(){this.ye=this.De=this.time=this.text=0;this.U=null;this.mc=0;this.kc=this.name="";this.re=0;this.done=!1}}]);}).call(this || window)

BIN
public/lib/webviewer/core/assets/1px.png


BIN
public/lib/webviewer/core/assets/dragginghand.cur


BIN
public/lib/webviewer/core/assets/dragginghand.png


BIN
public/lib/webviewer/core/assets/hand.cur


BIN
public/lib/webviewer/core/assets/hand.png


+ 0 - 0
public/lib/webviewer/core/assets/mime-types/test.mem


+ 0 - 0
public/lib/webviewer/core/assets/mime-types/test.res


+ 0 - 0
public/lib/webviewer/core/assets/mime-types/test.wasm


+ 0 - 0
public/lib/webviewer/core/assets/mime-types/test.xod


BIN
public/lib/webviewer/core/assets/zoom-in.cur


BIN
public/lib/webviewer/core/assets/zoom-out.cur


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/contentEdit/InfixServer.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 802
public/lib/webviewer/core/contentEdit/InfixServer.mem


BIN
public/lib/webviewer/core/contentEdit/InfixServer.wasm


+ 0 - 11
public/lib/webviewer/core/contentEdit/InfixServerModule.js

@@ -1,11 +0,0 @@
-(function(){(function(l){function b(d){if(g[d])return g[d].exports;var e=g[d]={i:d,l:!1,exports:{}};l[d].call(e.exports,e,e.exports,b);e.l=!0;return e.exports}var g={};b.m=l;b.c=g;b.d=function(d,e,k){b.o(d,e)||Object.defineProperty(d,e,{enumerable:!0,get:k})};b.r=function(d){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"});Object.defineProperty(d,"__esModule",{value:!0})};b.t=function(d,e){e&1&&(d=b(d));if(e&8||e&4&&"object"===typeof d&&d&&d.__esModule)return d;
-var k=Object.create(null);b.r(k);Object.defineProperty(k,"default",{enumerable:!0,value:d});if(e&2&&"string"!=typeof d)for(var g in d)b.d(k,g,function(e){return d[e]}.bind(null,g));return k};b.n=function(d){var e=d&&d.__esModule?function(){return d["default"]}:function(){return d};b.d(e,"a",e);return e};b.o=function(d,e){return Object.prototype.hasOwnProperty.call(d,e)};b.p="/core/contentEdit";return b(b.s=0)})([function(l,b,g){l.exports=g(1)},function(l,b,g){function d(a,d,c){commandFName="importCommand"+
-c+".xml";FS.writeFile(commandFName,"<InfixServer>"+a+"</InfixServer>");p.ccall("wasmRunXML","number",["string","string"],[commandFName,d]);FS.unlink(commandFName)}function e(){1==r?postMessage({cmd:"isReady"}):setTimeout(e,300)}function k(a,f,c,e,b){f?(c=new Uint8Array(c),f="inputFile"+a+".pdf",FS.writeFile(f,c),e=new Uint8Array(e),e=(new TextDecoder("utf-8")).decode(e),exportedFName="exported"+a+".xml",objectFName="objects"+a+".xml",resultsFName="results"+a+".xml",c='<Commands><Command Name="LoadPDF">'+
-("<File>"+f+"</File></Command>")+'<Command Name="Page BBox"><StartPage>1</StartPage><EndPage>1</EndPage></Command>',""!=e&&(c+='<Command Name="AddTableBoxes">'+e+"</Command>"),c=c+'<Command Name="Translate Export">'+("<File>"+exportedFName+"</File><TransXML>coreTransXML.cfg</TransXML>"),c=c+'<StartPage>1</StartPage><EndPage>1</EndPage></Command><Command Name="Edit Page">'+("<Output>"+objectFName+"</Output><ImagesOnly/></Command>"),d(c,resultsFName,1),n=a,b&&(b=FS.readFile(f).buffer,f=FS.readFile(exportedFName).buffer,
-e=FS.readFile(objectFName).buffer,c=FS.readFile(resultsFName).buffer,FS.unlink(resultsFName),FS.unlink(exportedFName),FS.unlink(objectFName),hasBeenExported=!0,postMessage({cmd:"exportFile",pageNumber:a,exportPerformed:!0,pdfBuffer:b,exportXML:f,objectXML:e,resultsXML:c},[b,f,c]))):postMessage({cmd:"exportFile",pageNumber:a,exportPerformed:!1})}var r=!1,n=-1,p={noInitialRun:!0,onRuntimeInitialized:function(){r=!0}};self.Module=p;importScripts("InfixServer.js");onmessage=function(a){a=a.data;switch(a.cmd){case "isReady":e();
-break;case "initialiseInfixServer":a=a.l;p.callMain([""]);p.ccall("wasmInitInfixServer","number",["string","string","string"],["infixcore.cfg",a,"results"]);a=FS.readFile("results").buffer;postMessage({cmd:"initialiseInfixServer",resultsXML:a},[a]);break;case "exportFile":k(a.pageNumber,a.performExport,a.pdfFile,a.tableData,!0);break;case "importText":var f=a.pdfFile,c=a.pageNumber,b=a.webFontURL,g=a.galleyId,m=a.tableData;a=new Uint8Array(a.importData);var h=(new TextDecoder("utf-8")).decode(a);
-c!=n&&k(c,!0,f,m,!1);a="editText"+c+".xml";FS.writeFile(a,h);f="outputFile"+c+".pdf";m=resultsFName="results"+c+".xml";h='<Commands><Command Name="Translate Import">'+("<File>"+a+"</File><StartPage>1</StartPage><EndPage>LastPage</EndPage>")+'<AutoSubstitute/><AutoDeleteParas/><Fitting><Shrink><FontSize Min="0.65">true</FontSize><Leading>False</Leading></Shrink><Stretch><FontSize>False</FontSize>';h+="<Leading>False</Leading></Stretch></Fitting>";h+="<ResetLetterSpacing/><IgnoreFlightCheck/>";h+="<MissingFont>Noto Sans Regular</MissingFont><SubstituteAllChars/>";
-h+="<WebFontURL>"+b+"</WebFontURL>";h+="<TargetLang>en</TargetLang></Command>";h+='<Command Name="SavePDF"><File>'+f+"</File></Command>";h+='<Command Name="DumpObjectBBox"><GID>'+g+"</GID></Command></Commands>";d(h,m,c);b=FS.readFile(f).buffer;m=FS.readFile(resultsFName).buffer;FS.unlink(f);FS.unlink(resultsFName);FS.unlink(a);postMessage({cmd:"importText",pageNumber:c,pdfBuffer:b,resultsXML:m,id:g},[b,m]);break;case "transformObject":c=a.pageNumber;g=a.objectID;var l=a.isText;b=a.topVal;f=a.leftVal;
-m=a.bottomVal;h=a.rightVal;var q='<Commands><Command Name="TransformToRect">';c!=n&&k(c,!0,a.pdfFile,a.tableData,!1);a="outputFile"+c+".pdf";resultsFName="results"+c+".xml";l=!0===l?"<GID>"+g+"</GID>":"<OID>"+g+"</OID>";q=q+l+("<Rect><Top>"+b+"</Top><Left>"+f+"</Left>")+("<Bottom>"+m+"</Bottom><Right>"+h+"</Right></Rect></Command>");q+='<Command Name="SavePDF"><File>'+a+"</File></Command>";d(q+('<Command Name="DumpObjectBBox">'+l+"</Command></Commands>"),resultsFName,c);b=FS.readFile(a).buffer;f=
-FS.readFile(resultsFName).buffer;FS.unlink(a);FS.unlink(resultsFName);postMessage({cmd:"transformObject",pageNumber:c,pdfBuffer:b,resultsXML:f,id:g},[b,f]);break;case "deleteObject":c=a.pageNumber,g=a.objectID,b=a.isText,c!=n&&k(c,!0,a.pdfFile,a.tableData,!1),a="outputFile"+c+".pdf",resultsFName="results"+c+".xml",f='<Commands><Command Name="DeleteObject">',f=(!0===b?f+("<GID>"+g+"</GID></Command>"):f+("<OID>"+g+"</OID></Command>"))+('<Command Name="SavePDF"><File>'+a+"</File>")+"</Command></Commands>",
-d(f,resultsFName,c),b=FS.readFile(a).buffer,f=FS.readFile(resultsFName).buffer,FS.unlink(a),FS.unlink(resultsFName),postMessage({cmd:"deleteObject",pageNumber:c,pdfBuffer:b,resultsXML:f,id:g},[b,f])}}}]);}).call(this || window)

+ 0 - 341
public/lib/webviewer/core/external/Promise.js

@@ -1,341 +0,0 @@
-(function(global) {
-  global.createPromiseCapability = function() {
-    var promiseCapability = {};
-    var promise = new Promise(function(resolve, reject) {
-      promiseCapability.resolve = resolve;
-      promiseCapability.reject = reject;
-    });
-    promiseCapability.promise = promise;
-    return promiseCapability;
-  };
-
-  //
-  // Check for native Promise and it has correct interface
-  //
-
-  var NativePromise = global['Promise'];
-  var nativePromiseSupported =
-    NativePromise &&
-    // Some of these methods are missing from
-    // Firefox/Chrome experimental implementations
-    'resolve' in NativePromise &&
-    'reject' in NativePromise &&
-    'all' in NativePromise &&
-    'race' in NativePromise &&
-    // Older version of the spec had a resolver object
-    // as the arg rather than a function
-    (function() {
-      var resolve;
-      new NativePromise(function(r) {
-        resolve = r;
-      });
-      return typeof resolve === 'function';
-    })();
-
-
-  //
-  // export if necessary
-  //
-
-  if (typeof exports !== 'undefined' && exports) {
-    // node.js
-    exports.Promise = nativePromiseSupported ? NativePromise : Promise;
-    exports.Polyfill = Promise;
-  } else {
-    // AMD
-    if (typeof define == 'function' && define.amd) {
-      define(function() {
-        return nativePromiseSupported ? NativePromise : Promise;
-      });
-    } else {
-      // in browser add to global
-      if (!nativePromiseSupported)
-        global['Promise'] = Promise;
-    }
-  }
-
-
-  //
-  // Polyfill
-  //
-
-  var PENDING = 'pending';
-  var SEALED = 'sealed';
-  var FULFILLED = 'fulfilled';
-  var REJECTED = 'rejected';
-  var NOOP = function() {};
-
-  function isArray(value) {
-    return Object.prototype.toString.call(value) === '[object Array]';
-  }
-
-  // async calls
-  var asyncSetTimer = typeof setImmediate !== 'undefined' ? setImmediate : setTimeout;
-  var asyncQueue = [];
-  var asyncTimer;
-
-  function asyncFlush() {
-    // run promise callbacks
-    for (var i = 0; i < asyncQueue.length; i++)
-      asyncQueue[i][0](asyncQueue[i][1]);
-
-    // reset async asyncQueue
-    asyncQueue = [];
-    asyncTimer = false;
-  }
-
-  function asyncCall(callback, arg) {
-    asyncQueue.push([callback, arg]);
-
-    if (!asyncTimer) {
-      asyncTimer = true;
-      asyncSetTimer(asyncFlush, 0);
-    }
-  }
-
-
-  function invokeResolver(resolver, promise) {
-    function resolvePromise(value) {
-      resolve(promise, value);
-    }
-
-    function rejectPromise(reason) {
-      reject(promise, reason);
-    }
-
-    try {
-      resolver(resolvePromise, rejectPromise);
-    } catch (e) {
-      rejectPromise(e);
-    }
-  }
-
-  function invokeCallback(subscriber) {
-    var owner = subscriber.owner;
-    var settled = owner.state_;
-    var value = owner.data_;
-    var callback = subscriber[settled];
-    var promise = subscriber.then;
-
-    if (typeof callback === 'function') {
-      settled = FULFILLED;
-      try {
-        value = callback(value);
-      } catch (e) {
-        reject(promise, e);
-      }
-    }
-
-    if (!handleThenable(promise, value)) {
-      if (settled === FULFILLED)
-        resolve(promise, value);
-
-      if (settled === REJECTED)
-        reject(promise, value);
-    }
-  }
-
-  function handleThenable(promise, value) {
-    var resolved;
-
-    try {
-      if (promise === value)
-        throw new TypeError('A promises callback cannot return that same promise.');
-
-      if (value && (typeof value === 'function' || typeof value === 'object')) {
-        var then = value.then; // then should be retrived only once
-
-        if (typeof then === 'function') {
-          then.call(value, function(val) {
-            if (!resolved) {
-              resolved = true;
-
-              if (value !== val)
-                resolve(promise, val);
-              else
-                fulfill(promise, val);
-            }
-          }, function(reason) {
-            if (!resolved) {
-              resolved = true;
-
-              reject(promise, reason);
-            }
-          });
-
-          return true;
-        }
-      }
-    } catch (e) {
-      if (!resolved)
-        reject(promise, e);
-
-      return true;
-    }
-
-    return false;
-  }
-
-  function resolve(promise, value) {
-    if (promise === value || !handleThenable(promise, value))
-      fulfill(promise, value);
-  }
-
-  function fulfill(promise, value) {
-    if (promise.state_ === PENDING) {
-      promise.state_ = SEALED;
-      promise.data_ = value;
-
-      asyncCall(publishFulfillment, promise);
-    }
-  }
-
-  function reject(promise, reason) {
-    if (promise.state_ === PENDING) {
-      promise.state_ = SEALED;
-      promise.data_ = reason;
-
-      asyncCall(publishRejection, promise);
-    }
-  }
-
-  function publish(promise) {
-    var callbacks = promise.then_;
-    promise.then_ = undefined;
-
-    for (var i = 0; i < callbacks.length; i++) {
-      invokeCallback(callbacks[i]);
-    }
-  }
-
-  function publishFulfillment(promise) {
-    promise.state_ = FULFILLED;
-    publish(promise);
-  }
-
-  function publishRejection(promise) {
-    promise.state_ = REJECTED;
-    publish(promise);
-  }
-
-  /**
-   * @class
-   */
-  function Promise(resolver) {
-    if (typeof resolver !== 'function')
-      throw new TypeError('Promise constructor takes a function argument');
-
-    if (this instanceof Promise === false)
-      throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
-
-    this.then_ = [];
-
-    invokeResolver(resolver, this);
-  }
-
-  Promise.prototype = {
-    constructor: Promise,
-
-    state_: PENDING,
-    then_: null,
-    data_: undefined,
-
-    then: function(onFulfillment, onRejection) {
-      var subscriber = {
-        owner: this,
-        then: new this.constructor(NOOP),
-        fulfilled: onFulfillment,
-        rejected: onRejection
-      };
-
-      if (this.state_ === FULFILLED || this.state_ === REJECTED) {
-        // already resolved, call callback async
-        asyncCall(invokeCallback, subscriber);
-      } else {
-        // subscribe
-        this.then_.push(subscriber);
-      }
-
-      return subscriber.then;
-    },
-
-    'catch': function(onRejection) {
-      return this.then(null, onRejection);
-    }
-  };
-
-  Promise.all = function(promises) {
-    var Class = this;
-
-    if (!isArray(promises))
-      throw new TypeError('You must pass an array to Promise.all().');
-
-    return new Class(function(resolve, reject) {
-      var results = [];
-      var remaining = 0;
-
-      function resolver(index) {
-        remaining++;
-        return function(value) {
-          results[index] = value;
-          if (!--remaining)
-            resolve(results);
-        };
-      }
-
-      for (var i = 0, promise; i < promises.length; i++) {
-        promise = promises[i];
-
-        if (promise && typeof promise.then === 'function')
-          promise.then(resolver(i), reject);
-        else
-          results[i] = promise;
-      }
-
-      if (!remaining)
-        resolve(results);
-    });
-  };
-
-  Promise.race = function(promises) {
-    var Class = this;
-
-    if (!isArray(promises))
-      throw new TypeError('You must pass an array to Promise.race().');
-
-    return new Class(function(resolve, reject) {
-      for (var i = 0, promise; i < promises.length; i++) {
-        promise = promises[i];
-
-        if (promise && typeof promise.then === 'function')
-          promise.then(resolve, reject);
-        else
-          resolve(promise);
-      }
-    });
-  };
-
-  Promise.resolve = function(value) {
-    var Class = this;
-
-    if (value && typeof value === 'object' && value.constructor === Class)
-      return value;
-
-    return new Class(function(resolve) {
-      resolve(value);
-    });
-  };
-
-  Promise.reject = function(reason) {
-    var Class = this;
-
-    return new Class(function(resolve, reject) {
-      reject(reason);
-    });
-  };
-
-  if (!nativePromiseSupported) {
-    global.Promise = Promise;
-  }
-
-})(typeof window != 'undefined' ? window : typeof global != 'undefined' ? global : typeof self != 'undefined' ? self : this);

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 65
public/lib/webviewer/core/external/decode.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 80
public/lib/webviewer/core/external/model-viewer-1.3.0.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 109
public/lib/webviewer/core/external/model-viewer-legacy-1.3.0.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 1
public/lib/webviewer/core/external/pako_inflate.min.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/external/pikaday.css


+ 0 - 105
public/lib/webviewer/core/external/pikaday.override.css

@@ -1,105 +0,0 @@
-.pika-lendar {
-  float: left;
-  width: 220px;
-  padding: 8px;
-  margin: 0;
-}
-
-.pika-table abbr {
-  text-decoration: none!important;
-}
-
-.pika-single.is-bound {
-  border-radius: 4px;
-  box-shadow: 0px 5px 10px -5px #868e96;
-}
-.pika-title {
-  color: #485056;
-  font-family: Lato;
-  font-style: normal;
-  font-weight: bold;
-  font-size: 13px;
-  line-height: 16px;
-}
-
-.is-rtl .pika-next,
-.pika-prev {
-  float: left;
-  opacity: 1;
-  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23868E96;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Eicon - chevron - left%3C/title%3E%3Cpath class='cls-1' d='M7.5,2l-4,4,4,4,1-1-3-3,3-3Z'/%3E%3C/svg%3E");
-}
-
-.is-rtl .pika-prev,
-.pika-next {
-  float: right;
-  opacity: 1;
-  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23868E96;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Eicon - chevron - right%3C/title%3E%3Cpath class='cls-1' d='M4.5,10l4-4-4-4-1,1,3,3-3,3Z'/%3E%3C/svg%3E");
-}
-.pika-next:hover, .pika-prev:hover {
-  opacity: 0.5;
-}
-
-
-.pika-row .pika-button {
-  margin: 0 auto;
-  background: none;
-  padding: 4px;
-  text-align: center;
-  font-size: 13px;
-  line-height: 16px;
-  color: #868E96;
-  font-family: Lato;
-  font-style: normal;
-  font-weight: normal;
-  width: 28px;
-  height: 23px;
-}
-
-.is-today .pika-button {
-  background: #E7EDF3;
-  color: #868E96;
-  border-radius: 4px;
-  font-weight: 700;
-}
-
-.has-event .pika-button,
-.is-selected .pika-button {
-  color: #fff;
-  background: #3183C8;
-  border-radius: 4px;
-  box-shadow: none;
-}
-
-.pika-table th {
-  color: #999;
-  font-size: 12px;
-  line-height: 25px;
-  font-weight: 700;
-  text-align: center;
-}
-
-.pika-label {
-  font-family: Lato;
-  font-style: normal;
-  font-weight: bold;
-  font-size: 13px;
-  line-height: 16px;
-  text-align: center;
-  color: #485056;
-}
-
-.pika-table td,
-.pika-table th {
-  width: 10%;
-  padding: 0;
-}
-
-.pika-set-today {
-  padding: 5px 15px;
-  width: auto;
-}
-
-button.pika-set-today:disabled,
-button.pika-set-today[disabled]{
-  opacity: 0.5;
-}

+ 0 - 1
public/lib/webviewer/core/external/quill.css

@@ -1 +0,0 @@
-.ql-container{margin:0}.ql-container .ql-editor{height:100%;outline:0;overflow-x:hidden;overflow-y:auto;-moz-tab-size:4;-o-tab-size:4;tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word;-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}.ql-container .ql-editor p{margin:0;padding:0}.ql-container .ql-editor>*{cursor:text}.ql-clipboard{position:fixed;height:1px;top:50%;left:50%;overflow-y:hidden}.ql-clipboard p{margin:0;padding:0}_:-ms-fullscreen, :root .ql-clipboard{position:absolute} .ql-blank {width: 1px}

+ 0 - 370
public/lib/webviewer/core/external/webcomponents-bundle.js

@@ -1,370 +0,0 @@
-/**
-@license @nocompile
-Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-(function(){/*
-
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found
- at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
- be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
- Google as part of the polymer project is also subject to an additional IP
- rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-'use strict';var v;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ca="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
-function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this);function ia(a,b){if(b)a:{var c=ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ca(c,a,{configurable:!0,writable:!0,value:b})}}
-ia("Symbol",function(a){function b(e){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c("jscomp_symbol_"+(e||"")+"_"+d++,e)}function c(e,f){this.g=e;ca(this,"description",{configurable:!0,writable:!0,value:f})}if(a)return a;c.prototype.toString=function(){return this.g};var d=0;return b});
-ia("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=ea[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ca(d.prototype,a,{configurable:!0,writable:!0,value:function(){return ja(ba(this))}})}return a});function ja(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}
-function ka(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function x(a){if(!(a instanceof Array)){a=ka(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ma;if("function"==typeof Object.setPrototypeOf)ma=Object.setPrototypeOf;else{var na;a:{var oa={a:!0},pa={};try{pa.__proto__=oa;na=pa.a;break a}catch(a){}na=!1}ma=na?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
-var qa=ma;function ra(){this.u=!1;this.h=null;this.Ka=void 0;this.g=1;this.da=0;this.i=null}function ua(a){if(a.u)throw new TypeError("Generator is already running");a.u=!0}ra.prototype.O=function(a){this.Ka=a};function xa(a,b){a.i={Wa:b,$a:!0};a.g=a.da}ra.prototype.return=function(a){this.i={return:a};this.g=this.da};function ya(a,b){a.g=3;return{value:b}}function za(a){this.g=new ra;this.h=a}
-function Aa(a,b){ua(a.g);var c=a.g.h;if(c)return Ba(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Ca(a)}function Ba(a,b,c,d){try{var e=b.call(a.g.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.u=!1,e;var f=e.value}catch(g){return a.g.h=null,xa(a.g,g),Ca(a)}a.g.h=null;d.call(a.g,f);return Ca(a)}
-function Ca(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.u=!1,{value:b.value,done:!1}}catch(c){a.g.Ka=void 0,xa(a.g,c)}a.g.u=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.$a)throw b.Wa;return{value:b.return,done:!0}}return{value:void 0,done:!0}}
-function Da(a){this.next=function(b){ua(a.g);a.g.h?b=Ba(a,a.g.h.next,b,a.g.O):(a.g.O(b),b=Ca(a));return b};this.throw=function(b){ua(a.g);a.g.h?b=Ba(a,a.g.h["throw"],b,a.g.O):(xa(a.g,b),b=Ca(a));return b};this.return=function(b){return Aa(a,b)};this[Symbol.iterator]=function(){return this}}function Ea(a,b){b=new Da(new za(b));qa&&a.prototype&&qa(b,a.prototype);return b}Array.from||(Array.from=function(a){return[].slice.call(a)});
-Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=Object.keys(d),g=0;g<f.length;g++){var h=f[g];e[h]=d[h]}return a});var Fa=setTimeout;function Ga(){}function Ha(a,b){return function(){a.apply(b,arguments)}}function A(a){if(!(this instanceof A))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.N=0;this.Ea=!1;this.I=void 0;this.ba=[];Ia(a,this)}
-function Ja(a,b){for(;3===a.N;)a=a.I;0===a.N?a.ba.push(b):(a.Ea=!0,Ka(function(){var c=1===a.N?b.bb:b.cb;if(null===c)(1===a.N?La:Ma)(b.promise,a.I);else{try{var d=c(a.I)}catch(e){Ma(b.promise,e);return}La(b.promise,d)}}))}
-function La(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof A){a.N=3;a.I=b;Na(a);return}if("function"===typeof c){Ia(Ha(c,b),a);return}}a.N=1;a.I=b;Na(a)}catch(d){Ma(a,d)}}function Ma(a,b){a.N=2;a.I=b;Na(a)}
-function Na(a){2===a.N&&0===a.ba.length&&Ka(function(){a.Ea||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.I)});for(var b=0,c=a.ba.length;b<c;b++)Ja(a,a.ba[b]);a.ba=null}function Oa(a,b,c){this.bb="function"===typeof a?a:null;this.cb="function"===typeof b?b:null;this.promise=c}function Ia(a,b){var c=!1;try{a(function(d){c||(c=!0,La(b,d))},function(d){c||(c=!0,Ma(b,d))})}catch(d){c||(c=!0,Ma(b,d))}}
-A.prototype["catch"]=function(a){return this.then(null,a)};A.prototype.then=function(a,b){var c=new this.constructor(Ga);Ja(this,new Oa(a,b,c));return c};A.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
-function Pa(a){return new A(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var l=k.then;if("function"===typeof l){l.call(k,function(m){d(h,m)},c);return}}e[h]=k;0===--f&&b(e)}catch(m){c(m)}}if(!a||"undefined"===typeof a.length)return c(new TypeError("Promise.all accepts an array"));var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
-function Qa(a){return a&&"object"===typeof a&&a.constructor===A?a:new A(function(b){b(a)})}function Ra(a){return new A(function(b,c){c(a)})}function Sa(a){return new A(function(b,c){if(!a||"undefined"===typeof a.length)return c(new TypeError("Promise.race accepts an array"));for(var d=0,e=a.length;d<e;d++)Qa(a[d]).then(b,c)})}var Ka="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){Fa(a,0)};/*
-
-Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at
-http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
-http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
-found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
-part of the polymer project is also subject to an additional IP rights grant
-found at http://polymer.github.io/PATENTS.txt
-*/
-if(!window.Promise){window.Promise=A;A.prototype.then=A.prototype.then;A.all=Pa;A.race=Sa;A.resolve=Qa;A.reject=Ra;var Ta=document.createTextNode(""),Va=[];(new MutationObserver(function(){for(var a=Va.length,b=0;b<a;b++)Va[b]();Va.splice(0,a)})).observe(Ta,{characterData:!0});Ka=function(a){Va.push(a);Ta.textContent=0<Ta.textContent.length?"":"a"}};/*
- Copyright (C) 2015 by WebReflection
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-
-*/
-(function(a,b){if(!(b in a)){var c=typeof global===typeof c?window:global,d=0,e=String(Math.random()),f="__\u0001symbol@@"+e,g=a.getOwnPropertyNames,h=a.getOwnPropertyDescriptor,k=a.create,l=a.keys,m=a.freeze||a,q=a.defineProperty,H=a.defineProperties,C=h(a,"getOwnPropertyNames"),t=a.prototype,F=t.hasOwnProperty,E=t.propertyIsEnumerable,M=t.toString,y=function(I,u,G){F.call(I,f)||q(I,f,{enumerable:!1,configurable:!1,writable:!1,value:{}});I[f]["@@"+u]=G},W=function(I,u){var G=k(I);g(u).forEach(function(p){sa.call(u,
-p)&&Ua(G,p,u[p])});return G},w=function(){},ta=function(I){return I!=f&&!F.call(fa,I)},ha=function(I){return I!=f&&F.call(fa,I)},sa=function(I){var u=String(I);return ha(u)?F.call(this,u)&&!!this[f]&&this[f]["@@"+u]:E.call(this,I)},n=function(I){q(t,I,{enumerable:!1,configurable:!0,get:w,set:function(u){wa(this,I,{enumerable:!1,configurable:!0,writable:!0,value:u});y(this,I,!0)}});fa[I]=q(a(I),"constructor",gc);return m(fa[I])},J=function G(u){if(this instanceof G)throw new TypeError("Symbol is not a constructor");
-return n("__\u0001symbol:".concat(u||"",e,++d))},fa=k(null),gc={value:J},fb=function(u){return fa[u]},Ua=function(u,G,p){var r=String(G);if(ha(r)){G=wa;if(p.enumerable){var B=k(p);B.enumerable=!1}else B=p;G(u,r,B);y(u,r,!!p.enumerable)}else q(u,G,p);return u},gb=function(u){return g(u).filter(ha).map(fb)};C.value=Ua;q(a,"defineProperty",C);C.value=gb;q(a,b,C);C.value=function(u){return g(u).filter(ta)};q(a,"getOwnPropertyNames",C);C.value=function(u,G){var p=gb(G);p.length?l(G).concat(p).forEach(function(r){sa.call(G,
-r)&&Ua(u,r,G[r])}):H(u,G);return u};q(a,"defineProperties",C);C.value=sa;q(t,"propertyIsEnumerable",C);C.value=J;q(c,"Symbol",C);C.value=function(u){u="__\u0001symbol:".concat("__\u0001symbol:",u,e);return u in t?fa[u]:n(u)};q(J,"for",C);C.value=function(u){if(ta(u))throw new TypeError(u+" is not a symbol");if(F.call(fa,u)&&(u=u.slice(10),"__\u0001symbol:"===u.slice(0,10)&&(u=u.slice(10),u!==e)))return u=u.slice(0,u.length-e.length),0<u.length?u:void 0};q(J,"keyFor",C);C.value=function(u,G){var p=
-h(u,G);p&&ha(G)&&(p.enumerable=sa.call(u,G));return p};q(a,"getOwnPropertyDescriptor",C);C.value=function(u,G){return 1===arguments.length||"undefined"===typeof G?k(u):W(u,G)};q(a,"create",C);C.value=function(){var u=M.call(this);return"[object String]"===u&&ha(this)?"[object Symbol]":u};q(t,"toString",C);try{if(!0===k(q({},"__\u0001symbol:",{get:function(){return q(this,"__\u0001symbol:",{value:!0})["__\u0001symbol:"]}}))["__\u0001symbol:"])var wa=q;else throw"IE11";}catch(u){wa=function(G,p,r){var B=
-h(t,p);delete t[p];q(G,p,r);q(t,p,B)}}}})(Object,"getOwnPropertySymbols");
-(function(a,b){var c=a.defineProperty,d=a.prototype,e=d.toString,f;"iterator match replace search split hasInstance isConcatSpreadable unscopables species toPrimitive toStringTag".split(" ").forEach(function(g){g in b||(c(b,g,{value:b(g)}),"toStringTag"===g&&(f=a.getOwnPropertyDescriptor(d,"toString"),f.value=function(){var h=e.call(this),k=null==this?this:this[b.toStringTag];return null==k?h:"[object "+k+"]"},c(d,"toString",f)))})})(Object,Symbol);
-(function(a,b,c){function d(){return this}b[a]||(b[a]=function(){var e=0,f=this,g={next:function(){var h=f.length<=e;return h?{done:h}:{done:h,value:f[e++]}}};g[a]=d;return g});c[a]||(c[a]=function(){var e=String.fromCodePoint,f=this,g=0,h=f.length,k={next:function(){var l=h<=g,m=l?"":e(f.codePointAt(g));g+=m.length;return l?{done:l}:{done:l,value:m}}};k[a]=d;return k})})(Symbol.iterator,Array.prototype,String.prototype);/*
-
-Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at
-http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
-http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
-found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
-part of the polymer project is also subject to an additional IP rights grant
-found at http://polymer.github.io/PATENTS.txt
-*/
-var Wa=Object.prototype.toString;Object.prototype.toString=function(){return void 0===this?"[object Undefined]":null===this?"[object Null]":Wa.call(this)};Object.keys=function(a){return Object.getOwnPropertyNames(a).filter(function(b){return(b=Object.getOwnPropertyDescriptor(a,b))&&b.enumerable})};
-String.prototype[Symbol.iterator]&&String.prototype.codePointAt||(String.prototype[Symbol.iterator]=function Xa(){var b,c=this;return Ea(Xa,function(d){1==d.g&&(b=0);if(3!=d.g)return b<c.length?d=ya(d,c[b]):(d.g=0,d=void 0),d;b++;d.g=2})});Set.prototype[Symbol.iterator]||(Set.prototype[Symbol.iterator]=function Ya(){var b,c=this,d;return Ea(Ya,function(e){1==e.g&&(b=[],c.forEach(function(f){b.push(f)}),d=0);if(3!=e.g)return d<b.length?e=ya(e,b[d]):(e.g=0,e=void 0),e;d++;e.g=2})});
-Map.prototype[Symbol.iterator]||(Map.prototype[Symbol.iterator]=function Za(){var b,c=this,d;return Ea(Za,function(e){1==e.g&&(b=[],c.forEach(function(f,g){b.push([g,f])}),d=0);if(3!=e.g)return d<b.length?e=ya(e,b[d]):(e.g=0,e=void 0),e;d++;e.g=2})});/*
-
-Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-var $a=document.createEvent("Event");$a.initEvent("foo",!0,!0);$a.preventDefault();if(!$a.defaultPrevented){var ab=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(ab.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var bb=/Trident/.test(navigator.userAgent);
-if(!window.Event||bb&&"function"!==typeof window.Event){var cb=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(cb){for(var db in cb)window.Event[db]=cb[db];window.Event.prototype=cb.prototype}}
-if(!window.CustomEvent||bb&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;
-if(!window.MouseEvent||bb&&"function"!==typeof window.MouseEvent){var eb=window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(eb)for(var hb in eb)window.MouseEvent[hb]=eb[hb];window.MouseEvent.prototype=eb.prototype};Object.getOwnPropertyDescriptor(Node.prototype,"baseURI")||Object.defineProperty(Node.prototype,"baseURI",{get:function(){var a=(this.ownerDocument||this).querySelector("base[href]");return a&&a.href||window.location.href},configurable:!0,enumerable:!0});/*
-
-Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at
-http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
-http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
-found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
-part of the polymer project is also subject to an additional IP rights grant
-found at http://polymer.github.io/PATENTS.txt
-*/
-var ib,jb,kb=Element.prototype,nb=null!==(ib=Object.getOwnPropertyDescriptor(kb,"attributes"))&&void 0!==ib?ib:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),ob=null!==(jb=null===nb||void 0===nb?void 0:nb.get)&&void 0!==jb?jb:function(){return this.attributes},pb=Array.prototype.map;kb.hasOwnProperty("getAttributeNames")||(kb.getAttributeNames=function(){return pb.call(ob.call(this),function(a){return a.name})});var qb,rb=Element.prototype;rb.hasOwnProperty("matches")||(rb.matches=null!==(qb=rb.webkitMatchesSelector)&&void 0!==qb?qb:rb.msMatchesSelector);var sb=Node.prototype.appendChild;function tb(a){a=a.prototype;a.hasOwnProperty("append")||Object.defineProperty(a,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];c=ka(c);for(d=c.next();!d.done;d=c.next())d=d.value,sb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}tb(Document);tb(DocumentFragment);tb(Element);var ub,vb,wb=Node.prototype.insertBefore,xb=null!==(vb=null===(ub=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===ub?void 0:ub.get)&&void 0!==vb?vb:function(){return this.firstChild};
-function yb(a){a=a.prototype;a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=xb.call(this);c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,wb.call(this,"string"===typeof e?document.createTextNode(e):e,d)}})}yb(Document);yb(DocumentFragment);yb(Element);var zb,Ab,Bb=Node.prototype.appendChild,Cb=Node.prototype.removeChild,Db=null!==(Ab=null===(zb=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===zb?void 0:zb.get)&&void 0!==Ab?Ab:function(){return this.firstChild};
-function Eb(a){a=a.prototype;a.hasOwnProperty("replaceChildren")||Object.defineProperty(a,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];for(;null!==(d=Db.call(this));)Cb.call(this,d);c=ka(c);for(d=c.next();!d.done;d=c.next())d=d.value,Bb.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Eb(Document);Eb(DocumentFragment);Eb(Element);var Fb,Gb,Hb,Ib,Jb=Node.prototype.insertBefore,Kb=null!==(Gb=null===(Fb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Fb?void 0:Fb.get)&&void 0!==Gb?Gb:function(){return this.parentNode},Lb=null!==(Ib=null===(Hb=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Hb?void 0:Hb.get)&&void 0!==Ib?Ib:function(){return this.nextSibling};
-function Mb(a){a=a.prototype;a.hasOwnProperty("after")||Object.defineProperty(a,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=Kb.call(this);if(null!==d){var e=Lb.call(this);c=ka(c);for(var f=c.next();!f.done;f=c.next())f=f.value,Jb.call(d,"string"===typeof f?document.createTextNode(f):f,e)}}})}Mb(CharacterData);Mb(Element);var Nb,Ob,Pb=Node.prototype.insertBefore,Qb=null!==(Ob=null===(Nb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Nb?void 0:Nb.get)&&void 0!==Ob?Ob:function(){return this.parentNode};
-function Rb(a){a=a.prototype;a.hasOwnProperty("before")||Object.defineProperty(a,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=Qb.call(this);if(null!==d){c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Pb.call(d,"string"===typeof e?document.createTextNode(e):e,this)}}})}Rb(CharacterData);Rb(Element);var Sb,Tb,Ub=Node.prototype.removeChild,Vb=null!==(Tb=null===(Sb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Sb?void 0:Sb.get)&&void 0!==Tb?Tb:function(){return this.parentNode};function Wb(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=Vb.call(this);b&&Ub.call(b,this)}})}Wb(CharacterData);Wb(Element);var Xb,Yb,Zb=Node.prototype.insertBefore,$b=Node.prototype.removeChild,ac=null!==(Yb=null===(Xb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Xb?void 0:Xb.get)&&void 0!==Yb?Yb:function(){return this.parentNode};
-function bc(a){a=a.prototype;a.hasOwnProperty("replaceWith")||Object.defineProperty(a,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=ac.call(this);if(null!==d){c=ka(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Zb.call(d,"string"===typeof e?document.createTextNode(e):e,this);$b.call(d,this)}}})}bc(CharacterData);bc(Element);var cc=window.Element.prototype,dc=window.HTMLElement.prototype,ec=window.SVGElement.prototype;!dc.hasOwnProperty("classList")||cc.hasOwnProperty("classList")||ec.hasOwnProperty("classList")||Object.defineProperty(cc,"classList",Object.getOwnPropertyDescriptor(dc,"classList"));/*
-
- Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found
- at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
- be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
- Google as part of the polymer project is also subject to an additional IP
- rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-var fc=document.createElement("style");fc.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var hc=document.querySelector("head");hc.insertBefore(fc,hc.firstChild);var ic=window;ic.WebComponents=ic.WebComponents||{flags:{}};var jc=document.querySelector('script[src*="webcomponents-bundle"]'),kc=/wc-(.+)/,lc={};if(!lc.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(kc))&&(lc[b[1]]=a[1]||!0)});if(jc)for(var mc=0,nc=void 0;nc=jc.attributes[mc];mc++)"src"!==nc.name&&(lc[nc.name]=nc.value||!0);var oc={};lc.log&&lc.log.split&&lc.log.split(",").forEach(function(a){oc[a]=!0});lc.log=oc}
-ic.WebComponents.flags=lc;var pc=lc.shadydom;if(pc){ic.ShadyDOM=ic.ShadyDOM||{};ic.ShadyDOM.force=pc;var qc=lc.noPatch;ic.ShadyDOM.noPatch="true"===qc?!0:qc}var rc=lc.register||lc.ce;rc&&window.customElements&&(ic.customElements.forcePolyfill=rc);/*
-
- Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
- Code distributed by Google as part of the polymer project is also
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-(function(){function a(){}function b(p,r){if(!p.childNodes.length)return[];switch(p.nodeType){case Node.DOCUMENT_NODE:return F.call(p,r);case Node.DOCUMENT_FRAGMENT_NODE:return E.call(p,r);default:return t.call(p,r)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function p(z,R){if(z instanceof DocumentFragment)for(var lb;lb=z.firstChild;)B.call(this,lb,R);else B.call(this,
-z,R);return z}e=!0;var r=Node.prototype.cloneNode;Node.prototype.cloneNode=function(z){z=r.call(this,z);this instanceof DocumentFragment&&(z.__proto__=DocumentFragment.prototype);return z};DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll;DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector;Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},
-configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var B=Node.prototype.insertBefore;Node.prototype.insertBefore=p;var K=Node.prototype.appendChild;Node.prototype.appendChild=function(z){z instanceof DocumentFragment?p.call(this,z,null):K.call(this,z);return z};var aa=Node.prototype.removeChild,la=Node.prototype.replaceChild;Node.prototype.replaceChild=function(z,R){z instanceof DocumentFragment?(p.call(this,z,R),aa.call(this,R)):la.call(this,z,R);return R};Document.prototype.createDocumentFragment=
-function(){var z=this.createElement("df");z.__proto__=DocumentFragment.prototype;return z};var va=Document.prototype.importNode;Document.prototype.importNode=function(z,R){R=va.call(this,z,R||!1);z instanceof DocumentFragment&&(R.__proto__=DocumentFragment.prototype);return R}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,l=Node.prototype.appendChild,m=Node.prototype.replaceChild,q=DOMParser.prototype.parseFromString,
-H=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(p){this.innerHTML=p}},C=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},t=Element.prototype.querySelectorAll,F=Document.prototype.querySelectorAll,E=DocumentFragment.prototype.querySelectorAll,M=function(){if(!c){var p=document.createElement("template"),r=document.createElement("template");r.content.appendChild(document.createElement("div"));
-p.content.appendChild(r);p=p.cloneNode(!0);return 0===p.content.childNodes.length||0===p.content.firstChild.content.childNodes.length||d}}();if(c){var y=document.implementation.createHTMLDocument("template"),W=!0,w=document.createElement("style");w.textContent="template{display:none;}";var ta=document.head;ta.insertBefore(w,ta.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var ha=!document.createElement("div").hasOwnProperty("innerHTML");a.Z=function(p){if(!p.content&&p.namespaceURI===
-document.documentElement.namespaceURI){p.content=y.createDocumentFragment();for(var r;r=p.firstChild;)l.call(p.content,r);if(ha)p.__proto__=a.prototype;else if(p.cloneNode=function(B){return a.sa(this,B)},W)try{n(p),J(p)}catch(B){W=!1}a.bootstrap(p.content)}};var sa={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},n=function(p){Object.defineProperty(p,"innerHTML",{get:function(){return wa(this)},set:function(r){var B=
-sa[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(r)||["",""])[1].toLowerCase()];if(B)for(var K=0;K<B.length;K++)r="<"+B[K]+">"+r+"</"+B[K]+">";y.body.innerHTML=r;for(a.bootstrap(y);this.content.firstChild;)k.call(this.content,this.content.firstChild);r=y.body;if(B)for(K=0;K<B.length;K++)r=r.lastChild;for(;r.firstChild;)l.call(this.content,r.firstChild)},configurable:!0})},J=function(p){Object.defineProperty(p,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(r){if(this.parentNode){y.body.innerHTML=
-r;for(r=this.ownerDocument.createDocumentFragment();y.body.firstChild;)l.call(r,y.body.firstChild);m.call(this.parentNode,r,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};n(a.prototype);J(a.prototype);a.bootstrap=function(p){p=b(p,"template");for(var r=0,B=p.length,K;r<B&&(K=p[r]);r++)a.Z(K)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var p=
-g.apply(this,arguments);"template"===p.localName&&a.Z(p);return p};DOMParser.prototype.parseFromString=function(){var p=q.apply(this,arguments);a.bootstrap(p);return p};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return wa(this)},set:function(p){H.set.call(this,p);a.bootstrap(this)},configurable:!0,enumerable:!0});var fa=/[&\u00A0"]/g,gc=/[&\u00A0<>]/g,fb=function(p){switch(p){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};
-w=function(p){for(var r={},B=0;B<p.length;B++)r[p[B]]=!0;return r};var Ua=w("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),gb=w("style script xmp iframe noembed noframes plaintext noscript".split(" ")),wa=function(p,r){"template"===p.localName&&(p=p.content);for(var B="",K=r?r(p):C.get.call(p),aa=0,la=K.length,va;aa<la&&(va=K[aa]);aa++){a:{var z=va;var R=p;var lb=r;switch(z.nodeType){case Node.ELEMENT_NODE:for(var Fc=z.localName,mb="<"+Fc,Bh=z.attributes,
-oe=0;R=Bh[oe];oe++)mb+=" "+R.name+'="'+R.value.replace(fa,fb)+'"';mb+=">";z=Ua[Fc]?mb:mb+wa(z,lb)+"</"+Fc+">";break a;case Node.TEXT_NODE:z=z.data;z=R&&gb[R.localName]?z:z.replace(gc,fb);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}B+=z}return B}}if(c||M){a.sa=function(p,r){var B=f.call(p,!1);this.Z&&this.Z(B);r&&(l.call(B.content,f.call(p.content,!0)),I(B.content,p.content));return B};var I=function(p,r){if(r.querySelectorAll&&
-(r=b(r,"template"),0!==r.length)){p=b(p,"template");for(var B=0,K=p.length,aa,la;B<K;B++)la=r[B],aa=p[B],a&&a.Z&&a.Z(la),m.call(aa.parentNode,u.call(la,!0),aa)}},u=Node.prototype.cloneNode=function(p){if(!e&&d&&this instanceof DocumentFragment)if(p)var r=G.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?r=a.sa(this,p):r=f.call(this,
-p);p&&I(r,this);return r},G=Document.prototype.importNode=function(p,r){r=r||!1;if("template"===p.localName)return a.sa(p,r);var B=h.call(this,p,r);if(r){I(B,p);p=b(B,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var K,aa=0;aa<p.length;aa++){K=p[aa];r=g.call(document,"script");r.textContent=K.textContent;for(var la=K.attributes,va=0,z;va<la.length;va++)z=la[va],r.setAttribute(z.name,z.value);m.call(K.parentNode,r,K)}}return B}}c&&(window.HTMLTemplateElement=
-a)})();/*
-
-Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-function sc(){}sc.prototype.toJSON=function(){return{}};function D(a){a.__shady||(a.__shady=new sc);return a.__shady}function L(a){return a&&a.__shady};var N=window.ShadyDOM||{};N.Ya=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var tc=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");N.H=!!(tc&&tc.configurable&&tc.get);N.ya=N.force||!N.Ya;N.J=N.noPatch||!1;N.fa=N.preferPerformance;N.Aa="on-demand"===N.J;N.Na=navigator.userAgent.match("Trident");function uc(){return Document.prototype.msElementsFromPoint?"msElementsFromPoint":"elementsFromPoint"}function vc(a){return(a=L(a))&&void 0!==a.firstChild}
-function O(a){return a instanceof ShadowRoot}function wc(a){return(a=(a=L(a))&&a.root)&&xc(a)}var yc=Element.prototype,zc=yc.matches||yc.matchesSelector||yc.mozMatchesSelector||yc.msMatchesSelector||yc.oMatchesSelector||yc.webkitMatchesSelector,Ac=document.createTextNode(""),Bc=0,Cc=[];(new MutationObserver(function(){for(;Cc.length;)try{Cc.shift()()}catch(a){throw Ac.textContent=Bc++,a;}})).observe(Ac,{characterData:!0});function Dc(a){Cc.push(a);Ac.textContent=Bc++}
-var Ec=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function Gc(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
-function Hc(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=ka(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function Ic(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
-function Jc(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function Kc(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function P(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||Kc(a,c+e,b[e])}function Lc(a,b){for(var c in b)c in a&&Kc(a,c,b[c])}function Q(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
-function Mc(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function Nc(a){return a instanceof Node?a:document.createTextNode(""+a)}function Oc(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(1===b.length)return Nc(b[0]);c=document.createDocumentFragment();b=ka(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(Nc(d.value));return c};var Pc=[],Qc;function Rc(a){Qc||(Qc=!0,Dc(Sc));Pc.push(a)}function Sc(){Qc=!1;for(var a=!!Pc.length;Pc.length;)Pc.shift()();return a}Sc.list=Pc;function Tc(){this.g=!1;this.addedNodes=[];this.removedNodes=[];this.oa=new Set}function Uc(a){a.g||(a.g=!0,Dc(function(){a.flush()}))}Tc.prototype.flush=function(){if(this.g){this.g=!1;var a=this.takeRecords();a.length&&this.oa.forEach(function(b){b(a)})}};Tc.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
-function Vc(a,b){var c=D(a);c.ea||(c.ea=new Tc);c.ea.oa.add(b);var d=c.ea;return{Ra:b,X:d,Sa:a,takeRecords:function(){return d.takeRecords()}}}function Wc(a){var b=a&&a.X;b&&(b.oa.delete(a.Ra),b.oa.size||(D(a.Sa).ea=null))}
-function Xc(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Yc=/[&\u00A0"]/g,Zc=/[&\u00A0<>]/g;function $c(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function ad(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var bd=ad("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),cd=ad("style script xmp iframe noembed noframes plaintext noscript".split(" "));
-function dd(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var m="<"+k,q=h.attributes,H=0,C;C=q[H];H++)m+=" "+C.name+'="'+C.value.replace(Yc,$c)+'"';m+=">";h=bd[k]?m:m+dd(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&cd[k.localName]?h:h.replace(Zc,$c);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),
-Error("not implemented");}}c+=h}return c};var ed=N.H,fd={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},gd={};function hd(a){gd[a]=function(b){return b["__shady_native_"+a]}}function id(a,b){P(a,b,"__shady_native_");for(var c in b)hd(c)}function S(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?fd[d]||(fd[d]=e.value):hd(d))}}
-var jd=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),kd=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),ld=document.implementation.createHTMLDocument("inert");function md(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var nd=["firstElementChild","lastElementChild","children","childElementCount"],od=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
-function pd(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?(S(window.EventTarget.prototype,a),void 0===window.__shady_native_addEventListener&&S(Window.prototype,a)):(S(Node.prototype,a),S(Window.prototype,a));ed?S(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):id(Node.prototype,{parentNode:{get:function(){jd.currentNode=this;return jd.parentNode()}},firstChild:{get:function(){jd.currentNode=
-this;return jd.firstChild()}},lastChild:{get:function(){jd.currentNode=this;return jd.lastChild()}},previousSibling:{get:function(){jd.currentNode=this;return jd.previousSibling()}},nextSibling:{get:function(){jd.currentNode=this;return jd.nextSibling()}},childNodes:{get:function(){var b=[];jd.currentNode=this;for(var c=jd.firstChild();c;)b.push(c),c=jd.nextSibling();return b}},parentElement:{get:function(){kd.currentNode=this;return kd.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=
-document.createTreeWalker(this,NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:md(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});S(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
-S(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){kd.currentNode=this;return kd.firstChild()}},lastElementChild:{get:function(){kd.currentNode=this;return kd.lastChild()}},children:{get:function(){var b=[];kd.currentNode=this;for(var c=kd.firstChild();c;)b.push(c),c=kd.nextSibling();return Hc(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};ed?(S(Element.prototype,nd),S(Element.prototype,["previousElementSibling","nextElementSibling",
-"innerHTML","className"]),S(HTMLElement.prototype,["children","innerHTML","className"])):(id(Element.prototype,a),id(Element.prototype,{previousElementSibling:{get:function(){kd.currentNode=this;return kd.previousSibling()}},nextElementSibling:{get:function(){kd.currentNode=this;return kd.nextSibling()}},innerHTML:{get:function(){return dd(this,Ic)},set:function(b){var c="template"===this.localName?this.content:this;md(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==ld.namespaceURI?
-ld.createElementNS(this.namespaceURI,d):ld.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));S(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));S(Element.prototype,od);S(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
-S(window.HTMLTemplateElement.prototype,["innerHTML"]);ed?S(DocumentFragment.prototype,nd):id(DocumentFragment.prototype,a);S(DocumentFragment.prototype,od);ed?(S(Document.prototype,nd),S(Document.prototype,["activeElement"])):id(Document.prototype,a);S(Document.prototype,["importNode","getElementById","elementFromPoint",uc()]);S(Document.prototype,od)};var qd=Q({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),rd=Q({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
-a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){this.__shady_innerHTML=a}}),sd=Q({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},set className(a){this.__shady_className=
-a}});function td(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}td(qd);td(rd);td(sd);var ud=N.H||!0===N.J,vd=ud?function(){}:function(a){var b=D(a);b.Pa||(b.Pa=!0,Lc(a,sd))},wd=ud?function(){}:function(a){var b=D(a);b.Oa||(b.Oa=!0,Lc(a,qd),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!N.J||Lc(a,rd))};var xd="__eventWrappers"+Date.now(),yd=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),zd=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function Ad(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.U}else b=!!a,d=c=!1;return{La:e,capture:b,once:c,passive:d,Ja:zd?a:b}}
-var Bd={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0,mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,
-drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0,keypress:!0},Cd={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Dd(a){return a instanceof Node?a.__shady_getRootNode():a}
-function Ed(a,b){var c=[],d=a;for(a=Dd(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function Fd(a){a.__composedPath||(a.__composedPath=Ed(a.target,!0));return a.__composedPath}function Gd(a,b){if(!O)return a;a=Ed(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=Dd(d),f!==e&&(g=a.indexOf(f),e=f),!O(f)||-1<g)return d}
-function Hd(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var Id={focus:!0,blur:!0};function Jd(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function Kd(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!Jd(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
-function Ld(a){var b=a.composedPath(),c=b.map(function(k){return Gd(k,b)}),d=a.bubbles;Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return g}});var e=Event.CAPTURING_PHASE;Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e}});for(var f=b.length-1;0<=f;f--){var g=b[f];e=g===c[f]?Event.AT_TARGET:Event.CAPTURING_PHASE;Kd(a,g,"capture");if(a.ra)return}for(f=0;f<b.length;f++){g=b[f];var h=g===c[f];if(h||d)if(e=h?Event.AT_TARGET:
-Event.BUBBLING_PHASE,Kd(a,g,"bubble"),a.ra)return}e=0;g=null}function Md(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,m=h.once,q=h.passive;if(b===h.node&&c===k&&d===l&&e===m&&f===q)return g}return-1}function Nd(a){Sc();return!N.fa&&this instanceof Node&&!Ec(document,this)?(a.__target||Od(a,this),Ld(a)):this.__shady_native_dispatchEvent(a)}
-function Pd(a,b,c){var d=Ad(c),e=d.capture,f=d.once,g=d.passive,h=d.La;d=d.Ja;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(Cd[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[xd]){if(-1<Md(h,l,a,e,f,g))return}else b[xd]=[];h=function(m){f&&this.__shady_removeEventListener(a,b,c);m.__target||Od(m);if(l!==this){var q=Object.getOwnPropertyDescriptor(m,"currentTarget");Object.defineProperty(m,"currentTarget",
-{get:function(){return l},configurable:!0});var H=Object.getOwnPropertyDescriptor(m,"eventPhase");Object.defineProperty(m,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}m.__previousCurrentTarget=m.currentTarget;if(!O(l)&&"slot"!==l.localName||-1!=m.composedPath().indexOf(l))if(m.composed||-1<m.composedPath().indexOf(l))if(Jd(m)&&m.target===m.relatedTarget)m.eventPhase===Event.BUBBLING_PHASE&&m.stopImmediatePropagation();else if(m.eventPhase===
-Event.CAPTURING_PHASE||m.bubbles||m.target===l||l instanceof Window){var C="function"===k?b.call(l,m):b.handleEvent&&b.handleEvent(m);l!==this&&(q?(Object.defineProperty(m,"currentTarget",q),q=null):delete m.currentTarget,H?(Object.defineProperty(m,"eventPhase",H),H=null):delete m.eventPhase);return C}};b[xd].push({node:l,type:a,capture:e,once:f,passive:g,pb:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h);
-Id[a]||this.__shady_native_addEventListener(a,h,d)}}}
-function Qd(a,b,c){if(b){var d=Ad(c);c=d.capture;var e=d.once,f=d.passive,g=d.La;d=d.Ja;if(Cd[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[xd]}catch(l){}k&&(e=Md(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].pb,k.length||(b[xd]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
-function Rd(){for(var a in Id)window.__shady_native_addEventListener(a,function(b){b.__target||(Od(b),Ld(b))},!0)}
-var Sd=Q({get composed(){void 0===this.__composed&&(yd?this.__composed="focusin"===this.type||"focusout"===this.type||yd(this):!1!==this.isTrusted&&(this.__composed=Bd[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Ed(this.__target,this.composed));return this.__composedPath},get target(){return Gd(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
-(this.__relatedTargetComposedPath=Ed(this.__relatedTarget,!0));return Gd(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ra=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ra=this.__immediatePropagationStopped=!0}});
-function Od(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(N.H){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;P(c,Sd);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else P(a,Sd)}var Td=Hd(Event),Ud=Hd(CustomEvent),Vd=Hd(MouseEvent);
-function Wd(){if(!yd&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
-var Xd=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Yd=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Zd(a){return{set:function(b){var c=D(this),d=a.substring(2);c.T||(c.T={});c.T[a]&&this.removeEventListener(d,c.T[a]);this.__shady_addEventListener(d,b);c.T[a]=b},get:function(){var b=L(this);return b&&b.T&&b.T[a]},configurable:!0}};function $d(a,b){return{index:a,ga:[],na:b}}
-function ae(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var l=c.length,m=0;m<k-g&&be(a[--h],c[--l]);)m++;h=m}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=$d(e,0);f<d;)b.ga.push(c[f++]);return[b]}if(f==d)return[$d(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(m=1;m<h;m++)if(a[k+m-1]===c[g+l-1])b[l][m]=
-b[l-1][m-1];else{var q=b[l-1][m]+1,H=b[l][m-1]+1;b[l][m]=q<H?q:H}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],l=b[k-1][g],m=b[k][g-1],q=l<m?l<h?l:h:m<h?m:h,q==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):q==l?(a.push(3),k--,d=l):(a.push(2),g--,d=m));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=$d(e,0));b.na++;e++;b.ga.push(c[f]);f++;break;case 2:b||(b=$d(e,
-0));b.na++;e++;break;case 3:b||(b=$d(e,0)),b.ga.push(c[f]),f++}b&&k.push(b);return k}function be(a,b){return a===b};var ce=Q({dispatchEvent:Nd,addEventListener:Pd,removeEventListener:Qd});var de=null;function ee(){de||(de=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return de||null}function fe(a,b,c){var d=ee();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function ge(a,b){var c=ee();c&&c.unscopeNode(a,b)}function he(a,b){var c=ee();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&he(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
-function ie(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=ee();return b?b.currentScopeForNode(a):""}function je(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&je(a,b)};var ke=window.document,le=N.fa,me=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),ne=me&&me.get;function pe(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function qe(a){var b=L(a);if(b&&void 0!==b.qa)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)qe(b);if(a=L(a))a.qa=void 0}function re(a){var b=a;if(a&&"slot"===a.localName){var c=L(a);(c=c&&c.aa)&&(b=c.length?c[0]:re(a.__shady_nextSibling))}return b}
-function se(a,b,c){if(a=(a=L(a))&&a.ea){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);Uc(a)}}
-var ze=Q({get parentNode(){var a=L(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=L(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=L(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=L(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=L(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
-get childNodes(){if(vc(this)){var a=L(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=L(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(ne&&ne.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
-var a=this.ownerDocument;if(null===a||Ec(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(O(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(vc(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!vc(this)&&
-N.H){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&pe(this);this.__shady_native_textContent=a}else pe(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==ke&&a.ownerDocument!==ke)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
-if(b){var c=L(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;se(this,a);var d=[],e=(c=te(this))?c.host.localName:ie(this),f=a.__shady_parentNode;if(f){var g=ie(a);var h=!!c||!te(a)||le&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!le||void 0===a.__noInsertionPoint&&void 0===
-this.__noInsertionPoint)&&!he(a,e),l=c&&!a.__noInsertionPoint&&(!le||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||ie(a)),je(a,function(m){l&&"slot"===m.localName&&d.push(m);if(k){var q=g;ee()&&(q&&ge(m,q),(q=ee())&&q.scopeNode(m,e))}});d.length&&(ue(c),c.i.push.apply(c.i,x(d)),ve(c));vc(this)&&(we(a,this,b),h=L(this),h.root?(f=!1,wc(this)&&ve(h.root)):c&&"slot"===this.localName&&(f=!1,ve(c)));f?(c=O(this)?this.host:this,b?(b=re(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):
-a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!O(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==ke)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);se(this,null,a);var c=te(a),d=c&&xe(c,a),e=L(this);if(vc(this)&&(ye(a,this),wc(this))){ve(e.root);var f=!0}if(ee()&&!b&&c&&a.nodeType!==
-Node.TEXT_NODE){var g=ie(a);je(a,function(h){ge(h,g)})}qe(a);c&&((b="slot"===this.localName)&&(f=!0),(d||b)&&ve(c));f||(f=O(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==
-Node.ATTRIBUTE_NODE){a=this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=D(this),c=b.qa;void 0===c&&(O(this)?(c=this,b.qa=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.qa=c)));return c}},contains:function(a){return Gc(this,a)}});var Be=Q({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&Ae(a);return(a=L(this))&&a.assignedSlot||null}});function Ce(a,b,c){var d=[];De(a,b,c,d);return d}function De(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(De(e,f,g,h),e=void 0)}if(e)break}}
-var Ee={get firstElementChild(){var a=L(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=L(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return vc(this)?Hc(Array.prototype.filter.call(Jc(this),
-function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},Fe=Q((Ee.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(Oc.apply(null,x(b)),null)},Ee.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];this.__shady_insertBefore(Oc.apply(null,x(b)),this.__shady_firstChild)},Ee.replaceChildren=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=
-arguments[c];for(;null!==(c=this.__shady_firstChild);)this.__shady_removeChild(c);this.__shady_insertBefore(Oc.apply(null,x(b)),null)},Ee)),Ge=Q({querySelector:function(a){return Ce(this,function(b){return zc.call(b,a)},function(b){return!!b})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return Hc(b.filter(function(d){return d.__shady_getRootNode()==c}))}return Hc(Ce(this,function(d){return zc.call(d,
-a)}))}}),He=N.fa&&!N.J?Mc({},Fe):Fe;Mc(Fe,Ge);var Ie=Q({after:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_insertBefore(Oc.apply(null,x(b)),d)}},before:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c=this.__shady_parentNode;null!==c&&c.__shady_insertBefore(Oc.apply(null,x(b)),this)},remove:function(){var a=this.__shady_parentNode;null!==a&&a.__shady_removeChild(this)},replaceWith:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=
-arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_removeChild(this);c.__shady_insertBefore(Oc.apply(null,x(b)),d)}}});var Je=window.document;function Ke(a,b){if("slot"===b)a=a.__shady_parentNode,wc(a)&&ve(L(a).root);else if("slot"===a.localName&&"name"===b&&(b=te(a))){if(b.g){Le(b);var c=a.Qa,d=Me(a);if(d!==c){c=b.h[c];var e=c.indexOf(a);0<=e&&c.splice(e,1);c=b.h[d]||(b.h[d]=[]);c.push(a);1<c.length&&(b.h[d]=Ne(c))}}ve(b)}}
-var Oe=Q({get previousElementSibling(){var a=L(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=L(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
-set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==Je?this.__shady_native_setAttribute(a,b):fe(this,a,b)||(this.__shady_native_setAttribute(a,b),Ke(this,a))},removeAttribute:function(a){this.ownerDocument!==Je?this.__shady_native_removeAttribute(a):fe(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
-Ke(this,a))}});N.fa||Xd.forEach(function(a){Oe[a]=Zd(a)});
-var Te=Q({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!N.Na){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;Pe(b,this,a);Qe(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;if(a&&a.length){var c=b;ue(c);c.i.push.apply(c.i,x(a));ve(b)}b.host.__shady_native_appendChild(b)}else b=new Re(Se,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=L(this);
-return a&&a.gb||null}});Mc(Oe,Te);var Ue=document.implementation.createHTMLDocument("inert"),Ve=Q({get innerHTML(){return vc(this)?dd("template"===this.localName?this.content:this,Jc):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{pe(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Ue.namespaceURI?Ue.createElementNS(this.namespaceURI,b):Ue.createElement(b);for(N.H?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var We=Q({blur:function(){var a=L(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});N.fa||Yd.forEach(function(a){We[a]=Zd(a)});var Xe=Q({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&O(b)&&Ae(b);return(b=L(this))?(a&&a.flatten?b.aa:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)Pd.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.U=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
-b,c){if("slot"!==this.localName||"slotchange"===a)Qd.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.U=this;d.__shady_removeEventListener(a,b,c)}}});var Ye=Q({getElementById:function(a){return""===a?null:Ce(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});function Ze(a,b){for(var c;b&&!a.has(c=b.__shady_getRootNode());)b=c.host;return b}function $e(a){var b=new Set;for(b.add(a);O(a)&&a.host;)a=a.host.__shady_getRootNode(),b.add(a);return b}
-var af="__shady_native_"+uc(),bf=Q({get activeElement(){var a=N.H?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!O(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=te(a);b&&b!==this;)a=b.host,b=te(a);return this===document?b?null:a:b===this?a:null},elementsFromPoint:function(a,b){a=[].slice.call(document[af](a,b));b=$e(this);for(var c=new Set,d=0;d<a.length;d++)c.add(Ze(b,a[d]));var e=[];c.forEach(function(f){return e.push(f)});
-return e},elementFromPoint:function(a,b){return this.__shady_elementsFromPoint(a,b)[0]||null}});var cf=window.document,df=Q({importNode:function(a,b){if(a.ownerDocument!==cf||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var ef=Q({dispatchEvent:Nd,addEventListener:Pd.bind(window),removeEventListener:Qd.bind(window)});var ff={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(ff.parentElement=ze.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(ff.contains=ze.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(ff.children=Fe.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(ff.innerHTML=Ve.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(ff.className=Oe.className);
-var gf={EventTarget:[ce],Node:[ze,window.EventTarget?null:ce],Text:[Be],Comment:[Be],CDATASection:[Be],ProcessingInstruction:[Be],Element:[Oe,Fe,Ie,Be,!N.H||"innerHTML"in Element.prototype?Ve:null,window.HTMLSlotElement?null:Xe],HTMLElement:[We,ff],HTMLSlotElement:[Xe],DocumentFragment:[He,Ye],Document:[df,He,Ye,bf],Window:[ef],CharacterData:[Ie]},hf=N.H?null:["innerHTML","textContent"];function jf(a,b,c,d){b.forEach(function(e){return a&&e&&P(a,e,c,d)})}
-function kf(a){var b=a?null:hf,c;for(c in gf)jf(window[c]&&window[c].prototype,gf[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;jf(c,gf.EventTarget);jf(c,gf.Node);gf[a]&&jf(c,gf[a]);b.prototype.__shady_patchedProto=c});function lf(a){a.__shady_protoIsPatched=!0;jf(a,gf.EventTarget);jf(a,gf.Node);jf(a,gf.Element);jf(a,gf.HTMLElement);jf(a,gf.HTMLSlotElement);return a};var mf=N.Aa,nf=N.H;function of(a,b){if(mf&&!a.__shady_protoIsPatched&&!O(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),lf(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}nf||(1===b?vd(a):2===b&&wd(a))}
-function pf(a,b,c,d){of(a,1);d=d||null;var e=D(a),f=d?D(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=L(e.previousSibling))f.nextSibling=a;if(f=L(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
-function we(a,b,c){of(b,2);var d=D(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)pf(a,b,d,c);else pf(a,b,d,c)}
-function ye(a,b){var c=D(a);b=D(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(D(a).nextSibling=d);d&&(D(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
-function Qe(a,b){var c=D(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;of(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=D(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;of(c,1)}}};var qf=Q({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.U=c.U||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.U=c.U||this;this.host.__shady_removeEventListener(a,b,c)}});function rf(a,b){P(a,qf,b);P(a,bf,b);P(a,Ve,b);P(a,Fe,b);N.J&&!b?(P(a,ze,b),P(a,Ye,b)):N.H||(P(a,sd),P(a,qd),P(a,rd))};var Se={},sf=N.deferConnectionCallbacks&&"loading"===document.readyState,tf;function uf(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function Re(a,b,c){if(a!==Se)throw new TypeError("Illegal constructor");this.g=null;Pe(this,b,c)}
-function Pe(a,b,c){a.host=b;a.mode=c&&c.mode;Qe(a.host);b=D(a.host);b.root=a;b.gb="closed"!==a.mode?a:null;b=D(a);b.firstChild=b.lastChild=b.parentNode=b.nextSibling=b.previousSibling=null;if(N.preferPerformance)for(;b=a.host.__shady_native_firstChild;)a.host.__shady_native_removeChild(b);else ve(a)}function ve(a){a.Y||(a.Y=!0,Rc(function(){return Ae(a)}))}
-function Ae(a){var b;if(b=a.Y){for(var c;a;)a:{a.Y&&(c=a),b=a;a=b.host.__shady_getRootNode();if(O(a)&&(b=L(b.host))&&0<b.ia)break a;a=void 0}b=c}(c=b)&&c._renderSelf()}
-Re.prototype._renderSelf=function(){var a=sf;sf=!0;this.Y=!1;if(this.g){Le(this);for(var b=0,c;b<this.g.length;b++){c=this.g[b];var d=L(c),e=d.assignedNodes;d.assignedNodes=[];d.aa=[];if(d.Ga=e)for(d=0;d<e.length;d++){var f=L(e[d]);f.ua=f.assignedSlot;f.assignedSlot===c&&(f.assignedSlot=null)}}for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)vf(this,b);for(b=0;b<this.g.length;b++){c=this.g[b];e=L(c);if(!e.assignedNodes.length)for(d=c.__shady_firstChild;d;d=d.__shady_nextSibling)vf(this,
-d,c);(d=(d=L(c.__shady_parentNode))&&d.root)&&(xc(d)||d.Y)&&d._renderSelf();wf(this,e.aa,e.assignedNodes);if(d=e.Ga){for(f=0;f<d.length;f++)L(d[f]).ua=null;e.Ga=null;d.length>e.assignedNodes.length&&(e.xa=!0)}e.xa&&(e.xa=!1,xf(this,c))}c=this.g;b=[];for(e=0;e<c.length;e++)d=c[e].__shady_parentNode,(f=L(d))&&f.root||!(0>b.indexOf(d))||b.push(d);for(c=0;c<b.length;c++){f=b[c];e=f===this?this.host:f;d=[];for(f=f.__shady_firstChild;f;f=f.__shady_nextSibling)if("slot"==f.localName)for(var g=L(f).aa,h=
-0;h<g.length;h++)d.push(g[h]);else d.push(f);f=Ic(e);g=ae(d,d.length,f,f.length);for(var k=h=0,l=void 0;h<g.length&&(l=g[h]);h++){for(var m=0,q=void 0;m<l.ga.length&&(q=l.ga[m]);m++)q.__shady_native_parentNode===e&&e.__shady_native_removeChild(q),f.splice(l.index+k,1);k-=l.na}k=0;for(l=void 0;k<g.length&&(l=g[k]);k++)for(h=f[l.index],m=l.index;m<l.index+l.na;m++)q=d[m],e.__shady_native_insertBefore(q,h),f.splice(m,0,q)}}if(!N.preferPerformance&&!this.Fa)for(b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling)c=
-L(b),b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b);this.Fa=!0;sf=a;tf&&tf()};function vf(a,b,c){var d=D(b),e=d.ua;d.ua=null;c||(c=(a=a.h[b.__shady_slot||"__catchall"])&&a[0]);c?(D(c).assignedNodes.push(b),d.assignedSlot=c):d.assignedSlot=void 0;e!==d.assignedSlot&&d.assignedSlot&&(D(d.assignedSlot).xa=!0)}
-function wf(a,b,c){for(var d=0,e=void 0;d<c.length&&(e=c[d]);d++)if("slot"==e.localName){var f=L(e).assignedNodes;f&&f.length&&wf(a,b,f)}else b.push(c[d])}function xf(a,b){b.__shady_native_dispatchEvent(new Event("slotchange"));b=L(b);b.assignedSlot&&xf(a,b.assignedSlot)}function ue(a){a.i=a.i||[];a.g=a.g||[];a.h=a.h||{}}
-function Le(a){if(a.i&&a.i.length){for(var b=a.i,c,d=0;d<b.length;d++){var e=b[d];Qe(e);var f=e.__shady_parentNode;Qe(f);f=L(f);f.ia=(f.ia||0)+1;f=Me(e);a.h[f]?(c=c||{},c[f]=!0,a.h[f].push(e)):a.h[f]=[e];a.g.push(e)}if(c)for(var g in c)a.h[g]=Ne(a.h[g]);a.i=[]}}function Me(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.Qa=b}
-function Ne(a){return a.sort(function(b,c){b=uf(b);for(var d=uf(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=Jc(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})}
-function xe(a,b){if(a.g){Le(a);var c=a.h,d;for(d in c)for(var e=c[d],f=0;f<e.length;f++){var g=e[f];if(Gc(b,g)){e.splice(f,1);var h=a.g.indexOf(g);0<=h&&(a.g.splice(h,1),(h=L(g.__shady_parentNode))&&h.ia&&h.ia--);f--;g=L(g);if(h=g.aa)for(var k=0;k<h.length;k++){var l=h[k],m=l.__shady_native_parentNode;m&&m.__shady_native_removeChild(l)}g.aa=[];g.assignedNodes=[];h=!0}}return h}}function xc(a){Le(a);return!(!a.g||!a.g.length)}
-(function(a){a.__proto__=DocumentFragment.prototype;rf(a,"__shady_");rf(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
-configurable:!0})})})(Re.prototype);
-if(window.customElements&&window.customElements.define&&N.ya&&!N.preferPerformance){var yf=new Map;tf=function(){var a=[];yf.forEach(function(d,e){a.push([e,d])});yf.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};sf&&document.addEventListener("readystatechange",function(){sf=!1;tf()},{once:!0});var zf=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
-function(){sf?yf.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){sf?this.isConnected||yf.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},Af=window.customElements.define,Bf=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;Af.call(window.customElements,a,zf(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
-Bf;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:Bf,configurable:!0})}function te(a){a=a.__shady_getRootNode();if(O(a))return a};function Cf(a){this.node=a}v=Cf.prototype;v.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};v.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};v.appendChild=function(a){return this.node.__shady_appendChild(a)};v.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};v.removeChild=function(a){return this.node.__shady_removeChild(a)};v.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
-v.cloneNode=function(a){return this.node.__shady_cloneNode(a)};v.getRootNode=function(a){return this.node.__shady_getRootNode(a)};v.contains=function(a){return this.node.__shady_contains(a)};v.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};v.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};v.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};v.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};v.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
-v.attachShadow=function(a){return this.node.__shady_attachShadow(a)};v.focus=function(){this.node.__shady_native_focus()};v.blur=function(){this.node.__shady_blur()};v.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};v.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};v.elementsFromPoint=function(a,b){return this.node.__shady_elementsFromPoint(a,b)};
-v.elementFromPoint=function(a,b){return this.node.__shady_elementFromPoint(a,b)};v.querySelector=function(a){return this.node.__shady_querySelector(a)};v.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};v.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};v.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_append.apply(this.node,x(b))};
-v.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_prepend.apply(this.node,x(b))};v.after=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_after.apply(this.node,x(b))};v.before=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_before.apply(this.node,x(b))};v.remove=function(){return this.node.__shady_remove()};
-v.replaceWith=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return this.node.__shady_replaceWith.apply(this.node,x(b))};
-ea.Object.defineProperties(Cf.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(O(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(O(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
-enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
-get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
-children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
-enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){this.node.__shady_className=
-a}}});function Df(a){Object.defineProperty(Cf.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}Xd.forEach(function(a){return Df(a)});Yd.forEach(function(a){return Df(a)});var Ef=new WeakMap;function Ff(a){if(O(a)||a instanceof Cf)return a;var b=Ef.get(a);b||(b=new Cf(a),Ef.set(a,b));return b};if(N.ya){var Gf=N.H?function(a){return a}:function(a){wd(a);vd(a);return a},ShadyDOM={inUse:N.ya,patch:Gf,isShadyRoot:O,enqueue:Rc,flush:Sc,flushInitial:function(a){!a.Fa&&a.Y&&Ae(a)},settings:N,filterMutations:Xc,observeChildren:Vc,unobserveChildren:Wc,deferConnectionCallbacks:N.deferConnectionCallbacks,preferPerformance:N.preferPerformance,handlesDynamicScoping:!0,wrap:N.J?Ff:Gf,wrapIfNeeded:!0===N.J?Ff:function(a){return a},Wrapper:Cf,composedPath:Fd,noPatch:N.J,patchOnDemand:N.Aa,nativeMethods:fd,
-nativeTree:gd,patchElementProto:lf};window.ShadyDOM=ShadyDOM;pd();kf("__shady_");Object.defineProperty(document,"_activeElement",bf.activeElement);P(Window.prototype,ef,"__shady_");N.J?N.Aa&&P(Element.prototype,Te):(kf(),Wd());Rd();window.Event=Td;window.CustomEvent=Ud;window.MouseEvent=Vd;window.ShadowRoot=Re};var Hf=window.Document.prototype.createElement,If=window.Document.prototype.createElementNS,Jf=window.Document.prototype.importNode,Kf=window.Document.prototype.prepend,Lf=window.Document.prototype.append,Mf=window.DocumentFragment.prototype.prepend,Nf=window.DocumentFragment.prototype.append,Of=window.Node.prototype.cloneNode,Pf=window.Node.prototype.appendChild,Qf=window.Node.prototype.insertBefore,Rf=window.Node.prototype.removeChild,Sf=window.Node.prototype.replaceChild,Tf=Object.getOwnPropertyDescriptor(window.Node.prototype,
-"textContent"),Uf=window.Element.prototype.attachShadow,Vf=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Wf=window.Element.prototype.getAttribute,Xf=window.Element.prototype.setAttribute,Yf=window.Element.prototype.removeAttribute,Zf=window.Element.prototype.getAttributeNS,$f=window.Element.prototype.setAttributeNS,ag=window.Element.prototype.removeAttributeNS,bg=window.Element.prototype.insertAdjacentElement,cg=window.Element.prototype.insertAdjacentHTML,dg=window.Element.prototype.prepend,
-eg=window.Element.prototype.append,fg=window.Element.prototype.before,gg=window.Element.prototype.after,hg=window.Element.prototype.replaceWith,ig=window.Element.prototype.remove,jg=window.HTMLElement,kg=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),lg=window.HTMLElement.prototype.insertAdjacentElement,mg=window.HTMLElement.prototype.insertAdjacentHTML;var ng=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(a){return ng.add(a)});function og(a){var b=ng.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var pg=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
-function T(a){var b=a.isConnected;if(void 0!==b)return b;if(pg(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function qg(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
-function rg(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
-function sg(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)sg(d,b,c);d=rg(a,e);continue}else if("template"===f){d=rg(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)sg(e,b,c)}d=d.firstChild?d.firstChild:rg(a,d)}};function tg(){var a=!(null===ug||void 0===ug||!ug.noDocumentConstructionObserver),b=!(null===ug||void 0===ug||!ug.shadyDomFastWalk);this.ca=[];this.g=[];this.W=!1;this.shadyDomFastWalk=b;this.nb=!a}function vg(a,b,c,d){var e=window.ShadyDOM;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else sg(b,c,d)}function wg(a,b){a.W=!0;a.ca.push(b)}
-function xg(a,b){a.W=!0;a.g.push(b)}function yg(a,b){a.W&&vg(a,b,function(c){return zg(a,c)})}function zg(a,b){if(a.W&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.ca.length;c++)a.ca[c](b);for(c=0;c<a.g.length;c++)a.g[c](b)}}function Ag(a,b){var c=[];vg(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):Bg(a,d)}}
-function Cg(a,b){var c=[];vg(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
-function Dg(a,b,c){c=void 0===c?{}:c;var d=c.ob,e=c.upgrade||function(g){return Bg(a,g)},f=[];vg(a,b,function(g){a.W&&zg(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var l=new Set;d&&(d.forEach(function(m){return l.add(m)}),
-l.delete(k));Dg(a,k,{ob:l,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}
-function Bg(a,b){try{var c=b.ownerDocument,d=c.__CE_registry;var e=d&&(c.defaultView||c.__CE_isImportDocument)?Eg(d,b.localName):void 0;if(e&&void 0===b.__CE_state){e.constructionStack.push(b);try{try{if(new e.constructorFunction!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{e.constructionStack.pop()}}catch(k){throw b.__CE_state=2,k;}b.__CE_state=1;b.__CE_definition=e;if(e.attributeChangedCallback&&b.hasAttributes()){var f=e.observedAttributes;
-for(e=0;e<f.length;e++){var g=f[e],h=b.getAttribute(g);null!==h&&a.attributeChangedCallback(b,g,null,h,null)}}T(b)&&a.connectedCallback(b)}}catch(k){Fg(k)}}tg.prototype.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){Fg(c)}};tg.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){Fg(c)}};
-tg.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){Fg(g)}};
-function Gg(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=Eg(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
-c+"': The constructed element must not have any attributes.");if(null!==f.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==f.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
-return f}catch(g){return Fg(g),b=null===d?Hf.call(b,c):If.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,zg(a,b),b}b=null===d?Hf.call(b,c):If.call(b,d,c);zg(a,b);return b}
-function Fg(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0,f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===f.error&&Object.defineProperty(f,"error",
-{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function Hg(){var a=this;this.I=void 0;this.Ha=new Promise(function(b){a.g=b})}Hg.prototype.resolve=function(a){if(this.I)throw Error("Already resolved.");this.I=a;this.g(a)};function Ig(a){var b=document;this.X=void 0;this.S=a;this.g=b;Dg(this.S,this.g);"loading"===this.g.readyState&&(this.X=new MutationObserver(this.h.bind(this)),this.X.observe(this.g,{childList:!0,subtree:!0}))}function Jg(a){a.X&&a.X.disconnect()}Ig.prototype.h=function(a){var b=this.g.readyState;"interactive"!==b&&"complete"!==b||Jg(this);for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)Dg(this.S,c[d])};function U(a){this.ka=new Map;this.la=new Map;this.Ca=new Map;this.ta=!1;this.wa=new Map;this.ja=function(b){return b()};this.V=!1;this.ma=[];this.S=a;this.Da=a.nb?new Ig(a):void 0}v=U.prototype;v.eb=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");Kg(this,a);this.ka.set(a,b);this.ma.push(a);this.V||(this.V=!0,this.ja(function(){return Lg(c)}))};
-v.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");Kg(this,a);Mg(this,a,b);this.ma.push(a);this.V||(this.V=!0,this.ja(function(){return Lg(c)}))};function Kg(a,b){if(!og(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(Eg(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.ta)throw Error("A custom element is already being defined.");}
-function Mg(a,b,c){a.ta=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(m){var q=e[m];if(void 0!==q&&!(q instanceof Function))throw Error("The '"+m+"' callback must be a function.");return q};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var l=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(m){throw m;}finally{a.ta=!1}c={localName:b,
-constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};a.la.set(b,c);a.Ca.set(c.constructorFunction,c);return c}v.upgrade=function(a){Dg(this.S,a)};
-function Lg(a){if(!1!==a.V){a.V=!1;for(var b=[],c=a.ma,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);Dg(a.S,document,{upgrade:function(k){if(void 0===k.__CE_state){var l=k.localName,m=d.get(l);m?m.push(k):a.la.has(l)&&b.push(k)}}});for(e=0;e<b.length;e++)Bg(a.S,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)Bg(a.S,g[h]);(f=a.wa.get(f))&&f.resolve(void 0)}c.length=0}}v.get=function(a){if(a=Eg(this,a))return a.constructorFunction};
-v.whenDefined=function(a){if(!og(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.wa.get(a);if(b)return b.Ha;b=new Hg;this.wa.set(a,b);var c=this.la.has(a)||this.ka.has(a);a=-1===this.ma.indexOf(a);c&&a&&b.resolve(void 0);return b.Ha};v.polyfillWrapFlushCallback=function(a){this.Da&&Jg(this.Da);var b=this.ja;this.ja=function(c){return a(function(){return b(c)})}};
-function Eg(a,b){var c=a.la.get(b);if(c)return c;if(c=a.ka.get(b)){a.ka.delete(b);try{return Mg(a,b,c())}catch(d){Fg(d)}}}window.CustomElementRegistry=U;U.prototype.define=U.prototype.define;U.prototype.upgrade=U.prototype.upgrade;U.prototype.get=U.prototype.get;U.prototype.whenDefined=U.prototype.whenDefined;U.prototype.polyfillDefineLazy=U.prototype.eb;U.prototype.polyfillWrapFlushCallback=U.prototype.polyfillWrapFlushCallback;function Ng(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h]=arguments[h];h=[];for(var k=[],l=0;l<g.length;l++){var m=g[l];m instanceof Element&&T(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)h.push(m);else h.push(m)}e.apply(this,g);for(g=0;g<k.length;g++)Cg(a,k[g]);if(T(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&Ag(a,k)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))}
-;function Og(a){Document.prototype.createElement=function(b){return Gg(a,this,b,null)};Document.prototype.importNode=function(b,c){b=Jf.call(this,b,!!c);this.__CE_registry?Dg(a,b):yg(a,b);return b};Document.prototype.createElementNS=function(b,c){return Gg(a,this,c,b)};Ng(a,Document.prototype,{prepend:Kf,append:Lf})};function Pg(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var l=f[k];l instanceof Element&&T(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}d.apply(this,f);for(f=0;f<h.length;f++)Cg(a,h[f]);if(T(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&Ag(a,h)}}var c=Element.prototype;void 0!==fg&&(c.before=b(fg));void 0!==gg&&(c.after=b(gg));void 0!==
-hg&&(c.replaceWith=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&T(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=T(this);hg.apply(this,e);for(e=0;e<g.length;e++)Cg(a,g[e]);if(h)for(Cg(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&Ag(a,g)});void 0!==ig&&(c.remove=function(){var d=T(this);ig.call(this);d&&Cg(a,this)})};function Qg(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;T(this)&&(k=[],vg(a,this,function(q){q!==h&&k.push(q)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var m=k[l];1===m.__CE_state&&a.disconnectedCallback(m)}this.ownerDocument.__CE_registry?Dg(a,this):yg(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=T(h);g=f.call(this,g,h);k&&Cg(a,h);T(g)&&Ag(a,h);return g}}
-function d(e,f){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)Dg(a,l[k])}e.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;f.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,f.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,f.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
-l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}Uf&&(Element.prototype.attachShadow=function(e){e=Uf.call(this,e);if(a.W&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.ca.length;f++)a.ca[f](e)}return this.__CE_shadowRoot=e});Vf&&Vf.get?b(Element.prototype,Vf):kg&&kg.get?b(HTMLElement.prototype,kg):xg(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return Of.call(this,!0).innerHTML},set:function(f){var g=
-"template"===this.localName,h=g?this.content:this,k=If.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)Rf.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)Pf.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(1!==this.__CE_state)return Xf.call(this,e,f);var g=Wf.call(this,e);Xf.call(this,e,f);f=Wf.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(1!==this.__CE_state)return $f.call(this,
-e,f,g);var h=Zf.call(this,e,f);$f.call(this,e,f,g);g=Zf.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return Yf.call(this,e);var f=Wf.call(this,e);Yf.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)};Element.prototype.removeAttributeNS=function(e,f){if(1!==this.__CE_state)return ag.call(this,e,f);var g=Zf.call(this,e,f);ag.call(this,e,f);var h=Zf.call(this,e,f);g!==h&&a.attributeChangedCallback(this,
-f,g,h,e)};lg?c(HTMLElement.prototype,lg):bg&&c(Element.prototype,bg);mg?d(HTMLElement.prototype,mg):cg&&d(Element.prototype,cg);Ng(a,Element.prototype,{prepend:dg,append:eg});Pg(a)};var Rg={};function Sg(a){function b(){var c=this.constructor;var d=document.__CE_registry.Ca.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=Hf.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,zg(a,e),e;var f=e.length-1,g=e[f];if(g===Rg)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
-Rg;Object.setPrototypeOf(g,c.prototype);zg(a,g);return g}b.prototype=jg.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function Tg(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&T(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)Cg(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=qg(c);c=Qf.call(this,c,d);if(T(this))for(d=
-0;d<e.length;d++)Ag(a,e[d]);return c}e=c instanceof Element&&T(c);d=Qf.call(this,c,d);e&&Cg(a,c);T(this)&&Ag(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=qg(c);c=Pf.call(this,c);if(T(this))for(var e=0;e<d.length;e++)Ag(a,d[e]);return c}d=c instanceof Element&&T(c);e=Pf.call(this,c);d&&Cg(a,c);T(this)&&Ag(a,c);return e};Node.prototype.cloneNode=function(c){c=Of.call(this,!!c);this.ownerDocument.__CE_registry?Dg(a,c):yg(a,c);return c};Node.prototype.removeChild=
-function(c){var d=c instanceof Element&&T(c),e=Rf.call(this,c);d&&Cg(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=qg(c);c=Sf.call(this,c,d);if(T(this))for(Cg(a,d),d=0;d<e.length;d++)Ag(a,e[d]);return c}e=c instanceof Element&&T(c);var f=Sf.call(this,c,d),g=T(this);g&&Cg(a,d);e&&Cg(a,c);g&&Ag(a,c);return f};Tf&&Tf.get?b(Node.prototype,Tf):wg(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
-Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)Rf.call(this,this.firstChild);null!=d&&""!==d&&Pf.call(this,document.createTextNode(d))}})})};var ug=window.customElements;function Ug(){var a=new tg;Sg(a);Og(a);Ng(a,DocumentFragment.prototype,{prepend:Mf,append:Nf});Tg(a);Qg(a);a=new U(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}ug&&!ug.forcePolyfill&&"function"==typeof ug.define&&"function"==typeof ug.get||Ug();window.__CE_installPolyfill=Ug;/*
-
-Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-function Vg(){this.end=this.start=0;this.rules=this.parent=this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}
-function Wg(a){var b=a=a.replace(Xg,"").replace(Yg,""),c=new Vg;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new Vg;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return Zg(c,a)}
-function Zg(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=$g(c),c=c.replace(ah," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=bh:c.match(ch)&&(a.type=dh,a.keyframesName=a.selector.split(ah).pop()):a.type=0===c.indexOf("--")?eh:fh);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)Zg(f,
-b);return a}function $g(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
-function gh(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules,f;if(f=e)f=e[0],f=!(f&&f.selector&&0===f.selector.indexOf("--"));if(f){f=0;for(var g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=gh(h,b,d)}else b?b=a.cssText:(b=a.cssText,b=b.replace(hh,"").replace(ih,""),b=b.replace(jh,"").replace(kh,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
-var fh=1,dh=7,bh=4,eh=1E3,Xg=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Yg=/@import[^;]*;/gim,hh=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,ih=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,jh=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,kh=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ch=/^@[^\s]*keyframes/,ah=/\s+/g;var V=!(window.ShadyDOM&&window.ShadyDOM.inUse),lh;function mh(a){lh=a&&a.shimcssproperties?!1:V||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var nh;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(nh=window.ShadyCSS.cssBuild);var oh=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
-window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?lh=window.ShadyCSS.nativeCss:window.ShadyCSS?(mh(window.ShadyCSS),window.ShadyCSS=void 0):mh(window.WebComponents&&window.WebComponents.flags);var X=lh;var ph=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,qh=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,rh=/(--[\w-]+)\s*([:,;)]|$)/gi,sh=/(animation\s*:)|(animation-name\s*:)/,th=/@media\s(.*)/,uh=/\{[^}]*\}/g;var vh=new Set;function wh(a,b){if(!a)return"";"string"===typeof a&&(a=Wg(a));b&&xh(a,b);return gh(a,X)}function yh(a){!a.__cssRules&&a.textContent&&(a.__cssRules=Wg(a.textContent));return a.__cssRules||null}function zh(a){return!!a.parent&&a.parent.type===dh}function xh(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&f===bh){var g=a.selector.match(th);g&&(window.matchMedia(g[1]).matches||(e=!0))}f===fh?b(a):c&&f===dh?c(a):f===eh&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)xh(g,b,c,d)}}
-function Ah(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Ch(e,c,d);return e}var Dh=null;function Eh(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Dh?Dh.nextSibling:null)||b.firstChild);return Dh=a}function Ch(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Dh?a.compareDocumentPosition(Dh)===Node.DOCUMENT_POSITION_PRECEDING&&(Dh=a):Dh=a}
-function Fh(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function Gh(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Fh(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Gh(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function Hh(a,b){V?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
-var Ih=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function Jh(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,ha:c}}function Kh(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Fh(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
-function Lh(a){if(void 0!==nh)return nh;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
-function Mh(a){a=void 0===a?"":a;return""!==a&&X?V?"shadow"===a:"shady"===a:!1};function Nh(){}function Oh(a,b){Ph(Qh,a,function(c){Rh(c,b||"")})}function Ph(a,b,c){b.nodeType===Node.ELEMENT_NODE&&c(b);var d;"template"===b.localName?d=(b.content||b._content||b).childNodes:d=b.children||b.childNodes;if(d)for(b=0;b<d.length;b++)Ph(a,d[b],c)}
-function Rh(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),Hh(a,b)):Hh(a,(d?d+" ":"")+"style-scope "+b)}}function Sh(a,b,c){Ph(Qh,a,function(d){Rh(d,b,!0);Rh(d,c)})}function Th(a,b){Ph(Qh,a,function(c){Rh(c,b||"",!0)})}
-function Uh(a,b,c,d,e){var f=Qh;e=void 0===e?"":e;""===e&&(V||"shady"===(void 0===d?"":d)?e=wh(b,c):(a=Jh(a),e=Vh(f,b,a.is,a.ha,c)+"\n\n"));return e.trim()}function Vh(a,b,c,d,e){var f=Wh(c,d);c=c?"."+c:"";return wh(b,function(g){g.i||(g.selector=g.F=Xh(a,g,a.h,c,f),g.i=!0);e&&e(g,c,f)})}function Wh(a,b){return b?"[is="+a+"]":a}
-function Xh(a,b,c,d,e){var f=Kh(b.selector);if(!zh(b)){b=0;for(var g=f.length,h=void 0;b<g&&(h=f[b]);b++)f[b]=c.call(a,h,d,e)}return f.filter(function(k){return!!k}).join(",")}function Yh(a){return a.replace(Zh,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})}
-function $h(a){for(var b=[],c;c=a.match(ai);){var d=c.index,e=Fh(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{Ba:a,matches:b}}function bi(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])}
-Nh.prototype.h=function(a,b,c){var d=!1;a=a.trim();var e=Zh.test(a);e&&(a=a.replace(Zh,function(h,k,l){return":"+k+"("+l.replace(/\s/g,"")+")"}),a=Yh(a));var f=ai.test(a);if(f){var g=$h(a);a=g.Ba;g=g.matches}a=a.replace(ci,":host $1");a=a.replace(di,function(h,k,l){d||(h=ei(l,k,b,c),d=d||h.stop,k=h.Ua,l=h.value);return k+l});f&&(a=bi(a,g));e&&(a=Yh(a));return a=a.replace(fi,function(h,k,l,m){return'[dir="'+l+'"] '+k+m+", "+k+'[dir="'+l+'"]'+m})};
-function ei(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=gi(a,d):0!==e&&(a=c?hi(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(ii,function(g,h){return" > "+h}))}return{value:a,Ua:b,stop:f}}function hi(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")}
-function gi(a,b){var c=a.match(ji);return(c=c&&c[2].trim()||"")?c[0].match(ki)?a.replace(ji,function(d,e,f){return b+f}):c.split(ki)[0]===b?c:"should_not_match":a.replace(":host",b)}function li(a){":root"===a.selector&&(a.selector="html")}Nh.prototype.i=function(a){return a.match(":host")?"":a.match("::slotted")?this.h(a,":not(.style-scope)"):hi(a.trim(),":not(.style-scope)")};ea.Object.defineProperties(Nh.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
-var Zh=/:(nth[-\w]+)\(([^)]+)\)/,di=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ki=/[[.:#*]/,ci=/^(::slotted)/,ji=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ii=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fi=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ai=/:(?:matches|any|-(?:webkit|moz)-any)/,Qh=new Nh;function mi(a,b,c,d,e){this.M=a||null;this.h=b||null;this.za=c||[];this.K=null;this.cssBuild=e||"";this.ha=d||"";this.g=this.L=this.R=null}function ni(a){return a?a.__styleInfo:null}function oi(a,b){return a.__styleInfo=b}mi.prototype.i=function(){return this.M};mi.prototype._getStyleRules=mi.prototype.i;function pi(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var qi=/:host\s*>\s*/,ri=navigator.userAgent.match("Trident");function si(){}function ti(a){var b={},c=[],d=0;xh(a,function(f){ui(f);f.index=d++;f=f.D.cssText;for(var g;g=rh.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.h=c;a=[];for(var e in b)a.push(e);return a}
-function ui(a){if(!a.D){var b={},c={};vi(a,c)&&(b.P=c,a.rules=null);b.cssText=a.parsedCssText.replace(uh,"").replace(ph,"");a.D=b}}function vi(a,b){var c=a.D;if(c){if(c.P)return Object.assign(b,c.P),!0}else{c=a.parsedCssText;for(var d;a=ph.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
-function wi(a,b,c){b&&(b=0<=b.indexOf(";")?xi(a,b,c):Gh(b,function(d,e,f,g){if(!e)return d+g;(e=wi(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=wi(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
-function xi(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){qh.lastIndex=0;if(f=qh.exec(e))e=wi(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=wi(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
-function yi(a,b){var c={},d=[];xh(a,function(e){e.D||ui(e);var f=e.F||e.parsedSelector;b&&e.D.P&&f&&pi.call(b,f)&&(vi(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{P:c,key:d}}
-function zi(a,b,c,d){b.D||ui(b);if(b.D.P){var e=Jh(a);a=e.is;e=e.ha;e=a?Wh(a,e):"html";var f=b.parsedSelector;var g=!!f.match(qi)||"html"===e&&-1<f.indexOf("html");var h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));if(g||h)c=e,h&&(b.F||(b.F=Xh(Qh,b,Qh.h,a?"."+a:"",e)),c=b.F||e),g&&"html"===e&&(c=b.F||b.O),d({Ba:c,ab:h,qb:g})}}
-function Ai(a,b,c){var d={},e={};xh(b,function(f){zi(a,f,c,function(g){pi.call(a._element||a,g.Ba)&&(g.ab?vi(f,d):vi(f,e))})},null,!0);return{hb:e,Za:d}}
-function Bi(a,b,c,d){var e=Jh(b),f=Wh(e.is,e.ha),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=ni(b);e=h.M;h=h.cssBuild;var k=Ci(e,d);return Uh(b,e,function(l){var m="";l.D||ui(l);l.D.cssText&&(m=xi(a,l.D.cssText,c));l.cssText=m;if(!V&&!zh(l)&&l.cssText){var q=m=l.cssText;null==l.Ia&&(l.Ia=sh.test(m));if(l.Ia)if(null==l.pa){l.pa=[];for(var H in k)q=k[H],q=q(m),m!==q&&(m=q,l.pa.push(H))}else{for(H=0;H<l.pa.length;++H)q=k[l.pa[H]],m=q(m);q=m}l.cssText=q;l.F=
-l.F||l.selector;m="."+d;H=Kh(l.F);q=0;for(var C=H.length,t=void 0;q<C&&(t=H[q]);q++)H[q]=t.match(g)?t.replace(f,m):m+" "+t;l.selector=H.join(",")}},h)}function Ci(a,b){a=a.h;var c={};if(!V&&a)for(var d=0,e=a[d];d<a.length;e=a[++d]){var f=e,g=b;f.u=new RegExp("\\b"+f.keyframesName+"(?!\\B|-)","g");f.g=f.keyframesName+"-"+g;f.F=f.F||f.selector;f.selector=f.F.replace(f.keyframesName,f.g);c[e.keyframesName]=Di(e)}return c}function Di(a){return function(b){return b.replace(a.u,a.g)}}
-function Ei(a,b){var c=Fi,d=yh(a);a.textContent=wh(d,function(e){var f=e.cssText=e.parsedCssText;e.D&&e.D.cssText&&(f=f.replace(hh,"").replace(ih,""),e.cssText=xi(c,f,b))})}ea.Object.defineProperties(si.prototype,{g:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Fi=new si;var Gi={},Hi=window.customElements;if(Hi&&!V&&!oh){var Ii=Hi.define;Hi.define=function(a,b,c){Gi[a]||(Gi[a]=Eh(a));Ii.call(Hi,a,b,c)}};function Ji(){this.cache={}}Ji.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({P:b,styleElement:c,L:d});100<e.length&&e.shift();this.cache[a]=e};function Ki(){}var Li=new RegExp(Qh.g+"\\s*([^\\s]*)");function Mi(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Li))?a[1]:""}function Ni(a){var b=Ih(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Jh(a).is:""}
-function Oi(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=Mi(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===Lh(e)))Th(e,g);else if(f instanceof ShadowRoot)for(f=Ni(e),f!==g&&Sh(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+Qh.g+")"),g=0;g<e.length;g++){f=e[g];
-var h=Ni(f);h&&Rh(f,h)}}}}}
-if(!(V||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Pi=new MutationObserver(Oi),Qi=function(a){Pi.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Qi(document);else{var Ri=function(){Qi(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Ri):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Ri();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
-a)}else Ri()})}Ki=function(){Oi(Pi.takeRecords())}};var Si={};var Ti=Promise.resolve();function Ui(a){if(a=Si[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Vi(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Wi(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Ti.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Xi={},Yi=new Ji;function Y(){this.da={};this.i=document.documentElement;var a=new Vg;a.rules=[];this.u=oi(this.i,new mi(a));this.O=!1;this.g=this.h=null}v=Y.prototype;v.flush=function(){Ki()};v.Xa=function(a){return yh(a)};v.lb=function(a){return wh(a)};v.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
-v.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!oh){V||Gi[b]||(Gi[b]=Eh(b));a._prepared=!0;a.name=b;a.extends=c;Si[b]=a;var d=Lh(a),e=Mh(d);c={is:b,extends:c};for(var f=[],g=a.content.querySelectorAll("style"),h=0;h<g.length;h++){var k=g[h];if(k.hasAttribute("shady-unscoped")){if(!V){var l=k.textContent;if(!vh.has(l)){vh.add(l);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=l;document.head.appendChild(m)}k.parentNode.removeChild(k)}}else f.push(k.textContent),
-k.parentNode.removeChild(k)}f=f.join("").trim()+(Xi[b]||"");Zi(this);if(!e){if(g=!d)g=qh.test(f)||ph.test(f),qh.lastIndex=0,ph.lastIndex=0;h=Wg(f);g&&X&&this.h&&this.h.transformRules(h,b);a._styleAst=h}g=[];X||(g=ti(a._styleAst));if(!g.length||X)h=V?a.content:null,b=Gi[b]||null,d=Uh(c,a._styleAst,null,d,e?f:""),d=d.length?Ah(d,c.is,h,b):null,a._style=d;a.g=g}};v.fb=function(a,b){Xi[b]=a.join(" ")};
-v.prepareTemplateDom=function(a,b){if(!oh){var c=Lh(a);V||"shady"===c||a._domPrepared||(a._domPrepared=!0,Oh(a.content,b))}};function $i(a){var b=Jh(a),c=b.is;b=b.ha;var d=Gi[c]||null,e=Si[c];if(e){c=e._styleAst;var f=e.g;e=Lh(e);b=new mi(c,d,f,b,e);oi(a,b);return b}}
-function aj(a){!a.g&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(a.g=window.ShadyCSS.CustomStyleInterface,a.g.transformCallback=function(b){a.Ma(b)},a.g.validateCallback=function(){requestAnimationFrame(function(){(a.g.enqueued||a.O)&&a.flushCustomStyles()})})}function Zi(a){if(!a.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim){a.h=window.ShadyCSS.ApplyShim;a.h.invalidCallback=Ui;var b=!0}else b=!1;aj(a);return b}
-v.flushCustomStyles=function(){if(!oh){var a=Zi(this);if(this.g){var b=this.g.processStyles();if((a||this.g.enqueued)&&!Mh(this.u.cssBuild)){if(X){if(!this.u.cssBuild)for(a=0;a<b.length;a++){var c=this.g.getStyleForCustomStyle(b[a]);if(c&&X&&this.h){var d=yh(c);Zi(this);this.h.transformRules(d);c.textContent=wh(d)}}}else{bj(this,b);cj(this,this.i,this.u);for(a=0;a<b.length;a++)(c=this.g.getStyleForCustomStyle(b[a]))&&Ei(c,this.u.R);this.O&&this.styleDocument()}this.g.enqueued=!1}}}};
-function bj(a,b){b=b.map(function(c){return a.g.getStyleForCustomStyle(c)}).filter(function(c){return!!c});b.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});a.u.M.rules=b.map(function(c){return yh(c)})}
-v.styleElement=function(a,b){if(oh){if(b){ni(a)||oi(a,new mi(null));var c=ni(a);c.K=c.K||{};Object.assign(c.K,b);dj(this,a,c)}}else if(c=ni(a)||$i(a))if(a!==this.i&&(this.O=!0),b&&(c.K=c.K||{},Object.assign(c.K,b)),X)dj(this,a,c);else if(this.flush(),cj(this,a,c),c.za&&c.za.length){b=Jh(a).is;var d;a:{if(d=Yi.cache[b])for(var e=d.length-1;0<=e;e--){var f=d[e];b:{var g=c.za;for(var h=0;h<g.length;h++){var k=g[h];if(f.P[k]!==c.R[k]){g=!1;break b}}g=!0}if(g){d=f;break a}}d=void 0}g=d?d.styleElement:
-null;e=c.L;(f=d&&d.L)||(f=this.da[b]=(this.da[b]||0)+1,f=b+"-"+f);c.L=f;f=c.L;h=Fi;h=g?g.textContent||"":Bi(h,a,c.R,f);k=ni(a);var l=k.g;l&&!V&&l!==g&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));V?k.g?(k.g.textContent=h,g=k.g):h&&(g=Ah(h,f,a.shadowRoot,k.h)):g?g.parentNode||(ri&&-1<h.indexOf("@media")&&(g.textContent=h),Ch(g,null,k.h)):h&&(g=Ah(h,f,null,k.h));g&&(g._useCount=g._useCount||0,k.g!=g&&g._useCount++,k.g=g);f=g;V||(g=c.L,k=h=a.getAttribute("class")||"",e&&
-(k=h.replace(new RegExp("\\s*x-scope\\s*"+e+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+g,h!==k&&Hh(a,k));d||Yi.store(b,c.R,f,c.L)}};
-function dj(a,b,c){var d=Jh(b).is;if(c.K){var e=c.K,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}e=Si[d];if(!(!e&&b!==a.i||e&&""!==Lh(e))&&e&&e._style&&!Vi(e)){if(Vi(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)Zi(a),a.h&&a.h.transformRules(e._styleAst,d),e._style.textContent=Uh(b,c.M),Wi(e);V&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=Uh(b,c.M));c.M=e._styleAst}}
-function ej(a,b){return(b=Ih(b).getRootNode().host)?ni(b)||$i(b)?b:ej(a,b):a.i}function cj(a,b,c){var d=ej(a,b),e=ni(d),f=e.R;d===a.i||f||(cj(a,d,e),f=e.R);a=Object.create(f||null);d=Ai(b,c.M,c.cssBuild);b=yi(e.M,b).P;Object.assign(a,d.Za,b,d.hb);b=c.K;for(var g in b)if((e=b[g])||0===e)a[g]=e;g=Fi;b=Object.getOwnPropertyNames(a);for(e=0;e<b.length;e++)d=b[e],a[d]=wi(g,a[d],a);c.R=a}v.styleDocument=function(a){this.styleSubtree(this.i,a)};
-v.styleSubtree=function(a,b){var c=Ih(a),d=c.shadowRoot,e=a===this.i;(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return Ih(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};
-v.Ma=function(a){var b=this,c=Lh(a);c!==this.u.cssBuild&&(this.u.cssBuild=c);if(!Mh(c)){var d=yh(a);xh(d,function(e){if(V)li(e);else{var f=Qh;e.selector=e.parsedSelector;li(e);e.selector=e.F=Xh(f,e,f.i,void 0,void 0)}X&&""===c&&(Zi(b),b.h&&b.h.transformRule(e))});X?a.textContent=wh(d):this.u.M.rules.push(d)}};v.getComputedStyleValue=function(a,b){var c;X||(c=(ni(a)||ni(ej(this,a))).R[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};
-v.kb=function(a,b){var c=Ih(a).getRootNode();b=b?("string"===typeof b?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===Qh.g){c=d[e+1];break}}}c&&b.push(Qh.g,c);X||(c=ni(a))&&c.L&&b.push(Fi.g,c.L);Hh(a,b.join(" "))};v.Ta=function(a){return ni(a)};v.jb=function(a,b){Rh(a,b)};v.mb=function(a,b){Rh(a,b,!0)};v.ib=function(a){return Ni(a)};v.Va=function(a){return Mi(a)};Y.prototype.flush=Y.prototype.flush;
-Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.kb;Y.prototype._styleInfoForNode=Y.prototype.Ta;Y.prototype.transformCustomStyleForDocument=Y.prototype.Ma;Y.prototype.getStyleAst=Y.prototype.Xa;Y.prototype.styleAstToString=Y.prototype.lb;
-Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.jb;Y.prototype.unscopeNode=Y.prototype.mb;Y.prototype.scopeForNode=Y.prototype.ib;Y.prototype.currentScopeForNode=Y.prototype.Va;Y.prototype.prepareAdoptedCssText=Y.prototype.fb;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return V}},nativeCss:{get:function(){return X}}});var Z=new Y,fj,gj;window.ShadyCSS&&(fj=window.ShadyCSS.ApplyShim,gj=window.ShadyCSS.CustomStyleInterface);
-window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
-getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:X,nativeShadow:V,cssBuild:nh,disableRuntime:oh};fj&&(window.ShadyCSS.ApplyShim=fj);gj&&(window.ShadyCSS.CustomStyleInterface=gj);(function(a){function b(t){""==t&&(f.call(this),this.m=!0);return t.toLowerCase()}function c(t){var F=t.charCodeAt(0);return 32<F&&127>F&&-1==[34,35,60,62,63,96].indexOf(F)?t:encodeURIComponent(t)}function d(t){var F=t.charCodeAt(0);return 32<F&&127>F&&-1==[34,35,60,62,96].indexOf(F)?t:encodeURIComponent(t)}function e(t,F,E){function M(fa){sa.push(fa)}var y=F||"scheme start",W=0,w="",ta=!1,ha=!1,sa=[];a:for(;(void 0!=t[W-1]||0==W)&&!this.m;){var n=t[W];switch(y){case "scheme start":if(n&&q.test(n))w+=
-n.toLowerCase(),y="scheme";else if(F){M("Invalid scheme.");break a}else{w="";y="no scheme";continue}break;case "scheme":if(n&&H.test(n))w+=n.toLowerCase();else if(":"==n){this.l=w;w="";if(F)break a;void 0!==l[this.l]&&(this.G=!0);y="file"==this.l?"relative":this.G&&E&&E.l==this.l?"relative or authority":this.G?"authority first slash":"scheme data"}else if(F){void 0!=n&&M("Code point not allowed in scheme: "+n);break a}else{w="";W=0;y="no scheme";continue}break;case "scheme data":"?"==n?(this.A="?",
-y="query"):"#"==n?(this.C="#",y="fragment"):void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.va+=c(n));break;case "no scheme":if(E&&void 0!==l[E.l]){y="relative";continue}else M("Missing scheme."),f.call(this),this.m=!0;break;case "relative or authority":if("/"==n&&"/"==t[W+1])y="authority ignore slashes";else{M("Expected /, got: "+n);y="relative";continue}break;case "relative":this.G=!0;"file"!=this.l&&(this.l=E.l);if(void 0==n){this.o=E.o;this.v=E.v;this.s=E.s.slice();this.A=E.A;this.B=E.B;this.j=E.j;
-break a}else if("/"==n||"\\"==n)"\\"==n&&M("\\ is an invalid code point."),y="relative slash";else if("?"==n)this.o=E.o,this.v=E.v,this.s=E.s.slice(),this.A="?",this.B=E.B,this.j=E.j,y="query";else if("#"==n)this.o=E.o,this.v=E.v,this.s=E.s.slice(),this.A=E.A,this.C="#",this.B=E.B,this.j=E.j,y="fragment";else{y=t[W+1];var J=t[W+2];if("file"!=this.l||!q.test(n)||":"!=y&&"|"!=y||void 0!=J&&"/"!=J&&"\\"!=J&&"?"!=J&&"#"!=J)this.o=E.o,this.v=E.v,this.B=E.B,this.j=E.j,this.s=E.s.slice(),this.s.pop();y=
-"relative path";continue}break;case "relative slash":if("/"==n||"\\"==n)"\\"==n&&M("\\ is an invalid code point."),y="file"==this.l?"file host":"authority ignore slashes";else{"file"!=this.l&&(this.o=E.o,this.v=E.v,this.B=E.B,this.j=E.j);y="relative path";continue}break;case "authority first slash":if("/"==n)y="authority second slash";else{M("Expected '/', got: "+n);y="authority ignore slashes";continue}break;case "authority second slash":y="authority ignore slashes";if("/"!=n){M("Expected '/', got: "+
-n);continue}break;case "authority ignore slashes":if("/"!=n&&"\\"!=n){y="authority";continue}else M("Expected authority, got: "+n);break;case "authority":if("@"==n){ta&&(M("@ already seen."),w+="%40");ta=!0;for(n=0;n<w.length;n++)J=w[n],"\t"==J||"\n"==J||"\r"==J?M("Invalid whitespace in authority."):":"==J&&null===this.j?this.j="":(J=c(J),null!==this.j?this.j+=J:this.B+=J);w=""}else if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n){W-=w.length;w="";y="host";continue}else w+=n;break;case "file host":if(void 0==
-n||"/"==n||"\\"==n||"?"==n||"#"==n){2!=w.length||!q.test(w[0])||":"!=w[1]&&"|"!=w[1]?(0!=w.length&&(this.o=b.call(this,w),w=""),y="relative path start"):y="relative path";continue}else"\t"==n||"\n"==n||"\r"==n?M("Invalid whitespace in file host."):w+=n;break;case "host":case "hostname":if(":"!=n||ha)if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n){this.o=b.call(this,w);w="";y="relative path start";if(F)break a;continue}else"\t"!=n&&"\n"!=n&&"\r"!=n?("["==n?ha=!0:"]"==n&&(ha=!1),w+=n):M("Invalid code point in host/hostname: "+
-n);else if(this.o=b.call(this,w),w="",y="port","hostname"==F)break a;break;case "port":if(/[0-9]/.test(n))w+=n;else if(void 0==n||"/"==n||"\\"==n||"?"==n||"#"==n||F){""!=w&&(w=parseInt(w,10),w!=l[this.l]&&(this.v=w+""),w="");if(F)break a;y="relative path start";continue}else"\t"==n||"\n"==n||"\r"==n?M("Invalid code point in port: "+n):(f.call(this),this.m=!0);break;case "relative path start":"\\"==n&&M("'\\' not allowed in path.");y="relative path";if("/"!=n&&"\\"!=n)continue;break;case "relative path":if(void 0!=
-n&&"/"!=n&&"\\"!=n&&(F||"?"!=n&&"#"!=n))"\t"!=n&&"\n"!=n&&"\r"!=n&&(w+=c(n));else{"\\"==n&&M("\\ not allowed in relative path.");if(J=m[w.toLowerCase()])w=J;".."==w?(this.s.pop(),"/"!=n&&"\\"!=n&&this.s.push("")):"."==w&&"/"!=n&&"\\"!=n?this.s.push(""):"."!=w&&("file"==this.l&&0==this.s.length&&2==w.length&&q.test(w[0])&&"|"==w[1]&&(w=w[0]+":"),this.s.push(w));w="";"?"==n?(this.A="?",y="query"):"#"==n&&(this.C="#",y="fragment")}break;case "query":F||"#"!=n?void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.A+=
-d(n)):(this.C="#",y="fragment");break;case "fragment":void 0!=n&&"\t"!=n&&"\n"!=n&&"\r"!=n&&(this.C+=n)}W++}}function f(){this.B=this.va=this.l="";this.j=null;this.v=this.o="";this.s=[];this.C=this.A="";this.G=this.m=!1}function g(t,F){void 0===F||F instanceof g||(F=new g(String(F)));this.g=t;f.call(this);e.call(this,this.g.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,""),null,F)}var h=!1;try{var k=new URL("b","http://a");k.pathname="c%20d";h="http://a/c%20d"===k.href}catch(t){}if(!h){var l=Object.create(null);
-l.ftp=21;l.file=0;l.gopher=70;l.http=80;l.https=443;l.ws=80;l.wss=443;var m=Object.create(null);m["%2e"]=".";m[".%2e"]="..";m["%2e."]="..";m["%2e%2e"]="..";var q=/[a-zA-Z]/,H=/[a-zA-Z0-9+\-.]/;g.prototype={toString:function(){return this.href},get href(){if(this.m)return this.g;var t="";if(""!=this.B||null!=this.j)t=this.B+(null!=this.j?":"+this.j:"")+"@";return this.protocol+(this.G?"//"+t+this.host:"")+this.pathname+this.A+this.C},set href(t){f.call(this);e.call(this,t)},get protocol(){return this.l+
-":"},set protocol(t){this.m||e.call(this,t+":","scheme start")},get host(){return this.m?"":this.v?this.o+":"+this.v:this.o},set host(t){!this.m&&this.G&&e.call(this,t,"host")},get hostname(){return this.o},set hostname(t){!this.m&&this.G&&e.call(this,t,"hostname")},get port(){return this.v},set port(t){!this.m&&this.G&&e.call(this,t,"port")},get pathname(){return this.m?"":this.G?"/"+this.s.join("/"):this.va},set pathname(t){!this.m&&this.G&&(this.s=[],e.call(this,t,"relative path start"))},get search(){return this.m||
-!this.A||"?"==this.A?"":this.A},set search(t){!this.m&&this.G&&(this.A="?","?"==t[0]&&(t=t.slice(1)),e.call(this,t,"query"))},get hash(){return this.m||!this.C||"#"==this.C?"":this.C},set hash(t){this.m||(t?(this.C="#","#"==t[0]&&(t=t.slice(1)),e.call(this,t,"fragment")):this.C="")},get origin(){var t;if(this.m||!this.l)return"";switch(this.l){case "data":case "file":case "javascript":case "mailto":return"null"}return(t=this.host)?this.l+"://"+t:""}};var C=a.URL;C&&(g.createObjectURL=function(t){return C.createObjectURL.apply(C,
-arguments)},g.revokeObjectURL=function(t){C.revokeObjectURL(t)});a.URL=g}})(window);/*
-
-Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
-This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
-The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
-The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
-Code distributed by Google as part of the polymer project is also
-subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-*/
-var hj=window.customElements,ij=!1,jj=null;hj.polyfillWrapFlushCallback&&hj.polyfillWrapFlushCallback(function(a){jj=a;ij&&a()});function kj(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);jj&&jj();ij=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))}
-"complete"!==document.readyState?(window.addEventListener("load",kj),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",kj);kj()})):kj();}).call(this);
-
-//# sourceMappingURL=webcomponents-bundle.js.map

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/legacyOffice/LegacyOfficeWorker.js


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.br.js.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.br.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.gz.js.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorker.gz.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.br.js.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.br.wasm


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.js.mem


BIN
public/lib/webviewer/core/legacyOffice/WebB2XOfficeWorkerWasm.gz.wasm


+ 0 - 85
public/lib/webviewer/core/office/OfficeWorker.js

@@ -1,85 +0,0 @@
-(function(){/*
- *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-*****************************************************************************/
-var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.getGlobal=function(b){return"undefined"!=typeof window&&window===b?b:"undefined"!=typeof global&&null!=global?global:b};$jscomp.global=$jscomp.getGlobal(this);$jscomp.checkEs6ConformanceViaProxy=function(){try{var b={},e=Object.create(new $jscomp.global.Proxy(b,{get:function(f,a,g){return f==b&&"q"==a&&g==e}}));return!0===e.q}catch(f){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;
-$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.arrayIteratorImpl=function(b){var e=0;return function(){return e<b.length?{done:!1,value:b[e++]}:{done:!0}}};$jscomp.arrayIterator=function(b){return{next:$jscomp.arrayIteratorImpl(b)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
-$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,e,f){b!=Array.prototype&&b!=Object.prototype&&(b[e]=f.value)};$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var b=0;return function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+b++}}();
-$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.iterator;b||(b=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[b]&&$jscomp.defineProperty(Array.prototype,b,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
-$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var b=$jscomp.global.Symbol.asyncIterator;b||(b=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(b){$jscomp.initSymbolIterator();b={next:b};b[$jscomp.global.Symbol.iterator]=function(){return this};return b};
-$jscomp.makeIterator=function(b){var e="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];return e?e.call(b):$jscomp.arrayIterator(b)};$jscomp.owns=function(b,e){return Object.prototype.hasOwnProperty.call(b,e)};$jscomp.polyfill=function(b,e,f,a){if(e){f=$jscomp.global;b=b.split(".");for(a=0;a<b.length-1;a++){var g=b[a];g in f||(f[g]={});f=f[g]}b=b[b.length-1];a=f[b];e=e(a);e!=a&&null!=e&&$jscomp.defineProperty(f,b,{configurable:!0,writable:!0,value:e})}};
-$jscomp.polyfill("WeakMap",function(b){function e(){if(!b||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),a=new b([[c,2],[d,3]]);if(2!=a.get(c)||3!=a.get(d))return!1;a.delete(c);a.set(d,4);return!a.has(c)&&4==a.get(d)}catch(v){return!1}}function f(){}function a(c){if(!$jscomp.owns(c,h)){var a=new f;$jscomp.defineProperty(c,h,{value:a})}}function g(c){var d=Object[c];d&&(Object[c]=function(c){if(c instanceof f)return c;a(c);return d(c)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&
-$jscomp.ES6_CONFORMANCE)return b}else if(e())return b;var h="$jscomp_hidden_"+Math.random();g("freeze");g("preventExtensions");g("seal");var k=0,d=function(c){this.id_=(k+=Math.random()+1).toString();if(c){c=$jscomp.makeIterator(c);for(var d;!(d=c.next()).done;)d=d.value,this.set(d[0],d[1])}};d.prototype.set=function(c,d){a(c);if(!$jscomp.owns(c,h))throw Error("WeakMap key fail: "+c);c[h][this.id_]=d;return this};d.prototype.get=function(c){return $jscomp.owns(c,h)?c[h][this.id_]:void 0};d.prototype.has=
-function(c){return $jscomp.owns(c,h)&&$jscomp.owns(c[h],this.id_)};d.prototype.delete=function(c){return $jscomp.owns(c,h)&&$jscomp.owns(c[h],this.id_)?delete c[h][this.id_]:!1};return d},"es6","es3");$jscomp.MapEntry=function(){};
-$jscomp.polyfill("Map",function(b){function e(){if($jscomp.ASSUME_NO_NATIVE_MAP||!b||"function"!=typeof b||!b.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new b($jscomp.makeIterator([[c,"s"]]));if("s"!=d.get(c)||1!=d.size||d.get({x:4})||d.set({x:4},"t")!=d||2!=d.size)return!1;var a=d.entries(),g=a.next();if(g.done||g.value[0]!=c||"s"!=g.value[1])return!1;g=a.next();return g.done||4!=g.value[0].x||"t"!=g.value[1]||!a.next().done?!1:!0}catch(n){return!1}}
-if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(b&&$jscomp.ES6_CONFORMANCE)return b}else if(e())return b;$jscomp.initSymbolIterator();var f=new WeakMap,a=function(c){this.data_={};this.head_=k();this.size=0;if(c){c=$jscomp.makeIterator(c);for(var d;!(d=c.next()).done;)d=d.value,this.set(d[0],d[1])}};a.prototype.set=function(c,d){c=0===c?0:c;var a=g(this,c);a.list||(a.list=this.data_[a.id]=[]);a.entry?a.entry.value=d:(a.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:c,
-value:d},a.list.push(a.entry),this.head_.previous.next=a.entry,this.head_.previous=a.entry,this.size++);return this};a.prototype.delete=function(c){c=g(this,c);return c.entry&&c.list?(c.list.splice(c.index,1),c.list.length||delete this.data_[c.id],c.entry.previous.next=c.entry.next,c.entry.next.previous=c.entry.previous,c.entry.head=null,this.size--,!0):!1};a.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=k();this.size=0};a.prototype.has=function(c){return!!g(this,c).entry};
-a.prototype.get=function(c){return(c=g(this,c).entry)&&c.value};a.prototype.entries=function(){return h(this,function(c){return[c.key,c.value]})};a.prototype.keys=function(){return h(this,function(c){return c.key})};a.prototype.values=function(){return h(this,function(c){return c.value})};a.prototype.forEach=function(c,d){for(var a=this.entries(),b;!(b=a.next()).done;)b=b.value,c.call(d,b[1],b[0],this)};a.prototype[Symbol.iterator]=a.prototype.entries;var g=function(c,a){var b=a&&typeof a;"object"==
-b||"function"==b?f.has(a)?b=f.get(a):(b=""+ ++d,f.set(a,b)):b="p_"+a;var g=c.data_[b];if(g&&$jscomp.owns(c.data_,b))for(c=0;c<g.length;c++){var e=g[c];if(a!==a&&e.key!==e.key||a===e.key)return{id:b,list:g,index:c,entry:e}}return{id:b,list:g,index:-1,entry:void 0}},h=function(c,d){var a=c.head_;return $jscomp.iteratorPrototype(function(){if(a){for(;a.head!=c.head_;)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:d(a)};a=null}return{done:!0,value:void 0}})},k=function(){var c={};return c.previous=
-c.next=c.head=c},d=0;return a},"es6","es3");$jscomp.FORCE_POLYFILL_PROMISE=!1;
-$jscomp.polyfill("Promise",function(b){function e(){this.batch_=null}function f(a){return a instanceof g?a:new g(function(d,c){d(a)})}if(b&&!$jscomp.FORCE_POLYFILL_PROMISE)return b;e.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};e.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var a=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(b){a(b,
-0)};e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var d=0;d<a.length;++d){var c=a[d];a[d]=null;try{c()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};e.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var g=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var d=this.createResolveAndReject_();try{a(d.resolve,d.reject)}catch(c){d.reject(c)}};g.prototype.createResolveAndReject_=
-function(){function a(a){return function(b){c||(c=!0,a.call(d,b))}}var d=this,c=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};g.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof g)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var d=null!=a;break a;case "function":d=!0;break a;default:d=!1}d?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};g.prototype.resolveToNonPromiseObj_=function(a){var d=
-void 0;try{d=a.then}catch(c){this.reject_(c);return}"function"==typeof d?this.settleSameAsThenable_(d,a):this.fulfill_(a)};g.prototype.reject_=function(a){this.settle_(2,a)};g.prototype.fulfill_=function(a){this.settle_(1,a)};g.prototype.settle_=function(a,d){if(0!=this.state_)throw Error("Cannot settle("+a+", "+d+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=d;this.executeOnSettledCallbacks_()};g.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
-0;a<this.onSettledCallbacks_.length;++a)h.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};var h=new e;g.prototype.settleSameAsPromise_=function(a){var d=this.createResolveAndReject_();a.callWhenSettled_(d.resolve,d.reject)};g.prototype.settleSameAsThenable_=function(a,d){var c=this.createResolveAndReject_();try{a.call(d,c.resolve,c.reject)}catch(q){c.reject(q)}};g.prototype.then=function(a,d){function c(a,c){return"function"==typeof a?function(c){try{b(a(c))}catch(p){e(p)}}:
-c}var b,e,f=new g(function(a,c){b=a;e=c});this.callWhenSettled_(c(a,b),c(d,e));return f};g.prototype.catch=function(a){return this.then(void 0,a)};g.prototype.callWhenSettled_=function(a,d){function c(){switch(b.state_){case 1:a(b.result_);break;case 2:d(b.result_);break;default:throw Error("Unexpected state: "+b.state_);}}var b=this;null==this.onSettledCallbacks_?h.asyncExecute(c):this.onSettledCallbacks_.push(c)};g.resolve=f;g.reject=function(a){return new g(function(d,c){c(a)})};g.race=function(a){return new g(function(d,
-c){for(var b=$jscomp.makeIterator(a),g=b.next();!g.done;g=b.next())f(g.value).callWhenSettled_(d,c)})};g.all=function(a){var d=$jscomp.makeIterator(a),c=d.next();return c.done?f([]):new g(function(a,b){function g(c){return function(d){e[c]=d;h--;0==h&&a(e)}}var e=[],h=0;do e.push(void 0),h++,f(c.value).callWhenSettled_(g(e.length-1),b),c=d.next();while(!c.done)})};return g},"es6","es3");
-$jscomp.checkStringArgs=function(b,e,f){if(null==b)throw new TypeError("The 'this' value for String.prototype."+f+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+f+" must not be a regular expression");return b+""};
-$jscomp.polyfill("String.prototype.endsWith",function(b){return b?b:function(b,f){var a=$jscomp.checkStringArgs(this,b,"endsWith");b+="";void 0===f&&(f=a.length);f=Math.max(0,Math.min(f|0,a.length));for(var g=b.length;0<g&&0<f;)if(a[--f]!=b[--g])return!1;return 0>=g}},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},e={};try{return e.__proto__=b,e.a}catch(f){}return!1};
-$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,e){b.__proto__=e;if(b.__proto__!==e)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.polyfill("Object.setPrototypeOf",function(b){return b||$jscomp.setPrototypeOf},"es6","es5");
-$jscomp.assign="function"==typeof Object.assign?Object.assign:function(b,e){for(var f=1;f<arguments.length;f++){var a=arguments[f];if(a)for(var g in a)$jscomp.owns(a,g)&&(b[g]=a[g])}return b};$jscomp.polyfill("Object.assign",function(b){return b||$jscomp.assign},"es6","es3");
-(function(b){function e(a){if(f[a])return f[a].exports;var g=f[a]={i:a,l:!1,exports:{}};b[a].call(g.exports,g,g.exports,e);g.l=!0;return g.exports}var f={};e.m=b;e.c=f;e.d=function(a,b,f){e.o(a,b)||Object.defineProperty(a,b,{enumerable:!0,get:f})};e.r=function(a){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"});Object.defineProperty(a,"__esModule",{value:!0})};e.t=function(a,b){b&1&&(a=e(a));if(b&8||b&4&&"object"===typeof a&&a&&a.__esModule)return a;
-var g=Object.create(null);e.r(g);Object.defineProperty(g,"default",{enumerable:!0,value:a});if(b&2&&"string"!=typeof a)for(var f in a)e.d(g,f,function(d){return a[d]}.bind(null,f));return g};e.n=function(a){var b=a&&a.__esModule?function(){return a["default"]}:function(){return a};e.d(b,"a",b);return b};e.o=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};e.p="/core/office/";return e(e.s=13)})([function(b,e,f){f.d(e,"c",function(){return g});f.d(e,"a",function(){return k});f.d(e,"b",
-function(){return h});var a=f(1),g=function(b,c){Object(a.a)("disableLogs")||(c?console.warn(b+": "+c):console.warn(b))},h=function(a,c,b){var d=b.pop();b=b.length?b.join(", ")+" and "+d:d;g("'"+c+"' is deprecated since version "+a+". Please use "+b+" instead.")},k=function(a,c){}},function(b,e,f){f.d(e,"a",function(){return h});f.d(e,"b",function(){return k});var a={},g={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},
-_trnDebugMode:!1,_logFiltersEnabled:null},h=function(a){return g[a]},k=function(b,c){var d;g[b]=c;null===(d=a[b])||void 0===d?void 0:d.forEach(function(a){a(c)})}},function(b,e,f){f.d(e,"a",function(){return w});f.d(e,"b",function(){return z});f.d(e,"c",function(){return D});var a=f(8),g=f(0),h=f(4),k=f(3),d="undefined"===typeof window?self:window,c=d.importScripts,q=!1,u=function(a,b){q||(c(d.basePath+"decode.min.js"),q=!0);a=self.BrotliDecode(Object(k.b)(a));return b?a:Object(k.a)(a)},v=function(c,
-b){return Object(a.a)(void 0,void 0,Promise,function(){var d;return Object(a.b)(this,function(a){switch(a.label){case 0:return q?[3,2]:[4,Object(h.a)(self.Core.getWorkerPath()+"external/decode.min.js","Failed to download decode.min.js",window)];case 1:a.sent(),q=!0,a.label=2;case 2:return d=self.BrotliDecode(Object(k.b)(c)),[2,b?d:Object(k.a)(d)]}})})};(function(){function a(){this.remainingDataArrays=[]}a.prototype.processRaw=function(a){return a};a.prototype.processBrotli=function(a){this.remainingDataArrays.push(a);
-return null};a.prototype.GetNextChunk=function(a){this.decodeFunction||(this.decodeFunction=0===a[0]&&97===a[1]&&115===a[2]&&109===a[3]?this.processRaw:this.processBrotli);return this.decodeFunction(a)};a.prototype.End=function(){if(this.remainingDataArrays.length){for(var a=this.arrays,c=0,b=0;b<a.length;++b)c+=a[b].length;c=new Uint8Array(c);var d=0;for(b=0;b<a.length;++b){var g=a[b];c.set(g,d);d+=g.length}return u(c,!0)}return null};return a})();var n=!1,r=function(a){n||(c(d.basePath+"pako_inflate.min.js"),
-n=!0);var b=10;if("string"===typeof a){if(a.charCodeAt(3)&8){for(;0!==a.charCodeAt(b);++b);++b}}else if(a[3]&8){for(;0!==a[b];++b);++b}a=Object(k.b)(a);a=a.subarray(b,a.length-8);return d.pako.inflate(a,{windowBits:-15})},l=function(a,b){return b?a:Object(k.a)(a)},p=function(a){var b=!a.shouldOutputArray,d=new XMLHttpRequest;d.open("GET",a.url,a.isAsync);var e=b&&d.overrideMimeType;d.responseType=e?"text":"arraybuffer";e&&d.overrideMimeType("text/plain; charset=x-user-defined");d.send();var f=function(){var f=
-Date.now();var h=e?d.responseText:new Uint8Array(d.response);Object(g.a)("worker","Result length is "+h.length);h.length<a.compressedMaximum?(h=a.decompressFunction(h,a.shouldOutputArray),Object(g.c)("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this."),c&&Object(g.a)("worker","Decompressed length is "+h.length)):b&&
-(h=Object(k.a)(h));c&&Object(g.a)("worker",a.url+" Decompression took "+(Date.now()-f));return h};if(a.isAsync)var h=new Promise(function(b,c){d.onload=function(){200===this.status||0===this.status?b(f()):c("Download Failed "+a.url)};d.onerror=function(){c("Network error occurred "+a.url)}});else{if(200===d.status||0===d.status)return f();throw Error("Failed to load "+a.url);}return h},w=function(a){var b=a.lastIndexOf("/");-1===b&&(b=0);var d=a.slice(b).replace(".",".br.");c||(d.endsWith(".js.mem")?
-d=d.replace(".js.mem",".mem"):d.endsWith(".js")&&(d=d.concat(".mem")));return a.slice(0,b)+d},y=function(a,b){var c=a.lastIndexOf("/");-1===c&&(c=0);var d=a.slice(c).replace(".",".gz.");b.url=a.slice(0,c)+d;b.decompressFunction=r;return p(b)},m=function(a,b){b.url=w(a);b.decompressFunction=c?u:v;return p(b)},t=function(a,b){a.endsWith(".js.mem")?a=a.slice(0,-4):a.endsWith(".mem")&&(a=a.slice(0,-4)+".js.mem");b.url=a;b.decompressFunction=l;return p(b)},x=function(a,b,c,d){return a.catch(function(a){Object(g.c)(a);
-return d(b,c)})},A=function(a,b,c){var d;if(c.isAsync){var e=b[0](a,c);for(d=1;d<b.length;++d)e=x(e,a,c,b[d]);return e}for(d=0;d<b.length;++d)try{return b[d](a,c)}catch(I){Object(g.c)(I.message)}throw Error("");},D=function(a,b,c,d){return A(a,[y,m,t],{compressedMaximum:b,isAsync:c,shouldOutputArray:d})},z=function(a,b,c,d){return A(a,[m,y,t],{compressedMaximum:b,isAsync:c,shouldOutputArray:d})}},function(b,e,f){f.d(e,"b",function(){return a});f.d(e,"a",function(){return g});var a=function(a){if("string"===
-typeof a){for(var b=new Uint8Array(a.length),d=a.length,c=0;c<d;c++)b[c]=a.charCodeAt(c);return b}return a},g=function(a){if("string"!==typeof a){for(var b="",d=0,c=a.length,g;d<c;)g=a.subarray(d,d+1024),d+=1024,b+=String.fromCharCode.apply(null,g);return b}return a}},function(b,e,f){function a(a,b,d){return new Promise(function(c){if(!a)return c();var e=d.document.createElement("script");e.type="text/javascript";e.onload=function(){c()};e.onerror=function(){b&&Object(g.c)(b);c()};e.src=a;d.document.getElementsByTagName("head")[0].appendChild(e)})}
-f.d(e,"a",function(){return a});var g=f(0)},function(b,e,f){function a(a,b,e){function c(n){f=f||Date.now();return n?(Object(g.a)("load","Try instantiateStreaming"),fetch(Object(h.a)(a)).then(function(a){return WebAssembly.instantiateStreaming(a,b)}).catch(function(b){Object(g.a)("load","instantiateStreaming Failed "+a+" message "+b.message);return c(!1)})):Object(h.b)(a,e,!0,!0).then(function(a){d=Date.now();Object(g.a)("load","Request took "+(d-f)+" ms");return WebAssembly.instantiate(a,b)})}var d,
-f;return c(!!WebAssembly.instantiateStreaming).then(function(a){Object(g.a)("load","WASM compilation took "+(Date.now()-(d||f))+" ms");return a})}f.d(e,"a",function(){return a});var g=f(0),h=f(2),k=f(4);f.d(e,"b",function(){return k.a})},function(b,e,f){f.d(e,"c",function(){return v});f.d(e,"b",function(){return n});f.d(e,"a",function(){return r});f(0);var a="undefined"===typeof window?self:window;b=function(){var a=navigator.userAgent.toLowerCase();return(a=/(msie) ([\w.]+)/.exec(a)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(a))?
-parseInt(a[2],10):a}();var g=function(){var b=a.navigator.userAgent.match(/OPR/),c=a.navigator.userAgent.match(/Maxthon/),d=a.navigator.userAgent.match(/Edge/);return a.navigator.userAgent.match(/Chrome\/(.*?) /)&&!b&&!c&&!d}();(function(){if(!g)return null;var b=a.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return b?parseInt(b[1],10):b})();var h=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&a.navigator.userAgent.match(/Chrome\/(.*?) /);(function(){if(!h)return null;
-var b=a.navigator.userAgent.match(/Edg\/([0-9]+)\./);return b?parseInt(b[1],10):b})();e=/iPad|iPhone|iPod/.test(a.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;var k=function(){var b=a.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return b?parseFloat(b[1]):b}(),d=/^((?!chrome|android).)*safari/i.test(a.navigator.userAgent)||/^((?!chrome|android).)*$/.test(a.navigator.userAgent)&&e,c=a.navigator.userAgent.match(/Firefox/);(function(){if(!c)return null;
-var b=a.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return b?parseInt(b[1],10):b})();b||/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);a.navigator.userAgent.indexOf("Android");var q=/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(a.navigator.userAgent),u=a.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)?14<=parseInt(a.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],10):!1,v=function(){return!u&&
-(d&&14>k||q)},n=!(!self.WebAssembly||!self.WebAssembly.validate),r=-1<a.navigator.userAgent.indexOf("Edge/16")||-1<a.navigator.userAgent.indexOf("MSAppHost")},function(b,e){e=function(){return this}();try{e=e||(new Function("return this"))()}catch(f){"object"===typeof window&&(e=window)}b.exports=e},function(b,e,f){function a(a,b,d,c){function e(a){return a instanceof d?a:new d(function(b){b(a)})}return new (d||(d=Promise))(function(d,g){function f(a){try{l(c.next(a))}catch(w){g(w)}}function h(a){try{l(c["throw"](a))}catch(w){g(w)}}
-function l(a){a.done?d(a.value):e(a.value).then(f,h)}l((c=c.apply(a,b||[])).next())})}function g(a,b){function d(a){return function(b){return c([a,b])}}function c(c){if(g)throw new TypeError("Generator is already executing.");for(;e;)try{if(g=1,f&&(h=c[0]&2?f["return"]:c[0]?f["throw"]||((h=f["return"])&&h.call(f),0):f.next)&&!(h=h.call(f,c[1])).done)return h;if(f=0,h)c=[c[0]&2,h.value];switch(c[0]){case 0:case 1:h=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++;f=c[1];c=[0];
-continue;case 7:c=e.ops.pop();e.trys.pop();continue;default:if(!(h=e.trys,h=0<h.length&&h[h.length-1])&&(6===c[0]||2===c[0])){e=0;continue}if(3===c[0]&&(!h||c[1]>h[0]&&c[1]<h[3]))e.label=c[1];else if(6===c[0]&&e.label<h[1])e.label=h[1],h=c;else if(h&&e.label<h[2])e.label=h[2],e.ops.push(c);else{h[2]&&e.ops.pop();e.trys.pop();continue}}c=b.call(a,e)}catch(p){c=[6,p],f=0}finally{g=h=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}var e={label:0,sent:function(){if(h[0]&1)throw h[1];return h[1]},
-trys:[],ops:[]},g,f,h,k;return k={next:d(0),"throw":d(1),"return":d(2)},"function"===typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k}f.d(e,"a",function(){return a});f.d(e,"b",function(){return g})},function(b,e,f){e.a=function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){void 0===a&&(a=0);void 0===b&&(b=this.byteLength);a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,
-b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var e=new ArrayBuffer(b-a),f=new Uint8Array(e);a=new Uint8Array(this,a,b-a);f.set(a);return e})}},function(b,e,f){f.d(e,"a",function(){return a});f(11);var a=function(a,b){return function(){}}},function(b,e,f){e.a=function(a){var b={};decodeURIComponent(a.slice(1)).split("&").forEach(function(a){a=a.split("=",2);b[a[0]]=a[1]});return b}},function(b,e,f){f.d(e,"a",function(){return d});var a=f(2),g=f(5),h=f(6),k=function(){function a(a){var b=
-this;this.promise=a.then(function(a){b.response=a;b.status=200})}a.prototype.addEventListener=function(a,b){this.promise.then(b)};return a}(),d=function(b,d,e){if(!h.b||h.a||Object(h.c)()||e){e=Object(a.b)((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+b+".js.mem",d[".js.mem"],!1);var c=Object(a.c)((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+b+".mem",d[".mem"],!0,!0);self.Module.memoryInitializerRequest=new k(c)}else self.Module.instantiateWasm=function(a,
-c){return Object(g.a)(b+"Wasm.wasm",a,d["Wasm.wasm"]).then(function(a){c(a.instance)})},e=Object(a.b)(b+"Wasm.js.mem",d["Wasm.js.mem"],!1,!1);e=new Blob([e],{type:"application/javascript"});importScripts(URL.createObjectURL(e))}},function(b,e,f){b.exports=f(14)},function(b,e,f){f.r(e);f(15);f(20);b=f(9);f(21);Object(b.a)()},function(b,e,f){(function(a,b){function e(a){"@babel/helpers - typeof";return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&
-"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(a)}(function(a){function d(){for(var a=0;a<B.length;a++)B[a][0](B[a][1]);B=[];G=!1}function c(a,b){B.push([a,b]);G||(G=!0,H(d,0))}function g(a,b){function c(a){n(b,a)}function d(a){l(b,a)}try{a(c,d)}catch(C){d(C)}}function h(a){var b=a.owner,c=b.state_;b=b.data_;var d=a[c];a=a.then;if("function"===typeof d){c=z;try{b=d(b)}catch(C){l(a,C)}}k(a,b)||(c===z&&n(a,b),c===E&&l(a,b))}function k(a,b){var c;try{if(a===
-b)throw new TypeError("A promises callback cannot return that same promise.");if(b&&("function"===typeof b||"object"===e(b))){var d=b.then;if("function"===typeof d)return d.call(b,function(d){c||(c=!0,b!==d?n(a,d):r(a,d))},function(b){c||(c=!0,l(a,b))}),!0}}catch(C){return c||l(a,C),!0}return!1}function n(a,b){a!==b&&k(a,b)||r(a,b)}function r(a,b){a.state_===A&&(a.state_=D,a.data_=b,c(w,a))}function l(a,b){a.state_===A&&(a.state_=D,a.data_=b,c(y,a))}function p(a){var b=a.then_;a.then_=void 0;for(a=
-0;a<b.length;a++)h(b[a])}function w(a){a.state_=z;p(a)}function y(a){a.state_=E;p(a)}function m(a){if("function"!==typeof a)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof m))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this.then_=[];g(a,this)}a.createPromiseCapability=function(){var a={};a.promise=new m(function(b,c){a.resolve=b;a.reject=c});return a};var t=a.Promise,
-x=t&&"resolve"in t&&"reject"in t&&"all"in t&&"race"in t&&function(){var a;new t(function(b){a=b});return"function"===typeof a}();"undefined"!==typeof exports&&exports?(exports.Promise=x?t:m,exports.Polyfill=m):"function"===typeof define&&f(19)?define(function(){return x?t:m}):x||(a.Promise=m);var A="pending",D="sealed",z="fulfilled",E="rejected",F=function(){},H="undefined"!==typeof b?b:setTimeout,B=[],G;m.prototype={constructor:m,state_:A,then_:null,data_:void 0,then:function(a,b){a={owner:this,
-then:new this.constructor(F),fulfilled:a,rejected:b};this.state_===z||this.state_===E?c(h,a):this.then_.push(a);return a.then},"catch":function(a){return this.then(null,a)}};m.all=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.all().");return new this(function(b,c){function d(a){f++;return function(c){e[a]=c;--f||b(e)}}for(var e=[],f=0,g=0,h;g<a.length;g++)(h=a[g])&&"function"===typeof h.then?h.then(d(g),c):e[g]=h;f||b(e)})};
-m.race=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.race().");return new this(function(b,c){for(var d=0,e;d<a.length;d++)(e=a[d])&&"function"===typeof e.then?e.then(b,c):b(e)})};m.resolve=function(a){return a&&"object"===e(a)&&a.constructor===this?a:new this(function(b){b(a)})};m.reject=function(a){return new this(function(b,c){c(a)})}})("undefined"!==typeof window?window:"undefined"!==typeof a?a:"undefined"!==typeof self?
-self:void 0)}).call(this,f(7),f(16).setImmediate)},function(b,e,f){(function(a){function b(a,b){this._id=a;this._clearFn=b}var h="undefined"!==typeof a&&a||"undefined"!==typeof self&&self||window,k=Function.prototype.apply;e.setTimeout=function(){return new b(k.call(setTimeout,h,arguments),clearTimeout)};e.setInterval=function(){return new b(k.call(setInterval,h,arguments),clearInterval)};e.clearTimeout=e.clearInterval=function(a){a&&a.close()};b.prototype.unref=b.prototype.ref=function(){};b.prototype.close=
-function(){this._clearFn.call(h,this._id)};e.enroll=function(a,b){clearTimeout(a._idleTimeoutId);a._idleTimeout=b};e.unenroll=function(a){clearTimeout(a._idleTimeoutId);a._idleTimeout=-1};e._unrefActive=e.active=function(a){clearTimeout(a._idleTimeoutId);var b=a._idleTimeout;0<=b&&(a._idleTimeoutId=setTimeout(function(){a._onTimeout&&a._onTimeout()},b))};f(17);e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof a&&a.setImmediate||this&&this.setImmediate;e.clearImmediate=
-"undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof a&&a.clearImmediate||this&&this.clearImmediate}).call(this,f(7))},function(b,e,f){(function(a,b){(function(a,e){function d(a){delete w[a]}function c(a){if(y)setTimeout(c,0,a);else{var b=w[a];if(b){y=!0;try{var f=b.callback,g=b.args;switch(g.length){case 0:f();break;case 1:f(g[0]);break;case 2:f(g[0],g[1]);break;case 3:f(g[0],g[1],g[2]);break;default:f.apply(e,g)}}finally{d(a),y=!1}}}}function f(){t=function(a){b.nextTick(function(){c(a)})}}
-function g(){if(a.postMessage&&!a.importScripts){var b=!0,c=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=c;return b}}function h(){var b="setImmediate$"+Math.random()+"$",d=function(d){d.source===a&&"string"===typeof d.data&&0===d.data.indexOf(b)&&c(+d.data.slice(b.length))};a.addEventListener?a.addEventListener("message",d,!1):a.attachEvent("onmessage",d);t=function(c){a.postMessage(b+c,"*")}}function k(){var a=new MessageChannel;a.port1.onmessage=function(a){c(a.data)};
-t=function(b){a.port2.postMessage(b)}}function r(){var a=m.documentElement;t=function(b){var d=m.createElement("script");d.onreadystatechange=function(){c(b);d.onreadystatechange=null;a.removeChild(d);d=null};a.appendChild(d)}}function l(){t=function(a){setTimeout(c,0,a)}}if(!a.setImmediate){var p=1,w={},y=!1,m=a.document,t,x=Object.getPrototypeOf&&Object.getPrototypeOf(a);x=x&&x.setTimeout?x:a;"[object process]"==={}.toString.call(a.process)?f():g()?h():a.MessageChannel?k():m&&"onreadystatechange"in
-m.createElement("script")?r():l();x.setImmediate=function(a){"function"!==typeof a&&(a=new Function(""+a));for(var b=Array(arguments.length-1),c=0;c<b.length;c++)b[c]=arguments[c+1];w[p]={callback:a,args:b};t(p);return p++};x.clearImmediate=d}})("undefined"===typeof self?"undefined"===typeof a?this:a:self)}).call(this,f(7),f(18))},function(b,e){function f(){throw Error("setTimeout has not been defined");}function a(){throw Error("clearTimeout has not been defined");}function g(a){if(u===setTimeout)return setTimeout(a,
-0);if((u===f||!u)&&setTimeout)return u=setTimeout,setTimeout(a,0);try{return u(a,0)}catch(y){try{return u.call(null,a,0)}catch(m){return u.call(this,a,0)}}}function h(b){if(v===clearTimeout)return clearTimeout(b);if((v===a||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(b);try{return v(b)}catch(y){try{return v.call(null,b)}catch(m){return v.call(this,b)}}}function k(){r&&l&&(r=!1,l.length?n=l.concat(n):p=-1,n.length&&d())}function d(){if(!r){var a=g(k);r=!0;for(var b=n.length;b;){l=n;for(n=
-[];++p<b;)l&&l[p].run();p=-1;b=n.length}l=null;r=!1;h(a)}}function c(a,b){this.fun=a;this.array=b}function q(){}b=b.exports={};try{var u="function"===typeof setTimeout?setTimeout:f}catch(w){u=f}try{var v="function"===typeof clearTimeout?clearTimeout:a}catch(w){v=a}var n=[],r=!1,l,p=-1;b.nextTick=function(a){var b=Array(arguments.length-1);if(1<arguments.length)for(var e=1;e<arguments.length;e++)b[e-1]=arguments[e];n.push(new c(a,b));1!==n.length||r||g(d)};c.prototype.run=function(){this.fun.apply(null,
-this.array)};b.title="browser";b.browser=!0;b.env={};b.argv=[];b.version="";b.versions={};b.on=q;b.addListener=q;b.once=q;b.off=q;b.removeListener=q;b.removeAllListeners=q;b.emit=q;b.prependListener=q;b.prependOnceListener=q;b.listeners=function(a){return[]};b.binding=function(a){throw Error("process.binding is not supported");};b.cwd=function(){return"/"};b.chdir=function(a){throw Error("process.chdir is not supported");};b.umask=function(){return 0}},function(b,e){b.exports={}},function(b,e,f){(function(a){"undefined"===
-typeof a.crypto&&(a.crypto={getRandomValues:function(a){for(var b=0;b<a.length;b++)a[b]=256*Math.random()}})})("undefined"===typeof window?self:window)},function(b,e,f){function a(b){"@babel/helpers - typeof";return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},a(b)}var g=f(10),h=f(12),k=null;(function(b){function c(a){l||(l=[]);l.push(a)}var d,
-e,f,n,r=!1,l=[],p=function(){function c(){d=function(){}}function p(b){var c=[];return{resource_array:c,msg:JSON.stringify(b.data,function(b,d){if("object"===a(d)&&(b=null,d instanceof Uint8Array?b=d:d instanceof ArrayBuffer&&(b=new Uint8Array(d)),b)){d=f(b.length);var e=n(d);e&&(new Uint8Array(Module.HEAPU8.buffer,e,b.length)).set(b);c.push(d);return{__trn_res_id:d}}return d})}}function m(){r=!0;postMessage({type:"abort",data:{error:"Office worker has terminated unexpectedly"}})}function q(a){if(!r)try{var b=
-p(a);e(b.msg)}catch(F){m(F)}}b.basePath="../";var x=b.officeWorkerPath||"";b.workerBasePath&&(b.basePath=b.workerBasePath);b.basePath=b.externalPath?b.externalPath:b.basePath+"external/";importScripts("".concat(b.basePath,"Promise.js"));b.ContinueFunc=function(a){d("ContinueFunc called");setTimeout(function(){onmessage({data:{action:"continue"}})},a)};if(b.pdfWorkerPath)var u=b.pdfWorkerPath;if(b.officeAsmPath)var v=b.officeAsmPath;b.Module={memoryInitializerPrefixURL:u,asmjsPrefix:v,onRuntimeInitialized:function(){d||
-c();var a=Date.now()-k;Object(g.a)("load","time duration from start to ready: ".concat(JSON.stringify(a)));e=function(a){if(null!==a&&void 0!==a&&0!==a&&!r){var b=(a.length<<2)+1,c=Module._malloc(b);0<stringToUTF8(a,c,b)&&Module._TRN_OnMessage(c)}};f=function(a){return Module._TRN_CreateBufferResource(a)};n=function(a){return Module._TRN_GetResourcePointer(a)};d("OnReady called");onmessage=q;Module._TRN_InitWorker();for(a=0;a<l.length;++a)onmessage(l[a]);l=null},fetchSelf:function(){k=Date.now();
-Object(h.a)("".concat(x,"WebOfficeWorker"),{"Wasm.wasm":5E6,"Wasm.js.mem":1E5,".js.mem":5E6,".mem":3E6},!!navigator.userAgent.match(/Edge/i)||b.wasmDisabled)},onAbort:m,noExitRuntime:!0}};b.onmessage=function(a){"init"===a.data.action&&(b.wasmDisabled=!a.data.wasm,b.externalPath=a.data.externalPath,b.officeAsmPath=a.data.officeAsmPath,b.pdfWorkerPath=a.data.pdfWorkerPath,b.onmessage=c,p(),b.Module.fetchSelf())}})("undefined"===typeof window?self:window)}]);}).call(this || window)

BIN
public/lib/webviewer/core/office/WebOfficeWorker.br.js.mem


BIN
public/lib/webviewer/core/office/WebOfficeWorker.br.mem


BIN
public/lib/webviewer/core/office/WebOfficeWorker.gz.js.mem


BIN
public/lib/webviewer/core/office/WebOfficeWorker.gz.mem


+ 0 - 10
public/lib/webviewer/core/office/WebOfficeWorkerSubzero.nmf

@@ -1,10 +0,0 @@
-{
-  "program": {
-    "portable":{
-    	"pnacl-translate": {
-      	"url" : "WebOfficeWorker.pexe",
-		"optlevel": 0
-      } 
-    }
-  }
-}

BIN
public/lib/webviewer/core/office/WebOfficeWorkerWasm.br.js.mem


BIN
public/lib/webviewer/core/office/WebOfficeWorkerWasm.br.wasm


BIN
public/lib/webviewer/core/office/WebOfficeWorkerWasm.gz.js.mem


BIN
public/lib/webviewer/core/office/WebOfficeWorkerWasm.gz.wasm


+ 0 - 1193
public/lib/webviewer/core/pdf/PDFNet.js

@@ -1,1193 +0,0 @@
-(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(array){var index=0;return function(){return index<array.length?{done:!1,value:array[index++]}:{done:!0}}};$jscomp.arrayIterator=function(array){return{next:$jscomp.arrayIteratorImpl(array)}};$jscomp.makeIterator=function(iterable){var iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&iterable[Symbol.iterator];return iteratorFunction?iteratorFunction.call(iterable):$jscomp.arrayIterator(iterable)};
-$jscomp.getGlobal=function(maybeGlobal){return"undefined"!=typeof window&&window===maybeGlobal?maybeGlobal:"undefined"!=typeof global&&null!=global?global:maybeGlobal};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
-$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(target,property,descriptor){target!=Array.prototype&&target!=Object.prototype&&(target[property]=descriptor.value)};
-$jscomp.polyfill=function(target,polyfill,fromLang,toLang){if(polyfill){fromLang=$jscomp.global;target=target.split(".");for(toLang=0;toLang<target.length-1;toLang++){var key=target[toLang];key in fromLang||(fromLang[key]={});fromLang=fromLang[key]}target=target[target.length-1];toLang=fromLang[target];polyfill=polyfill(toLang);polyfill!=toLang&&null!=polyfill&&$jscomp.defineProperty(fromLang,target,{configurable:!0,writable:!0,value:polyfill})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
-$jscomp.polyfill("Promise",function(NativePromise){function AsyncExecutor(){this.batch_=null}function resolvingPromise(opt_value){return opt_value instanceof PolyfillPromise?opt_value:new PolyfillPromise(function(resolve,reject){resolve(opt_value)})}if(NativePromise&&!$jscomp.FORCE_POLYFILL_PROMISE)return NativePromise;AsyncExecutor.prototype.asyncExecute=function(f){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(f);return this};AsyncExecutor.prototype.asyncExecuteBatch_=
-function(){var self=this;this.asyncExecuteFunction(function(){self.executeBatch_()})};var nativeSetTimeout=$jscomp.global.setTimeout;AsyncExecutor.prototype.asyncExecuteFunction=function(f){nativeSetTimeout(f,0)};AsyncExecutor.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var executingBatch=this.batch_;this.batch_=[];for(var i=0;i<executingBatch.length;++i){var f=executingBatch[i];executingBatch[i]=null;try{f()}catch(error){this.asyncThrow_(error)}}}this.batch_=null};AsyncExecutor.prototype.asyncThrow_=
-function(exception){this.asyncExecuteFunction(function(){throw exception;})};var PolyfillPromise=function(executor){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var resolveAndReject=this.createResolveAndReject_();try{executor(resolveAndReject.resolve,resolveAndReject.reject)}catch(e){resolveAndReject.reject(e)}};PolyfillPromise.prototype.createResolveAndReject_=function(){function firstCallWins(method){return function(x){alreadyCalled||(alreadyCalled=!0,method.call(thisPromise,x))}}
-var thisPromise=this,alreadyCalled=!1;return{resolve:firstCallWins(this.resolveTo_),reject:firstCallWins(this.reject_)}};PolyfillPromise.prototype.resolveTo_=function(value){if(value===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(value instanceof PolyfillPromise)this.settleSameAsPromise_(value);else{a:switch(typeof value){case "object":var JSCompiler_inline_result=null!=value;break a;case "function":JSCompiler_inline_result=!0;break a;default:JSCompiler_inline_result=
-!1}JSCompiler_inline_result?this.resolveToNonPromiseObj_(value):this.fulfill_(value)}};PolyfillPromise.prototype.resolveToNonPromiseObj_=function(obj){var thenMethod=void 0;try{thenMethod=obj.then}catch(error){this.reject_(error);return}"function"==typeof thenMethod?this.settleSameAsThenable_(thenMethod,obj):this.fulfill_(obj)};PolyfillPromise.prototype.reject_=function(reason){this.settle_(2,reason)};PolyfillPromise.prototype.fulfill_=function(value){this.settle_(1,value)};PolyfillPromise.prototype.settle_=
-function(settledState,valueOrReason){if(0!=this.state_)throw Error("Cannot settle("+settledState+", "+valueOrReason+"): Promise already settled in state"+this.state_);this.state_=settledState;this.result_=valueOrReason;this.executeOnSettledCallbacks_()};PolyfillPromise.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var i=0;i<this.onSettledCallbacks_.length;++i)asyncExecutor.asyncExecute(this.onSettledCallbacks_[i]);this.onSettledCallbacks_=null}};var asyncExecutor=
-new AsyncExecutor;PolyfillPromise.prototype.settleSameAsPromise_=function(promise){var methods=this.createResolveAndReject_();promise.callWhenSettled_(methods.resolve,methods.reject)};PolyfillPromise.prototype.settleSameAsThenable_=function(thenMethod,thenable){var methods=this.createResolveAndReject_();try{thenMethod.call(thenable,methods.resolve,methods.reject)}catch(error){methods.reject(error)}};PolyfillPromise.prototype.then=function(onFulfilled,onRejected){function createCallback(paramF,defaultF){return"function"==
-typeof paramF?function(x){try{resolveChild(paramF(x))}catch(error){rejectChild(error)}}:defaultF}var resolveChild,rejectChild,childPromise=new PolyfillPromise(function(resolve,reject){resolveChild=resolve;rejectChild=reject});this.callWhenSettled_(createCallback(onFulfilled,resolveChild),createCallback(onRejected,rejectChild));return childPromise};PolyfillPromise.prototype.catch=function(onRejected){return this.then(void 0,onRejected)};PolyfillPromise.prototype.callWhenSettled_=function(onFulfilled,
-onRejected){function callback(){switch(thisPromise.state_){case 1:onFulfilled(thisPromise.result_);break;case 2:onRejected(thisPromise.result_);break;default:throw Error("Unexpected state: "+thisPromise.state_);}}var thisPromise=this;null==this.onSettledCallbacks_?asyncExecutor.asyncExecute(callback):this.onSettledCallbacks_.push(callback)};PolyfillPromise.resolve=resolvingPromise;PolyfillPromise.reject=function(opt_reason){return new PolyfillPromise(function(resolve,reject){reject(opt_reason)})};
-PolyfillPromise.race=function(thenablesOrValues){return new PolyfillPromise(function(resolve,reject){for(var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();!iterRec.done;iterRec=iterator.next())resolvingPromise(iterRec.value).callWhenSettled_(resolve,reject)})};PolyfillPromise.all=function(thenablesOrValues){var iterator=$jscomp.makeIterator(thenablesOrValues),iterRec=iterator.next();return iterRec.done?resolvingPromise([]):new PolyfillPromise(function(resolveAll,rejectAll){function onFulfilled(i){return function(ithResult){resultsArray[i]=
-ithResult;unresolvedCount--;0==unresolvedCount&&resolveAll(resultsArray)}}var resultsArray=[],unresolvedCount=0;do resultsArray.push(void 0),unresolvedCount++,resolvingPromise(iterRec.value).callWhenSettled_(onFulfilled(resultsArray.length-1),rejectAll),iterRec=iterator.next();while(!iterRec.done)})};return PolyfillPromise},"es6","es3");
-$jscomp.checkStringArgs=function(thisArg,arg,func){if(null==thisArg)throw new TypeError("The 'this' value for String.prototype."+func+" must not be null or undefined");if(arg instanceof RegExp)throw new TypeError("First argument to String.prototype."+func+" must not be a regular expression");return thisArg+""};
-$jscomp.polyfill("String.prototype.startsWith",function(orig){return orig?orig:function(searchString,opt_position){var string=$jscomp.checkStringArgs(this,searchString,"startsWith");searchString+="";var strLen=string.length,searchLen=searchString.length;opt_position=Math.max(0,Math.min(opt_position|0,string.length));for(var j=0;j<searchLen&&opt_position<strLen;)if(string[opt_position++]!=searchString[j++])return!1;return j>=searchLen}},"es6","es3");
-$jscomp.polyfill("Array.from",function(orig){return orig?orig:function(arrayLike,opt_mapFn,opt_thisArg){opt_mapFn=null!=opt_mapFn?opt_mapFn:function(x){return x};var result=[],iteratorFunction="undefined"!=typeof Symbol&&Symbol.iterator&&arrayLike[Symbol.iterator];if("function"==typeof iteratorFunction){arrayLike=iteratorFunction.call(arrayLike);for(var k=0;!(iteratorFunction=arrayLike.next()).done;)result.push(opt_mapFn.call(opt_thisArg,iteratorFunction.value,k++))}else for(iteratorFunction=arrayLike.length,
-k=0;k<iteratorFunction;k++)result.push(opt_mapFn.call(opt_thisArg,arrayLike[k],k));return result}},"es6","es3");
-(function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=!0;return module.exports}var installedModules={};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,
-name,{enumerable:!0,get:getter})};__webpack_require__.r=function(exports){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});Object.defineProperty(exports,"__esModule",{value:!0})};__webpack_require__.t=function(value,mode){mode&1&&(value=__webpack_require__(value));if(mode&8||mode&4&&"object"===typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",
-{enumerable:!0,value:value});if(mode&2&&"string"!=typeof value)for(var key$jscomp$0 in value)__webpack_require__.d(ns,key$jscomp$0,function(key){return value[key]}.bind(null,key$jscomp$0));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};
-__webpack_require__.p="/core/pdf/";return __webpack_require__(__webpack_require__.s=0)})([function(module,exports,__webpack_require__){module.exports=__webpack_require__(1)},function(module,exports$jscomp$0){function _typeof(obj$jscomp$0){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(obj){return typeof obj}:function(obj){return obj&&"function"==typeof Symbol&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj},_typeof(obj$jscomp$0)}
-var createdObjects=[],lockedObjects=[],stackCallCounter=0,beginOperationCounter=0,deallocStackCounter=[],unlockStackCounter=[];(function(exports){function optionsHelpers(){return{putBool:function(implObj,key,value){if(!1!==value&&!0!==value)throw new TypeError("An boolean value is expected for putBool");implObj[key]=value},putNumber:function(implObj,key,value){implObj[key]=0+value},jsColorToNumber:function(jsColor){return 4278190080+65536*Math.floor(jsColor.R)+256*Math.floor(jsColor.G)+Math.floor(jsColor.B)},
-jsColorFromNumber:function(number){return{A:5.9604644775390625E-8*number&255,R:((number|0)&16711680)>>>16,G:((number|0)&65280)>>>8,B:(number|0)&255}}}}function finishGenerator(iterator){function iterate(val){val=iterator.next(val);var promise=val.value;return val.done?val.value:promise.then(iterate)}return Promise.resolve().then(iterate)}var PDFNet=exports.Core.PDFNet?exports.Core.PDFNet:{};PDFNet.Convert=exports.Core.PDFNet&&exports.Core.PDFNet.Convert?exports.Core.PDFNet.Convert:{};PDFNet.Optimizer=
-{};exports.Core&&exports.Core.enableFullPDF();exports.isArrayBuffer=function(obj){return obj instanceof ArrayBuffer||null!=obj&&null!=obj.constructor&&"ArrayBuffer"===obj.constructor.name&&"number"===typeof obj.byteLength};PDFNet.Destroyable=function(){if(this.constructor===PDFNet.Destroyable)throw Error("Can't instantiate abstract class!");};PDFNet.Destroyable.prototype.takeOwnership=function(){avoidCleanup(this.id)};PDFNet.Destroyable.prototype.destroy=function(){this.takeOwnership();return PDFNet.sendWithPromise(this.name+
-".destroy",{auto_dealloc_obj:this.id})};PDFNet.Action=function(id){this.name="Action";this.id=id};PDFNet.ActionParameter=function(id){this.name="ActionParameter";this.id=id};PDFNet.ActionParameter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Annot=function(id){this.name="Annot";this.id=id};PDFNet.AnnotBorderStyle=function(id){this.name="AnnotBorderStyle";this.id=id};PDFNet.AnnotBorderStyle.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.AttrObj=function(id){this.name=
-"AttrObj";this.id=id};PDFNet.Bookmark=function(id){this.name="Bookmark";this.id=id};PDFNet.ByteRange=function(m_offset,m_size){this.name="ByteRange";if(m_offset&&"undefined"===typeof m_size)copyFunc(m_offset,this);else return"undefined"===typeof m_offset&&(m_offset=0),"undefined"===typeof m_size&&(m_size=0),new PDFNet.ByteRange({m_offset:m_offset,m_size:m_size})};PDFNet.CaretAnnot=function(id){this.name="CaretAnnot";this.id=id};PDFNet.CheckBoxWidget=function(id){this.name="CheckBoxWidget";this.id=
-id};PDFNet.ChunkRenderer=function(id){this.name="ChunkRenderer";this.id=id};PDFNet.CircleAnnot=function(id){this.name="CircleAnnot";this.id=id};PDFNet.ClassMap=function(id){this.name="ClassMap";this.id=id};PDFNet.ColorPt=function(id){this.name="ColorPt";this.id=id};PDFNet.ColorPt.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ColorSpace=function(id){this.name="ColorSpace";this.id=id};PDFNet.ColorSpace.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ComboBoxWidget=function(id){this.name=
-"ComboBoxWidget";this.id=id};PDFNet.ContentItem=function(o,p){this.name="ContentItem";if(o&&"undefined"===typeof p)copyFunc(o,this);else return"undefined"===typeof o&&(o="0"),"undefined"===typeof p&&(p="0"),new PDFNet.ContentItem({o:o,p:p})};PDFNet.ContentReplacer=function(id){this.name="ContentReplacer";this.id=id};PDFNet.ContentReplacer.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ConversionMonitor=function(id){this.name="ConversionMonitor";this.id=id};PDFNet.ConversionMonitor.prototype=
-Object.create(PDFNet.Destroyable.prototype);PDFNet.Date=function(year,month,day,hour,minute,second,UT,UT_hour,UT_minutes,mp_obj){this.name="Date";if(year&&"undefined"===typeof month)copyFunc(year,this);else return"undefined"===typeof year&&(year=0),"undefined"===typeof month&&(month=0),"undefined"===typeof day&&(day=0),"undefined"===typeof hour&&(hour=0),"undefined"===typeof minute&&(minute=0),"undefined"===typeof second&&(second=0),"undefined"===typeof UT&&(UT=0),"undefined"===typeof UT_hour&&(UT_hour=
-0),"undefined"===typeof UT_minutes&&(UT_minutes=0),"undefined"===typeof mp_obj&&(mp_obj="0"),new PDFNet.Date({year:year,month:month,day:day,hour:hour,minute:minute,second:second,UT:UT,UT_hour:UT_hour,UT_minutes:UT_minutes,mp_obj:mp_obj})};PDFNet.Destination=function(id){this.name="Destination";this.id=id};PDFNet.DictIterator=function(id){this.name="DictIterator";this.id=id};PDFNet.DictIterator.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.DigestAlgorithm=function(id){this.name="DigestAlgorithm";
-this.id=id};PDFNet.DigitalSignatureField=function(mp_field_dict_obj){this.name="DigitalSignatureField";if("object"===_typeof(mp_field_dict_obj))copyFunc(mp_field_dict_obj,this);else if("undefined"!==typeof mp_field_dict_obj)return new PDFNet.DigitalSignatureField({mp_field_dict_obj:mp_field_dict_obj})};PDFNet.DisallowedChange=function(id){this.name="DisallowedChange";this.id=id};PDFNet.DisallowedChange.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.DocSnapshot=function(id){this.name=
-"DocSnapshot";this.id=id};PDFNet.DocSnapshot.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Element=function(id){this.name="Element";this.id=id};PDFNet.ElementBuilder=function(id){this.name="ElementBuilder";this.id=id};PDFNet.ElementBuilder.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementReader=function(id){this.name="ElementReader";this.id=id};PDFNet.ElementReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ElementWriter=function(id){this.name="ElementWriter";
-this.id=id};PDFNet.ElementWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.EmbeddedTimestampVerificationResult=function(id){this.name="EmbeddedTimestampVerificationResult";this.id=id};PDFNet.EmbeddedTimestampVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FDFDoc=function(id){this.name="FDFDoc";this.id=id};PDFNet.FDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FDFField=function(mp_leaf_node,mp_root_array){this.name="FDFField";if(mp_leaf_node&&
-"undefined"===typeof mp_root_array)copyFunc(mp_leaf_node,this);else return"undefined"===typeof mp_leaf_node&&(mp_leaf_node="0"),"undefined"===typeof mp_root_array&&(mp_root_array="0"),new PDFNet.FDFField({mp_leaf_node:mp_leaf_node,mp_root_array:mp_root_array})};PDFNet.Field=function(leaf_node,builder){this.name="Field";if(leaf_node&&"undefined"===typeof builder)copyFunc(leaf_node,this);else return"undefined"===typeof leaf_node&&(leaf_node="0"),"undefined"===typeof builder&&(builder="0"),new PDFNet.Field({leaf_node:leaf_node,
-builder:builder})};PDFNet.FileAttachmentAnnot=function(id){this.name="FileAttachmentAnnot";this.id=id};PDFNet.FileSpec=function(id){this.name="FileSpec";this.id=id};PDFNet.Filter=function(id){this.name="Filter";this.id=id};PDFNet.Filter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterReader=function(id){this.name="FilterReader";this.id=id};PDFNet.FilterReader.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FilterWriter=function(id){this.name="FilterWriter";this.id=
-id};PDFNet.FilterWriter.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Flattener=function(id){this.name="Flattener";this.id=id};PDFNet.Flattener.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Font=function(id){this.name="Font";this.id=id};PDFNet.Font.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.FreeTextAnnot=function(id){this.name="FreeTextAnnot";this.id=id};PDFNet.Function=function(id){this.name="Function";this.id=id};PDFNet.Function.prototype=Object.create(PDFNet.Destroyable.prototype);
-PDFNet.GState=function(id){this.name="GState";this.id=id};PDFNet.GeometryCollection=function(id){this.name="GeometryCollection";this.id=id};PDFNet.GeometryCollection.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.HighlightAnnot=function(id){this.name="HighlightAnnot";this.id=id};PDFNet.Highlights=function(id){this.name="Highlights";this.id=id};PDFNet.Highlights.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Image=function(id){this.name="Image";this.id=id};PDFNet.InkAnnot=
-function(id){this.name="InkAnnot";this.id=id};PDFNet.Iterator=function(id,type){this.name="Iterator";this.id=id;this.type=type};PDFNet.Iterator.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeActionResult=function(id){this.name="KeyStrokeActionResult";this.id=id};PDFNet.KeyStrokeActionResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.KeyStrokeEventData=function(id){this.name="KeyStrokeEventData";this.id=id};PDFNet.KeyStrokeEventData.prototype=Object.create(PDFNet.Destroyable.prototype);
-PDFNet.LineAnnot=function(id){this.name="LineAnnot";this.id=id};PDFNet.LinkAnnot=function(id){this.name="LinkAnnot";this.id=id};PDFNet.ListBoxWidget=function(id){this.name="ListBoxWidget";this.id=id};PDFNet.MarkupAnnot=function(id){this.name="MarkupAnnot";this.id=id};PDFNet.Matrix2D=function(m_a,m_b,m_c,m_d,m_h,m_v){this.name="Matrix2D";if(m_a&&"undefined"===typeof m_b)copyFunc(m_a,this);else return"undefined"===typeof m_a&&(m_a=0),"undefined"===typeof m_b&&(m_b=0),"undefined"===typeof m_c&&(m_c=
-0),"undefined"===typeof m_d&&(m_d=0),"undefined"===typeof m_h&&(m_h=0),"undefined"===typeof m_v&&(m_v=0),new PDFNet.Matrix2D({m_a:m_a,m_b:m_b,m_c:m_c,m_d:m_d,m_h:m_h,m_v:m_v})};PDFNet.MovieAnnot=function(id){this.name="MovieAnnot";this.id=id};PDFNet.NameTree=function(id){this.name="NameTree";this.id=id};PDFNet.NumberTree=function(id){this.name="NumberTree";this.id=id};PDFNet.OCG=function(id){this.name="OCG";this.id=id};PDFNet.OCGConfig=function(id){this.name="OCGConfig";this.id=id};PDFNet.OCGContext=
-function(id){this.name="OCGContext";this.id=id};PDFNet.OCGContext.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.OCMD=function(id){this.name="OCMD";this.id=id};PDFNet.OCRModule=function(id){this.name="OCRModule";this.id=id};PDFNet.Obj=function(id){this.name="Obj";this.id=id};PDFNet.ObjSet=function(id){this.name="ObjSet";this.id=id};PDFNet.ObjSet.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ObjectIdentifier=function(id){this.name="ObjectIdentifier";this.id=id};PDFNet.ObjectIdentifier.prototype=
-Object.create(PDFNet.Destroyable.prototype);PDFNet.OwnedBitmap=function(id){this.name="OwnedBitmap";this.id=id};PDFNet.PDFACompliance=function(id){this.name="PDFACompliance";this.id=id};PDFNet.PDFACompliance.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFDC=function(id){this.name="PDFDC";this.id=id};PDFNet.PDFDCEX=function(id){this.name="PDFDCEX";this.id=id};PDFNet.PDFDoc=function(id){this.name="PDFDoc";this.id=id};PDFNet.PDFDoc.prototype=Object.create(PDFNet.Destroyable.prototype);
-PDFNet.PDFDocInfo=function(id){this.name="PDFDocInfo";this.id=id};PDFNet.PDFDocViewPrefs=function(id){this.name="PDFDocViewPrefs";this.id=id};PDFNet.PDFDraw=function(id){this.name="PDFDraw";this.id=id};PDFNet.PDFDraw.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFRasterizer=function(id){this.name="PDFRasterizer";this.id=id};PDFNet.PDFRasterizer.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PDFTronCustomSecurityHandler=function(id){this.name="PDFTronCustomSecurityHandler";
-this.id=id};PDFNet.PDFView=function(id){this.name="PDFView";this.id=id};PDFNet.PDFViewCtrl=function(id){this.name="PDFViewCtrl";this.id=id};PDFNet.Page=function(id){this.name="Page";this.id=id};PDFNet.PageLabel=function(mp_obj,m_first_page,m_last_page){this.name="PageLabel";if(mp_obj&&"undefined"===typeof m_first_page)copyFunc(mp_obj,this);else return"undefined"===typeof mp_obj&&(mp_obj="0"),"undefined"===typeof m_first_page&&(m_first_page=0),"undefined"===typeof m_last_page&&(m_last_page=0),new PDFNet.PageLabel({mp_obj:mp_obj,
-m_first_page:m_first_page,m_last_page:m_last_page})};PDFNet.PageSet=function(id){this.name="PageSet";this.id=id};PDFNet.PageSet.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PatternColor=function(id){this.name="PatternColor";this.id=id};PDFNet.PatternColor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.PolyLineAnnot=function(id){this.name="PolyLineAnnot";this.id=id};PDFNet.PolygonAnnot=function(id){this.name="PolygonAnnot";this.id=id};PDFNet.PopupAnnot=function(id){this.name=
-"PopupAnnot";this.id=id};PDFNet.PrinterMode=function(id){this.name="PrinterMode";this.id=id};PDFNet.PushButtonWidget=function(id){this.name="PushButtonWidget";this.id=id};PDFNet.RadioButtonGroup=function(id){this.name="RadioButtonGroup";this.id=id};PDFNet.RadioButtonGroup.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.RadioButtonWidget=function(id){this.name="RadioButtonWidget";this.id=id};PDFNet.Rect=function(x1,y1,x2,y2,mp_rect){this.name="Rect";if(x1&&"undefined"===typeof y1)copyFunc(x1,
-this);else return"undefined"===typeof x1&&(x1=0),"undefined"===typeof y1&&(y1=0),"undefined"===typeof x2&&(x2=0),"undefined"===typeof y2&&(y2=0),"undefined"===typeof mp_rect&&(mp_rect="0"),new PDFNet.Rect({x1:x1,y1:y1,x2:x2,y2:y2,mp_rect:mp_rect})};PDFNet.Redaction=function(id){this.name="Redaction";this.id=id};PDFNet.RedactionAnnot=function(id){this.name="RedactionAnnot";this.id=id};PDFNet.Redactor=function(id){this.name="Redactor";this.id=id};PDFNet.Reflow=function(id){this.name="Reflow";this.id=
-id};PDFNet.Reflow.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ResultSnapshot=function(id){this.name="ResultSnapshot";this.id=id};PDFNet.ResultSnapshot.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.RoleMap=function(id){this.name="RoleMap";this.id=id};PDFNet.RubberStampAnnot=function(id){this.name="RubberStampAnnot";this.id=id};PDFNet.SDFDoc=function(id){this.name="SDFDoc";this.id=id};PDFNet.SElement=function(obj,k){this.name="SElement";if(obj&&"undefined"===typeof k)copyFunc(obj,
-this);else return"undefined"===typeof obj&&(obj="0"),"undefined"===typeof k&&(k="0"),new PDFNet.SElement({obj:obj,k:k})};PDFNet.STree=function(id){this.name="STree";this.id=id};PDFNet.ScreenAnnot=function(id){this.name="ScreenAnnot";this.id=id};PDFNet.SecurityHandler=function(id){this.name="SecurityHandler";this.id=id};PDFNet.SecurityHandler.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.Shading=function(id){this.name="Shading";this.id=id};PDFNet.Shading.prototype=Object.create(PDFNet.Destroyable.prototype);
-PDFNet.ShapedText=function(id){this.name="ShapedText";this.id=id};PDFNet.ShapedText.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.SignatureHandler=function(id){this.name="SignatureHandler";this.id=id};PDFNet.SignatureWidget=function(id){this.name="SignatureWidget";this.id=id};PDFNet.SoundAnnot=function(id){this.name="SoundAnnot";this.id=id};PDFNet.SquareAnnot=function(id){this.name="SquareAnnot";this.id=id};PDFNet.SquigglyAnnot=function(id){this.name="SquigglyAnnot";this.id=id};PDFNet.Stamper=
-function(id){this.name="Stamper";this.id=id};PDFNet.Stamper.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.StrikeOutAnnot=function(id){this.name="StrikeOutAnnot";this.id=id};PDFNet.TextAnnot=function(id){this.name="TextAnnot";this.id=id};PDFNet.TextExtractor=function(id){this.name="TextExtractor";this.id=id};PDFNet.TextExtractor.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TextExtractorLine=function(line,uni,num,cur_num,m_direction,mp_bld){this.name="TextExtractorLine";
-if(line&&"undefined"===typeof uni)copyFunc(line,this);else return"undefined"===typeof line&&(line="0"),"undefined"===typeof uni&&(uni="0"),"undefined"===typeof num&&(num=0),"undefined"===typeof cur_num&&(cur_num=0),"undefined"===typeof m_direction&&(m_direction=0),"undefined"===typeof mp_bld&&(mp_bld="0"),new PDFNet.TextExtractorLine({line:line,uni:uni,num:num,cur_num:cur_num,m_direction:m_direction,mp_bld:mp_bld})};PDFNet.TextExtractorStyle=function(mp_imp){this.name="TextExtractorStyle";if("object"===
-_typeof(mp_imp))copyFunc(mp_imp,this);else if("undefined"!==typeof mp_imp)return new PDFNet.TextExtractorStyle({mp_imp:mp_imp})};PDFNet.TextExtractorWord=function(line,word,uni,num,cur_num,mp_bld){this.name="TextExtractorWord";if(line&&"undefined"===typeof word)copyFunc(line,this);else return"undefined"===typeof line&&(line="0"),"undefined"===typeof word&&(word="0"),"undefined"===typeof uni&&(uni="0"),"undefined"===typeof num&&(num=0),"undefined"===typeof cur_num&&(cur_num=0),"undefined"===typeof mp_bld&&
-(mp_bld="0"),new PDFNet.TextExtractorWord({line:line,word:word,uni:uni,num:num,cur_num:cur_num,mp_bld:mp_bld})};PDFNet.TextMarkupAnnot=function(id){this.name="TextMarkupAnnot";this.id=id};PDFNet.TextRange=function(id){this.name="TextRange";this.id=id};PDFNet.TextSearch=function(id){this.name="TextSearch";this.id=id};PDFNet.TextSearch.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TextWidget=function(id){this.name="TextWidget";this.id=id};PDFNet.TimestampingConfiguration=function(id){this.name=
-"TimestampingConfiguration";this.id=id};PDFNet.TimestampingConfiguration.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TimestampingResult=function(id){this.name="TimestampingResult";this.id=id};PDFNet.TimestampingResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.TrustVerificationResult=function(id){this.name="TrustVerificationResult";this.id=id};PDFNet.TrustVerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.UnderlineAnnot=function(id){this.name=
-"UnderlineAnnot";this.id=id};PDFNet.UndoManager=function(id){this.name="UndoManager";this.id=id};PDFNet.UndoManager.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.VerificationOptions=function(id){this.name="VerificationOptions";this.id=id};PDFNet.VerificationOptions.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.VerificationResult=function(id){this.name="VerificationResult";this.id=id};PDFNet.VerificationResult.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.ViewChangeCollection=
-function(id){this.name="ViewChangeCollection";this.id=id};PDFNet.ViewChangeCollection.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.WatermarkAnnot=function(id){this.name="WatermarkAnnot";this.id=id};PDFNet.WebFontDownloader=function(id){this.name="WebFontDownloader";this.id=id};PDFNet.WidgetAnnot=function(id){this.name="WidgetAnnot";this.id=id};PDFNet.X501AttributeTypeAndValue=function(id){this.name="X501AttributeTypeAndValue";this.id=id};PDFNet.X501AttributeTypeAndValue.prototype=
-Object.create(PDFNet.Destroyable.prototype);PDFNet.X501DistinguishedName=function(id){this.name="X501DistinguishedName";this.id=id};PDFNet.X501DistinguishedName.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Certificate=function(id){this.name="X509Certificate";this.id=id};PDFNet.X509Certificate.prototype=Object.create(PDFNet.Destroyable.prototype);PDFNet.X509Extension=function(id){this.name="X509Extension";this.id=id};PDFNet.X509Extension.prototype=Object.create(PDFNet.Destroyable.prototype);
-PDFNet.PDFDoc.createRefreshOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.RefreshOptions)};PDFNet.PDFDoc.RefreshOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.RefreshOptions.prototype.getDrawBackgroundOnly=function(){return"DrawBackgroundOnly"in mImpl?!!mImpl.DrawBackgroundOnly:!0};PDFNet.PDFDoc.RefreshOptions.prototype.setDrawBackgroundOnly=function(value){mHelpers.putBool(mImpl,"DrawBackgroundOnly",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getRefreshExisting=
-function(){return"RefreshExisting"in mImpl?!!mImpl.RefreshExisting:!0};PDFNet.PDFDoc.RefreshOptions.prototype.setRefreshExisting=function(value){mHelpers.putBool(mImpl,"RefreshExisting",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getUseNonStandardRotation=function(){return"UseNonStandardRotation"in mImpl?!!mImpl.UseNonStandardRotation:!1};PDFNet.PDFDoc.RefreshOptions.prototype.setUseNonStandardRotation=function(value){mHelpers.putBool(mImpl,"UseNonStandardRotation",value);return this};
-PDFNet.PDFDoc.RefreshOptions.prototype.getUseRoundedCorners=function(){return"UseRoundedCorners"in mImpl?!!mImpl.UseRoundedCorners:!1};PDFNet.PDFDoc.RefreshOptions.prototype.setUseRoundedCorners=function(value){mHelpers.putBool(mImpl,"UseRoundedCorners",value);return this};PDFNet.PDFDoc.RefreshOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.createRefreshOptions=PDFNet.PDFDoc.createRefreshOptions;PDFNet.RefreshOptions=PDFNet.PDFDoc.RefreshOptions;PDFNet.PDFDoc.createDiffOptions=
-function(){return Promise.resolve(new PDFNet.PDFDoc.DiffOptions)};PDFNet.PDFDoc.DiffOptions=function(){this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.DiffOptions.prototype.getAddGroupAnnots=function(){return"AddGroupAnnots"in this.mImpl?!!this.mImpl.AddGroupAnnots:!1};PDFNet.PDFDoc.DiffOptions.prototype.setAddGroupAnnots=function(value){this.mHelpers.putBool(this.mImpl,"AddGroupAnnots",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getBlendMode=function(){return"BlendMode"in
-this.mImpl?this.mImpl.BlendMode:5};PDFNet.PDFDoc.DiffOptions.prototype.setBlendMode=function(value){this.mHelpers.putNumber(this.mImpl,"BlendMode",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA):this.mHelpers.jsColorFromNumber(4291559424)};PDFNet.PDFDoc.DiffOptions.prototype.setColorA=function(value){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(value));return this};
-PDFNet.PDFDoc.DiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB):this.mHelpers.jsColorFromNumber(4278242508)};PDFNet.PDFDoc.DiffOptions.prototype.setColorB=function(value){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(value));return this};PDFNet.PDFDoc.DiffOptions.prototype.getLuminosityCompression=function(){return"LuminosityCompression"in this.mImpl?this.mImpl.LuminosityCompression:10};PDFNet.PDFDoc.DiffOptions.prototype.setLuminosityCompression=
-function(value){this.mHelpers.putNumber(this.mImpl,"LuminosityCompression",value);return this};PDFNet.PDFDoc.DiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.createDiffOptions=PDFNet.PDFDoc.createDiffOptions;PDFNet.DiffOptions=PDFNet.PDFDoc.DiffOptions;PDFNet.PDFDoc.createTextDiffOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.TextDiffOptions)};PDFNet.PDFDoc.TextDiffOptions=function(){this.name="PDFNet.PDFDoc.TextDiffOptions";this.mImpl={};this.mHelpers=
-optionsHelpers()};PDFNet.PDFDoc.TextDiffOptions.prototype.getColorA=function(){return"ColorA"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorA):this.mHelpers.jsColorFromNumber(4293284423)};PDFNet.PDFDoc.TextDiffOptions.prototype.setColorA=function(color){this.mHelpers.putNumber(this.mImpl,"ColorA",this.mHelpers.jsColorToNumber(color));return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getOpacityA=function(){return"OpacityA"in this.mImpl?this.mImpl.OpacityA:.5};PDFNet.PDFDoc.TextDiffOptions.prototype.setOpacityA=
-function(opacity){this.mHelpers.putNumber(this.mImpl,"OpacityA",opacity);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getColorB=function(){return"ColorB"in this.mImpl?this.mHelpers.jsColorFromNumber(this.mImpl.ColorB):this.mHelpers.jsColorFromNumber(4284278322)};PDFNet.PDFDoc.TextDiffOptions.prototype.setColorB=function(color){this.mHelpers.putNumber(this.mImpl,"ColorB",this.mHelpers.jsColorToNumber(color));return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getOpacityB=function(){return"OpacityB"in
-this.mImpl?this.mImpl.OpacityB:.5};PDFNet.PDFDoc.TextDiffOptions.prototype.setOpacityB=function(opacity){this.mHelpers.putNumber(this.mImpl,"OpacityB",opacity);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.addZonesForPage=function(zones,regions,page_num){"undefined"===typeof this.mImpl[zones]&&(this.mImpl[zones]=[]);if(this.mImpl[zones].length<page_num)for(var i=this.mImpl[zones].length;i<page_num;i++)this.mImpl[zones].push([]);regions=regions.map(function(rect){return[rect.x1,rect.y1,rect.x2,
-rect.y2]});this.mImpl[zones][page_num-1]=regions};PDFNet.PDFDoc.TextDiffOptions.prototype.addIgnoreZonesForPage=function(regions,page_num){this.addZonesForPage("IgnoreZones",regions,page_num);return this};PDFNet.PDFDoc.TextDiffOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.FDFDoc.createXFDFExportOptions=function(){return Promise.resolve(new PDFNet.FDFDoc.XFDFExportOptions)};PDFNet.FDFDoc.XFDFExportOptions=function(){this.name="PDFNet.FDFDoc.XFDFExportOptions";
-this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.FDFDoc.XFDFExportOptions.prototype.getWriteAnnotationAppearance=function(){return"WriteAnnotationAppearance"in this.mImpl?!!this.mImpl.WriteAnnotationAppearance:!1};PDFNet.FDFDoc.XFDFExportOptions.prototype.setWriteAnnotationAppearance=function(value){this.mHelpers.putBool(this.mImpl,"WriteAnnotationAppearance",value);return this};PDFNet.FDFDoc.XFDFExportOptions.prototype.getWriteImagedata=function(){return"WriteImagedata"in this.mImpl?!!this.mImpl.WriteImagedata:
-!0};PDFNet.FDFDoc.XFDFExportOptions.prototype.setWriteImagedata=function(value){this.mHelpers.putBool(this.mImpl,"WriteImagedata",value);return this};PDFNet.FDFDoc.XFDFExportOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.Convert.createAdvancedImagingConvertOptions=function(){return Promise.resolve(new PDFNet.Convert.AdvancedImagingConvertOptions)};PDFNet.Convert.AdvancedImagingConvertOptions=function(){this.name="PDFNet.Convert.AdvancedImagingConvertOptions";
-this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.Convert.AdvancedImagingConvertOptions.prototype.getDefaultDPI=function(){return"DefaultDPI"in this.mImpl?this.mImpl.DefaultDPI:72};PDFNet.Convert.AdvancedImagingConvertOptions.prototype.setDefaultDPI=function(value){this.mHelpers.putNumber(this.mImpl,"DefaultDPI",value);return this};PDFNet.Convert.AdvancedImagingConvertOptions.prototype.getEnableAutoLevel=function(){return"EnableAutoLevel"in this.mImpl?!!this.mImpl.EnableAutoLevel:!1};PDFNet.Convert.AdvancedImagingConvertOptions.prototype.setEnableAutoLevel=
-function(value){this.mHelpers.putBool(this.mImpl,"EnableAutoLevel",value);return this};PDFNet.PDFDoc.createMergeXFDFOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.MergeXFDFOptions)};PDFNet.PDFDoc.MergeXFDFOptions=function(){this.name="PDFNet.PDFDoc.MergeXFDFOptions";this.mImpl={};this.mHelpers=optionsHelpers()};PDFNet.PDFDoc.MergeXFDFOptions.prototype.getForce=function(){return"Force"in this.mImpl?!!this.mImpl.Force:!1};PDFNet.PDFDoc.MergeXFDFOptions.prototype.setForce=function(value){this.mHelpers.putBool(this.mImpl,
-"Force",value);return this};PDFNet.PDFDoc.MergeXFDFOptions.prototype.getJsonString=function(){return JSON.stringify(this.mImpl)};PDFNet.QuadPoint=function(p1x,p1y,p2x,p2y,p3x,p3y,p4x,p4y){this.name="QuadPoint";if(p1x&&"undefined"===typeof p1y)copyFunc(p1x,this);else return"undefined"===typeof p1x&&(p1x=0),"undefined"===typeof p1y&&(p1y=0),"undefined"===typeof p2x&&(p2x=0),"undefined"===typeof p2y&&(p2y=0),"undefined"===typeof p3x&&(p3x=0),"undefined"===typeof p3y&&(p3y=0),"undefined"===typeof p4x&&
-(p4x=0),"undefined"===typeof p4y&&(p4y=0),new PDFNet.QuadPoint({p1x:p1x,p1y:p1y,p2x:p2x,p2y:p2y,p3x:p3x,p3y:p3y,p4x:p4x,p4y:p4y})};PDFNet.Point=function(x,y){this.name="Point";if(x&&"undefined"===typeof y)copyFunc(x,this);else return"undefined"===typeof x&&(x=0),"undefined"===typeof y&&(y=0),new PDFNet.Point({x:x,y:y})};PDFNet.CharData=function(charData){if("undefined"===typeof charData)throw new TypeError("CharData requires an object to construct with.");this.name="CharData";copyFunc(charData,this)};
-PDFNet.Separation=function(separation){if("undefined"===typeof separation)throw new TypeError("Separation requires an object to construct with.");this.name="Separation";copyFunc(separation,this)};PDFNet.Optimizer.createImageSettings=function(){return Promise.resolve(new PDFNet.Optimizer.ImageSettings)};PDFNet.Optimizer.ImageSettings=function(){this.m_max_pixels=4294967295;this.m_max_dpi=225;this.m_resample_dpi=150;this.m_quality=5;this.m_compression_mode=PDFNet.Optimizer.ImageSettings.CompressionMode.e_retain;
-this.m_downsample_mode=PDFNet.Optimizer.ImageSettings.DownsampleMode.e_default;this.m_force_changes=this.m_force_recompression=!1};PDFNet.Optimizer.ImageSettings.prototype.setImageDPI=function(maximum,resampling){this.m_max_dpi=maximum;this.m_resample_dpi=resampling;return this};PDFNet.Optimizer.ImageSettings.prototype.setCompressionMode=function(mode){this.m_compression_mode=mode;return this};PDFNet.Optimizer.ImageSettings.prototype.setDownsampleMode=function(mode){this.m_downsample_mode=mode;return this};
-PDFNet.Optimizer.ImageSettings.prototype.setQuality=function(quality){this.m_quality=quality;return this};PDFNet.Optimizer.ImageSettings.prototype.forceRecompression=function(force){this.m_force_recompression=force;return this};PDFNet.Optimizer.ImageSettings.prototype.forceChanges=function(force){this.m_force_changes=force;return this};PDFNet.Optimizer.createMonoImageSettings=function(){return Promise.resolve(new PDFNet.Optimizer.MonoImageSettings)};PDFNet.Optimizer.MonoImageSettings=function(){this.m_max_pixels=
-4294967295;this.m_max_dpi=450;this.m_resample_dpi=300;this.m_jbig2_threshold=8.5;this.m_compression_mode=PDFNet.Optimizer.ImageSettings.CompressionMode.e_retain;this.m_downsample_mode=PDFNet.Optimizer.ImageSettings.DownsampleMode.e_default;this.m_force_changes=this.m_force_recompression=!1};PDFNet.Optimizer.MonoImageSettings.prototype.setImageDPI=function(maximum,resampling){this.m_max_dpi=maximum;this.m_resample_dpi=resampling;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setCompressionMode=
-function(mode){this.m_compression_mode=mode;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setDownsampleMode=function(mode){this.m_downsample_mode=mode;return this};PDFNet.Optimizer.MonoImageSettings.prototype.setJBIG2Threshold=function(jbig2_threshold){this.m_jbig2_threshold=quality;return this};PDFNet.Optimizer.MonoImageSettings.prototype.forceRecompression=function(force){this.m_force_recompression=force;return this};PDFNet.Optimizer.MonoImageSettings.prototype.forceChanges=function(force){this.m_force_changes=
-force;return this};PDFNet.Optimizer.createTextSettings=function(){return Promise.resolve(new PDFNet.Optimizer.TextSettings)};PDFNet.Optimizer.TextSettings=function(){this.m_embed_fonts=this.m_subset_fonts=!1};PDFNet.Optimizer.TextSettings.prototype.subsetFonts=function(subset){this.m_subset_fonts=subset;return this};PDFNet.Optimizer.TextSettings.prototype.embedFonts=function(embed){this.m_embed_fonts=embed;return this};PDFNet.Optimizer.createOptimizerSettings=function(){return Promise.resolve(new PDFNet.Optimizer.OptimizerSettings)};
-PDFNet.Optimizer.OptimizerSettings=function(){this.color_image_settings=new PDFNet.Optimizer.ImageSettings;this.grayscale_image_settings=new PDFNet.Optimizer.ImageSettings;this.mono_image_settings=new PDFNet.Optimizer.MonoImageSettings;this.text_settings=new PDFNet.Optimizer.TextSettings;this.remove_custom=!0};PDFNet.Optimizer.OptimizerSettings.prototype.setColorImageSettings=function(settings){this.color_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setGrayscaleImageSettings=
-function(settings){this.grayscale_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setMonoImageSettings=function(settings){this.mono_image_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.setTextSettings=function(settings){this.text_settings=settings;return this};PDFNet.Optimizer.OptimizerSettings.prototype.removeCustomEntries=function(should_remove){this.remove_custom=should_remove;return this};PDFNet.Optimizer.ImageSettings.CompressionMode=
-{e_retain:0,e_flate:1,e_jpeg:2,e_jpeg2000:3,e_none:4};PDFNet.Optimizer.ImageSettings.DownsampleMode={e_off:0,e_default:1};PDFNet.Optimizer.MonoImageSettings.CompressionMode={e_jbig2:0,e_flate:1,e_none:2};PDFNet.Optimizer.MonoImageSettings.DownsampleMode={e_off:0,e_default:1};PDFNet.Convert.ConversionOptions=function(json){this.name="PDFNet.Convert.ConversionOptions";json&&copyFunc(JSON.parse(json),this)};PDFNet.Convert.createOfficeToPDFOptions=function(json){return Promise.resolve(new PDFNet.Convert.OfficeToPDFOptions(json))};
-PDFNet.Convert.OfficeToPDFOptions=function(json){PDFNet.Convert.ConversionOptions.call(this,json)};PDFNet.Convert.OfficeToPDFOptions.prototype.setApplyPageBreaksToSheet=function(value){this.ApplyPageBreaksToSheet=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setDisplayChangeTracking=function(value){this.DisplayChangeTracking=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setExcelDefaultCellBorderWidth=function(width){this.ExcelDefaultCellBorderWidth=width;return this};
-PDFNet.Convert.OfficeToPDFOptions.prototype.setExcelMaxAllowedCellCount=function(value){this.ExcelMaxAllowedCellCount=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setLocale=function(value){this.Locale=value;return this};PDFNet.Convert.OfficeToPDFOptions.prototype.setTemplateParamsJson=function(value){this.TemplateParamsJson=value;return this};PDFNet.Convert.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};PDFNet.Convert.XPSOutputCommonOptions=function(){this.name="PDFNet.Convert.XPSOutputCommonOptions"};
-PDFNet.Convert.XPSOutputCommonOptions.prototype.setPrintMode=function(print_mode){this.PRINTMODE=print_mode;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setDPI=function(dpi){this.DPI=dpi;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setRenderPages=function(render){this.RENDER=render;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setThickenLines=function(thicken){this.THICKENLINES=thicken;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.generateURLLinks=
-function(generate){this.URL_LINKS=generate;return this};PDFNet.Convert.XPSOutputCommonOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.Convert.OverprintPreviewMode.e_op_off:this.OVERPRINT_MODE="OFF";break;case PDFNet.Convert.OverprintPreviewMode.e_op_on:this.OVERPRINT_MODE="ON";break;case PDFNet.Convert.OverprintPreviewMode.e_op_pdfx_on:this.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.Convert.OverprintPreviewMode type: "+mode)}return this};PDFNet.Convert.createXPSOutputOptions=
-function(){return Promise.resolve(new PDFNet.Convert.XPSOutputOptions)};PDFNet.Convert.XPSOutputOptions=function(){this.name="PDFNet.Convert.XPSOutputOptions"};PDFNet.Convert.XPSOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype);PDFNet.Convert.XPSOutputOptions.prototype.setOpenXps=function(openxps){this.OPENXPS=openxps;return this};PDFNet.Convert.FlattenFlag={e_off:0,e_simple:1,e_fast:2,e_high_quality:3};PDFNet.Convert.FlattenThresholdFlag={e_very_strict:0,e_strict:1,
-e_default:2,e_keep_most:3,e_keep_all:4};PDFNet.Convert.AnnotationOutputFlag={e_internal_xfdf:0,e_external_xfdf:1,e_flatten:2};PDFNet.Convert.createXODOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.XODOutputOptions)};PDFNet.Convert.XODOutputOptions=function(){this.name="PDFNet.Convert.XODOutputOptions"};PDFNet.Convert.XODOutputOptions.prototype=Object.create(PDFNet.Convert.XPSOutputCommonOptions.prototype);PDFNet.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.NOTHUMBS=
-include_thumbs;return this};PDFNet.Convert.XODOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.NOTHUMBS=include_thumbs;return this};PDFNet.Convert.XODOutputOptions.prototype.setThumbnailSize=function(regular_size,large_size){this.THUMB_SIZE=regular_size;this.LARGE_THUMB_SIZE=large_size?large_size:regular_size;return this};PDFNet.Convert.XODOutputOptions.prototype.setElementLimit=function(element_limit){this.ELEMENTLIMIT=element_limit;return this};PDFNet.Convert.XODOutputOptions.prototype.setOpacityMaskWorkaround=
-function(opacity_render){this.MASKRENDER=opacity_render;return this};PDFNet.Convert.XODOutputOptions.prototype.setMaximumImagePixels=function(max_pixels){this.MAX_IMAGE_PIXELS=max_pixels;return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenContent=function(flatten){switch(flatten){case PDFNet.Convert.FlattenFlag.e_off:this.FLATTEN_CONTENT="OFF";break;case PDFNet.Convert.FlattenFlag.e_simple:this.FLATTEN_CONTENT="SIMPLE";break;case PDFNet.Convert.FlattenFlag.e_fast:this.FLATTEN_CONTENT=
-"FAST";break;case PDFNet.Convert.FlattenFlag.e_high_quality:this.FLATTEN_CONTENT="HIGH_QUALITY";break;default:console.log("unrecognized PDFNet.Convert.FlattenFlag type: "+flatten)}return this};PDFNet.Convert.XODOutputOptions.prototype.setFlattenThreshold=function(threshold){switch(threshold){case PDFNet.Convert.FlattenThresholdFlag.e_very_strict:this.FLATTEN_THRESHOLD="VERY_STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_strict:this.FLATTEN_THRESHOLD="STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_default:this.FLATTEN_THRESHOLD=
-"DEFAULT";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_most:this.FLATTEN_THRESHOLD="KEEP_MOST";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_all:this.FLATTEN_THRESHOLD="KEEP_ALL";break;default:console.log("unrecognized PDFNet.Convert.FlattenThresholdFlag type: "+threshold)}return this};PDFNet.Convert.XODOutputOptions.prototype.setPreferJPG=function(prefer_jpg){this.PREFER_JPEG=prefer_jpg;return this};PDFNet.Convert.XODOutputOptions.prototype.setJPGQuality=function(quality){this.JPEG_QUALITY=
-quality;return this};PDFNet.Convert.XODOutputOptions.prototype.setSilverlightTextWorkaround=function(workaround){this.REMOVE_ROTATED_TEXT=workaround;return this};PDFNet.Convert.XODOutputOptions.prototype.setAnnotationOutput=function(annot_output){switch(annot_output){case PDFNet.Convert.AnnotationOutputFlag.e_internal_xfdf:this.ANNOTATION_OUTPUT="INTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_external_xfdf:this.ANNOTATION_OUTPUT="EXTERNAL";break;case PDFNet.Convert.AnnotationOutputFlag.e_flatten:this.ANNOTATION_OUTPUT=
-"FLATTEN";break;default:console.log("unrecognized PDFNet.Convert.AnnotationOutputFlag type: "+annot_output)}return this};PDFNet.Convert.XODOutputOptions.prototype.setExternalParts=function(generate){this.EXTERNAL_PARTS=generate;return this};PDFNet.Convert.XODOutputOptions.prototype.setEncryptPassword=function(pass){this.ENCRYPT_PASSWORD=pass;return this};PDFNet.Convert.XODOutputOptions.prototype.useSilverlightFlashCompatible=function(compatible){this.COMPATIBLE_XOD=compatible;return this};PDFNet.Convert.createTiffOutputOptions=
-function(){return Promise.resolve(new PDFNet.Convert.TiffOutputOptions)};PDFNet.Convert.TiffOutputOptions=function(){this.name="PDFNet.Convert.TiffOutputOptions"};PDFNet.Convert.TiffOutputOptions.prototype.setBox=function(type){switch(type){case PDFNet.Page.Box.e_media:this.BOX="media";break;case PDFNet.Page.Box.e_crop:this.BOX="crop";break;case PDFNet.Page.Box.e_bleed:this.BOX="bleed";break;case PDFNet.Page.Box.e_trim:this.BOX="trim";break;case PDFNet.Page.Box.e_art:this.BOX="art";break;default:console.log("unrecognized PDFNet.Page.Box type: "+
-type)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setRotate=function(rotation){switch(rotation){case PDFNet.Page.Box.e_0:this.ROTATE="0";break;case PDFNet.Page.Box.e_90:this.ROTATE="90";break;case PDFNet.Page.Box.e_180:this.ROTATE="180";break;case PDFNet.Page.Box.e_270:this.ROTATE="270";break;default:console.log("unrecognized PDFNet.Page.Rotate type: "+rotation)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setClip=function(x1,y1,x2,y2){this.CLIP_X1=x1;this.CLIP_Y1=y1;this.CLIP_X2=
-x2;this.CLIP_Y2=y2;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPages=function(page_desc){this.PAGES=page_desc;return this};PDFNet.Convert.TiffOutputOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_off:this.OVERPRINT_MODE="OFF";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_on:this.OVERPRINT_MODE="ON";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.PDFRasterizer.OverprintPreviewMode type: "+
-mode)}return this};PDFNet.Convert.TiffOutputOptions.prototype.setCMYK=function(enable){this.CMYK=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setDither=function(enable){this.DITHER=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setGray=function(enable){this.GRAY=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setMono=function(enable){this.MONO=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setAnnots=function(enable){this.ANNOTS=enable;
-return this};PDFNet.Convert.TiffOutputOptions.prototype.setSmooth=function(enable){this.SMOOTH=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPrintmode=function(enable){this.PRINTMODE=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setTransparentPage=function(enable){this.TRANSPARENT_PAGE=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setPalettized=function(enable){this.PALETTIZED=enable;return this};PDFNet.Convert.TiffOutputOptions.prototype.setDPI=
-function(dpi){this.DPI=dpi;return this};PDFNet.Convert.TiffOutputOptions.prototype.setGamma=function(gamma){this.GAMMA=gamma;return this};PDFNet.Convert.TiffOutputOptions.prototype.setHRes=function(hres){this.HRES=hres;return this};PDFNet.Convert.TiffOutputOptions.prototype.setVRes=function(vres){this.VRES=vres;return this};PDFNet.Convert.createHTMLOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.HTMLOutputOptions)};PDFNet.Convert.HTMLOutputOptions=function(){this.name="PDFNet.Convert.HTMLOutputOptions"};
-PDFNet.Convert.HTMLOutputOptions.prototype.setPreferJPG=function(prefer_jpg){this.PREFER_JPEG=prefer_jpg;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setJPGQuality=function(quality){this.JPEG_QUALITY=quality;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setDPI=function(dpi){this.DPI=dpi;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setMaximumImagePixels=function(max_pixels){this.MAX_IMAGE_PIXELS=max_pixels;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setScale=
-function(scale){this.SCALE=scale;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setExternalLinks=function(enable){this.EXTERNAL_LINKS=enable;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setInternalLinks=function(enable){this.INTERNAL_LINKS=enable;return this};PDFNet.Convert.HTMLOutputOptions.prototype.setSimplifyText=function(enable){this.SIMPLIFY_TEXT=enable;return this};PDFNet.Convert.createEPUBOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.EPUBOutputOptions)};
-PDFNet.Convert.EPUBOutputOptions=function(){this.name="PDFNet.Convert.EPUBOutputOptions"};PDFNet.Convert.EPUBOutputOptions.prototype.setExpanded=function(expanded){this.EPUB_EXPANDED=expanded;return this};PDFNet.Convert.EPUBOutputOptions.prototype.setReuseCover=function(reuse){this.EPUB_REUSE_COVER=reuse;return this};PDFNet.Convert.createSVGOutputOptions=function(){return Promise.resolve(new PDFNet.Convert.SVGOutputOptions)};PDFNet.Convert.SVGOutputOptions=function(){this.name="PDFNet.Convert.SVGOutputOptions"};
-PDFNet.Convert.SVGOutputOptions.prototype.setEmbedImages=function(embed_images){this.EMBEDIMAGES=embed_images;return this};PDFNet.Convert.SVGOutputOptions.prototype.setNoFonts=function(no_fonts){this.NOFONTS=no_fonts;return this};PDFNet.Convert.SVGOutputOptions.prototype.setSvgFonts=function(svg_fonts){this.SVGFONTS=svg_fonts;return this};PDFNet.Convert.SVGOutputOptions.prototype.setEmbedFonts=function(embed_fonts){this.EMBEDFONTS=embed_fonts;return this};PDFNet.Convert.SVGOutputOptions.prototype.setNoUnicode=
-function(no_unicode){this.NOUNICODE=no_unicode;return this};PDFNet.Convert.SVGOutputOptions.prototype.setIndividualCharPlacement=function(individual_char_placement){this.INDIVIDUALCHARPLACEMENT=individual_char_placement;return this};PDFNet.Convert.SVGOutputOptions.prototype.setRemoveCharPlacement=function(remove_char_placement){this.REMOVECHARPLACEMENT=remove_char_placement;return this};PDFNet.Convert.SVGOutputOptions.prototype.setFlattenContent=function(flatten){switch(flatten){case PDFNet.Convert.FlattenFlag.e_off:this.FLATTEN_CONTENT=
-"OFF";break;case PDFNet.Convert.FlattenFlag.e_simple:this.FLATTEN_CONTENT="SIMPLE";break;case PDFNet.Convert.FlattenFlag.e_fast:this.FLATTEN_CONTENT="FAST";break;case PDFNet.Convert.FlattenFlag.e_high_quality:this.FLATTEN_CONTENT="HIGH_QUALITY";break;default:console.log("unrecognized PDFNet.Convert.FlattenFlag type: "+flatten)}return this};PDFNet.Convert.SVGOutputOptions.prototype.setFlattenThreshold=function(threshold){switch(threshold){case PDFNet.Convert.FlattenThresholdFlag.e_very_strict:this.FLATTEN_THRESHOLD=
-"VERY_STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_strict:this.FLATTEN_THRESHOLD="STRICT";break;case PDFNet.Convert.FlattenThresholdFlag.e_default:this.FLATTEN_THRESHOLD="DEFAULT";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_most:this.FLATTEN_THRESHOLD="KEEP_MOST";break;case PDFNet.Convert.FlattenThresholdFlag.e_keep_all:this.FLATTEN_THRESHOLD="KEEP_ALL";break;default:console.log("unrecognized PDFNet.Convert.FlattenThresholdFlag type: "+threshold)}return this};PDFNet.Convert.SVGOutputOptions.prototype.setFlattenDPI=
-function(dpi){this.DPI=dpi;return this};PDFNet.Convert.SVGOutputOptions.prototype.setFlattenMaximumImagePixels=function(max_pixels){this.MAX_IMAGE_PIXELS=max_pixels;return this};PDFNet.Convert.SVGOutputOptions.prototype.setCompress=function(svgz){this.SVGZ=svgz;return this};PDFNet.Convert.SVGOutputOptions.prototype.setOutputThumbnails=function(include_thumbs){this.NOTHUMBS=include_thumbs;return this};PDFNet.Convert.SVGOutputOptions.prototype.setThumbnailSize=function(size){this.THUMB_SIZE=size;return this};
-PDFNet.Convert.SVGOutputOptions.prototype.setCreateXmlWrapper=function(xml){this.NOXMLDOC=xml;return this};PDFNet.Convert.SVGOutputOptions.prototype.setDtd=function(dtd){this.OMITDTD=dtd;return this};PDFNet.Convert.SVGOutputOptions.prototype.setAnnots=function(annots){this.NOANNOTS=annots;return this};PDFNet.Convert.SVGOutputOptions.prototype.setOverprint=function(op){switch(op){case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_off:this.OVERPRINT_MODE="OFF";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_on:this.OVERPRINT_MODE=
-"ON";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.PDFRasterizer.OverprintPreviewMode type: "+op)}return this};PDFNet.PDFDoc.createViewerOptimizedOptions=function(){return Promise.resolve(new PDFNet.PDFDoc.ViewerOptimizedOptions)};PDFNet.PDFDoc.ViewerOptimizedOptions=function(){this.name="PDFNet.PDFDoc.ViewerOptimizedOptions"};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailRenderingThreshold=
-function(threshold){this.COMPLEXITY_THRESHOLD=threshold;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setMinimumInitialThumbnails=function(initial_thumbs){this.MINIMUM_INITIAL_THUMBNAILS=initial_thumbs;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setThumbnailSize=function(size){this.THUMB_SIZE=size;return this};PDFNet.PDFDoc.ViewerOptimizedOptions.prototype.setOverprint=function(mode){switch(mode){case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_off:this.OVERPRINT_MODE=
-"OFF";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_on:this.OVERPRINT_MODE="ON";break;case PDFNet.PDFRasterizer.OverprintPreviewMode.e_op_pdfx_on:this.OVERPRINT_MODE="PDFX";break;default:console.log("unrecognized PDFNet.PDFRasterizer.OverprintPreviewMode type: "+mode)}return this};PDFNet.MarkupAnnot.prototype=new PDFNet.Annot;PDFNet.TextMarkupAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CaretAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LineAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.CircleAnnot.prototype=
-new PDFNet.MarkupAnnot;PDFNet.FileAttachmentAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.FreeTextAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.HighlightAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.InkAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.LinkAnnot.prototype=new PDFNet.Annot;PDFNet.MovieAnnot.prototype=new PDFNet.Annot;PDFNet.PolyLineAnnot.prototype=new PDFNet.LineAnnot;PDFNet.PolygonAnnot.prototype=new PDFNet.PolyLineAnnot;PDFNet.PopupAnnot.prototype=new PDFNet.Annot;PDFNet.RedactionAnnot.prototype=
-new PDFNet.MarkupAnnot;PDFNet.RubberStampAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.ScreenAnnot.prototype=new PDFNet.Annot;PDFNet.SoundAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquareAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.SquigglyAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.StrikeOutAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.TextAnnot.prototype=new PDFNet.MarkupAnnot;PDFNet.UnderlineAnnot.prototype=new PDFNet.TextMarkupAnnot;PDFNet.WatermarkAnnot.prototype=new PDFNet.Annot;
-PDFNet.WidgetAnnot.prototype=new PDFNet.Annot;PDFNet.SignatureWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.ComboBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.ListBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.TextWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.CheckBoxWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.RadioButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.PushButtonWidget.prototype=new PDFNet.WidgetAnnot;PDFNet.PrinterMode.PaperSize={e_custom:0,e_letter:1,e_letter_small:2,
-e_tabloid:3,e_ledger:4,e_legal:5,e_statement:6,e_executive:7,e_a3:8,e_a4:9,e_a4_mall:10,e_a5:11,e_b4_jis:12,e_b5_jis:13,e_folio:14,e_quarto:15,e_10x14:16,e_11x17:17,e_note:18,e_envelope_9:19,e_envelope_10:20,e_envelope_11:21,e_envelope_12:22,e_envelope_14:23,e_c_size_sheet:24,e_d_size_sheet:25,e_e_size_sheet:26,e_envelope_dl:27,e_envelope_c5:28,e_envelope_c3:29,e_envelope_c4:30,e_envelope_c6:31,e_envelope_c65:32,e_envelope_b4:33,e_envelope_b5:34,e_envelope_b6:35,e_envelope_italy:36,e_envelope_monarch:37,
-e_6_3_quarters_envelope:38,e_us_std_fanfold:39,e_german_std_fanfold:40,e_german_legal_fanfold:41,e_b4_iso:42,e_japanese_postcard:43,e_9x11:44,e_10x11:45,e_15x11:46,e_envelope_invite:47,e_reserved_48:48,e_reserved_49:49,e_letter_extra:50,e_legal_extra:51,e_tabloid_extra:52,e_a4_extra:53,e_letter_transverse:54,e_a4_transverse:55,e_letter_extra_transverse:56,e_supera_supera_a4:57,e_Superb_Superb_a3:58,e_letter_plus:59,e_a4_plus:60,e_a5_transverse:61,e_b5_jis_transverse:62,e_a3_extra:63,e_a5_extra:64,
-e_b5_iso_extra:65,e_a2:66,e_a3_transverse:67,e_a3_extra_transverse:68,e_japanese_double_postcard:69,e_a6:70,e_japanese_envelope_kaku_2:71,e_japanese_envelope_kaku_3:72,e_japanese_envelope_chou_3:73,e_japanese_envelope_chou_4:74,e_letter_rotated:75,e_a3_rotated:76,e_a4_rotated:77,e_a5_rotated:78,e_b4_jis_rotated:79,e_b5_jis_rotated:80,e_japanese_postcard_rotated:81,e_double_japanese_postcard_rotated:82,e_a6_rotated:83,e_japanese_envelope_kaku_2_rotated:84,e_japanese_envelope_kaku_3_rotated:85,e_japanese_envelope_chou_3_rotated:86,
-e_japanese_envelope_chou_4_rotated:87,e_b6_jis:88,e_b6_jis_rotated:89,e_12x11:90,e_japanese_envelope_you_4:91,e_japanese_envelope_you_4_rotated:92,e_PrinterMode_prc_16k:93,e_prc_32k:94,e_prc_32k_big:95,e_prc_envelop_1:96,e_prc_envelop_2:97,e_prc_envelop_3:98,e_prc_envelop_4:99,e_prc_envelop_5:100,e_prc_envelop_6:101,e_prc_envelop_7:102,e_prc_envelop_8:103,e_prc_envelop_9:104,e_prc_envelop_10:105,e_prc_16k_rotated:106,e_prc_32k_rotated:107,e_prc_32k_big__rotated:108,e_prc_envelop_1_rotated:109,e_prc_envelop_2_rotated:110,
-e_prc_envelop_3_rotated:111,e_prc_envelop_4_rotated:112,e_prc_envelop_5_rotated:113,e_prc_envelop_6_rotated:114,e_prc_envelop_7_rotated:115,e_prc_envelop_8_rotated:116,e_prc_envelop_9_rotated:117,e_prc_envelop_10_rotated:118};PDFNet.Field.EventType={e_action_trigger_keystroke:13,e_action_trigger_format:14,e_action_trigger_validate:15,e_action_trigger_calculate:16};PDFNet.Field.Type={e_button:0,e_check:1,e_radio:2,e_text:3,e_choice:4,e_signature:5,e_null:6};PDFNet.Field.Flag={e_read_only:0,e_required:1,
-e_no_export:2,e_pushbutton_flag:3,e_radio_flag:4,e_toggle_to_off:5,e_radios_in_unison:6,e_multiline:7,e_password:8,e_file_select:9,e_no_spellcheck:10,e_no_scroll:11,e_comb:12,e_rich_text:13,e_combo:14,e_edit:15,e_sort:16,e_multiselect:17,e_commit_on_sel_change:18};PDFNet.Field.TextJustification={e_left_justified:0,e_centered:1,e_right_justified:2};PDFNet.Filter.StdFileOpenMode={e_read_mode:0,e_write_mode:1,e_append_mode:2};PDFNet.Filter.ReferencePos={e_begin:0,e_end:2,e_cur:1};PDFNet.OCGContext.OCDrawMode=
-{e_VisibleOC:0,e_AllOC:1,e_NoOC:2};PDFNet.OCMD.VisibilityPolicyType={e_AllOn:0,e_AnyOn:1,e_AnyOff:2,e_AllOff:3};PDFNet.PDFACompliance.Conformance={e_Level1A:1,e_Level1B:2,e_Level2A:3,e_Level2B:4,e_Level2U:5,e_Level3A:6,e_Level3B:7,e_Level3U:8};PDFNet.PDFACompliance.ErrorCode={e_PDFA0_1_0:10,e_PDFA0_1_1:11,e_PDFA0_1_2:12,e_PDFA0_1_3:13,e_PDFA0_1_4:14,e_PDFA0_1_5:15,e_PDFA1_2_1:121,e_PDFA1_2_2:122,e_PDFA1_3_1:131,e_PDFA1_3_2:132,e_PDFA1_3_3:133,e_PDFA1_3_4:134,e_PDFA1_4_1:141,e_PDFA1_4_2:142,e_PDFA1_6_1:161,
-e_PDFA1_7_1:171,e_PDFA1_7_2:172,e_PDFA1_7_3:173,e_PDFA1_7_4:174,e_PDFA1_8_1:181,e_PDFA1_8_2:182,e_PDFA1_8_3:183,e_PDFA1_8_4:184,e_PDFA1_8_5:185,e_PDFA1_8_6:186,e_PDFA1_10_1:1101,e_PDFA1_11_1:1111,e_PDFA1_11_2:1112,e_PDFA1_12_1:1121,e_PDFA1_12_2:1122,e_PDFA1_12_3:1123,e_PDFA1_12_4:1124,e_PDFA1_12_5:1125,e_PDFA1_12_6:1126,e_PDFA1_13_1:1131,e_PDFA2_2_1:221,e_PDFA2_3_2:232,e_PDFA2_3_3:233,e_PDFA2_3_3_1:2331,e_PDFA2_3_3_2:2332,e_PDFA2_3_4_1:2341,e_PDFA2_4_1:241,e_PDFA2_4_2:242,e_PDFA2_4_3:243,e_PDFA2_4_4:244,
-e_PDFA2_5_1:251,e_PDFA2_5_2:252,e_PDFA2_6_1:261,e_PDFA2_7_1:271,e_PDFA2_8_1:281,e_PDFA2_9_1:291,e_PDFA2_10_1:2101,e_PDFA3_2_1:321,e_PDFA3_3_1:331,e_PDFA3_3_2:332,e_PDFA3_3_3_1:3331,e_PDFA3_3_3_2:3332,e_PDFA3_4_1:341,e_PDFA3_5_1:351,e_PDFA3_5_2:352,e_PDFA3_5_3:353,e_PDFA3_5_4:354,e_PDFA3_5_5:355,e_PDFA3_5_6:356,e_PDFA3_6_1:361,e_PDFA3_7_1:371,e_PDFA3_7_2:372,e_PDFA3_7_3:373,e_PDFA4_1:41,e_PDFA4_2:42,e_PDFA4_3:43,e_PDFA4_4:44,e_PDFA4_5:45,e_PDFA4_6:46,e_PDFA5_2_1:521,e_PDFA5_2_2:522,e_PDFA5_2_3:523,
-e_PDFA5_2_4:524,e_PDFA5_2_5:525,e_PDFA5_2_6:526,e_PDFA5_2_7:527,e_PDFA5_2_8:528,e_PDFA5_2_9:529,e_PDFA5_2_10:5210,e_PDFA5_2_11:5211,e_PDFA5_3_1:531,e_PDFA5_3_2_1:5321,e_PDFA5_3_2_2:5322,e_PDFA5_3_2_3:5323,e_PDFA5_3_2_4:5324,e_PDFA5_3_2_5:5325,e_PDFA5_3_3_1:5331,e_PDFA5_3_3_2:5332,e_PDFA5_3_3_3:5333,e_PDFA5_3_3_4:5334,e_PDFA5_3_4_0:5340,e_PDFA5_3_4_1:5341,e_PDFA5_3_4_2:5342,e_PDFA5_3_4_3:5343,e_PDFA6_1_1:611,e_PDFA6_1_2:612,e_PDFA6_2_1:621,e_PDFA6_2_2:622,e_PDFA6_2_3:623,e_PDFA7_2_1:721,e_PDFA7_2_2:722,
-e_PDFA7_2_3:723,e_PDFA7_2_4:724,e_PDFA7_2_5:725,e_PDFA7_3_1:731,e_PDFA7_3_2:732,e_PDFA7_3_3:733,e_PDFA7_3_4:734,e_PDFA7_3_5:735,e_PDFA7_3_6:736,e_PDFA7_3_7:737,e_PDFA7_3_8:738,e_PDFA7_3_9:739,e_PDFA7_5_1:751,e_PDFA7_8_1:781,e_PDFA7_8_2:782,e_PDFA7_8_3:783,e_PDFA7_8_4:784,e_PDFA7_8_5:785,e_PDFA7_8_6:786,e_PDFA7_8_7:787,e_PDFA7_8_8:788,e_PDFA7_8_9:789,e_PDFA7_8_10:7810,e_PDFA7_8_11:7811,e_PDFA7_8_12:7812,e_PDFA7_8_13:7813,e_PDFA7_8_14:7814,e_PDFA7_8_15:7815,e_PDFA7_8_16:7816,e_PDFA7_8_17:7817,e_PDFA7_8_18:7818,
-e_PDFA7_8_19:7819,e_PDFA7_8_20:7820,e_PDFA7_8_21:7821,e_PDFA7_8_22:7822,e_PDFA7_8_23:7823,e_PDFA7_8_24:7824,e_PDFA7_8_25:7825,e_PDFA7_8_26:7826,e_PDFA7_8_27:7827,e_PDFA7_8_28:7828,e_PDFA7_8_29:7829,e_PDFA7_8_30:7830,e_PDFA7_8_31:7831,e_PDFA7_11_1:7111,e_PDFA7_11_2:7112,e_PDFA7_11_3:7113,e_PDFA7_11_4:7114,e_PDFA7_11_5:7115,e_PDFA9_1:91,e_PDFA9_2:92,e_PDFA9_3:93,e_PDFA9_4:94,e_PDFA3_8_1:381,e_PDFA8_2_2:822,e_PDFA8_3_3_1:8331,e_PDFA8_3_3_2:8332,e_PDFA8_3_4_1:8341,e_PDFA1_2_3:123,e_PDFA1_10_2:1102,e_PDFA1_10_3:1103,
-e_PDFA1_12_10:11210,e_PDFA1_13_5:1135,e_PDFA2_3_10:2310,e_PDFA2_4_2_10:24220,e_PDFA2_4_2_11:24221,e_PDFA2_4_2_12:24222,e_PDFA2_4_2_13:24223,e_PDFA2_5_10:2510,e_PDFA2_5_11:2511,e_PDFA2_5_12:2512,e_PDFA2_8_3_1:2831,e_PDFA2_8_3_2:2832,e_PDFA2_8_3_3:2833,e_PDFA2_8_3_4:2834,e_PDFA2_8_3_5:2835,e_PDFA2_10_20:21020,e_PDFA2_10_21:21021,e_PDFA11_0_0:11E3,e_PDFA6_2_11_8:62118,e_PDFA8_1:81,e_PDFA_3E1:1,e_PDFA_3E2:2,e_PDFA_3E3:3,e_PDFA_LAST:4};PDFNet.ContentItem.Type={e_MCR:0,e_MCID:1,e_OBJR:2,e_Unknown:3};PDFNet.Action.Type=
-{e_GoTo:0,e_GoToR:1,e_GoToE:2,e_Launch:3,e_Thread:4,e_URI:5,e_Sound:6,e_Movie:7,e_Hide:8,e_Named:9,e_SubmitForm:10,e_ResetForm:11,e_ImportData:12,e_JavaScript:13,e_SetOCGState:14,e_Rendition:15,e_Trans:16,e_GoTo3DView:17,e_RichMediaExecute:18,e_Unknown:19};PDFNet.Action.FormActionFlag={e_exclude:0,e_include_no_value_fields:1,e_export_format:2,e_get_method:3,e_submit_coordinates:4,e_xfdf:5,e_include_append_saves:6,e_include_annotations:7,e_submit_pdf:8,e_canonical_format:9,e_excl_non_user_annots:10,
-e_excl_F_key:11,e_embed_form:13};PDFNet.Page.EventType={e_action_trigger_page_open:11,e_action_trigger_page_close:12};PDFNet.Page.Box={e_media:0,e_crop:1,e_bleed:2,e_trim:3,e_art:4,e_user_crop:5};PDFNet.Page.Rotate={e_0:0,e_90:1,e_180:2,e_270:3};PDFNet.Annot.EventType={e_action_trigger_activate:0,e_action_trigger_annot_enter:1,e_action_trigger_annot_exit:2,e_action_trigger_annot_down:3,e_action_trigger_annot_up:4,e_action_trigger_annot_focus:5,e_action_trigger_annot_blur:6,e_action_trigger_annot_page_open:7,
-e_action_trigger_annot_page_close:8,e_action_trigger_annot_page_visible:9,e_action_trigger_annot_page_invisible:10};PDFNet.Annot.Type={e_Text:0,e_Link:1,e_FreeText:2,e_Line:3,e_Square:4,e_Circle:5,e_Polygon:6,e_Polyline:7,e_Highlight:8,e_Underline:9,e_Squiggly:10,e_StrikeOut:11,e_Stamp:12,e_Caret:13,e_Ink:14,e_Popup:15,e_FileAttachment:16,e_Sound:17,e_Movie:18,e_Widget:19,e_Screen:20,e_PrinterMark:21,e_TrapNet:22,e_Watermark:23,e_3D:24,e_Redact:25,e_Projection:26,e_RichMedia:27,e_Unknown:28};PDFNet.Annot.Flag=
-{e_invisible:0,e_hidden:1,e_print:2,e_no_zoom:3,e_no_rotate:4,e_no_view:5,e_annot_read_only:6,e_locked:7,e_toggle_no_view:8,e_locked_contents:9};PDFNet.AnnotBorderStyle.Style={e_solid:0,e_dashed:1,e_beveled:2,e_inset:3,e_underline:4};PDFNet.Annot.State={e_normal:0,e_rollover:1,e_down:2};PDFNet.LineAnnot.EndingStyle={e_Square:0,e_Circle:1,e_Diamond:2,e_OpenArrow:3,e_ClosedArrow:4,e_Butt:5,e_ROpenArrow:6,e_RClosedArrow:7,e_Slash:8,e_None:9,e_Unknown:10};PDFNet.LineAnnot.IntentType={e_LineArrow:0,e_LineDimension:1,
-e_null:2};PDFNet.LineAnnot.CapPos={e_Inline:0,e_Top:1};PDFNet.FileAttachmentAnnot.Icon={e_Graph:0,e_PushPin:1,e_Paperclip:2,e_Tag:3,e_Unknown:4};PDFNet.FreeTextAnnot.IntentName={e_FreeText:0,e_FreeTextCallout:1,e_FreeTextTypeWriter:2,e_Unknown:3};PDFNet.LinkAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3};PDFNet.MarkupAnnot.BorderEffect={e_None:0,e_Cloudy:1};PDFNet.PolyLineAnnot.IntentType={e_PolygonCloud:0,e_PolyLineDimension:1,e_PolygonDimension:2,e_Unknown:3};PDFNet.RedactionAnnot.QuadForm=
-{e_LeftJustified:0,e_Centered:1,e_RightJustified:2,e_None:3};PDFNet.RubberStampAnnot.Icon={e_Approved:0,e_Experimental:1,e_NotApproved:2,e_AsIs:3,e_Expired:4,e_NotForPublicRelease:5,e_Confidential:6,e_Final:7,e_Sold:8,e_Departmental:9,e_ForComment:10,e_TopSecret:11,e_ForPublicRelease:12,e_Draft:13,e_Unknown:14};PDFNet.ScreenAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.ScreenAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1,e_WhenSmaller:2,e_Never:3};PDFNet.ScreenAnnot.IconCaptionRelation=
-{e_NoIcon:0,e_NoCaption:1,e_CBelowI:2,e_CAboveI:3,e_CRightILeft:4,e_CLeftIRight:5,e_COverlayI:6};PDFNet.SoundAnnot.Icon={e_Speaker:0,e_Mic:1,e_Unknown:2};PDFNet.TextAnnot.Icon={e_Comment:0,e_Key:1,e_Help:2,e_NewParagraph:3,e_Paragraph:4,e_Insert:5,e_Note:6,e_Unknown:7};PDFNet.WidgetAnnot.HighlightingMode={e_none:0,e_invert:1,e_outline:2,e_push:3,e_toggle:4};PDFNet.WidgetAnnot.ScaleType={e_Anamorphic:0,e_Proportional:1};PDFNet.WidgetAnnot.IconCaptionRelation={e_NoIcon:0,e_NoCaption:1,e_CBelowI:2,e_CAboveI:3,
-e_CRightILeft:4,e_CLeftIRight:5,e_COverlayI:6};PDFNet.WidgetAnnot.ScaleCondition={e_Always:0,e_WhenBigger:1,e_WhenSmaller:2,e_Never:3};PDFNet.ColorSpace.Type={e_device_gray:0,e_device_rgb:1,e_device_cmyk:2,e_cal_gray:3,e_cal_rgb:4,e_lab:5,e_icc:6,e_indexed:7,e_pattern:8,e_separation:9,e_device_n:10,e_null:11};PDFNet.Convert.PrinterMode={e_auto:0,e_interop_only:1,e_printer_only:2,e_prefer_builtin_converter:3};PDFNet.Destination.FitType={e_XYZ:0,e_Fit:1,e_FitH:2,e_FitV:3,e_FitR:4,e_FitB:5,e_FitBH:6,
-e_FitBV:7};PDFNet.GState.Attribute={e_transform:0,e_rendering_intent:1,e_stroke_cs:2,e_stroke_color:3,e_fill_cs:4,e_fill_color:5,e_line_width:6,e_line_cap:7,e_line_join:8,e_flatness:9,e_miter_limit:10,e_dash_pattern:11,e_char_spacing:12,e_word_spacing:13,e_horizontal_scale:14,e_leading:15,e_font:16,e_font_size:17,e_text_render_mode:18,e_text_rise:19,e_text_knockout:20,e_text_pos_offset:21,e_blend_mode:22,e_opacity_fill:23,e_opacity_stroke:24,e_alpha_is_shape:25,e_soft_mask:26,e_smoothnes:27,e_auto_stoke_adjust:28,
-e_stroke_overprint:29,e_fill_overprint:30,e_overprint_mode:31,e_transfer_funct:32,e_BG_funct:33,e_UCR_funct:34,e_halftone:35,e_null:36};PDFNet.GState.LineCap={e_butt_cap:0,e_round_cap:1,e_square_cap:2};PDFNet.GState.LineJoin={e_miter_join:0,e_round_join:1,e_bevel_join:2};PDFNet.GState.TextRenderingMode={e_fill_text:0,e_stroke_text:1,e_fill_stroke_text:2,e_invisible_text:3,e_fill_clip_text:4,e_stroke_clip_text:5,e_fill_stroke_clip_text:6,e_clip_text:7};PDFNet.GState.RenderingIntent={e_absolute_colorimetric:0,
-e_relative_colorimetric:1,e_saturation:2,e_perceptual:3};PDFNet.GState.BlendMode={e_bl_compatible:0,e_bl_normal:1,e_bl_multiply:2,e_bl_screen:3,e_bl_difference:4,e_bl_darken:5,e_bl_lighten:6,e_bl_color_dodge:7,e_bl_color_burn:8,e_bl_exclusion:9,e_bl_hard_light:10,e_bl_overlay:11,e_bl_soft_light:12,e_bl_luminosity:13,e_bl_hue:14,e_bl_saturation:15,e_bl_color:16};PDFNet.Element.Type={e_null:0,e_path:1,e_text_begin:2,e_text:3,e_text_new_line:4,e_text_end:5,e_image:6,e_inline_image:7,e_shading:8,e_form:9,
-e_group_begin:10,e_group_end:11,e_marked_content_begin:12,e_marked_content_end:13,e_marked_content_point:14};PDFNet.Element.PathSegmentType={e_moveto:1,e_lineto:2,e_cubicto:3,e_conicto:4,e_rect:5,e_closepath:6};PDFNet.ShapedText.ShapingStatus={e_FullShaping:0,e_PartialShaping:1,e_NoShaping:2};PDFNet.ShapedText.FailureReason={e_NoFailure:0,e_UnsupportedFontType:1,e_NotIndexEncoded:2,e_FontDataNotFound:3};PDFNet.ElementWriter.WriteMode={e_underlay:0,e_overlay:1,e_replacement:2};PDFNet.Flattener.Threshold=
-{e_very_strict:0,e_strict:1,e_default:2,e_keep_most:3,e_keep_all:4};PDFNet.Flattener.Mode={e_simple:0,e_fast:1};PDFNet.Font.StandardType1Font={e_times_roman:0,e_times_bold:1,e_times_italic:2,e_times_bold_italic:3,e_helvetica:4,e_helvetica_bold:5,e_helvetica_oblique:6,e_helvetica_bold_oblique:7,e_courier:8,e_courier_bold:9,e_courier_oblique:10,e_courier_bold_oblique:11,e_symbol:12,e_zapf_dingbats:13,e_null:14};PDFNet.Font.Encoding={e_IdentityH:0,e_Indices:1};PDFNet.Font.Type={e_Type1:0,e_TrueType:1,
-e_MMType1:2,e_Type3:3,e_Type0:4,e_CIDType0:5,e_CIDType2:6};PDFNet.Function.Type={e_sampled:0,e_exponential:2,e_stitching:3,e_postscript:4};PDFNet.Image.InputFilter={e_none:0,e_jpeg:1,e_jp2:2,e_flate:3,e_g3:4,e_g4:5,e_ascii_hex:6};PDFNet.PageLabel.Style={e_decimal:0,e_roman_uppercase:1,e_roman_lowercase:2,e_alphabetic_uppercase:3,e_alphabetic_lowercase:4,e_none:5};PDFNet.PageSet.Filter={e_all:0,e_even:1,e_odd:2};PDFNet.PatternColor.Type={e_uncolored_tiling_pattern:0,e_colored_tiling_pattern:1,e_shading:2,
-e_null:3};PDFNet.PatternColor.TilingType={e_constant_spacing:0,e_no_distortion:1,e_constant_spacing_fast_fill:2};PDFNet.GeometryCollection.SnappingMode={e_DefaultSnapMode:14,e_PointOnLine:1,e_LineMidpoint:2,e_LineIntersection:4,e_PathEndpoint:8};PDFNet.DigestAlgorithm.Type={e_SHA1:0,e_SHA256:1,e_SHA384:2,e_SHA512:3,e_RIPEMD160:4,e_unknown_digest_algorithm:5};PDFNet.ObjectIdentifier.Predefined={e_commonName:0,e_surname:1,e_countryName:2,e_localityName:3,e_stateOrProvinceName:4,e_streetAddress:5,e_organizationName:6,
-e_organizationalUnitName:7,e_SHA1:8,e_SHA256:9,e_SHA384:10,e_SHA512:11,e_RIPEMD160:12,e_RSA_encryption_PKCS1:13};PDFNet.DigitalSignatureField.SubFilterType={e_adbe_x509_rsa_sha1:0,e_adbe_pkcs7_detached:1,e_adbe_pkcs7_sha1:2,e_ETSI_CAdES_detached:3,e_ETSI_RFC3161:4,e_unknown:5,e_absent:6};PDFNet.DigitalSignatureField.DocumentPermissions={e_no_changes_allowed:1,e_formfilling_signing_allowed:2,e_annotating_formfilling_signing_allowed:3,e_unrestricted:4};PDFNet.DigitalSignatureField.FieldPermissions=
-{e_lock_all:0,e_include:1,e_exclude:2};PDFNet.PDFDoc.EventType={e_action_trigger_doc_will_close:17,e_action_trigger_doc_will_save:18,e_action_trigger_doc_did_save:19,e_action_trigger_doc_will_print:20,e_action_trigger_doc_did_print:21};PDFNet.PDFDoc.InsertFlag={e_none:0,e_insert_bookmark:1};PDFNet.PDFDoc.ExtractFlag={e_forms_only:0,e_annots_only:1,e_both:2};PDFNet.PDFDoc.SignaturesVerificationStatus={e_unsigned:0,e_failure:1,e_untrusted:2,e_unsupported:3,e_verified:4};PDFNet.PDFDocViewPrefs.PageMode=
-{e_UseNone:0,e_UseThumbs:1,e_UseBookmarks:2,e_FullScreen:3,e_UseOC:4,e_UseAttachments:5};PDFNet.PDFDocViewPrefs.PageLayout={e_Default:0,e_SinglePage:1,e_OneColumn:2,e_TwoColumnLeft:3,e_TwoColumnRight:4,e_TwoPageLeft:5,e_TwoPageRight:6};PDFNet.PDFDocViewPrefs.ViewerPref={e_HideToolbar:0,e_HideMenubar:1,e_HideWindowUI:2,e_FitWindow:3,e_CenterWindow:4,e_DisplayDocTitle:5};PDFNet.PDFRasterizer.Type={e_BuiltIn:0,e_GDIPlus:1};PDFNet.PDFRasterizer.OverprintPreviewMode={e_op_off:0,e_op_on:1,e_op_pdfx_on:2};
-PDFNet.PDFRasterizer.ColorPostProcessMode={e_postprocess_none:0,e_postprocess_invert:1,e_postprocess_gradient_map:2,e_postprocess_night_mode:3};PDFNet.PDFDraw.PixelFormat={e_rgba:0,e_bgra:1,e_rgb:2,e_bgr:3,e_gray:4,e_gray_alpha:5,e_cmyk:6};PDFNet.CMSType={e_lcms:0,e_icm:1,e_no_cms:2};PDFNet.CharacterOrdering={e_Identity:0,e_Japan1:1,e_Japan2:2,e_GB1:3,e_CNS1:4,e_Korea1:5};PDFNet.LogLevel={e_LogLevel_Off:-1,e_LogLevel_Fatal:5,e_LogLevel_Error:4,e_LogLevel_Warning:3,e_LogLevel_Info:2,e_LogLevel_Trace:1,
-e_LogLevel_Debug:0};PDFNet.ConnectionErrorHandlingMode={e_continue:0,e_continue_unless_switching_to_demo:1,e_stop:2};PDFNet.Shading.Type={e_function_shading:0,e_axial_shading:1,e_radial_shading:2,e_free_gouraud_shading:3,e_lattice_gouraud_shading:4,e_coons_shading:5,e_tensor_shading:6,e_null:7};PDFNet.Stamper.SizeType={e_relative_scale:1,e_absolute_size:2,e_font_size:3};PDFNet.Stamper.TextAlignment={e_align_left:-1,e_align_center:0,e_align_right:1};PDFNet.Stamper.HorizontalAlignment={e_horizontal_left:-1,
-e_horizontal_center:0,e_horizontal_right:1};PDFNet.Stamper.VerticalAlignment={e_vertical_bottom:-1,e_vertical_center:0,e_vertical_top:1};PDFNet.TextExtractor.ProcessingFlags={e_no_ligature_exp:1,e_no_dup_remove:2,e_punct_break:4,e_remove_hidden_text:8,e_no_invisible_text:16,e_no_watermarks:128,e_extract_using_zorder:256};PDFNet.TextExtractor.XMLOutputFlags={e_words_as_elements:1,e_output_bbox:2,e_output_style_info:4};PDFNet.TextSearch.ResultCode={e_done:0,e_page:1,e_found:2};PDFNet.TextSearch.Mode=
-{e_reg_expression:1,e_case_sensitive:2,e_whole_word:4,e_search_up:8,e_page_stop:16,e_highlight:32,e_ambient_string:64};PDFNet.Obj.Type={e_null:0,e_bool:1,e_number:2,e_name:3,e_string:4,e_dict:5,e_array:6,e_stream:7};PDFNet.SDFDoc.SaveOptions={e_incremental:1,e_remove_unused:2,e_hex_strings:4,e_omit_xref:8,e_linearized:16,e_compatibility:32};PDFNet.SecurityHandler.Permission={e_owner:1,e_doc_open:2,e_doc_modify:3,e_print:4,e_print_high:5,e_extract_content:6,e_mod_annot:7,e_fill_forms:8,e_access_support:9,
-e_assemble_doc:10};PDFNet.SecurityHandler.AlgorithmType={e_RC4_40:1,e_RC4_128:2,e_AES:3,e_AES_256:4};PDFNet.VerificationOptions.SecurityLevel={e_compatibility_and_archiving:0,e_maximum:1};PDFNet.VerificationOptions.TimeMode={e_signing:0,e_timestamp:1,e_current:2};PDFNet.VerificationOptions.CertificateTrustFlag={e_signing_trust:1,e_certification_trust:2,e_dynamic_content:4,e_javascript:16,e_identity:32,e_trust_anchor:64,e_default_trust:97,e_complete_trust:119};PDFNet.VerificationResult.DocumentStatus=
-{e_no_error:0,e_corrupt_file:1,e_unsigned:2,e_bad_byteranges:3,e_corrupt_cryptographic_contents:4};PDFNet.VerificationResult.DigestStatus={e_digest_invalid:0,e_digest_verified:1,e_digest_verification_disabled:2,e_weak_digest_algorithm_but_digest_verifiable:3,e_no_digest_status:4,e_unsupported_encoding:5};PDFNet.VerificationResult.TrustStatus={e_trust_verified:0,e_untrusted:1,e_trust_verification_disabled:2,e_no_trust_status:3};PDFNet.VerificationResult.ModificationPermissionsStatus={e_invalidated_by_disallowed_changes:0,
-e_has_allowed_changes:1,e_unmodified:2,e_permissions_verification_disabled:3,e_no_permissions_status:4};PDFNet.DisallowedChange.Type={e_form_filled:0,e_digital_signature_signed:1,e_page_template_instantiated:2,e_annotation_created_or_updated_or_deleted:3,e_other:4,e_unknown:5};PDFNet.Iterator.prototype.hasNext=function(){return PDFNet.sendWithPromise("Iterator.hasNext",{itr:this.id})};PDFNet.Iterator.prototype.next=function(){return PDFNet.sendWithPromise("Iterator.next",{itr:this.id})};PDFNet.DictIterator.prototype.hasNext=
-function(){return PDFNet.sendWithPromise("DictIterator.hasNext",{itr:this.id})};PDFNet.DictIterator.prototype.key=function(){return PDFNet.sendWithPromise("DictIterator.key",{itr:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.DictIterator.prototype.value=function(){return PDFNet.sendWithPromise("DictIterator.value",{itr:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.DictIterator.prototype.next=function(){return PDFNet.sendWithPromise("DictIterator.next",
-{itr:this.id})};PDFNet.Matrix2D.prototype.copy=function(){checkThisYieldFunction("copy",this.yieldFunction);return PDFNet.sendWithPromise("Matrix2D.copy",{m:this}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.set=function(a,b,c,d,h,v){checkArguments(arguments.length,6,"set","(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);checkThisYieldFunction("set",this.yieldFunction);var me=this;
-this.yieldFunction="Matrix2D.set";return PDFNet.sendWithPromise("Matrix2D.set",{matrix:this,a:a,b:b,c:c,d:d,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.concat=function(a,b,c,d,h,v){checkArguments(arguments.length,6,"concat","(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);checkThisYieldFunction("concat",this.yieldFunction);var me=this;this.yieldFunction="Matrix2D.concat";
-return PDFNet.sendWithPromise("Matrix2D.concat",{matrix:this,a:a,b:b,c:c,d:d,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.equals=function(m2){checkArguments(arguments.length,1,"equals","(PDFNet.Matrix2D)",[[m2,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkThisYieldFunction("equals",this.yieldFunction);checkParamsYieldFunction("equals",[[m2,0]]);return PDFNet.sendWithPromise("Matrix2D.equals",{m1:this,m2:m2})};PDFNet.Matrix2D.prototype.inverse=function(){checkThisYieldFunction("inverse",
-this.yieldFunction);return PDFNet.sendWithPromise("Matrix2D.inverse",{matrix:this}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.translate=function(h,v){checkArguments(arguments.length,2,"translate","(number, number)",[[h,"number"],[v,"number"]]);checkThisYieldFunction("translate",this.yieldFunction);var me=this;this.yieldFunction="Matrix2D.translate";return PDFNet.sendWithPromise("Matrix2D.translate",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;
-copyFunc(id,me)})};PDFNet.Matrix2D.prototype.preTranslate=function(h,v){checkArguments(arguments.length,2,"preTranslate","(number, number)",[[h,"number"],[v,"number"]]);checkThisYieldFunction("preTranslate",this.yieldFunction);var me=this;this.yieldFunction="Matrix2D.preTranslate";return PDFNet.sendWithPromise("Matrix2D.preTranslate",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.postTranslate=function(h,v){checkArguments(arguments.length,
-2,"postTranslate","(number, number)",[[h,"number"],[v,"number"]]);checkThisYieldFunction("postTranslate",this.yieldFunction);var me=this;this.yieldFunction="Matrix2D.postTranslate";return PDFNet.sendWithPromise("Matrix2D.postTranslate",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.prototype.scale=function(h,v){checkArguments(arguments.length,2,"scale","(number, number)",[[h,"number"],[v,"number"]]);checkThisYieldFunction("scale",this.yieldFunction);
-var me=this;this.yieldFunction="Matrix2D.scale";return PDFNet.sendWithPromise("Matrix2D.scale",{matrix:this,h:h,v:v}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Matrix2D.createZeroMatrix=function(){return PDFNet.sendWithPromise("matrix2DCreateZeroMatrix",{}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.createIdentityMatrix=function(){return PDFNet.sendWithPromise("matrix2DCreateIdentityMatrix",{}).then(function(id){return new PDFNet.Matrix2D(id)})};
-PDFNet.Matrix2D.createRotationMatrix=function(angle){checkArguments(arguments.length,1,"createRotationMatrix","(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("matrix2DCreateRotationMatrix",{angle:angle}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Matrix2D.prototype.multiply=function(m){checkArguments(arguments.length,1,"multiply","(PDFNet.Matrix2D)",[[m,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkThisYieldFunction("multiply",this.yieldFunction);checkParamsYieldFunction("multiply",
-[[m,0]]);var me=this;this.yieldFunction="Matrix2D.multiply";return PDFNet.sendWithPromise("Matrix2D.multiply",{matrix:this,m:m}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.create=function(field_dict){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[field_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fieldCreate",{field_dict:field_dict.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.Field.prototype.isValid=function(){checkThisYieldFunction("isValid",
-this.yieldFunction);return PDFNet.sendWithPromise("Field.isValid",{field:this})};PDFNet.Field.prototype.getType=function(){checkThisYieldFunction("getType",this.yieldFunction);return PDFNet.sendWithPromise("Field.getType",{field:this})};PDFNet.Field.prototype.getValue=function(){checkThisYieldFunction("getValue",this.yieldFunction);return PDFNet.sendWithPromise("Field.getValue",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getValueAsString=function(){checkThisYieldFunction("getValueAsString",
-this.yieldFunction);return PDFNet.sendWithPromise("Field.getValueAsString",{field:this})};PDFNet.Field.prototype.getDefaultValueAsString=function(){checkThisYieldFunction("getDefaultValueAsString",this.yieldFunction);return PDFNet.sendWithPromise("Field.getDefaultValueAsString",{field:this})};PDFNet.Field.prototype.setValueAsString=function(value){checkArguments(arguments.length,1,"setValueAsString","(string)",[[value,"string"]]);checkThisYieldFunction("setValueAsString",this.yieldFunction);var me=
-this;this.yieldFunction="Field.setValueAsString";return PDFNet.sendWithPromise("Field.setValueAsString",{field:this,value:value}).then(function(id){me.yieldFunction=void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setValue=function(value){checkArguments(arguments.length,1,"setValue","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("setValue",this.yieldFunction);var me=this;this.yieldFunction=
-"Field.setValue";return PDFNet.sendWithPromise("Field.setValue",{field:this,value:value.id}).then(function(id){me.yieldFunction=void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setValueAsBool=function(value){checkArguments(arguments.length,1,"setValueAsBool","(boolean)",[[value,"boolean"]]);checkThisYieldFunction("setValueAsBool",this.yieldFunction);var me=this;this.yieldFunction="Field.setValueAsBool";return PDFNet.sendWithPromise("Field.setValueAsBool",
-{field:this,value:value}).then(function(id){me.yieldFunction=void 0;id.result=createDestroyableObj(PDFNet.ViewChangeCollection,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.getTriggerAction=function(trigger){checkArguments(arguments.length,1,"getTriggerAction","(number)",[[trigger,"number"]]);checkThisYieldFunction("getTriggerAction",this.yieldFunction);return PDFNet.sendWithPromise("Field.getTriggerAction",{field:this,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Field.prototype.getValueAsBool=function(){checkThisYieldFunction("getValueAsBool",this.yieldFunction);return PDFNet.sendWithPromise("Field.getValueAsBool",{field:this})};PDFNet.Field.prototype.refreshAppearance=function(){checkThisYieldFunction("refreshAppearance",this.yieldFunction);var me=this;this.yieldFunction="Field.refreshAppearance";return PDFNet.sendWithPromise("Field.refreshAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.eraseAppearance=
-function(){checkThisYieldFunction("eraseAppearance",this.yieldFunction);var me=this;this.yieldFunction="Field.eraseAppearance";return PDFNet.sendWithPromise("Field.eraseAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getDefaultValue=function(){checkThisYieldFunction("getDefaultValue",this.yieldFunction);return PDFNet.sendWithPromise("Field.getDefaultValue",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getName=
-function(){checkThisYieldFunction("getName",this.yieldFunction);return PDFNet.sendWithPromise("Field.getName",{field:this})};PDFNet.Field.prototype.getPartialName=function(){checkThisYieldFunction("getPartialName",this.yieldFunction);return PDFNet.sendWithPromise("Field.getPartialName",{field:this})};PDFNet.Field.prototype.rename=function(field_name){checkArguments(arguments.length,1,"rename","(string)",[[field_name,"string"]]);checkThisYieldFunction("rename",this.yieldFunction);var me=this;this.yieldFunction=
-"Field.rename";return PDFNet.sendWithPromise("Field.rename",{field:this,field_name:field_name}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.isAnnot=function(){checkThisYieldFunction("isAnnot",this.yieldFunction);return PDFNet.sendWithPromise("Field.isAnnot",{field:this})};PDFNet.Field.prototype.useSignatureHandler=function(signature_handler_id){checkArguments(arguments.length,1,"useSignatureHandler","(number)",[[signature_handler_id,"number"]]);checkThisYieldFunction("useSignatureHandler",
-this.yieldFunction);var me=this;this.yieldFunction="Field.useSignatureHandler";return PDFNet.sendWithPromise("Field.useSignatureHandler",{field:this,signature_handler_id:signature_handler_id}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.getFlag=function(flag){checkArguments(arguments.length,1,"getFlag","(number)",[[flag,"number"]]);checkThisYieldFunction("getFlag",this.yieldFunction);return PDFNet.sendWithPromise("Field.getFlag",
-{field:this,flag:flag})};PDFNet.Field.prototype.setFlag=function(flag,value){checkArguments(arguments.length,2,"setFlag","(number, boolean)",[[flag,"number"],[value,"boolean"]]);checkThisYieldFunction("setFlag",this.yieldFunction);var me=this;this.yieldFunction="Field.setFlag";return PDFNet.sendWithPromise("Field.setFlag",{field:this,flag:flag,value:value}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getJustification=function(){checkThisYieldFunction("getJustification",
-this.yieldFunction);var me=this;this.yieldFunction="Field.getJustification";return PDFNet.sendWithPromise("Field.getJustification",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.setJustification=function(j){checkArguments(arguments.length,1,"setJustification","(number)",[[j,"number"]]);checkThisYieldFunction("setJustification",this.yieldFunction);var me=this;this.yieldFunction="Field.setJustification";return PDFNet.sendWithPromise("Field.setJustification",
-{field:this,j:j}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.setMaxLen=function(max_len){checkArguments(arguments.length,1,"setMaxLen","(number)",[[max_len,"number"]]);checkThisYieldFunction("setMaxLen",this.yieldFunction);var me=this;this.yieldFunction="Field.setMaxLen";return PDFNet.sendWithPromise("Field.setMaxLen",{field:this,max_len:max_len}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Field.prototype.getMaxLen=function(){checkThisYieldFunction("getMaxLen",
-this.yieldFunction);return PDFNet.sendWithPromise("Field.getMaxLen",{field:this})};PDFNet.Field.prototype.getDefaultAppearance=function(){checkThisYieldFunction("getDefaultAppearance",this.yieldFunction);var me=this;this.yieldFunction="Field.getDefaultAppearance";return PDFNet.sendWithPromise("Field.getDefaultAppearance",{field:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.GState,id.result);copyFunc(id.field,me);return id.result})};PDFNet.Field.prototype.getUpdateRect=
-function(){checkThisYieldFunction("getUpdateRect",this.yieldFunction);return PDFNet.sendWithPromise("Field.getUpdateRect",{field:this}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Field.prototype.flatten=function(page){checkArguments(arguments.length,1,"flatten","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);checkThisYieldFunction("flatten",this.yieldFunction);var me=this;this.yieldFunction="Field.flatten";return PDFNet.sendWithPromise("Field.flatten",{field:this,page:page.id}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id,me)})};PDFNet.Field.prototype.findInheritedAttribute=function(attrib){checkArguments(arguments.length,1,"findInheritedAttribute","(string)",[[attrib,"string"]]);checkThisYieldFunction("findInheritedAttribute",this.yieldFunction);return PDFNet.sendWithPromise("Field.findInheritedAttribute",{field:this,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);return PDFNet.sendWithPromise("Field.getSDFObj",
-{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Field.prototype.getOptCount=function(){checkThisYieldFunction("getOptCount",this.yieldFunction);return PDFNet.sendWithPromise("Field.getOptCount",{field:this})};PDFNet.Field.prototype.getOpt=function(index){checkArguments(arguments.length,1,"getOpt","(number)",[[index,"number"]]);checkThisYieldFunction("getOpt",this.yieldFunction);return PDFNet.sendWithPromise("Field.getOpt",{field:this,index:index})};PDFNet.Field.prototype.isLockedByDigitalSignature=
-function(){checkThisYieldFunction("isLockedByDigitalSignature",this.yieldFunction);return PDFNet.sendWithPromise("Field.isLockedByDigitalSignature",{field:this})};PDFNet.FDFDoc.create=function(){return PDFNet.sendWithPromise("fdfDocCreate",{}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.createFromStream=function(stream){checkArguments(arguments.length,1,"createFromStream","(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);0!=stream.id&&avoidCleanup(stream.id);
-return PDFNet.sendWithPromise("fdfDocCreateFromStream",{no_own_stream:stream.id}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.createFromMemoryBuffer=function(buf){checkArguments(arguments.length,1,"createFromMemoryBuffer","(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("fdfDocCreateFromMemoryBuffer",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};
-PDFNet.FDFDoc.prototype.isModified=function(){return PDFNet.sendWithPromise("FDFDoc.isModified",{doc:this.id})};PDFNet.FDFDoc.prototype.saveMemoryBuffer=function(){return PDFNet.sendWithPromise("FDFDoc.saveMemoryBuffer",{doc:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.FDFDoc.prototype.getTrailer=function(){return PDFNet.sendWithPromise("FDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getRoot=function(){return PDFNet.sendWithPromise("FDFDoc.getRoot",
-{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getFDF=function(){return PDFNet.sendWithPromise("FDFDoc.getFDF",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.getPDFFileName=function(){return PDFNet.sendWithPromise("FDFDoc.getPDFFileName",{doc:this.id})};PDFNet.FDFDoc.prototype.setPDFFileName=function(filepath){checkArguments(arguments.length,1,"setPDFFileName","(string)",[[filepath,"string"]]);return PDFNet.sendWithPromise("FDFDoc.setPDFFileName",
-{doc:this.id,filepath:filepath})};PDFNet.FDFDoc.prototype.getID=function(){return PDFNet.sendWithPromise("FDFDoc.getID",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFDoc.prototype.setID=function(id){checkArguments(arguments.length,1,"setID","(PDFNet.Obj)",[[id,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("FDFDoc.setID",{doc:this.id,id:id.id})};PDFNet.FDFDoc.prototype.getFieldIteratorBegin=function(){return PDFNet.sendWithPromise("FDFDoc.getFieldIteratorBegin",
-{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"FDFField")})};PDFNet.FDFDoc.prototype.getFieldIterator=function(field_name){checkArguments(arguments.length,1,"getFieldIterator","(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("FDFDoc.getFieldIterator",{doc:this.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"FDFField")})};PDFNet.FDFDoc.prototype.getField=function(field_name){checkArguments(arguments.length,
-1,"getField","(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("FDFDoc.getField",{doc:this.id,field_name:field_name}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFDoc.prototype.fieldCreate=function(field_name,type,field_value){"undefined"===typeof field_value&&(field_value=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fieldCreate","(string, number, PDFNet.Obj)",[[field_name,"string"],[type,"number"],[field_value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("FDFDoc.fieldCreate",
-{doc:this.id,field_name:field_name,type:type,field_value:field_value.id}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFDoc.prototype.fieldCreateFromString=function(field_name,type,field_value){checkArguments(arguments.length,3,"fieldCreateFromString","(string, number, string)",[[field_name,"string"],[type,"number"],[field_value,"string"]]);return PDFNet.sendWithPromise("FDFDoc.fieldCreateFromString",{doc:this.id,field_name:field_name,type:type,field_value:field_value}).then(function(id){return new PDFNet.FDFField(id)})};
-PDFNet.FDFDoc.prototype.getSDFDoc=function(){return PDFNet.sendWithPromise("FDFDoc.getSDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.FDFDoc.createFromXFDF=function(file_name){checkArguments(arguments.length,1,"createFromXFDF","(string)",[[file_name,"string"]]);return PDFNet.sendWithPromise("fdfDocCreateFromXFDF",{file_name:file_name}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.FDFDoc.prototype.saveAsXFDFWithOptions=function(filepath,
-opts){"undefined"===typeof opts&&(opts=null);checkArguments(arguments.length,1,"saveAsXFDFWithOptions","(string, PDFNet.OptionBase)",[[filepath,"string"],[opts,"OptionBase"]]);checkParamsYieldFunction("saveAsXFDFWithOptions",[[opts,1]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFWithOptions",{doc:this.id,filepath:filepath,opts:opts})};PDFNet.FDFDoc.prototype.saveAsXFDFAsString=function(){return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFAsString",{doc:this.id})};
-PDFNet.FDFDoc.prototype.saveAsXFDFAsStringWithOptions=function(opts){"undefined"===typeof opts&&(opts=null);checkArguments(arguments.length,0,"saveAsXFDFAsStringWithOptions","(PDFNet.OptionBase)",[[opts,"OptionBase"]]);checkParamsYieldFunction("saveAsXFDFAsStringWithOptions",[[opts,0]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("FDFDoc.saveAsXFDFAsStringWithOptions",{doc:this.id,opts:opts})};PDFNet.FDFDoc.prototype.mergeAnnots=function(command_file,permitted_user){"undefined"===
-typeof permitted_user&&(permitted_user="");checkArguments(arguments.length,1,"mergeAnnots","(string, string)",[[command_file,"string"],[permitted_user,"string"]]);return PDFNet.sendWithPromise("FDFDoc.mergeAnnots",{doc:this.id,command_file:command_file,permitted_user:permitted_user})};PDFNet.FDFField.create=function(field_dict,fdf_dict){"undefined"===typeof field_dict&&(field_dict=new PDFNet.Obj("0"));"undefined"===typeof fdf_dict&&(fdf_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,
-"create","(PDFNet.Obj, PDFNet.Obj)",[[field_dict,"Object",PDFNet.Obj,"Obj"],[fdf_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fdfFieldCreate",{field_dict:field_dict.id,fdf_dict:fdf_dict.id}).then(function(id){return new PDFNet.FDFField(id)})};PDFNet.FDFField.prototype.getValue=function(){checkThisYieldFunction("getValue",this.yieldFunction);var me=this;this.yieldFunction="FDFField.getValue";return PDFNet.sendWithPromise("FDFField.getValue",{field:this}).then(function(id){me.yieldFunction=
-void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.setValue=function(value){checkArguments(arguments.length,1,"setValue","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("setValue",this.yieldFunction);var me=this;this.yieldFunction="FDFField.setValue";return PDFNet.sendWithPromise("FDFField.setValue",{field:this,value:value.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.FDFField.prototype.getName=
-function(){checkThisYieldFunction("getName",this.yieldFunction);var me=this;this.yieldFunction="FDFField.getName";return PDFNet.sendWithPromise("FDFField.getName",{field:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.getPartialName=function(){checkThisYieldFunction("getPartialName",this.yieldFunction);var me=this;this.yieldFunction="FDFField.getPartialName";return PDFNet.sendWithPromise("FDFField.getPartialName",{field:this}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id.field,me);return id.result})};PDFNet.FDFField.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);return PDFNet.sendWithPromise("FDFField.getSDFObj",{field:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.FDFField.prototype.findAttribute=function(attrib){checkArguments(arguments.length,1,"findAttribute","(string)",[[attrib,"string"]]);checkThisYieldFunction("findAttribute",this.yieldFunction);return PDFNet.sendWithPromise("FDFField.findAttribute",
-{field:this,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Filter.prototype.createASCII85Encode=function(line_width,buf_sz){checkArguments(arguments.length,2,"createASCII85Encode","(number, number)",[[line_width,"number"],[buf_sz,"number"]]);return PDFNet.sendWithPromise("Filter.createASCII85Encode",{no_own_input_filter:this.id,line_width:line_width,buf_sz:buf_sz}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createMemoryFilter=
-function(buf_sz,is_input){checkArguments(arguments.length,2,"createMemoryFilter","(number, boolean)",[[buf_sz,"number"],[is_input,"boolean"]]);return PDFNet.sendWithPromise("filterCreateMemoryFilter",{buf_sz:buf_sz,is_input:is_input}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBFromElement=function(elem){checkArguments(arguments.length,1,"createImage2RGBFromElement","(PDFNet.Element)",[[elem,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBFromElement",
-{elem:elem.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBFromObj=function(obj){checkArguments(arguments.length,1,"createImage2RGBFromObj","(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBFromObj",{obj:obj.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGB=function(img){checkArguments(arguments.length,1,"createImage2RGB","(PDFNet.Image)",[[img,
-"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("filterCreateImage2RGB",{img:img.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBAFromElement=function(elem,premultiply){checkArguments(arguments.length,2,"createImage2RGBAFromElement","(PDFNet.Element, boolean)",[[elem,"Object",PDFNet.Element,"Element"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBAFromElement",{elem:elem.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,
-id)})};PDFNet.Filter.createImage2RGBAFromObj=function(obj,premultiply){checkArguments(arguments.length,2,"createImage2RGBAFromObj","(PDFNet.Obj, boolean)",[[obj,"Object",PDFNet.Obj,"Obj"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBAFromObj",{obj:obj.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.createImage2RGBA=function(img,premultiply){checkArguments(arguments.length,2,"createImage2RGBA","(PDFNet.Image, boolean)",
-[[img,"Object",PDFNet.Image,"Image"],[premultiply,"boolean"]]);return PDFNet.sendWithPromise("filterCreateImage2RGBA",{img:img.id,premultiply:premultiply}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.attachFilter=function(attach_filter){checkArguments(arguments.length,1,"attachFilter","(PDFNet.Filter)",[[attach_filter,"Object",PDFNet.Filter,"Filter"]]);0!=attach_filter.id&&avoidCleanup(attach_filter.id);return PDFNet.sendWithPromise("Filter.attachFilter",
-{filter:this.id,no_own_attach_filter:attach_filter.id})};PDFNet.Filter.prototype.releaseAttachedFilter=function(){return PDFNet.sendWithPromise("Filter.releaseAttachedFilter",{filter:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getAttachedFilter=function(){return PDFNet.sendWithPromise("Filter.getAttachedFilter",{filter:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getSourceFilter=function(){return PDFNet.sendWithPromise("Filter.getSourceFilter",
-{filter:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getName=function(){return PDFNet.sendWithPromise("Filter.getName",{filter:this.id})};PDFNet.Filter.prototype.getDecodeName=function(){return PDFNet.sendWithPromise("Filter.getDecodeName",{filter:this.id})};PDFNet.Filter.prototype.begin=function(){return PDFNet.sendWithPromise("Filter.begin",{filter:this.id})};PDFNet.Filter.prototype.size=function(){return PDFNet.sendWithPromise("Filter.size",{filter:this.id})};
-PDFNet.Filter.prototype.consume=function(num_bytes){checkArguments(arguments.length,1,"consume","(number)",[[num_bytes,"number"]]);return PDFNet.sendWithPromise("Filter.consume",{filter:this.id,num_bytes:num_bytes})};PDFNet.Filter.prototype.count=function(){return PDFNet.sendWithPromise("Filter.count",{filter:this.id})};PDFNet.Filter.prototype.setCount=function(new_count){checkArguments(arguments.length,1,"setCount","(number)",[[new_count,"number"]]);return PDFNet.sendWithPromise("Filter.setCount",
-{filter:this.id,new_count:new_count})};PDFNet.Filter.prototype.setStreamLength=function(bytes){checkArguments(arguments.length,1,"setStreamLength","(number)",[[bytes,"number"]]);return PDFNet.sendWithPromise("Filter.setStreamLength",{filter:this.id,bytes:bytes})};PDFNet.Filter.prototype.flush=function(){return PDFNet.sendWithPromise("Filter.flush",{filter:this.id})};PDFNet.Filter.prototype.flushAll=function(){return PDFNet.sendWithPromise("Filter.flushAll",{filter:this.id})};PDFNet.Filter.prototype.isInputFilter=
-function(){return PDFNet.sendWithPromise("Filter.isInputFilter",{filter:this.id})};PDFNet.Filter.prototype.canSeek=function(){return PDFNet.sendWithPromise("Filter.canSeek",{filter:this.id})};PDFNet.Filter.prototype.seek=function(offset,origin){checkArguments(arguments.length,2,"seek","(number, number)",[[offset,"number"],[origin,"number"]]);return PDFNet.sendWithPromise("Filter.seek",{filter:this.id,offset:offset,origin:origin})};PDFNet.Filter.prototype.tell=function(){return PDFNet.sendWithPromise("Filter.tell",
-{filter:this.id})};PDFNet.Filter.prototype.createInputIterator=function(){return PDFNet.sendWithPromise("Filter.createInputIterator",{filter:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Filter.prototype.getFilePath=function(){return PDFNet.sendWithPromise("Filter.getFilePath",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterGetBuffer=function(){return PDFNet.sendWithPromise("Filter.memoryFilterGetBuffer",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterSetAsInputFilter=
-function(){return PDFNet.sendWithPromise("Filter.memoryFilterSetAsInputFilter",{filter:this.id})};PDFNet.Filter.prototype.memoryFilterReset=function(){return PDFNet.sendWithPromise("Filter.memoryFilterReset",{filter:this.id})};PDFNet.FilterReader.create=function(filter){checkArguments(arguments.length,1,"create","(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("filterReaderCreate",{filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.FilterReader,
-id)})};PDFNet.FilterReader.prototype.attachFilter=function(filter){checkArguments(arguments.length,1,"attachFilter","(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("FilterReader.attachFilter",{reader:this.id,filter:filter.id})};PDFNet.FilterReader.prototype.getAttachedFilter=function(){return PDFNet.sendWithPromise("FilterReader.getAttachedFilter",{reader:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FilterReader.prototype.seek=
-function(offset,origin){checkArguments(arguments.length,2,"seek","(number, number)",[[offset,"number"],[origin,"number"]]);return PDFNet.sendWithPromise("FilterReader.seek",{reader:this.id,offset:offset,origin:origin})};PDFNet.FilterReader.prototype.tell=function(){return PDFNet.sendWithPromise("FilterReader.tell",{reader:this.id})};PDFNet.FilterReader.prototype.count=function(){return PDFNet.sendWithPromise("FilterReader.count",{reader:this.id})};PDFNet.FilterReader.prototype.flush=function(){return PDFNet.sendWithPromise("FilterReader.flush",
-{reader:this.id})};PDFNet.FilterReader.prototype.flushAll=function(){return PDFNet.sendWithPromise("FilterReader.flushAll",{reader:this.id})};PDFNet.FilterReader.prototype.get=function(){return PDFNet.sendWithPromise("FilterReader.get",{reader:this.id})};PDFNet.FilterReader.prototype.peek=function(){return PDFNet.sendWithPromise("FilterReader.peek",{reader:this.id})};PDFNet.FilterWriter.create=function(filter){checkArguments(arguments.length,1,"create","(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,
-"Filter"]]);return PDFNet.sendWithPromise("filterWriterCreate",{filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.FilterWriter,id)})};PDFNet.FilterWriter.prototype.attachFilter=function(filter){checkArguments(arguments.length,1,"attachFilter","(PDFNet.Filter)",[[filter,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("FilterWriter.attachFilter",{writer:this.id,filter:filter.id})};PDFNet.FilterWriter.prototype.getAttachedFilter=function(){return PDFNet.sendWithPromise("FilterWriter.getAttachedFilter",
-{writer:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FilterWriter.prototype.seek=function(offset,origin){checkArguments(arguments.length,2,"seek","(number, number)",[[offset,"number"],[origin,"number"]]);return PDFNet.sendWithPromise("FilterWriter.seek",{writer:this.id,offset:offset,origin:origin})};PDFNet.FilterWriter.prototype.tell=function(){return PDFNet.sendWithPromise("FilterWriter.tell",{writer:this.id})};PDFNet.FilterWriter.prototype.count=function(){return PDFNet.sendWithPromise("FilterWriter.count",
-{writer:this.id})};PDFNet.FilterWriter.prototype.flush=function(){return PDFNet.sendWithPromise("FilterWriter.flush",{writer:this.id})};PDFNet.FilterWriter.prototype.flushAll=function(){return PDFNet.sendWithPromise("FilterWriter.flushAll",{writer:this.id})};PDFNet.FilterWriter.prototype.writeUChar=function(ch){checkArguments(arguments.length,1,"writeUChar","(number)",[[ch,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUChar",{writer:this.id,ch:ch})};PDFNet.FilterWriter.prototype.writeInt16=
-function(num){checkArguments(arguments.length,1,"writeInt16","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeInt16",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt16=function(num){checkArguments(arguments.length,1,"writeUInt16","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt16",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeInt32=function(num){checkArguments(arguments.length,1,"writeInt32","(number)",
-[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeInt32",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt32=function(num){checkArguments(arguments.length,1,"writeUInt32","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt32",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeInt64=function(num){checkArguments(arguments.length,1,"writeInt64","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeInt64",
-{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeUInt64=function(num){checkArguments(arguments.length,1,"writeUInt64","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeUInt64",{writer:this.id,num:num})};PDFNet.FilterWriter.prototype.writeString=function(str){checkArguments(arguments.length,1,"writeString","(string)",[[str,"string"]]);return PDFNet.sendWithPromise("FilterWriter.writeString",{writer:this.id,str:str})};PDFNet.FilterWriter.prototype.writeFilter=
-function(reader){checkArguments(arguments.length,1,"writeFilter","(PDFNet.FilterReader)",[[reader,"Object",PDFNet.FilterReader,"FilterReader"]]);return PDFNet.sendWithPromise("FilterWriter.writeFilter",{writer:this.id,reader:reader.id})};PDFNet.FilterWriter.prototype.writeLine=function(line,eol){"undefined"===typeof eol&&(eol=13);checkArguments(arguments.length,1,"writeLine","(string, number)",[[line,"const char* = 0"],[eol,"number"]]);return PDFNet.sendWithPromise("FilterWriter.writeLine",{writer:this.id,
-line:line,eol:eol})};PDFNet.FilterWriter.prototype.writeBuffer=function(buf){checkArguments(arguments.length,1,"writeBuffer","(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("FilterWriter.writeBuffer",{writer:this.id,buf:bufArrayBuffer})};PDFNet.OCG.create=function(pdfdoc,name){checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, string)",[[pdfdoc,"PDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("ocgCreate",{pdfdoc:pdfdoc.id,
-name:name}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.createFromObj=function(ocg_dict){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[ocg_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocgCreateFromObj",{ocg_dict:ocg_dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};PDFNet.OCG.prototype.copy=function(){return PDFNet.sendWithPromise("OCG.copy",{ocg:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCG,id)})};
-PDFNet.OCG.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("OCG.getSDFObj",{ocg:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.isValid=function(){return PDFNet.sendWithPromise("OCG.isValid",{ocg:this.id})};PDFNet.OCG.prototype.getName=function(){return PDFNet.sendWithPromise("OCG.getName",{c:this.id})};PDFNet.OCG.prototype.setName=function(value){checkArguments(arguments.length,1,"setName","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCG.setName",
-{c:this.id,value:value})};PDFNet.OCG.prototype.getIntent=function(){return PDFNet.sendWithPromise("OCG.getIntent",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.setIntent=function(value){checkArguments(arguments.length,1,"setIntent","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCG.setIntent",{c:this.id,value:value.id})};PDFNet.OCG.prototype.hasUsage=function(){return PDFNet.sendWithPromise("OCG.hasUsage",{c:this.id})};
-PDFNet.OCG.prototype.getUsage=function(key){checkArguments(arguments.length,1,"getUsage","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("OCG.getUsage",{c:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCG.prototype.getCurrentState=function(ctx){checkArguments(arguments.length,1,"getCurrentState","(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("OCG.getCurrentState",{c:this.id,ctx:ctx.id})};PDFNet.OCG.prototype.setCurrentState=
-function(ctx,state){checkArguments(arguments.length,2,"setCurrentState","(PDFNet.OCGContext, boolean)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setCurrentState",{c:this.id,ctx:ctx.id,state:state})};PDFNet.OCG.prototype.getInitialState=function(cfg){checkArguments(arguments.length,1,"getInitialState","(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("OCG.getInitialState",{c:this.id,cfg:cfg.id})};
-PDFNet.OCG.prototype.setInitialState=function(cfg,state){checkArguments(arguments.length,2,"setInitialState","(PDFNet.OCGConfig, boolean)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setInitialState",{c:this.id,cfg:cfg.id,state:state})};PDFNet.OCG.prototype.isLocked=function(cfg){checkArguments(arguments.length,1,"isLocked","(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("OCG.isLocked",{c:this.id,
-cfg:cfg.id})};PDFNet.OCG.prototype.setLocked=function(cfg,state){checkArguments(arguments.length,2,"setLocked","(PDFNet.OCGConfig, boolean)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCG.setLocked",{c:this.id,cfg:cfg.id,state:state})};PDFNet.OCGConfig.createFromObj=function(dict){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocgConfigCreateFromObj",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,
-id)})};PDFNet.OCGConfig.create=function(pdfdoc,default_config){checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, boolean)",[[pdfdoc,"PDFDoc"],[default_config,"boolean"]]);return PDFNet.sendWithPromise("ocgConfigCreate",{pdfdoc:pdfdoc.id,default_config:default_config}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.OCGConfig.prototype.copy=function(){return PDFNet.sendWithPromise("OCGConfig.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,
-id)})};PDFNet.OCGConfig.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("OCGConfig.getSDFObj",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.getOrder=function(){return PDFNet.sendWithPromise("OCGConfig.getOrder",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setOrder=function(value){checkArguments(arguments.length,1,"setOrder","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setOrder",
-{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getName=function(){return PDFNet.sendWithPromise("OCGConfig.getName",{c:this.id})};PDFNet.OCGConfig.prototype.setName=function(value){checkArguments(arguments.length,1,"setName","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCGConfig.setName",{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getCreator=function(){return PDFNet.sendWithPromise("OCGConfig.getCreator",{c:this.id})};PDFNet.OCGConfig.prototype.setCreator=function(value){checkArguments(arguments.length,
-1,"setCreator","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("OCGConfig.setCreator",{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getInitBaseState=function(){return PDFNet.sendWithPromise("OCGConfig.getInitBaseState",{c:this.id})};PDFNet.OCGConfig.prototype.setInitBaseState=function(value){"undefined"===typeof value&&(value="ON");checkArguments(arguments.length,0,"setInitBaseState","(string)",[[value,"const char* = 0"]]);return PDFNet.sendWithPromise("OCGConfig.setInitBaseState",
-{c:this.id,value:value})};PDFNet.OCGConfig.prototype.getInitOnStates=function(){return PDFNet.sendWithPromise("OCGConfig.getInitOnStates",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setInitOnStates=function(value){checkArguments(arguments.length,1,"setInitOnStates","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setInitOnStates",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getInitOffStates=
-function(){return PDFNet.sendWithPromise("OCGConfig.getInitOffStates",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setInitOffStates=function(value){checkArguments(arguments.length,1,"setInitOffStates","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setInitOffStates",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getIntent=function(){return PDFNet.sendWithPromise("OCGConfig.getIntent",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.OCGConfig.prototype.setIntent=function(value){checkArguments(arguments.length,1,"setIntent","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setIntent",{c:this.id,value:value.id})};PDFNet.OCGConfig.prototype.getLockedOCGs=function(){return PDFNet.sendWithPromise("OCGConfig.getLockedOCGs",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCGConfig.prototype.setLockedOCGs=function(value){checkArguments(arguments.length,
-1,"setLockedOCGs","(PDFNet.Obj)",[[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("OCGConfig.setLockedOCGs",{c:this.id,value:value.id})};PDFNet.OCGContext.createFromConfig=function(cfg){checkArguments(arguments.length,1,"createFromConfig","(PDFNet.OCGConfig)",[[cfg,"Object",PDFNet.OCGConfig,"OCGConfig"]]);return PDFNet.sendWithPromise("ocgContextCreateFromConfig",{cfg:cfg.id}).then(function(id){return createDestroyableObj(PDFNet.OCGContext,id)})};PDFNet.OCGContext.prototype.copy=
-function(){return PDFNet.sendWithPromise("OCGContext.copy",{c:this.id}).then(function(id){return createDestroyableObj(PDFNet.OCGContext,id)})};PDFNet.OCGContext.prototype.getState=function(grp){checkArguments(arguments.length,1,"getState","(PDFNet.OCG)",[[grp,"Object",PDFNet.OCG,"OCG"]]);return PDFNet.sendWithPromise("OCGContext.getState",{c:this.id,grp:grp.id})};PDFNet.OCGContext.prototype.setState=function(grp,state){checkArguments(arguments.length,2,"setState","(PDFNet.OCG, boolean)",[[grp,"Object",
-PDFNet.OCG,"OCG"],[state,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.setState",{c:this.id,grp:grp.id,state:state})};PDFNet.OCGContext.prototype.resetStates=function(all_on){checkArguments(arguments.length,1,"resetStates","(boolean)",[[all_on,"boolean"]]);return PDFNet.sendWithPromise("OCGContext.resetStates",{c:this.id,all_on:all_on})};PDFNet.OCGContext.prototype.setNonOCDrawing=function(draw_non_OC){checkArguments(arguments.length,1,"setNonOCDrawing","(boolean)",[[draw_non_OC,"boolean"]]);
-return PDFNet.sendWithPromise("OCGContext.setNonOCDrawing",{c:this.id,draw_non_OC:draw_non_OC})};PDFNet.OCGContext.prototype.getNonOCDrawing=function(){return PDFNet.sendWithPromise("OCGContext.getNonOCDrawing",{c:this.id})};PDFNet.OCGContext.prototype.setOCDrawMode=function(oc_draw_mode){checkArguments(arguments.length,1,"setOCDrawMode","(number)",[[oc_draw_mode,"number"]]);return PDFNet.sendWithPromise("OCGContext.setOCDrawMode",{c:this.id,oc_draw_mode:oc_draw_mode})};PDFNet.OCGContext.prototype.getOCMode=
-function(){return PDFNet.sendWithPromise("OCGContext.getOCMode",{c:this.id})};PDFNet.OCMD.createFromObj=function(ocmd_dict){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[ocmd_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ocmdCreateFromObj",{ocmd_dict:ocmd_dict.id}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.create=function(pdfdoc,ocgs,vis_policy){checkArguments(arguments.length,3,"create","(PDFNet.PDFDoc, PDFNet.Obj, number)",[[pdfdoc,
-"PDFDoc"],[ocgs,"Object",PDFNet.Obj,"Obj"],[vis_policy,"number"]]);return PDFNet.sendWithPromise("ocmdCreate",{pdfdoc:pdfdoc.id,ocgs:ocgs.id,vis_policy:vis_policy}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.prototype.copy=function(){return PDFNet.sendWithPromise("OCMD.copy",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCMD,id)})};PDFNet.OCMD.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("OCMD.getSDFObj",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.OCMD.prototype.getOCGs=function(){return PDFNet.sendWithPromise("OCMD.getOCGs",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCMD.prototype.getVisibilityExpression=function(){return PDFNet.sendWithPromise("OCMD.getVisibilityExpression",{ocmd:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.OCMD.prototype.isValid=function(){return PDFNet.sendWithPromise("OCMD.isValid",{ocmd:this.id})};PDFNet.OCMD.prototype.isCurrentlyVisible=
-function(ctx){checkArguments(arguments.length,1,"isCurrentlyVisible","(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("OCMD.isCurrentlyVisible",{ocmd:this.id,ctx:ctx.id})};PDFNet.OCMD.prototype.getVisibilityPolicy=function(){return PDFNet.sendWithPromise("OCMD.getVisibilityPolicy",{ocmd:this.id})};PDFNet.OCMD.prototype.setVisibilityPolicy=function(vis_policy){checkArguments(arguments.length,1,"setVisibilityPolicy","(number)",[[vis_policy,"number"]]);
-return PDFNet.sendWithPromise("OCMD.setVisibilityPolicy",{ocmd:this.id,vis_policy:vis_policy})};PDFNet.PDFACompliance.prototype.getErrorCount=function(){return PDFNet.sendWithPromise("PDFACompliance.getErrorCount",{pdfac:this.id})};PDFNet.PDFACompliance.prototype.getError=function(idx){checkArguments(arguments.length,1,"getError","(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getError",{pdfac:this.id,idx:idx})};PDFNet.PDFACompliance.prototype.getRefObjCount=function(id){checkArguments(arguments.length,
-1,"getRefObjCount","(number)",[[id,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getRefObjCount",{pdfac:this.id,id:id})};PDFNet.PDFACompliance.prototype.getRefObj=function(id,err_idx){checkArguments(arguments.length,2,"getRefObj","(number, number)",[[id,"number"],[err_idx,"number"]]);return PDFNet.sendWithPromise("PDFACompliance.getRefObj",{pdfac:this.id,id:id,err_idx:err_idx})};PDFNet.PDFACompliance.getPDFAErrorMessage=function(id){checkArguments(arguments.length,1,"getPDFAErrorMessage",
-"(number)",[[id,"number"]]);return PDFNet.sendWithPromise("pdfaComplianceGetPDFAErrorMessage",{id:id})};PDFNet.PDFACompliance.getDeclaredConformance=function(doc){checkArguments(arguments.length,1,"getDeclaredConformance","(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("pdfaComplianceGetDeclaredConformance",{doc:doc.id})};PDFNet.PDFACompliance.prototype.saveAsFromBuffer=function(linearized){"undefined"===typeof linearized&&(linearized=!1);checkArguments(arguments.length,0,"saveAsFromBuffer",
-"(boolean)",[[linearized,"boolean"]]);return PDFNet.sendWithPromise("PDFACompliance.saveAsFromBuffer",{pdfac:this.id,linearized:linearized}).then(function(id){return new Uint8Array(id)})};PDFNet.AttrObj.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("attrObjCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.AttrObj,id)})};PDFNet.AttrObj.prototype.copy=
-function(){return PDFNet.sendWithPromise("AttrObj.copy",{a:this.id}).then(function(id){return createPDFNetObj(PDFNet.AttrObj,id)})};PDFNet.AttrObj.prototype.getOwner=function(){return PDFNet.sendWithPromise("AttrObj.getOwner",{obj:this.id})};PDFNet.AttrObj.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("AttrObj.getSDFObj",{obj:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ClassMap.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));
-checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("classMapCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,id)})};PDFNet.ClassMap.prototype.copy=function(){return PDFNet.sendWithPromise("ClassMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,id)})};PDFNet.ClassMap.prototype.isValid=function(){return PDFNet.sendWithPromise("ClassMap.isValid",{map:this.id})};PDFNet.ClassMap.prototype.getSDFObj=
-function(){return PDFNet.sendWithPromise("ClassMap.getSDFObj",{map:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.copy=function(){checkThisYieldFunction("copy",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.copy",{c:this}).then(function(id){return new PDFNet.ContentItem(id)})};PDFNet.ContentItem.prototype.getType=function(){checkThisYieldFunction("getType",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getType",{item:this})};
-PDFNet.ContentItem.prototype.getParent=function(){checkThisYieldFunction("getParent",this.yieldFunction);var me=this;this.yieldFunction="ContentItem.getParent";return PDFNet.sendWithPromise("ContentItem.getParent",{item:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.SElement(id.result);copyFunc(id.item,me);return id.result})};PDFNet.ContentItem.prototype.getPage=function(){checkThisYieldFunction("getPage",this.yieldFunction);var me=this;this.yieldFunction="ContentItem.getPage";
-return PDFNet.sendWithPromise("ContentItem.getPage",{item:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.Page,id.result);copyFunc(id.item,me);return id.result})};PDFNet.ContentItem.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getSDFObj",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getMCID=function(){checkThisYieldFunction("getMCID",
-this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getMCID",{item:this})};PDFNet.ContentItem.prototype.getContainingStm=function(){checkThisYieldFunction("getContainingStm",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getContainingStm",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getStmOwner=function(){checkThisYieldFunction("getStmOwner",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getStmOwner",
-{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ContentItem.prototype.getRefObj=function(){checkThisYieldFunction("getRefObj",this.yieldFunction);return PDFNet.sendWithPromise("ContentItem.getRefObj",{item:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.RoleMap.create=function(dict){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("roleMapCreate",{dict:dict.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,
-id)})};PDFNet.RoleMap.prototype.copy=function(){return PDFNet.sendWithPromise("RoleMap.copy",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.RoleMap.prototype.isValid=function(){return PDFNet.sendWithPromise("RoleMap.isValid",{map:this.id})};PDFNet.RoleMap.prototype.getDirectMap=function(type){checkArguments(arguments.length,1,"getDirectMap","(string)",[[type,"string"]]);return PDFNet.sendWithPromise("RoleMap.getDirectMap",{map:this.id,type:type})};PDFNet.RoleMap.prototype.getSDFObj=
-function(){return PDFNet.sendWithPromise("RoleMap.getSDFObj",{map:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SElement.create=function(dict){"undefined"===typeof dict&&(dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("sElementCreate",{dict:dict.id}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.createFromPDFDoc=function(doc,struct_type){checkArguments(arguments.length,
-2,"createFromPDFDoc","(PDFNet.PDFDoc, string)",[[doc,"PDFDoc"],[struct_type,"string"]]);return PDFNet.sendWithPromise("sElementCreateFromPDFDoc",{doc:doc.id,struct_type:struct_type}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.insert=function(kid,insert_before){checkArguments(arguments.length,2,"insert","(PDFNet.SElement, number)",[[kid,"Structure",PDFNet.SElement,"SElement"],[insert_before,"number"]]);checkThisYieldFunction("insert",this.yieldFunction);checkParamsYieldFunction("insert",
-[[kid,0]]);var me=this;this.yieldFunction="SElement.insert";kid.yieldFunction="SElement.insert";return PDFNet.sendWithPromise("SElement.insert",{e:this,kid:kid,insert_before:insert_before}).then(function(id){me.yieldFunction=void 0;kid.yieldFunction=void 0;copyFunc(id.e,me);copyFunc(id.kid,kid)})};PDFNet.SElement.prototype.createContentItem=function(doc,page,insert_before){"undefined"===typeof insert_before&&(insert_before=-1);checkArguments(arguments.length,2,"createContentItem","(PDFNet.PDFDoc, PDFNet.Page, number)",
-[[doc,"PDFDoc"],[page,"Object",PDFNet.Page,"Page"],[insert_before,"number"]]);checkThisYieldFunction("createContentItem",this.yieldFunction);var me=this;this.yieldFunction="SElement.createContentItem";return PDFNet.sendWithPromise("SElement.createContentItem",{e:this,doc:doc.id,page:page.id,insert_before:insert_before}).then(function(id){me.yieldFunction=void 0;copyFunc(id.e,me);return id.result})};PDFNet.SElement.prototype.isValid=function(){checkThisYieldFunction("isValid",this.yieldFunction);return PDFNet.sendWithPromise("SElement.isValid",
-{e:this})};PDFNet.SElement.prototype.getType=function(){checkThisYieldFunction("getType",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getType",{e:this})};PDFNet.SElement.prototype.getNumKids=function(){checkThisYieldFunction("getNumKids",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getNumKids",{e:this})};PDFNet.SElement.prototype.isContentItem=function(index){checkArguments(arguments.length,1,"isContentItem","(number)",[[index,"number"]]);checkThisYieldFunction("isContentItem",
-this.yieldFunction);return PDFNet.sendWithPromise("SElement.isContentItem",{e:this,index:index})};PDFNet.SElement.prototype.getAsContentItem=function(index){checkArguments(arguments.length,1,"getAsContentItem","(number)",[[index,"number"]]);checkThisYieldFunction("getAsContentItem",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getAsContentItem",{e:this,index:index}).then(function(id){return new PDFNet.ContentItem(id)})};PDFNet.SElement.prototype.getAsStructElem=function(index){checkArguments(arguments.length,
-1,"getAsStructElem","(number)",[[index,"number"]]);checkThisYieldFunction("getAsStructElem",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getAsStructElem",{e:this,index:index}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.getParent=function(){checkThisYieldFunction("getParent",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getParent",{e:this}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.SElement.prototype.getStructTreeRoot=
-function(){checkThisYieldFunction("getStructTreeRoot",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getStructTreeRoot",{e:this}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.SElement.prototype.hasTitle=function(){checkThisYieldFunction("hasTitle",this.yieldFunction);return PDFNet.sendWithPromise("SElement.hasTitle",{e:this})};PDFNet.SElement.prototype.getTitle=function(){checkThisYieldFunction("getTitle",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getTitle",
-{e:this})};PDFNet.SElement.prototype.getID=function(){checkThisYieldFunction("getID",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getID",{e:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SElement.prototype.hasActualText=function(){checkThisYieldFunction("hasActualText",this.yieldFunction);return PDFNet.sendWithPromise("SElement.hasActualText",{e:this})};PDFNet.SElement.prototype.getActualText=function(){checkThisYieldFunction("getActualText",this.yieldFunction);
-return PDFNet.sendWithPromise("SElement.getActualText",{e:this})};PDFNet.SElement.prototype.hasAlt=function(){checkThisYieldFunction("hasAlt",this.yieldFunction);return PDFNet.sendWithPromise("SElement.hasAlt",{e:this})};PDFNet.SElement.prototype.getAlt=function(){checkThisYieldFunction("getAlt",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getAlt",{e:this})};PDFNet.SElement.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);return PDFNet.sendWithPromise("SElement.getSDFObj",
-{e:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.STree.create=function(struct_dict){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[struct_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("sTreeCreate",{struct_dict:struct_dict.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.createFromPDFDoc=function(doc){checkArguments(arguments.length,1,"createFromPDFDoc","(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("sTreeCreateFromPDFDoc",
-{doc:doc.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.prototype.insert=function(kid,insert_before){checkArguments(arguments.length,2,"insert","(PDFNet.SElement, number)",[[kid,"Structure",PDFNet.SElement,"SElement"],[insert_before,"number"]]);checkParamsYieldFunction("insert",[[kid,0]]);kid.yieldFunction="STree.insert";return PDFNet.sendWithPromise("STree.insert",{tree:this.id,kid:kid,insert_before:insert_before}).then(function(id){kid.yieldFunction=void 0;copyFunc(id,
-kid)})};PDFNet.STree.prototype.copy=function(){return PDFNet.sendWithPromise("STree.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.STree.prototype.isValid=function(){return PDFNet.sendWithPromise("STree.isValid",{tree:this.id})};PDFNet.STree.prototype.getNumKids=function(){return PDFNet.sendWithPromise("STree.getNumKids",{tree:this.id})};PDFNet.STree.prototype.getKid=function(index){checkArguments(arguments.length,1,"getKid","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("STree.getKid",
-{tree:this.id,index:index}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.STree.prototype.getRoleMap=function(){return PDFNet.sendWithPromise("STree.getRoleMap",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.RoleMap,id)})};PDFNet.STree.prototype.getClassMap=function(){return PDFNet.sendWithPromise("STree.getClassMap",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.ClassMap,id)})};PDFNet.STree.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("STree.getSDFObj",
-{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.createGoto=function(dest){checkArguments(arguments.length,1,"createGoto","(PDFNet.Destination)",[[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("actionCreateGoto",{dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createGotoWithKey=function(key,dest){checkArguments(arguments.length,2,"createGotoWithKey","(string, PDFNet.Destination)",[[key,
-"string"],[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("actionCreateGotoWithKey",{key:key,dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createGotoRemote=function(file,page_num){checkArguments(arguments.length,2,"createGotoRemote","(PDFNet.FileSpec, number)",[[file,"Object",PDFNet.FileSpec,"FileSpec"],[page_num,"number"]]);return PDFNet.sendWithPromise("actionCreateGotoRemote",{file:file.id,page_num:page_num}).then(function(id){return createPDFNetObj(PDFNet.Action,
-id)})};PDFNet.Action.createGotoRemoteSetNewWindow=function(file,page_num,new_window){checkArguments(arguments.length,3,"createGotoRemoteSetNewWindow","(PDFNet.FileSpec, number, boolean)",[[file,"Object",PDFNet.FileSpec,"FileSpec"],[page_num,"number"],[new_window,"boolean"]]);return PDFNet.sendWithPromise("actionCreateGotoRemoteSetNewWindow",{file:file.id,page_num:page_num,new_window:new_window}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createURI=function(sdfdoc,
-uri){checkArguments(arguments.length,2,"createURI","(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[uri,"string"]]);return PDFNet.sendWithPromise("actionCreateURI",{sdfdoc:sdfdoc.id,uri:uri}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createURIWithUString=function(sdfdoc,uri){checkArguments(arguments.length,2,"createURIWithUString","(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[uri,"string"]]);return PDFNet.sendWithPromise("actionCreateURIWithUString",{sdfdoc:sdfdoc.id,
-uri:uri}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createSubmitForm=function(url){checkArguments(arguments.length,1,"createSubmitForm","(PDFNet.FileSpec)",[[url,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("actionCreateSubmitForm",{url:url.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createLaunch=function(sdfdoc,path){checkArguments(arguments.length,2,"createLaunch","(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],
-[path,"string"]]);return PDFNet.sendWithPromise("actionCreateLaunch",{sdfdoc:sdfdoc.id,path:path}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createHideField=function(sdfdoc,field_names_list){checkArguments(arguments.length,2,"createHideField","(PDFNet.SDFDoc, Array<string>)",[[sdfdoc,"SDFDoc"],[field_names_list,"Array"]]);return PDFNet.sendWithPromise("actionCreateHideField",{sdfdoc:sdfdoc.id,field_names_list:field_names_list}).then(function(id){return createPDFNetObj(PDFNet.Action,
-id)})};PDFNet.Action.createImportData=function(sdfdoc,path){checkArguments(arguments.length,2,"createImportData","(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[path,"string"]]);return PDFNet.sendWithPromise("actionCreateImportData",{sdfdoc:sdfdoc.id,path:path}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createResetForm=function(sdfdoc){checkArguments(arguments.length,1,"createResetForm","(PDFNet.SDFDoc)",[[sdfdoc,"SDFDoc"]]);return PDFNet.sendWithPromise("actionCreateResetForm",
-{sdfdoc:sdfdoc.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.createJavaScript=function(sdfdoc,script){checkArguments(arguments.length,2,"createJavaScript","(PDFNet.SDFDoc, string)",[[sdfdoc,"SDFDoc"],[script,"string"]]);return PDFNet.sendWithPromise("actionCreateJavaScript",{sdfdoc:sdfdoc.id,script:script}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.create=function(in_obj){"undefined"===typeof in_obj&&(in_obj=new PDFNet.Obj("0"));
-checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[in_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("actionCreate",{in_obj:in_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.prototype.copy=function(){return PDFNet.sendWithPromise("Action.copy",{in_action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Action.prototype.compare=function(in_action){checkArguments(arguments.length,1,"compare","(PDFNet.Action)",
-[[in_action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("Action.compare",{action:this.id,in_action:in_action.id})};PDFNet.Action.prototype.isValid=function(){return PDFNet.sendWithPromise("Action.isValid",{action:this.id})};PDFNet.Action.prototype.getType=function(){return PDFNet.sendWithPromise("Action.getType",{action:this.id})};PDFNet.Action.prototype.getDest=function(){return PDFNet.sendWithPromise("Action.getDest",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,
-id)})};PDFNet.Action.prototype.getNext=function(){return PDFNet.sendWithPromise("Action.getNext",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Action.getSDFObj",{action:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Action.prototype.getFormActionFlag=function(flag){checkArguments(arguments.length,1,"getFormActionFlag","(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("Action.getFormActionFlag",
-{action:this.id,flag:flag})};PDFNet.Action.prototype.setFormActionFlag=function(flag,value){checkArguments(arguments.length,2,"setFormActionFlag","(number, boolean)",[[flag,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Action.setFormActionFlag",{action:this.id,flag:flag,value:value})};PDFNet.Action.prototype.needsWriteLock=function(){return PDFNet.sendWithPromise("Action.needsWriteLock",{action:this.id})};PDFNet.Action.prototype.execute=function(){return PDFNet.sendWithPromise("Action.execute",
-{action:this.id})};PDFNet.Action.prototype.executeKeyStrokeAction=function(data){checkArguments(arguments.length,1,"executeKeyStrokeAction","(PDFNet.KeyStrokeEventData)",[[data,"Object",PDFNet.KeyStrokeEventData,"KeyStrokeEventData"]]);return PDFNet.sendWithPromise("Action.executeKeyStrokeAction",{action:this.id,data:data.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeActionResult,id)})};PDFNet.KeyStrokeActionResult.prototype.isValid=function(){return PDFNet.sendWithPromise("KeyStrokeActionResult.isValid",
-{action_ret:this.id})};PDFNet.KeyStrokeActionResult.prototype.getText=function(){return PDFNet.sendWithPromise("KeyStrokeActionResult.getText",{action_ret:this.id})};PDFNet.KeyStrokeActionResult.prototype.copy=function(){return PDFNet.sendWithPromise("KeyStrokeActionResult.copy",{action_ret:this.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeActionResult,id)})};PDFNet.KeyStrokeEventData.create=function(field_name,current,change,selection_start,selection_end){checkArguments(arguments.length,
-5,"create","(string, string, string, number, number)",[[field_name,"string"],[current,"string"],[change,"string"],[selection_start,"number"],[selection_end,"number"]]);return PDFNet.sendWithPromise("keyStrokeEventDataCreate",{field_name:field_name,current:current,change:change,selection_start:selection_start,selection_end:selection_end}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeEventData,id)})};PDFNet.KeyStrokeEventData.prototype.copy=function(){return PDFNet.sendWithPromise("KeyStrokeEventData.copy",
-{data:this.id}).then(function(id){return createDestroyableObj(PDFNet.KeyStrokeEventData,id)})};PDFNet.Page.create=function(page_dict){"undefined"===typeof page_dict&&(page_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[page_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pageCreate",{page_dict:page_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Page.prototype.copy=function(){return PDFNet.sendWithPromise("Page.copy",
-{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Page.prototype.isValid=function(){return PDFNet.sendWithPromise("Page.isValid",{page:this.id})};PDFNet.Page.prototype.getIndex=function(){return PDFNet.sendWithPromise("Page.getIndex",{page:this.id})};PDFNet.Page.prototype.getTriggerAction=function(trigger){checkArguments(arguments.length,1,"getTriggerAction","(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("Page.getTriggerAction",{page:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Page.prototype.getBox=function(type){checkArguments(arguments.length,1,"getBox","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("Page.getBox",{page:this.id,type:type}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setBox=function(type,box){checkArguments(arguments.length,2,"setBox","(number, PDFNet.Rect)",[[type,"number"],[box,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setBox",[[box,1]]);return PDFNet.sendWithPromise("Page.setBox",
-{page:this.id,type:type,box:box})};PDFNet.Page.prototype.getCropBox=function(){return PDFNet.sendWithPromise("Page.getCropBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setCropBox=function(box){checkArguments(arguments.length,1,"setCropBox","(PDFNet.Rect)",[[box,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setCropBox",[[box,0]]);return PDFNet.sendWithPromise("Page.setCropBox",{page:this.id,box:box})};PDFNet.Page.prototype.getMediaBox=function(){return PDFNet.sendWithPromise("Page.getMediaBox",
-{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Page.prototype.setMediaBox=function(box){checkArguments(arguments.length,1,"setMediaBox","(PDFNet.Rect)",[[box,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setMediaBox",[[box,0]]);return PDFNet.sendWithPromise("Page.setMediaBox",{page:this.id,box:box})};PDFNet.Page.prototype.getVisibleContentBox=function(){return PDFNet.sendWithPromise("Page.getVisibleContentBox",{page:this.id}).then(function(id){return new PDFNet.Rect(id)})};
-PDFNet.Page.prototype.getRotation=function(){return PDFNet.sendWithPromise("Page.getRotation",{page:this.id})};PDFNet.Page.prototype.setRotation=function(angle){checkArguments(arguments.length,1,"setRotation","(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("Page.setRotation",{page:this.id,angle:angle})};PDFNet.Page.addRotations=function(r0,r1){checkArguments(arguments.length,2,"addRotations","(number, number)",[[r0,"number"],[r1,"number"]]);return PDFNet.sendWithPromise("pageAddRotations",
-{r0:r0,r1:r1})};PDFNet.Page.subtractRotations=function(r0,r1){checkArguments(arguments.length,2,"subtractRotations","(number, number)",[[r0,"number"],[r1,"number"]]);return PDFNet.sendWithPromise("pageSubtractRotations",{r0:r0,r1:r1})};PDFNet.Page.rotationToDegree=function(r){checkArguments(arguments.length,1,"rotationToDegree","(number)",[[r,"number"]]);return PDFNet.sendWithPromise("pageRotationToDegree",{r:r})};PDFNet.Page.degreeToRotation=function(r){checkArguments(arguments.length,1,"degreeToRotation",
-"(number)",[[r,"number"]]);return PDFNet.sendWithPromise("pageDegreeToRotation",{r:r})};PDFNet.Page.prototype.getPageWidth=function(box_type){"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);checkArguments(arguments.length,0,"getPageWidth","(number)",[[box_type,"number"]]);return PDFNet.sendWithPromise("Page.getPageWidth",{page:this.id,box_type:box_type})};PDFNet.Page.prototype.getPageHeight=function(box_type){"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);checkArguments(arguments.length,
-0,"getPageHeight","(number)",[[box_type,"number"]]);return PDFNet.sendWithPromise("Page.getPageHeight",{page:this.id,box_type:box_type})};PDFNet.Page.prototype.getDefaultMatrix=function(flip_y,box_type,angle){"undefined"===typeof flip_y&&(flip_y=!1);"undefined"===typeof box_type&&(box_type=PDFNet.Page.Box.e_crop);"undefined"===typeof angle&&(angle=PDFNet.Page.Rotate.e_0);checkArguments(arguments.length,0,"getDefaultMatrix","(boolean, number, number)",[[flip_y,"boolean"],[box_type,"number"],[angle,
-"number"]]);return PDFNet.sendWithPromise("Page.getDefaultMatrix",{page:this.id,flip_y:flip_y,box_type:box_type,angle:angle}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Page.prototype.getAnnots=function(){return PDFNet.sendWithPromise("Page.getAnnots",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getNumAnnots=function(){return PDFNet.sendWithPromise("Page.getNumAnnots",{page:this.id})};PDFNet.Page.prototype.getAnnot=function(index){checkArguments(arguments.length,
-1,"getAnnot","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Page.getAnnot",{page:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Page.prototype.annotInsert=function(pos,annot){checkArguments(arguments.length,2,"annotInsert","(number, PDFNet.Annot)",[[pos,"number"],[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotInsert",{page:this.id,pos:pos,annot:annot.id})};PDFNet.Page.prototype.annotPushBack=function(annot){checkArguments(arguments.length,
-1,"annotPushBack","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotPushBack",{page:this.id,annot:annot.id})};PDFNet.Page.prototype.annotPushFront=function(annot){checkArguments(arguments.length,1,"annotPushFront","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotPushFront",{page:this.id,annot:annot.id})};PDFNet.Page.prototype.annotRemove=function(annot){checkArguments(arguments.length,1,"annotRemove",
-"(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Page.annotRemove",{page:this.id,annot:annot.id})};PDFNet.Page.prototype.annotRemoveByIndex=function(index){checkArguments(arguments.length,1,"annotRemoveByIndex","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Page.annotRemoveByIndex",{page:this.id,index:index})};PDFNet.Page.prototype.scale=function(scale){checkArguments(arguments.length,1,"scale","(number)",[[scale,"number"]]);return PDFNet.sendWithPromise("Page.scale",
-{page:this.id,scale:scale})};PDFNet.Page.prototype.flattenField=function(field_to_flatten){checkArguments(arguments.length,1,"flattenField","(PDFNet.Field)",[[field_to_flatten,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("flattenField",[[field_to_flatten,0]]);field_to_flatten.yieldFunction="Page.flattenField";return PDFNet.sendWithPromise("Page.flattenField",{page:this.id,field_to_flatten:field_to_flatten}).then(function(id){field_to_flatten.yieldFunction=void 0;copyFunc(id,field_to_flatten)})};
-PDFNet.Page.prototype.hasTransition=function(){return PDFNet.sendWithPromise("Page.hasTransition",{page:this.id})};PDFNet.Page.prototype.getUserUnitSize=function(){return PDFNet.sendWithPromise("Page.getUserUnitSize",{page:this.id})};PDFNet.Page.prototype.setUserUnitSize=function(unit_size){checkArguments(arguments.length,1,"setUserUnitSize","(number)",[[unit_size,"number"]]);return PDFNet.sendWithPromise("Page.setUserUnitSize",{page:this.id,unit_size:unit_size})};PDFNet.Page.prototype.getResourceDict=
-function(){return PDFNet.sendWithPromise("Page.getResourceDict",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getContents=function(){return PDFNet.sendWithPromise("Page.getContents",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getThumb=function(){return PDFNet.sendWithPromise("Page.getThumb",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.getSDFObj=
-function(){return PDFNet.sendWithPromise("Page.getSDFObj",{page:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Page.prototype.findInheritedAttribute=function(attrib){checkArguments(arguments.length,1,"findInheritedAttribute","(string)",[[attrib,"string"]]);return PDFNet.sendWithPromise("Page.findInheritedAttribute",{page:this.id,attrib:attrib}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.create=function(doc,type,pos){checkArguments(arguments.length,
-3,"create","(PDFNet.SDFDoc, number, PDFNet.Rect)",[[doc,"SDFDoc"],[type,"number"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,2]]);return PDFNet.sendWithPromise("annotCreate",{doc:doc.id,type:type,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Annot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("annotCreateFromObj",
-{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Annot.prototype.copy=function(){return PDFNet.sendWithPromise("Annot.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.Annot.prototype.compare=function(d){checkArguments(arguments.length,1,"compare","(PDFNet.Annot)",[[d,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Annot.compare",{annot:this.id,d:d.id})};PDFNet.Annot.prototype.isValid=function(){return PDFNet.sendWithPromise("Annot.isValid",
-{annot:this.id})};PDFNet.Annot.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Annot.getSDFObj",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.getType=function(){return PDFNet.sendWithPromise("Annot.getType",{annot:this.id})};PDFNet.Annot.prototype.isMarkup=function(){return PDFNet.sendWithPromise("Annot.isMarkup",{annot:this.id})};PDFNet.Annot.prototype.getRect=function(){return PDFNet.sendWithPromise("Annot.getRect",{annot:this.id}).then(function(id){return new PDFNet.Rect(id)})};
-PDFNet.Annot.prototype.getVisibleContentBox=function(){return PDFNet.sendWithPromise("Annot.getVisibleContentBox",{annot:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Annot.prototype.setRect=function(pos){checkArguments(arguments.length,1,"setRect","(PDFNet.Rect)",[[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setRect",[[pos,0]]);return PDFNet.sendWithPromise("Annot.setRect",{annot:this.id,pos:pos})};PDFNet.Annot.prototype.resize=function(newrect){checkArguments(arguments.length,
-1,"resize","(PDFNet.Rect)",[[newrect,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("resize",[[newrect,0]]);return PDFNet.sendWithPromise("Annot.resize",{annot:this.id,newrect:newrect})};PDFNet.Annot.prototype.setContents=function(contents){checkArguments(arguments.length,1,"setContents","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("Annot.setContents",{annot:this.id,contents:contents})};PDFNet.Annot.prototype.getContents=function(){return PDFNet.sendWithPromise("Annot.getContents",
-{annot:this.id})};PDFNet.Annot.prototype.getTriggerAction=function(trigger){checkArguments(arguments.length,1,"getTriggerAction","(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("Annot.getTriggerAction",{annot:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.getCustomData=function(key){checkArguments(arguments.length,1,"getCustomData","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Annot.getCustomData",{annot:this.id,
-key:key})};PDFNet.Annot.prototype.setCustomData=function(key,value){checkArguments(arguments.length,2,"setCustomData","(string, string)",[[key,"string"],[value,"string"]]);return PDFNet.sendWithPromise("Annot.setCustomData",{annot:this.id,key:key,value:value})};PDFNet.Annot.prototype.deleteCustomData=function(key){checkArguments(arguments.length,1,"deleteCustomData","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Annot.deleteCustomData",{annot:this.id,key:key})};PDFNet.Annot.prototype.getPage=
-function(){return PDFNet.sendWithPromise("Annot.getPage",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Annot.prototype.setPage=function(page){checkArguments(arguments.length,1,"setPage","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Annot.setPage",{annot:this.id,page:page.id})};PDFNet.Annot.prototype.getUniqueID=function(){return PDFNet.sendWithPromise("Annot.getUniqueID",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Annot.prototype.setUniqueID=function(id){checkArguments(arguments.length,1,"setUniqueID","(ArrayBuffer|TypedArray)",[[id,"ArrayBuffer"]]);var idArrayBuffer=getArrayBuffer(id,!1);return PDFNet.sendWithPromise("Annot.setUniqueID",{annot:this.id,id_buf:idArrayBuffer})};PDFNet.Annot.prototype.getDate=function(){return PDFNet.sendWithPromise("Annot.getDate",{annot:this.id}).then(function(id){return new PDFNet.Date(id)})};PDFNet.Annot.prototype.setDate=function(date){checkArguments(arguments.length,
-1,"setDate","(PDFNet.Date)",[[date,"Structure",PDFNet.Date,"Date"]]);checkParamsYieldFunction("setDate",[[date,0]]);return PDFNet.sendWithPromise("Annot.setDate",{annot:this.id,date:date})};PDFNet.Annot.prototype.getFlag=function(flag){checkArguments(arguments.length,1,"getFlag","(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("Annot.getFlag",{annot:this.id,flag:flag})};PDFNet.Annot.prototype.setFlag=function(flag,value){checkArguments(arguments.length,2,"setFlag","(number, boolean)",[[flag,
-"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Annot.setFlag",{annot:this.id,flag:flag,value:value})};PDFNet.AnnotBorderStyle.create=function(s,b_width,b_hr,b_vr){"undefined"===typeof b_hr&&(b_hr=0);"undefined"===typeof b_vr&&(b_vr=0);checkArguments(arguments.length,2,"create","(number, number, number, number)",[[s,"number"],[b_width,"number"],[b_hr,"number"],[b_vr,"number"]]);return PDFNet.sendWithPromise("annotBorderStyleCreate",{s:s,b_width:b_width,b_hr:b_hr,b_vr:b_vr}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,
-id)})};PDFNet.AnnotBorderStyle.createWithDashPattern=function(s,b_width,b_hr,b_vr,b_dash){checkArguments(arguments.length,5,"createWithDashPattern","(number, number, number, number, Array<number>)",[[s,"number"],[b_width,"number"],[b_hr,"number"],[b_vr,"number"],[b_dash,"Array"]]);return PDFNet.sendWithPromise("annotBorderStyleCreateWithDashPattern",{s:s,b_width:b_width,b_hr:b_hr,b_vr:b_vr,b_dash_list:b_dash}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.prototype.copy=
-function(){return PDFNet.sendWithPromise("AnnotBorderStyle.copy",{bs:this.id}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.AnnotBorderStyle.prototype.getStyle=function(){return PDFNet.sendWithPromise("AnnotBorderStyle.getStyle",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setStyle=function(style){checkArguments(arguments.length,1,"setStyle","(number)",[[style,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setStyle",{bs:this.id,style:style})};
-PDFNet.Annot.prototype.getAppearance=function(annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);"undefined"===typeof app_state&&(app_state=null);checkArguments(arguments.length,0,"getAppearance","(number, string)",[[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.getAppearance",{annot:this.id,annot_state:annot_state,app_state:app_state}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setAppearance=
-function(app_stream,annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);"undefined"===typeof app_state&&(app_state=null);checkArguments(arguments.length,1,"setAppearance","(PDFNet.Obj, number, string)",[[app_stream,"Object",PDFNet.Obj,"Obj"],[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.setAppearance",{annot:this.id,app_stream:app_stream.id,annot_state:annot_state,app_state:app_state})};PDFNet.Annot.prototype.removeAppearance=
-function(annot_state,app_state){"undefined"===typeof annot_state&&(annot_state=PDFNet.Annot.State.e_normal);"undefined"===typeof app_state&&(app_state=null);checkArguments(arguments.length,0,"removeAppearance","(number, string)",[[annot_state,"number"],[app_state,"const char* = 0"]]);return PDFNet.sendWithPromise("Annot.removeAppearance",{annot:this.id,annot_state:annot_state,app_state:app_state})};PDFNet.Annot.prototype.flatten=function(page){checkArguments(arguments.length,1,"flatten","(PDFNet.Page)",
-[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Annot.flatten",{annot:this.id,page:page.id})};PDFNet.Annot.prototype.getActiveAppearanceState=function(){return PDFNet.sendWithPromise("Annot.getActiveAppearanceState",{annot:this.id})};PDFNet.Annot.prototype.setActiveAppearanceState=function(astate){checkArguments(arguments.length,1,"setActiveAppearanceState","(string)",[[astate,"string"]]);return PDFNet.sendWithPromise("Annot.setActiveAppearanceState",{annot:this.id,astate:astate})};
-PDFNet.Annot.prototype.getColor=function(){return PDFNet.sendWithPromise("Annot.getColor",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorAsRGB=function(){return PDFNet.sendWithPromise("Annot.getColorAsRGB",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorAsCMYK=function(){return PDFNet.sendWithPromise("Annot.getColorAsCMYK",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.Annot.prototype.getColorAsGray=function(){return PDFNet.sendWithPromise("Annot.getColorAsGray",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Annot.prototype.getColorCompNum=function(){return PDFNet.sendWithPromise("Annot.getColorCompNum",{annot:this.id})};PDFNet.Annot.prototype.setColorDefault=function(col){checkArguments(arguments.length,1,"setColorDefault","(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("Annot.setColorDefault",
-{annot:this.id,col:col.id})};PDFNet.Annot.prototype.setColor=function(col,numcomp){"undefined"===typeof numcomp&&(numcomp=3);checkArguments(arguments.length,1,"setColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("Annot.setColor",{annot:this.id,col:col.id,numcomp:numcomp})};PDFNet.Annot.prototype.getStructParent=function(){return PDFNet.sendWithPromise("Annot.getStructParent",{annot:this.id})};PDFNet.Annot.prototype.setStructParent=
-function(parkeyval){checkArguments(arguments.length,1,"setStructParent","(number)",[[parkeyval,"number"]]);return PDFNet.sendWithPromise("Annot.setStructParent",{annot:this.id,parkeyval:parkeyval})};PDFNet.Annot.prototype.getOptionalContent=function(){return PDFNet.sendWithPromise("Annot.getOptionalContent",{annot:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Annot.prototype.setOptionalContent=function(content){checkArguments(arguments.length,1,"setOptionalContent","(PDFNet.Obj)",
-[[content,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Annot.setOptionalContent",{annot:this.id,content:content.id})};PDFNet.Annot.prototype.refreshAppearance=function(){return PDFNet.sendWithPromise("Annot.refreshAppearance",{annot:this.id})};PDFNet.Annot.prototype.refreshAppearanceRefreshOptions=function(options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,0,"refreshAppearanceRefreshOptions","(PDFNet.OptionBase)",[[options,"OptionBase"]]);checkParamsYieldFunction("refreshAppearanceRefreshOptions",
-[[options,0]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("Annot.refreshAppearanceRefreshOptions",{annot:this.id,options:options})};PDFNet.Annot.prototype.getRotation=function(){return PDFNet.sendWithPromise("Annot.getRotation",{annot:this.id})};PDFNet.Annot.prototype.setRotation=function(angle){checkArguments(arguments.length,1,"setRotation","(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("Annot.setRotation",{annot:this.id,angle:angle})};PDFNet.AnnotBorderStyle.prototype.getWidth=
-function(){return PDFNet.sendWithPromise("AnnotBorderStyle.getWidth",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setWidth=function(width){checkArguments(arguments.length,1,"setWidth","(number)",[[width,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setWidth",{bs:this.id,width:width})};PDFNet.AnnotBorderStyle.prototype.getHR=function(){return PDFNet.sendWithPromise("AnnotBorderStyle.getHR",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setHR=function(horizontal_radius){checkArguments(arguments.length,
-1,"setHR","(number)",[[horizontal_radius,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setHR",{bs:this.id,horizontal_radius:horizontal_radius})};PDFNet.AnnotBorderStyle.prototype.getVR=function(){return PDFNet.sendWithPromise("AnnotBorderStyle.getVR",{bs:this.id})};PDFNet.AnnotBorderStyle.prototype.setVR=function(vertical_radius){checkArguments(arguments.length,1,"setVR","(number)",[[vertical_radius,"number"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.setVR",{bs:this.id,vertical_radius:vertical_radius})};
-PDFNet.AnnotBorderStyle.prototype.getDashPattern=function(){return PDFNet.sendWithPromise("AnnotBorderStyle.getDashPattern",{bs:this.id}).then(function(id){return new Float64Array(id)})};PDFNet.Annot.prototype.getBorderStyle=function(){return PDFNet.sendWithPromise("Annot.getBorderStyle",{annot:this.id}).then(function(id){return createDestroyableObj(PDFNet.AnnotBorderStyle,id)})};PDFNet.Annot.prototype.setBorderStyle=function(bs,oldStyleOnly){"undefined"===typeof oldStyleOnly&&(oldStyleOnly=!1);checkArguments(arguments.length,
-1,"setBorderStyle","(PDFNet.AnnotBorderStyle, boolean)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"],[oldStyleOnly,"boolean"]]);return PDFNet.sendWithPromise("Annot.setBorderStyle",{annot:this.id,bs:bs.id,oldStyleOnly:oldStyleOnly})};PDFNet.Annot.getBorderStyleStyle=function(bs){checkArguments(arguments.length,1,"getBorderStyleStyle","(PDFNet.AnnotBorderStyle)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]);return PDFNet.sendWithPromise("annotGetBorderStyleStyle",{bs:bs.id})};
-PDFNet.Annot.setBorderStyleStyle=function(bs,bst){checkArguments(arguments.length,2,"setBorderStyleStyle","(PDFNet.AnnotBorderStyle, number)",[[bs,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"],[bst,"number"]]);return PDFNet.sendWithPromise("annotSetBorderStyleStyle",{bs:bs.id,bst:bst})};PDFNet.AnnotBorderStyle.prototype.compare=function(b){checkArguments(arguments.length,1,"compare","(PDFNet.AnnotBorderStyle)",[[b,"Object",PDFNet.AnnotBorderStyle,"AnnotBorderStyle"]]);return PDFNet.sendWithPromise("AnnotBorderStyle.compare",
-{a:this.id,b:b.id})};PDFNet.CaretAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("caretAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,id)})};PDFNet.CaretAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("caretAnnotCreateFromAnnot",
-{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,id)})};PDFNet.CaretAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("caretAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.CaretAnnot,id)})};PDFNet.CaretAnnot.prototype.getSymbol=function(){return PDFNet.sendWithPromise("CaretAnnot.getSymbol",
-{caret:this.id})};PDFNet.CaretAnnot.prototype.setSymbol=function(symbol){checkArguments(arguments.length,1,"setSymbol","(string)",[[symbol,"string"]]);return PDFNet.sendWithPromise("CaretAnnot.setSymbol",{caret:this.id,symbol:symbol})};PDFNet.LineAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("lineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,
-id)})};PDFNet.LineAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("lineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,id)})};PDFNet.LineAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",
-[[pos,1]]);return PDFNet.sendWithPromise("lineAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.LineAnnot,id)})};PDFNet.LineAnnot.prototype.getStartPoint=function(){return PDFNet.sendWithPromise("LineAnnot.getStartPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setStartPoint=function(sp){checkArguments(arguments.length,1,"setStartPoint","(PDFNet.Point)",[[sp,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setStartPoint",[[sp,0]]);return PDFNet.sendWithPromise("LineAnnot.setStartPoint",
-{line:this.id,sp:sp})};PDFNet.LineAnnot.prototype.getEndPoint=function(){return PDFNet.sendWithPromise("LineAnnot.getEndPoint",{line:this.id})};PDFNet.LineAnnot.prototype.setEndPoint=function(ep){checkArguments(arguments.length,1,"setEndPoint","(PDFNet.Point)",[[ep,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setEndPoint",[[ep,0]]);return PDFNet.sendWithPromise("LineAnnot.setEndPoint",{line:this.id,ep:ep})};PDFNet.LineAnnot.prototype.getStartStyle=function(){return PDFNet.sendWithPromise("LineAnnot.getStartStyle",
-{line:this.id})};PDFNet.LineAnnot.prototype.setStartStyle=function(ss){checkArguments(arguments.length,1,"setStartStyle","(number)",[[ss,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setStartStyle",{line:this.id,ss:ss})};PDFNet.LineAnnot.prototype.getEndStyle=function(){return PDFNet.sendWithPromise("LineAnnot.getEndStyle",{line:this.id})};PDFNet.LineAnnot.prototype.setEndStyle=function(es){checkArguments(arguments.length,1,"setEndStyle","(number)",[[es,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setEndStyle",
-{line:this.id,es:es})};PDFNet.LineAnnot.prototype.getLeaderLineLength=function(){return PDFNet.sendWithPromise("LineAnnot.getLeaderLineLength",{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineLength=function(length){checkArguments(arguments.length,1,"setLeaderLineLength","(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineLength",{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getLeaderLineExtensionLength=function(){return PDFNet.sendWithPromise("LineAnnot.getLeaderLineExtensionLength",
-{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineExtensionLength=function(length){checkArguments(arguments.length,1,"setLeaderLineExtensionLength","(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineExtensionLength",{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getShowCaption=function(){return PDFNet.sendWithPromise("LineAnnot.getShowCaption",{line:this.id})};PDFNet.LineAnnot.prototype.setShowCaption=function(showCaption){checkArguments(arguments.length,
-1,"setShowCaption","(boolean)",[[showCaption,"boolean"]]);return PDFNet.sendWithPromise("LineAnnot.setShowCaption",{line:this.id,showCaption:showCaption})};PDFNet.LineAnnot.prototype.getIntentType=function(){return PDFNet.sendWithPromise("LineAnnot.getIntentType",{line:this.id})};PDFNet.LineAnnot.prototype.setIntentType=function(it){checkArguments(arguments.length,1,"setIntentType","(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setIntentType",{line:this.id,it:it})};PDFNet.LineAnnot.prototype.getCapPos=
-function(){return PDFNet.sendWithPromise("LineAnnot.getCapPos",{line:this.id})};PDFNet.LineAnnot.prototype.setCapPos=function(it){checkArguments(arguments.length,1,"setCapPos","(number)",[[it,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setCapPos",{line:this.id,it:it})};PDFNet.LineAnnot.prototype.getLeaderLineOffset=function(){return PDFNet.sendWithPromise("LineAnnot.getLeaderLineOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setLeaderLineOffset=function(length){checkArguments(arguments.length,
-1,"setLeaderLineOffset","(number)",[[length,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setLeaderLineOffset",{line:this.id,length:length})};PDFNet.LineAnnot.prototype.getTextHOffset=function(){return PDFNet.sendWithPromise("LineAnnot.getTextHOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setTextHOffset=function(offset){checkArguments(arguments.length,1,"setTextHOffset","(number)",[[offset,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setTextHOffset",{line:this.id,offset:offset})};
-PDFNet.LineAnnot.prototype.getTextVOffset=function(){return PDFNet.sendWithPromise("LineAnnot.getTextVOffset",{line:this.id})};PDFNet.LineAnnot.prototype.setTextVOffset=function(offset){checkArguments(arguments.length,1,"setTextVOffset","(number)",[[offset,"number"]]);return PDFNet.sendWithPromise("LineAnnot.setTextVOffset",{line:this.id,offset:offset})};PDFNet.CircleAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",
-[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("circleAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.createFromAnnot=function(circle){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[circle,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("circleAnnotCreateFromAnnot",{circle:circle.id}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.create=
-function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("circleAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.CircleAnnot,id)})};PDFNet.CircleAnnot.prototype.getInteriorColor=function(){return PDFNet.sendWithPromise("CircleAnnot.getInteriorColor",{circle:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.CircleAnnot.prototype.getInteriorColorCompNum=function(){return PDFNet.sendWithPromise("CircleAnnot.getInteriorColorCompNum",{circle:this.id})};PDFNet.CircleAnnot.prototype.setInteriorColorDefault=function(col){checkArguments(arguments.length,1,"setInteriorColorDefault","(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("CircleAnnot.setInteriorColorDefault",{circle:this.id,col:col.id})};PDFNet.CircleAnnot.prototype.setInteriorColor=function(col,
-numcomp){checkArguments(arguments.length,2,"setInteriorColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("CircleAnnot.setInteriorColor",{circle:this.id,col:col.id,numcomp:numcomp})};PDFNet.CircleAnnot.prototype.getContentRect=function(){return PDFNet.sendWithPromise("CircleAnnot.getContentRect",{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setContentRect=function(cr){checkArguments(arguments.length,
-1,"setContentRect","(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setContentRect",[[cr,0]]);return PDFNet.sendWithPromise("CircleAnnot.setContentRect",{circle:this.id,cr:cr})};PDFNet.CircleAnnot.prototype.getPadding=function(){return PDFNet.sendWithPromise("CircleAnnot.getPadding",{circle:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.CircleAnnot.prototype.setPadding=function(cr){checkArguments(arguments.length,1,"setPadding","(PDFNet.Rect)",[[cr,
-"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setPadding",[[cr,0]]);return PDFNet.sendWithPromise("CircleAnnot.setPadding",{circle:this.id,cr:cr})};PDFNet.FileAttachmentAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,
-id)})};PDFNet.FileAttachmentAnnot.prototype["export"]=function(save_as){"undefined"===typeof save_as&&(save_as="");checkArguments(arguments.length,0,"export","(string)",[[save_as,"string"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.export",{fileatt:this.id,save_as:save_as})};PDFNet.FileAttachmentAnnot.prototype.createFromAnnot=function(){return PDFNet.sendWithPromise("FileAttachmentAnnot.createFromAnnot",{fileatt:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.FileAttachmentAnnot.createWithFileSpec=
-function(doc,pos,fs,icon_name){"undefined"===typeof icon_name&&(icon_name=PDFNet.FileAttachmentAnnot.Icon.e_PushPin);checkArguments(arguments.length,3,"createWithFileSpec","(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.FileSpec, number)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[fs,"Object",PDFNet.FileSpec,"FileSpec"],[icon_name,"number"]]);checkParamsYieldFunction("createWithFileSpec",[[pos,1]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateWithFileSpec",{doc:doc.id,pos:pos,fs:fs.id,
-icon_name:icon_name}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,id)})};PDFNet.FileAttachmentAnnot.createDefault=function(doc,pos,path){checkArguments(arguments.length,3,"createDefault","(PDFNet.SDFDoc, PDFNet.Rect, string)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[path,"string"]]);checkParamsYieldFunction("createDefault",[[pos,1]]);return PDFNet.sendWithPromise("fileAttachmentAnnotCreateDefault",{doc:doc.id,pos:pos,path:path}).then(function(id){return createPDFNetObj(PDFNet.FileAttachmentAnnot,
-id)})};PDFNet.FileAttachmentAnnot.prototype.getFileSpec=function(){return PDFNet.sendWithPromise("FileAttachmentAnnot.getFileSpec",{fileatt:this.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileAttachmentAnnot.prototype.setFileSpec=function(file){checkArguments(arguments.length,1,"setFileSpec","(PDFNet.FileSpec)",[[file,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setFileSpec",{fileatt:this.id,file:file.id})};PDFNet.FileAttachmentAnnot.prototype.getIcon=
-function(){return PDFNet.sendWithPromise("FileAttachmentAnnot.getIcon",{fileatt:this.id})};PDFNet.FileAttachmentAnnot.prototype.setIcon=function(type){"undefined"===typeof type&&(type=PDFNet.FileAttachmentAnnot.Icon.e_PushPin);checkArguments(arguments.length,0,"setIcon","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setIcon",{fileatt:this.id,type:type})};PDFNet.FileAttachmentAnnot.prototype.getIconName=function(){return PDFNet.sendWithPromise("FileAttachmentAnnot.getIconName",
-{fileatt:this.id})};PDFNet.FileAttachmentAnnot.prototype.setIconName=function(iname){checkArguments(arguments.length,1,"setIconName","(string)",[[iname,"string"]]);return PDFNet.sendWithPromise("FileAttachmentAnnot.setIconName",{fileatt:this.id,iname:iname})};PDFNet.FreeTextAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("freeTextAnnotCreateFromObj",
-{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("freeTextAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",
-[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("freeTextAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.FreeTextAnnot,id)})};PDFNet.FreeTextAnnot.prototype.getDefaultAppearance=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getDefaultAppearance",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setDefaultAppearance=function(app_str){checkArguments(arguments.length,1,"setDefaultAppearance",
-"(string)",[[app_str,"string"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setDefaultAppearance",{ft:this.id,app_str:app_str})};PDFNet.FreeTextAnnot.prototype.getQuaddingFormat=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getQuaddingFormat",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setQuaddingFormat=function(format){checkArguments(arguments.length,1,"setQuaddingFormat","(number)",[[format,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setQuaddingFormat",{ft:this.id,format:format})};
-PDFNet.FreeTextAnnot.prototype.getCalloutLinePoints=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getCalloutLinePoints",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setCalloutLinePoints=function(p1,p2,p3){checkArguments(arguments.length,3,"setCalloutLinePoints","(PDFNet.Point, PDFNet.Point, PDFNet.Point)",[[p1,"Structure",PDFNet.Point,"Point"],[p2,"Structure",PDFNet.Point,"Point"],[p3,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setCalloutLinePoints",[[p1,0],[p2,1],[p3,
-2]]);return PDFNet.sendWithPromise("FreeTextAnnot.setCalloutLinePoints",{ft:this.id,p1:p1,p2:p2,p3:p3})};PDFNet.FreeTextAnnot.prototype.setCalloutLinePointsTwo=function(p1,p2){checkArguments(arguments.length,2,"setCalloutLinePointsTwo","(PDFNet.Point, PDFNet.Point)",[[p1,"Structure",PDFNet.Point,"Point"],[p2,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setCalloutLinePointsTwo",[[p1,0],[p2,1]]);return PDFNet.sendWithPromise("FreeTextAnnot.setCalloutLinePointsTwo",{ft:this.id,p1:p1,
-p2:p2})};PDFNet.FreeTextAnnot.prototype.getIntentName=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getIntentName",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setIntentName=function(mode){"undefined"===typeof mode&&(mode=PDFNet.FreeTextAnnot.IntentName.e_FreeText);checkArguments(arguments.length,0,"setIntentName","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setIntentName",{ft:this.id,mode:mode})};PDFNet.FreeTextAnnot.prototype.setIntentNameDefault=function(){return PDFNet.sendWithPromise("FreeTextAnnot.setIntentNameDefault",
-{ft:this.id})};PDFNet.FreeTextAnnot.prototype.getEndingStyle=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getEndingStyle",{ft:this.id})};PDFNet.FreeTextAnnot.prototype.setEndingStyle=function(style){checkArguments(arguments.length,1,"setEndingStyle","(number)",[[style,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setEndingStyle",{ft:this.id,style:style})};PDFNet.FreeTextAnnot.prototype.setEndingStyleName=function(est){checkArguments(arguments.length,1,"setEndingStyleName","(string)",
-[[est,"string"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setEndingStyleName",{ft:this.id,est:est})};PDFNet.FreeTextAnnot.prototype.setTextColor=function(color,col_comp){checkArguments(arguments.length,2,"setTextColor","(PDFNet.ColorPt, number)",[[color,"Object",PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setTextColor",{ft:this.id,color:color.id,col_comp:col_comp})};PDFNet.FreeTextAnnot.prototype.getTextColor=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getTextColor",
-{ft:this.id}).then(function(id){id.color=createDestroyableObj(PDFNet.ColorPt,id.color);return id})};PDFNet.FreeTextAnnot.prototype.setLineColor=function(color,col_comp){checkArguments(arguments.length,2,"setLineColor","(PDFNet.ColorPt, number)",[[color,"Object",PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setLineColor",{ft:this.id,color:color.id,col_comp:col_comp})};PDFNet.FreeTextAnnot.prototype.getLineColor=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getLineColor",
-{ft:this.id}).then(function(id){id.color=createDestroyableObj(PDFNet.ColorPt,id.color);return id})};PDFNet.FreeTextAnnot.prototype.setFontSize=function(font_size){checkArguments(arguments.length,1,"setFontSize","(number)",[[font_size,"number"]]);return PDFNet.sendWithPromise("FreeTextAnnot.setFontSize",{ft:this.id,font_size:font_size})};PDFNet.FreeTextAnnot.prototype.getFontSize=function(){return PDFNet.sendWithPromise("FreeTextAnnot.getFontSize",{ft:this.id})};PDFNet.HighlightAnnot.createFromObj=
-function(d){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("highlightAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,id)})};PDFNet.HighlightAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("highlightAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,
-id)})};PDFNet.HighlightAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("highlightAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.HighlightAnnot,id)})};PDFNet.InkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj",
-"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("inkAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("inkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.create=function(doc,pos){checkArguments(arguments.length,
-2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("inkAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.InkAnnot,id)})};PDFNet.InkAnnot.prototype.getPathCount=function(){return PDFNet.sendWithPromise("InkAnnot.getPathCount",{ink:this.id})};PDFNet.InkAnnot.prototype.getPointCount=function(pathindex){checkArguments(arguments.length,1,"getPointCount",
-"(number)",[[pathindex,"number"]]);return PDFNet.sendWithPromise("InkAnnot.getPointCount",{ink:this.id,pathindex:pathindex})};PDFNet.InkAnnot.prototype.getPoint=function(pathindex,pointindex){checkArguments(arguments.length,2,"getPoint","(number, number)",[[pathindex,"number"],[pointindex,"number"]]);return PDFNet.sendWithPromise("InkAnnot.getPoint",{ink:this.id,pathindex:pathindex,pointindex:pointindex})};PDFNet.InkAnnot.prototype.setPoint=function(pathindex,pointindex,pt){checkArguments(arguments.length,
-3,"setPoint","(number, number, PDFNet.Point)",[[pathindex,"number"],[pointindex,"number"],[pt,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setPoint",[[pt,2]]);return PDFNet.sendWithPromise("InkAnnot.setPoint",{ink:this.id,pathindex:pathindex,pointindex:pointindex,pt:pt})};PDFNet.InkAnnot.prototype.erase=function(pt1,pt2,width){checkArguments(arguments.length,3,"erase","(PDFNet.Point, PDFNet.Point, number)",[[pt1,"Structure",PDFNet.Point,"Point"],[pt2,"Structure",PDFNet.Point,"Point"],
-[width,"number"]]);checkParamsYieldFunction("erase",[[pt1,0],[pt2,1]]);return PDFNet.sendWithPromise("InkAnnot.erase",{ink:this.id,pt1:pt1,pt2:pt2,width:width})};PDFNet.InkAnnot.prototype.getHighlightIntent=function(){return PDFNet.sendWithPromise("InkAnnot.getHighlightIntent",{ink:this.id})};PDFNet.InkAnnot.prototype.setHighlightIntent=function(highlight){checkArguments(arguments.length,1,"setHighlightIntent","(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("InkAnnot.setHighlightIntent",
-{ink:this.id,highlight:highlight})};PDFNet.LinkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("linkAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot,id)})};PDFNet.LinkAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);
-return PDFNet.sendWithPromise("linkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot,id)})};PDFNet.LinkAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("linkAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.LinkAnnot,id)})};PDFNet.LinkAnnot.prototype.removeAction=
-function(){return PDFNet.sendWithPromise("LinkAnnot.removeAction",{link:this.id})};PDFNet.LinkAnnot.prototype.getAction=function(){return PDFNet.sendWithPromise("LinkAnnot.getAction",{link:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.LinkAnnot.prototype.setAction=function(action){checkArguments(arguments.length,1,"setAction","(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("LinkAnnot.setAction",{link:this.id,action:action.id})};
-PDFNet.LinkAnnot.prototype.getHighlightingMode=function(){return PDFNet.sendWithPromise("LinkAnnot.getHighlightingMode",{link:this.id})};PDFNet.LinkAnnot.prototype.setHighlightingMode=function(value){checkArguments(arguments.length,1,"setHighlightingMode","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("LinkAnnot.setHighlightingMode",{link:this.id,value:value})};PDFNet.LinkAnnot.prototype.getQuadPointCount=function(){return PDFNet.sendWithPromise("LinkAnnot.getQuadPointCount",{link:this.id})};
-PDFNet.LinkAnnot.prototype.getQuadPoint=function(idx){checkArguments(arguments.length,1,"getQuadPoint","(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("LinkAnnot.getQuadPoint",{link:this.id,idx:idx})};PDFNet.LinkAnnot.prototype.setQuadPoint=function(idx,qp){checkArguments(arguments.length,2,"setQuadPoint","(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",PDFNet.QuadPoint,"QuadPoint"]]);checkParamsYieldFunction("setQuadPoint",[[qp,1]]);return PDFNet.sendWithPromise("LinkAnnot.setQuadPoint",
-{link:this.id,idx:idx,qp:qp})};PDFNet.getNormalizedUrl=function(url){checkArguments(arguments.length,1,"getNormalizedUrl","(string)",[[url,"string"]]);return PDFNet.sendWithPromise("getNormalizedUrl",{url:url})};PDFNet.MarkupAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("markupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.MarkupAnnot,
-id)})};PDFNet.MarkupAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("markupAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.MarkupAnnot,id)})};PDFNet.MarkupAnnot.prototype.getTitle=function(){return PDFNet.sendWithPromise("MarkupAnnot.getTitle",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setTitle=function(title){checkArguments(arguments.length,
-1,"setTitle","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setTitle",{markup:this.id,title:title})};PDFNet.MarkupAnnot.prototype.setTitleUString=function(title){checkArguments(arguments.length,1,"setTitleUString","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setTitleUString",{markup:this.id,title:title})};PDFNet.MarkupAnnot.prototype.getPopup=function(){return PDFNet.sendWithPromise("MarkupAnnot.getPopup",{markup:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,
-id)})};PDFNet.MarkupAnnot.prototype.setPopup=function(ppup){checkArguments(arguments.length,1,"setPopup","(PDFNet.Annot)",[[ppup,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("MarkupAnnot.setPopup",{markup:this.id,ppup:ppup.id})};PDFNet.MarkupAnnot.prototype.getOpacity=function(){return PDFNet.sendWithPromise("MarkupAnnot.getOpacity",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setOpacity=function(op){checkArguments(arguments.length,1,"setOpacity","(number)",[[op,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setOpacity",
-{markup:this.id,op:op})};PDFNet.MarkupAnnot.prototype.getSubject=function(){return PDFNet.sendWithPromise("MarkupAnnot.getSubject",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setSubject=function(contents){checkArguments(arguments.length,1,"setSubject","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("MarkupAnnot.setSubject",{markup:this.id,contents:contents})};PDFNet.MarkupAnnot.prototype.getCreationDates=function(){return PDFNet.sendWithPromise("MarkupAnnot.getCreationDates",{markup:this.id}).then(function(id){return new PDFNet.Date(id)})};
-PDFNet.MarkupAnnot.prototype.getBorderEffect=function(){return PDFNet.sendWithPromise("MarkupAnnot.getBorderEffect",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setBorderEffect=function(effect){"undefined"===typeof effect&&(effect=PDFNet.MarkupAnnot.BorderEffect.e_None);checkArguments(arguments.length,0,"setBorderEffect","(number)",[[effect,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setBorderEffect",{markup:this.id,effect:effect})};PDFNet.MarkupAnnot.prototype.getBorderEffectIntensity=
-function(){return PDFNet.sendWithPromise("MarkupAnnot.getBorderEffectIntensity",{markup:this.id})};PDFNet.MarkupAnnot.prototype.setBorderEffectIntensity=function(intensity){"undefined"===typeof intensity&&(intensity=0);checkArguments(arguments.length,0,"setBorderEffectIntensity","(number)",[[intensity,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setBorderEffectIntensity",{markup:this.id,intensity:intensity})};PDFNet.MarkupAnnot.prototype.setCreationDates=function(dt){checkArguments(arguments.length,
-1,"setCreationDates","(PDFNet.Date)",[[dt,"Structure",PDFNet.Date,"Date"]]);checkParamsYieldFunction("setCreationDates",[[dt,0]]);return PDFNet.sendWithPromise("MarkupAnnot.setCreationDates",{markup:this.id,dt:dt})};PDFNet.MarkupAnnot.prototype.getInteriorColor=function(){return PDFNet.sendWithPromise("MarkupAnnot.getInteriorColor",{markup:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.MarkupAnnot.prototype.getInteriorColorCompNum=function(){return PDFNet.sendWithPromise("MarkupAnnot.getInteriorColorCompNum",
-{markup:this.id})};PDFNet.MarkupAnnot.prototype.setInteriorColorRGB=function(col){checkArguments(arguments.length,1,"setInteriorColorRGB","(PDFNet.ColorPt)",[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("MarkupAnnot.setInteriorColorRGB",{markup:this.id,col:col.id})};PDFNet.MarkupAnnot.prototype.setInteriorColor=function(c,CompNum){checkArguments(arguments.length,2,"setInteriorColor","(PDFNet.ColorPt, number)",[[c,"Object",PDFNet.ColorPt,"ColorPt"],[CompNum,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.setInteriorColor",
-{markup:this.id,c:c.id,CompNum:CompNum})};PDFNet.MarkupAnnot.prototype.getContentRect=function(){return PDFNet.sendWithPromise("MarkupAnnot.getContentRect",{markup:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.MarkupAnnot.prototype.setContentRect=function(cr){checkArguments(arguments.length,1,"setContentRect","(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setContentRect",[[cr,0]]);return PDFNet.sendWithPromise("MarkupAnnot.setContentRect",{markup:this.id,
-cr:cr})};PDFNet.MarkupAnnot.prototype.getPadding=function(){return PDFNet.sendWithPromise("MarkupAnnot.getPadding",{markup:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.MarkupAnnot.prototype.setPadding=function(rd){checkArguments(arguments.length,1,"setPadding","(PDFNet.Rect)",[[rd,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setPadding",[[rd,0]]);return PDFNet.sendWithPromise("MarkupAnnot.setPadding",{markup:this.id,rd:rd})};PDFNet.MarkupAnnot.prototype.rotateAppearance=
-function(angle){checkArguments(arguments.length,1,"rotateAppearance","(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("MarkupAnnot.rotateAppearance",{markup:this.id,angle:angle})};PDFNet.MovieAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("movieAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot,
-id)})};PDFNet.MovieAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("movieAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot,id)})};PDFNet.MovieAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",
-[[pos,1]]);return PDFNet.sendWithPromise("movieAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.MovieAnnot,id)})};PDFNet.MovieAnnot.prototype.getTitle=function(){return PDFNet.sendWithPromise("MovieAnnot.getTitle",{movie:this.id})};PDFNet.MovieAnnot.prototype.setTitle=function(title){checkArguments(arguments.length,1,"setTitle","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("MovieAnnot.setTitle",{movie:this.id,title:title})};PDFNet.MovieAnnot.prototype.isToBePlayed=
-function(){return PDFNet.sendWithPromise("MovieAnnot.isToBePlayed",{movie:this.id})};PDFNet.MovieAnnot.prototype.setToBePlayed=function(isplay){"undefined"===typeof isplay&&(isplay=!0);checkArguments(arguments.length,0,"setToBePlayed","(boolean)",[[isplay,"boolean"]]);return PDFNet.sendWithPromise("MovieAnnot.setToBePlayed",{movie:this.id,isplay:isplay})};PDFNet.PolyLineAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj",
-"(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("polyLineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("polyLineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.create=
-function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("polyLineAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PolyLineAnnot,id)})};PDFNet.PolyLineAnnot.prototype.getVertexCount=function(){return PDFNet.sendWithPromise("PolyLineAnnot.getVertexCount",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.getVertex=
-function(idx){checkArguments(arguments.length,1,"getVertex","(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.getVertex",{polyline:this.id,idx:idx})};PDFNet.PolyLineAnnot.prototype.setVertex=function(idx,pt){checkArguments(arguments.length,2,"setVertex","(number, PDFNet.Point)",[[idx,"number"],[pt,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setVertex",[[pt,1]]);return PDFNet.sendWithPromise("PolyLineAnnot.setVertex",{polyline:this.id,idx:idx,pt:pt})};PDFNet.PolyLineAnnot.prototype.getStartStyle=
-function(){return PDFNet.sendWithPromise("PolyLineAnnot.getStartStyle",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setStartStyle=function(style){checkArguments(arguments.length,1,"setStartStyle","(number)",[[style,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setStartStyle",{polyline:this.id,style:style})};PDFNet.PolyLineAnnot.prototype.getEndStyle=function(){return PDFNet.sendWithPromise("PolyLineAnnot.getEndStyle",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setEndStyle=
-function(style){checkArguments(arguments.length,1,"setEndStyle","(number)",[[style,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setEndStyle",{polyline:this.id,style:style})};PDFNet.PolyLineAnnot.prototype.getIntentName=function(){return PDFNet.sendWithPromise("PolyLineAnnot.getIntentName",{polyline:this.id})};PDFNet.PolyLineAnnot.prototype.setIntentName=function(mode){checkArguments(arguments.length,1,"setIntentName","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PolyLineAnnot.setIntentName",
-{polyline:this.id,mode:mode})};PDFNet.PolygonAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("polygonAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,id)})};PDFNet.PolygonAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,
-"Annot"]]);return PDFNet.sendWithPromise("polygonAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,id)})};PDFNet.PolygonAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("polygonAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PolygonAnnot,
-id)})};PDFNet.PopupAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("popupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot,id)})};PDFNet.PopupAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("popupAnnotCreateFromAnnot",
-{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot,id)})};PDFNet.PopupAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("popupAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.PopupAnnot,id)})};PDFNet.PopupAnnot.prototype.getParent=function(){return PDFNet.sendWithPromise("PopupAnnot.getParent",
-{popup:this.id}).then(function(id){return createPDFNetObj(PDFNet.Annot,id)})};PDFNet.PopupAnnot.prototype.setParent=function(parent){checkArguments(arguments.length,1,"setParent","(PDFNet.Annot)",[[parent,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("PopupAnnot.setParent",{popup:this.id,parent:parent.id})};PDFNet.PopupAnnot.prototype.isOpen=function(){return PDFNet.sendWithPromise("PopupAnnot.isOpen",{popup:this.id})};PDFNet.PopupAnnot.prototype.setOpen=function(isopen){checkArguments(arguments.length,
-1,"setOpen","(boolean)",[[isopen,"boolean"]]);return PDFNet.sendWithPromise("PopupAnnot.setOpen",{popup:this.id,isopen:isopen})};PDFNet.RedactionAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("redactionAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.createFromAnnot=
-function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("redactionAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("redactionAnnotCreate",
-{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.RedactionAnnot,id)})};PDFNet.RedactionAnnot.prototype.getQuadPointCount=function(){return PDFNet.sendWithPromise("RedactionAnnot.getQuadPointCount",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.getQuadPoint=function(idx){checkArguments(arguments.length,1,"getQuadPoint","(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("RedactionAnnot.getQuadPoint",{redaction:this.id,idx:idx})};PDFNet.RedactionAnnot.prototype.setQuadPoint=
-function(idx,qp){checkArguments(arguments.length,2,"setQuadPoint","(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",PDFNet.QuadPoint,"QuadPoint"]]);checkParamsYieldFunction("setQuadPoint",[[qp,1]]);return PDFNet.sendWithPromise("RedactionAnnot.setQuadPoint",{redaction:this.id,idx:idx,qp:qp})};PDFNet.RedactionAnnot.prototype.setAppFormXO=function(formxo){checkArguments(arguments.length,1,"setAppFormXO","(PDFNet.Obj)",[[formxo,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("RedactionAnnot.setAppFormXO",
-{redaction:this.id,formxo:formxo.id})};PDFNet.RedactionAnnot.prototype.getOverlayText=function(){return PDFNet.sendWithPromise("RedactionAnnot.getOverlayText",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setOverlayText=function(title){checkArguments(arguments.length,1,"setOverlayText","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("RedactionAnnot.setOverlayText",{redaction:this.id,title:title})};PDFNet.RedactionAnnot.prototype.getUseRepeat=function(){return PDFNet.sendWithPromise("RedactionAnnot.getUseRepeat",
-{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setUseRepeat=function(userepeat){"undefined"===typeof userepeat&&(userepeat=!1);checkArguments(arguments.length,0,"setUseRepeat","(boolean)",[[userepeat,"boolean"]]);return PDFNet.sendWithPromise("RedactionAnnot.setUseRepeat",{redaction:this.id,userepeat:userepeat})};PDFNet.RedactionAnnot.prototype.getOverlayTextAppearance=function(){return PDFNet.sendWithPromise("RedactionAnnot.getOverlayTextAppearance",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setOverlayTextAppearance=
-function(app){checkArguments(arguments.length,1,"setOverlayTextAppearance","(string)",[[app,"string"]]);return PDFNet.sendWithPromise("RedactionAnnot.setOverlayTextAppearance",{redaction:this.id,app:app})};PDFNet.RedactionAnnot.prototype.getQuadForm=function(){return PDFNet.sendWithPromise("RedactionAnnot.getQuadForm",{redaction:this.id})};PDFNet.RedactionAnnot.prototype.setQuadForm=function(form){"undefined"===typeof form&&(form=PDFNet.RedactionAnnot.QuadForm.e_LeftJustified);checkArguments(arguments.length,
-0,"setQuadForm","(number)",[[form,"number"]]);return PDFNet.sendWithPromise("RedactionAnnot.setQuadForm",{redaction:this.id,form:form})};PDFNet.RedactionAnnot.prototype.getAppFormXO=function(){return PDFNet.sendWithPromise("RedactionAnnot.getAppFormXO",{redaction:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.RubberStampAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",
-PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.create=
-function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("rubberStampAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.createCustom=function(doc,pos,form_xobject){checkArguments(arguments.length,3,"createCustom","(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Obj)",
-[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[form_xobject,"Object",PDFNet.Obj,"Obj"]]);checkParamsYieldFunction("createCustom",[[pos,1]]);return PDFNet.sendWithPromise("rubberStampAnnotCreateCustom",{doc:doc.id,pos:pos,form_xobject:form_xobject.id}).then(function(id){return createPDFNetObj(PDFNet.RubberStampAnnot,id)})};PDFNet.RubberStampAnnot.prototype.getIcon=function(){return PDFNet.sendWithPromise("RubberStampAnnot.getIcon",{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.setIcon=
-function(type){"undefined"===typeof type&&(type=PDFNet.RubberStampAnnot.Icon.e_Draft);checkArguments(arguments.length,0,"setIcon","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("RubberStampAnnot.setIcon",{stamp:this.id,type:type})};PDFNet.RubberStampAnnot.prototype.setIconDefault=function(){return PDFNet.sendWithPromise("RubberStampAnnot.setIconDefault",{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.getIconName=function(){return PDFNet.sendWithPromise("RubberStampAnnot.getIconName",
-{stamp:this.id})};PDFNet.RubberStampAnnot.prototype.setIconName=function(iconstring){checkArguments(arguments.length,1,"setIconName","(string)",[[iconstring,"string"]]);return PDFNet.sendWithPromise("RubberStampAnnot.setIconName",{stamp:this.id,iconstring:iconstring})};PDFNet.ScreenAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("screenAnnotCreateFromObj",
-{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,id)})};PDFNet.ScreenAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("screenAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,id)})};PDFNet.ScreenAnnot.prototype.getTitle=function(){return PDFNet.sendWithPromise("ScreenAnnot.getTitle",{s:this.id})};PDFNet.ScreenAnnot.prototype.setTitle=
-function(title){checkArguments(arguments.length,1,"setTitle","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setTitle",{s:this.id,title:title})};PDFNet.ScreenAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("screenAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.ScreenAnnot,
-id)})};PDFNet.ScreenAnnot.prototype.getAction=function(){return PDFNet.sendWithPromise("ScreenAnnot.getAction",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.ScreenAnnot.prototype.setAction=function(action){checkArguments(arguments.length,1,"setAction","(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("ScreenAnnot.setAction",{s:this.id,action:action.id})};PDFNet.ScreenAnnot.prototype.getBorderColor=function(){return PDFNet.sendWithPromise("ScreenAnnot.getBorderColor",
-{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ScreenAnnot.prototype.setBorderColor=function(col,numcomp){checkArguments(arguments.length,2,"setBorderColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setBorderColor",{s:this.id,col:col.id,numcomp:numcomp})};PDFNet.ScreenAnnot.prototype.getBorderColorCompNum=function(){return PDFNet.sendWithPromise("ScreenAnnot.getBorderColorCompNum",
-{s:this.id})};PDFNet.ScreenAnnot.prototype.getBackgroundColorCompNum=function(){return PDFNet.sendWithPromise("ScreenAnnot.getBackgroundColorCompNum",{s:this.id})};PDFNet.ScreenAnnot.prototype.getBackgroundColor=function(){return PDFNet.sendWithPromise("ScreenAnnot.getBackgroundColor",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ScreenAnnot.prototype.setBackgroundColor=function(col,numcomp){checkArguments(arguments.length,2,"setBackgroundColor","(PDFNet.ColorPt, number)",
-[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setBackgroundColor",{s:this.id,col:col.id,numcomp:numcomp})};PDFNet.ScreenAnnot.prototype.getStaticCaptionText=function(){return PDFNet.sendWithPromise("ScreenAnnot.getStaticCaptionText",{s:this.id})};PDFNet.ScreenAnnot.prototype.setStaticCaptionText=function(contents){checkArguments(arguments.length,1,"setStaticCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setStaticCaptionText",
-{s:this.id,contents:contents})};PDFNet.ScreenAnnot.prototype.getRolloverCaptionText=function(){return PDFNet.sendWithPromise("ScreenAnnot.getRolloverCaptionText",{s:this.id})};PDFNet.ScreenAnnot.prototype.setRolloverCaptionText=function(contents){checkArguments(arguments.length,1,"setRolloverCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setRolloverCaptionText",{s:this.id,contents:contents})};PDFNet.ScreenAnnot.prototype.getMouseDownCaptionText=function(){return PDFNet.sendWithPromise("ScreenAnnot.getMouseDownCaptionText",
-{s:this.id})};PDFNet.ScreenAnnot.prototype.setMouseDownCaptionText=function(contents){checkArguments(arguments.length,1,"setMouseDownCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("ScreenAnnot.setMouseDownCaptionText",{s:this.id,contents:contents})};PDFNet.ScreenAnnot.prototype.getStaticIcon=function(){return PDFNet.sendWithPromise("ScreenAnnot.getStaticIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setStaticIcon=
-function(icon){checkArguments(arguments.length,1,"setStaticIcon","(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setStaticIcon",{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getRolloverIcon=function(){return PDFNet.sendWithPromise("ScreenAnnot.getRolloverIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setRolloverIcon=function(icon){checkArguments(arguments.length,1,"setRolloverIcon",
-"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setRolloverIcon",{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getMouseDownIcon=function(){return PDFNet.sendWithPromise("ScreenAnnot.getMouseDownIcon",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ScreenAnnot.prototype.setMouseDownIcon=function(icon){checkArguments(arguments.length,1,"setMouseDownIcon","(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ScreenAnnot.setMouseDownIcon",
-{s:this.id,icon:icon.id})};PDFNet.ScreenAnnot.prototype.getScaleType=function(){return PDFNet.sendWithPromise("ScreenAnnot.getScaleType",{s:this.id})};PDFNet.ScreenAnnot.prototype.setScaleType=function(st){checkArguments(arguments.length,1,"setScaleType","(number)",[[st,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setScaleType",{s:this.id,st:st})};PDFNet.ScreenAnnot.prototype.getIconCaptionRelation=function(){return PDFNet.sendWithPromise("ScreenAnnot.getIconCaptionRelation",{s:this.id})};
-PDFNet.ScreenAnnot.prototype.setIconCaptionRelation=function(icr){checkArguments(arguments.length,1,"setIconCaptionRelation","(number)",[[icr,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setIconCaptionRelation",{s:this.id,icr:icr})};PDFNet.ScreenAnnot.prototype.getScaleCondition=function(){return PDFNet.sendWithPromise("ScreenAnnot.getScaleCondition",{s:this.id})};PDFNet.ScreenAnnot.prototype.setScaleCondition=function(sc){checkArguments(arguments.length,1,"setScaleCondition","(number)",
-[[sc,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setScaleCondition",{s:this.id,sc:sc})};PDFNet.ScreenAnnot.prototype.getFitFull=function(){return PDFNet.sendWithPromise("ScreenAnnot.getFitFull",{s:this.id})};PDFNet.ScreenAnnot.prototype.setFitFull=function(ff){checkArguments(arguments.length,1,"setFitFull","(boolean)",[[ff,"boolean"]]);return PDFNet.sendWithPromise("ScreenAnnot.setFitFull",{s:this.id,ff:ff})};PDFNet.ScreenAnnot.prototype.getHIconLeftOver=function(){return PDFNet.sendWithPromise("ScreenAnnot.getHIconLeftOver",
-{s:this.id})};PDFNet.ScreenAnnot.prototype.setHIconLeftOver=function(hl){checkArguments(arguments.length,1,"setHIconLeftOver","(number)",[[hl,"number"]]);return PDFNet.sendWithPromise("ScreenAnnot.setHIconLeftOver",{s:this.id,hl:hl})};PDFNet.ScreenAnnot.prototype.getVIconLeftOver=function(){return PDFNet.sendWithPromise("ScreenAnnot.getVIconLeftOver",{s:this.id})};PDFNet.ScreenAnnot.prototype.setVIconLeftOver=function(vl){checkArguments(arguments.length,1,"setVIconLeftOver","(number)",[[vl,"number"]]);
-return PDFNet.sendWithPromise("ScreenAnnot.setVIconLeftOver",{s:this.id,vl:vl})};PDFNet.SoundAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("soundAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot",
-"(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("soundAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("soundAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,
-id)})};PDFNet.SoundAnnot.createWithData=function(doc,pos,stream,sample_bits,sample_freq,num_channels){checkArguments(arguments.length,6,"createWithData","(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Filter, number, number, number)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[stream,"Object",PDFNet.Filter,"Filter"],[sample_bits,"number"],[sample_freq,"number"],[num_channels,"number"]]);checkParamsYieldFunction("createWithData",[[pos,1]]);0!=stream.id&&avoidCleanup(stream.id);return PDFNet.sendWithPromise("soundAnnotCreateWithData",
-{doc:doc.id,pos:pos,no_own_stream:stream.id,sample_bits:sample_bits,sample_freq:sample_freq,num_channels:num_channels}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,id)})};PDFNet.SoundAnnot.createAtPoint=function(doc,pos){checkArguments(arguments.length,2,"createAtPoint","(PDFNet.SDFDoc, PDFNet.Point)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("createAtPoint",[[pos,1]]);return PDFNet.sendWithPromise("soundAnnotCreateAtPoint",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SoundAnnot,
-id)})};PDFNet.SoundAnnot.prototype.getSoundStream=function(){return PDFNet.sendWithPromise("SoundAnnot.getSoundStream",{sound:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SoundAnnot.prototype.setSoundStream=function(icon){checkArguments(arguments.length,1,"setSoundStream","(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("SoundAnnot.setSoundStream",{sound:this.id,icon:icon.id})};PDFNet.SoundAnnot.prototype.getIcon=function(){return PDFNet.sendWithPromise("SoundAnnot.getIcon",
-{sound:this.id})};PDFNet.SoundAnnot.prototype.setIcon=function(type){"undefined"===typeof type&&(type=PDFNet.SoundAnnot.Icon.e_Speaker);checkArguments(arguments.length,0,"setIcon","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("SoundAnnot.setIcon",{sound:this.id,type:type})};PDFNet.SoundAnnot.prototype.getIconName=function(){return PDFNet.sendWithPromise("SoundAnnot.getIconName",{sound:this.id})};PDFNet.SoundAnnot.prototype.setIconName=function(type){checkArguments(arguments.length,1,
-"setIconName","(string)",[[type,"string"]]);return PDFNet.sendWithPromise("SoundAnnot.setIconName",{sound:this.id,type:type})};PDFNet.SquareAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("squareAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,id)})};PDFNet.SquareAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,
-1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("squareAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,id)})};PDFNet.SquareAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("squareAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SquareAnnot,
-id)})};PDFNet.SquareAnnot.prototype.getInteriorColor=function(){return PDFNet.sendWithPromise("SquareAnnot.getInteriorColor",{square:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.SquareAnnot.prototype.getInteriorColorCompNum=function(){return PDFNet.sendWithPromise("SquareAnnot.getInteriorColorCompNum",{square:this.id})};PDFNet.SquareAnnot.prototype.setInteriorColorDefault=function(col){checkArguments(arguments.length,1,"setInteriorColorDefault","(PDFNet.ColorPt)",
-[[col,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("SquareAnnot.setInteriorColorDefault",{square:this.id,col:col.id})};PDFNet.SquareAnnot.prototype.setInteriorColor=function(col,numcomp){checkArguments(arguments.length,2,"setInteriorColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[numcomp,"number"]]);return PDFNet.sendWithPromise("SquareAnnot.setInteriorColor",{square:this.id,col:col.id,numcomp:numcomp})};PDFNet.SquareAnnot.prototype.getContentRect=
-function(){return PDFNet.sendWithPromise("SquareAnnot.getContentRect",{square:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.SquareAnnot.prototype.setContentRect=function(cr){checkArguments(arguments.length,1,"setContentRect","(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setContentRect",[[cr,0]]);return PDFNet.sendWithPromise("SquareAnnot.setContentRect",{square:this.id,cr:cr})};PDFNet.SquareAnnot.prototype.getPadding=function(){return PDFNet.sendWithPromise("SquareAnnot.getPadding",
-{square:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.SquareAnnot.prototype.setPadding=function(cr){checkArguments(arguments.length,1,"setPadding","(PDFNet.Rect)",[[cr,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setPadding",[[cr,0]]);return PDFNet.sendWithPromise("SquareAnnot.setPadding",{square:this.id,cr:cr})};PDFNet.SquigglyAnnot.createFromObj=function(d){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("squigglyAnnotCreateFromObj",
-{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.SquigglyAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("squigglyAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.SquigglyAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",
-[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("squigglyAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.SquigglyAnnot,id)})};PDFNet.StrikeOutAnnot.createFromObj=function(d){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("strikeOutAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot,
-id)})};PDFNet.StrikeOutAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("strikeOutAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot,id)})};PDFNet.StrikeOutAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",
-[[pos,1]]);return PDFNet.sendWithPromise("strikeOutAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.StrikeOutAnnot,id)})};PDFNet.TextAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("textAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.createFromAnnot=
-function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("textAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.createAtPoint=function(doc,pos){checkArguments(arguments.length,2,"createAtPoint","(PDFNet.SDFDoc, PDFNet.Point)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("createAtPoint",[[pos,1]]);return PDFNet.sendWithPromise("textAnnotCreateAtPoint",
-{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("textAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.TextAnnot,id)})};PDFNet.TextAnnot.prototype.isOpen=function(){return PDFNet.sendWithPromise("TextAnnot.isOpen",
-{text:this.id})};PDFNet.TextAnnot.prototype.setOpen=function(isopen){checkArguments(arguments.length,1,"setOpen","(boolean)",[[isopen,"boolean"]]);return PDFNet.sendWithPromise("TextAnnot.setOpen",{text:this.id,isopen:isopen})};PDFNet.TextAnnot.prototype.getIcon=function(){return PDFNet.sendWithPromise("TextAnnot.getIcon",{text:this.id})};PDFNet.TextAnnot.prototype.setIcon=function(icon){"undefined"===typeof icon&&(icon=PDFNet.TextAnnot.Icon.e_Note);checkArguments(arguments.length,0,"setIcon","(number)",
-[[icon,"number"]]);return PDFNet.sendWithPromise("TextAnnot.setIcon",{text:this.id,icon:icon})};PDFNet.TextAnnot.prototype.setIconDefault=function(){return PDFNet.sendWithPromise("TextAnnot.setIconDefault",{text:this.id})};PDFNet.TextAnnot.prototype.getIconName=function(){return PDFNet.sendWithPromise("TextAnnot.getIconName",{text:this.id})};PDFNet.TextAnnot.prototype.setIconName=function(icon){checkArguments(arguments.length,1,"setIconName","(string)",[[icon,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setIconName",
-{text:this.id,icon:icon})};PDFNet.TextAnnot.prototype.getState=function(){return PDFNet.sendWithPromise("TextAnnot.getState",{text:this.id})};PDFNet.TextAnnot.prototype.setState=function(state){"undefined"===typeof state&&(state="");checkArguments(arguments.length,0,"setState","(string)",[[state,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setState",{text:this.id,state:state})};PDFNet.TextAnnot.prototype.getStateModel=function(){return PDFNet.sendWithPromise("TextAnnot.getStateModel",{text:this.id})};
-PDFNet.TextAnnot.prototype.setStateModel=function(sm){checkArguments(arguments.length,1,"setStateModel","(string)",[[sm,"string"]]);return PDFNet.sendWithPromise("TextAnnot.setStateModel",{text:this.id,sm:sm})};PDFNet.TextAnnot.prototype.getAnchorPosition=function(anchor){checkArguments(arguments.length,1,"getAnchorPosition","(PDFNet.Point)",[[anchor,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("getAnchorPosition",[[anchor,0]]);anchor.yieldFunction="TextAnnot.getAnchorPosition";return PDFNet.sendWithPromise("TextAnnot.getAnchorPosition",
-{text:this.id,anchor:anchor}).then(function(id){anchor.yieldFunction=void 0;copyFunc(id,anchor)})};PDFNet.TextAnnot.prototype.setAnchorPosition=function(anchor){checkArguments(arguments.length,1,"setAnchorPosition","(PDFNet.Point)",[[anchor,"Structure",PDFNet.Point,"Point"]]);checkParamsYieldFunction("setAnchorPosition",[[anchor,0]]);return PDFNet.sendWithPromise("TextAnnot.setAnchorPosition",{text:this.id,anchor:anchor})};PDFNet.UnderlineAnnot.createFromObj=function(d){checkArguments(arguments.length,
-1,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("underlineAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,id)})};PDFNet.UnderlineAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("underlineAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,
-id)})};PDFNet.UnderlineAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("underlineAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.UnderlineAnnot,id)})};PDFNet.WatermarkAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,
-0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("watermarkAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,id)})};PDFNet.WatermarkAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("watermarkAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,
-id)})};PDFNet.WatermarkAnnot.create=function(doc,pos){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, PDFNet.Rect)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("watermarkAnnotCreate",{doc:doc.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.WatermarkAnnot,id)})};PDFNet.TextMarkupAnnot.createFromObj=function(d){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,
-"Obj"]]);return PDFNet.sendWithPromise("textMarkupAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextMarkupAnnot,id)})};PDFNet.TextMarkupAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("textMarkupAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.TextMarkupAnnot,id)})};PDFNet.TextMarkupAnnot.prototype.getQuadPointCount=
-function(){return PDFNet.sendWithPromise("TextMarkupAnnot.getQuadPointCount",{textmarkup:this.id})};PDFNet.TextMarkupAnnot.prototype.getQuadPoint=function(idx){checkArguments(arguments.length,1,"getQuadPoint","(number)",[[idx,"number"]]);return PDFNet.sendWithPromise("TextMarkupAnnot.getQuadPoint",{textmarkup:this.id,idx:idx})};PDFNet.TextMarkupAnnot.prototype.setQuadPoint=function(idx,qp){checkArguments(arguments.length,2,"setQuadPoint","(number, PDFNet.QuadPoint)",[[idx,"number"],[qp,"Structure",
-PDFNet.QuadPoint,"QuadPoint"]]);checkParamsYieldFunction("setQuadPoint",[[qp,1]]);return PDFNet.sendWithPromise("TextMarkupAnnot.setQuadPoint",{textmarkup:this.id,idx:idx,qp:qp})};PDFNet.WidgetAnnot.create=function(doc,pos,field){checkArguments(arguments.length,3,"create","(PDFNet.SDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"SDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("create",[[pos,1],[field,2]]);field.yieldFunction="WidgetAnnot.create";
-return PDFNet.sendWithPromise("widgetAnnotCreate",{doc:doc.id,pos:pos,field:field}).then(function(id){field.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.WidgetAnnot,id.result);copyFunc(id.field,field);return id.result})};PDFNet.WidgetAnnot.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("widgetAnnotCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.WidgetAnnot,
-id)})};PDFNet.WidgetAnnot.createFromAnnot=function(ann){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[ann,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("widgetAnnotCreateFromAnnot",{ann:ann.id}).then(function(id){return createPDFNetObj(PDFNet.WidgetAnnot,id)})};PDFNet.WidgetAnnot.prototype.getField=function(){return PDFNet.sendWithPromise("WidgetAnnot.getField",{widget:this.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.WidgetAnnot.prototype.getHighlightingMode=
-function(){return PDFNet.sendWithPromise("WidgetAnnot.getHighlightingMode",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setHighlightingMode=function(value){"undefined"===typeof value&&(value=PDFNet.WidgetAnnot.HighlightingMode.e_invert);checkArguments(arguments.length,0,"setHighlightingMode","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setHighlightingMode",{widget:this.id,value:value})};PDFNet.WidgetAnnot.prototype.getAction=function(){return PDFNet.sendWithPromise("WidgetAnnot.getAction",
-{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.WidgetAnnot.prototype.setAction=function(action){checkArguments(arguments.length,1,"setAction","(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("WidgetAnnot.setAction",{widget:this.id,action:action.id})};PDFNet.WidgetAnnot.prototype.getBorderColor=function(){return PDFNet.sendWithPromise("WidgetAnnot.getBorderColor",{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.WidgetAnnot.prototype.setBorderColor=function(col,compnum){checkArguments(arguments.length,2,"setBorderColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],[compnum,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setBorderColor",{widget:this.id,col:col.id,compnum:compnum})};PDFNet.WidgetAnnot.prototype.getBorderColorCompNum=function(){return PDFNet.sendWithPromise("WidgetAnnot.getBorderColorCompNum",{widget:this.id})};PDFNet.WidgetAnnot.prototype.getBackgroundColorCompNum=
-function(){return PDFNet.sendWithPromise("WidgetAnnot.getBackgroundColorCompNum",{widget:this.id})};PDFNet.WidgetAnnot.prototype.getBackgroundColor=function(){return PDFNet.sendWithPromise("WidgetAnnot.getBackgroundColor",{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.WidgetAnnot.prototype.setBackgroundColor=function(col,compnum){checkArguments(arguments.length,2,"setBackgroundColor","(PDFNet.ColorPt, number)",[[col,"Object",PDFNet.ColorPt,"ColorPt"],
-[compnum,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setBackgroundColor",{widget:this.id,col:col.id,compnum:compnum})};PDFNet.WidgetAnnot.prototype.getStaticCaptionText=function(){return PDFNet.sendWithPromise("WidgetAnnot.getStaticCaptionText",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setStaticCaptionText=function(contents){checkArguments(arguments.length,1,"setStaticCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("WidgetAnnot.setStaticCaptionText",{widget:this.id,
-contents:contents})};PDFNet.WidgetAnnot.prototype.getRolloverCaptionText=function(){return PDFNet.sendWithPromise("WidgetAnnot.getRolloverCaptionText",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setRolloverCaptionText=function(contents){checkArguments(arguments.length,1,"setRolloverCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("WidgetAnnot.setRolloverCaptionText",{widget:this.id,contents:contents})};PDFNet.WidgetAnnot.prototype.getMouseDownCaptionText=function(){return PDFNet.sendWithPromise("WidgetAnnot.getMouseDownCaptionText",
-{widget:this.id})};PDFNet.WidgetAnnot.prototype.setMouseDownCaptionText=function(contents){checkArguments(arguments.length,1,"setMouseDownCaptionText","(string)",[[contents,"string"]]);return PDFNet.sendWithPromise("WidgetAnnot.setMouseDownCaptionText",{widget:this.id,contents:contents})};PDFNet.WidgetAnnot.prototype.getStaticIcon=function(){return PDFNet.sendWithPromise("WidgetAnnot.getStaticIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setStaticIcon=
-function(icon){checkArguments(arguments.length,1,"setStaticIcon","(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("WidgetAnnot.setStaticIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getRolloverIcon=function(){return PDFNet.sendWithPromise("WidgetAnnot.getRolloverIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setRolloverIcon=function(icon){checkArguments(arguments.length,1,"setRolloverIcon",
-"(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("WidgetAnnot.setRolloverIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getMouseDownIcon=function(){return PDFNet.sendWithPromise("WidgetAnnot.getMouseDownIcon",{widget:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.WidgetAnnot.prototype.setMouseDownIcon=function(icon){checkArguments(arguments.length,1,"setMouseDownIcon","(PDFNet.Obj)",[[icon,"Object",PDFNet.Obj,"Obj"]]);
-return PDFNet.sendWithPromise("WidgetAnnot.setMouseDownIcon",{widget:this.id,icon:icon.id})};PDFNet.WidgetAnnot.prototype.getScaleType=function(){return PDFNet.sendWithPromise("WidgetAnnot.getScaleType",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setScaleType=function(st){checkArguments(arguments.length,1,"setScaleType","(number)",[[st,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setScaleType",{widget:this.id,st:st})};PDFNet.WidgetAnnot.prototype.getIconCaptionRelation=function(){return PDFNet.sendWithPromise("WidgetAnnot.getIconCaptionRelation",
-{widget:this.id})};PDFNet.WidgetAnnot.prototype.setIconCaptionRelation=function(icr){checkArguments(arguments.length,1,"setIconCaptionRelation","(number)",[[icr,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setIconCaptionRelation",{widget:this.id,icr:icr})};PDFNet.WidgetAnnot.prototype.getScaleCondition=function(){return PDFNet.sendWithPromise("WidgetAnnot.getScaleCondition",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setScaleCondition=function(sd){checkArguments(arguments.length,1,"setScaleCondition",
-"(number)",[[sd,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setScaleCondition",{widget:this.id,sd:sd})};PDFNet.WidgetAnnot.prototype.getFitFull=function(){return PDFNet.sendWithPromise("WidgetAnnot.getFitFull",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setFitFull=function(ff){checkArguments(arguments.length,1,"setFitFull","(boolean)",[[ff,"boolean"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFitFull",{widget:this.id,ff:ff})};PDFNet.WidgetAnnot.prototype.getHIconLeftOver=function(){return PDFNet.sendWithPromise("WidgetAnnot.getHIconLeftOver",
-{widget:this.id})};PDFNet.WidgetAnnot.prototype.setHIconLeftOver=function(hl){checkArguments(arguments.length,1,"setHIconLeftOver","(number)",[[hl,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setHIconLeftOver",{widget:this.id,hl:hl})};PDFNet.WidgetAnnot.prototype.getVIconLeftOver=function(){return PDFNet.sendWithPromise("WidgetAnnot.getVIconLeftOver",{widget:this.id})};PDFNet.WidgetAnnot.prototype.setVIconLeftOver=function(vl){checkArguments(arguments.length,1,"setVIconLeftOver","(number)",
-[[vl,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setVIconLeftOver",{widget:this.id,vl:vl})};PDFNet.WidgetAnnot.prototype.setFontSize=function(font_size){checkArguments(arguments.length,1,"setFontSize","(number)",[[font_size,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFontSize",{widget:this.id,font_size:font_size})};PDFNet.WidgetAnnot.prototype.setTextColor=function(color,col_comp){checkArguments(arguments.length,2,"setTextColor","(PDFNet.ColorPt, number)",[[color,"Object",
-PDFNet.ColorPt,"ColorPt"],[col_comp,"number"]]);return PDFNet.sendWithPromise("WidgetAnnot.setTextColor",{widget:this.id,color:color.id,col_comp:col_comp})};PDFNet.WidgetAnnot.prototype.setFont=function(font){checkArguments(arguments.length,1,"setFont","(PDFNet.Font)",[[font,"Object",PDFNet.Font,"Font"]]);return PDFNet.sendWithPromise("WidgetAnnot.setFont",{widget:this.id,font:font.id})};PDFNet.WidgetAnnot.prototype.getFontSize=function(){return PDFNet.sendWithPromise("WidgetAnnot.getFontSize",{widget:this.id})};
-PDFNet.WidgetAnnot.prototype.getTextColor=function(){return PDFNet.sendWithPromise("WidgetAnnot.getTextColor",{widget:this.id}).then(function(id){id.col=createDestroyableObj(PDFNet.ColorPt,id.col);return id})};PDFNet.WidgetAnnot.prototype.getFont=function(){return PDFNet.sendWithPromise("WidgetAnnot.getFont",{widget:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.SignatureWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");
-checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("signatureWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createWithField=function(doc,pos,field){checkArguments(arguments.length,3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",
-[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("signatureWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createWithDigitalSignatureField=function(doc,pos,field){checkArguments(arguments.length,3,"createWithDigitalSignatureField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.DigitalSignatureField)",
-[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]]);checkParamsYieldFunction("createWithDigitalSignatureField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("signatureWidgetCreateWithDigitalSignatureField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,
-0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("signatureWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,id)})};PDFNet.SignatureWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("signatureWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.SignatureWidget,
-id)})};PDFNet.SignatureWidget.prototype.createSignatureAppearance=function(img){checkArguments(arguments.length,1,"createSignatureAppearance","(PDFNet.Image)",[[img,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("SignatureWidget.createSignatureAppearance",{self:this.id,img:img.id})};PDFNet.SignatureWidget.prototype.getDigitalSignatureField=function(){return PDFNet.sendWithPromise("SignatureWidget.getDigitalSignatureField",{self:this.id}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};
-PDFNet.ComboBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("comboBoxWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createWithField=
-function(doc,pos,field){checkArguments(arguments.length,3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createFromObj=function(d){"undefined"===
-typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,id)})};PDFNet.ComboBoxWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("comboBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.ComboBoxWidget,
-id)})};PDFNet.ComboBoxWidget.prototype.addOption=function(value){checkArguments(arguments.length,1,"addOption","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.addOption",{combobox:this.id,value:value})};PDFNet.ComboBoxWidget.prototype.addOptions=function(opts){checkArguments(arguments.length,1,"addOptions","(Array<string>)",[[opts,"Array"]]);return PDFNet.sendWithPromise("ComboBoxWidget.addOptions",{combobox:this.id,opts_list:opts})};PDFNet.ComboBoxWidget.prototype.setSelectedOption=
-function(value){checkArguments(arguments.length,1,"setSelectedOption","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.setSelectedOption",{combobox:this.id,value:value})};PDFNet.ComboBoxWidget.prototype.getSelectedOption=function(){return PDFNet.sendWithPromise("ComboBoxWidget.getSelectedOption",{combobox:this.id})};PDFNet.ComboBoxWidget.prototype.replaceOptions=function(new_opts){checkArguments(arguments.length,1,"replaceOptions","(Array<string>)",[[new_opts,"Array"]]);
-return PDFNet.sendWithPromise("ComboBoxWidget.replaceOptions",{combobox:this.id,new_opts_list:new_opts})};PDFNet.ComboBoxWidget.prototype.removeOption=function(value){checkArguments(arguments.length,1,"removeOption","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ComboBoxWidget.removeOption",{combobox:this.id,value:value})};PDFNet.ListBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",
-[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("listBoxWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createWithField=function(doc,pos,field){checkArguments(arguments.length,3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,
-"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("listBoxWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("listBoxWidgetCreateFromObj",
-{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("listBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.ListBoxWidget,id)})};PDFNet.ListBoxWidget.prototype.addOption=function(value){checkArguments(arguments.length,1,"addOption","(string)",
-[[value,"string"]]);return PDFNet.sendWithPromise("ListBoxWidget.addOption",{listbox:this.id,value:value})};PDFNet.ListBoxWidget.prototype.addOptions=function(opts){checkArguments(arguments.length,1,"addOptions","(Array<string>)",[[opts,"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.addOptions",{listbox:this.id,opts_list:opts})};PDFNet.ListBoxWidget.prototype.setSelectedOptions=function(selected_opts){checkArguments(arguments.length,1,"setSelectedOptions","(Array<string>)",[[selected_opts,
-"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.setSelectedOptions",{listbox:this.id,selected_opts_list:selected_opts})};PDFNet.ListBoxWidget.prototype.replaceOptions=function(new_opts){checkArguments(arguments.length,1,"replaceOptions","(Array<string>)",[[new_opts,"Array"]]);return PDFNet.sendWithPromise("ListBoxWidget.replaceOptions",{listbox:this.id,new_opts_list:new_opts})};PDFNet.ListBoxWidget.prototype.removeOption=function(value){checkArguments(arguments.length,1,"removeOption","(string)",
-[[value,"string"]]);return PDFNet.sendWithPromise("ListBoxWidget.removeOption",{listbox:this.id,value:value})};PDFNet.TextWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name="");checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("textWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,
-id)})};PDFNet.TextWidget.createWithField=function(doc,pos,field){checkArguments(arguments.length,3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("textWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.createFromObj=
-function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("textWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("textWidgetCreateFromAnnot",
-{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.TextWidget,id)})};PDFNet.TextWidget.prototype.setText=function(text){checkArguments(arguments.length,1,"setText","(string)",[[text,"string"]]);return PDFNet.sendWithPromise("TextWidget.setText",{widget:this.id,text:text})};PDFNet.TextWidget.prototype.getText=function(){return PDFNet.sendWithPromise("TextWidget.getText",{widget:this.id})};PDFNet.CheckBoxWidget.create=function(doc,pos,field_name){"undefined"===typeof field_name&&(field_name=
-"");checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("checkBoxWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createWithField=function(doc,pos,field){checkArguments(arguments.length,3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",
-[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,
-"Obj"]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("checkBoxWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.CheckBoxWidget,id)})};PDFNet.CheckBoxWidget.prototype.isChecked=
-function(){return PDFNet.sendWithPromise("CheckBoxWidget.isChecked",{button:this.id})};PDFNet.CheckBoxWidget.prototype.setChecked=function(checked){checkArguments(arguments.length,1,"setChecked","(boolean)",[[checked,"boolean"]]);return PDFNet.sendWithPromise("CheckBoxWidget.setChecked",{button:this.id,checked:checked})};PDFNet.RadioButtonWidget.createFromObj=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,
-"Obj"]]);return PDFNet.sendWithPromise("radioButtonWidgetCreateFromObj",{d:d.id}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget,id)})};PDFNet.RadioButtonWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("radioButtonWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget,id)})};PDFNet.RadioButtonWidget.prototype.isEnabled=
-function(){return PDFNet.sendWithPromise("RadioButtonWidget.isEnabled",{button:this.id})};PDFNet.RadioButtonWidget.prototype.enableButton=function(){return PDFNet.sendWithPromise("RadioButtonWidget.enableButton",{button:this.id})};PDFNet.RadioButtonWidget.prototype.getGroup=function(){return PDFNet.sendWithPromise("RadioButtonWidget.getGroup",{button:this.id}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.PushButtonWidget.create=function(doc,pos,field_name){"undefined"===
-typeof field_name&&(field_name="");checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, PDFNet.Rect, string)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field_name,"string"]]);checkParamsYieldFunction("create",[[pos,1]]);return PDFNet.sendWithPromise("pushButtonWidgetCreate",{doc:doc.id,pos:pos,field_name:field_name}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.PushButtonWidget.createWithField=function(doc,pos,field){checkArguments(arguments.length,
-3,"createWithField","(PDFNet.PDFDoc, PDFNet.Rect, PDFNet.Field)",[[doc,"PDFDoc"],[pos,"Structure",PDFNet.Rect,"Rect"],[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createWithField",[[pos,1],[field,2]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateWithField",{doc:doc.id,pos:pos,field:field}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.PushButtonWidget.createFromObj=function(obj){"undefined"===typeof obj&&(obj=new PDFNet.Obj("0"));checkArguments(arguments.length,
-0,"createFromObj","(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateFromObj",{obj:obj.id}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,id)})};PDFNet.PushButtonWidget.createFromAnnot=function(annot){checkArguments(arguments.length,1,"createFromAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("pushButtonWidgetCreateFromAnnot",{annot:annot.id}).then(function(id){return createPDFNetObj(PDFNet.PushButtonWidget,
-id)})};PDFNet.Bookmark.create=function(in_doc,in_title){checkArguments(arguments.length,2,"create","(PDFNet.PDFDoc, string)",[[in_doc,"PDFDoc"],[in_title,"string"]]);return PDFNet.sendWithPromise("bookmarkCreate",{in_doc:in_doc.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.createFromObj=function(in_bookmark_dict){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[in_bookmark_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("bookmarkCreateFromObj",
-{in_bookmark_dict:in_bookmark_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.copy=function(){return PDFNet.sendWithPromise("Bookmark.copy",{in_bookmark:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.compare=function(in_bookmark){checkArguments(arguments.length,1,"compare","(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.compare",
-{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.isValid=function(){return PDFNet.sendWithPromise("Bookmark.isValid",{bm:this.id})};PDFNet.Bookmark.prototype.hasChildren=function(){return PDFNet.sendWithPromise("Bookmark.hasChildren",{bm:this.id})};PDFNet.Bookmark.prototype.getNext=function(){return PDFNet.sendWithPromise("Bookmark.getNext",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getPrev=function(){return PDFNet.sendWithPromise("Bookmark.getPrev",
-{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getFirstChild=function(){return PDFNet.sendWithPromise("Bookmark.getFirstChild",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getLastChild=function(){return PDFNet.sendWithPromise("Bookmark.getLastChild",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.getParent=function(){return PDFNet.sendWithPromise("Bookmark.getParent",
-{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.find=function(in_title){checkArguments(arguments.length,1,"find","(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.find",{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addNewChild=function(in_title){checkArguments(arguments.length,1,"addNewChild","(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.addNewChild",
-{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addChild=function(in_bookmark){checkArguments(arguments.length,1,"addChild","(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addChild",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.addNewNext=function(in_title){checkArguments(arguments.length,1,"addNewNext","(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.addNewNext",
-{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addNext=function(in_bookmark){checkArguments(arguments.length,1,"addNext","(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addNext",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype.addNewPrev=function(in_title){checkArguments(arguments.length,1,"addNewPrev","(string)",[[in_title,"string"]]);return PDFNet.sendWithPromise("Bookmark.addNewPrev",
-{bm:this.id,in_title:in_title}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.Bookmark.prototype.addPrev=function(in_bookmark){checkArguments(arguments.length,1,"addPrev","(PDFNet.Bookmark)",[[in_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("Bookmark.addPrev",{bm:this.id,in_bookmark:in_bookmark.id})};PDFNet.Bookmark.prototype["delete"]=function(){return PDFNet.sendWithPromise("Bookmark.delete",{bm:this.id})};PDFNet.Bookmark.prototype.unlink=
-function(){return PDFNet.sendWithPromise("Bookmark.unlink",{bm:this.id})};PDFNet.Bookmark.prototype.getIndent=function(){return PDFNet.sendWithPromise("Bookmark.getIndent",{bm:this.id})};PDFNet.Bookmark.prototype.isOpen=function(){return PDFNet.sendWithPromise("Bookmark.isOpen",{bm:this.id})};PDFNet.Bookmark.prototype.setOpen=function(in_open){checkArguments(arguments.length,1,"setOpen","(boolean)",[[in_open,"boolean"]]);return PDFNet.sendWithPromise("Bookmark.setOpen",{bm:this.id,in_open:in_open})};
-PDFNet.Bookmark.prototype.getOpenCount=function(){return PDFNet.sendWithPromise("Bookmark.getOpenCount",{bm:this.id})};PDFNet.Bookmark.prototype.getTitle=function(){return PDFNet.sendWithPromise("Bookmark.getTitle",{bm:this.id})};PDFNet.Bookmark.prototype.getTitleObj=function(){return PDFNet.sendWithPromise("Bookmark.getTitleObj",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Bookmark.prototype.setTitle=function(title){checkArguments(arguments.length,1,"setTitle",
-"(string)",[[title,"string"]]);return PDFNet.sendWithPromise("Bookmark.setTitle",{bm:this.id,title:title})};PDFNet.Bookmark.prototype.getAction=function(){return PDFNet.sendWithPromise("Bookmark.getAction",{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.Bookmark.prototype.setAction=function(in_action){checkArguments(arguments.length,1,"setAction","(PDFNet.Action)",[[in_action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("Bookmark.setAction",{bm:this.id,
-in_action:in_action.id})};PDFNet.Bookmark.prototype.removeAction=function(){return PDFNet.sendWithPromise("Bookmark.removeAction",{bm:this.id})};PDFNet.Bookmark.prototype.getFlags=function(){return PDFNet.sendWithPromise("Bookmark.getFlags",{bm:this.id})};PDFNet.Bookmark.prototype.setFlags=function(in_flags){checkArguments(arguments.length,1,"setFlags","(number)",[[in_flags,"number"]]);return PDFNet.sendWithPromise("Bookmark.setFlags",{bm:this.id,in_flags:in_flags})};PDFNet.Bookmark.prototype.getColor=
-function(){return PDFNet.sendWithPromise("Bookmark.getColor",{bm:this.id})};PDFNet.Bookmark.prototype.setColor=function(in_r,in_g,in_b){"undefined"===typeof in_r&&(in_r=0);"undefined"===typeof in_g&&(in_g=0);"undefined"===typeof in_b&&(in_b=0);checkArguments(arguments.length,0,"setColor","(number, number, number)",[[in_r,"number"],[in_g,"number"],[in_b,"number"]]);return PDFNet.sendWithPromise("Bookmark.setColor",{bm:this.id,in_r:in_r,in_g:in_g,in_b:in_b})};PDFNet.Bookmark.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Bookmark.getSDFObj",
-{bm:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ColorPt.init=function(x,y,z,w){"undefined"===typeof x&&(x=0);"undefined"===typeof y&&(y=0);"undefined"===typeof z&&(z=0);"undefined"===typeof w&&(w=0);checkArguments(arguments.length,0,"init","(number, number, number, number)",[[x,"number"],[y,"number"],[z,"number"],[w,"number"]]);return PDFNet.sendWithPromise("colorPtInit",{x:x,y:y,z:z,w:w}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorPt.prototype.compare=
-function(right){checkArguments(arguments.length,1,"compare","(PDFNet.ColorPt)",[[right,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorPt.compare",{left:this.id,right:right.id})};PDFNet.ColorPt.prototype.set=function(x,y,z,w){"undefined"===typeof x&&(x=0);"undefined"===typeof y&&(y=0);"undefined"===typeof z&&(z=0);"undefined"===typeof w&&(w=0);checkArguments(arguments.length,0,"set","(number, number, number, number)",[[x,"number"],[y,"number"],[z,"number"],[w,"number"]]);
-return PDFNet.sendWithPromise("ColorPt.set",{cp:this.id,x:x,y:y,z:z,w:w})};PDFNet.ColorPt.prototype.setByIndex=function(colorant_index,colorant_value){checkArguments(arguments.length,2,"setByIndex","(number, number)",[[colorant_index,"number"],[colorant_value,"number"]]);return PDFNet.sendWithPromise("ColorPt.setByIndex",{cp:this.id,colorant_index:colorant_index,colorant_value:colorant_value})};PDFNet.ColorPt.prototype.get=function(colorant_index){checkArguments(arguments.length,1,"get","(number)",
-[[colorant_index,"number"]]);return PDFNet.sendWithPromise("ColorPt.get",{cp:this.id,colorant_index:colorant_index})};PDFNet.ColorPt.prototype.setColorantNum=function(num){checkArguments(arguments.length,1,"setColorantNum","(number)",[[num,"number"]]);return PDFNet.sendWithPromise("ColorPt.setColorantNum",{cp:this.id,num:num})};PDFNet.ColorSpace.createDeviceGray=function(){return PDFNet.sendWithPromise("colorSpaceCreateDeviceGray",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,
-id)})};PDFNet.ColorSpace.createDeviceRGB=function(){return PDFNet.sendWithPromise("colorSpaceCreateDeviceRGB",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createDeviceCMYK=function(){return PDFNet.sendWithPromise("colorSpaceCreateDeviceCMYK",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createPattern=function(){return PDFNet.sendWithPromise("colorSpaceCreatePattern",{}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,
-id)})};PDFNet.ColorSpace.create=function(color_space){"undefined"===typeof color_space&&(color_space=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[color_space,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceCreate",{color_space:color_space.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createICCFromFilter=function(doc,filter){checkArguments(arguments.length,2,"createICCFromFilter","(PDFNet.SDFDoc, PDFNet.Filter)",
-[[doc,"SDFDoc"],[filter,"Object",PDFNet.Filter,"Filter"]]);0!=filter.id&&avoidCleanup(filter.id);return PDFNet.sendWithPromise("colorSpaceCreateICCFromFilter",{doc:doc.id,no_own_filter:filter.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.createICCFromBuffer=function(doc,buf){checkArguments(arguments.length,2,"createICCFromBuffer","(PDFNet.SDFDoc, ArrayBuffer|TypedArray)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);
-return PDFNet.sendWithPromise("colorSpaceCreateICCFromBuffer",{doc:doc.id,buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.getComponentNumFromObj=function(cs_type,cs_obj){checkArguments(arguments.length,2,"getComponentNumFromObj","(number, PDFNet.Obj)",[[cs_type,"number"],[cs_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceGetComponentNumFromObj",{cs_type:cs_type,cs_obj:cs_obj.id})};PDFNet.ColorSpace.getTypeFromObj=
-function(cs_obj){checkArguments(arguments.length,1,"getTypeFromObj","(PDFNet.Obj)",[[cs_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("colorSpaceGetTypeFromObj",{cs_obj:cs_obj.id})};PDFNet.ColorSpace.prototype.getType=function(){return PDFNet.sendWithPromise("ColorSpace.getType",{cs:this.id})};PDFNet.ColorSpace.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("ColorSpace.getSDFObj",{cs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ColorSpace.prototype.getComponentNum=
-function(){return PDFNet.sendWithPromise("ColorSpace.getComponentNum",{cs:this.id})};PDFNet.ColorSpace.prototype.initColor=function(){return PDFNet.sendWithPromise("ColorSpace.initColor",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.initComponentRanges=function(num_comps){checkArguments(arguments.length,1,"initComponentRanges","(number)",[[num_comps,"number"]]);return PDFNet.sendWithPromise("ColorSpace.initComponentRanges",{cs:this.id,
-num_comps:num_comps})};PDFNet.ColorSpace.prototype.convert2Gray=function(in_color){checkArguments(arguments.length,1,"convert2Gray","(PDFNet.ColorPt)",[[in_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2Gray",{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.convert2RGB=function(in_color){checkArguments(arguments.length,1,"convert2RGB","(PDFNet.ColorPt)",[[in_color,"Object",
-PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2RGB",{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.convert2CMYK=function(in_color){checkArguments(arguments.length,1,"convert2CMYK","(PDFNet.ColorPt)",[[in_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("ColorSpace.convert2CMYK",{cs:this.id,in_color:in_color.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.ColorSpace.prototype.getAlternateColorSpace=function(){return PDFNet.sendWithPromise("ColorSpace.getAlternateColorSpace",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.prototype.getBaseColorSpace=function(){return PDFNet.sendWithPromise("ColorSpace.getBaseColorSpace",{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.ColorSpace.prototype.getHighVal=function(){return PDFNet.sendWithPromise("ColorSpace.getHighVal",
-{cs:this.id})};PDFNet.ColorSpace.prototype.getLookupTable=function(){return PDFNet.sendWithPromise("ColorSpace.getLookupTable",{cs:this.id})};PDFNet.ColorSpace.prototype.getBaseColor=function(color_idx){checkArguments(arguments.length,1,"getBaseColor","(number)",[[color_idx,"number"]]);return PDFNet.sendWithPromise("ColorSpace.getBaseColor",{cs:this.id,color_idx:color_idx}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.ColorSpace.prototype.getTintFunction=function(){return PDFNet.sendWithPromise("ColorSpace.getTintFunction",
-{cs:this.id}).then(function(id){return createDestroyableObj(PDFNet.Function,id)})};PDFNet.ColorSpace.prototype.isAll=function(){return PDFNet.sendWithPromise("ColorSpace.isAll",{cs:this.id})};PDFNet.ColorSpace.prototype.isNone=function(){return PDFNet.sendWithPromise("ColorSpace.isNone",{cs:this.id})};PDFNet.ContentReplacer.create=function(){return PDFNet.sendWithPromise("contentReplacerCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ContentReplacer,id)})};PDFNet.ContentReplacer.prototype.addImage=
-function(target_region,replacement_image){checkArguments(arguments.length,2,"addImage","(PDFNet.Rect, PDFNet.Obj)",[[target_region,"Structure",PDFNet.Rect,"Rect"],[replacement_image,"Object",PDFNet.Obj,"Obj"]]);checkParamsYieldFunction("addImage",[[target_region,0]]);return PDFNet.sendWithPromise("ContentReplacer.addImage",{cr:this.id,target_region:target_region,replacement_image:replacement_image.id})};PDFNet.ContentReplacer.prototype.addText=function(target_region,replacement_text){checkArguments(arguments.length,
-2,"addText","(PDFNet.Rect, string)",[[target_region,"Structure",PDFNet.Rect,"Rect"],[replacement_text,"string"]]);checkParamsYieldFunction("addText",[[target_region,0]]);return PDFNet.sendWithPromise("ContentReplacer.addText",{cr:this.id,target_region:target_region,replacement_text:replacement_text})};PDFNet.ContentReplacer.prototype.addString=function(template_text,replacement_text){checkArguments(arguments.length,2,"addString","(string, string)",[[template_text,"string"],[replacement_text,"string"]]);
-return PDFNet.sendWithPromise("ContentReplacer.addString",{cr:this.id,template_text:template_text,replacement_text:replacement_text})};PDFNet.ContentReplacer.prototype.setMatchStrings=function(start_str,end_str){checkArguments(arguments.length,2,"setMatchStrings","(string, string)",[[start_str,"string"],[end_str,"string"]]);return PDFNet.sendWithPromise("ContentReplacer.setMatchStrings",{cr:this.id,start_str:start_str,end_str:end_str})};PDFNet.ContentReplacer.prototype.process=function(page){checkArguments(arguments.length,
-1,"process","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("ContentReplacer.process",{cr:this.id,page:page.id})};PDFNet.Reflow.prototype.getHtml=function(){return PDFNet.sendWithPromise("Reflow.getHtml",{self:this.id})};PDFNet.Reflow.prototype.getAnnot=function(in_id){checkArguments(arguments.length,1,"getAnnot","(string)",[[in_id,"string"]]);return PDFNet.sendWithPromise("Reflow.getAnnot",{self:this.id,in_id:in_id})};PDFNet.Reflow.prototype.setAnnot=function(in_json){checkArguments(arguments.length,
-1,"setAnnot","(string)",[[in_json,"string"]]);return PDFNet.sendWithPromise("Reflow.setAnnot",{self:this.id,in_json:in_json})};PDFNet.Reflow.prototype.setIncludeImages=function(include){checkArguments(arguments.length,1,"setIncludeImages","(boolean)",[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setIncludeImages",{self:this.id,include:include})};PDFNet.Reflow.prototype.setHTMLOutputTextMarkup=function(include){checkArguments(arguments.length,1,"setHTMLOutputTextMarkup","(boolean)",
-[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHTMLOutputTextMarkup",{self:this.id,include:include})};PDFNet.Reflow.prototype.setMessageWhenNoReflowContent=function(content){checkArguments(arguments.length,1,"setMessageWhenNoReflowContent","(string)",[[content,"string"]]);return PDFNet.sendWithPromise("Reflow.setMessageWhenNoReflowContent",{self:this.id,content:content})};PDFNet.Reflow.prototype.setMessageWhenReflowFailed=function(content){checkArguments(arguments.length,1,"setMessageWhenReflowFailed",
-"(string)",[[content,"string"]]);return PDFNet.sendWithPromise("Reflow.setMessageWhenReflowFailed",{self:this.id,content:content})};PDFNet.Reflow.prototype.setHideBackgroundImages=function(hide_background_images){checkArguments(arguments.length,1,"setHideBackgroundImages","(boolean)",[[hide_background_images,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHideBackgroundImages",{self:this.id,hide_background_images:hide_background_images})};PDFNet.Reflow.prototype.setHideImagesUnderText=function(hide_images_under_text){checkArguments(arguments.length,
-1,"setHideImagesUnderText","(boolean)",[[hide_images_under_text,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHideImagesUnderText",{self:this.id,hide_images_under_text:hide_images_under_text})};PDFNet.Reflow.prototype.setHideImagesUnderInvisibleText=function(hide_images_under_invisible_text){checkArguments(arguments.length,1,"setHideImagesUnderInvisibleText","(boolean)",[[hide_images_under_invisible_text,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setHideImagesUnderInvisibleText",{self:this.id,
-hide_images_under_invisible_text:hide_images_under_invisible_text})};PDFNet.Reflow.prototype.setDoNotReflowTextOverImages=function(do_not_reflow_text_over_images){checkArguments(arguments.length,1,"setDoNotReflowTextOverImages","(boolean)",[[do_not_reflow_text_over_images,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setDoNotReflowTextOverImages",{self:this.id,do_not_reflow_text_over_images:do_not_reflow_text_over_images})};PDFNet.Reflow.prototype.setFontOverrideName=function(font_family){checkArguments(arguments.length,
-1,"setFontOverrideName","(string)",[[font_family,"string"]]);return PDFNet.sendWithPromise("Reflow.setFontOverrideName",{self:this.id,font_family:font_family})};PDFNet.Reflow.prototype.setCustomStyles=function(styles){checkArguments(arguments.length,1,"setCustomStyles","(string)",[[styles,"string"]]);return PDFNet.sendWithPromise("Reflow.setCustomStyles",{self:this.id,styles:styles})};PDFNet.Reflow.prototype.setIncludeBBoxForRecognizedZones=function(include){checkArguments(arguments.length,1,"setIncludeBBoxForRecognizedZones",
-"(boolean)",[[include,"boolean"]]);return PDFNet.sendWithPromise("Reflow.setIncludeBBoxForRecognizedZones",{self:this.id,include:include})};PDFNet.Convert.fromXpsMem=function(in_pdfdoc,buf){checkArguments(arguments.length,2,"fromXpsMem","(PDFNet.PDFDoc, ArrayBuffer|TypedArray)",[[in_pdfdoc,"PDFDoc"],[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("convertFromXpsMem",{in_pdfdoc:in_pdfdoc.id,buf:bufArrayBuffer})};PDFNet.Convert.createReflow=function(in_page,
-json_zones){checkArguments(arguments.length,2,"createReflow","(PDFNet.Page, string)",[[in_page,"Object",PDFNet.Page,"Page"],[json_zones,"string"]]);return PDFNet.sendWithPromise("convertCreateReflow",{in_page:in_page.id,json_zones:json_zones}).then(function(id){return createDestroyableObj(PDFNet.Reflow,id)})};PDFNet.Convert.fromTextWithBuffer=function(in_pdfdoc,fileData,options){"undefined"===typeof options&&(options=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fromTextWithBuffer","(PDFNet.PDFDoc, ArrayBuffer|TypedArray, PDFNet.Obj)",
-[[in_pdfdoc,"PDFDoc"],[fileData,"ArrayBuffer"],[options,"Object",PDFNet.Obj,"Obj"]]);fileData=getArrayBuffer(fileData,!1);return PDFNet.sendWithPromise("convertFromTextWithBuffer",{in_pdfdoc:in_pdfdoc.id,in_filename:fileData,options:options.id})};PDFNet.Convert.toXpsBuffer=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,1,"toXpsBuffer","(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,
-"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XPSOutputOptions"]]);if("PDFNet.Convert.XPSOutputOptions"===options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToXpsBuffer",{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return new Uint8Array(id)})})};
-PDFNet.Convert.fileToXpsWithBuffer=function(fileData,fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fileToXpsWithBuffer","(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XPSOutputOptions"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData=getArrayBuffer(fileData,!1);if("PDFNet.Convert.XPSOutputOptions"===
-options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToXpsWithBuffer",{in_inputFilename:fileData,in_inputFilename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.fileToXodWithBuffer=function(fileData,
-fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fileToXodWithBuffer","(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData=getArrayBuffer(fileData,!1);if("PDFNet.Convert.XODOutputOptions"===options$jscomp$0.name){var optsCopy=
-options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToXodWithBuffer",{in_filename:fileData,in_filename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.toXodBuffer=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&
-(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,1,"toXodBuffer","(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.XODOutputOptions"]]);if("PDFNet.Convert.XODOutputOptions"===options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToXodBuffer",
-{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.ConversionMonitor.prototype.next=function(){return PDFNet.sendWithPromise("ConversionMonitor.next",{conversionMonitor:this.id})};PDFNet.ConversionMonitor.prototype.ready=function(){return PDFNet.sendWithPromise("ConversionMonitor.ready",{conversionMonitor:this.id})};PDFNet.ConversionMonitor.prototype.progress=function(){return PDFNet.sendWithPromise("ConversionMonitor.progress",{conversionMonitor:this.id})};
-PDFNet.ConversionMonitor.prototype.filter=function(){return PDFNet.sendWithPromise("ConversionMonitor.filter",{conversionMonitor:this.id}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.Convert.officeToPdfWithFilter=function(in_pdfdoc,in_stream,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"officeToPdfWithFilter","(PDFNet.PDFDoc, PDFNet.Filter, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[in_stream,
-"Object",PDFNet.Filter,"Filter"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.ConversionOptions"]]);0!=in_stream.id&&avoidCleanup(in_stream.id);if("PDFNet.Convert.ConversionOptions"===options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertOfficeToPdfWithFilter",
-{in_pdfdoc:in_pdfdoc.id,no_own_in_stream:in_stream.id,options:options.id})})};PDFNet.Convert.toPdfWithBuffer=function(in_pdfdoc,fileData,fileType){checkArguments(arguments.length,3,"toPdfWithBuffer","(PDFNet.PDFDoc, ArrayBuffer|TypedArray, string)",[[in_pdfdoc,"PDFDoc"],[fileData,"ArrayBuffer"],[fileType,"string"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData=getArrayBuffer(fileData,!1);return PDFNet.sendWithPromise("convertToPdfWithBuffer",{in_pdfdoc:in_pdfdoc.id,in_filename:fileData,
-in_filename_extension:fileType})};PDFNet.Convert.fromTiff=function(in_pdfdoc,in_data){checkArguments(arguments.length,2,"fromTiff","(PDFNet.PDFDoc, PDFNet.Filter)",[[in_pdfdoc,"PDFDoc"],[in_data,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("convertFromTiff",{in_pdfdoc:in_pdfdoc.id,in_data:in_data.id})};PDFNet.Convert.pageToHtml=function(page){checkArguments(arguments.length,1,"pageToHtml","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("convertPageToHtml",
-{page:page.id})};PDFNet.Convert.pageToHtmlZoned=function(page,json_zones){checkArguments(arguments.length,2,"pageToHtmlZoned","(PDFNet.Page, string)",[[page,"Object",PDFNet.Page,"Page"],[json_zones,"string"]]);return PDFNet.sendWithPromise("convertPageToHtmlZoned",{page:page.id,json_zones:json_zones})};PDFNet.Convert.fileToTiffWithBuffer=function(fileData,fileType,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fileToTiffWithBuffer",
-"(ArrayBuffer|TypedArray, string, PDFNet.Obj)",[[fileData,"ArrayBuffer"],[fileType,"string"],[options$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);fileType.startsWith(".")||(fileType="."+fileType);fileData=getArrayBuffer(fileData,!1);if("PDFNet.Convert.TiffOutputOptions"===options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);
-return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertFileToTiffWithBuffer",{in_filename:fileData,in_filename_extension:fileType,options:options.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.Convert.toTiffBuffer=function(in_pdfdoc,options$jscomp$0){"undefined"===typeof options$jscomp$0&&(options$jscomp$0=new PDFNet.Obj("0"));checkArguments(arguments.length,1,"toTiffBuffer","(PDFNet.PDFDoc, PDFNet.Obj)",[[in_pdfdoc,"PDFDoc"],[options$jscomp$0,"OptionObject",
-PDFNet.Obj,"Obj","PDFNet.Convert.TiffOutputOptions"]]);if("PDFNet.Convert.TiffOutputOptions"===options$jscomp$0.name){var optsCopy=options$jscomp$0;options$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else options$jscomp$0=Promise.resolve(options$jscomp$0);return options$jscomp$0.then(function(options){return PDFNet.sendWithPromise("convertToTiffBuffer",{in_pdfdoc:in_pdfdoc.id,options:options.id}).then(function(id){return new Uint8Array(id)})})};
-PDFNet.Date.init=function(year,month,day,hour,minute,second){checkArguments(arguments.length,6,"init","(number, number, number, number, number, number)",[[year,"number"],[month,"number"],[day,"number"],[hour,"number"],[minute,"number"],[second,"number"]]);return PDFNet.sendWithPromise("dateInit",{year:year,month:month,day:day,hour:hour,minute:minute,second:second}).then(function(id){return new PDFNet.Date(id)})};PDFNet.Date.prototype.isValid=function(){checkThisYieldFunction("isValid",this.yieldFunction);
-return PDFNet.sendWithPromise("Date.isValid",{date:this})};PDFNet.Date.prototype.attach=function(d){checkArguments(arguments.length,1,"attach","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("attach",this.yieldFunction);var me=this;this.yieldFunction="Date.attach";return PDFNet.sendWithPromise("Date.attach",{date:this,d:d.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Date.prototype.update=function(d){"undefined"===typeof d&&(d=new PDFNet.Obj("__null"));
-checkArguments(arguments.length,0,"update","(PDFNet.Obj)",[[d,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("update",this.yieldFunction);var me=this;this.yieldFunction="Date.update";return PDFNet.sendWithPromise("Date.update",{date:this,d:d.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id.date,me);return id.result})};PDFNet.Date.prototype.setCurrentTime=function(){checkThisYieldFunction("setCurrentTime",this.yieldFunction);var me=this;this.yieldFunction="Date.setCurrentTime";return PDFNet.sendWithPromise("Date.setCurrentTime",
-{date:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Destination.createXYZ=function(page,left,top,zoom){checkArguments(arguments.length,4,"createXYZ","(PDFNet.Page, number, number, number)",[[page,"Object",PDFNet.Page,"Page"],[left,"number"],[top,"number"],[zoom,"number"]]);return PDFNet.sendWithPromise("destinationCreateXYZ",{page:page.id,left:left,top:top,zoom:zoom}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFit=function(page){checkArguments(arguments.length,
-1,"createFit","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("destinationCreateFit",{page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitH=function(page,top){checkArguments(arguments.length,2,"createFitH","(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[top,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitH",{page:page.id,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination,
-id)})};PDFNet.Destination.createFitV=function(page,left){checkArguments(arguments.length,2,"createFitV","(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[left,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitV",{page:page.id,left:left}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitR=function(page,left,bottom,right,top){checkArguments(arguments.length,5,"createFitR","(PDFNet.Page, number, number, number, number)",[[page,"Object",
-PDFNet.Page,"Page"],[left,"number"],[bottom,"number"],[right,"number"],[top,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitR",{page:page.id,left:left,bottom:bottom,right:right,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitB=function(page){checkArguments(arguments.length,1,"createFitB","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("destinationCreateFitB",{page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,
-id)})};PDFNet.Destination.createFitBH=function(page,top){checkArguments(arguments.length,2,"createFitBH","(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[top,"number"]]);return PDFNet.sendWithPromise("destinationCreateFitBH",{page:page.id,top:top}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.createFitBV=function(page,left){checkArguments(arguments.length,2,"createFitBV","(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[left,"number"]]);
-return PDFNet.sendWithPromise("destinationCreateFitBV",{page:page.id,left:left}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.create=function(dest){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[dest,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("destinationCreate",{dest:dest.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.prototype.copy=function(){return PDFNet.sendWithPromise("Destination.copy",
-{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.Destination,id)})};PDFNet.Destination.prototype.isValid=function(){return PDFNet.sendWithPromise("Destination.isValid",{dest:this.id})};PDFNet.Destination.prototype.getFitType=function(){return PDFNet.sendWithPromise("Destination.getFitType",{dest:this.id})};PDFNet.Destination.prototype.getPage=function(){return PDFNet.sendWithPromise("Destination.getPage",{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.Destination.prototype.setPage=
-function(page){checkArguments(arguments.length,1,"setPage","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Destination.setPage",{dest:this.id,page:page.id})};PDFNet.Destination.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Destination.getSDFObj",{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Destination.prototype.getExplicitDestObj=function(){return PDFNet.sendWithPromise("Destination.getExplicitDestObj",{dest:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.GState.prototype.getTransform=function(){return PDFNet.sendWithPromise("GState.getTransform",{gs:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.GState.prototype.getStrokeColorSpace=function(){return PDFNet.sendWithPromise("GState.getStrokeColorSpace",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.GState.prototype.getFillColorSpace=function(){return PDFNet.sendWithPromise("GState.getFillColorSpace",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,
-id)})};PDFNet.GState.prototype.getStrokeColor=function(){return PDFNet.sendWithPromise("GState.getStrokeColor",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.GState.prototype.getStrokePattern=function(){return PDFNet.sendWithPromise("GState.getStrokePattern",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.GState.prototype.getFillColor=function(){return PDFNet.sendWithPromise("GState.getFillColor",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.GState.prototype.getFillPattern=function(){return PDFNet.sendWithPromise("GState.getFillPattern",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.GState.prototype.getFlatness=function(){return PDFNet.sendWithPromise("GState.getFlatness",{gs:this.id})};PDFNet.GState.prototype.getLineCap=function(){return PDFNet.sendWithPromise("GState.getLineCap",{gs:this.id})};PDFNet.GState.prototype.getLineJoin=function(){return PDFNet.sendWithPromise("GState.getLineJoin",
-{gs:this.id})};PDFNet.GState.prototype.getLineWidth=function(){return PDFNet.sendWithPromise("GState.getLineWidth",{gs:this.id})};PDFNet.GState.prototype.getMiterLimit=function(){return PDFNet.sendWithPromise("GState.getMiterLimit",{gs:this.id})};PDFNet.GState.prototype.getPhase=function(){return PDFNet.sendWithPromise("GState.getPhase",{gs:this.id})};PDFNet.GState.prototype.getCharSpacing=function(){return PDFNet.sendWithPromise("GState.getCharSpacing",{gs:this.id})};PDFNet.GState.prototype.getWordSpacing=
-function(){return PDFNet.sendWithPromise("GState.getWordSpacing",{gs:this.id})};PDFNet.GState.prototype.getHorizontalScale=function(){return PDFNet.sendWithPromise("GState.getHorizontalScale",{gs:this.id})};PDFNet.GState.prototype.getLeading=function(){return PDFNet.sendWithPromise("GState.getLeading",{gs:this.id})};PDFNet.GState.prototype.getFont=function(){return PDFNet.sendWithPromise("GState.getFont",{gs:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.GState.prototype.getFontSize=
-function(){return PDFNet.sendWithPromise("GState.getFontSize",{gs:this.id})};PDFNet.GState.prototype.getTextRenderMode=function(){return PDFNet.sendWithPromise("GState.getTextRenderMode",{gs:this.id})};PDFNet.GState.prototype.getTextRise=function(){return PDFNet.sendWithPromise("GState.getTextRise",{gs:this.id})};PDFNet.GState.prototype.isTextKnockout=function(){return PDFNet.sendWithPromise("GState.isTextKnockout",{gs:this.id})};PDFNet.GState.prototype.getRenderingIntent=function(){return PDFNet.sendWithPromise("GState.getRenderingIntent",
-{gs:this.id})};PDFNet.GState.getRenderingIntentType=function(name){checkArguments(arguments.length,1,"getRenderingIntentType","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("gStateGetRenderingIntentType",{name:name})};PDFNet.GState.prototype.getBlendMode=function(){return PDFNet.sendWithPromise("GState.getBlendMode",{gs:this.id})};PDFNet.GState.prototype.getFillOpacity=function(){return PDFNet.sendWithPromise("GState.getFillOpacity",{gs:this.id})};PDFNet.GState.prototype.getStrokeOpacity=
-function(){return PDFNet.sendWithPromise("GState.getStrokeOpacity",{gs:this.id})};PDFNet.GState.prototype.getAISFlag=function(){return PDFNet.sendWithPromise("GState.getAISFlag",{gs:this.id})};PDFNet.GState.prototype.getSoftMask=function(){return PDFNet.sendWithPromise("GState.getSoftMask",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getSoftMaskTransform=function(){return PDFNet.sendWithPromise("GState.getSoftMaskTransform",{gs:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};
-PDFNet.GState.prototype.getStrokeOverprint=function(){return PDFNet.sendWithPromise("GState.getStrokeOverprint",{gs:this.id})};PDFNet.GState.prototype.getFillOverprint=function(){return PDFNet.sendWithPromise("GState.getFillOverprint",{gs:this.id})};PDFNet.GState.prototype.getOverprintMode=function(){return PDFNet.sendWithPromise("GState.getOverprintMode",{gs:this.id})};PDFNet.GState.prototype.getAutoStrokeAdjust=function(){return PDFNet.sendWithPromise("GState.getAutoStrokeAdjust",{gs:this.id})};
-PDFNet.GState.prototype.getSmoothnessTolerance=function(){return PDFNet.sendWithPromise("GState.getSmoothnessTolerance",{gs:this.id})};PDFNet.GState.prototype.getTransferFunct=function(){return PDFNet.sendWithPromise("GState.getTransferFunct",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getBlackGenFunct=function(){return PDFNet.sendWithPromise("GState.getBlackGenFunct",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getUCRFunct=
-function(){return PDFNet.sendWithPromise("GState.getUCRFunct",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.getHalftone=function(){return PDFNet.sendWithPromise("GState.getHalftone",{gs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.GState.prototype.setTransformMatrix=function(mtx){checkArguments(arguments.length,1,"setTransformMatrix","(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("setTransformMatrix",
-[[mtx,0]]);return PDFNet.sendWithPromise("GState.setTransformMatrix",{gs:this.id,mtx:mtx})};PDFNet.GState.prototype.setTransform=function(a,b,c,d,h,v){checkArguments(arguments.length,6,"setTransform","(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);return PDFNet.sendWithPromise("GState.setTransform",{gs:this.id,a:a,b:b,c:c,d:d,h:h,v:v})};PDFNet.GState.prototype.concatMatrix=function(mtx){checkArguments(arguments.length,
-1,"concatMatrix","(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("concatMatrix",[[mtx,0]]);return PDFNet.sendWithPromise("GState.concatMatrix",{gs:this.id,mtx:mtx})};PDFNet.GState.prototype.concat=function(a,b,c,d,h,v){checkArguments(arguments.length,6,"concat","(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);return PDFNet.sendWithPromise("GState.concat",{gs:this.id,a:a,
-b:b,c:c,d:d,h:h,v:v})};PDFNet.GState.prototype.setStrokeColorSpace=function(cs){checkArguments(arguments.length,1,"setStrokeColorSpace","(PDFNet.ColorSpace)",[[cs,"Object",PDFNet.ColorSpace,"ColorSpace"]]);return PDFNet.sendWithPromise("GState.setStrokeColorSpace",{gs:this.id,cs:cs.id})};PDFNet.GState.prototype.setFillColorSpace=function(cs){checkArguments(arguments.length,1,"setFillColorSpace","(PDFNet.ColorSpace)",[[cs,"Object",PDFNet.ColorSpace,"ColorSpace"]]);return PDFNet.sendWithPromise("GState.setFillColorSpace",
-{gs:this.id,cs:cs.id})};PDFNet.GState.prototype.setStrokeColorWithColorPt=function(c){checkArguments(arguments.length,1,"setStrokeColorWithColorPt","(PDFNet.ColorPt)",[[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setStrokeColorWithColorPt",{gs:this.id,c:c.id})};PDFNet.GState.prototype.setStrokeColorWithPattern=function(pattern){checkArguments(arguments.length,1,"setStrokeColorWithPattern","(PDFNet.PatternColor)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"]]);
-return PDFNet.sendWithPromise("GState.setStrokeColorWithPattern",{gs:this.id,pattern:pattern.id})};PDFNet.GState.prototype.setStrokeColor=function(pattern,c){checkArguments(arguments.length,2,"setStrokeColor","(PDFNet.PatternColor, PDFNet.ColorPt)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"],[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setStrokeColor",{gs:this.id,pattern:pattern.id,c:c.id})};PDFNet.GState.prototype.setFillColorWithColorPt=function(c){checkArguments(arguments.length,
-1,"setFillColorWithColorPt","(PDFNet.ColorPt)",[[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setFillColorWithColorPt",{gs:this.id,c:c.id})};PDFNet.GState.prototype.setFillColorWithPattern=function(pattern){checkArguments(arguments.length,1,"setFillColorWithPattern","(PDFNet.PatternColor)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"]]);return PDFNet.sendWithPromise("GState.setFillColorWithPattern",{gs:this.id,pattern:pattern.id})};PDFNet.GState.prototype.setFillColor=
-function(pattern,c){checkArguments(arguments.length,2,"setFillColor","(PDFNet.PatternColor, PDFNet.ColorPt)",[[pattern,"Object",PDFNet.PatternColor,"PatternColor"],[c,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("GState.setFillColor",{gs:this.id,pattern:pattern.id,c:c.id})};PDFNet.GState.prototype.setFlatness=function(flatness){checkArguments(arguments.length,1,"setFlatness","(number)",[[flatness,"number"]]);return PDFNet.sendWithPromise("GState.setFlatness",{gs:this.id,flatness:flatness})};
-PDFNet.GState.prototype.setLineCap=function(cap){checkArguments(arguments.length,1,"setLineCap","(number)",[[cap,"number"]]);return PDFNet.sendWithPromise("GState.setLineCap",{gs:this.id,cap:cap})};PDFNet.GState.prototype.setLineJoin=function(join){checkArguments(arguments.length,1,"setLineJoin","(number)",[[join,"number"]]);return PDFNet.sendWithPromise("GState.setLineJoin",{gs:this.id,join:join})};PDFNet.GState.prototype.setLineWidth=function(width){checkArguments(arguments.length,1,"setLineWidth",
-"(number)",[[width,"number"]]);return PDFNet.sendWithPromise("GState.setLineWidth",{gs:this.id,width:width})};PDFNet.GState.prototype.setMiterLimit=function(miter_limit){checkArguments(arguments.length,1,"setMiterLimit","(number)",[[miter_limit,"number"]]);return PDFNet.sendWithPromise("GState.setMiterLimit",{gs:this.id,miter_limit:miter_limit})};PDFNet.GState.prototype.setDashPattern=function(dash_array,phase){checkArguments(arguments.length,2,"setDashPattern","(Array<number>, number)",[[dash_array,
-"Array"],[phase,"number"]]);return PDFNet.sendWithPromise("GState.setDashPattern",{gs:this.id,dash_array:dash_array,phase:phase})};PDFNet.GState.prototype.setCharSpacing=function(char_spacing){checkArguments(arguments.length,1,"setCharSpacing","(number)",[[char_spacing,"number"]]);return PDFNet.sendWithPromise("GState.setCharSpacing",{gs:this.id,char_spacing:char_spacing})};PDFNet.GState.prototype.setWordSpacing=function(word_spacing){checkArguments(arguments.length,1,"setWordSpacing","(number)",
-[[word_spacing,"number"]]);return PDFNet.sendWithPromise("GState.setWordSpacing",{gs:this.id,word_spacing:word_spacing})};PDFNet.GState.prototype.setHorizontalScale=function(hscale){checkArguments(arguments.length,1,"setHorizontalScale","(number)",[[hscale,"number"]]);return PDFNet.sendWithPromise("GState.setHorizontalScale",{gs:this.id,hscale:hscale})};PDFNet.GState.prototype.setLeading=function(leading){checkArguments(arguments.length,1,"setLeading","(number)",[[leading,"number"]]);return PDFNet.sendWithPromise("GState.setLeading",
-{gs:this.id,leading:leading})};PDFNet.GState.prototype.setFont=function(font,font_sz){checkArguments(arguments.length,2,"setFont","(PDFNet.Font, number)",[[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);return PDFNet.sendWithPromise("GState.setFont",{gs:this.id,font:font.id,font_sz:font_sz})};PDFNet.GState.prototype.setTextRenderMode=function(rmode){checkArguments(arguments.length,1,"setTextRenderMode","(number)",[[rmode,"number"]]);return PDFNet.sendWithPromise("GState.setTextRenderMode",
-{gs:this.id,rmode:rmode})};PDFNet.GState.prototype.setTextRise=function(rise){checkArguments(arguments.length,1,"setTextRise","(number)",[[rise,"number"]]);return PDFNet.sendWithPromise("GState.setTextRise",{gs:this.id,rise:rise})};PDFNet.GState.prototype.setTextKnockout=function(knockout){checkArguments(arguments.length,1,"setTextKnockout","(boolean)",[[knockout,"boolean"]]);return PDFNet.sendWithPromise("GState.setTextKnockout",{gs:this.id,knockout:knockout})};PDFNet.GState.prototype.setRenderingIntent=
-function(intent){checkArguments(arguments.length,1,"setRenderingIntent","(number)",[[intent,"number"]]);return PDFNet.sendWithPromise("GState.setRenderingIntent",{gs:this.id,intent:intent})};PDFNet.GState.prototype.setBlendMode=function(BM){checkArguments(arguments.length,1,"setBlendMode","(number)",[[BM,"number"]]);return PDFNet.sendWithPromise("GState.setBlendMode",{gs:this.id,BM:BM})};PDFNet.GState.prototype.setFillOpacity=function(ca){checkArguments(arguments.length,1,"setFillOpacity","(number)",
-[[ca,"number"]]);return PDFNet.sendWithPromise("GState.setFillOpacity",{gs:this.id,ca:ca})};PDFNet.GState.prototype.setStrokeOpacity=function(ca){checkArguments(arguments.length,1,"setStrokeOpacity","(number)",[[ca,"number"]]);return PDFNet.sendWithPromise("GState.setStrokeOpacity",{gs:this.id,ca:ca})};PDFNet.GState.prototype.setAISFlag=function(AIS){checkArguments(arguments.length,1,"setAISFlag","(boolean)",[[AIS,"boolean"]]);return PDFNet.sendWithPromise("GState.setAISFlag",{gs:this.id,AIS:AIS})};
-PDFNet.GState.prototype.setSoftMask=function(SM){checkArguments(arguments.length,1,"setSoftMask","(PDFNet.Obj)",[[SM,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setSoftMask",{gs:this.id,SM:SM.id})};PDFNet.GState.prototype.setStrokeOverprint=function(OP){checkArguments(arguments.length,1,"setStrokeOverprint","(boolean)",[[OP,"boolean"]]);return PDFNet.sendWithPromise("GState.setStrokeOverprint",{gs:this.id,OP:OP})};PDFNet.GState.prototype.setFillOverprint=function(op){checkArguments(arguments.length,
-1,"setFillOverprint","(boolean)",[[op,"boolean"]]);return PDFNet.sendWithPromise("GState.setFillOverprint",{gs:this.id,op:op})};PDFNet.GState.prototype.setOverprintMode=function(OPM){checkArguments(arguments.length,1,"setOverprintMode","(number)",[[OPM,"number"]]);return PDFNet.sendWithPromise("GState.setOverprintMode",{gs:this.id,OPM:OPM})};PDFNet.GState.prototype.setAutoStrokeAdjust=function(SA){checkArguments(arguments.length,1,"setAutoStrokeAdjust","(boolean)",[[SA,"boolean"]]);return PDFNet.sendWithPromise("GState.setAutoStrokeAdjust",
-{gs:this.id,SA:SA})};PDFNet.GState.prototype.setSmoothnessTolerance=function(SM){checkArguments(arguments.length,1,"setSmoothnessTolerance","(number)",[[SM,"number"]]);return PDFNet.sendWithPromise("GState.setSmoothnessTolerance",{gs:this.id,SM:SM})};PDFNet.GState.prototype.setBlackGenFunct=function(BG){checkArguments(arguments.length,1,"setBlackGenFunct","(PDFNet.Obj)",[[BG,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setBlackGenFunct",{gs:this.id,BG:BG.id})};PDFNet.GState.prototype.setUCRFunct=
-function(UCR){checkArguments(arguments.length,1,"setUCRFunct","(PDFNet.Obj)",[[UCR,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setUCRFunct",{gs:this.id,UCR:UCR.id})};PDFNet.GState.prototype.setTransferFunct=function(TR){checkArguments(arguments.length,1,"setTransferFunct","(PDFNet.Obj)",[[TR,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setTransferFunct",{gs:this.id,TR:TR.id})};PDFNet.GState.prototype.setHalftone=function(HT){checkArguments(arguments.length,
-1,"setHalftone","(PDFNet.Obj)",[[HT,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("GState.setHalftone",{gs:this.id,HT:HT.id})};PDFNet.Element.prototype.getType=function(){return PDFNet.sendWithPromise("Element.getType",{e:this.id})};PDFNet.Element.prototype.getGState=function(){return PDFNet.sendWithPromise("Element.getGState",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.GState,id)})};PDFNet.Element.prototype.getCTM=function(){return PDFNet.sendWithPromise("Element.getCTM",
-{e:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Element.prototype.getParentStructElement=function(){return PDFNet.sendWithPromise("Element.getParentStructElement",{e:this.id}).then(function(id){return new PDFNet.SElement(id)})};PDFNet.Element.prototype.getStructMCID=function(){return PDFNet.sendWithPromise("Element.getStructMCID",{e:this.id})};PDFNet.Element.prototype.isOCVisible=function(){return PDFNet.sendWithPromise("Element.isOCVisible",{e:this.id})};PDFNet.Element.prototype.isClippingPath=
-function(){return PDFNet.sendWithPromise("Element.isClippingPath",{e:this.id})};PDFNet.Element.prototype.isStroked=function(){return PDFNet.sendWithPromise("Element.isStroked",{e:this.id})};PDFNet.Element.prototype.isFilled=function(){return PDFNet.sendWithPromise("Element.isFilled",{e:this.id})};PDFNet.Element.prototype.isWindingFill=function(){return PDFNet.sendWithPromise("Element.isWindingFill",{e:this.id})};PDFNet.Element.prototype.isClipWindingFill=function(){return PDFNet.sendWithPromise("Element.isClipWindingFill",
-{e:this.id})};PDFNet.Element.prototype.setPathClip=function(clip){checkArguments(arguments.length,1,"setPathClip","(boolean)",[[clip,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathClip",{e:this.id,clip:clip})};PDFNet.Element.prototype.setPathStroke=function(stroke){checkArguments(arguments.length,1,"setPathStroke","(boolean)",[[stroke,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathStroke",{e:this.id,stroke:stroke})};PDFNet.Element.prototype.setPathFill=function(fill){checkArguments(arguments.length,
-1,"setPathFill","(boolean)",[[fill,"boolean"]]);return PDFNet.sendWithPromise("Element.setPathFill",{e:this.id,fill:fill})};PDFNet.Element.prototype.setWindingFill=function(winding_rule){checkArguments(arguments.length,1,"setWindingFill","(boolean)",[[winding_rule,"boolean"]]);return PDFNet.sendWithPromise("Element.setWindingFill",{e:this.id,winding_rule:winding_rule})};PDFNet.Element.prototype.setClipWindingFill=function(winding_rule){checkArguments(arguments.length,1,"setClipWindingFill","(boolean)",
-[[winding_rule,"boolean"]]);return PDFNet.sendWithPromise("Element.setClipWindingFill",{e:this.id,winding_rule:winding_rule})};PDFNet.Element.prototype.setPathTypes=function(in_seg_types,count){checkArguments(arguments.length,2,"setPathTypes","(string, number)",[[in_seg_types,"string"],[count,"number"]]);return PDFNet.sendWithPromise("Element.setPathTypes",{e:this.id,in_seg_types:in_seg_types,count:count})};PDFNet.Element.prototype.getXObject=function(){return PDFNet.sendWithPromise("Element.getXObject",
-{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getImageData=function(){return PDFNet.sendWithPromise("Element.getImageData",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Element.prototype.getImageDataSize=function(){return PDFNet.sendWithPromise("Element.getImageDataSize",{e:this.id})};PDFNet.Element.prototype.getImageColorSpace=function(){return PDFNet.sendWithPromise("Element.getImageColorSpace",{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,
-id)})};PDFNet.Element.prototype.getImageWidth=function(){return PDFNet.sendWithPromise("Element.getImageWidth",{e:this.id})};PDFNet.Element.prototype.getImageHeight=function(){return PDFNet.sendWithPromise("Element.getImageHeight",{e:this.id})};PDFNet.Element.prototype.getDecodeArray=function(){return PDFNet.sendWithPromise("Element.getDecodeArray",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getBitsPerComponent=function(){return PDFNet.sendWithPromise("Element.getBitsPerComponent",
-{e:this.id})};PDFNet.Element.prototype.getComponentNum=function(){return PDFNet.sendWithPromise("Element.getComponentNum",{e:this.id})};PDFNet.Element.prototype.isImageMask=function(){return PDFNet.sendWithPromise("Element.isImageMask",{e:this.id})};PDFNet.Element.prototype.isImageInterpolate=function(){return PDFNet.sendWithPromise("Element.isImageInterpolate",{e:this.id})};PDFNet.Element.prototype.getMask=function(){return PDFNet.sendWithPromise("Element.getMask",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Element.prototype.getImageRenderingIntent=function(){return PDFNet.sendWithPromise("Element.getImageRenderingIntent",{e:this.id})};PDFNet.Element.prototype.getTextString=function(){return PDFNet.sendWithPromise("Element.getTextString",{e:this.id})};PDFNet.Element.prototype.getTextMatrix=function(){return PDFNet.sendWithPromise("Element.getTextMatrix",{e:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Element.prototype.getCharIterator=function(){return PDFNet.sendWithPromise("Element.getCharIterator",
-{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"CharData")})};PDFNet.Element.prototype.getTextLength=function(){return PDFNet.sendWithPromise("Element.getTextLength",{e:this.id})};PDFNet.Element.prototype.getPosAdjustment=function(){return PDFNet.sendWithPromise("Element.getPosAdjustment",{e:this.id})};PDFNet.Element.prototype.getNewTextLineOffset=function(){return PDFNet.sendWithPromise("Element.getNewTextLineOffset",{e:this.id})};PDFNet.Element.prototype.hasTextMatrix=
-function(){return PDFNet.sendWithPromise("Element.hasTextMatrix",{e:this.id})};PDFNet.Element.prototype.setTextData=function(buf_text_data){checkArguments(arguments.length,1,"setTextData","(ArrayBuffer|TypedArray)",[[buf_text_data,"ArrayBuffer"]]);var buf_text_dataArrayBuffer=getArrayBuffer(buf_text_data,!1);return PDFNet.sendWithPromise("Element.setTextData",{e:this.id,buf_text_data:buf_text_dataArrayBuffer})};PDFNet.Element.prototype.setTextMatrix=function(mtx){checkArguments(arguments.length,1,
-"setTextMatrix","(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("setTextMatrix",[[mtx,0]]);return PDFNet.sendWithPromise("Element.setTextMatrix",{e:this.id,mtx:mtx})};PDFNet.Element.prototype.setTextMatrixEntries=function(a,b,c,d,h,v){checkArguments(arguments.length,6,"setTextMatrixEntries","(number, number, number, number, number, number)",[[a,"number"],[b,"number"],[c,"number"],[d,"number"],[h,"number"],[v,"number"]]);return PDFNet.sendWithPromise("Element.setTextMatrixEntries",
-{e:this.id,a:a,b:b,c:c,d:d,h:h,v:v})};PDFNet.Element.prototype.setPosAdjustment=function(adjust){checkArguments(arguments.length,1,"setPosAdjustment","(number)",[[adjust,"number"]]);return PDFNet.sendWithPromise("Element.setPosAdjustment",{e:this.id,adjust:adjust})};PDFNet.Element.prototype.updateTextMetrics=function(){return PDFNet.sendWithPromise("Element.updateTextMetrics",{e:this.id})};PDFNet.Element.prototype.setNewTextLineOffset=function(dx,dy){checkArguments(arguments.length,2,"setNewTextLineOffset",
-"(number, number)",[[dx,"number"],[dy,"number"]]);return PDFNet.sendWithPromise("Element.setNewTextLineOffset",{e:this.id,dx:dx,dy:dy})};PDFNet.Element.prototype.getShading=function(){return PDFNet.sendWithPromise("Element.getShading",{e:this.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,id)})};PDFNet.Element.prototype.getMCPropertyDict=function(){return PDFNet.sendWithPromise("Element.getMCPropertyDict",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Element.prototype.getMCTag=
-function(){return PDFNet.sendWithPromise("Element.getMCTag",{e:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ShapedText.prototype.getScale=function(){return PDFNet.sendWithPromise("ShapedText.getScale",{self:this.id})};PDFNet.ShapedText.prototype.getShapingStatus=function(){return PDFNet.sendWithPromise("ShapedText.getShapingStatus",{self:this.id})};PDFNet.ShapedText.prototype.getFailureReason=function(){return PDFNet.sendWithPromise("ShapedText.getFailureReason",{self:this.id})};
-PDFNet.ShapedText.prototype.getText=function(){return PDFNet.sendWithPromise("ShapedText.getText",{self:this.id})};PDFNet.ShapedText.prototype.getNumGlyphs=function(){return PDFNet.sendWithPromise("ShapedText.getNumGlyphs",{self:this.id})};PDFNet.ShapedText.prototype.getGlyph=function(index){checkArguments(arguments.length,1,"getGlyph","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyph",{self:this.id,index:index})};PDFNet.ShapedText.prototype.getGlyphXPos=function(index){checkArguments(arguments.length,
-1,"getGlyphXPos","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyphXPos",{self:this.id,index:index})};PDFNet.ShapedText.prototype.getGlyphYPos=function(index){checkArguments(arguments.length,1,"getGlyphYPos","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("ShapedText.getGlyphYPos",{self:this.id,index:index})};PDFNet.ElementBuilder.create=function(){return PDFNet.sendWithPromise("elementBuilderCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ElementBuilder,
-id)})};PDFNet.ElementBuilder.prototype.reset=function(gs){"undefined"===typeof gs&&(gs=new PDFNet.GState("0"));checkArguments(arguments.length,0,"reset","(PDFNet.GState)",[[gs,"Object",PDFNet.GState,"GState"]]);return PDFNet.sendWithPromise("ElementBuilder.reset",{b:this.id,gs:gs.id})};PDFNet.ElementBuilder.prototype.createImage=function(img){checkArguments(arguments.length,1,"createImage","(PDFNet.Image)",[[img,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("ElementBuilder.createImage",
-{b:this.id,img:img.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createImageFromMatrix=function(img,mtx){checkArguments(arguments.length,2,"createImageFromMatrix","(PDFNet.Image, PDFNet.Matrix2D)",[[img,"Object",PDFNet.Image,"Image"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("createImageFromMatrix",[[mtx,1]]);return PDFNet.sendWithPromise("ElementBuilder.createImageFromMatrix",{b:this.id,img:img.id,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Element,
-id)})};PDFNet.ElementBuilder.prototype.createImageScaled=function(img,x,y,hscale,vscale){checkArguments(arguments.length,5,"createImageScaled","(PDFNet.Image, number, number, number, number)",[[img,"Object",PDFNet.Image,"Image"],[x,"number"],[y,"number"],[hscale,"number"],[vscale,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createImageScaled",{b:this.id,img:img.id,x:x,y:y,hscale:hscale,vscale:vscale}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createGroupBegin=
-function(){return PDFNet.sendWithPromise("ElementBuilder.createGroupBegin",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createGroupEnd=function(){return PDFNet.sendWithPromise("ElementBuilder.createGroupEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createShading=function(sh){checkArguments(arguments.length,1,"createShading","(PDFNet.Shading)",[[sh,"Object",PDFNet.Shading,
-"Shading"]]);return PDFNet.sendWithPromise("ElementBuilder.createShading",{b:this.id,sh:sh.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createFormFromStream=function(form){checkArguments(arguments.length,1,"createFormFromStream","(PDFNet.Obj)",[[form,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromStream",{b:this.id,form:form.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createFormFromPage=
-function(page){checkArguments(arguments.length,1,"createFormFromPage","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromPage",{b:this.id,page:page.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createFormFromDoc=function(page,doc){checkArguments(arguments.length,2,"createFormFromDoc","(PDFNet.Page, PDFNet.PDFDoc)",[[page,"Object",PDFNet.Page,"Page"],[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("ElementBuilder.createFormFromDoc",
-{b:this.id,page:page.id,doc:doc.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextBeginWithFont=function(font,font_sz){checkArguments(arguments.length,2,"createTextBeginWithFont","(PDFNet.Font, number)",[[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextBeginWithFont",{b:this.id,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextBegin=
-function(){return PDFNet.sendWithPromise("ElementBuilder.createTextBegin",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextEnd=function(){return PDFNet.sendWithPromise("ElementBuilder.createTextEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextRun=function(text_data,font,font_sz){checkArguments(arguments.length,3,"createTextRun","(string, PDFNet.Font, number)",
-[[text_data,"string"],[font,"Object",PDFNet.Font,"Font"],[font_sz,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextRun",{b:this.id,text_data:text_data,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextRunUnsigned=function(text_data,font,font_sz){checkArguments(arguments.length,3,"createTextRunUnsigned","(string, PDFNet.Font, number)",[[text_data,"string"],[font,"Object",PDFNet.Font,"Font"],[font_sz,
-"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextRunUnsigned",{b:this.id,text_data:text_data,font:font.id,font_sz:font_sz}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createNewTextRun=function(text_data){checkArguments(arguments.length,1,"createNewTextRun","(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createNewTextRun",{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,
-id)})};PDFNet.ElementBuilder.prototype.createNewTextRunUnsigned=function(text_data){checkArguments(arguments.length,1,"createNewTextRunUnsigned","(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createNewTextRunUnsigned",{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createShapedTextRun=function(text_data){checkArguments(arguments.length,1,"createShapedTextRun","(PDFNet.ShapedText)",[[text_data,
-"Object",PDFNet.ShapedText,"ShapedText"]]);return PDFNet.sendWithPromise("ElementBuilder.createShapedTextRun",{b:this.id,text_data:text_data.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createTextNewLineWithOffset=function(dx,dy){checkArguments(arguments.length,2,"createTextNewLineWithOffset","(number, number)",[[dx,"number"],[dy,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createTextNewLineWithOffset",{b:this.id,dx:dx,dy:dy}).then(function(id){return createPDFNetObj(PDFNet.Element,
-id)})};PDFNet.ElementBuilder.prototype.createTextNewLine=function(){return PDFNet.sendWithPromise("ElementBuilder.createTextNewLine",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createPath=function(points,buf_seg_types){checkArguments(arguments.length,2,"createPath","(Array<number>, ArrayBuffer|TypedArray)",[[points,"Array"],[buf_seg_types,"ArrayBuffer"]]);var buf_seg_typesArrayBuffer=getArrayBuffer(buf_seg_types,!1);return PDFNet.sendWithPromise("ElementBuilder.createPath",
-{b:this.id,points_list:points,buf_seg_types:buf_seg_typesArrayBuffer}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createRect=function(x,y,width,height){checkArguments(arguments.length,4,"createRect","(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createRect",{b:this.id,x:x,y:y,width:width,height:height}).then(function(id){return createPDFNetObj(PDFNet.Element,
-id)})};PDFNet.ElementBuilder.prototype.createEllipse=function(x,y,width,height){checkArguments(arguments.length,4,"createEllipse","(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.createEllipse",{b:this.id,x:x,y:y,width:width,height:height}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.pathBegin=function(){return PDFNet.sendWithPromise("ElementBuilder.pathBegin",
-{b:this.id})};PDFNet.ElementBuilder.prototype.pathEnd=function(){return PDFNet.sendWithPromise("ElementBuilder.pathEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.rect=function(x,y,width,height){checkArguments(arguments.length,4,"rect","(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.rect",{b:this.id,x:x,y:y,width:width,height:height})};PDFNet.ElementBuilder.prototype.ellipse=
-function(x,y,width,height){checkArguments(arguments.length,4,"ellipse","(number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.ellipse",{b:this.id,x:x,y:y,width:width,height:height})};PDFNet.ElementBuilder.prototype.moveTo=function(x,y){checkArguments(arguments.length,2,"moveTo","(number, number)",[[x,"number"],[y,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.moveTo",{b:this.id,x:x,y:y})};PDFNet.ElementBuilder.prototype.lineTo=
-function(x,y){checkArguments(arguments.length,2,"lineTo","(number, number)",[[x,"number"],[y,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.lineTo",{b:this.id,x:x,y:y})};PDFNet.ElementBuilder.prototype.curveTo=function(cx1,cy1,cx2,cy2,x2,y2){checkArguments(arguments.length,6,"curveTo","(number, number, number, number, number, number)",[[cx1,"number"],[cy1,"number"],[cx2,"number"],[cy2,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.curveTo",{b:this.id,
-cx1:cx1,cy1:cy1,cx2:cx2,cy2:cy2,x2:x2,y2:y2})};PDFNet.ElementBuilder.prototype.arcTo=function(x,y,width,height,start,extent){checkArguments(arguments.length,6,"arcTo","(number, number, number, number, number, number)",[[x,"number"],[y,"number"],[width,"number"],[height,"number"],[start,"number"],[extent,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.arcTo",{b:this.id,x:x,y:y,width:width,height:height,start:start,extent:extent})};PDFNet.ElementBuilder.prototype.arcTo2=function(xr,yr,rx,
-isLargeArc,sweep,endX,endY){checkArguments(arguments.length,7,"arcTo2","(number, number, number, boolean, boolean, number, number)",[[xr,"number"],[yr,"number"],[rx,"number"],[isLargeArc,"boolean"],[sweep,"boolean"],[endX,"number"],[endY,"number"]]);return PDFNet.sendWithPromise("ElementBuilder.arcTo2",{b:this.id,xr:xr,yr:yr,rx:rx,isLargeArc:isLargeArc,sweep:sweep,endX:endX,endY:endY})};PDFNet.ElementBuilder.prototype.closePath=function(){return PDFNet.sendWithPromise("ElementBuilder.closePath",{b:this.id})};
-PDFNet.ElementBuilder.prototype.createMarkedContentBeginInlineProperties=function(tag){checkArguments(arguments.length,1,"createMarkedContentBeginInlineProperties","(string)",[[tag,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentBeginInlineProperties",{b:this.id,tag:tag}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentBegin=function(tag,property_dict){checkArguments(arguments.length,2,"createMarkedContentBegin",
-"(string, PDFNet.Obj)",[[tag,"string"],[property_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentBegin",{b:this.id,tag:tag,property_dict:property_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentEnd=function(){return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentEnd",{b:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentPointInlineProperties=
-function(tag){checkArguments(arguments.length,1,"createMarkedContentPointInlineProperties","(string)",[[tag,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentPointInlineProperties",{b:this.id,tag:tag}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementBuilder.prototype.createMarkedContentPoint=function(tag,property_dict){checkArguments(arguments.length,2,"createMarkedContentPoint","(string, PDFNet.Obj)",[[tag,"string"],[property_dict,"Object",
-PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementBuilder.createMarkedContentPoint",{b:this.id,tag:tag,property_dict:property_dict.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.create=function(){return PDFNet.sendWithPromise("elementReaderCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ElementReader,id)})};PDFNet.ElementReader.prototype.beginOnPage=function(page,ctx){"undefined"===typeof ctx&&(ctx=new PDFNet.OCGContext("0"));checkArguments(arguments.length,
-1,"beginOnPage","(PDFNet.Page, PDFNet.OCGContext)",[[page,"Object",PDFNet.Page,"Page"],[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("ElementReader.beginOnPage",{r:this.id,page:page.id,ctx:ctx.id})};PDFNet.ElementReader.prototype.begin=function(content_stream,resource_dict,ctx){"undefined"===typeof resource_dict&&(resource_dict=new PDFNet.Obj("0"));"undefined"===typeof ctx&&(ctx=new PDFNet.OCGContext("0"));checkArguments(arguments.length,1,"begin","(PDFNet.Obj, PDFNet.Obj, PDFNet.OCGContext)",
-[[content_stream,"Object",PDFNet.Obj,"Obj"],[resource_dict,"Object",PDFNet.Obj,"Obj"],[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("ElementReader.begin",{r:this.id,content_stream:content_stream.id,resource_dict:resource_dict.id,ctx:ctx.id})};PDFNet.ElementReader.prototype.appendResource=function(res){checkArguments(arguments.length,1,"appendResource","(PDFNet.Obj)",[[res,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementReader.appendResource",{r:this.id,
-res:res.id})};PDFNet.ElementReader.prototype.next=function(){return PDFNet.sendWithPromise("ElementReader.next",{r:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.prototype.current=function(){return PDFNet.sendWithPromise("ElementReader.current",{r:this.id}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.ElementReader.prototype.formBegin=function(){return PDFNet.sendWithPromise("ElementReader.formBegin",{r:this.id})};PDFNet.ElementReader.prototype.patternBegin=
-function(fill_pattern,reset_ctm_tfm){"undefined"===typeof reset_ctm_tfm&&(reset_ctm_tfm=!1);checkArguments(arguments.length,1,"patternBegin","(boolean, boolean)",[[fill_pattern,"boolean"],[reset_ctm_tfm,"boolean"]]);return PDFNet.sendWithPromise("ElementReader.patternBegin",{r:this.id,fill_pattern:fill_pattern,reset_ctm_tfm:reset_ctm_tfm})};PDFNet.ElementReader.prototype.type3FontBegin=function(char_data,resource_dict){"undefined"===typeof resource_dict&&(resource_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,
-1,"type3FontBegin","(PDFNet.CharData, PDFNet.Obj)",[[char_data,"Structure",PDFNet.CharData,"CharData"],[resource_dict,"Object",PDFNet.Obj,"Obj"]]);checkParamsYieldFunction("type3FontBegin",[[char_data,0]]);char_data.yieldFunction="ElementReader.type3FontBegin";return PDFNet.sendWithPromise("ElementReader.type3FontBegin",{r:this.id,char_data:char_data,resource_dict:resource_dict.id}).then(function(id){char_data.yieldFunction=void 0;copyFunc(id,char_data)})};PDFNet.ElementReader.prototype.end=function(){return PDFNet.sendWithPromise("ElementReader.end",
-{r:this.id})};PDFNet.ElementReader.prototype.getChangesIterator=function(){return PDFNet.sendWithPromise("ElementReader.getChangesIterator",{r:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Int")})};PDFNet.ElementReader.prototype.isChanged=function(attrib){checkArguments(arguments.length,1,"isChanged","(number)",[[attrib,"number"]]);return PDFNet.sendWithPromise("ElementReader.isChanged",{r:this.id,attrib:attrib})};PDFNet.ElementReader.prototype.clearChangeList=function(){return PDFNet.sendWithPromise("ElementReader.clearChangeList",
-{r:this.id})};PDFNet.ElementReader.prototype.getFont=function(name){checkArguments(arguments.length,1,"getFont","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getFont",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getXObject=function(name){checkArguments(arguments.length,1,"getXObject","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getXObject",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.ElementReader.prototype.getShading=function(name){checkArguments(arguments.length,1,"getShading","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getShading",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getColorSpace=function(name){checkArguments(arguments.length,1,"getColorSpace","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getColorSpace",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.ElementReader.prototype.getPattern=function(name){checkArguments(arguments.length,1,"getPattern","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getPattern",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementReader.prototype.getExtGState=function(name){checkArguments(arguments.length,1,"getExtGState","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ElementReader.getExtGState",{r:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.ElementWriter.create=function(){return PDFNet.sendWithPromise("elementWriterCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ElementWriter,id)})};PDFNet.ElementWriter.prototype.beginOnPage=function(page,placement,page_coord_sys,compress,resources){"undefined"===typeof placement&&(placement=PDFNet.ElementWriter.WriteMode.e_overlay);"undefined"===typeof page_coord_sys&&(page_coord_sys=!0);"undefined"===typeof compress&&(compress=!0);"undefined"===typeof resources&&(resources=
-new PDFNet.Obj("0"));checkArguments(arguments.length,1,"beginOnPage","(PDFNet.Page, number, boolean, boolean, PDFNet.Obj)",[[page,"Object",PDFNet.Page,"Page"],[placement,"number"],[page_coord_sys,"boolean"],[compress,"boolean"],[resources,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementWriter.beginOnPage",{w:this.id,page:page.id,placement:placement,page_coord_sys:page_coord_sys,compress:compress,resources:resources.id})};PDFNet.ElementWriter.prototype.begin=function(doc,compress){"undefined"===
-typeof compress&&(compress=!0);checkArguments(arguments.length,1,"begin","(PDFNet.SDFDoc, boolean)",[[doc,"SDFDoc"],[compress,"boolean"]]);return PDFNet.sendWithPromise("ElementWriter.begin",{w:this.id,doc:doc.id,compress:compress})};PDFNet.ElementWriter.prototype.beginOnObj=function(stream_obj_to_update,compress,resources){"undefined"===typeof compress&&(compress=!0);"undefined"===typeof resources&&(resources=new PDFNet.Obj("0"));checkArguments(arguments.length,1,"beginOnObj","(PDFNet.Obj, boolean, PDFNet.Obj)",
-[[stream_obj_to_update,"Object",PDFNet.Obj,"Obj"],[compress,"boolean"],[resources,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("ElementWriter.beginOnObj",{w:this.id,stream_obj_to_update:stream_obj_to_update.id,compress:compress,resources:resources.id})};PDFNet.ElementWriter.prototype.end=function(){return PDFNet.sendWithPromise("ElementWriter.end",{w:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ElementWriter.prototype.writeElement=function(element){checkArguments(arguments.length,
-1,"writeElement","(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("ElementWriter.writeElement",{w:this.id,element:element.id})};PDFNet.ElementWriter.prototype.writePlacedElement=function(element){checkArguments(arguments.length,1,"writePlacedElement","(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);return PDFNet.sendWithPromise("ElementWriter.writePlacedElement",{w:this.id,element:element.id})};PDFNet.ElementWriter.prototype.flush=function(){return PDFNet.sendWithPromise("ElementWriter.flush",
-{w:this.id})};PDFNet.ElementWriter.prototype.writeBuffer=function(data_buf){checkArguments(arguments.length,1,"writeBuffer","(ArrayBuffer|TypedArray)",[[data_buf,"ArrayBuffer"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);return PDFNet.sendWithPromise("ElementWriter.writeBuffer",{w:this.id,data_buf:data_bufArrayBuffer})};PDFNet.ElementWriter.prototype.writeString=function(str){checkArguments(arguments.length,1,"writeString","(string)",[[str,"string"]]);return PDFNet.sendWithPromise("ElementWriter.writeString",
-{w:this.id,str:str})};PDFNet.ElementWriter.prototype.setDefaultGState=function(reader){checkArguments(arguments.length,1,"setDefaultGState","(PDFNet.ElementReader)",[[reader,"Object",PDFNet.ElementReader,"ElementReader"]]);return PDFNet.sendWithPromise("ElementWriter.setDefaultGState",{w:this.id,reader:reader.id})};PDFNet.ElementWriter.prototype.writeGStateChanges=function(element){checkArguments(arguments.length,1,"writeGStateChanges","(PDFNet.Element)",[[element,"Object",PDFNet.Element,"Element"]]);
-return PDFNet.sendWithPromise("ElementWriter.writeGStateChanges",{w:this.id,element:element.id})};PDFNet.FileSpec.create=function(doc,path,embed){"undefined"===typeof embed&&(embed=!0);checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, string, boolean)",[[doc,"SDFDoc"],[path,"string"],[embed,"boolean"]]);return PDFNet.sendWithPromise("fileSpecCreate",{doc:doc.id,path:path,embed:embed}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.createURL=function(doc,
-url){checkArguments(arguments.length,2,"createURL","(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[url,"string"]]);return PDFNet.sendWithPromise("fileSpecCreateURL",{doc:doc.id,url:url}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.createFromObj=function(f){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[f,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fileSpecCreateFromObj",{f:f.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,
-id)})};PDFNet.FileSpec.prototype.copy=function(){return PDFNet.sendWithPromise("FileSpec.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.FileSpec,id)})};PDFNet.FileSpec.prototype.compare=function(d){checkArguments(arguments.length,1,"compare","(PDFNet.FileSpec)",[[d,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("FileSpec.compare",{fs:this.id,d:d.id})};PDFNet.FileSpec.prototype.isValid=function(){return PDFNet.sendWithPromise("FileSpec.isValid",{fs:this.id})};
-PDFNet.FileSpec.prototype["export"]=function(save_as){"undefined"===typeof save_as&&(save_as="");checkArguments(arguments.length,0,"export","(string)",[[save_as,"string"]]);return PDFNet.sendWithPromise("FileSpec.export",{fs:this.id,save_as:save_as})};PDFNet.FileSpec.prototype.getFileData=function(){return PDFNet.sendWithPromise("FileSpec.getFileData",{fs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.FileSpec.prototype.getFilePath=function(){return PDFNet.sendWithPromise("FileSpec.getFilePath",
-{fs:this.id})};PDFNet.FileSpec.prototype.setDesc=function(desc){checkArguments(arguments.length,1,"setDesc","(string)",[[desc,"string"]]);return PDFNet.sendWithPromise("FileSpec.setDesc",{fs:this.id,desc:desc})};PDFNet.FileSpec.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("FileSpec.getSDFObj",{fs:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Flattener.create=function(){return PDFNet.sendWithPromise("flattenerCreate",{}).then(function(id){return createDestroyableObj(PDFNet.Flattener,
-id)})};PDFNet.Flattener.prototype.setDPI=function(dpi){checkArguments(arguments.length,1,"setDPI","(number)",[[dpi,"number"]]);return PDFNet.sendWithPromise("Flattener.setDPI",{flattener:this.id,dpi:dpi})};PDFNet.Flattener.prototype.setThreshold=function(threshold){checkArguments(arguments.length,1,"setThreshold","(number)",[[threshold,"number"]]);return PDFNet.sendWithPromise("Flattener.setThreshold",{flattener:this.id,threshold:threshold})};PDFNet.Flattener.prototype.setMaximumImagePixels=function(max_pixels){checkArguments(arguments.length,
-1,"setMaximumImagePixels","(number)",[[max_pixels,"number"]]);return PDFNet.sendWithPromise("Flattener.setMaximumImagePixels",{flattener:this.id,max_pixels:max_pixels})};PDFNet.Flattener.prototype.setPreferJPG=function(jpg){checkArguments(arguments.length,1,"setPreferJPG","(boolean)",[[jpg,"boolean"]]);return PDFNet.sendWithPromise("Flattener.setPreferJPG",{flattener:this.id,jpg:jpg})};PDFNet.Flattener.prototype.setJPGQuality=function(quality){checkArguments(arguments.length,1,"setJPGQuality","(number)",
-[[quality,"number"]]);return PDFNet.sendWithPromise("Flattener.setJPGQuality",{flattener:this.id,quality:quality})};PDFNet.Flattener.prototype.setPathHinting=function(hinting){checkArguments(arguments.length,1,"setPathHinting","(boolean)",[[hinting,"boolean"]]);return PDFNet.sendWithPromise("Flattener.setPathHinting",{flattener:this.id,hinting:hinting})};PDFNet.Flattener.prototype.process=function(doc,mode){checkArguments(arguments.length,2,"process","(PDFNet.PDFDoc, number)",[[doc,"PDFDoc"],[mode,
-"number"]]);return PDFNet.sendWithPromise("Flattener.process",{flattener:this.id,doc:doc.id,mode:mode})};PDFNet.Flattener.prototype.processPage=function(page,mode){checkArguments(arguments.length,2,"processPage","(PDFNet.Page, number)",[[page,"Object",PDFNet.Page,"Page"],[mode,"number"]]);return PDFNet.sendWithPromise("Flattener.processPage",{flattener:this.id,page:page.id,mode:mode})};PDFNet.Font.createFromObj=function(font_dict){"undefined"===typeof font_dict&&(font_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,
-0,"createFromObj","(PDFNet.Obj)",[[font_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fontCreateFromObj",{font_dict:font_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.create=function(doc,type){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, number)",[[doc,"SDFDoc"],[type,"number"]]);return PDFNet.sendWithPromise("fontCreate",{doc:doc.id,type:type}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createFromFontDescriptor=
-function(doc,from,char_set){checkArguments(arguments.length,3,"createFromFontDescriptor","(PDFNet.SDFDoc, PDFNet.Font, string)",[[doc,"SDFDoc"],[from,"Object",PDFNet.Font,"Font"],[char_set,"string"]]);return PDFNet.sendWithPromise("fontCreateFromFontDescriptor",{doc:doc.id,from:from.id,char_set:char_set}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createFromName=function(doc,name,char_set){checkArguments(arguments.length,3,"createFromName","(PDFNet.SDFDoc, string, string)",
-[[doc,"SDFDoc"],[name,"string"],[char_set,"string"]]);return PDFNet.sendWithPromise("fontCreateFromName",{doc:doc.id,name:name,char_set:char_set}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.createAndEmbed=function(doc,type){checkArguments(arguments.length,2,"createAndEmbed","(PDFNet.SDFDoc, number)",[[doc,"SDFDoc"],[type,"number"]]);return PDFNet.sendWithPromise("fontCreateAndEmbed",{doc:doc.id,type:type}).then(function(id){return createDestroyableObj(PDFNet.Font,
-id)})};PDFNet.Font.prototype.getType=function(){return PDFNet.sendWithPromise("Font.getType",{font:this.id})};PDFNet.Font.prototype.isSimple=function(){return PDFNet.sendWithPromise("Font.isSimple",{font:this.id})};PDFNet.Font.getTypeFromObj=function(font_dict){checkArguments(arguments.length,1,"getTypeFromObj","(PDFNet.Obj)",[[font_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("fontGetTypeFromObj",{font_dict:font_dict.id})};PDFNet.Font.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Font.getSDFObj",
-{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getDescriptor=function(){return PDFNet.sendWithPromise("Font.getDescriptor",{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getName=function(){return PDFNet.sendWithPromise("Font.getName",{font:this.id})};PDFNet.Font.prototype.getFamilyName=function(){return PDFNet.sendWithPromise("Font.getFamilyName",{font:this.id})};PDFNet.Font.prototype.isFixedWidth=
-function(){return PDFNet.sendWithPromise("Font.isFixedWidth",{font:this.id})};PDFNet.Font.prototype.isSerif=function(){return PDFNet.sendWithPromise("Font.isSerif",{font:this.id})};PDFNet.Font.prototype.isSymbolic=function(){return PDFNet.sendWithPromise("Font.isSymbolic",{font:this.id})};PDFNet.Font.prototype.isItalic=function(){return PDFNet.sendWithPromise("Font.isItalic",{font:this.id})};PDFNet.Font.prototype.isAllCap=function(){return PDFNet.sendWithPromise("Font.isAllCap",{font:this.id})};PDFNet.Font.prototype.isForceBold=
-function(){return PDFNet.sendWithPromise("Font.isForceBold",{font:this.id})};PDFNet.Font.prototype.isHorizontalMode=function(){return PDFNet.sendWithPromise("Font.isHorizontalMode",{font:this.id})};PDFNet.Font.prototype.getWidth=function(char_code){checkArguments(arguments.length,1,"getWidth","(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.getWidth",{font:this.id,char_code:char_code})};PDFNet.Font.prototype.getMaxWidth=function(){return PDFNet.sendWithPromise("Font.getMaxWidth",
-{font:this.id})};PDFNet.Font.prototype.getMissingWidth=function(){return PDFNet.sendWithPromise("Font.getMissingWidth",{font:this.id})};PDFNet.Font.prototype.getCharCodeIterator=function(){return PDFNet.sendWithPromise("Font.getCharCodeIterator",{font:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Int")})};PDFNet.Font.prototype.getShapedText=function(text_to_shape){checkArguments(arguments.length,1,"getShapedText","(string)",[[text_to_shape,"string"]]);return PDFNet.sendWithPromise("Font.getShapedText",
-{font:this.id,text_to_shape:text_to_shape}).then(function(id){return createDestroyableObj(PDFNet.ShapedText,id)})};PDFNet.Font.prototype.getEncoding=function(){return PDFNet.sendWithPromise("Font.getEncoding",{font:this.id})};PDFNet.Font.prototype.isEmbedded=function(){return PDFNet.sendWithPromise("Font.isEmbedded",{font:this.id})};PDFNet.Font.prototype.getEmbeddedFontName=function(){return PDFNet.sendWithPromise("Font.getEmbeddedFontName",{font:this.id})};PDFNet.Font.prototype.getEmbeddedFont=function(){return PDFNet.sendWithPromise("Font.getEmbeddedFont",
-{font:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getEmbeddedFontBufSize=function(){return PDFNet.sendWithPromise("Font.getEmbeddedFontBufSize",{font:this.id})};PDFNet.Font.prototype.getUnitsPerEm=function(){return PDFNet.sendWithPromise("Font.getUnitsPerEm",{font:this.id})};PDFNet.Font.prototype.getBBox=function(){return PDFNet.sendWithPromise("Font.getBBox",{font:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Font.prototype.getAscent=
-function(){return PDFNet.sendWithPromise("Font.getAscent",{font:this.id})};PDFNet.Font.prototype.getDescent=function(){return PDFNet.sendWithPromise("Font.getDescent",{font:this.id})};PDFNet.Font.prototype.getStandardType1FontType=function(){return PDFNet.sendWithPromise("Font.getStandardType1FontType",{font:this.id})};PDFNet.Font.prototype.isCFF=function(){return PDFNet.sendWithPromise("Font.isCFF",{font:this.id})};PDFNet.Font.prototype.getType3FontMatrix=function(){return PDFNet.sendWithPromise("Font.getType3FontMatrix",
-{font:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.Font.prototype.getType3GlyphStream=function(char_code){checkArguments(arguments.length,1,"getType3GlyphStream","(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.getType3GlyphStream",{font:this.id,char_code:char_code}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Font.prototype.getVerticalAdvance=function(char_code){checkArguments(arguments.length,1,"getVerticalAdvance","(number)",[[char_code,
-"number"]]);return PDFNet.sendWithPromise("Font.getVerticalAdvance",{font:this.id,char_code:char_code})};PDFNet.Font.prototype.getDescendant=function(){return PDFNet.sendWithPromise("Font.getDescendant",{font:this.id}).then(function(id){return createDestroyableObj(PDFNet.Font,id)})};PDFNet.Font.prototype.mapToCID=function(char_code){checkArguments(arguments.length,1,"mapToCID","(number)",[[char_code,"number"]]);return PDFNet.sendWithPromise("Font.mapToCID",{font:this.id,char_code:char_code})};PDFNet.Function.create=
-function(funct_dict){"undefined"===typeof funct_dict&&(funct_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[funct_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("functionCreate",{funct_dict:funct_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Function,id)})};PDFNet.Function.prototype.getType=function(){return PDFNet.sendWithPromise("Function.getType",{f:this.id})};PDFNet.Function.prototype.getInputCardinality=function(){return PDFNet.sendWithPromise("Function.getInputCardinality",
-{f:this.id})};PDFNet.Function.prototype.getOutputCardinality=function(){return PDFNet.sendWithPromise("Function.getOutputCardinality",{f:this.id})};PDFNet.Function.prototype.eval=function(inval,outval){checkArguments(arguments.length,2,"eval","(number, number)",[[inval,"number"],[outval,"number"]]);return PDFNet.sendWithPromise("Function.eval",{f:this.id,inval:inval,outval:outval})};PDFNet.Function.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Function.getSDFObj",{f:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Highlights.create=function(){return PDFNet.sendWithPromise("highlightsCreate",{}).then(function(id){return createDestroyableObj(PDFNet.Highlights,id)})};PDFNet.Highlights.prototype.copyCtor=function(){return PDFNet.sendWithPromise("Highlights.copyCtor",{hlts:this.id}).then(function(id){return createDestroyableObj(PDFNet.Highlights,id)})};PDFNet.Highlights.prototype.add=function(hlts){checkArguments(arguments.length,1,"add","(PDFNet.Highlights)",[[hlts,"Object",PDFNet.Highlights,"Highlights"]]);
-return PDFNet.sendWithPromise("Highlights.add",{hlts2:this.id,hlts:hlts.id})};PDFNet.Highlights.prototype.saveToString=function(){return PDFNet.sendWithPromise("Highlights.saveToString",{hlts:this.id})};PDFNet.Highlights.prototype.clear=function(){return PDFNet.sendWithPromise("Highlights.clear",{hlts:this.id})};PDFNet.Highlights.prototype.begin=function(doc){checkArguments(arguments.length,1,"begin","(PDFNet.PDFDoc)",[[doc,"PDFDoc"]]);return PDFNet.sendWithPromise("Highlights.begin",{hlts:this.id,
-doc:doc.id})};PDFNet.Highlights.prototype.hasNext=function(){return PDFNet.sendWithPromise("Highlights.hasNext",{hlts:this.id})};PDFNet.Highlights.prototype.next=function(){return PDFNet.sendWithPromise("Highlights.next",{hlts:this.id})};PDFNet.Highlights.prototype.getCurrentPageNumber=function(){return PDFNet.sendWithPromise("Highlights.getCurrentPageNumber",{hlts:this.id})};PDFNet.Highlights.prototype.getCurrentTextRange=function(){return PDFNet.sendWithPromise("Highlights.getCurrentTextRange",
-{hlts:this.id}).then(function(id){return createPDFNetObj(PDFNet.TextRange,id)})};PDFNet.Image.createFromMemory=function(doc,buf,width,height,bpc,color_space,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,6,"createFromMemory","(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.ColorSpace, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",
-PDFNet.ColorSpace,"ColorSpace"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateFromMemory",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,bpc:bpc,color_space:color_space.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromMemory2=function(doc,buf,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,
-2,"createFromMemory2","(PDFNet.SDFDoc, ArrayBuffer|TypedArray, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateFromMemory2",{doc:doc.id,buf:bufArrayBuffer,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromStream=function(doc,image_data,width,height,bpc,color_space,encoder_hints){"undefined"===typeof encoder_hints&&
-(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,6,"createFromStream","(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.ColorSpace, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateFromStream",{doc:doc.id,image_data:image_data.id,width:width,
-height:height,bpc:bpc,color_space:color_space.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromStream2=function(doc,image_data,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"createFromStream2","(PDFNet.SDFDoc, PDFNet.Filter, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.Filter,"Filter"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);0!=image_data.id&&
-avoidCleanup(image_data.id);return PDFNet.sendWithPromise("imageCreateFromStream2",{doc:doc.id,no_own_image_data:image_data.id,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createImageMask=function(doc,buf,width,height,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,4,"createImageMask","(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],
-[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateImageMask",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createImageMaskFromStream=function(doc,image_data,width,height,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));
-checkArguments(arguments.length,4,"createImageMaskFromStream","(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateImageMaskFromStream",{doc:doc.id,image_data:image_data.id,width:width,height:height,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};
-PDFNet.Image.createSoftMask=function(doc,buf,width,height,bpc,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,5,"createSoftMask","(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateSoftMask",
-{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,bpc:bpc,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createSoftMaskFromStream=function(doc,image_data,width,height,bpc,encoder_hints){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));checkArguments(arguments.length,5,"createSoftMaskFromStream","(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.Obj)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,
-"FilterReader"],[width,"number"],[height,"number"],[bpc,"number"],[encoder_hints,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateSoftMaskFromStream",{doc:doc.id,image_data:image_data.id,width:width,height:height,bpc:bpc,encoder_hints:encoder_hints.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createDirectFromMemory=function(doc,buf,width,height,bpc,color_space,input_format){checkArguments(arguments.length,7,"createDirectFromMemory","(PDFNet.SDFDoc, ArrayBuffer|TypedArray, number, number, number, PDFNet.ColorSpace, number)",
-[[doc,"SDFDoc"],[buf,"ArrayBuffer"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[input_format,"number"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("imageCreateDirectFromMemory",{doc:doc.id,buf:bufArrayBuffer,width:width,height:height,bpc:bpc,color_space:color_space.id,input_format:input_format}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createDirectFromStream=function(doc,image_data,
-width,height,bpc,color_space,input_format){checkArguments(arguments.length,7,"createDirectFromStream","(PDFNet.SDFDoc, PDFNet.FilterReader, number, number, number, PDFNet.ColorSpace, number)",[[doc,"SDFDoc"],[image_data,"Object",PDFNet.FilterReader,"FilterReader"],[width,"number"],[height,"number"],[bpc,"number"],[color_space,"Object",PDFNet.ColorSpace,"ColorSpace"],[input_format,"number"]]);return PDFNet.sendWithPromise("imageCreateDirectFromStream",{doc:doc.id,image_data:image_data.id,width:width,
-height:height,bpc:bpc,color_space:color_space.id,input_format:input_format}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.createFromObj=function(image_xobject){"undefined"===typeof image_xobject&&(image_xobject=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj)",[[image_xobject,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("imageCreateFromObj",{image_xobject:image_xobject.id}).then(function(id){return createPDFNetObj(PDFNet.Image,
-id)})};PDFNet.Image.prototype.copy=function(){return PDFNet.sendWithPromise("Image.copy",{c:this.id}).then(function(id){return createPDFNetObj(PDFNet.Image,id)})};PDFNet.Image.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Image.getSDFObj",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.isValid=function(){return PDFNet.sendWithPromise("Image.isValid",{img:this.id})};PDFNet.Image.prototype.getImageData=function(){return PDFNet.sendWithPromise("Image.getImageData",
-{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Image.prototype.getImageDataSize=function(){return PDFNet.sendWithPromise("Image.getImageDataSize",{img:this.id})};PDFNet.Image.prototype.getImageColorSpace=function(){return PDFNet.sendWithPromise("Image.getImageColorSpace",{img:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.Image.prototype.getImageWidth=function(){return PDFNet.sendWithPromise("Image.getImageWidth",{img:this.id})};
-PDFNet.Image.prototype.getImageHeight=function(){return PDFNet.sendWithPromise("Image.getImageHeight",{img:this.id})};PDFNet.Image.prototype.getDecodeArray=function(){return PDFNet.sendWithPromise("Image.getDecodeArray",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.getBitsPerComponent=function(){return PDFNet.sendWithPromise("Image.getBitsPerComponent",{img:this.id})};PDFNet.Image.prototype.getComponentNum=function(){return PDFNet.sendWithPromise("Image.getComponentNum",
-{img:this.id})};PDFNet.Image.prototype.isImageMask=function(){return PDFNet.sendWithPromise("Image.isImageMask",{img:this.id})};PDFNet.Image.prototype.isImageInterpolate=function(){return PDFNet.sendWithPromise("Image.isImageInterpolate",{img:this.id})};PDFNet.Image.prototype.getMask=function(){return PDFNet.sendWithPromise("Image.getMask",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Image.prototype.setMask=function(image_mask){checkArguments(arguments.length,1,
-"setMask","(PDFNet.Image)",[[image_mask,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("Image.setMask",{img:this.id,image_mask:image_mask.id})};PDFNet.Image.prototype.setMaskWithObj=function(mask){checkArguments(arguments.length,1,"setMaskWithObj","(PDFNet.Obj)",[[mask,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Image.setMaskWithObj",{img:this.id,mask:mask.id})};PDFNet.Image.prototype.getSoftMask=function(){return PDFNet.sendWithPromise("Image.getSoftMask",{img:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Image.prototype.setSoftMask=function(soft_mask){checkArguments(arguments.length,1,"setSoftMask","(PDFNet.Image)",[[soft_mask,"Object",PDFNet.Image,"Image"]]);return PDFNet.sendWithPromise("Image.setSoftMask",{img:this.id,soft_mask:soft_mask.id})};PDFNet.Image.prototype.getImageRenderingIntent=function(){return PDFNet.sendWithPromise("Image.getImageRenderingIntent",{img:this.id})};PDFNet.Image.prototype.exportFromStream=function(writer){checkArguments(arguments.length,1,"exportFromStream",
-"(PDFNet.FilterWriter)",[[writer,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportFromStream",{img:this.id,writer:writer.id})};PDFNet.Image.prototype.exportAsTiffFromStream=function(writer){checkArguments(arguments.length,1,"exportAsTiffFromStream","(PDFNet.FilterWriter)",[[writer,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportAsTiffFromStream",{img:this.id,writer:writer.id})};PDFNet.Image.prototype.exportAsPngFromStream=
-function(writer){checkArguments(arguments.length,1,"exportAsPngFromStream","(PDFNet.FilterWriter)",[[writer,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Image.exportAsPngFromStream",{img:this.id,writer:writer.id})};PDFNet.PageLabel.create=function(doc,style,prefix,start_at){"undefined"===typeof prefix&&(prefix="");"undefined"===typeof start_at&&(start_at=1);checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, number, string, number)",[[doc,"SDFDoc"],[style,
-"number"],[prefix,"string"],[start_at,"number"]]);return PDFNet.sendWithPromise("pageLabelCreate",{doc:doc.id,style:style,prefix:prefix,start_at:start_at}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PageLabel.createFromObj=function(l,first_page,last_page){"undefined"===typeof l&&(l=new PDFNet.Obj("0"));"undefined"===typeof first_page&&(first_page=-1);"undefined"===typeof last_page&&(last_page=-1);checkArguments(arguments.length,0,"createFromObj","(PDFNet.Obj, number, number)",[[l,
-"Object",PDFNet.Obj,"Obj"],[first_page,"number"],[last_page,"number"]]);return PDFNet.sendWithPromise("pageLabelCreateFromObj",{l:l.id,first_page:first_page,last_page:last_page}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PageLabel.prototype.compare=function(d){checkArguments(arguments.length,1,"compare","(PDFNet.PageLabel)",[[d,"Structure",PDFNet.PageLabel,"PageLabel"]]);checkThisYieldFunction("compare",this.yieldFunction);checkParamsYieldFunction("compare",[[d,0]]);var me=this;
-this.yieldFunction="PageLabel.compare";return PDFNet.sendWithPromise("PageLabel.compare",{l:this,d:d}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.isValid=function(){checkThisYieldFunction("isValid",this.yieldFunction);return PDFNet.sendWithPromise("PageLabel.isValid",{l:this})};PDFNet.PageLabel.prototype.getLabelTitle=function(page_num){checkArguments(arguments.length,1,"getLabelTitle","(number)",[[page_num,"number"]]);checkThisYieldFunction("getLabelTitle",
-this.yieldFunction);var me=this;this.yieldFunction="PageLabel.getLabelTitle";return PDFNet.sendWithPromise("PageLabel.getLabelTitle",{l:this,page_num:page_num}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.setStyle=function(style){checkArguments(arguments.length,1,"setStyle","(number)",[[style,"number"]]);checkThisYieldFunction("setStyle",this.yieldFunction);var me=this;this.yieldFunction="PageLabel.setStyle";return PDFNet.sendWithPromise("PageLabel.setStyle",
-{l:this,style:style}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getStyle=function(){checkThisYieldFunction("getStyle",this.yieldFunction);return PDFNet.sendWithPromise("PageLabel.getStyle",{l:this})};PDFNet.PageLabel.prototype.getPrefix=function(){checkThisYieldFunction("getPrefix",this.yieldFunction);return PDFNet.sendWithPromise("PageLabel.getPrefix",{l:this})};PDFNet.PageLabel.prototype.setPrefix=function(prefix){checkArguments(arguments.length,1,"setPrefix",
-"(string)",[[prefix,"string"]]);checkThisYieldFunction("setPrefix",this.yieldFunction);var me=this;this.yieldFunction="PageLabel.setPrefix";return PDFNet.sendWithPromise("PageLabel.setPrefix",{l:this,prefix:prefix}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getStart=function(){checkThisYieldFunction("getStart",this.yieldFunction);return PDFNet.sendWithPromise("PageLabel.getStart",{l:this})};PDFNet.PageLabel.prototype.setStart=function(start_at){checkArguments(arguments.length,
-1,"setStart","(number)",[[start_at,"number"]]);checkThisYieldFunction("setStart",this.yieldFunction);var me=this;this.yieldFunction="PageLabel.setStart";return PDFNet.sendWithPromise("PageLabel.setStart",{l:this,start_at:start_at}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.PageLabel.prototype.getFirstPageNum=function(){checkThisYieldFunction("getFirstPageNum",this.yieldFunction);var me=this;this.yieldFunction="PageLabel.getFirstPageNum";return PDFNet.sendWithPromise("PageLabel.getFirstPageNum",
-{l:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.getLastPageNum=function(){checkThisYieldFunction("getLastPageNum",this.yieldFunction);var me=this;this.yieldFunction="PageLabel.getLastPageNum";return PDFNet.sendWithPromise("PageLabel.getLastPageNum",{l:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.l,me);return id.result})};PDFNet.PageLabel.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);
-return PDFNet.sendWithPromise("PageLabel.getSDFObj",{l:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PageSet.create=function(){return PDFNet.sendWithPromise("pageSetCreate",{}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.createSinglePage=function(one_page){checkArguments(arguments.length,1,"createSinglePage","(number)",[[one_page,"number"]]);return PDFNet.sendWithPromise("pageSetCreateSinglePage",{one_page:one_page}).then(function(id){return createDestroyableObj(PDFNet.PageSet,
-id)})};PDFNet.PageSet.createRange=function(range_start,range_end){checkArguments(arguments.length,2,"createRange","(number, number)",[[range_start,"number"],[range_end,"number"]]);return PDFNet.sendWithPromise("pageSetCreateRange",{range_start:range_start,range_end:range_end}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.createFilteredRange=function(range_start,range_end,filter){"undefined"===typeof filter&&(filter=PDFNet.PageSet.Filter.e_all);checkArguments(arguments.length,
-2,"createFilteredRange","(number, number, number)",[[range_start,"number"],[range_end,"number"],[filter,"number"]]);return PDFNet.sendWithPromise("pageSetCreateFilteredRange",{range_start:range_start,range_end:range_end,filter:filter}).then(function(id){return createDestroyableObj(PDFNet.PageSet,id)})};PDFNet.PageSet.prototype.addPage=function(one_page){checkArguments(arguments.length,1,"addPage","(number)",[[one_page,"number"]]);return PDFNet.sendWithPromise("PageSet.addPage",{page_set:this.id,one_page:one_page})};
-PDFNet.PageSet.prototype.addRange=function(range_start,range_end,filter){"undefined"===typeof filter&&(filter=PDFNet.PageSet.Filter.e_all);checkArguments(arguments.length,2,"addRange","(number, number, number)",[[range_start,"number"],[range_end,"number"],[filter,"number"]]);return PDFNet.sendWithPromise("PageSet.addRange",{page_set:this.id,range_start:range_start,range_end:range_end,filter:filter})};PDFNet.PatternColor.create=function(pattern){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",
-[[pattern,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("patternColorCreate",{pattern:pattern.id}).then(function(id){return createDestroyableObj(PDFNet.PatternColor,id)})};PDFNet.PatternColor.getTypeFromObj=function(pattern){checkArguments(arguments.length,1,"getTypeFromObj","(PDFNet.Obj)",[[pattern,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("patternColorGetTypeFromObj",{pattern:pattern.id})};PDFNet.PatternColor.prototype.getType=function(){return PDFNet.sendWithPromise("PatternColor.getType",
-{pc:this.id})};PDFNet.PatternColor.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("PatternColor.getSDFObj",{pc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PatternColor.prototype.getMatrix=function(){return PDFNet.sendWithPromise("PatternColor.getMatrix",{pc:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};PDFNet.PatternColor.prototype.getShading=function(){return PDFNet.sendWithPromise("PatternColor.getShading",{pc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,
-id)})};PDFNet.PatternColor.prototype.getTilingType=function(){return PDFNet.sendWithPromise("PatternColor.getTilingType",{pc:this.id})};PDFNet.PatternColor.prototype.getBBox=function(){return PDFNet.sendWithPromise("PatternColor.getBBox",{pc:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.PatternColor.prototype.getXStep=function(){return PDFNet.sendWithPromise("PatternColor.getXStep",{pc:this.id})};PDFNet.PatternColor.prototype.getYStep=function(){return PDFNet.sendWithPromise("PatternColor.getYStep",
-{pc:this.id})};PDFNet.GeometryCollection.prototype.snapToNearest=function(x,y,mode){checkArguments(arguments.length,3,"snapToNearest","(number, number, number)",[[x,"number"],[y,"number"],[mode,"number"]]);return PDFNet.sendWithPromise("GeometryCollection.snapToNearest",{self:this.id,x:x,y:y,mode:mode})};PDFNet.GeometryCollection.prototype.snapToNearestPixel=function(x,y,dpi,mode){checkArguments(arguments.length,4,"snapToNearestPixel","(number, number, number, number)",[[x,"number"],[y,"number"],
-[dpi,"number"],[mode,"number"]]);return PDFNet.sendWithPromise("GeometryCollection.snapToNearestPixel",{self:this.id,x:x,y:y,dpi:dpi,mode:mode})};PDFNet.DigestAlgorithm.calculateDigest=function(in_algorithm,in_buffer){checkArguments(arguments.length,2,"calculateDigest","(number, ArrayBuffer|TypedArray)",[[in_algorithm,"number"],[in_buffer,"ArrayBuffer"]]);var in_bufferArrayBuffer=getArrayBuffer(in_buffer,!1);return PDFNet.sendWithPromise("digestAlgorithmCalculateDigest",{in_algorithm:in_algorithm,
-in_buffer:in_bufferArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.ObjectIdentifier.createFromPredefined=function(in_oid_enum){checkArguments(arguments.length,1,"createFromPredefined","(number)",[[in_oid_enum,"number"]]);return PDFNet.sendWithPromise("objectIdentifierCreateFromPredefined",{in_oid_enum:in_oid_enum}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.ObjectIdentifier.createFromIntArray=function(in_list){checkArguments(arguments.length,
-1,"createFromIntArray","(Array<number>)",[[in_list,"Array"]]);return PDFNet.sendWithPromise("objectIdentifierCreateFromIntArray",{in_list:in_list}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.ObjectIdentifier.createFromDigestAlgorithm=function(in_algorithm){checkArguments(arguments.length,1,"createFromDigestAlgorithm","(number)",[[in_algorithm,"number"]]);return PDFNet.sendWithPromise("objectIdentifierCreateFromDigestAlgorithm",{in_algorithm:in_algorithm}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,
-id)})};PDFNet.ObjectIdentifier.prototype.getRawValue=function(){return PDFNet.sendWithPromise("ObjectIdentifier.getRawValue",{self:this.id})};PDFNet.X501DistinguishedName.prototype.hasAttribute=function(in_oid){checkArguments(arguments.length,1,"hasAttribute","(PDFNet.ObjectIdentifier)",[[in_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"]]);return PDFNet.sendWithPromise("X501DistinguishedName.hasAttribute",{self:this.id,in_oid:in_oid.id})};PDFNet.X501DistinguishedName.prototype.getStringValuesForAttribute=
-function(in_oid){checkArguments(arguments.length,1,"getStringValuesForAttribute","(PDFNet.ObjectIdentifier)",[[in_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"]]);return PDFNet.sendWithPromise("X501DistinguishedName.getStringValuesForAttribute",{self:this.id,in_oid:in_oid.id})};PDFNet.X501DistinguishedName.prototype.getAllAttributesAndValues=function(){return PDFNet.sendWithPromise("X501DistinguishedName.getAllAttributesAndValues",{self:this.id}).then(function(idArray){for(var retArray=
-[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.X501AttributeTypeAndValue(id);retArray.push(id);createdObjects.push({name:id.name,id:id.id})}return retArray})};PDFNet.X509Certificate.createFromBuffer=function(in_cert_buf){checkArguments(arguments.length,1,"createFromBuffer","(ArrayBuffer|TypedArray)",[[in_cert_buf,"ArrayBuffer"]]);var in_cert_bufArrayBuffer=getArrayBuffer(in_cert_buf,!1);return PDFNet.sendWithPromise("x509CertificateCreateFromBuffer",{in_cert_buf:in_cert_bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.X509Certificate,
-id)})};PDFNet.X509Certificate.prototype.getIssuerField=function(){return PDFNet.sendWithPromise("X509Certificate.getIssuerField",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.X501DistinguishedName,id)})};PDFNet.X509Certificate.prototype.getSubjectField=function(){return PDFNet.sendWithPromise("X509Certificate.getSubjectField",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.X501DistinguishedName,id)})};PDFNet.X509Certificate.prototype.getNotBeforeEpochTime=
-function(){return PDFNet.sendWithPromise("X509Certificate.getNotBeforeEpochTime",{self:this.id})};PDFNet.X509Certificate.prototype.getNotAfterEpochTime=function(){return PDFNet.sendWithPromise("X509Certificate.getNotAfterEpochTime",{self:this.id})};PDFNet.X509Certificate.prototype.getRawX509VersionNumber=function(){return PDFNet.sendWithPromise("X509Certificate.getRawX509VersionNumber",{self:this.id})};PDFNet.X509Certificate.prototype.toString=function(){return PDFNet.sendWithPromise("X509Certificate.toString",
-{self:this.id})};PDFNet.X509Certificate.prototype.getFingerprint=function(in_digest_algorithm){"undefined"===typeof in_digest_algorithm&&(in_digest_algorithm=PDFNet.DigestAlgorithm.Type.e_SHA256);checkArguments(arguments.length,0,"getFingerprint","(number)",[[in_digest_algorithm,"number"]]);return PDFNet.sendWithPromise("X509Certificate.getFingerprint",{self:this.id,in_digest_algorithm:in_digest_algorithm})};PDFNet.X509Certificate.prototype.getSerialNumber=function(){return PDFNet.sendWithPromise("X509Certificate.getSerialNumber",
-{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.X509Certificate.prototype.getExtensions=function(){return PDFNet.sendWithPromise("X509Certificate.getExtensions",{self:this.id}).then(function(idArray){for(var retArray=[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.X509Extension(id);retArray.push(id);createdObjects.push({name:id.name,id:id.id})}return retArray})};PDFNet.X509Certificate.prototype.getData=function(){return PDFNet.sendWithPromise("X509Certificate.getData",
-{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.TimestampingConfiguration.createFromURL=function(in_url){checkArguments(arguments.length,1,"createFromURL","(string)",[[in_url,"string"]]);return PDFNet.sendWithPromise("timestampingConfigurationCreateFromURL",{in_url:in_url}).then(function(id){return createDestroyableObj(PDFNet.TimestampingConfiguration,id)})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerURL=function(in_url){checkArguments(arguments.length,
-1,"setTimestampAuthorityServerURL","(string)",[[in_url,"string"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerURL",{self:this.id,in_url:in_url})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerUsername=function(in_username){checkArguments(arguments.length,1,"setTimestampAuthorityServerUsername","(string)",[[in_username,"string"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerUsername",{self:this.id,
-in_username:in_username})};PDFNet.TimestampingConfiguration.prototype.setTimestampAuthorityServerPassword=function(in_password){checkArguments(arguments.length,1,"setTimestampAuthorityServerPassword","(string)",[[in_password,"string"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setTimestampAuthorityServerPassword",{self:this.id,in_password:in_password})};PDFNet.TimestampingConfiguration.prototype.setUseNonce=function(in_use_nonce){checkArguments(arguments.length,1,"setUseNonce","(boolean)",
-[[in_use_nonce,"boolean"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.setUseNonce",{self:this.id,in_use_nonce:in_use_nonce})};PDFNet.TimestampingConfiguration.prototype.testConfiguration=function(in_opts){checkArguments(arguments.length,1,"testConfiguration","(PDFNet.VerificationOptions)",[[in_opts,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);return PDFNet.sendWithPromise("TimestampingConfiguration.testConfiguration",{self:this.id,in_opts:in_opts.id}).then(function(id){return createDestroyableObj(PDFNet.TimestampingResult,
-id)})};PDFNet.DigitalSignatureField.prototype.hasCryptographicSignature=function(){checkThisYieldFunction("hasCryptographicSignature",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.hasCryptographicSignature",{self:this})};PDFNet.DigitalSignatureField.prototype.getSubFilter=function(){checkThisYieldFunction("getSubFilter",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getSubFilter",{self:this})};PDFNet.DigitalSignatureField.prototype.getSignatureName=
-function(){checkThisYieldFunction("getSignatureName",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getSignatureName",{self:this})};PDFNet.DigitalSignatureField.prototype.getLocation=function(){checkThisYieldFunction("getLocation",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getLocation",{self:this})};PDFNet.DigitalSignatureField.prototype.getReason=function(){checkThisYieldFunction("getReason",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getReason",
-{self:this})};PDFNet.DigitalSignatureField.prototype.getContactInfo=function(){checkThisYieldFunction("getContactInfo",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getContactInfo",{self:this})};PDFNet.DigitalSignatureField.prototype.getCertCount=function(){checkThisYieldFunction("getCertCount",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getCertCount",{self:this})};PDFNet.DigitalSignatureField.prototype.hasVisibleAppearance=function(){checkThisYieldFunction("hasVisibleAppearance",
-this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.hasVisibleAppearance",{self:this})};PDFNet.DigitalSignatureField.prototype.setContactInfo=function(in_contact_info){checkArguments(arguments.length,1,"setContactInfo","(string)",[[in_contact_info,"string"]]);checkThisYieldFunction("setContactInfo",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setContactInfo";return PDFNet.sendWithPromise("DigitalSignatureField.setContactInfo",{self:this,in_contact_info:in_contact_info}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setLocation=function(in_location){checkArguments(arguments.length,1,"setLocation","(string)",[[in_location,"string"]]);checkThisYieldFunction("setLocation",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setLocation";return PDFNet.sendWithPromise("DigitalSignatureField.setLocation",{self:this,in_location:in_location}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setReason=
-function(in_reason){checkArguments(arguments.length,1,"setReason","(string)",[[in_reason,"string"]]);checkThisYieldFunction("setReason",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setReason";return PDFNet.sendWithPromise("DigitalSignatureField.setReason",{self:this,in_reason:in_reason}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setDocumentPermissions=function(in_perms){checkArguments(arguments.length,1,"setDocumentPermissions",
-"(number)",[[in_perms,"number"]]);checkThisYieldFunction("setDocumentPermissions",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setDocumentPermissions";return PDFNet.sendWithPromise("DigitalSignatureField.setDocumentPermissions",{self:this,in_perms:in_perms}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSave=function(in_pkcs12_keyfile_path,in_password){checkArguments(arguments.length,2,"signOnNextSave","(string, string)",
-[[in_pkcs12_keyfile_path,"string"],[in_password,"string"]]);checkThisYieldFunction("signOnNextSave",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSave";return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSave",{self:this,in_pkcs12_keyfile_path:in_pkcs12_keyfile_path,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSave=function(in_pkcs12_keyfile_path,in_password){checkArguments(arguments.length,
-2,"certifyOnNextSave","(string, string)",[[in_pkcs12_keyfile_path,"string"],[in_password,"string"]]);checkThisYieldFunction("certifyOnNextSave",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSave";return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSave",{self:this,in_pkcs12_keyfile_path:in_pkcs12_keyfile_path,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.isLockedByDigitalSignature=
-function(){checkThisYieldFunction("isLockedByDigitalSignature",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.isLockedByDigitalSignature",{self:this})};PDFNet.DigitalSignatureField.prototype.getDocumentPermissions=function(){checkThisYieldFunction("getDocumentPermissions",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getDocumentPermissions",{self:this})};PDFNet.DigitalSignatureField.prototype.clearSignature=function(){checkThisYieldFunction("clearSignature",
-this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.clearSignature";return PDFNet.sendWithPromise("DigitalSignatureField.clearSignature",{self:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.createFromField=function(in_field){checkArguments(arguments.length,1,"createFromField","(PDFNet.Field)",[[in_field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createFromField",[[in_field,0]]);return PDFNet.sendWithPromise("digitalSignatureFieldCreateFromField",
-{in_field:in_field}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.DigitalSignatureField.prototype.getSigningTime=function(){checkThisYieldFunction("getSigningTime",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getSigningTime",{self:this}).then(function(id){return new PDFNet.Date(id)})};PDFNet.DigitalSignatureField.prototype.getCert=function(in_index){checkArguments(arguments.length,1,"getCert","(number)",[[in_index,"number"]]);checkThisYieldFunction("getCert",
-this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getCert",{self:this,in_index:in_index}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.prototype.setFieldPermissions=function(in_action,in_field_names_list){"undefined"===typeof in_field_names_list&&(in_field_names_list=[]);checkArguments(arguments.length,1,"setFieldPermissions","(number, Array<string>)",[[in_action,"number"],[in_field_names_list,"Array"]]);checkThisYieldFunction("setFieldPermissions",
-this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setFieldPermissions";return PDFNet.sendWithPromise("DigitalSignatureField.setFieldPermissions",{self:this,in_action:in_action,in_field_names_list:in_field_names_list}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveFromBuffer=function(in_pkcs12_buffer,in_password){checkArguments(arguments.length,2,"signOnNextSaveFromBuffer","(ArrayBuffer|TypedArray, string)",
-[[in_pkcs12_buffer,"ArrayBuffer"],[in_password,"string"]]);checkThisYieldFunction("signOnNextSaveFromBuffer",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSaveFromBuffer";var in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer,!1);return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSaveFromBuffer",{self:this,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveWithCustomHandler=
-function(in_signature_handler_id){checkArguments(arguments.length,1,"signOnNextSaveWithCustomHandler","(number)",[[in_signature_handler_id,"number"]]);checkThisYieldFunction("signOnNextSaveWithCustomHandler",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.signOnNextSaveWithCustomHandler";return PDFNet.sendWithPromise("DigitalSignatureField.signOnNextSaveWithCustomHandler",{self:this,in_signature_handler_id:in_signature_handler_id}).then(function(id){me.yieldFunction=void 0;
-copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveFromBuffer=function(in_pkcs12_buffer,in_password){checkArguments(arguments.length,2,"certifyOnNextSaveFromBuffer","(ArrayBuffer|TypedArray, string)",[[in_pkcs12_buffer,"ArrayBuffer"],[in_password,"string"]]);checkThisYieldFunction("certifyOnNextSaveFromBuffer",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSaveFromBuffer";var in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer,
-!1);return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSaveFromBuffer",{self:this,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_password:in_password}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveWithCustomHandler=function(in_signature_handler_id){checkArguments(arguments.length,1,"certifyOnNextSaveWithCustomHandler","(number)",[[in_signature_handler_id,"number"]]);checkThisYieldFunction("certifyOnNextSaveWithCustomHandler",
-this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.certifyOnNextSaveWithCustomHandler";return PDFNet.sendWithPromise("DigitalSignatureField.certifyOnNextSaveWithCustomHandler",{self:this,in_signature_handler_id:in_signature_handler_id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.getSDFObj=function(){checkThisYieldFunction("getSDFObj",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getSDFObj",{self:this}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.DigitalSignatureField.prototype.getLockedFields=function(){checkThisYieldFunction("getLockedFields",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getLockedFields",{self:this})};PDFNet.DigitalSignatureField.prototype.verify=function(in_opts){checkArguments(arguments.length,1,"verify","(PDFNet.VerificationOptions)",[[in_opts,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);checkThisYieldFunction("verify",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.verify",
-{self:this,in_opts:in_opts.id}).then(function(id){return createDestroyableObj(PDFNet.VerificationResult,id)})};PDFNet.DigitalSignatureField.prototype.isCertification=function(){checkThisYieldFunction("isCertification",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.isCertification",{self:this})};PDFNet.DigitalSignatureField.prototype.getSignerCertFromCMS=function(){checkThisYieldFunction("getSignerCertFromCMS",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getSignerCertFromCMS",
-{self:this}).then(function(id){return createDestroyableObj(PDFNet.X509Certificate,id)})};PDFNet.DigitalSignatureField.prototype.getByteRanges=function(){checkThisYieldFunction("getByteRanges",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getByteRanges",{self:this}).then(function(idArray){for(var retArray=[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.ByteRange(id);retArray.push(id)}return retArray})};PDFNet.DigitalSignatureField.prototype.enableLTVOfflineVerification=
-function(in_verification_result){checkArguments(arguments.length,1,"enableLTVOfflineVerification","(PDFNet.VerificationResult)",[[in_verification_result,"Object",PDFNet.VerificationResult,"VerificationResult"]]);checkThisYieldFunction("enableLTVOfflineVerification",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.enableLTVOfflineVerification",{self:this,in_verification_result:in_verification_result.id})};PDFNet.DigitalSignatureField.prototype.timestampOnNextSave=function(in_timestamping_config,
-in_timestamp_response_verification_options){checkArguments(arguments.length,2,"timestampOnNextSave","(PDFNet.TimestampingConfiguration, PDFNet.VerificationOptions)",[[in_timestamping_config,"Object",PDFNet.TimestampingConfiguration,"TimestampingConfiguration"],[in_timestamp_response_verification_options,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);checkThisYieldFunction("timestampOnNextSave",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.timestampOnNextSave",
-{self:this,in_timestamping_config:in_timestamping_config.id,in_timestamp_response_verification_options:in_timestamp_response_verification_options.id})};PDFNet.DigitalSignatureField.prototype.generateContentsWithEmbeddedTimestamp=function(in_timestamping_config,in_timestamp_response_verification_options){checkArguments(arguments.length,2,"generateContentsWithEmbeddedTimestamp","(PDFNet.TimestampingConfiguration, PDFNet.VerificationOptions)",[[in_timestamping_config,"Object",PDFNet.TimestampingConfiguration,
-"TimestampingConfiguration"],[in_timestamp_response_verification_options,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);checkThisYieldFunction("generateContentsWithEmbeddedTimestamp",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.generateContentsWithEmbeddedTimestamp",{self:this,in_timestamping_config:in_timestamping_config.id,in_timestamp_response_verification_options:in_timestamp_response_verification_options.id}).then(function(id){return createDestroyableObj(PDFNet.TimestampingResult,
-id)})};PDFNet.DigitalSignatureField.prototype.useSubFilter=function(in_subfilter_type,in_make_mandatory){"undefined"===typeof in_make_mandatory&&(in_make_mandatory=!0);checkArguments(arguments.length,1,"useSubFilter","(number, boolean)",[[in_subfilter_type,"number"],[in_make_mandatory,"boolean"]]);checkThisYieldFunction("useSubFilter",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.useSubFilter";return PDFNet.sendWithPromise("DigitalSignatureField.useSubFilter",{self:this,
-in_subfilter_type:in_subfilter_type,in_make_mandatory:in_make_mandatory}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.calculateDigest=function(in_digest_algorithm_type){"undefined"===typeof in_digest_algorithm_type&&(in_digest_algorithm_type=PDFNet.DigestAlgorithm.Type.e_SHA256);checkArguments(arguments.length,0,"calculateDigest","(number)",[[in_digest_algorithm_type,"number"]]);checkThisYieldFunction("calculateDigest",this.yieldFunction);var me=
-this;this.yieldFunction="DigitalSignatureField.calculateDigest";return PDFNet.sendWithPromise("DigitalSignatureField.calculateDigest",{self:this,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){me.yieldFunction=void 0;id.result=new Uint8Array(id.result);copyFunc(id.self,me);return id.result})};PDFNet.DigitalSignatureField.prototype.setPreferredDigestAlgorithm=function(in_digest_algorithm_type,in_make_mandatory){"undefined"===typeof in_make_mandatory&&(in_make_mandatory=!0);checkArguments(arguments.length,
-1,"setPreferredDigestAlgorithm","(number, boolean)",[[in_digest_algorithm_type,"number"],[in_make_mandatory,"boolean"]]);checkThisYieldFunction("setPreferredDigestAlgorithm",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.setPreferredDigestAlgorithm";return PDFNet.sendWithPromise("DigitalSignatureField.setPreferredDigestAlgorithm",{self:this,in_digest_algorithm_type:in_digest_algorithm_type,in_make_mandatory:in_make_mandatory}).then(function(id){me.yieldFunction=void 0;copyFunc(id,
-me)})};PDFNet.DigitalSignatureField.prototype.createSigDictForCustomCertification=function(in_filter_name,in_subfilter_type,in_contents_size_to_reserve){checkArguments(arguments.length,3,"createSigDictForCustomCertification","(string, number, number)",[[in_filter_name,"string"],[in_subfilter_type,"number"],[in_contents_size_to_reserve,"number"]]);checkThisYieldFunction("createSigDictForCustomCertification",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.createSigDictForCustomCertification";
-return PDFNet.sendWithPromise("DigitalSignatureField.createSigDictForCustomCertification",{self:this,in_filter_name:in_filter_name,in_subfilter_type:in_subfilter_type,in_contents_size_to_reserve:in_contents_size_to_reserve}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.createSigDictForCustomSigning=function(in_filter_name,in_subfilter_type,in_contents_size_to_reserve){checkArguments(arguments.length,3,"createSigDictForCustomSigning","(string, number, number)",
-[[in_filter_name,"string"],[in_subfilter_type,"number"],[in_contents_size_to_reserve,"number"]]);checkThisYieldFunction("createSigDictForCustomSigning",this.yieldFunction);var me=this;this.yieldFunction="DigitalSignatureField.createSigDictForCustomSigning";return PDFNet.sendWithPromise("DigitalSignatureField.createSigDictForCustomSigning",{self:this,in_filter_name:in_filter_name,in_subfilter_type:in_subfilter_type,in_contents_size_to_reserve:in_contents_size_to_reserve}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.prototype.setSigDictTimeOfSigning=function(in_date){checkArguments(arguments.length,1,"setSigDictTimeOfSigning","(PDFNet.Date)",[[in_date,"Structure",PDFNet.Date,"Date"]]);checkThisYieldFunction("setSigDictTimeOfSigning",this.yieldFunction);checkParamsYieldFunction("setSigDictTimeOfSigning",[[in_date,0]]);var me=this;this.yieldFunction="DigitalSignatureField.setSigDictTimeOfSigning";return PDFNet.sendWithPromise("DigitalSignatureField.setSigDictTimeOfSigning",
-{self:this,in_date:in_date}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.DigitalSignatureField.signDigestBuffer=function(in_digest,in_pkcs12_buffer,in_keyfile_password,in_pades_mode,in_digest_algorithm_type){checkArguments(arguments.length,5,"signDigestBuffer","(ArrayBuffer|TypedArray, ArrayBuffer|TypedArray, string, boolean, number)",[[in_digest,"ArrayBuffer"],[in_pkcs12_buffer,"ArrayBuffer"],[in_keyfile_password,"string"],[in_pades_mode,"boolean"],[in_digest_algorithm_type,
-"number"]]);var in_digestArrayBuffer=getArrayBuffer(in_digest,!1),in_pkcs12_bufferArrayBuffer=getArrayBuffer(in_pkcs12_buffer,!1);return PDFNet.sendWithPromise("digitalSignatureFieldSignDigestBuffer",{in_digest_buf:in_digestArrayBuffer,in_pkcs12_buffer:in_pkcs12_bufferArrayBuffer,in_keyfile_password:in_keyfile_password,in_pades_mode:in_pades_mode,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateESSSigningCertPAdESAttribute=
-function(in_signer_cert,in_digest_algorithm_type){checkArguments(arguments.length,2,"generateESSSigningCertPAdESAttribute","(PDFNet.X509Certificate, number)",[[in_signer_cert,"Object",PDFNet.X509Certificate,"X509Certificate"],[in_digest_algorithm_type,"number"]]);return PDFNet.sendWithPromise("digitalSignatureFieldGenerateESSSigningCertPAdESAttribute",{in_signer_cert:in_signer_cert.id,in_digest_algorithm_type:in_digest_algorithm_type}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateCMSSignedAttributes=
-function(in_digest_buf,in_custom_signedattributes_buf){"undefined"===typeof in_custom_signedattributes_buf&&(in_custom_signedattributes_buf=new ArrayBuffer(0));checkArguments(arguments.length,1,"generateCMSSignedAttributes","(ArrayBuffer|TypedArray, ArrayBuffer|TypedArray)",[[in_digest_buf,"ArrayBuffer"],[in_custom_signedattributes_buf,"ArrayBuffer"]]);var in_digest_bufArrayBuffer=getArrayBuffer(in_digest_buf,!1),in_custom_signedattributes_bufArrayBuffer=getArrayBuffer(in_custom_signedattributes_buf,
-!1);return PDFNet.sendWithPromise("digitalSignatureFieldGenerateCMSSignedAttributes",{in_digest_buf:in_digest_bufArrayBuffer,in_custom_signedattributes_buf:in_custom_signedattributes_bufArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.DigitalSignatureField.generateCMSSignature=function(in_signer_cert,in_chain_certs_list,in_digest_algorithm_oid,in_signature_algorithm_oid,in_signature_value_buf,in_signedattributes_buf){checkArguments(arguments.length,6,"generateCMSSignature","(PDFNet.X509Certificate, Array<Core.PDFNet.X509Certificate>, PDFNet.ObjectIdentifier, PDFNet.ObjectIdentifier, ArrayBuffer|TypedArray, ArrayBuffer|TypedArray)",
-[[in_signer_cert,"Object",PDFNet.X509Certificate,"X509Certificate"],[in_chain_certs_list,"Array"],[in_digest_algorithm_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"],[in_signature_algorithm_oid,"Object",PDFNet.ObjectIdentifier,"ObjectIdentifier"],[in_signature_value_buf,"ArrayBuffer"],[in_signedattributes_buf,"ArrayBuffer"]]);var in_signature_value_bufArrayBuffer=getArrayBuffer(in_signature_value_buf,!1),in_signedattributes_bufArrayBuffer=getArrayBuffer(in_signedattributes_buf,!1);in_chain_certs_list=
-Array.from(in_chain_certs_list,function(x){return x.id});return PDFNet.sendWithPromise("digitalSignatureFieldGenerateCMSSignature",{in_signer_cert:in_signer_cert.id,in_chain_certs_list:in_chain_certs_list,in_digest_algorithm_oid:in_digest_algorithm_oid.id,in_signature_algorithm_oid:in_signature_algorithm_oid.id,in_signature_value_buf:in_signature_value_bufArrayBuffer,in_signedattributes_buf:in_signedattributes_bufArrayBuffer}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.getTriggerAction=
-function(trigger){checkArguments(arguments.length,1,"getTriggerAction","(number)",[[trigger,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getTriggerAction",{doc:this.id,trigger:trigger}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.create=function(){return PDFNet.sendWithPromise("pdfDocCreate",{}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.createFromFilter=function(stream){checkArguments(arguments.length,1,"createFromFilter","(PDFNet.Filter)",
-[[stream,"Object",PDFNet.Filter,"Filter"]]);0!=stream.id&&avoidCleanup(stream.id);return PDFNet.sendWithPromise("pdfDocCreateFromFilter",{no_own_stream:stream.id}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.createFromBuffer=function(buf){checkArguments(arguments.length,1,"createFromBuffer","(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("pdfDocCreateFromBuffer",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,
-id)})};PDFNet.PDFDoc.createFromLayoutEls=function(buf){checkArguments(arguments.length,1,"createFromLayoutEls","(ArrayBuffer|TypedArray)",[[buf,"ArrayBuffer"]]);var bufArrayBuffer=getArrayBuffer(buf,!1);return PDFNet.sendWithPromise("pdfDocCreateFromLayoutEls",{buf:bufArrayBuffer}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,id)})};PDFNet.PDFDoc.prototype.createShallowCopy=function(){return PDFNet.sendWithPromise("PDFDoc.createShallowCopy",{source:this.id}).then(function(id){return createDestroyableObj(PDFNet.PDFDoc,
-id)})};PDFNet.PDFDoc.prototype.isEncrypted=function(){return PDFNet.sendWithPromise("PDFDoc.isEncrypted",{doc:this.id})};PDFNet.PDFDoc.prototype.initStdSecurityHandlerUString=function(password){checkArguments(arguments.length,1,"initStdSecurityHandlerUString","(string)",[[password,"string"]]);return PDFNet.sendWithPromise("PDFDoc.initStdSecurityHandlerUString",{doc:this.id,password:password})};PDFNet.PDFDoc.prototype.initStdSecurityHandlerBuffer=function(password_buf){checkArguments(arguments.length,
-1,"initStdSecurityHandlerBuffer","(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,!1);return PDFNet.sendWithPromise("PDFDoc.initStdSecurityHandlerBuffer",{doc:this.id,password_buf:password_bufArrayBuffer})};PDFNet.PDFDoc.prototype.getSecurityHandler=function(){return PDFNet.sendWithPromise("PDFDoc.getSecurityHandler",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SecurityHandler,id)})};PDFNet.PDFDoc.prototype.setSecurityHandler=
-function(handler){checkArguments(arguments.length,1,"setSecurityHandler","(PDFNet.SecurityHandler)",[[handler,"Object",PDFNet.SecurityHandler,"SecurityHandler"]]);0!=handler.id&&avoidCleanup(handler.id);return PDFNet.sendWithPromise("PDFDoc.setSecurityHandler",{doc:this.id,no_own_handler:handler.id})};PDFNet.PDFDoc.prototype.removeSecurity=function(){return PDFNet.sendWithPromise("PDFDoc.removeSecurity",{doc:this.id})};PDFNet.PDFDoc.prototype.getDocInfo=function(){return PDFNet.sendWithPromise("PDFDoc.getDocInfo",
-{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDoc.prototype.getViewPrefs=function(){return PDFNet.sendWithPromise("PDFDoc.getViewPrefs",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs,id)})};PDFNet.PDFDoc.prototype.isModified=function(){return PDFNet.sendWithPromise("PDFDoc.isModified",{doc:this.id})};PDFNet.PDFDoc.prototype.hasRepairedXRef=function(){return PDFNet.sendWithPromise("PDFDoc.hasRepairedXRef",{doc:this.id})};
-PDFNet.PDFDoc.prototype.isLinearized=function(){return PDFNet.sendWithPromise("PDFDoc.isLinearized",{doc:this.id})};PDFNet.PDFDoc.prototype.saveMemoryBuffer=function(flags){checkArguments(arguments.length,1,"saveMemoryBuffer","(number)",[[flags,"number"]]);return PDFNet.sendWithPromise("PDFDoc.saveMemoryBuffer",{doc:this.id,flags:flags}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.saveStream=function(stream,flags){checkArguments(arguments.length,2,"saveStream","(PDFNet.Filter, number)",
-[[stream,"Object",PDFNet.Filter,"Filter"],[flags,"number"]]);return PDFNet.sendWithPromise("PDFDoc.saveStream",{doc:this.id,stream:stream.id,flags:flags})};PDFNet.PDFDoc.prototype.saveCustomSignatureBuffer=function(in_signature,in_field){checkArguments(arguments.length,2,"saveCustomSignatureBuffer","(ArrayBuffer|TypedArray, PDFNet.DigitalSignatureField)",[[in_signature,"ArrayBuffer"],[in_field,"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]]);checkParamsYieldFunction("saveCustomSignatureBuffer",
-[[in_field,1]]);var in_signatureArrayBuffer=getArrayBuffer(in_signature,!1);return PDFNet.sendWithPromise("PDFDoc.saveCustomSignatureBuffer",{doc:this.id,in_signature_buf:in_signatureArrayBuffer,in_field:in_field}).then(function(id){return new Uint8Array(id)})};PDFNet.PDFDoc.prototype.saveCustomSignatureStream=function(in_signature,in_field){checkArguments(arguments.length,2,"saveCustomSignatureStream","(ArrayBuffer|TypedArray, PDFNet.DigitalSignatureField)",[[in_signature,"ArrayBuffer"],[in_field,
-"Structure",PDFNet.DigitalSignatureField,"DigitalSignatureField"]]);checkParamsYieldFunction("saveCustomSignatureStream",[[in_field,1]]);var in_signatureArrayBuffer=getArrayBuffer(in_signature,!1);return PDFNet.sendWithPromise("PDFDoc.saveCustomSignatureStream",{doc:this.id,in_signature_buf:in_signatureArrayBuffer,in_field:in_field}).then(function(id){return createDestroyableObj(PDFNet.Filter,id)})};PDFNet.PDFDoc.prototype.getPageIterator=function(page_number){"undefined"===typeof page_number&&(page_number=
-1);checkArguments(arguments.length,0,"getPageIterator","(number)",[[page_number,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPageIterator",{doc:this.id,page_number:page_number}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Page")})};PDFNet.PDFDoc.prototype.getPage=function(page_number){checkArguments(arguments.length,1,"getPage","(number)",[[page_number,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPage",{doc:this.id,page_number:page_number}).then(function(id){return createPDFNetObj(PDFNet.Page,
-id)})};PDFNet.PDFDoc.prototype.pageRemove=function(page_itr){checkArguments(arguments.length,1,"pageRemove","(PDFNet.Iterator)",[[page_itr,"Object",PDFNet.Iterator,"Iterator"]]);return PDFNet.sendWithPromise("PDFDoc.pageRemove",{doc:this.id,page_itr:page_itr.id})};PDFNet.PDFDoc.prototype.pageInsert=function(where,page){checkArguments(arguments.length,2,"pageInsert","(PDFNet.Iterator, PDFNet.Page)",[[where,"Object",PDFNet.Iterator,"Iterator"],[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pageInsert",
-{doc:this.id,where:where.id,page:page.id})};PDFNet.PDFDoc.prototype.insertPages=function(insert_before_page_number,src_doc,start_page,end_page,flag){checkArguments(arguments.length,5,"insertPages","(number, PDFNet.PDFDoc, number, number, number)",[[insert_before_page_number,"number"],[src_doc,"PDFDoc"],[start_page,"number"],[end_page,"number"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.insertPages",{dest_doc:this.id,insert_before_page_number:insert_before_page_number,src_doc:src_doc.id,
-start_page:start_page,end_page:end_page,flag:flag})};PDFNet.PDFDoc.prototype.insertPageSet=function(insert_before_page_number,src_doc,source_page_set,flag){checkArguments(arguments.length,4,"insertPageSet","(number, PDFNet.PDFDoc, PDFNet.PageSet, number)",[[insert_before_page_number,"number"],[src_doc,"PDFDoc"],[source_page_set,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.insertPageSet",{dest_doc:this.id,insert_before_page_number:insert_before_page_number,
-src_doc:src_doc.id,source_page_set:source_page_set.id,flag:flag})};PDFNet.PDFDoc.prototype.movePages=function(move_before_page_number,src_doc,start_page,end_page,flag){checkArguments(arguments.length,5,"movePages","(number, PDFNet.PDFDoc, number, number, number)",[[move_before_page_number,"number"],[src_doc,"PDFDoc"],[start_page,"number"],[end_page,"number"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.movePages",{dest_doc:this.id,move_before_page_number:move_before_page_number,src_doc:src_doc.id,
-start_page:start_page,end_page:end_page,flag:flag})};PDFNet.PDFDoc.prototype.movePageSet=function(move_before_page_number,src_doc,source_page_set,flag){checkArguments(arguments.length,4,"movePageSet","(number, PDFNet.PDFDoc, PDFNet.PageSet, number)",[[move_before_page_number,"number"],[src_doc,"PDFDoc"],[source_page_set,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.movePageSet",{dest_doc:this.id,move_before_page_number:move_before_page_number,src_doc:src_doc.id,
-source_page_set:source_page_set.id,flag:flag})};PDFNet.PDFDoc.prototype.pagePushFront=function(page){checkArguments(arguments.length,1,"pagePushFront","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pagePushFront",{doc:this.id,page:page.id})};PDFNet.PDFDoc.prototype.pagePushBack=function(page){checkArguments(arguments.length,1,"pagePushBack","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.pagePushBack",{doc:this.id,
-page:page.id})};PDFNet.PDFDoc.prototype.pageCreate=function(media_box){"undefined"===typeof media_box&&(media_box=new PDFNet.Rect(0,0,612,792));checkArguments(arguments.length,0,"pageCreate","(PDFNet.Rect)",[[media_box,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("pageCreate",[[media_box,0]]);return PDFNet.sendWithPromise("PDFDoc.pageCreate",{doc:this.id,media_box:media_box}).then(function(id){return createPDFNetObj(PDFNet.Page,id)})};PDFNet.PDFDoc.prototype.appendTextDiffPage=function(page1,
-page2){checkArguments(arguments.length,2,"appendTextDiffPage","(PDFNet.Page, PDFNet.Page)",[[page1,"Object",PDFNet.Page,"Page"],[page2,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDoc.appendTextDiffPage",{doc:this.id,page1:page1.id,page2:page2.id})};PDFNet.PDFDoc.prototype.appendTextDiffDoc=function(doc1,doc2,options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,2,"appendTextDiffDoc","(PDFNet.PDFDoc, PDFNet.PDFDoc, PDFNet.OptionBase)",[[doc1,"PDFDoc"],
-[doc2,"PDFDoc"],[options,"OptionBase"]]);checkParamsYieldFunction("appendTextDiffDoc",[[options,2]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.appendTextDiffDoc",{doc:this.id,doc1:doc1.id,doc2:doc2.id,options:options})};PDFNet.PDFDoc.highlightTextDiff=function(doc1,doc2,options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,2,"highlightTextDiff","(PDFNet.PDFDoc, PDFNet.PDFDoc, PDFNet.OptionBase)",[[doc1,"PDFDoc"],[doc2,"PDFDoc"],
-[options,"OptionBase"]]);checkParamsYieldFunction("highlightTextDiff",[[options,2]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("pdfDocHighlightTextDiff",{doc1:doc1.id,doc2:doc2.id,options:options})};PDFNet.PDFDoc.prototype.getFirstBookmark=function(){return PDFNet.sendWithPromise("PDFDoc.getFirstBookmark",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Bookmark,id)})};PDFNet.PDFDoc.prototype.addRootBookmark=function(root_bookmark){checkArguments(arguments.length,
-1,"addRootBookmark","(PDFNet.Bookmark)",[[root_bookmark,"Object",PDFNet.Bookmark,"Bookmark"]]);return PDFNet.sendWithPromise("PDFDoc.addRootBookmark",{doc:this.id,root_bookmark:root_bookmark.id})};PDFNet.PDFDoc.prototype.getTrailer=function(){return PDFNet.sendWithPromise("PDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getRoot=function(){return PDFNet.sendWithPromise("PDFDoc.getRoot",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.PDFDoc.prototype.jsContextInitialize=function(){return PDFNet.sendWithPromise("PDFDoc.jsContextInitialize",{doc:this.id})};PDFNet.PDFDoc.prototype.getPages=function(){return PDFNet.sendWithPromise("PDFDoc.getPages",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getPageCount=function(){return PDFNet.sendWithPromise("PDFDoc.getPageCount",{doc:this.id})};PDFNet.PDFDoc.prototype.getDownloadedByteCount=function(){return PDFNet.sendWithPromise("PDFDoc.getDownloadedByteCount",
-{doc:this.id})};PDFNet.PDFDoc.prototype.getTotalRemoteByteCount=function(){return PDFNet.sendWithPromise("PDFDoc.getTotalRemoteByteCount",{doc:this.id})};PDFNet.PDFDoc.prototype.getFieldIteratorBegin=function(){return PDFNet.sendWithPromise("PDFDoc.getFieldIteratorBegin",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Field")})};PDFNet.PDFDoc.prototype.getFieldIterator=function(field_name){checkArguments(arguments.length,1,"getFieldIterator","(string)",[[field_name,
-"string"]]);return PDFNet.sendWithPromise("PDFDoc.getFieldIterator",{doc:this.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"Field")})};PDFNet.PDFDoc.prototype.getField=function(field_name){checkArguments(arguments.length,1,"getField","(string)",[[field_name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.getField",{doc:this.id,field_name:field_name}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.fieldCreate=function(field_name,
-type,field_value,def_field_value){"undefined"===typeof field_value&&(field_value=new PDFNet.Obj("0"));"undefined"===typeof def_field_value&&(def_field_value=new PDFNet.Obj("0"));checkArguments(arguments.length,2,"fieldCreate","(string, number, PDFNet.Obj, PDFNet.Obj)",[[field_name,"string"],[type,"number"],[field_value,"Object",PDFNet.Obj,"Obj"],[def_field_value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("PDFDoc.fieldCreate",{doc:this.id,field_name:field_name,type:type,field_value:field_value.id,
-def_field_value:def_field_value.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.fieldCreateFromStrings=function(field_name,type,field_value,def_field_value){"undefined"===typeof def_field_value&&(def_field_value="");checkArguments(arguments.length,3,"fieldCreateFromStrings","(string, number, string, string)",[[field_name,"string"],[type,"number"],[field_value,"string"],[def_field_value,"string"]]);return PDFNet.sendWithPromise("PDFDoc.fieldCreateFromStrings",{doc:this.id,
-field_name:field_name,type:type,field_value:field_value,def_field_value:def_field_value}).then(function(id){return new PDFNet.Field(id)})};PDFNet.PDFDoc.prototype.refreshFieldAppearances=function(){return PDFNet.sendWithPromise("PDFDoc.refreshFieldAppearances",{doc:this.id})};PDFNet.PDFDoc.prototype.refreshAnnotAppearances=function(options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,0,"refreshAnnotAppearances","(PDFNet.OptionBase)",[[options,"OptionBase"]]);checkParamsYieldFunction("refreshAnnotAppearances",
-[[options,0]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.refreshAnnotAppearances",{doc:this.id,options:options})};PDFNet.PDFDoc.prototype.flattenAnnotations=function(forms_only){"undefined"===typeof forms_only&&(forms_only=!1);checkArguments(arguments.length,0,"flattenAnnotations","(boolean)",[[forms_only,"boolean"]]);return PDFNet.sendWithPromise("PDFDoc.flattenAnnotations",{doc:this.id,forms_only:forms_only})};PDFNet.PDFDoc.prototype.flattenAnnotationsAdvanced=
-function(flags){checkArguments(arguments.length,1,"flattenAnnotationsAdvanced","(number)",[[flags,"number"]]);return PDFNet.sendWithPromise("PDFDoc.flattenAnnotationsAdvanced",{doc:this.id,flags:flags})};PDFNet.PDFDoc.prototype.getAcroForm=function(){return PDFNet.sendWithPromise("PDFDoc.getAcroForm",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.fdfExtract=function(flag){"undefined"===typeof flag&&(flag=PDFNet.PDFDoc.ExtractFlag.e_forms_only);checkArguments(arguments.length,
-0,"fdfExtract","(number)",[[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.fdfExtract",{doc:this.id,flag:flag}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.PDFDoc.prototype.fdfExtractPageSet=function(pages_to_extract,flag){"undefined"===typeof flag&&(flag=PDFNet.PDFDoc.ExtractFlag.e_forms_only);checkArguments(arguments.length,1,"fdfExtractPageSet","(PDFNet.PageSet, number)",[[pages_to_extract,"Object",PDFNet.PageSet,"PageSet"],[flag,"number"]]);return PDFNet.sendWithPromise("PDFDoc.fdfExtractPageSet",
-{doc:this.id,pages_to_extract:pages_to_extract.id,flag:flag}).then(function(id){return createDestroyableObj(PDFNet.FDFDoc,id)})};PDFNet.PDFDoc.prototype.fdfMerge=function(fdf_doc){checkArguments(arguments.length,1,"fdfMerge","(PDFNet.FDFDoc)",[[fdf_doc,"FDFDoc"]]);return PDFNet.sendWithPromise("PDFDoc.fdfMerge",{doc:this.id,fdf_doc:fdf_doc.id})};PDFNet.PDFDoc.prototype.fdfUpdate=function(fdf_doc){checkArguments(arguments.length,1,"fdfUpdate","(PDFNet.FDFDoc)",[[fdf_doc,"FDFDoc"]]);return PDFNet.sendWithPromise("PDFDoc.fdfUpdate",
-{doc:this.id,fdf_doc:fdf_doc.id})};PDFNet.PDFDoc.prototype.getOpenAction=function(){return PDFNet.sendWithPromise("PDFDoc.getOpenAction",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.PDFDoc.prototype.setOpenAction=function(action){checkArguments(arguments.length,1,"setOpenAction","(PDFNet.Action)",[[action,"Object",PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("PDFDoc.setOpenAction",{doc:this.id,action:action.id})};PDFNet.PDFDoc.prototype.addFileAttachment=
-function(file_key,embedded_file){checkArguments(arguments.length,2,"addFileAttachment","(string, PDFNet.FileSpec)",[[file_key,"string"],[embedded_file,"Object",PDFNet.FileSpec,"FileSpec"]]);return PDFNet.sendWithPromise("PDFDoc.addFileAttachment",{doc:this.id,file_key:file_key,embedded_file:embedded_file.id})};PDFNet.PDFDoc.prototype.getPageLabel=function(page_num){checkArguments(arguments.length,1,"getPageLabel","(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getPageLabel",
-{doc:this.id,page_num:page_num}).then(function(id){return new PDFNet.PageLabel(id)})};PDFNet.PDFDoc.prototype.setPageLabel=function(page_num,label){checkArguments(arguments.length,2,"setPageLabel","(number, PDFNet.PageLabel)",[[page_num,"number"],[label,"Structure",PDFNet.PageLabel,"PageLabel"]]);checkParamsYieldFunction("setPageLabel",[[label,1]]);return PDFNet.sendWithPromise("PDFDoc.setPageLabel",{doc:this.id,page_num:page_num,label:label})};PDFNet.PDFDoc.prototype.removePageLabel=function(page_num){checkArguments(arguments.length,
-1,"removePageLabel","(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.removePageLabel",{doc:this.id,page_num:page_num})};PDFNet.PDFDoc.prototype.getStructTree=function(){return PDFNet.sendWithPromise("PDFDoc.getStructTree",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.STree,id)})};PDFNet.PDFDoc.prototype.hasOC=function(){return PDFNet.sendWithPromise("PDFDoc.hasOC",{doc:this.id})};PDFNet.PDFDoc.prototype.getOCGs=function(){return PDFNet.sendWithPromise("PDFDoc.getOCGs",
-{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getOCGConfig=function(){return PDFNet.sendWithPromise("PDFDoc.getOCGConfig",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.OCGConfig,id)})};PDFNet.PDFDoc.prototype.createIndirectName=function(name){checkArguments(arguments.length,1,"createIndirectName","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectName",{doc:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.PDFDoc.prototype.createIndirectArray=function(){return PDFNet.sendWithPromise("PDFDoc.createIndirectArray",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectBool=function(value){checkArguments(arguments.length,1,"createIndirectBool","(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectBool",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectDict=
-function(){return PDFNet.sendWithPromise("PDFDoc.createIndirectDict",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectNull=function(){return PDFNet.sendWithPromise("PDFDoc.createIndirectNull",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectNumber=function(value){checkArguments(arguments.length,1,"createIndirectNumber","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectNumber",
-{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectString=function(value,buf_size){checkArguments(arguments.length,2,"createIndirectString","(number, number)",[[value,"number"],[buf_size,"number"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectString",{doc:this.id,value:value,buf_size:buf_size}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStringFromUString=function(str){checkArguments(arguments.length,
-1,"createIndirectStringFromUString","(string)",[[str,"string"]]);return PDFNet.sendWithPromise("PDFDoc.createIndirectStringFromUString",{doc:this.id,str:str}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStreamFromFilter=function(data,filter_chain){"undefined"===typeof filter_chain&&(filter_chain=new PDFNet.Filter("0"));checkArguments(arguments.length,1,"createIndirectStreamFromFilter","(PDFNet.FilterReader, PDFNet.Filter)",[[data,"Object",PDFNet.FilterReader,
-"FilterReader"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("PDFDoc.createIndirectStreamFromFilter",{doc:this.id,data:data.id,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.createIndirectStream=function(data_buf,filter_chain){checkArguments(arguments.length,2,"createIndirectStream","(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data_buf,"ArrayBuffer"],
-[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("PDFDoc.createIndirectStream",{doc:this.id,data_buf:data_bufArrayBuffer,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDoc.prototype.getSDFDoc=function(){return PDFNet.sendWithPromise("PDFDoc.getSDFDoc",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,
-id)})};PDFNet.PDFDoc.prototype.unlock=function(){var me=this;return PDFNet.sendWithPromise("PDFDoc.unlock",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.PDFDoc.prototype.unlockRead=function(){var me=this;return PDFNet.sendWithPromise("PDFDoc.unlockRead",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.PDFDoc.prototype.addHighlights=function(hilite){checkArguments(arguments.length,1,"addHighlights","(string)",[[hilite,"string"]]);return PDFNet.sendWithPromise("PDFDoc.addHighlights",
-{doc:this.id,hilite:hilite})};PDFNet.PDFDoc.prototype.isTagged=function(){return PDFNet.sendWithPromise("PDFDoc.isTagged",{doc:this.id})};PDFNet.PDFDoc.prototype.hasSignatures=function(){return PDFNet.sendWithPromise("PDFDoc.hasSignatures",{doc:this.id})};PDFNet.PDFDoc.prototype.addSignatureHandler=function(signature_handler){checkArguments(arguments.length,1,"addSignatureHandler","(PDFNet.SignatureHandler)",[[signature_handler,"Object",PDFNet.SignatureHandler,"SignatureHandler"]]);return PDFNet.sendWithPromise("PDFDoc.addSignatureHandler",
-{doc:this.id,signature_handler:signature_handler.id})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromBuffer=function(pkcs12_buffer,pkcs12_pass){checkArguments(arguments.length,2,"addStdSignatureHandlerFromBuffer","(ArrayBuffer|TypedArray, string)",[[pkcs12_buffer,"ArrayBuffer"],[pkcs12_pass,"string"]]);var pkcs12_bufferArrayBuffer=getArrayBuffer(pkcs12_buffer,!1);return PDFNet.sendWithPromise("PDFDoc.addStdSignatureHandlerFromBuffer",{doc:this.id,pkcs12_buffer:pkcs12_bufferArrayBuffer,pkcs12_pass:pkcs12_pass})};
-PDFNet.PDFDoc.prototype.removeSignatureHandler=function(signature_handler_id){checkArguments(arguments.length,1,"removeSignatureHandler","(number)",[[signature_handler_id,"number"]]);return PDFNet.sendWithPromise("PDFDoc.removeSignatureHandler",{doc:this.id,signature_handler_id:signature_handler_id})};PDFNet.PDFDoc.prototype.getSignatureHandler=function(signature_handler_id){checkArguments(arguments.length,1,"getSignatureHandler","(number)",[[signature_handler_id,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getSignatureHandler",
-{doc:this.id,signature_handler_id:signature_handler_id}).then(function(id){return createPDFNetObj(PDFNet.SignatureHandler,id)})};PDFNet.PDFDoc.prototype.generateThumbnails=function(size){checkArguments(arguments.length,1,"generateThumbnails","(number)",[[size,"number"]]);return PDFNet.sendWithPromise("PDFDoc.generateThumbnails",{doc:this.id,size:size})};PDFNet.PDFDoc.prototype.appendVisualDiff=function(p1,p2,opts){"undefined"===typeof opts&&(opts=null);checkArguments(arguments.length,2,"appendVisualDiff",
-"(PDFNet.Page, PDFNet.Page, PDFNet.OptionBase)",[[p1,"Object",PDFNet.Page,"Page"],[p2,"Object",PDFNet.Page,"Page"],[opts,"OptionBase"]]);checkParamsYieldFunction("appendVisualDiff",[[opts,2]]);opts=opts?opts.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.appendVisualDiff",{doc:this.id,p1:p1.id,p2:p2.id,opts:opts})};PDFNet.PDFDoc.prototype.getGeometryCollectionForPage=function(page_num){checkArguments(arguments.length,1,"getGeometryCollectionForPage","(number)",[[page_num,"number"]]);return PDFNet.sendWithPromise("PDFDoc.getGeometryCollectionForPage",
-{in_pdfdoc:this.id,page_num:page_num}).then(function(id){return createDestroyableObj(PDFNet.GeometryCollection,id)})};PDFNet.PDFDoc.prototype.getUndoManager=function(){return PDFNet.sendWithPromise("PDFDoc.getUndoManager",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.UndoManager,id)})};PDFNet.PDFDoc.prototype.createDigitalSignatureField=function(in_sig_field_name){"undefined"===typeof in_sig_field_name&&(in_sig_field_name="");checkArguments(arguments.length,0,"createDigitalSignatureField",
-"(string)",[[in_sig_field_name,"string"]]);return PDFNet.sendWithPromise("PDFDoc.createDigitalSignatureField",{doc:this.id,in_sig_field_name:in_sig_field_name}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.PDFDoc.prototype.getDigitalSignatureFieldIteratorBegin=function(){return PDFNet.sendWithPromise("PDFDoc.getDigitalSignatureFieldIteratorBegin",{doc:this.id}).then(function(id){return createDestroyableObj(PDFNet.Iterator,id,"DigitalSignatureField")})};PDFNet.PDFDoc.prototype.getDigitalSignaturePermissions=
-function(){return PDFNet.sendWithPromise("PDFDoc.getDigitalSignaturePermissions",{doc:this.id})};PDFNet.PDFDoc.prototype.saveViewerOptimizedBuffer=function(opts$jscomp$0){checkArguments(arguments.length,1,"saveViewerOptimizedBuffer","(PDFNet.Obj)",[[opts$jscomp$0,"OptionObject",PDFNet.Obj,"Obj","PDFNet.PDFDoc.ViewerOptimizedOptions"]]);if("PDFNet.PDFDoc.ViewerOptimizedOptions"===opts$jscomp$0.name){var optsCopy=opts$jscomp$0;opts$jscomp$0=PDFNet.ObjSet.create().then(function(set){return set.createFromJson(JSON.stringify(optsCopy))})}else opts$jscomp$0=
-Promise.resolve(opts$jscomp$0);var me=this;return opts$jscomp$0.then(function(opts){return PDFNet.sendWithPromise("PDFDoc.saveViewerOptimizedBuffer",{doc:me.id,opts:opts.id}).then(function(id){return new Uint8Array(id)})})};PDFNet.PDFDoc.prototype.verifySignedDigitalSignatures=function(opts){checkArguments(arguments.length,1,"verifySignedDigitalSignatures","(PDFNet.VerificationOptions)",[[opts,"Object",PDFNet.VerificationOptions,"VerificationOptions"]]);return PDFNet.sendWithPromise("PDFDoc.verifySignedDigitalSignatures",
-{doc:this.id,opts:opts.id})};PDFNet.convertPageToAnnotAppearance=function(docWithAppearance,objNum,annot_state,appearance_state){checkArguments(arguments.length,4,"convertPageToAnnotAppearance","(PDFNet.PDFDoc, number, number, string)",[[docWithAppearance,"PDFDoc"],[objNum,"number"],[annot_state,"number"],[appearance_state,"string"]]);return PDFNet.sendWithPromise("convertPageToAnnotAppearance",{docWithAppearance:docWithAppearance.id,objNum:objNum,annot_state:annot_state,appearance_state:appearance_state})};
-PDFNet.PDFDoc.prototype.mergeXFDF=function(stream,options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,1,"mergeXFDF","(PDFNet.Filter, PDFNet.OptionBase)",[[stream,"Object",PDFNet.Filter,"Filter"],[options,"OptionBase"]]);checkParamsYieldFunction("mergeXFDF",[[options,1]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.mergeXFDF",{doc:this.id,stream:stream.id,options:options})};PDFNet.PDFDoc.prototype.mergeXFDFString=function(xfdf,
-options){"undefined"===typeof options&&(options=null);checkArguments(arguments.length,1,"mergeXFDFString","(string, PDFNet.OptionBase)",[[xfdf,"string"],[options,"OptionBase"]]);checkParamsYieldFunction("mergeXFDFString",[[options,1]]);options=options?options.getJsonString():"{}";return PDFNet.sendWithPromise("PDFDoc.mergeXFDFString",{doc:this.id,xfdf:xfdf,options:options})};PDFNet.PDFDocInfo.prototype.getTitle=function(){return PDFNet.sendWithPromise("PDFDocInfo.getTitle",{info:this.id})};PDFNet.PDFDocInfo.prototype.getTitleObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getTitleObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setTitle=function(title){checkArguments(arguments.length,1,"setTitle","(string)",[[title,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setTitle",{info:this.id,title:title})};PDFNet.PDFDocInfo.prototype.getAuthor=function(){return PDFNet.sendWithPromise("PDFDocInfo.getAuthor",{info:this.id})};PDFNet.PDFDocInfo.prototype.getAuthorObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getAuthorObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setAuthor=function(author){checkArguments(arguments.length,1,"setAuthor","(string)",[[author,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setAuthor",{info:this.id,author:author})};PDFNet.PDFDocInfo.prototype.getSubject=function(){return PDFNet.sendWithPromise("PDFDocInfo.getSubject",{info:this.id})};PDFNet.PDFDocInfo.prototype.getSubjectObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getSubjectObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setSubject=function(subject){checkArguments(arguments.length,1,"setSubject","(string)",[[subject,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setSubject",{info:this.id,subject:subject})};PDFNet.PDFDocInfo.prototype.getKeywords=function(){return PDFNet.sendWithPromise("PDFDocInfo.getKeywords",{info:this.id})};PDFNet.PDFDocInfo.prototype.getKeywordsObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getKeywordsObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setKeywords=function(keywords){checkArguments(arguments.length,1,"setKeywords","(string)",[[keywords,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setKeywords",{info:this.id,keywords:keywords})};PDFNet.PDFDocInfo.prototype.getCreator=function(){return PDFNet.sendWithPromise("PDFDocInfo.getCreator",{info:this.id})};PDFNet.PDFDocInfo.prototype.getCreatorObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getCreatorObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setCreator=function(creator){checkArguments(arguments.length,1,"setCreator","(string)",[[creator,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setCreator",{info:this.id,creator:creator})};PDFNet.PDFDocInfo.prototype.getProducer=function(){return PDFNet.sendWithPromise("PDFDocInfo.getProducer",{info:this.id})};PDFNet.PDFDocInfo.prototype.getProducerObj=
-function(){return PDFNet.sendWithPromise("PDFDocInfo.getProducerObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.prototype.setProducer=function(producer){checkArguments(arguments.length,1,"setProducer","(string)",[[producer,"string"]]);return PDFNet.sendWithPromise("PDFDocInfo.setProducer",{info:this.id,producer:producer})};PDFNet.PDFDocInfo.prototype.getCreationDate=function(){return PDFNet.sendWithPromise("PDFDocInfo.getCreationDate",{info:this.id}).then(function(id){return new PDFNet.Date(id)})};
-PDFNet.PDFDocInfo.prototype.setCreationDate=function(creation_date){checkArguments(arguments.length,1,"setCreationDate","(PDFNet.Date)",[[creation_date,"Structure",PDFNet.Date,"Date"]]);checkParamsYieldFunction("setCreationDate",[[creation_date,0]]);return PDFNet.sendWithPromise("PDFDocInfo.setCreationDate",{info:this.id,creation_date:creation_date})};PDFNet.PDFDocInfo.prototype.getModDate=function(){return PDFNet.sendWithPromise("PDFDocInfo.getModDate",{info:this.id}).then(function(id){return new PDFNet.Date(id)})};
-PDFNet.PDFDocInfo.prototype.setModDate=function(mod_date){checkArguments(arguments.length,1,"setModDate","(PDFNet.Date)",[[mod_date,"Structure",PDFNet.Date,"Date"]]);checkParamsYieldFunction("setModDate",[[mod_date,0]]);return PDFNet.sendWithPromise("PDFDocInfo.setModDate",{info:this.id,mod_date:mod_date})};PDFNet.PDFDocInfo.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("PDFDocInfo.getSDFObj",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocInfo.create=
-function(tr){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[tr,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pdfDocInfoCreate",{tr:tr.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDocInfo.prototype.copy=function(){return PDFNet.sendWithPromise("PDFDocInfo.copy",{info:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocInfo,id)})};PDFNet.PDFDocViewPrefs.prototype.setInitialPage=function(dest){checkArguments(arguments.length,
-1,"setInitialPage","(PDFNet.Destination)",[[dest,"Object",PDFNet.Destination,"Destination"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setInitialPage",{p:this.id,dest:dest.id})};PDFNet.PDFDocViewPrefs.prototype.setPageMode=function(mode){checkArguments(arguments.length,1,"setPageMode","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPageMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getPageMode=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getPageMode",
-{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setLayoutMode=function(mode){checkArguments(arguments.length,1,"setLayoutMode","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setLayoutMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getLayoutMode=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getLayoutMode",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPref=function(pref,value){checkArguments(arguments.length,2,"setPref","(number, boolean)",
-[[pref,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPref",{p:this.id,pref:pref,value:value})};PDFNet.PDFDocViewPrefs.prototype.getPref=function(pref){checkArguments(arguments.length,1,"getPref","(number)",[[pref,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.getPref",{p:this.id,pref:pref})};PDFNet.PDFDocViewPrefs.prototype.setNonFullScreenPageMode=function(mode){checkArguments(arguments.length,1,"setNonFullScreenPageMode","(number)",[[mode,"number"]]);
-return PDFNet.sendWithPromise("PDFDocViewPrefs.setNonFullScreenPageMode",{p:this.id,mode:mode})};PDFNet.PDFDocViewPrefs.prototype.getNonFullScreenPageMode=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getNonFullScreenPageMode",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setDirection=function(left_to_right){checkArguments(arguments.length,1,"setDirection","(boolean)",[[left_to_right,"boolean"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setDirection",{p:this.id,left_to_right:left_to_right})};
-PDFNet.PDFDocViewPrefs.prototype.getDirection=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getDirection",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setViewArea=function(box){checkArguments(arguments.length,1,"setViewArea","(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setViewArea",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getViewArea=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getViewArea",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setViewClip=
-function(box){checkArguments(arguments.length,1,"setViewClip","(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setViewClip",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getViewClip=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getViewClip",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPrintArea=function(box){checkArguments(arguments.length,1,"setPrintArea","(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPrintArea",
-{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getPrintArea=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getPrintArea",{p:this.id})};PDFNet.PDFDocViewPrefs.prototype.setPrintClip=function(box){checkArguments(arguments.length,1,"setPrintClip","(number)",[[box,"number"]]);return PDFNet.sendWithPromise("PDFDocViewPrefs.setPrintClip",{p:this.id,box:box})};PDFNet.PDFDocViewPrefs.prototype.getPrintClip=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getPrintClip",{p:this.id})};
-PDFNet.PDFDocViewPrefs.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.getSDFObj",{p:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.PDFDocViewPrefs.create=function(tr){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[tr,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("pdfDocViewPrefsCreate",{tr:tr.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs,id)})};PDFNet.PDFDocViewPrefs.prototype.copy=function(){return PDFNet.sendWithPromise("PDFDocViewPrefs.copy",
-{prefs:this.id}).then(function(id){return createPDFNetObj(PDFNet.PDFDocViewPrefs,id)})};PDFNet.PDFRasterizer.create=function(type){"undefined"===typeof type&&(type=PDFNet.PDFRasterizer.Type.e_BuiltIn);checkArguments(arguments.length,0,"create","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("pdfRasterizerCreate",{type:type}).then(function(id){return createDestroyableObj(PDFNet.PDFRasterizer,id)})};PDFNet.PDFRasterizer.prototype.setDrawAnnotations=function(render_annots){checkArguments(arguments.length,
-1,"setDrawAnnotations","(boolean)",[[render_annots,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setDrawAnnotations",{r:this.id,render_annots:render_annots})};PDFNet.PDFRasterizer.prototype.setHighlightFields=function(highlight){checkArguments(arguments.length,1,"setHighlightFields","(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setHighlightFields",{r:this.id,highlight:highlight})};PDFNet.PDFRasterizer.prototype.setAntiAliasing=function(enable_aa){checkArguments(arguments.length,
-1,"setAntiAliasing","(boolean)",[[enable_aa,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setAntiAliasing",{r:this.id,enable_aa:enable_aa})};PDFNet.PDFRasterizer.prototype.setPathHinting=function(enable_hinting){checkArguments(arguments.length,1,"setPathHinting","(boolean)",[[enable_hinting,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setPathHinting",{r:this.id,enable_hinting:enable_hinting})};PDFNet.PDFRasterizer.prototype.setThinLineAdjustment=function(grid_fit,stroke_adjust){checkArguments(arguments.length,
-2,"setThinLineAdjustment","(boolean, boolean)",[[grid_fit,"boolean"],[stroke_adjust,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setThinLineAdjustment",{r:this.id,grid_fit:grid_fit,stroke_adjust:stroke_adjust})};PDFNet.PDFRasterizer.prototype.setGamma=function(expgamma){checkArguments(arguments.length,1,"setGamma","(number)",[[expgamma,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setGamma",{r:this.id,expgamma:expgamma})};PDFNet.PDFRasterizer.prototype.setOCGContext=function(ctx){checkArguments(arguments.length,
-1,"setOCGContext","(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("PDFRasterizer.setOCGContext",{r:this.id,ctx:ctx.id})};PDFNet.PDFRasterizer.prototype.setPrintMode=function(is_printing){checkArguments(arguments.length,1,"setPrintMode","(boolean)",[[is_printing,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setPrintMode",{r:this.id,is_printing:is_printing})};PDFNet.PDFRasterizer.prototype.setImageSmoothing=function(smoothing_enabled,
-hq_image_resampling){"undefined"===typeof smoothing_enabled&&(smoothing_enabled=!0);"undefined"===typeof hq_image_resampling&&(hq_image_resampling=!1);checkArguments(arguments.length,0,"setImageSmoothing","(boolean, boolean)",[[smoothing_enabled,"boolean"],[hq_image_resampling,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setImageSmoothing",{r:this.id,smoothing_enabled:smoothing_enabled,hq_image_resampling:hq_image_resampling})};PDFNet.PDFRasterizer.prototype.setOverprint=function(op){checkArguments(arguments.length,
-1,"setOverprint","(number)",[[op,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setOverprint",{r:this.id,op:op})};PDFNet.PDFRasterizer.prototype.setCaching=function(enabled){"undefined"===typeof enabled&&(enabled=!0);checkArguments(arguments.length,0,"setCaching","(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.setCaching",{r:this.id,enabled:enabled})};PDFNet.PDFDraw.prototype.setOCGContext=function(ctx){checkArguments(arguments.length,1,"setOCGContext","(PDFNet.OCGContext)",
-[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("PDFDraw.setOCGContext",{r:this.id,ctx:ctx.id})};PDFNet.PDFRasterizer.prototype.setAnnotationState=function(annot,new_view_state){checkArguments(arguments.length,2,"setAnnotationState","(PDFNet.Annot, number)",[[annot,"Object",PDFNet.Annot,"Annot"],[new_view_state,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setAnnotationState",{r:this.id,annot:annot.id,new_view_state:new_view_state})};PDFNet.PDFRasterizer.prototype.setRasterizerType=
-function(type){checkArguments(arguments.length,1,"setRasterizerType","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setRasterizerType",{r:this.id,type:type})};PDFNet.PDFRasterizer.prototype.getRasterizerType=function(){return PDFNet.sendWithPromise("PDFRasterizer.getRasterizerType",{r:this.id})};PDFNet.PDFRasterizer.prototype.setColorPostProcessMode=function(mode){checkArguments(arguments.length,1,"setColorPostProcessMode","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFRasterizer.setColorPostProcessMode",
-{r:this.id,mode:mode})};PDFNet.PDFRasterizer.prototype.getColorPostProcessMode=function(){return PDFNet.sendWithPromise("PDFRasterizer.getColorPostProcessMode",{r:this.id})};PDFNet.PDFRasterizer.prototype.enableDisplayListCaching=function(enabled){checkArguments(arguments.length,1,"enableDisplayListCaching","(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFRasterizer.enableDisplayListCaching",{r:this.id,enabled:enabled})};PDFNet.PDFRasterizer.prototype.updateBuffer=function(){return PDFNet.sendWithPromise("PDFRasterizer.updateBuffer",
-{r:this.id})};PDFNet.PDFRasterizer.prototype.rasterizeAnnot=function(annot,page,device_mtx,demult,cancel){checkArguments(arguments.length,5,"rasterizeAnnot","(PDFNet.Annot, PDFNet.Page, PDFNet.Matrix2D, boolean, boolean)",[[annot,"Object",PDFNet.Annot,"Annot"],[page,"Object",PDFNet.Page,"Page"],[device_mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[demult,"boolean"],[cancel,"boolean"]]);checkParamsYieldFunction("rasterizeAnnot",[[device_mtx,2]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterizeAnnot",
-{r:this.id,annot:annot.id,page:page.id,device_mtx:device_mtx,demult:demult,cancel:cancel}).then(function(id){return createPDFNetObj(PDFNet.OwnedBitmap,id)})};PDFNet.PDFRasterizer.prototype.rasterizeSeparations=function(page,width,height,mtx,clip,cancel){checkArguments(arguments.length,6,"rasterizeSeparations","(PDFNet.Page, number, number, PDFNet.Matrix2D, PDFNet.Rect, boolean)",[[page,"Object",PDFNet.Page,"Page"],[width,"number"],[height,"number"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[clip,
-"Structure",PDFNet.Rect,"Rect"],[cancel,"boolean"]]);checkParamsYieldFunction("rasterizeSeparations",[[mtx,3],[clip,4]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterizeSeparations",{r:this.id,page:page.id,width:width,height:height,mtx:mtx,clip:clip,cancel:cancel}).then(function(idArray){for(var retArray=[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.Separation(id);retArray.push(id)}return retArray})};PDFNet.PDFDraw.create=function(dpi){"undefined"===typeof dpi&&
-(dpi=92);checkArguments(arguments.length,0,"create","(number)",[[dpi,"number"]]);return PDFNet.sendWithPromise("pdfDrawCreate",{dpi:dpi}).then(function(id){return createDestroyableObj(PDFNet.PDFDraw,id)})};PDFNet.PDFDraw.prototype.setRasterizerType=function(type){checkArguments(arguments.length,1,"setRasterizerType","(number)",[[type,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setRasterizerType",{d:this.id,type:type})};PDFNet.PDFDraw.prototype.setDPI=function(dpi){checkArguments(arguments.length,
-1,"setDPI","(number)",[[dpi,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setDPI",{d:this.id,dpi:dpi})};PDFNet.PDFDraw.prototype.setImageSize=function(width,height,preserve_aspect_ratio){"undefined"===typeof preserve_aspect_ratio&&(preserve_aspect_ratio=!0);checkArguments(arguments.length,2,"setImageSize","(number, number, boolean)",[[width,"number"],[height,"number"],[preserve_aspect_ratio,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setImageSize",{d:this.id,width:width,height:height,
-preserve_aspect_ratio:preserve_aspect_ratio})};PDFNet.PDFDraw.prototype.setPageBox=function(region){checkArguments(arguments.length,1,"setPageBox","(number)",[[region,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setPageBox",{d:this.id,region:region})};PDFNet.PDFDraw.prototype.setClipRect=function(rect){checkArguments(arguments.length,1,"setClipRect","(PDFNet.Rect)",[[rect,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("setClipRect",[[rect,0]]);return PDFNet.sendWithPromise("PDFDraw.setClipRect",
-{d:this.id,rect:rect})};PDFNet.PDFDraw.prototype.setFlipYAxis=function(flip_y){checkArguments(arguments.length,1,"setFlipYAxis","(boolean)",[[flip_y,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setFlipYAxis",{d:this.id,flip_y:flip_y})};PDFNet.PDFDraw.prototype.setRotate=function(angle){checkArguments(arguments.length,1,"setRotate","(number)",[[angle,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setRotate",{d:this.id,angle:angle})};PDFNet.PDFDraw.prototype.setDrawAnnotations=function(render_annots){checkArguments(arguments.length,
-1,"setDrawAnnotations","(boolean)",[[render_annots,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setDrawAnnotations",{d:this.id,render_annots:render_annots})};PDFNet.PDFDraw.prototype.setHighlightFields=function(highlight){checkArguments(arguments.length,1,"setHighlightFields","(boolean)",[[highlight,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setHighlightFields",{d:this.id,highlight:highlight})};PDFNet.PDFDraw.prototype.setAntiAliasing=function(enable_aa){checkArguments(arguments.length,
-1,"setAntiAliasing","(boolean)",[[enable_aa,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setAntiAliasing",{d:this.id,enable_aa:enable_aa})};PDFNet.PDFDraw.prototype.setPathHinting=function(enable_hinting){checkArguments(arguments.length,1,"setPathHinting","(boolean)",[[enable_hinting,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setPathHinting",{d:this.id,enable_hinting:enable_hinting})};PDFNet.PDFDraw.prototype.setThinLineAdjustment=function(grid_fit,stroke_adjust){checkArguments(arguments.length,
-2,"setThinLineAdjustment","(boolean, boolean)",[[grid_fit,"boolean"],[stroke_adjust,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setThinLineAdjustment",{d:this.id,grid_fit:grid_fit,stroke_adjust:stroke_adjust})};PDFNet.PDFDraw.prototype.setGamma=function(exp){checkArguments(arguments.length,1,"setGamma","(number)",[[exp,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setGamma",{d:this.id,exp:exp})};PDFNet.PDFDraw.prototype.setPrintMode=function(is_printing){checkArguments(arguments.length,
-1,"setPrintMode","(boolean)",[[is_printing,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setPrintMode",{d:this.id,is_printing:is_printing})};PDFNet.PDFDraw.prototype.setPageTransparent=function(is_transparent){checkArguments(arguments.length,1,"setPageTransparent","(boolean)",[[is_transparent,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setPageTransparent",{d:this.id,is_transparent:is_transparent})};PDFNet.PDFDraw.prototype.setDefaultPageColor=function(r,g,b){checkArguments(arguments.length,
-3,"setDefaultPageColor","(number, number, number)",[[r,"number"],[g,"number"],[b,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setDefaultPageColor",{d:this.id,r:r,g:g,b:b})};PDFNet.PDFDraw.prototype.setOverprint=function(op){checkArguments(arguments.length,1,"setOverprint","(number)",[[op,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setOverprint",{d:this.id,op:op})};PDFNet.PDFDraw.prototype.setImageSmoothing=function(smoothing_enabled,hq_image_resampling){"undefined"===typeof smoothing_enabled&&
-(smoothing_enabled=!0);"undefined"===typeof hq_image_resampling&&(hq_image_resampling=!1);checkArguments(arguments.length,0,"setImageSmoothing","(boolean, boolean)",[[smoothing_enabled,"boolean"],[hq_image_resampling,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setImageSmoothing",{d:this.id,smoothing_enabled:smoothing_enabled,hq_image_resampling:hq_image_resampling})};PDFNet.PDFDraw.prototype.setCaching=function(enabled){"undefined"===typeof enabled&&(enabled=!0);checkArguments(arguments.length,
-0,"setCaching","(boolean)",[[enabled,"boolean"]]);return PDFNet.sendWithPromise("PDFDraw.setCaching",{d:this.id,enabled:enabled})};PDFNet.PDFDraw.prototype.setColorPostProcessMode=function(mode){checkArguments(arguments.length,1,"setColorPostProcessMode","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("PDFDraw.setColorPostProcessMode",{d:this.id,mode:mode})};PDFNet.PDFDraw.prototype.getSeparationBitmaps=function(page){checkArguments(arguments.length,1,"getSeparationBitmaps","(PDFNet.Page)",
-[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("PDFDraw.getSeparationBitmaps",{d:this.id,page:page.id}).then(function(idArray){for(var retArray=[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.Separation(id);retArray.push(id)}return retArray})};PDFNet.enableJavaScript=function(enable){checkArguments(arguments.length,1,"enableJavaScript","(boolean)",[[enable,"boolean"]]);return PDFNet.sendWithPromise("pdfNetEnableJavaScript",{enable:enable})};
-PDFNet.isJavaScriptEnabled=function(){return PDFNet.sendWithPromise("pdfNetIsJavaScriptEnabled",{})};PDFNet.terminateEx=function(termination_level){checkArguments(arguments.length,1,"terminateEx","(number)",[[termination_level,"number"]]);return PDFNet.sendWithPromise("pdfNetTerminateEx",{termination_level:termination_level})};PDFNet.setColorManagement=function(t){"undefined"===typeof t&&(t=PDFNet.CMSType.e_lcms);checkArguments(arguments.length,0,"setColorManagement","(number)",[[t,"number"]]);return PDFNet.sendWithPromise("pdfNetSetColorManagement",
-{t:t})};PDFNet.setDefaultDeviceCMYKProfileFromFilter=function(stream){checkArguments(arguments.length,1,"setDefaultDeviceCMYKProfileFromFilter","(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultDeviceCMYKProfileFromFilter",{stream:stream.id})};PDFNet.setDefaultDeviceRGBProfileFromFilter=function(stream){checkArguments(arguments.length,1,"setDefaultDeviceRGBProfileFromFilter","(PDFNet.Filter)",[[stream,"Object",PDFNet.Filter,"Filter"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultDeviceRGBProfileFromFilter",
-{stream:stream.id})};PDFNet.setDefaultFlateCompressionLevel=function(level){checkArguments(arguments.length,1,"setDefaultFlateCompressionLevel","(number)",[[level,"number"]]);return PDFNet.sendWithPromise("pdfNetSetDefaultFlateCompressionLevel",{level:level})};PDFNet.setViewerCache=function(max_cache_size,on_disk){checkArguments(arguments.length,2,"setViewerCache","(number, boolean)",[[max_cache_size,"number"],[on_disk,"boolean"]]);return PDFNet.sendWithPromise("pdfNetSetViewerCache",{max_cache_size:max_cache_size,
-on_disk:on_disk})};PDFNet.getVersion=function(){return PDFNet.sendWithPromise("pdfNetGetVersion",{})};PDFNet.setLogLevel=function(level){"undefined"===typeof level&&(level=PDFNet.LogLevel.e_LogLevel_Fatal);checkArguments(arguments.length,0,"setLogLevel","(number)",[[level,"number"]]);return PDFNet.sendWithPromise("pdfNetSetLogLevel",{level:level})};PDFNet.getSystemFontList=function(){return PDFNet.sendWithPromise("pdfNetGetSystemFontList",{})};PDFNet.addPDFTronCustomHandler=function(custom_id){checkArguments(arguments.length,
-1,"addPDFTronCustomHandler","(number)",[[custom_id,"number"]]);return PDFNet.sendWithPromise("pdfNetAddPDFTronCustomHandler",{custom_id:custom_id})};PDFNet.getVersionString=function(){return PDFNet.sendWithPromise("pdfNetGetVersionString",{})};PDFNet.setConnectionErrorHandlingMode=function(mode){checkArguments(arguments.length,1,"setConnectionErrorHandlingMode","(number)",[[mode,"number"]]);return PDFNet.sendWithPromise("pdfNetSetConnectionErrorHandlingMode",{mode:mode})};PDFNet.Rect.init=function(x1,
-y1,x2,y2){checkArguments(arguments.length,4,"init","(number, number, number, number)",[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("rectInit",{x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Rect.prototype.attach=function(obj){checkArguments(arguments.length,1,"attach","(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("attach",this.yieldFunction);var me=this;this.yieldFunction="Rect.attach";return PDFNet.sendWithPromise("Rect.attach",
-{rect:this,obj:obj.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.update=function(obj){"undefined"===typeof obj&&(obj=new PDFNet.Obj("__null"));checkArguments(arguments.length,0,"update","(PDFNet.Obj)",[[obj,"Object",PDFNet.Obj,"Obj"]]);checkThisYieldFunction("update",this.yieldFunction);var me=this;this.yieldFunction="Rect.update";return PDFNet.sendWithPromise("Rect.update",{rect:this,obj:obj.id}).then(function(id){me.yieldFunction=void 0;copyFunc(id.rect,
-me);return id.result})};PDFNet.Rect.prototype.get=function(){checkThisYieldFunction("get",this.yieldFunction);return PDFNet.sendWithPromise("Rect.get",{rect:this})};PDFNet.Rect.prototype.set=function(x1,y1,x2,y2){checkArguments(arguments.length,4,"set","(number, number, number, number)",[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);checkThisYieldFunction("set",this.yieldFunction);var me=this;this.yieldFunction="Rect.set";return PDFNet.sendWithPromise("Rect.set",{rect:this,x1:x1,y1:y1,
-x2:x2,y2:y2}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.width=function(){checkThisYieldFunction("width",this.yieldFunction);return PDFNet.sendWithPromise("Rect.width",{rect:this})};PDFNet.Rect.prototype.height=function(){checkThisYieldFunction("height",this.yieldFunction);return PDFNet.sendWithPromise("Rect.height",{rect:this})};PDFNet.Rect.prototype.contains=function(x,y){checkArguments(arguments.length,2,"contains","(number, number)",[[x,"number"],[y,"number"]]);
-checkThisYieldFunction("contains",this.yieldFunction);return PDFNet.sendWithPromise("Rect.contains",{rect:this,x:x,y:y})};PDFNet.Rect.prototype.intersectRect=function(rect1,rect2){checkArguments(arguments.length,2,"intersectRect","(PDFNet.Rect, PDFNet.Rect)",[[rect1,"Structure",PDFNet.Rect,"Rect"],[rect2,"Structure",PDFNet.Rect,"Rect"]]);checkThisYieldFunction("intersectRect",this.yieldFunction);checkParamsYieldFunction("intersectRect",[[rect1,0],[rect2,1]]);var me=this;this.yieldFunction="Rect.intersectRect";
-return PDFNet.sendWithPromise("Rect.intersectRect",{rect:this,rect1:rect1,rect2:rect2}).then(function(id){me.yieldFunction=void 0;copyFunc(id.rect,me);return id.result})};PDFNet.Rect.prototype.normalize=function(){checkThisYieldFunction("normalize",this.yieldFunction);var me=this;this.yieldFunction="Rect.normalize";return PDFNet.sendWithPromise("Rect.normalize",{rect:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.inflate1=function(amount){checkArguments(arguments.length,
-1,"inflate1","(number)",[[amount,"number"]]);checkThisYieldFunction("inflate1",this.yieldFunction);var me=this;this.yieldFunction="Rect.inflate1";return PDFNet.sendWithPromise("Rect.inflate1",{rect:this,amount:amount}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Rect.prototype.inflate2=function(x,y){checkArguments(arguments.length,2,"inflate2","(number, number)",[[x,"number"],[y,"number"]]);checkThisYieldFunction("inflate2",this.yieldFunction);var me=this;this.yieldFunction=
-"Rect.inflate2";return PDFNet.sendWithPromise("Rect.inflate2",{rect:this,x:x,y:y}).then(function(id){me.yieldFunction=void 0;copyFunc(id,me)})};PDFNet.Redactor.redactionCreate=function(page_num,bbox,negative,text){checkArguments(arguments.length,4,"redactionCreate","(number, PDFNet.Rect, boolean, string)",[[page_num,"number"],[bbox,"Structure",PDFNet.Rect,"Rect"],[negative,"boolean"],[text,"string"]]);checkParamsYieldFunction("redactionCreate",[[bbox,1]]);return PDFNet.sendWithPromise("Redactor.redactionCreate",
-{page_num:page_num,bbox:bbox,negative:negative,text:text}).then(function(id){return createPDFNetObj(PDFNet.Redaction,id)})};PDFNet.Redactor.redactionDestroy=function(redaction){checkArguments(arguments.length,1,"redactionDestroy","(PDFNet.Redaction)",[[redaction,"Object",PDFNet.Redaction,"Redaction"]]);return PDFNet.sendWithPromise("Redactor.redactionDestroy",{redaction:redaction.id})};PDFNet.Redactor.redactionCopy=function(other){checkArguments(arguments.length,1,"redactionCopy","(PDFNet.Redaction)",
-[[other,"Object",PDFNet.Redaction,"Redaction"]]);return PDFNet.sendWithPromise("Redactor.redactionCopy",{other:other.id}).then(function(id){return createPDFNetObj(PDFNet.Redaction,id)})};PDFNet.Shading.create=function(shading_dict){"undefined"===typeof shading_dict&&(shading_dict=new PDFNet.Obj("0"));checkArguments(arguments.length,0,"create","(PDFNet.Obj)",[[shading_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("shadingCreate",{shading_dict:shading_dict.id}).then(function(id){return createDestroyableObj(PDFNet.Shading,
-id)})};PDFNet.Shading.getTypeFromObj=function(shading_dict){checkArguments(arguments.length,1,"getTypeFromObj","(PDFNet.Obj)",[[shading_dict,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("shadingGetTypeFromObj",{shading_dict:shading_dict.id})};PDFNet.Shading.prototype.getType=function(){return PDFNet.sendWithPromise("Shading.getType",{s:this.id})};PDFNet.Shading.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("Shading.getSDFObj",{s:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Shading.prototype.getBaseColorSpace=function(){return PDFNet.sendWithPromise("Shading.getBaseColorSpace",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorSpace,id)})};PDFNet.Shading.prototype.hasBBox=function(){return PDFNet.sendWithPromise("Shading.hasBBox",{s:this.id})};PDFNet.Shading.prototype.getBBox=function(){return PDFNet.sendWithPromise("Shading.getBBox",{s:this.id}).then(function(id){return new PDFNet.Rect(id)})};PDFNet.Shading.prototype.hasBackground=
-function(){return PDFNet.sendWithPromise("Shading.hasBackground",{s:this.id})};PDFNet.Shading.prototype.getBackground=function(){return PDFNet.sendWithPromise("Shading.getBackground",{s:this.id}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Shading.prototype.getAntialias=function(){return PDFNet.sendWithPromise("Shading.getAntialias",{s:this.id})};PDFNet.Shading.prototype.getParamStart=function(){return PDFNet.sendWithPromise("Shading.getParamStart",{s:this.id})};PDFNet.Shading.prototype.getParamEnd=
-function(){return PDFNet.sendWithPromise("Shading.getParamEnd",{s:this.id})};PDFNet.Shading.prototype.isExtendStart=function(){return PDFNet.sendWithPromise("Shading.isExtendStart",{s:this.id})};PDFNet.Shading.prototype.isExtendEnd=function(){return PDFNet.sendWithPromise("Shading.isExtendEnd",{s:this.id})};PDFNet.Shading.prototype.getColor=function(t){checkArguments(arguments.length,1,"getColor","(number)",[[t,"number"]]);return PDFNet.sendWithPromise("Shading.getColor",{s:this.id,t:t}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,
-id)})};PDFNet.Shading.prototype.getCoords=function(){return PDFNet.sendWithPromise("Shading.getCoords",{s:this.id})};PDFNet.Shading.prototype.getCoordsRadial=function(){return PDFNet.sendWithPromise("Shading.getCoordsRadial",{s:this.id})};PDFNet.Shading.prototype.getDomain=function(){return PDFNet.sendWithPromise("Shading.getDomain",{s:this.id})};PDFNet.Shading.prototype.getMatrix=function(){return PDFNet.sendWithPromise("Shading.getMatrix",{s:this.id}).then(function(id){return new PDFNet.Matrix2D(id)})};
-PDFNet.Shading.prototype.getColorForFunction=function(t1,t2){checkArguments(arguments.length,2,"getColorForFunction","(number, number)",[[t1,"number"],[t2,"number"]]);return PDFNet.sendWithPromise("Shading.getColorForFunction",{s:this.id,t1:t1,t2:t2}).then(function(id){return createDestroyableObj(PDFNet.ColorPt,id)})};PDFNet.Stamper.create=function(size_type,a,b){checkArguments(arguments.length,3,"create","(number, number, number)",[[size_type,"number"],[a,"number"],[b,"number"]]);return PDFNet.sendWithPromise("stamperCreate",
-{size_type:size_type,a:a,b:b}).then(function(id){return createDestroyableObj(PDFNet.Stamper,id)})};PDFNet.Stamper.prototype.stampImage=function(dest_doc,img,dest_pages){checkArguments(arguments.length,3,"stampImage","(PDFNet.PDFDoc, PDFNet.Image, PDFNet.PageSet)",[[dest_doc,"PDFDoc"],[img,"Object",PDFNet.Image,"Image"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("Stamper.stampImage",{stamp:this.id,dest_doc:dest_doc.id,img:img.id,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.stampPage=
-function(dest_doc,page,dest_pages){checkArguments(arguments.length,3,"stampPage","(PDFNet.PDFDoc, PDFNet.Page, PDFNet.PageSet)",[[dest_doc,"PDFDoc"],[page,"Object",PDFNet.Page,"Page"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("Stamper.stampPage",{stamp:this.id,dest_doc:dest_doc.id,page:page.id,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.stampText=function(dest_doc,txt,dest_pages){checkArguments(arguments.length,3,"stampText","(PDFNet.PDFDoc, string, PDFNet.PageSet)",
-[[dest_doc,"PDFDoc"],[txt,"string"],[dest_pages,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("Stamper.stampText",{stamp:this.id,dest_doc:dest_doc.id,txt:txt,dest_pages:dest_pages.id})};PDFNet.Stamper.prototype.setFont=function(font){checkArguments(arguments.length,1,"setFont","(PDFNet.Font)",[[font,"Object",PDFNet.Font,"Font"]]);return PDFNet.sendWithPromise("Stamper.setFont",{stamp:this.id,font:font.id})};PDFNet.Stamper.prototype.setFontColor=function(font_color){checkArguments(arguments.length,
-1,"setFontColor","(PDFNet.ColorPt)",[[font_color,"Object",PDFNet.ColorPt,"ColorPt"]]);return PDFNet.sendWithPromise("Stamper.setFontColor",{stamp:this.id,font_color:font_color.id})};PDFNet.Stamper.prototype.setTextAlignment=function(text_alignment){checkArguments(arguments.length,1,"setTextAlignment","(number)",[[text_alignment,"number"]]);return PDFNet.sendWithPromise("Stamper.setTextAlignment",{stamp:this.id,text_alignment:text_alignment})};PDFNet.Stamper.prototype.setOpacity=function(opacity){checkArguments(arguments.length,
-1,"setOpacity","(number)",[[opacity,"number"]]);return PDFNet.sendWithPromise("Stamper.setOpacity",{stamp:this.id,opacity:opacity})};PDFNet.Stamper.prototype.setRotation=function(rotation){checkArguments(arguments.length,1,"setRotation","(number)",[[rotation,"number"]]);return PDFNet.sendWithPromise("Stamper.setRotation",{stamp:this.id,rotation:rotation})};PDFNet.Stamper.prototype.setAsBackground=function(background){checkArguments(arguments.length,1,"setAsBackground","(boolean)",[[background,"boolean"]]);
-return PDFNet.sendWithPromise("Stamper.setAsBackground",{stamp:this.id,background:background})};PDFNet.Stamper.prototype.setAsAnnotation=function(annotation){checkArguments(arguments.length,1,"setAsAnnotation","(boolean)",[[annotation,"boolean"]]);return PDFNet.sendWithPromise("Stamper.setAsAnnotation",{stamp:this.id,annotation:annotation})};PDFNet.Stamper.prototype.showsOnScreen=function(on_screen){checkArguments(arguments.length,1,"showsOnScreen","(boolean)",[[on_screen,"boolean"]]);return PDFNet.sendWithPromise("Stamper.showsOnScreen",
-{stamp:this.id,on_screen:on_screen})};PDFNet.Stamper.prototype.showsOnPrint=function(on_print){checkArguments(arguments.length,1,"showsOnPrint","(boolean)",[[on_print,"boolean"]]);return PDFNet.sendWithPromise("Stamper.showsOnPrint",{stamp:this.id,on_print:on_print})};PDFNet.Stamper.prototype.setAlignment=function(horizontal_alignment,vertical_alignment){checkArguments(arguments.length,2,"setAlignment","(number, number)",[[horizontal_alignment,"number"],[vertical_alignment,"number"]]);return PDFNet.sendWithPromise("Stamper.setAlignment",
-{stamp:this.id,horizontal_alignment:horizontal_alignment,vertical_alignment:vertical_alignment})};PDFNet.Stamper.prototype.setPosition=function(horizontal_distance,vertical_distance,use_percentage){"undefined"===typeof use_percentage&&(use_percentage=!1);checkArguments(arguments.length,2,"setPosition","(number, number, boolean)",[[horizontal_distance,"number"],[vertical_distance,"number"],[use_percentage,"boolean"]]);return PDFNet.sendWithPromise("Stamper.setPosition",{stamp:this.id,horizontal_distance:horizontal_distance,
-vertical_distance:vertical_distance,use_percentage:use_percentage})};PDFNet.Stamper.prototype.setSize=function(size_type,a,b){checkArguments(arguments.length,3,"setSize","(number, number, number)",[[size_type,"number"],[a,"number"],[b,"number"]]);return PDFNet.sendWithPromise("Stamper.setSize",{stamp:this.id,size_type:size_type,a:a,b:b})};PDFNet.Stamper.deleteStamps=function(doc,page_set){checkArguments(arguments.length,2,"deleteStamps","(PDFNet.PDFDoc, PDFNet.PageSet)",[[doc,"PDFDoc"],[page_set,
-"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("stamperDeleteStamps",{doc:doc.id,page_set:page_set.id})};PDFNet.Stamper.hasStamps=function(doc,page_set){checkArguments(arguments.length,2,"hasStamps","(PDFNet.PDFDoc, PDFNet.PageSet)",[[doc,"PDFDoc"],[page_set,"Object",PDFNet.PageSet,"PageSet"]]);return PDFNet.sendWithPromise("stamperHasStamps",{doc:doc.id,page_set:page_set.id})};PDFNet.TextExtractor.create=function(){return PDFNet.sendWithPromise("textExtractorCreate",{}).then(function(id){return createDestroyableObj(PDFNet.TextExtractor,
-id)})};PDFNet.TextExtractor.prototype.setOCGContext=function(ctx){checkArguments(arguments.length,1,"setOCGContext","(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("TextExtractor.setOCGContext",{te:this.id,ctx:ctx.id})};PDFNet.TextExtractor.prototype.begin=function(page,clip_ptr,flags){"undefined"===typeof clip_ptr&&(clip_ptr=null);"undefined"===typeof flags&&(flags=0);checkArguments(arguments.length,1,"begin","(PDFNet.Page, PDFNet.Rect, number)",
-[[page,"Object",PDFNet.Page,"Page"],[clip_ptr,"Structure",PDFNet.Rect,"Rect"],[flags,"number"]]);checkParamsYieldFunction("begin",[[clip_ptr,1]]);return PDFNet.sendWithPromise("TextExtractor.begin",{te:this.id,page:page.id,clip_ptr:clip_ptr,flags:flags})};PDFNet.TextExtractor.prototype.getWordCount=function(){return PDFNet.sendWithPromise("TextExtractor.getWordCount",{te:this.id})};PDFNet.TextExtractor.prototype.setRightToLeftLanguage=function(rtl){checkArguments(arguments.length,1,"setRightToLeftLanguage",
-"(boolean)",[[rtl,"boolean"]]);return PDFNet.sendWithPromise("TextExtractor.setRightToLeftLanguage",{te:this.id,rtl:rtl})};PDFNet.TextExtractor.prototype.getRightToLeftLanguage=function(){return PDFNet.sendWithPromise("TextExtractor.getRightToLeftLanguage",{te:this.id})};PDFNet.TextExtractor.prototype.getAsText=function(dehyphen){"undefined"===typeof dehyphen&&(dehyphen=!0);checkArguments(arguments.length,0,"getAsText","(boolean)",[[dehyphen,"boolean"]]);return PDFNet.sendWithPromise("TextExtractor.getAsText",
-{te:this.id,dehyphen:dehyphen})};PDFNet.TextExtractor.prototype.getTextUnderAnnot=function(annot){checkArguments(arguments.length,1,"getTextUnderAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("TextExtractor.getTextUnderAnnot",{te:this.id,annot:annot.id})};PDFNet.TextExtractor.prototype.getAsXML=function(xml_output_flags){"undefined"===typeof xml_output_flags&&(xml_output_flags=0);checkArguments(arguments.length,0,"getAsXML","(number)",[[xml_output_flags,
-"number"]]);return PDFNet.sendWithPromise("TextExtractor.getAsXML",{te:this.id,xml_output_flags:xml_output_flags})};PDFNet.TextExtractorStyle.prototype.getFont=function(){checkThisYieldFunction("getFont",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.getFont";return PDFNet.sendWithPromise("TextExtractorStyle.getFont",{tes:this}).then(function(id){me.yieldFunction=void 0;id.result=createPDFNetObj(PDFNet.Obj,id.result);copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getFontName=
-function(){checkThisYieldFunction("getFontName",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.getFontName";return PDFNet.sendWithPromise("TextExtractorStyle.getFontName",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getFontSize=function(){checkThisYieldFunction("getFontSize",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.getFontSize";return PDFNet.sendWithPromise("TextExtractorStyle.getFontSize",
-{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.getWeight=function(){checkThisYieldFunction("getWeight",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.getWeight";return PDFNet.sendWithPromise("TextExtractorStyle.getWeight",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.isItalic=function(){checkThisYieldFunction("isItalic",
-this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.isItalic";return PDFNet.sendWithPromise("TextExtractorStyle.isItalic",{tes:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.isSerif=function(){checkThisYieldFunction("isSerif",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.isSerif";return PDFNet.sendWithPromise("TextExtractorStyle.isSerif",{tes:this}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id.tes,me);return id.result})};PDFNet.TextExtractorStyle.prototype.compare=function(s){checkArguments(arguments.length,1,"compare","(PDFNet.TextExtractorStyle)",[[s,"Structure",PDFNet.TextExtractorStyle,"TextExtractorStyle"]]);checkThisYieldFunction("compare",this.yieldFunction);checkParamsYieldFunction("compare",[[s,0]]);return PDFNet.sendWithPromise("TextExtractorStyle.compare",{tes:this,s:s})};PDFNet.TextExtractorStyle.create=function(){return PDFNet.sendWithPromise("textExtractorStyleCreate",
-{}).then(function(id){return new PDFNet.TextExtractorStyle(id)})};PDFNet.TextExtractorStyle.prototype.copy=function(){checkThisYieldFunction("copy",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorStyle.copy";return PDFNet.sendWithPromise("TextExtractorStyle.copy",{s:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.s,me);return id.result})};PDFNet.TextExtractorWord.prototype.getNumGlyphs=function(){checkThisYieldFunction("getNumGlyphs",
-this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getNumGlyphs";return PDFNet.sendWithPromise("TextExtractorWord.getNumGlyphs",{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getCharStyle=function(char_idx){checkArguments(arguments.length,1,"getCharStyle","(number)",[[char_idx,"number"]]);checkThisYieldFunction("getCharStyle",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getCharStyle";
-return PDFNet.sendWithPromise("TextExtractorWord.getCharStyle",{tew:this,char_idx:char_idx}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getStyle=function(){checkThisYieldFunction("getStyle",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getStyle";return PDFNet.sendWithPromise("TextExtractorWord.getStyle",{tew:this}).then(function(id){me.yieldFunction=
-void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getStringLen=function(){checkThisYieldFunction("getStringLen",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getStringLen";return PDFNet.sendWithPromise("TextExtractorWord.getStringLen",{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getNextWord=function(){checkThisYieldFunction("getNextWord",
-this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getNextWord";return PDFNet.sendWithPromise("TextExtractorWord.getNextWord",{tew:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.getCurrentNum=function(){checkThisYieldFunction("getCurrentNum",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.getCurrentNum";return PDFNet.sendWithPromise("TextExtractorWord.getCurrentNum",
-{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorWord.prototype.compare=function(word){checkArguments(arguments.length,1,"compare","(PDFNet.TextExtractorWord)",[[word,"Structure",PDFNet.TextExtractorWord,"TextExtractorWord"]]);checkThisYieldFunction("compare",this.yieldFunction);checkParamsYieldFunction("compare",[[word,0]]);return PDFNet.sendWithPromise("TextExtractorWord.compare",{tew:this,word:word})};PDFNet.TextExtractorWord.create=
-function(){return PDFNet.sendWithPromise("textExtractorWordCreate",{}).then(function(id){return new PDFNet.TextExtractorWord(id)})};PDFNet.TextExtractorWord.prototype.isValid=function(){checkThisYieldFunction("isValid",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorWord.isValid";return PDFNet.sendWithPromise("TextExtractorWord.isValid",{tew:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.tew,me);return id.result})};PDFNet.TextExtractorLine.prototype.getNumWords=function(){checkThisYieldFunction("getNumWords",
-this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getNumWords";return PDFNet.sendWithPromise("TextExtractorLine.getNumWords",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.isSimpleLine=function(){checkThisYieldFunction("isSimpleLine",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.isSimpleLine";return PDFNet.sendWithPromise("TextExtractorLine.isSimpleLine",{line:this}).then(function(id){me.yieldFunction=
-void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getFirstWord=function(){checkThisYieldFunction("getFirstWord",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getFirstWord";return PDFNet.sendWithPromise("TextExtractorLine.getFirstWord",{line:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getWord=function(word_idx){checkArguments(arguments.length,
-1,"getWord","(number)",[[word_idx,"number"]]);checkThisYieldFunction("getWord",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getWord";return PDFNet.sendWithPromise("TextExtractorLine.getWord",{line:this,word_idx:word_idx}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorWord(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getNextLine=function(){checkThisYieldFunction("getNextLine",this.yieldFunction);var me=
-this;this.yieldFunction="TextExtractorLine.getNextLine";return PDFNet.sendWithPromise("TextExtractorLine.getNextLine",{line:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorLine(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getCurrentNum=function(){checkThisYieldFunction("getCurrentNum",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getCurrentNum";return PDFNet.sendWithPromise("TextExtractorLine.getCurrentNum",
-{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getStyle=function(){checkThisYieldFunction("getStyle",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getStyle";return PDFNet.sendWithPromise("TextExtractorLine.getStyle",{line:this}).then(function(id){me.yieldFunction=void 0;id.result=new PDFNet.TextExtractorStyle(id.result);copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getParagraphID=
-function(){checkThisYieldFunction("getParagraphID",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getParagraphID";return PDFNet.sendWithPromise("TextExtractorLine.getParagraphID",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.getFlowID=function(){checkThisYieldFunction("getFlowID",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.getFlowID";return PDFNet.sendWithPromise("TextExtractorLine.getFlowID",
-{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.endsWithHyphen=function(){checkThisYieldFunction("endsWithHyphen",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.endsWithHyphen";return PDFNet.sendWithPromise("TextExtractorLine.endsWithHyphen",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractorLine.prototype.compare=function(line2){checkArguments(arguments.length,
-1,"compare","(PDFNet.TextExtractorLine)",[[line2,"Structure",PDFNet.TextExtractorLine,"TextExtractorLine"]]);checkThisYieldFunction("compare",this.yieldFunction);checkParamsYieldFunction("compare",[[line2,0]]);return PDFNet.sendWithPromise("TextExtractorLine.compare",{line:this,line2:line2})};PDFNet.TextExtractorLine.create=function(){return PDFNet.sendWithPromise("textExtractorLineCreate",{}).then(function(id){return new PDFNet.TextExtractorLine(id)})};PDFNet.TextExtractorLine.prototype.isValid=
-function(){checkThisYieldFunction("isValid",this.yieldFunction);var me=this;this.yieldFunction="TextExtractorLine.isValid";return PDFNet.sendWithPromise("TextExtractorLine.isValid",{line:this}).then(function(id){me.yieldFunction=void 0;copyFunc(id.line,me);return id.result})};PDFNet.TextExtractor.prototype.getNumLines=function(){return PDFNet.sendWithPromise("TextExtractor.getNumLines",{te:this.id})};PDFNet.TextExtractor.prototype.getFirstLine=function(){return PDFNet.sendWithPromise("TextExtractor.getFirstLine",
-{te:this.id}).then(function(id){return new PDFNet.TextExtractorLine(id)})};PDFNet.TextExtractor.prototype.getQuads=function(mtx,quads,quads_size){checkArguments(arguments.length,3,"getQuads","(PDFNet.Matrix2D, number, number)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[quads,"number"],[quads_size,"number"]]);checkParamsYieldFunction("getQuads",[[mtx,0]]);return PDFNet.sendWithPromise("TextExtractor.getQuads",{te:this.id,mtx:mtx,quads:quads,quads_size:quads_size})};PDFNet.TextSearch.create=function(){return PDFNet.sendWithPromise("textSearchCreate",
-{}).then(function(id){return createDestroyableObj(PDFNet.TextSearch,id)})};PDFNet.TextSearch.prototype.begin=function(doc,pattern,mode,start_page,end_page){"undefined"===typeof start_page&&(start_page=-1);"undefined"===typeof end_page&&(end_page=-1);checkArguments(arguments.length,3,"begin","(PDFNet.PDFDoc, string, number, number, number)",[[doc,"PDFDoc"],[pattern,"string"],[mode,"number"],[start_page,"number"],[end_page,"number"]]);return PDFNet.sendWithPromise("TextSearch.begin",{ts:this.id,doc:doc.id,
-pattern:pattern,mode:mode,start_page:start_page,end_page:end_page})};PDFNet.TextSearch.prototype.setPattern=function(pattern){checkArguments(arguments.length,1,"setPattern","(string)",[[pattern,"string"]]);return PDFNet.sendWithPromise("TextSearch.setPattern",{ts:this.id,pattern:pattern})};PDFNet.TextSearch.prototype.getMode=function(){return PDFNet.sendWithPromise("TextSearch.getMode",{ts:this.id})};PDFNet.TextSearch.prototype.setMode=function(mode){checkArguments(arguments.length,1,"setMode","(number)",
-[[mode,"number"]]);return PDFNet.sendWithPromise("TextSearch.setMode",{ts:this.id,mode:mode})};PDFNet.TextSearch.prototype.setRightToLeftLanguage=function(flag){checkArguments(arguments.length,1,"setRightToLeftLanguage","(boolean)",[[flag,"boolean"]]);return PDFNet.sendWithPromise("TextSearch.setRightToLeftLanguage",{ts:this.id,flag:flag})};PDFNet.TextSearch.prototype.getCurrentPage=function(){return PDFNet.sendWithPromise("TextSearch.getCurrentPage",{ts:this.id})};PDFNet.TextSearch.prototype.setOCGContext=
-function(ctx){checkArguments(arguments.length,1,"setOCGContext","(PDFNet.OCGContext)",[[ctx,"Object",PDFNet.OCGContext,"OCGContext"]]);return PDFNet.sendWithPromise("TextSearch.setOCGContext",{te:this.id,ctx:ctx.id})};PDFNet.NameTree.create=function(doc,name){checkArguments(arguments.length,2,"create","(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("nameTreeCreate",{doc:doc.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.find=
-function(doc,name){checkArguments(arguments.length,2,"find","(PDFNet.SDFDoc, string)",[[doc,"SDFDoc"],[name,"string"]]);return PDFNet.sendWithPromise("nameTreeFind",{doc:doc.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.createFromObj=function(name_tree){checkArguments(arguments.length,1,"createFromObj","(PDFNet.Obj)",[[name_tree,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("nameTreeCreateFromObj",{name_tree:name_tree.id}).then(function(id){return createPDFNetObj(PDFNet.NameTree,
-id)})};PDFNet.NameTree.prototype.copy=function(){return PDFNet.sendWithPromise("NameTree.copy",{d:this.id}).then(function(id){return createPDFNetObj(PDFNet.NameTree,id)})};PDFNet.NameTree.prototype.isValid=function(){return PDFNet.sendWithPromise("NameTree.isValid",{tree:this.id})};PDFNet.NameTree.prototype.getIterator=function(key){checkArguments(arguments.length,1,"getIterator","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.getIterator",{tree:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,
-id)})};PDFNet.NameTree.prototype.getValue=function(key){checkArguments(arguments.length,1,"getValue","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.getValue",{tree:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NameTree.prototype.getIteratorBegin=function(){return PDFNet.sendWithPromise("NameTree.getIteratorBegin",{tree:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NameTree.prototype.put=function(key,
-value){checkArguments(arguments.length,2,"put","(string, PDFNet.Obj)",[[key,"string"],[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("NameTree.put",{tree:this.id,key:key,value:value.id})};PDFNet.NameTree.prototype.eraseKey=function(key){checkArguments(arguments.length,1,"eraseKey","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("NameTree.eraseKey",{tree:this.id,key:key})};PDFNet.NameTree.prototype.erase=function(pos){checkArguments(arguments.length,1,"erase","(PDFNet.DictIterator)",
-[[pos,"Object",PDFNet.DictIterator,"DictIterator"]]);return PDFNet.sendWithPromise("NameTree.erase",{tree:this.id,pos:pos.id})};PDFNet.NameTree.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("NameTree.getSDFObj",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NumberTree.create=function(number_tree){checkArguments(arguments.length,1,"create","(PDFNet.Obj)",[[number_tree,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("numberTreeCreate",{number_tree:number_tree.id}).then(function(id){return createPDFNetObj(PDFNet.NumberTree,
-id)})};PDFNet.NumberTree.prototype.copy=function(){return PDFNet.sendWithPromise("NumberTree.copy",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.NumberTree,id)})};PDFNet.NumberTree.prototype.isValid=function(){return PDFNet.sendWithPromise("NumberTree.isValid",{tree:this.id})};PDFNet.NumberTree.prototype.getIterator=function(key){checkArguments(arguments.length,1,"getIterator","(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.getIterator",{tree:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,
-id)})};PDFNet.NumberTree.prototype.getValue=function(key){checkArguments(arguments.length,1,"getValue","(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.getValue",{tree:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.NumberTree.prototype.getIteratorBegin=function(){return PDFNet.sendWithPromise("NumberTree.getIteratorBegin",{tree:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.NumberTree.prototype.put=
-function(key,value){checkArguments(arguments.length,2,"put","(number, PDFNet.Obj)",[[key,"number"],[value,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("NumberTree.put",{tree:this.id,key:key,value:value.id})};PDFNet.NumberTree.prototype.eraseKey=function(key){checkArguments(arguments.length,1,"eraseKey","(number)",[[key,"number"]]);return PDFNet.sendWithPromise("NumberTree.eraseKey",{tree:this.id,key:key})};PDFNet.NumberTree.prototype.erase=function(pos){checkArguments(arguments.length,
-1,"erase","(PDFNet.DictIterator)",[[pos,"Object",PDFNet.DictIterator,"DictIterator"]]);return PDFNet.sendWithPromise("NumberTree.erase",{tree:this.id,pos:pos.id})};PDFNet.NumberTree.prototype.getSDFObj=function(){return PDFNet.sendWithPromise("NumberTree.getSDFObj",{tree:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.getType=function(){return PDFNet.sendWithPromise("Obj.getType",{o:this.id})};PDFNet.Obj.prototype.getDoc=function(){return PDFNet.sendWithPromise("Obj.getDoc",
-{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.Obj.prototype.write=function(stream){checkArguments(arguments.length,1,"write","(PDFNet.FilterWriter)",[[stream,"Object",PDFNet.FilterWriter,"FilterWriter"]]);return PDFNet.sendWithPromise("Obj.write",{o:this.id,stream:stream.id})};PDFNet.Obj.prototype.isEqual=function(to){checkArguments(arguments.length,1,"isEqual","(PDFNet.Obj)",[[to,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.isEqual",{o:this.id,
-to:to.id})};PDFNet.Obj.prototype.isBool=function(){return PDFNet.sendWithPromise("Obj.isBool",{o:this.id})};PDFNet.Obj.prototype.getBool=function(){return PDFNet.sendWithPromise("Obj.getBool",{o:this.id})};PDFNet.Obj.prototype.setBool=function(b){checkArguments(arguments.length,1,"setBool","(boolean)",[[b,"boolean"]]);return PDFNet.sendWithPromise("Obj.setBool",{o:this.id,b:b})};PDFNet.Obj.prototype.isNumber=function(){return PDFNet.sendWithPromise("Obj.isNumber",{o:this.id})};PDFNet.Obj.prototype.getNumber=
-function(){return PDFNet.sendWithPromise("Obj.getNumber",{o:this.id})};PDFNet.Obj.prototype.setNumber=function(n){checkArguments(arguments.length,1,"setNumber","(number)",[[n,"number"]]);return PDFNet.sendWithPromise("Obj.setNumber",{o:this.id,n:n})};PDFNet.Obj.prototype.isNull=function(){return PDFNet.sendWithPromise("Obj.isNull",{o:this.id})};PDFNet.Obj.prototype.isString=function(){return PDFNet.sendWithPromise("Obj.isString",{o:this.id})};PDFNet.Obj.prototype.getBuffer=function(){return PDFNet.sendWithPromise("Obj.getBuffer",
-{o:this.id})};PDFNet.Obj.prototype.setString=function(value){checkArguments(arguments.length,1,"setString","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.setString",{o:this.id,value:value})};PDFNet.Obj.prototype.setUString=function(value){checkArguments(arguments.length,1,"setUString","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.setUString",{o:this.id,value:value})};PDFNet.Obj.prototype.isName=function(){return PDFNet.sendWithPromise("Obj.isName",{o:this.id})};
-PDFNet.Obj.prototype.getName=function(){return PDFNet.sendWithPromise("Obj.getName",{o:this.id})};PDFNet.Obj.prototype.setName=function(name){checkArguments(arguments.length,1,"setName","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("Obj.setName",{o:this.id,name:name})};PDFNet.Obj.prototype.isIndirect=function(){return PDFNet.sendWithPromise("Obj.isIndirect",{o:this.id})};PDFNet.Obj.prototype.getObjNum=function(){return PDFNet.sendWithPromise("Obj.getObjNum",{o:this.id})};PDFNet.Obj.prototype.getGenNum=
-function(){return PDFNet.sendWithPromise("Obj.getGenNum",{o:this.id})};PDFNet.Obj.prototype.getOffset=function(){return PDFNet.sendWithPromise("Obj.getOffset",{o:this.id})};PDFNet.Obj.prototype.isFree=function(){return PDFNet.sendWithPromise("Obj.isFree",{o:this.id})};PDFNet.Obj.prototype.setMark=function(mark){checkArguments(arguments.length,1,"setMark","(boolean)",[[mark,"boolean"]]);return PDFNet.sendWithPromise("Obj.setMark",{o:this.id,mark:mark})};PDFNet.Obj.prototype.isMarked=function(){return PDFNet.sendWithPromise("Obj.isMarked",
-{o:this.id})};PDFNet.Obj.prototype.isLoaded=function(){return PDFNet.sendWithPromise("Obj.isLoaded",{o:this.id})};PDFNet.Obj.prototype.isContainer=function(){return PDFNet.sendWithPromise("Obj.isContainer",{o:this.id})};PDFNet.Obj.prototype.size=function(){return PDFNet.sendWithPromise("Obj.size",{o:this.id})};PDFNet.Obj.prototype.getDictIterator=function(){return PDFNet.sendWithPromise("Obj.getDictIterator",{o:this.id}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.isDict=
-function(){return PDFNet.sendWithPromise("Obj.isDict",{o:this.id})};PDFNet.Obj.prototype.find=function(key){checkArguments(arguments.length,1,"find","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.find",{o:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.findObj=function(key){checkArguments(arguments.length,1,"findObj","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.findObj",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.get=function(key){checkArguments(arguments.length,1,"get","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.get",{o:this.id,key:key}).then(function(id){return createDestroyableObj(PDFNet.DictIterator,id)})};PDFNet.Obj.prototype.putName=function(key,name){checkArguments(arguments.length,2,"putName","(string, string)",[[key,"string"],[name,"string"]]);return PDFNet.sendWithPromise("Obj.putName",{o:this.id,key:key,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.putArray=function(key){checkArguments(arguments.length,1,"putArray","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putArray",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putBool=function(key,value){checkArguments(arguments.length,2,"putBool","(string, boolean)",[[key,"string"],[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.putBool",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.putDict=function(key){checkArguments(arguments.length,1,"putDict","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putDict",{o:this.id,key:key}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putNumber=function(key,value){checkArguments(arguments.length,2,"putNumber","(string, number)",[[key,"string"],[value,"number"]]);return PDFNet.sendWithPromise("Obj.putNumber",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.putString=function(key,value){checkArguments(arguments.length,2,"putString","(string, string)",[[key,"string"],[value,"string"]]);return PDFNet.sendWithPromise("Obj.putString",{o:this.id,key:key,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putText=function(key,t){checkArguments(arguments.length,2,"putText","(string, string)",[[key,"string"],[t,"string"]]);return PDFNet.sendWithPromise("Obj.putText",{o:this.id,key:key,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.putNull=function(key){checkArguments(arguments.length,1,"putNull","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.putNull",{o:this.id,key:key})};PDFNet.Obj.prototype.put=function(key,input_obj){checkArguments(arguments.length,2,"put","(string, PDFNet.Obj)",[[key,"string"],[input_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.put",{o:this.id,key:key,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putRect=
-function(key,x1,y1,x2,y2){checkArguments(arguments.length,5,"putRect","(string, number, number, number, number)",[[key,"string"],[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.putRect",{o:this.id,key:key,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.putMatrix=function(key,mtx){checkArguments(arguments.length,2,"putMatrix","(string, PDFNet.Matrix2D)",[[key,"string"],[mtx,"Structure",PDFNet.Matrix2D,
-"Matrix2D"]]);checkParamsYieldFunction("putMatrix",[[mtx,1]]);return PDFNet.sendWithPromise("Obj.putMatrix",{o:this.id,key:key,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.eraseFromKey=function(key){checkArguments(arguments.length,1,"eraseFromKey","(string)",[[key,"string"]]);return PDFNet.sendWithPromise("Obj.eraseFromKey",{o:this.id,key:key})};PDFNet.Obj.prototype.erase=function(pos){checkArguments(arguments.length,1,"erase","(PDFNet.DictIterator)",[[pos,
-"Object",PDFNet.DictIterator,"DictIterator"]]);return PDFNet.sendWithPromise("Obj.erase",{o:this.id,pos:pos.id})};PDFNet.Obj.prototype.rename=function(old_key,new_key){checkArguments(arguments.length,2,"rename","(string, string)",[[old_key,"string"],[new_key,"string"]]);return PDFNet.sendWithPromise("Obj.rename",{o:this.id,old_key:old_key,new_key:new_key})};PDFNet.Obj.prototype.isArray=function(){return PDFNet.sendWithPromise("Obj.isArray",{o:this.id})};PDFNet.Obj.prototype.getAt=function(index){checkArguments(arguments.length,
-1,"getAt","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("Obj.getAt",{o:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertName=function(pos,name){checkArguments(arguments.length,2,"insertName","(number, string)",[[pos,"number"],[name,"string"]]);return PDFNet.sendWithPromise("Obj.insertName",{o:this.id,pos:pos,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertArray=function(pos){checkArguments(arguments.length,
-1,"insertArray","(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertArray",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertBool=function(pos,value){checkArguments(arguments.length,2,"insertBool","(number, boolean)",[[pos,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.insertBool",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertDict=function(pos){checkArguments(arguments.length,
-1,"insertDict","(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertDict",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertNumber=function(pos,value){checkArguments(arguments.length,2,"insertNumber","(number, number)",[[pos,"number"],[value,"number"]]);return PDFNet.sendWithPromise("Obj.insertNumber",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertString=
-function(pos,value){checkArguments(arguments.length,2,"insertString","(number, string)",[[pos,"number"],[value,"string"]]);return PDFNet.sendWithPromise("Obj.insertString",{o:this.id,pos:pos,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertText=function(pos,t){checkArguments(arguments.length,2,"insertText","(number, string)",[[pos,"number"],[t,"string"]]);return PDFNet.sendWithPromise("Obj.insertText",{o:this.id,pos:pos,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.insertNull=function(pos){checkArguments(arguments.length,1,"insertNull","(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.insertNull",{o:this.id,pos:pos}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insert=function(pos,input_obj){checkArguments(arguments.length,2,"insert","(number, PDFNet.Obj)",[[pos,"number"],[input_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.insert",{o:this.id,pos:pos,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.insertRect=function(pos,x1,y1,x2,y2){checkArguments(arguments.length,5,"insertRect","(number, number, number, number, number)",[[pos,"number"],[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.insertRect",{o:this.id,pos:pos,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.insertMatrix=function(pos,mtx){checkArguments(arguments.length,2,"insertMatrix","(number, PDFNet.Matrix2D)",
-[[pos,"number"],[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("insertMatrix",[[mtx,1]]);return PDFNet.sendWithPromise("Obj.insertMatrix",{o:this.id,pos:pos,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackName=function(name){checkArguments(arguments.length,1,"pushBackName","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("Obj.pushBackName",{o:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.Obj.prototype.pushBackArray=function(){return PDFNet.sendWithPromise("Obj.pushBackArray",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackBool=function(value){checkArguments(arguments.length,1,"pushBackBool","(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("Obj.pushBackBool",{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackDict=function(){return PDFNet.sendWithPromise("Obj.pushBackDict",
-{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackNumber=function(value){checkArguments(arguments.length,1,"pushBackNumber","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("Obj.pushBackNumber",{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackString=function(value){checkArguments(arguments.length,1,"pushBackString","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("Obj.pushBackString",
-{o:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackText=function(t){checkArguments(arguments.length,1,"pushBackText","(string)",[[t,"string"]]);return PDFNet.sendWithPromise("Obj.pushBackText",{o:this.id,t:t}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackNull=function(){return PDFNet.sendWithPromise("Obj.pushBackNull",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBack=
-function(input_obj){checkArguments(arguments.length,1,"pushBack","(PDFNet.Obj)",[[input_obj,"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("Obj.pushBack",{o:this.id,input_obj:input_obj.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackRect=function(x1,y1,x2,y2){checkArguments(arguments.length,4,"pushBackRect","(number, number, number, number)",[[x1,"number"],[y1,"number"],[x2,"number"],[y2,"number"]]);return PDFNet.sendWithPromise("Obj.pushBackRect",
-{o:this.id,x1:x1,y1:y1,x2:x2,y2:y2}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.pushBackMatrix=function(mtx){checkArguments(arguments.length,1,"pushBackMatrix","(PDFNet.Matrix2D)",[[mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"]]);checkParamsYieldFunction("pushBackMatrix",[[mtx,0]]);return PDFNet.sendWithPromise("Obj.pushBackMatrix",{o:this.id,mtx:mtx}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.Obj.prototype.eraseAt=function(pos){checkArguments(arguments.length,
-1,"eraseAt","(number)",[[pos,"number"]]);return PDFNet.sendWithPromise("Obj.eraseAt",{o:this.id,pos:pos})};PDFNet.Obj.prototype.isStream=function(){return PDFNet.sendWithPromise("Obj.isStream",{o:this.id})};PDFNet.Obj.prototype.getRawStreamLength=function(){return PDFNet.sendWithPromise("Obj.getRawStreamLength",{o:this.id})};PDFNet.Obj.prototype.setStreamData=function(data_buf){checkArguments(arguments.length,1,"setStreamData","(ArrayBuffer|TypedArray)",[[data_buf,"ArrayBuffer"]]);var data_bufArrayBuffer=
-getArrayBuffer(data_buf,!1);return PDFNet.sendWithPromise("Obj.setStreamData",{obj:this.id,data_buf:data_bufArrayBuffer})};PDFNet.Obj.prototype.setStreamDataWithFilter=function(data_buf,filter_chain){checkArguments(arguments.length,2,"setStreamDataWithFilter","(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data_buf,"ArrayBuffer"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("Obj.setStreamDataWithFilter",
-{obj:this.id,data_buf:data_bufArrayBuffer,no_own_filter_chain:filter_chain.id})};PDFNet.Obj.prototype.getRawStream=function(decrypt){checkArguments(arguments.length,1,"getRawStream","(boolean)",[[decrypt,"boolean"]]);return PDFNet.sendWithPromise("Obj.getRawStream",{o:this.id,decrypt:decrypt}).then(function(id){return createPDFNetObj(PDFNet.Filter,id)})};PDFNet.Obj.prototype.getDecodedStream=function(){return PDFNet.sendWithPromise("Obj.getDecodedStream",{o:this.id}).then(function(id){return createPDFNetObj(PDFNet.Filter,
-id)})};PDFNet.ObjSet.create=function(){return PDFNet.sendWithPromise("objSetCreate",{}).then(function(id){return createDestroyableObj(PDFNet.ObjSet,id)})};PDFNet.ObjSet.prototype.createName=function(name){checkArguments(arguments.length,1,"createName","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("ObjSet.createName",{set:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createArray=function(){return PDFNet.sendWithPromise("ObjSet.createArray",
-{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createBool=function(value){checkArguments(arguments.length,1,"createBool","(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("ObjSet.createBool",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createDict=function(){return PDFNet.sendWithPromise("ObjSet.createDict",{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.ObjSet.prototype.createNull=function(){return PDFNet.sendWithPromise("ObjSet.createNull",{set:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createNumber=function(value){checkArguments(arguments.length,1,"createNumber","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("ObjSet.createNumber",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createString=function(value){checkArguments(arguments.length,
-1,"createString","(string)",[[value,"string"]]);return PDFNet.sendWithPromise("ObjSet.createString",{set:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.ObjSet.prototype.createFromJson=function(json){checkArguments(arguments.length,1,"createFromJson","(string)",[[json,"string"]]);return PDFNet.sendWithPromise("ObjSet.createFromJson",{set:this.id,json:json}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createShallowCopy=
-function(){return PDFNet.sendWithPromise("SDFDoc.createShallowCopy",{source:this.id}).then(function(id){return createPDFNetObj(PDFNet.SDFDoc,id)})};PDFNet.SDFDoc.prototype.releaseFileHandles=function(){return PDFNet.sendWithPromise("SDFDoc.releaseFileHandles",{doc:this.id})};PDFNet.SDFDoc.prototype.isEncrypted=function(){return PDFNet.sendWithPromise("SDFDoc.isEncrypted",{doc:this.id})};PDFNet.SDFDoc.prototype.initStdSecurityHandlerUString=function(password){checkArguments(arguments.length,1,"initStdSecurityHandlerUString",
-"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SDFDoc.initStdSecurityHandlerUString",{doc:this.id,password:password})};PDFNet.SDFDoc.prototype.isModified=function(){return PDFNet.sendWithPromise("SDFDoc.isModified",{doc:this.id})};PDFNet.SDFDoc.prototype.hasRepairedXRef=function(){return PDFNet.sendWithPromise("SDFDoc.hasRepairedXRef",{doc:this.id})};PDFNet.SDFDoc.prototype.isFullSaveRequired=function(){return PDFNet.sendWithPromise("SDFDoc.isFullSaveRequired",{doc:this.id})};PDFNet.SDFDoc.prototype.getTrailer=
-function(){return PDFNet.sendWithPromise("SDFDoc.getTrailer",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.getObj=function(obj_num){checkArguments(arguments.length,1,"getObj","(number)",[[obj_num,"number"]]);return PDFNet.sendWithPromise("SDFDoc.getObj",{doc:this.id,obj_num:obj_num}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.importObj=function(obj,deep_copy){checkArguments(arguments.length,2,"importObj","(PDFNet.Obj, boolean)",
-[[obj,"Object",PDFNet.Obj,"Obj"],[deep_copy,"boolean"]]);return PDFNet.sendWithPromise("SDFDoc.importObj",{doc:this.id,obj:obj.id,deep_copy:deep_copy}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.importObjsWithExcludeList=function(obj_list,exclude_list){checkArguments(arguments.length,2,"importObjsWithExcludeList","(Array<Core.PDFNet.Obj>, Array<Core.PDFNet.Obj>)",[[obj_list,"Array"],[exclude_list,"Array"]]);obj_list=Array.from(obj_list,function(x){return x.id});
-exclude_list=Array.from(exclude_list,function(x){return x.id});return PDFNet.sendWithPromise("SDFDoc.importObjsWithExcludeList",{doc:this.id,obj_list:obj_list,exclude_list:exclude_list}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.xRefSize=function(){return PDFNet.sendWithPromise("SDFDoc.xRefSize",{doc:this.id})};PDFNet.SDFDoc.prototype.clearMarks=function(){return PDFNet.sendWithPromise("SDFDoc.clearMarks",{doc:this.id})};PDFNet.SDFDoc.prototype.saveMemory=
-function(flags,header){checkArguments(arguments.length,2,"saveMemory","(number, string)",[[flags,"number"],[header,"string"]]);return PDFNet.sendWithPromise("SDFDoc.saveMemory",{doc:this.id,flags:flags,header:header}).then(function(id){return new Uint8Array(id)})};PDFNet.SDFDoc.prototype.saveStream=function(stream,flags,header){checkArguments(arguments.length,3,"saveStream","(PDFNet.Filter, number, string)",[[stream,"Object",PDFNet.Filter,"Filter"],[flags,"number"],[header,"string"]]);return PDFNet.sendWithPromise("SDFDoc.saveStream",
-{doc:this.id,stream:stream.id,flags:flags,header:header})};PDFNet.SDFDoc.prototype.getHeader=function(){return PDFNet.sendWithPromise("SDFDoc.getHeader",{doc:this.id})};PDFNet.SDFDoc.prototype.getSecurityHandler=function(){return PDFNet.sendWithPromise("SDFDoc.getSecurityHandler",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.SecurityHandler,id)})};PDFNet.SDFDoc.prototype.setSecurityHandler=function(handler){checkArguments(arguments.length,1,"setSecurityHandler","(PDFNet.SecurityHandler)",
-[[handler,"Object",PDFNet.SecurityHandler,"SecurityHandler"]]);0!=handler.id&&avoidCleanup(handler.id);return PDFNet.sendWithPromise("SDFDoc.setSecurityHandler",{doc:this.id,no_own_handler:handler.id})};PDFNet.SDFDoc.prototype.removeSecurity=function(){return PDFNet.sendWithPromise("SDFDoc.removeSecurity",{doc:this.id})};PDFNet.SDFDoc.prototype.swap=function(obj_num1,obj_num2){checkArguments(arguments.length,2,"swap","(number, number)",[[obj_num1,"number"],[obj_num2,"number"]]);return PDFNet.sendWithPromise("SDFDoc.swap",
-{doc:this.id,obj_num1:obj_num1,obj_num2:obj_num2})};PDFNet.SDFDoc.prototype.isLinearized=function(){return PDFNet.sendWithPromise("SDFDoc.isLinearized",{doc:this.id})};PDFNet.SDFDoc.prototype.getLinearizationDict=function(){return PDFNet.sendWithPromise("SDFDoc.getLinearizationDict",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.getHintStream=function(){return PDFNet.sendWithPromise("SDFDoc.getHintStream",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.SDFDoc.prototype.enableDiskCaching=function(use_cache_flag){checkArguments(arguments.length,1,"enableDiskCaching","(boolean)",[[use_cache_flag,"boolean"]]);return PDFNet.sendWithPromise("SDFDoc.enableDiskCaching",{doc:this.id,use_cache_flag:use_cache_flag})};PDFNet.SDFDoc.prototype.lock=function(){var me=this;return PDFNet.sendWithPromise("SDFDoc.lock",{doc:this.id}).then(function(){lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlock"})})};PDFNet.SDFDoc.prototype.unlock=function(){var me=
-this;return PDFNet.sendWithPromise("SDFDoc.unlock",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.SDFDoc.prototype.lockRead=function(){var me=this;return PDFNet.sendWithPromise("SDFDoc.lockRead",{doc:this.id}).then(function(){lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlockRead"})})};PDFNet.SDFDoc.prototype.unlockRead=function(){var me=this;return PDFNet.sendWithPromise("SDFDoc.unlockRead",{doc:this.id}).then(function(){unregisterLockedObject(me)})};PDFNet.SDFDoc.prototype.tryLock=
-function(){var me=this;return PDFNet.sendWithPromise("SDFDoc.tryLock",{doc:this.id}).then(function(success){success&&lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlock"})})};PDFNet.SDFDoc.prototype.tryLockRead=function(){var me=this;return PDFNet.sendWithPromise("SDFDoc.tryLockRead",{doc:this.id}).then(function(success){success&&lockedObjects.push({name:"SDFDoc",id:me.id,unlocktype:"unlockRead"})})};PDFNet.SDFDoc.prototype.getFileName=function(){return PDFNet.sendWithPromise("SDFDoc.getFileName",
-{doc:this.id})};PDFNet.SDFDoc.prototype.createIndirectName=function(name){checkArguments(arguments.length,1,"createIndirectName","(string)",[[name,"string"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectName",{doc:this.id,name:name}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectArray=function(){return PDFNet.sendWithPromise("SDFDoc.createIndirectArray",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectBool=
-function(value){checkArguments(arguments.length,1,"createIndirectBool","(boolean)",[[value,"boolean"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectBool",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectDict=function(){return PDFNet.sendWithPromise("SDFDoc.createIndirectDict",{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectNull=function(){return PDFNet.sendWithPromise("SDFDoc.createIndirectNull",
-{doc:this.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectNumber=function(value){checkArguments(arguments.length,1,"createIndirectNumber","(number)",[[value,"number"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectNumber",{doc:this.id,value:value}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectString=function(buf_value){checkArguments(arguments.length,1,"createIndirectString","(ArrayBuffer|TypedArray)",
-[[buf_value,"ArrayBuffer"]]);var buf_valueArrayBuffer=getArrayBuffer(buf_value,!1);return PDFNet.sendWithPromise("SDFDoc.createIndirectString",{doc:this.id,buf_value:buf_valueArrayBuffer}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectStringFromUString=function(str){checkArguments(arguments.length,1,"createIndirectStringFromUString","(string)",[[str,"string"]]);return PDFNet.sendWithPromise("SDFDoc.createIndirectStringFromUString",{doc:this.id,str:str}).then(function(id){return createPDFNetObj(PDFNet.Obj,
-id)})};PDFNet.SDFDoc.prototype.createIndirectStreamFromFilter=function(data,filter_chain){"undefined"===typeof filter_chain&&(filter_chain=new PDFNet.Filter("0"));checkArguments(arguments.length,1,"createIndirectStreamFromFilter","(PDFNet.FilterReader, PDFNet.Filter)",[[data,"Object",PDFNet.FilterReader,"FilterReader"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("SDFDoc.createIndirectStreamFromFilter",{doc:this.id,
-data:data.id,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SDFDoc.prototype.createIndirectStream=function(data_buf,filter_chain){checkArguments(arguments.length,2,"createIndirectStream","(ArrayBuffer|TypedArray, PDFNet.Filter)",[[data_buf,"ArrayBuffer"],[filter_chain,"Object",PDFNet.Filter,"Filter"]]);var data_bufArrayBuffer=getArrayBuffer(data_buf,!1);0!=filter_chain.id&&avoidCleanup(filter_chain.id);return PDFNet.sendWithPromise("SDFDoc.createIndirectStream",
-{doc:this.id,data_buf:data_bufArrayBuffer,no_own_filter_chain:filter_chain.id}).then(function(id){return createPDFNetObj(PDFNet.Obj,id)})};PDFNet.SecurityHandler.prototype.getPermission=function(p){checkArguments(arguments.length,1,"getPermission","(number)",[[p,"number"]]);return PDFNet.sendWithPromise("SecurityHandler.getPermission",{sh:this.id,p:p})};PDFNet.SecurityHandler.prototype.getKeyLength=function(){return PDFNet.sendWithPromise("SecurityHandler.getKeyLength",{sh:this.id})};PDFNet.SecurityHandler.prototype.getEncryptionAlgorithmID=
-function(){return PDFNet.sendWithPromise("SecurityHandler.getEncryptionAlgorithmID",{sh:this.id})};PDFNet.SecurityHandler.prototype.getHandlerDocName=function(){return PDFNet.sendWithPromise("SecurityHandler.getHandlerDocName",{sh:this.id})};PDFNet.SecurityHandler.prototype.isModified=function(){return PDFNet.sendWithPromise("SecurityHandler.isModified",{sh:this.id})};PDFNet.SecurityHandler.prototype.setModified=function(is_modified){"undefined"===typeof is_modified&&(is_modified=!0);checkArguments(arguments.length,
-0,"setModified","(boolean)",[[is_modified,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setModified",{sh:this.id,is_modified:is_modified})};PDFNet.SecurityHandler.create=function(crypt_type){checkArguments(arguments.length,1,"create","(number)",[[crypt_type,"number"]]);return PDFNet.sendWithPromise("securityHandlerCreate",{crypt_type:crypt_type}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.SecurityHandler.createFromEncCode=function(name,key_len,
-enc_code){checkArguments(arguments.length,3,"createFromEncCode","(string, number, number)",[[name,"string"],[key_len,"number"],[enc_code,"number"]]);return PDFNet.sendWithPromise("securityHandlerCreateFromEncCode",{name:name,key_len:key_len,enc_code:enc_code}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,id)})};PDFNet.SecurityHandler.createDefault=function(){return PDFNet.sendWithPromise("securityHandlerCreateDefault",{}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,
-id)})};PDFNet.SecurityHandler.prototype.setPermission=function(perm,value){checkArguments(arguments.length,2,"setPermission","(number, boolean)",[[perm,"number"],[value,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setPermission",{sh:this.id,perm:perm,value:value})};PDFNet.SecurityHandler.prototype.changeRevisionNumber=function(rev_num){checkArguments(arguments.length,1,"changeRevisionNumber","(number)",[[rev_num,"number"]]);return PDFNet.sendWithPromise("SecurityHandler.changeRevisionNumber",
-{sh:this.id,rev_num:rev_num})};PDFNet.SecurityHandler.prototype.setEncryptMetadata=function(encrypt_metadata){checkArguments(arguments.length,1,"setEncryptMetadata","(boolean)",[[encrypt_metadata,"boolean"]]);return PDFNet.sendWithPromise("SecurityHandler.setEncryptMetadata",{sh:this.id,encrypt_metadata:encrypt_metadata})};PDFNet.SecurityHandler.prototype.getRevisionNumber=function(){return PDFNet.sendWithPromise("SecurityHandler.getRevisionNumber",{sh:this.id})};PDFNet.SecurityHandler.prototype.isUserPasswordRequired=
-function(){return PDFNet.sendWithPromise("SecurityHandler.isUserPasswordRequired",{sh:this.id})};PDFNet.SecurityHandler.prototype.isMasterPasswordRequired=function(){return PDFNet.sendWithPromise("SecurityHandler.isMasterPasswordRequired",{sh:this.id})};PDFNet.SecurityHandler.prototype.isAES=function(){return PDFNet.sendWithPromise("SecurityHandler.isAES",{sh:this.id})};PDFNet.SecurityHandler.prototype.isAESObj=function(stream){checkArguments(arguments.length,1,"isAESObj","(PDFNet.Obj)",[[stream,
-"Object",PDFNet.Obj,"Obj"]]);return PDFNet.sendWithPromise("SecurityHandler.isAESObj",{sh:this.id,stream:stream.id})};PDFNet.SecurityHandler.prototype.isRC4=function(){return PDFNet.sendWithPromise("SecurityHandler.isRC4",{sh:this.id})};PDFNet.SecurityHandler.prototype.changeUserPasswordUString=function(password){checkArguments(arguments.length,1,"changeUserPasswordUString","(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordUString",{sh:this.id,password:password})};
-PDFNet.SecurityHandler.prototype.changeUserPasswordBuffer=function(password){checkArguments(arguments.length,1,"changeUserPasswordBuffer","(ArrayBuffer|TypedArray)",[[password,"ArrayBuffer"]]);var passwordArrayBuffer=getArrayBuffer(password,!1);return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordBuffer",{sh:this.id,password_buf:passwordArrayBuffer})};PDFNet.SecurityHandler.prototype.changeMasterPasswordUString=function(password){checkArguments(arguments.length,1,"changeMasterPasswordUString",
-"(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordUString",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.changeMasterPasswordBuffer=function(password_buf){checkArguments(arguments.length,1,"changeMasterPasswordBuffer","(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,!1);return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordBuffer",{sh:this.id,password_buf:password_bufArrayBuffer})};
-PDFNet.SecurityHandler.prototype.initPasswordUString=function(password){checkArguments(arguments.length,1,"initPasswordUString","(string)",[[password,"string"]]);return PDFNet.sendWithPromise("SecurityHandler.initPasswordUString",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.initPasswordBuffer=function(password_buf){checkArguments(arguments.length,1,"initPasswordBuffer","(ArrayBuffer|TypedArray)",[[password_buf,"ArrayBuffer"]]);var password_bufArrayBuffer=getArrayBuffer(password_buf,
-!1);return PDFNet.sendWithPromise("SecurityHandler.initPasswordBuffer",{sh:this.id,password_buf:password_bufArrayBuffer})};PDFNet.SignatureHandler.prototype.getName=function(){return PDFNet.sendWithPromise("SignatureHandler.getName",{signature_handler:this.id})};PDFNet.SignatureHandler.prototype.reset=function(){return PDFNet.sendWithPromise("SignatureHandler.reset",{signature_handler:this.id})};PDFNet.SignatureHandler.prototype.destructor=function(){return PDFNet.sendWithPromise("SignatureHandler.destructor",
-{signature_handler:this.id})};PDFNet.UndoManager.prototype.discardAllSnapshots=function(){return PDFNet.sendWithPromise("UndoManager.discardAllSnapshots",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.undo=function(){return PDFNet.sendWithPromise("UndoManager.undo",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot,id)})};PDFNet.UndoManager.prototype.canUndo=function(){return PDFNet.sendWithPromise("UndoManager.canUndo",
-{self:this.id})};PDFNet.UndoManager.prototype.getNextUndoSnapshot=function(){return PDFNet.sendWithPromise("UndoManager.getNextUndoSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.redo=function(){return PDFNet.sendWithPromise("UndoManager.redo",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot,id)})};PDFNet.UndoManager.prototype.canRedo=function(){return PDFNet.sendWithPromise("UndoManager.canRedo",
-{self:this.id})};PDFNet.UndoManager.prototype.getNextRedoSnapshot=function(){return PDFNet.sendWithPromise("UndoManager.getNextRedoSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.UndoManager.prototype.takeSnapshot=function(){return PDFNet.sendWithPromise("UndoManager.takeSnapshot",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ResultSnapshot,id)})};PDFNet.ResultSnapshot.prototype.currentState=function(){return PDFNet.sendWithPromise("ResultSnapshot.currentState",
-{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.ResultSnapshot.prototype.previousState=function(){return PDFNet.sendWithPromise("ResultSnapshot.previousState",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.DocSnapshot,id)})};PDFNet.ResultSnapshot.prototype.isOk=function(){return PDFNet.sendWithPromise("ResultSnapshot.isOk",{self:this.id})};PDFNet.ResultSnapshot.prototype.isNullTransition=function(){return PDFNet.sendWithPromise("ResultSnapshot.isNullTransition",
-{self:this.id})};PDFNet.DocSnapshot.prototype.getHash=function(){return PDFNet.sendWithPromise("DocSnapshot.getHash",{self:this.id})};PDFNet.DocSnapshot.prototype.isValid=function(){return PDFNet.sendWithPromise("DocSnapshot.isValid",{self:this.id})};PDFNet.DocSnapshot.prototype.equals=function(snapshot){checkArguments(arguments.length,1,"equals","(PDFNet.DocSnapshot)",[[snapshot,"Object",PDFNet.DocSnapshot,"DocSnapshot"]]);return PDFNet.sendWithPromise("DocSnapshot.equals",{self:this.id,snapshot:snapshot.id})};
-PDFNet.OCRModule.applyOCRJsonToPDF=function(dst,json){checkArguments(arguments.length,2,"applyOCRJsonToPDF","(PDFNet.PDFDoc, string)",[[dst,"PDFDoc"],[json,"string"]]);return PDFNet.sendWithPromise("ocrModuleApplyOCRJsonToPDF",{dst:dst.id,json:json})};PDFNet.OCRModule.applyOCRXmlToPDF=function(dst,xml){checkArguments(arguments.length,2,"applyOCRXmlToPDF","(PDFNet.PDFDoc, string)",[[dst,"PDFDoc"],[xml,"string"]]);return PDFNet.sendWithPromise("ocrModuleApplyOCRXmlToPDF",{dst:dst.id,xml:xml})};PDFNet.VerificationOptions.create=
-function(in_level){checkArguments(arguments.length,1,"create","(number)",[[in_level,"number"]]);return PDFNet.sendWithPromise("verificationOptionsCreate",{in_level:in_level}).then(function(id){return createDestroyableObj(PDFNet.VerificationOptions,id)})};PDFNet.VerificationOptions.prototype.addTrustedCertificate=function(in_certificate_buf,in_trust_flags){"undefined"===typeof in_trust_flags&&(in_trust_flags=PDFNet.VerificationOptions.CertificateTrustFlag.e_default_trust);checkArguments(arguments.length,
-1,"addTrustedCertificate","(ArrayBuffer|TypedArray, number)",[[in_certificate_buf,"ArrayBuffer"],[in_trust_flags,"number"]]);var in_certificate_bufArrayBuffer=getArrayBuffer(in_certificate_buf,!1);return PDFNet.sendWithPromise("VerificationOptions.addTrustedCertificate",{self:this.id,in_certificate_buf:in_certificate_bufArrayBuffer,in_trust_flags:in_trust_flags})};PDFNet.VerificationOptions.prototype.addTrustedCertificates=function(in_P7C_binary_DER_certificates_file_data){checkArguments(arguments.length,
-1,"addTrustedCertificates","(ArrayBuffer|TypedArray)",[[in_P7C_binary_DER_certificates_file_data,"ArrayBuffer"]]);var in_P7C_binary_DER_certificates_file_dataArrayBuffer=getArrayBuffer(in_P7C_binary_DER_certificates_file_data,!1);return PDFNet.sendWithPromise("VerificationOptions.addTrustedCertificates",{self:this.id,in_P7C_binary_DER_certificates_file_data_buf:in_P7C_binary_DER_certificates_file_dataArrayBuffer})};PDFNet.VerificationOptions.prototype.loadTrustList=function(in_fdf_cert_exchange_data){checkArguments(arguments.length,
-1,"loadTrustList","(PDFNet.FDFDoc)",[[in_fdf_cert_exchange_data,"FDFDoc"]]);return PDFNet.sendWithPromise("VerificationOptions.loadTrustList",{self:this.id,in_fdf_cert_exchange_data:in_fdf_cert_exchange_data.id})};PDFNet.VerificationOptions.prototype.enableModificationVerification=function(in_on_or_off){checkArguments(arguments.length,1,"enableModificationVerification","(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableModificationVerification",{self:this.id,
-in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableDigestVerification=function(in_on_or_off){checkArguments(arguments.length,1,"enableDigestVerification","(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableDigestVerification",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableTrustVerification=function(in_on_or_off){checkArguments(arguments.length,1,"enableTrustVerification","(boolean)",[[in_on_or_off,
-"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableTrustVerification",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.setRevocationProxyPrefix=function(in_str){checkArguments(arguments.length,1,"setRevocationProxyPrefix","(string)",[[in_str,"string"]]);return PDFNet.sendWithPromise("VerificationOptions.setRevocationProxyPrefix",{self:this.id,in_str:in_str})};PDFNet.VerificationOptions.prototype.enableOnlineCRLRevocationChecking=function(in_on_or_off){checkArguments(arguments.length,
-1,"enableOnlineCRLRevocationChecking","(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineCRLRevocationChecking",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableOnlineOCSPRevocationChecking=function(in_on_or_off){checkArguments(arguments.length,1,"enableOnlineOCSPRevocationChecking","(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineOCSPRevocationChecking",{self:this.id,
-in_on_or_off:in_on_or_off})};PDFNet.VerificationOptions.prototype.enableOnlineRevocationChecking=function(in_on_or_off){checkArguments(arguments.length,1,"enableOnlineRevocationChecking","(boolean)",[[in_on_or_off,"boolean"]]);return PDFNet.sendWithPromise("VerificationOptions.enableOnlineRevocationChecking",{self:this.id,in_on_or_off:in_on_or_off})};PDFNet.VerificationResult.prototype.getDigitalSignatureField=function(){return PDFNet.sendWithPromise("VerificationResult.getDigitalSignatureField",
-{self:this.id}).then(function(id){return new PDFNet.DigitalSignatureField(id)})};PDFNet.VerificationResult.prototype.getVerificationStatus=function(){return PDFNet.sendWithPromise("VerificationResult.getVerificationStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getDocumentStatus=function(){return PDFNet.sendWithPromise("VerificationResult.getDocumentStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getDigestStatus=function(){return PDFNet.sendWithPromise("VerificationResult.getDigestStatus",
-{self:this.id})};PDFNet.VerificationResult.prototype.getTrustStatus=function(){return PDFNet.sendWithPromise("VerificationResult.getTrustStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getPermissionsStatus=function(){return PDFNet.sendWithPromise("VerificationResult.getPermissionsStatus",{self:this.id})};PDFNet.VerificationResult.prototype.getTrustVerificationResult=function(){return PDFNet.sendWithPromise("VerificationResult.getTrustVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.TrustVerificationResult,
-id)})};PDFNet.VerificationResult.prototype.hasTrustVerificationResult=function(){return PDFNet.sendWithPromise("VerificationResult.hasTrustVerificationResult",{self:this.id})};PDFNet.VerificationResult.prototype.getDisallowedChanges=function(){return PDFNet.sendWithPromise("VerificationResult.getDisallowedChanges",{self:this.id}).then(function(idArray){for(var retArray=[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.DisallowedChange(id);retArray.push(id);createdObjects.push({name:id.name,
-id:id.id})}return retArray})};PDFNet.VerificationResult.prototype.getDigestAlgorithm=function(){return PDFNet.sendWithPromise("VerificationResult.getDigestAlgorithm",{self:this.id})};PDFNet.VerificationResult.prototype.getDocumentStatusAsString=function(){return PDFNet.sendWithPromise("VerificationResult.getDocumentStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getDigestStatusAsString=function(){return PDFNet.sendWithPromise("VerificationResult.getDigestStatusAsString",{self:this.id})};
-PDFNet.VerificationResult.prototype.getTrustStatusAsString=function(){return PDFNet.sendWithPromise("VerificationResult.getTrustStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getPermissionsStatusAsString=function(){return PDFNet.sendWithPromise("VerificationResult.getPermissionsStatusAsString",{self:this.id})};PDFNet.VerificationResult.prototype.getUnsupportedFeatures=function(){return PDFNet.sendWithPromise("VerificationResult.getUnsupportedFeatures",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getVerificationStatus=
-function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getVerificationStatus",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSDigestStatus=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSDigestStatus",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestStatus=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatus",{self:this.id})};
-PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustStatus=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustStatus",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSDigestStatusAsString=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSDigestStatusAsString",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestStatusAsString=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestStatusAsString",
-{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustStatusAsString=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustStatusAsString",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.hasTrustVerificationResult=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.hasTrustVerificationResult",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getTrustVerificationResult=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getTrustVerificationResult",
-{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.TrustVerificationResult,id)})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getCMSSignatureDigestAlgorithm=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getCMSSignatureDigestAlgorithm",{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getMessageImprintDigestAlgorithm=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getMessageImprintDigestAlgorithm",
-{self:this.id})};PDFNet.EmbeddedTimestampVerificationResult.prototype.getUnsupportedFeatures=function(){return PDFNet.sendWithPromise("EmbeddedTimestampVerificationResult.getUnsupportedFeatures",{self:this.id})};PDFNet.TrustVerificationResult.prototype.wasSuccessful=function(){return PDFNet.sendWithPromise("TrustVerificationResult.wasSuccessful",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getResultString=function(){return PDFNet.sendWithPromise("TrustVerificationResult.getResultString",
-{self:this.id})};PDFNet.TrustVerificationResult.prototype.getTimeOfTrustVerification=function(){return PDFNet.sendWithPromise("TrustVerificationResult.getTimeOfTrustVerification",{self:this.id})};PDFNet.TrustVerificationResult.prototype.getTimeOfTrustVerificationEnum=function(){return PDFNet.sendWithPromise("TrustVerificationResult.getTimeOfTrustVerificationEnum",{self:this.id})};PDFNet.TrustVerificationResult.prototype.hasEmbeddedTimestampVerificationResult=function(){return PDFNet.sendWithPromise("TrustVerificationResult.hasEmbeddedTimestampVerificationResult",
-{self:this.id})};PDFNet.TrustVerificationResult.prototype.getEmbeddedTimestampVerificationResult=function(){return PDFNet.sendWithPromise("TrustVerificationResult.getEmbeddedTimestampVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.EmbeddedTimestampVerificationResult,id)})};PDFNet.TrustVerificationResult.prototype.getCertPath=function(){return PDFNet.sendWithPromise("TrustVerificationResult.getCertPath",{self:this.id}).then(function(idArray){for(var retArray=
-[],i=0;i<idArray.length;++i){var id=idArray[i];if("0"===id)return null;id=new PDFNet.X509Certificate(id);retArray.push(id);createdObjects.push({name:id.name,id:id.id})}return retArray})};PDFNet.DisallowedChange.prototype.getObjNum=function(){return PDFNet.sendWithPromise("DisallowedChange.getObjNum",{self:this.id})};PDFNet.DisallowedChange.prototype.getType=function(){return PDFNet.sendWithPromise("DisallowedChange.getType",{self:this.id})};PDFNet.DisallowedChange.prototype.getTypeAsString=function(){return PDFNet.sendWithPromise("DisallowedChange.getTypeAsString",
-{self:this.id})};PDFNet.X509Extension.prototype.isCritical=function(){return PDFNet.sendWithPromise("X509Extension.isCritical",{self:this.id})};PDFNet.X509Extension.prototype.getObjectIdentifier=function(){return PDFNet.sendWithPromise("X509Extension.getObjectIdentifier",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.X509Extension.prototype.toString=function(){return PDFNet.sendWithPromise("X509Extension.toString",{self:this.id})};PDFNet.X509Extension.prototype.getData=
-function(){return PDFNet.sendWithPromise("X509Extension.getData",{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.X501AttributeTypeAndValue.prototype.getAttributeTypeOID=function(){return PDFNet.sendWithPromise("X501AttributeTypeAndValue.getAttributeTypeOID",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.ObjectIdentifier,id)})};PDFNet.X501AttributeTypeAndValue.prototype.getStringValue=function(){return PDFNet.sendWithPromise("X501AttributeTypeAndValue.getStringValue",
-{self:this.id})};PDFNet.ByteRange.prototype.getStartOffset=function(){checkThisYieldFunction("getStartOffset",this.yieldFunction);return PDFNet.sendWithPromise("ByteRange.getStartOffset",{self:this})};PDFNet.ByteRange.prototype.getEndOffset=function(){checkThisYieldFunction("getEndOffset",this.yieldFunction);return PDFNet.sendWithPromise("ByteRange.getEndOffset",{self:this})};PDFNet.ByteRange.prototype.getSize=function(){checkThisYieldFunction("getSize",this.yieldFunction);return PDFNet.sendWithPromise("ByteRange.getSize",
-{self:this})};PDFNet.TimestampingResult.prototype.getStatus=function(){return PDFNet.sendWithPromise("TimestampingResult.getStatus",{self:this.id})};PDFNet.TimestampingResult.prototype.getString=function(){return PDFNet.sendWithPromise("TimestampingResult.getString",{self:this.id})};PDFNet.TimestampingResult.prototype.hasResponseVerificationResult=function(){return PDFNet.sendWithPromise("TimestampingResult.hasResponseVerificationResult",{self:this.id})};PDFNet.TimestampingResult.prototype.getResponseVerificationResult=
-function(){return PDFNet.sendWithPromise("TimestampingResult.getResponseVerificationResult",{self:this.id}).then(function(id){return createDestroyableObj(PDFNet.EmbeddedTimestampVerificationResult,id)})};PDFNet.TimestampingResult.prototype.getData=function(){return PDFNet.sendWithPromise("TimestampingResult.getData",{self:this.id}).then(function(id){return new Uint8Array(id)})};PDFNet.ActionParameter.create=function(action){checkArguments(arguments.length,1,"create","(PDFNet.Action)",[[action,"Object",
-PDFNet.Action,"Action"]]);return PDFNet.sendWithPromise("actionParameterCreate",{action:action.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.Action.prototype.parameterCreateWithField=function(field){checkArguments(arguments.length,1,"parameterCreateWithField","(PDFNet.Field)",[[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("parameterCreateWithField",[[field,0]]);return PDFNet.sendWithPromise("Action.parameterCreateWithField",{action:this.id,
-field:field}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.Action.prototype.parameterCreateWithAnnot=function(annot){checkArguments(arguments.length,1,"parameterCreateWithAnnot","(PDFNet.Annot)",[[annot,"Object",PDFNet.Annot,"Annot"]]);return PDFNet.sendWithPromise("Action.parameterCreateWithAnnot",{action:this.id,annot:annot.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.Action.prototype.parameterCreateWithPage=function(page){checkArguments(arguments.length,
-1,"parameterCreateWithPage","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("Action.parameterCreateWithPage",{action:this.id,page:page.id}).then(function(id){return createDestroyableObj(PDFNet.ActionParameter,id)})};PDFNet.ActionParameter.prototype.getAction=function(){return PDFNet.sendWithPromise("ActionParameter.getAction",{ap:this.id}).then(function(id){return createPDFNetObj(PDFNet.Action,id)})};PDFNet.ViewChangeCollection.create=function(){return PDFNet.sendWithPromise("viewChangeCollectionCreate",
-{}).then(function(id){return createDestroyableObj(PDFNet.ViewChangeCollection,id)})};PDFNet.RadioButtonGroup.createFromField=function(field){checkArguments(arguments.length,1,"createFromField","(PDFNet.Field)",[[field,"Structure",PDFNet.Field,"Field"]]);checkParamsYieldFunction("createFromField",[[field,0]]);return PDFNet.sendWithPromise("radioButtonGroupCreateFromField",{field:field}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.RadioButtonGroup.create=function(doc,
-field_name){"undefined"===typeof field_name&&(field_name="");checkArguments(arguments.length,1,"create","(PDFNet.PDFDoc, string)",[[doc,"PDFDoc"],[field_name,"string"]]);return PDFNet.sendWithPromise("radioButtonGroupCreate",{doc:doc.id,field_name:field_name}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,id)})};PDFNet.RadioButtonGroup.prototype.copy=function(){return PDFNet.sendWithPromise("RadioButtonGroup.copy",{group:this.id}).then(function(id){return createDestroyableObj(PDFNet.RadioButtonGroup,
-id)})};PDFNet.RadioButtonGroup.prototype.add=function(pos,onstate){"undefined"===typeof onstate&&(onstate="");checkArguments(arguments.length,1,"add","(PDFNet.Rect, string)",[[pos,"Structure",PDFNet.Rect,"Rect"],[onstate,"const char* = 0"]]);checkParamsYieldFunction("add",[[pos,0]]);return PDFNet.sendWithPromise("RadioButtonGroup.add",{group:this.id,pos:pos,onstate:onstate}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget,id)})};PDFNet.RadioButtonGroup.prototype.getNumButtons=function(){return PDFNet.sendWithPromise("RadioButtonGroup.getNumButtons",
-{group:this.id})};PDFNet.RadioButtonGroup.prototype.getButton=function(index){checkArguments(arguments.length,1,"getButton","(number)",[[index,"number"]]);return PDFNet.sendWithPromise("RadioButtonGroup.getButton",{group:this.id,index:index}).then(function(id){return createPDFNetObj(PDFNet.RadioButtonWidget,id)})};PDFNet.RadioButtonGroup.prototype.getField=function(){return PDFNet.sendWithPromise("RadioButtonGroup.getField",{group:this.id}).then(function(id){return new PDFNet.Field(id)})};PDFNet.RadioButtonGroup.prototype.addGroupButtonsToPage=
-function(page){checkArguments(arguments.length,1,"addGroupButtonsToPage","(PDFNet.Page)",[[page,"Object",PDFNet.Page,"Page"]]);return PDFNet.sendWithPromise("RadioButtonGroup.addGroupButtonsToPage",{group:this.id,page:page.id})};PDFNet.PDFTronCustomSecurityHandler.create=function(custom_id){checkArguments(arguments.length,1,"create","(number)",[[custom_id,"number"]]);return PDFNet.sendWithPromise("pdfTronCustomSecurityHandlerCreate",{custom_id:custom_id}).then(function(id){return createDestroyableObj(PDFNet.SecurityHandler,
-id)})};PDFNet.WebFontDownloader.isAvailable=function(){return PDFNet.sendWithPromise("webFontDownloaderIsAvailable",{})};PDFNet.WebFontDownloader.enableDownloads=function(){return PDFNet.sendWithPromise("webFontDownloaderEnableDownloads",{})};PDFNet.WebFontDownloader.disableDownloads=function(){return PDFNet.sendWithPromise("webFontDownloaderDisableDownloads",{})};PDFNet.WebFontDownloader.preCacheAsync=function(){return PDFNet.sendWithPromise("webFontDownloaderPreCacheAsync",{})};PDFNet.WebFontDownloader.clearCache=
-function(){return PDFNet.sendWithPromise("webFontDownloaderClearCache",{})};PDFNet.WebFontDownloader.setCustomWebFontURL=function(url){checkArguments(arguments.length,1,"setCustomWebFontURL","(string)",[[url,"string"]]);return PDFNet.sendWithPromise("webFontDownloaderSetCustomWebFontURL",{url:url})};var getUrlAsBuffer=function(jsUrl,options){options=options||{};var xhr=new XMLHttpRequest;return new Promise(function(resolve,reject){xhr.open("GET",jsUrl,!0);xhr.responseType="arraybuffer";options.withCredentials&&
-(xhr.withCredentials=options.withCredentials);xhr.onerror=function(){reject(Error("Network error occurred"))};xhr.onload=function(evt){200==this.status?(evt=new Uint8Array(xhr.response),resolve(evt)):reject(Error("Download Failed"))};var customHeaders=options.customHeaders;if(customHeaders)for(var header in customHeaders)xhr.setRequestHeader(header,customHeaders[header]);xhr.send()},function(){xhr.abort()})},positionString=function(num){return 0===num?"1st":1===num?"2nd":2===num?"3rd":num+1+"th"},
-checkArguments=function(inputArgNum,minNum,funcName,funcParams,argInfoList){maxNum=argInfoList.length;if(minNum===maxNum){if(inputArgNum!==minNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected "+minNum+" argument. Function Signature: "+funcName+funcParams);}else if(0>=minNum){if(inputArgNum>maxNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected at most "+maxNum+" arguments. Function Signature: "+funcName+funcParams);
-}else if(inputArgNum<minNum||inputArgNum>maxNum)throw new RangeError(inputArgNum+" arguments passed into function '"+funcName+"'. Expected "+minNum+" to "+maxNum+" arguments. Function Signature: "+funcName+funcParams);var throwParaTypeError=function(argPos,argType,expectedType){throw new TypeError(positionString(argPos)+" input argument in function '"+funcName+"' is of type '"+argType+"'. Expected type '"+expectedType+"'. Function Signature: "+funcName+funcParams);};inputArgNum=function(arg,argPos,
-expectedType){"object"===_typeof(arg)&&arg.name?throwParaTypeError(argPos,arg.name,expectedType):throwParaTypeError(argPos,_typeof(arg),expectedType)};for(minNum=0;minNum<maxNum;minNum++){var argInfo=argInfoList[minNum],arg$jscomp$0=argInfo[0],argType=argInfo[1];if(arg$jscomp$0 instanceof Promise)throw new TypeError(positionString(minNum)+" input argument in function '"+funcName+"' is a Promise object. Promises require a 'yield' statement before being accessed.");if("OptionBase"===argType){if(arg$jscomp$0)if("object"===
-_typeof(arg$jscomp$0)){if("function"!==typeof arg$jscomp$0.getJsonString)throw new TypeError(positionString(minNum)+" input argument in function '"+funcName+"' is an 'oject' which is expected to have the 'getJsonString' function");}else throwParaTypeError(minNum,arg$jscomp$0.name,"object")}else"Array"===argType?arg$jscomp$0.constructor!==Array&&inputArgNum(arg$jscomp$0,minNum,"Array"):"ArrayBuffer"===argType?exports.isArrayBuffer(arg$jscomp$0)||exports.isArrayBuffer(arg$jscomp$0.buffer)||inputArgNum(arg$jscomp$0,
-minNum,"ArrayBuffer|TypedArray"):"ArrayAsBuffer"===argType?arg$jscomp$0.constructor===Array||exports.isArrayBuffer(arg$jscomp$0)||exports.isArrayBuffer(arg$jscomp$0.buffer)||inputArgNum(arg$jscomp$0,minNum,"ArrayBuffer|TypedArray"):"PDFDoc"===argType||"SDFDoc"===argType||"FDFDoc"===argType?arg$jscomp$0 instanceof PDFNet.PDFDoc||arg$jscomp$0 instanceof PDFNet.SDFDoc||arg$jscomp$0 instanceof PDFNet.FDFDoc||inputArgNum(arg$jscomp$0,minNum,"PDFDoc|SDFDoc|FDFDoc"):"Structure"===argType?arg$jscomp$0 instanceof
-argInfo[2]||!arg$jscomp$0||arg$jscomp$0.name===argInfo[3]||inputArgNum(arg$jscomp$0,minNum,argInfo[3]):"OptionObject"===argType?arg$jscomp$0 instanceof argInfo[2]||("object"===_typeof(arg$jscomp$0)&&arg$jscomp$0.name?arg$jscomp$0.name!==argInfo[4]&&throwParaTypeError(minNum,arg$jscomp$0.name,argInfo[3]):throwParaTypeError(minNum,_typeof(arg$jscomp$0),argInfo[3])):"Object"===argType?arg$jscomp$0 instanceof argInfo[2]||inputArgNum(arg$jscomp$0,minNum,argInfo[3]):"const char* = 0"===argType?"string"!==
-typeof arg$jscomp$0&&null!==arg$jscomp$0&&throwParaTypeError(minNum,_typeof(arg$jscomp$0),"string"):_typeof(arg$jscomp$0)!==argType&&throwParaTypeError(minNum,_typeof(arg$jscomp$0),argType)}},checkThisYieldFunction=function(funcName,yieldFunc){if("undefined"!==typeof yieldFunc)throw Error("Function "+yieldFunc+" recently altered a struct object without yielding. That object is now being accessed by function '"+funcName+"'. Perhaps a yield statement is required for "+yieldFunc+"?");},checkParamsYieldFunction=
-function(funcName,argInfoList){for(var i=0;i<argInfoList.length;i++){var argInfo=argInfoList[i],arg=argInfo[0];if(arg&&"undefined"!==typeof arg.yieldFunction)throw Error("Function '"+arg.yieldFunction+"' recently altered a struct object without yielding. That object is now being accessed by the "+positionString(argInfo[1])+" input argument in function '"+funcName+"'. Perhaps a yield statement is required for '"+arg.yieldFunction+"'?");}},getArrayBuffer=function(buffer,arrayAsBuffer){var bufferArrayBuffer=
-buffer;arrayAsBuffer&&buffer.constructor===Array&&(bufferArrayBuffer=new Float64Array(buffer));exports.isArrayBuffer(bufferArrayBuffer)||(bufferArrayBuffer=bufferArrayBuffer.buffer,buffer.byteLength<bufferArrayBuffer.byteLength&&(bufferArrayBuffer=bufferArrayBuffer.slice(buffer.byteOffset,buffer.byteOffset+buffer.byteLength)));return bufferArrayBuffer};createdObjects=[];lockedObjects=[];stackCallCounter=beginOperationCounter=0;deallocStackCounter=[];unlockStackCounter=[];var finishedInitializeCapability;
-exports.PDFTron&&PDFTron.WebViewer&&PDFTron.WebViewer.prototype&&PDFTron.WebViewer.prototype.version&&!PDFTron.skipPDFNetWebViewerWarning&&console.warn("PDFNet.js and WebViewer.js have been included in the same context. See pdftron.com/kb_same_context for an explanation of why this could be an error in your application.");var createDestroyableObj=function(constructor,id,type){if("0"===id)return null;constructor=new constructor(id,type);createdObjects.push({name:constructor.name,id:constructor.id});
-return constructor},createPDFNetObj=function(constructor,id,type){return"0"===id?null:new constructor(id,type)},unregisterLockedObject=function(obj){for(var objIndex=-1,i=lockedObjects.length-1;0<=i;i--)if(lockedObjects[i].id==obj.id){objIndex=i;break}if(-1!=objIndex)for(lockedObjects.splice(objIndex,1),i=unlockStackCounter.length-1;0<=i;i--)if(objIndex<unlockStackCounter[i])--unlockStackCounter[i];else break;else console.log("[WARNING], the object to be unlocked was not found in the unlock list. Unlocking may cause errors.")},
-avoidCleanup=function(id){for(var objIndex=-1,i=createdObjects.length-1;0<=i;i--)if(createdObjects[i].id==id){objIndex=i;break}if(-1!=objIndex)for(createdObjects.splice(objIndex,1),i=deallocStackCounter.length-1;0<=i;i--)if(objIndex<deallocStackCounter[i])--deallocStackCounter[i];else break;else console.log("[WARNING], the object was not found in the deallocation list. Deallocating may cause errors.")};PDFNet.messageHandler={sendWithPromiseReturnId:function(){throw Error("PDFNet.initialize must be called and finish resolving before any other PDFNetJS function calls.");
-}};PDFNet.userPriority=2;PDFNet.sendWithPromise=function(actionName,data){var messageHandler=this.messageHandler,promiseAndId=messageHandler.sendWithPromiseReturnId(actionName,data,this.userPriority);messageHandler.pdfnetCommandChain=0==messageHandler.pdfnetActiveCommands.size?promiseAndId.promise:messageHandler.pdfnetCommandChain.then(function(){return promiseAndId.promise});messageHandler.pdfnetActiveCommands.add(promiseAndId.callbackId);return messageHandler.pdfnetCommandChain};var copyFunc=function(obj,
-me){for(var attr in obj)me[attr]=obj[attr]};PDFNet.runGeneratorWithoutCleanup=function(generator,license_key){return PDFNet.runWithoutCleanup(function(){return finishGenerator(generator)},license_key)};PDFNet.runGeneratorWithCleanup=function(generator,license_key){return PDFNet.runWithCleanup(function(){return finishGenerator(generator)},license_key)};var previousRunPromise=Promise.resolve();PDFNet.displayAllocatedObjects=function(){console.log("List of created but not yet deallocated objects:");
-if(0==createdObjects.length)console.log("~~None~~ (nothing to deallocate)");else for(var i=0;i<createdObjects.length;i++)console.log(createdObjects[i]);return createdObjects.length};PDFNet.getAllocatedObjectsCount=function(){return createdObjects.length};PDFNet.startDeallocateStack=function(){stackCallCounter+=1;deallocStackCounter.push(createdObjects.length);unlockStackCounter.push(lockedObjects.length);return Promise.resolve()};PDFNet.endDeallocateStack=function(){if(0===stackCallCounter)return console.log("Warning, no startDeallocateStack() instances remain."),
-Promise.resolve();var deallocStackPos=deallocStackCounter.pop(),unlockStackPos=unlockStackCounter.pop(),promiseList=[],promiseListDestroy=[];var objToDealloc=0;if("undefined"!==typeof unlockStackPos&&0!==lockedObjects.length&&lockedObjects.length!==unlockStackPos)for(;lockedObjects.length>unlockStackPos;){var objToUnlock=lockedObjects.pop();objToUnlock=PDFNet.sendWithPromise(objToUnlock.name+"."+objToUnlock.unlocktype,{doc:objToUnlock.id});objToUnlock=objToUnlock["catch"](function(e){console.log(e)});
-promiseList.push(objToUnlock);objToDealloc++}unlockStackPos=0;if("undefined"!==typeof deallocStackPos&&0!==createdObjects.length&&createdObjects.length!==deallocStackPos)for(;createdObjects.length>deallocStackPos;)objToDealloc=createdObjects.pop(),objToDealloc=PDFNet.sendWithPromise(objToDealloc.name+".destroy",{auto_dealloc_obj:objToDealloc.id}),objToDealloc=objToDealloc["catch"](function(e){console.log(e)}),promiseListDestroy.push(objToDealloc),unlockStackPos++;--stackCallCounter;return Promise.all(promiseList).then(function(){return Promise.all(promiseListDestroy)})};
-PDFNet.getStackCount=function(){return Promise.resolve(stackCallCounter)};PDFNet.deallocateAllObjects=function(){if(0==createdObjects.length){console.log("~~None~~ (nothing to deallocate)");var capability=createPromiseCapability();capability.resolve();return capability.promise}capability=[];for(deallocStackCounter=[];lockedObjects.length;)objToUnlock=lockedObjects.pop(),unlockPromise=PDFNet.sendWithPromise(objToUnlock.name+"."+objToUnlock.unlocktype,{doc:objToUnlock.id}),unlockPromise=unlockPromise["catch"](function(e){console.log(e)}),
-capability.push(unlockPromise);for(;createdObjects.length;){var objToDealloc=createdObjects.pop();objToDealloc=PDFNet.sendWithPromise(objToDealloc.name+".destroy",{auto_dealloc_obj:objToDealloc.id});objToDealloc=objToDealloc["catch"](function(e){console.log(e)});capability.push(objToDealloc)}return Promise.all(capability)};PDFNet.Redactor.redact=function(doc,red_arr,appearance,ext_neg_mode,page_coord_sys){"undefined"===typeof appearance&&(appearance={});"undefined"===typeof appearance.redaction_overlay&&
-(appearance.redaction_overlay=!0);"undefined"===typeof appearance.positive_overlay_color?appearance.positive_overlay_color=void 0:"undefined"!==typeof appearance.positive_overlay_color.id&&(appearance.positive_overlay_color=appearance.positive_overlay_color.id);"undefined"===typeof appearance.negative_overlay_color?appearance.negative_overlay_color=void 0:"undefined"!==typeof appearance.negative_overlay_color.id&&(appearance.negative_overlay_color=appearance.negative_overlay_color.id);"undefined"===
-typeof appearance.border&&(appearance.border=!0);"undefined"===typeof appearance.use_overlay_text&&(appearance.use_overlay_text=!0);"undefined"===typeof appearance.font?appearance.font=void 0:"undefined"!==typeof appearance.font.id&&(appearance.font=appearance.font.id);"undefined"===typeof appearance.min_font_size&&(appearance.min_font_size=2);"undefined"===typeof appearance.max_font_size&&(appearance.max_font_size=24);"undefined"===typeof appearance.text_color?appearance.text_color=void 0:"undefined"!==
-typeof appearance.text_color.id&&(appearance.text_color=appearance.text_color.id);"undefined"===typeof appearance.horiz_text_alignment&&(appearance.horiz_text_alignment=-1);"undefined"===typeof appearance.vert_text_alignment&&(appearance.vert_text_alignment=1);"undefined"===typeof appearance.show_redacted_content_regions&&(appearance.show_redacted_content_regions=!1);"undefined"===typeof appearance.redacted_content_color?appearance.redacted_content_color=void 0:"undefined"!==typeof appearance.redacted_content_color.id&&
-(appearance.redacted_content_color=appearance.redacted_content_color.id);"undefined"===typeof ext_neg_mode&&(ext_neg_mode=!0);"undefined"===typeof page_coord_sys&&(page_coord_sys=!0);if(2>arguments.length||5<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'redact'. Expected 2 to 5 arguments. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean=true, boolean=true)");if(doc instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument of function 'redact'. Promises require a 'yield' statement before being accessed.");
-if(!(doc instanceof PDFNet.PDFDoc||doc instanceof PDFNet.SDFDoc||doc instanceof PDFNet.FDFDoc)){if("object"==_typeof(doc))throw new TypeError("1st input argument in function 'redact' is of type '"+doc.name+"'. Expected type 'PDFDoc'. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean=true, boolean=true).");throw new TypeError("1st input argument '"+doc+"' in function 'redact' is of type '"+_typeof(doc)+"'. Expected type 'PDFDoc'. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean=true, boolean=true).");
-}if(red_arr instanceof Promise)throw new TypeError("Received a Promise object in 2nd input argument in function 'redact'. Promises require a 'yield' statement before being accessed.");if(!(red_arr instanceof Array)){if("object"==_typeof(red_arr))throw new TypeError("2nd input argument in function 'redact' is of type '"+red_arr.name+"'. Expected an array of 'Redaction' objects. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean, boolean).");throw new TypeError("2nd input argument '"+
-red_arr+"' in function 'redact' is of type '"+_typeof(red_arr)+"'. Expected type 'Redaction'. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean, boolean).");}if(appearance instanceof Promise)throw new TypeError("Received a Promise object in 3rd input argument in function 'redact'. Promises require a 'yield' statement before being accessed.");if("object"!==_typeof(appearance))throw new TypeError("3nd input argument in function 'redact' is of type '"+appearance.name+"'. Expected a javascript object. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean, boolean).");
-if(ext_neg_mode instanceof Promise)throw new TypeError("Received a Promise object in 4th input argument in function 'redact'. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof ext_neg_mode)throw new TypeError("4th input argument '"+ext_neg_mode+"' in function 'redact' is of type '"+_typeof(ext_neg_mode)+"'. Expected type 'boolean'. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean=true, boolean=true).");if(page_coord_sys instanceof Promise)throw new TypeError("Received a Promise object in 5th input argument in function 'redact'. Promises require a 'yield' statement before being accessed.");
-if("boolean"!=typeof page_coord_sys)throw new TypeError("5th input argument '"+page_coord_sys+"' in function 'redact' is of type '"+_typeof(page_coord_sys)+"'. Expected type 'boolean'. Function Signature: redact(PDFDoc, Array of Redaction Objects, Object, boolean=true, boolean=true).");return PDFNet.sendWithPromise("redactorRedact",{doc:doc.id,red_arr:red_arr,appearance:appearance,ext_neg_mode:ext_neg_mode,page_coord_sys:page_coord_sys})};PDFNet.Highlights.prototype.getCurrentQuads=function(){return PDFNet.sendWithPromise("Highlights.getCurrentQuads",
-{hlts:this.id}).then(function(id){id=new Float64Array(id);for(var retArray=[],currQuad,i=0;i<id.length;i+=8)currQuad=PDFNet.QuadPoint(id[i+0],id[i+1],id[i+2],id[i+3],id[i+4],id[i+5],id[i+6],id[i+7]),retArray.push(currQuad);return retArray})};PDFNet.TextSearch.prototype.run=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'run'. Expected 0 arguments. Function Signature: run()");return PDFNet.sendWithPromise("TextSearch.run",{ts:this.id}).then(function(searchObj){searchObj.highlights=
-new PDFNet.Highlights(searchObj.highlights);if("0"==searchObj.highlights.id)return searchObj;createdObjects.push({name:searchObj.highlights.name,id:searchObj.highlights.id});return searchObj})};PDFNet.Iterator.prototype.current=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'fillEncryptDict'. Expected 0 argument.");var me=this;this.yieldFunction="Iterator.current";var promise=PDFNet.sendWithPromise("Iterator.current",{itr:this.id,type:this.type});
-me.yieldFunction=void 0;"Int"!=this.type&&(promise=promise.then(function(id){return new PDFNet[me.type](id)}));return promise};PDFNet.PDFDoc.prototype.getFileData=function(callback){callback({type:"id",id:this.id})};PDFNet.PDFDoc.prototype.getFile=function(callback){return null};PDFNet.PDFDoc.createFromURL=function(url,options){if(1>arguments.length||2<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromURL'. Expected 1 to 2 arguments. Function Signature: createFromURL(string, Obj)");
-if(url instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createFromURL'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof url)throw new TypeError("1st input argument '"+url+"' in function 'createFromURL' is of type '"+_typeof(url)+"'. Expected type 'string'. Function Signature: createFromURL(string).");return getUrlAsBuffer(url,options).then(function(data){return PDFNet.PDFDoc.createFromBuffer(data)})};PDFNet.PDFDraw.prototype.exportBuffer=
-function(page,format,encoder_params){"undefined"==typeof format&&(format="PNG");"undefined"==typeof encoder_params&&(encoder_params=new PDFNet.Obj("0"));if(1>arguments.length||3<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'exportBuffer'. Expected 1 to 3 arguments. Function Signature: exportBuffer(Page, string, Obj)");if(page instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'exportBuffer'. Promises require a 'yield' statement before being accessed.");
-if(!(page instanceof PDFNet.Page)){if("object"==_typeof(page))throw new TypeError("1st input argument in function 'exportBuffer' is of type '"+page.name+"'. Expected type 'Page'. Function Signature: exportBuffer(Page, string, Obj).");throw new TypeError("1st input argument '"+page+"' in function 'exportBuffer' is of type '"+_typeof(page)+"'. Expected type 'Page'. Function Signature: exportBuffer(Page, string, Obj).");}if(format instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'exportBuffer'. Promises require a 'yield' statement before being accessed.");
-if("string"!=typeof format)throw new TypeError("2nd input argument '"+format+"' in function 'exportBuffer' is of type '"+_typeof(format)+"'. Expected type 'string'. Function Signature: exportBuffer(Page, string, Obj).");if(encoder_params instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'exportBuffer'. Promises require a 'yield' statement before being accessed.");if(!(encoder_params instanceof PDFNet.Obj)){if("object"==_typeof(encoder_params))throw new TypeError("3rd input argument in function 'exportBuffer' is of type '"+
-encoder_params.name+"'. Expected type 'Obj'. Function Signature: exportBuffer(Page, string, Obj).");throw new TypeError("3rd input argument '"+encoder_params+"' in function 'exportBuffer' is of type '"+_typeof(encoder_params)+"'. Expected type 'Obj'. Function Signature: exportBuffer(Page, string, Obj).");}return PDFNet.sendWithPromise("PDFDraw.exportBuffer",{d:this.id,page:page.id,format:format,encoder_params:encoder_params.id}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.PDFDraw.prototype.exportStream=
-PDFNet.PDFDraw.prototype.exportBuffer;PDFNet.Element.prototype.getTextData=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getTextData'. Expected 0 arguments. Function Signature: getTextData()");return PDFNet.sendWithPromise("Element.getTextData",{e:this.id})};PDFNet.Element.prototype.getPathData=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getPathData'. Expected 0 arguments. Function Signature: getPathData()");
-return PDFNet.sendWithPromise("Element.getPathData",{e:this.id}).then(function(id){id.operators=new Uint8Array(id.operators);id.points=new Float64Array(id.points);return id})};PDFNet.PDFDoc.prototype.convertToXod=function(optionsObj){"undefined"===typeof optionsObj&&(optionsObj={});return PDFNet.sendWithPromise("PDFDoc.convertToXod",{doc:this.id,optionsObject:optionsObj}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.PDFDoc.prototype.convertToXodStream=function(options){"undefined"===
-typeof options&&(options={});return PDFNet.sendWithPromise("PDFDoc.convertToXodStream",{doc:this.id,optionsObject:options}).then(function(id){return"0"==id?null:new PDFNet.Filter(id)})};PDFNet.FilterReader.prototype.read=function(buf_size){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'read'. Expected 1 argument. Function Signature: read(number).");if(buf_size instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'read'. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof buf_size)throw new TypeError("1st input argument '"+buf_size+"' in function 'read' is of type '"+_typeof(buf_size)+"'. Expected type 'number'. Function Signature: read(number).");return PDFNet.sendWithPromise("FilterReader.read",{reader:this.id,buf_size:buf_size}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.FilterReader.prototype.readAllIntoBuffer=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'readAllIntoBuffer'. Expected 0 arguments. Function Signature: readAllIntoBuffer()");
-return PDFNet.sendWithPromise("FilterReader.readAllIntoBuffer",{reader:this.id}).then(function(id){return"0"==id?null:new Uint8Array(id)})};PDFNet.bitmapInfo=function(id){copyFunc(id,this)};PDFNet.PDFDraw.prototype.getBitmap=function(page,pix_fmt,demult){if(3!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBitmap'. Expected 3 arguments. Function Signature: getBitmap(Page, PixelFormat, boolean).");if(page instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'getBitmap'. Promises require a 'yield' statement before being accessed.");
-if(!(page instanceof PDFNet.Page)){if("object"==_typeof(page))throw new TypeError("1st input argument in function 'getBitmap' is of type '"+page.name+"'. Expected type 'Page'. Function Signature: getBitmap(Page, PixelFormat, boolean).");throw new TypeError("1st input argument '"+page+"' in function 'getBitmap' is of type '"+_typeof(page)+"'. Expected type 'Page'. Function Signature: getBitmap(Page, PixelFormat, boolean).");}if(pix_fmt instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'getBitmap'. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof pix_fmt)throw new TypeError("2nd input argument '"+pix_fmt+"' in function 'getBitmap' is of type '"+_typeof(pix_fmt)+"'. Expected type 'number'. Function Signature: getBitmap(Page, PixelFormat, boolean).");if(demult instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'getBitmap'. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof demult)throw new TypeError("3rd input argument '"+demult+"' in function 'getBitmap' is of type '"+
-_typeof(demult)+"'. Expected type 'boolean'. Function Signature: getBitmap(Page, PixelFormat, boolean).");return PDFNet.sendWithPromise("PDFDraw.getBitmap",{d:this.id,page:page.id,pix_fmt:pix_fmt,demult:demult}).then(function(id){return"0"==id?null:new PDFNet.bitmapInfo(id)})};PDFNet.Matrix2D.create=function(a,b,c,d,h,v){void 0==a&&(a=0);void 0==b&&(b=0);void 0==c&&(c=0);void 0==d&&(d=0);void 0==h&&(h=0);void 0==v&&(v=0);if(6<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'Matrix2D.create'. Expected 6 or fewer arguments. Function Signature: create(number, number, number, number, number, number).");
-if(a instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");if("number"!=typeof a)throw new TypeError("1st input argument '"+a+"' in function 'Matrix2D.create' is of type '"+_typeof(a)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");if(b instanceof Promise)throw new TypeError("Received a Promise object in 2nd input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof b)throw new TypeError("2nd input argument '"+b+"' in function 'Matrix2D.create' is of type '"+_typeof(b)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");if(c instanceof Promise)throw new TypeError("Received a Promise object in 3rd input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");if("number"!=typeof c)throw new TypeError("3rd input argument '"+c+"' in function 'Matrix2D.create' is of type '"+
-_typeof(c)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");if(d instanceof Promise)throw new TypeError("Received a Promise object in 4th input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");if("number"!=typeof d)throw new TypeError("4th input argument '"+d+"' in function 'Matrix2D.create' is of type '"+_typeof(d)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");
-if(h instanceof Promise)throw new TypeError("Received a Promise object in 5th input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");if("number"!=typeof h)throw new TypeError("5th input argument '"+h+"' in function 'Matrix2D.create' is of type '"+_typeof(h)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");if(v instanceof Promise)throw new TypeError("Received a Promise object in 6th input argument 'Matrix2D.create'. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof v)throw new TypeError("6th input argument '"+v+"' in function 'Matrix2D.create' is of type '"+_typeof(v)+"'. Expected type 'number'. Function Signature: create(number, number, number, number, number, number).");var capability=createPromiseCapability(),matrix=new PDFNet.Matrix2D({m_a:a,m_b:b,m_c:c,m_d:d,m_h:h,m_v:v});capability.resolve(matrix);return capability.promise};PDFNet.PDFDoc.prototype.getPDFDoc=function(){return PDFNet.sendWithPromise("GetPDFDoc",{doc:this.id}).then(function(id){return"0"==
-id?null:new PDFNet.PDFDoc(id)})};PDFNet.TextExtractorLine.prototype.getBBox=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getBBox'. Perhaps a yield statement is required for "+this.yieldFunction+
-"?");var me=this;this.yieldFunction="TextExtractorLine.getBBox";return PDFNet.sendWithPromise("TextExtractorLine.getBBox",{line:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id.result.x1,id.result.y1,id.result.x2,id.result.y2,id.result.mp_rect)})};PDFNet.TextExtractorLine.prototype.getQuad=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getQuad'. Expected 0 arguments. Function Signature: getQuad()");if("undefined"!==
-typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getQuad'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction="TextExtractorLine.getQuad";return PDFNet.sendWithPromise("TextExtractorLine.getQuad",{line:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,id.result.p2y,
-id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorWord.prototype.getBBox=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getBBox'. Perhaps a yield statement is required for "+
-this.yieldFunction+"?");var me=this;this.yieldFunction="TextExtractorWord.getBBox";return PDFNet.sendWithPromise("TextExtractorWord.getBBox",{tew:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id.result.x1,id.result.y1,id.result.x2,id.result.y2,id.result.mp_rect)})};PDFNet.TextExtractorWord.prototype.getQuad=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getQuad'. Expected 0 arguments. Function Signature: getQuad()");
-if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getQuad'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction="TextExtractorWord.getQuad";return PDFNet.sendWithPromise("TextExtractorWord.getQuad",{tew:this}).then(function(id){me.yieldFunction=void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,
-id.result.p2y,id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorWord.prototype.getGlyphQuad=function(glyph_idx){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getGlyphQuad'. Expected 1 argument. Function Signature: getGlyphQuad(number)");if(glyph_idx instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'getGlyphQuad'. Promises require a 'yield' statement before being accessed.");if("number"!=
-typeof glyph_idx)throw new TypeError("1st input argument '"+glyph_idx+"' in function 'getGlyphQuad' is of type '"+_typeof(glyph_idx)+"'. Expected type 'number'. Function Signature: getGlyphQuad(number).");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getGlyphQuad'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction=
-"TextExtractorWord.getGlyphQuad";return PDFNet.sendWithPromise("TextExtractorWord.getGlyphQuad",{tew:this,glyph_idx:glyph_idx}).then(function(id){me.yieldFunction=void 0;return new PDFNet.QuadPoint(id.result.p1x,id.result.p1y,id.result.p2x,id.result.p2y,id.result.p3x,id.result.p3y,id.result.p4x,id.result.p4y)})};PDFNet.TextExtractorStyle.prototype.getColor=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getColor'. Expected 0 arguments. Function Signature: getColor()");
-if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getColor'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction="TextExtractorStyle.getColor";return PDFNet.sendWithPromise("TextExtractorStyle.getColor",{tes:this}).then(function(id){me.yieldFunction=void 0;return"0"==id?null:new PDFNet.ColorPt(id)})};PDFNet.TextExtractorWord.prototype.getString=
-function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getString'. Expected 0 arguments. Function Signature: getString()");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'getString'. Perhaps a yield statement is required for "+this.yieldFunction+"?");var me=this;this.yieldFunction="TextExtractorWord.getString";
-return PDFNet.sendWithPromise("TextExtractorWord.getString",{tew:this}).then(function(id){me.yieldFunction=void 0;return id})};PDFNet.TextExtractor.prototype.getHighlights=function(char_ranges){checkArguments(arguments.length,1,"getHighlights","(Array<object>)",[[char_ranges,"Array"]]);return PDFNet.sendWithPromise("TextExtractor.getHighlights",{te:this.id,char_ranges:char_ranges}).then(function(id){return"0"==id?null:new PDFNet.Highlights(id)})};PDFNet.SecurityHandler.prototype.changeUserPasswordNonAscii=
-function(password){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'changeUserPasswordNonAscii'. Expected 1 argument. Function Signature: changeUserPasswordNonAscii(string)");if(password instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'changeUserPasswordNonAscii'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof password)throw new TypeError("1st input argument '"+password+"' in function 'changeUserPasswordNonAscii' is of type '"+
-_typeof(password)+"'. Expected type 'string'. Function Signature: changeUserPasswordNonAscii(string).");return PDFNet.sendWithPromise("SecurityHandler.changeUserPasswordNonAscii",{sh:this.id,password:password,pwd_length:password.length})};PDFNet.SecurityHandler.prototype.changeMasterPasswordNonAscii=function(password){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'changeMasterPasswordNonAscii'. Expected 1 argument. Function Signature: changeMasterPasswordNonAscii(string)");
-if(password instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'changeMasterPasswordNonAscii'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof password)throw new TypeError("1st input argument '"+password+"' in function 'changeMasterPasswordNonAscii' is of type '"+_typeof(password)+"'. Expected type 'string'. Function Signature: changeMasterPasswordNonAscii(string).");return PDFNet.sendWithPromise("SecurityHandler.changeMasterPasswordNonAscii",
-{sh:this.id,password:password,pwd_length:password.length})};PDFNet.SecurityHandler.prototype.initPassword=function(password){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initPassword'. Expected 1 argument. Function Signature: initPassword(string)");if(password instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'initPassword'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof password)throw new TypeError("1st input argument '"+
-password+"' in function 'initPassword' is of type '"+_typeof(password)+"'. Expected type 'string'. Function Signature: initPassword(string).");return PDFNet.sendWithPromise("SecurityHandler.initPassword",{sh:this.id,password:password})};PDFNet.SecurityHandler.prototype.initPasswordNonAscii=function(password){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initPasswordNonAscii'. Expected 1 argument. Function Signature: initPasswordNonAscii(string)");if(password instanceof
-Promise)throw new TypeError("Received a Promise object in 1st input argument 'initPasswordNonAscii'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof password)throw new TypeError("1st input argument '"+password+"' in function 'initPasswordNonAscii' is of type '"+_typeof(password)+"'. Expected type 'string'. Function Signature: initPasswordNonAscii(string).");return PDFNet.sendWithPromise("SecurityHandler.initPasswordNonAscii",{sh:this.id,password:password,pwd_length:password.length})};
-PDFNet.Element.prototype.getBBox=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getBBox'. Expected 0 arguments. Function Signature: getBBox()");var me=this;this.yieldFunction="Element.getBBox";return PDFNet.sendWithPromise("Element.getBBox",{e:this.id}).then(function(id){me.yieldFunction=void 0;return new PDFNet.Rect(id)})};PDFNet.Matrix2D.prototype.mult=function(x,y){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'mult'. Expected 2 arguments. Function Signature: mult(number, number)");
-if(x instanceof Promise)throw new TypeError("1st input argument in function 'mult' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof x)throw new TypeError("1st input argument '"+x+"' in function 'mult' is of type '"+_typeof(x)+"'. Expected type 'number'. Function Signature: mult(number, number).");if(y instanceof Promise)throw new TypeError("2nd input argument in function 'mult' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof y)throw new TypeError("2nd input argument '"+y+"' in function 'mult' is of type '"+_typeof(y)+"'. Expected type 'number'. Function Signature: mult(number, number).");if("undefined"!==typeof this.yieldFunction)throw Error("Function "+this.yieldFunction+" recently altered a struct object without yielding. That object is now being accessed by function 'mult'. Perhaps a yield statement is required for "+this.yieldFunction+"?");return PDFNet.sendWithPromise("Matrix2D.mult",{matrix:this,
-x:x,y:y})};PDFNet.Obj.prototype.getAsPDFText=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'getAsPDFText'. Expected 0 arguments. Function Signature: getAsPDFText()");return PDFNet.sendWithPromise("Obj.getAsPDFText",{o:this.id})};PDFNet.PDFDoc.prototype.initSecurityHandler=function(custom_data){"undefined"===typeof custom_data&&(custom_data=0);if(1<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initSecurityHandler'. Expected at most 1 arguments. Function Signature: initSecurityHandler(void*)");
-return PDFNet.sendWithPromise("PDFDoc.initSecurityHandler",{doc:this.id,custom_data:custom_data})};PDFNet.PDFDoc.prototype.initStdSecurityHandler=PDFNet.PDFDoc.prototype.initStdSecurityHandlerUString;PDFNet.SDFDoc.prototype.initSecurityHandler=function(custom_data){"undefined"===typeof custom_data&&(custom_data=0);if(1<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'initSecurityHandler'. Expected at most 1 arguments. Function Signature: initSecurityHandler(void*)");
-return PDFNet.sendWithPromise("SDFDoc.initSecurityHandler",{doc:this.id,custom_data:custom_data})};PDFNet.SDFDoc.prototype.initStdSecurityHandler=PDFNet.SDFDoc.prototype.initStdSecurityHandlerUString;PDFNet.Image.createFromURL=function(doc,url,encoder_hints,options){"undefined"===typeof encoder_hints&&(encoder_hints=new PDFNet.Obj("0"));if(2>arguments.length||4<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromURL'. Expected 2 to 4 arguments. Function Signature: createFromURL(PDFDoc, string, Obj)");
-if(doc instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createFromURL'. Promises require a 'yield' statement before being accessed.");if(!(doc instanceof PDFNet.PDFDoc||doc instanceof PDFNet.SDFDoc||doc instanceof PDFNet.FDFDoc)){if("object"==_typeof(doc))throw new TypeError("1st input argument in function 'createFromURL' is of type '"+doc.name+"'. Expected type 'Page'. Function Signature: createFromURL(PDFDoc, string, Obj).");throw new TypeError("1st input argument '"+
-doc+"' in function 'createFromURL' is of type '"+_typeof(doc)+"'. Expected type 'Page'. Function Signature: createFromURL(PDFDoc, string, Obj).");}if(url instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createFromURL'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof url)throw new TypeError("2nd input argument '"+url+"' in function 'createFromURL' is of type '"+_typeof(url)+"'. Expected type 'string'. Function Signature: createFromURL(PDFDoc, string, Obj).");
-if(encoder_hints instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createFromURL'. Promises require a 'yield' statement before being accessed.");if(!(encoder_hints instanceof PDFNet.Obj)){if("object"==_typeof(encoder_hints))throw new TypeError("3rd input argument in function 'createFromURL' is of type '"+encoder_hints.name+"'. Expected type 'Obj'. Function Signature: createFromURL(PDFDoc, string, Obj).");throw new TypeError("3rd input argument '"+encoder_hints+
-"' in function 'createFromURL' is of type '"+_typeof(encoder_hints)+"'. Expected type 'Obj'. Function Signature: createFromURL(PDFDoc, string, Obj).");}return getUrlAsBuffer(url,options).then(function(data){return PDFNet.Image.createFromMemory2(doc,data,encoder_hints)})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromURL=function(pkcs12_file,pkcs12_pass){if(2!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'addStdSignatureHandlerFromURL'. Expected 2 arguments. Function Signature: addStdSignatureHandlerFromURL(string, string)");
-if(pkcs12_file instanceof Promise)throw new TypeError("1st input argument in function 'addStdSignatureHandlerFromURL' is a Promise object. Promises require a 'yield' statement before being accessed.");if("string"!=typeof pkcs12_file)throw new TypeError("1st input argument '"+pkcs12_file+"' in function 'addStdSignatureHandlerFromURL' is of type '"+_typeof(pkcs12_file)+"'. Expected type 'string'. Function Signature: addStdSignatureHandlerFromURL(string, string).");if(pkcs12_pass instanceof Promise)throw new TypeError("2nd input argument in function 'addStdSignatureHandlerFromURL' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("string"!=typeof pkcs12_pass)throw new TypeError("2nd input argument '"+pkcs12_pass+"' in function 'addStdSignatureHandlerFromURL' is of type '"+_typeof(pkcs12_pass)+"'. Expected type 'string'. Function Signature: addStdSignatureHandlerFromURL(string, string).");var me=this;return getUrlAsBuffer(pkcs12_file).then(function(pkcs12_buffer){return me.addStdSignatureHandlerFromBufferWithDoc(pkcs12_buffer,pkcs12_pass,me)})};PDFNet.PDFDoc.prototype.addStdSignatureHandlerFromBufferWithDoc=function(pkcs12_buffer,
-pkcs12_pass,doc){if(3!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'addStdSignatureHandlerFromBuffer'. Expected 3 arguments. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string, PDFDoc)");if(doc instanceof Promise)throw new TypeError("1st input argument in function 'addStdSignatureHandlerFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(pkcs12_buffer instanceof Promise)throw new TypeError("2nd input argument in function 'addStdSignatureHandlerFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if(!exports.isArrayBuffer(pkcs12_buffer.buffer)){if("object"==_typeof(pkcs12_buffer))throw new TypeError("2nd input argument in function 'addStdSignatureHandlerFromBuffer' is of type '"+pkcs12_buffer.name+"'. Expected type 'ArrayBuffer'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string, PDFDoc).");throw new TypeError("2nd input argument '"+pkcs12_buffer+"' in function 'addStdSignatureHandlerFromBuffer' is of type '"+_typeof(pkcs12_buffer)+"'. Expected type 'ArrayBuffer'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string, PDFDoc).");
-}if(pkcs12_pass instanceof Promise)throw new TypeError("3rd input argument in function 'addStdSignatureHandlerFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if("string"!=typeof pkcs12_pass)throw new TypeError("3rd input argument '"+pkcs12_pass+"' in function 'addStdSignatureHandlerFromBuffer' is of type '"+_typeof(pkcs12_pass)+"'. Expected type 'string'. Function Signature: addStdSignatureHandlerFromBuffer(ArrayBuffer, string, PDFDoc).");return PDFNet.sendWithPromise("PDFDoc.addStdSignatureHandlerFromBuffer",
-{doc:doc.id,pkcs12_buffer:pkcs12_buffer.buffer,pkcs12_pass:pkcs12_pass})};PDFNet.Filter.createFromMemory=function(buf){exports.isArrayBuffer(buf)||(buf=buf.buffer);return PDFNet.sendWithPromise("filterCreateFromMemory",{buf:buf}).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.Filter.createURLFilter=function(url,options){if(1>arguments.length||2<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createURLFilter'. Expected 1 to 2 arguments. Function Signature: createURLFilter(string, Obj)");
-if(url instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createURLFilter'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof url)throw new TypeError("1st input argument '"+url+"' in function 'createURLFilter' is of type '"+_typeof(url)+"'. Expected type 'string'. Function Signature: createURLFilter(string, Obj).");return getUrlAsBuffer(url,options).then(function(data){return PDFNet.Filter.createFromMemory(data)})};PDFNet.Filter.createFlateEncode=
-function(input_filter,compression_level,buf_sz){"undefined"===typeof input_filter&&(input_filter=new PDFNet.Filter("0"));"undefined"===typeof compression_level&&(compression_level=-1);"undefined"===typeof buf_sz&&(buf_sz=256);if(3<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFlateEncode'. Expected at most 3 arguments. Function Signature: createFlateEncode(Filter, number, number)");if(input_filter instanceof Promise)throw new TypeError("1st input argument in function 'createFlateEncode' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if(!(input_filter instanceof PDFNet.Filter)){if("object"==_typeof(input_filter))throw new TypeError("1st input argument in function 'createFlateEncode' is of type '"+input_filter.name+"'. Expected type 'Filter'. Function Signature: createFlateEncode(Filter, number, number).");throw new TypeError("1st input argument '"+input_filter+"' in function 'createFlateEncode' is of type '"+_typeof(input_filter)+"'. Expected type 'Filter'. Function Signature: createFlateEncode(Filter, number, number).");}if(compression_level instanceof
-Promise)throw new TypeError("2nd input argument in function 'createFlateEncode' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof compression_level)throw new TypeError("2nd input argument '"+compression_level+"' in function 'createFlateEncode' is of type '"+_typeof(compression_level)+"'. Expected type 'number'. Function Signature: createFlateEncode(Filter, number, number).");if(buf_sz instanceof Promise)throw new TypeError("3rd input argument in function 'createFlateEncode' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof buf_sz)throw new TypeError("3rd input argument '"+buf_sz+"' in function 'createFlateEncode' is of type '"+_typeof(buf_sz)+"'. Expected type 'number'. Function Signature: createFlateEncode(Filter, number, number).");return PDFNet.sendWithPromise("Filter.createFlateEncode",{input_filter:input_filter.id,compression_level:compression_level,buf_sz:buf_sz}).then(function(id){if("0"==id)return null;id=new PDFNet.Filter(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.PDFDoc.prototype.importPages=
-function(page_arr,import_bookmarks){"undefined"===typeof import_bookmarks&&(import_bookmarks=!1);if(1>arguments.length||2<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'importPages'. Expected 1 to 2 arguments. Function Signature: importPages(Array, boolean)");if(page_arr instanceof Promise)throw new TypeError("1st input argument in function 'importPages' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(page_arr instanceof
-Array)){if("object"==_typeof(page_arr))throw new TypeError("1st input argument in function 'importPages' is of type '"+page_arr.name+"'. Expected type 'Array'. Function Signature: importPages(Array, boolean).");throw new TypeError("1st input argument '"+page_arr+"' in function 'importPages' is of type '"+_typeof(page_arr)+"'. Expected type 'Array'. Function Signature: importPages(Array, boolean).");}if(import_bookmarks instanceof Promise)throw new TypeError("3rd input argument in function 'importPages' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("boolean"!=typeof import_bookmarks)throw new TypeError("3rd input argument '"+import_bookmarks+"' in function 'importPages' is of type '"+_typeof(import_bookmarks)+"'. Expected type 'boolean'. Function Signature: importPages(Array, boolean).");page_arr=page_arr.map(function(p){return p.id});return PDFNet.sendWithPromise("PDFDoc.importPages",{doc:this.id,page_arr:page_arr,import_bookmarks:import_bookmarks}).then(function(idArray){return idArray?idArray.map(function(id){return new PDFNet.Page(id)}):
-null})};PDFNet.SDFDoc.prototype.applyCustomQuery=function(query){if(1!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'applyCustomQuery'. Expected only 1");if("object"!=_typeof(query))throw new TypeError("input argument '"+query+"' in function 'applyCustomQuery' must be an object");return PDFNet.sendWithPromise("SDFDoc.applyCustomQuery",{doc:this.id,query:JSON.stringify(query)}).then(function(result_str){return JSON.parse(result_str)})};var origSaveMemoryBuffer=
-PDFNet.PDFDoc.prototype.saveMemoryBuffer,origSaveStream=PDFNet.PDFDoc.prototype.saveStream;PDFNet.PDFDoc.prototype.saveMemoryBuffer=function(flags){var me=this;return Promise.resolve(me.documentCompletePromise).then(function(){return origSaveMemoryBuffer.call(me,flags)})};PDFNet.PDFDoc.prototype.saveStream=function(flags){var me=this;return Promise.resolve(me.documentCompletePromise).then(function(){return origSaveStream.call(me,flags)})};PDFNet.PDFACompliance.createFromUrl=function(convert,url,pwd,
-conform,excep,max_ref_objs,first_stop){if(2>arguments.length||7<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromUrl'. Expected 7 arguments. Function Signature: createFromUrl(convert, url, pwd, conform, excep, max_ref_objs, first_stop)");"undefined"===typeof pwd&&(pwd="");"undefined"===typeof conform&&(conform=PDFNet.PDFACompliance.Conformance.e_Level1B);"undefined"===typeof excep&&(excep=new Int32Array(0));"undefined"===typeof max_ref_objs&&(max_ref_objs=
-10);"undefined"===typeof first_stop&&(first_stop=!1);if(convert instanceof Promise)throw new TypeError("1st input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof convert)throw new TypeError("1st input argument '"+convert+"' in function 'createFromUrl' is of type '"+_typeof(convert)+"'. Expected type 'number'. Function Signature: createFromUrl(convert, url, pwd, conform, excep, max_ref_objs, first_stop).");
-if(url instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'createFromURL'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof url)throw new TypeError("2nd input argument '"+url+"' in function 'createFromURL' is of type '"+_typeof(url)+"'. Expected type 'string'. Function Signature: createFromURL(PDFDoc, string, Obj).");if(pwd instanceof Promise)throw new TypeError("3rd input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("string"!=typeof pwd)throw new TypeError("3rd input argument '"+pwd+"' in function 'createFromUrl' is of type '"+_typeof(pwd)+"'. Expected type 'string'. Function Signature: createFromUrl(convert, url, pwd, conform, excep, max_ref_objs, first_stop).");if(conform instanceof Promise)throw new TypeError("4th input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof conform)throw new TypeError("4th input argument '"+
-conform+"' in function 'createFromUrl' is of type '"+_typeof(conform)+"'. Expected type 'number'. Function Signature: createFromUrl(convert, url, pwd, conform, excep, max_ref_objs, first_stop).");if(excep instanceof Promise)throw new TypeError("5th input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");if(max_ref_objs instanceof Promise)throw new TypeError("6th input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if(first_stop instanceof Promise)throw new TypeError("7th input argument in function 'createFromUrl' is a Promise object. Promises require a 'yield' statement before being accessed.");return getUrlAsBuffer(url).then(function(buf){return PDFNet.PDFACompliance.createFromBuffer(convert,buf,pwd,conform,excep,max_ref_objs,first_stop)})};PDFNet.PDFACompliance.createFromBuffer=function(convert,buf,pwd,conform,excep,max_ref_objs,first_stop){"undefined"===typeof pwd&&(pwd="");"undefined"===typeof conform&&
-(conform=PDFNet.PDFACompliance.Conformance.e_Level1B);"undefined"===typeof excep&&(excep=new Int32Array(0));"undefined"===typeof max_ref_objs&&(max_ref_objs=10);"undefined"===typeof first_stop&&(first_stop=!1);var bufArrayBuffer=buf;exports.isArrayBuffer(bufArrayBuffer)||(bufArrayBuffer=bufArrayBuffer.buffer);if(2>arguments.length||7<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'createFromBuffer'. Expected 7 arguments. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop)");
-if(convert instanceof Promise)throw new TypeError("1st input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if("boolean"!=typeof convert)throw new TypeError("1st input argument '"+convert+"' in function 'createFromBuffer' is of type '"+_typeof(convert)+"'. Expected type 'number'. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");if(buf instanceof Promise)throw new TypeError("2nd input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if(!exports.isArrayBuffer(bufArrayBuffer)){if("object"==_typeof(buf)&&buf.name)throw new TypeError("2nd input argument in function 'createFromBuffer' is of type '"+buf.name+"'. Expected ArrayBuffer|TypedArray. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");throw new TypeError("2nd input argument '"+buf+"' in function 'createFromBuffer' is of type '"+_typeof(buf)+"'. Expected ArrayBuffer|TypedArray. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");
-}if(pwd instanceof Promise)throw new TypeError("3rd input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if("string"!=typeof pwd)throw new TypeError("3rd input argument '"+pwd+"' in function 'createFromBuffer' is of type '"+_typeof(pwd)+"'. Expected type 'string'. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");if(conform instanceof Promise)throw new TypeError("4th input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof conform)throw new TypeError("4th input argument '"+conform+"' in function 'createFromBuffer' is of type '"+_typeof(conform)+"'. Expected type 'number'. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");if(excep instanceof Promise)throw new TypeError("5th input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!exports.isArrayBuffer(excep.buffer)){if("object"==
-_typeof(excep))throw new TypeError("5th input argument in function 'createFromBuffer' is of type '"+excep.name+"'. Expected typed array. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");throw new TypeError("5th input argument '"+excep+"' in function 'createFromBuffer' is of type '"+_typeof(excep)+"'. Expected typed array. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");}if(max_ref_objs instanceof
-Promise)throw new TypeError("6th input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof max_ref_objs)throw new TypeError("6th input argument '"+max_ref_objs+"' in function 'createFromBuffer' is of type '"+_typeof(max_ref_objs)+"'. Expected type 'number'. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");if(first_stop instanceof Promise)throw new TypeError("7th input argument in function 'createFromBuffer' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("boolean"!=typeof first_stop)throw new TypeError("7th input argument '"+first_stop+"' in function 'createFromBuffer' is of type '"+_typeof(first_stop)+"'. Expected type 'number'. Function Signature: createFromBuffer(convert, buf, pwd, conform, excep, max_ref_objs, first_stop).");return PDFNet.sendWithPromise("pdfaComplianceCreateFromBuffer",{convert:convert,buf:bufArrayBuffer,password:pwd,conform:conform,excep:excep.buffer,max_ref_objs:max_ref_objs,first_stop:first_stop}).then(function(id){id=
-new PDFNet.PDFACompliance(id);createdObjects.push({name:id.name,id:id.id});return id})};PDFNet.PDFDoc.prototype.lock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'lock'. Expected 0 arguments. Function Signature: lock()");lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlock"});return PDFNet.sendWithPromise("PDFDoc.lock",{doc:this.id})};PDFNet.PDFDoc.prototype.lockRead=function(){if(0!=arguments.length)throw new RangeError(arguments.length+
-" arguments passed into function 'lockRead'. Expected 0 arguments. Function Signature: lockRead()");lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.lockRead",{doc:this.id})};PDFNet.PDFDoc.prototype.tryLock=function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tryLock'. Expected 0 arguments. Function Signature: tryLock()");var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",
-id:this.id,unlocktype:"unlock"});return PDFNet.sendWithPromise("PDFDoc.tryLock",{doc:this.id}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.PDFDoc.prototype.timedLock=function(milliseconds){if(1<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'timedLock'. Expected at most 1 arguments. Function Signature: timedLock(number)");if(milliseconds instanceof Promise)throw new TypeError("1st input argument in function 'timedLock' is a Promise object. Promises require a 'yield' statement before being accessed.");
-if("number"!=typeof milliseconds)throw new TypeError("1st input argument '"+milliseconds+"' in function 'timedLock' is of type '"+_typeof(milliseconds)+"'. Expected type 'number'. Function Signature: timedLock(number).");var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlock"});return PDFNet.sendWithPromise("PDFDoc.timedLock",{doc:this.id,milliseconds:milliseconds}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.PDFDoc.prototype.tryLockRead=
-function(){if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'tryLockRead'. Expected 0 arguments. Function Signature: tryLockRead()");var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.tryLockRead",{doc:this.id}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.PDFDoc.prototype.timedLockRead=function(milliseconds){if(1<arguments.length)throw new RangeError(arguments.length+
-" arguments passed into function 'timedLockRead'. Expected at most 1 arguments. Function Signature: timedLockRead(number)");if(milliseconds instanceof Promise)throw new TypeError("1st input argument in function 'timedLockRead' is a Promise object. Promises require a 'yield' statement before being accessed.");if("number"!=typeof milliseconds)throw new TypeError("1st input argument '"+milliseconds+"' in function 'timedLockRead' is of type '"+_typeof(milliseconds)+"'. Expected type 'number'. Function Signature: timedLockRead(number).");
-var index=lockedObjects.length;lockedObjects.push({name:"PDFDoc",id:this.id,unlocktype:"unlockRead"});return PDFNet.sendWithPromise("PDFDoc.timedLockRead",{doc:this.id,milliseconds:milliseconds}).then(function(success){success||lockedObjects.splice(index,1)})};PDFNet.hasFullApi=!0;PDFNet.Optimizer.optimize=function(doc,optimizerSettings){if(1>arguments.length||2<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'Optimizer.optimize'. Expected 1 to 2 arguments. Function Signature: optimize(PDFDoc, OptimizerSettings)");
-if(doc instanceof Promise)throw new TypeError("1st input argument in function 'optimize' is a Promise object. Promises require a 'yield' statement before being accessed.");if(!(doc instanceof PDFNet.PDFDoc||doc instanceof PDFNet.SDFDoc||doc instanceof PDFNet.FDFDoc)){if("object"==_typeof(doc))throw new TypeError("1st input argument in function 'optimize' is of type '"+doc.name+"'. Expected type 'PDFDoc'. Function Signature: optimize(PDFDoc, OptimizerSettings).");throw new TypeError("1st input argument '"+
-doc+"' in function 'optimize' is of type '"+_typeof(doc)+"'. Expected type 'PDFDoc'. Function Signature: optimize(PDFDoc, OptimizerSettings).");}if("undefined"===typeof optimizerSettings)optimizerSettings=new PDFNet.Optimizer.OptimizerSettings;else{if(optimizerSettings instanceof Promise)throw new TypeError("2nd input argument in function 'optimize' is a Promise object. Promises require a 'yield' statement before being accessed.");if("object"!==_typeof(optimizerSettings))throw new TypeError("2nd input argument in function 'optimize' is of type '"+
-optimizerSettings.name+"'. Expected type 'Object'. Function Signature: optimize(PDFDoc, OptimizerSettings).");}return PDFNet.sendWithPromise("optimizerOptimize",{doc:doc.id,color_image_settings:optimizerSettings.color_image_settings,grayscale_image_settings:optimizerSettings.grayscale_image_settings,mono_image_settings:optimizerSettings.mono_image_settings,text_settings:optimizerSettings.text_settings,remove_custom:optimizerSettings.remove_custom})};PDFNet.VerificationOptions.prototype.addTrustedCertificateFromURL=
-function(url,options){if(1>arguments.length||2<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'addTrustedCertificateFromURL'. Expected 1 to 2 arguments. Function Signature: addTrustedCertificateFromURL(string, Obj)");if(url instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'addTrustedCertificateFromURL'. Promises require a 'yield' statement before being accessed.");if("string"!=typeof url)throw new TypeError("1st input argument '"+
-url+"' in function 'addTrustedCertificateFromURL' is of type '"+_typeof(url)+"'. Expected type 'string'. Function Signature: addTrustedCertificateFromURL(string).");var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.addTrustedCertificate(data)})};PDFNet.DigitalSignatureField.prototype.certifyOnNextSaveFromURL=function(url,in_password,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,2,"certifyOnNextSaveFromURL","(string, string, object)",
-[[url,"string"],[in_password,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(url,options).then(function(data){return me.certifyOnNextSaveFromBuffer(data,in_password)})};PDFNet.DigitalSignatureField.prototype.signOnNextSaveFromURL=function(url,in_password,options){"undefined"===typeof options&&(options={});checkArguments(arguments.length,2,"signOnNextSaveFromURL","(string, string, object)",[[url,"string"],[in_password,"string"],[options,"object"]]);var me=this;return getUrlAsBuffer(url,
-options).then(function(data){return me.signOnNextSaveFromBuffer(data,in_password)})};PDFNet.PDFRasterizer.prototype.rasterize=function(page,width,height,stride,num_comps,demult,device_mtx,clip,scrl_clp_regions){"undefined"===typeof clip&&(clip=null);"undefined"===typeof scrl_clp_regions&&(scrl_clp_regions=null);checkArguments(arguments.length,7,"rasterize","(PDFNet.Page, number, number, number, number, boolean, PDFNet.Matrix2D, PDFNet.Rect, PDFNet.Rect)",[[page,"Object",PDFNet.Page,"Page"],[width,
-"number"],[height,"number"],[stride,"number"],[num_comps,"number"],[demult,"boolean"],[device_mtx,"Structure",PDFNet.Matrix2D,"Matrix2D"],[clip,"Structure",PDFNet.Rect,"Rect"],[scrl_clp_regions,"Structure",PDFNet.Rect,"Rect"]]);checkParamsYieldFunction("rasterize",[[device_mtx,6],[clip,7],[scrl_clp_regions,8]]);return PDFNet.sendWithPromise("PDFRasterizer.rasterize",{r:this.id,page:page.id,width:width,height:height,stride:stride,num_comps:num_comps,demult:demult,device_mtx:device_mtx,clip:clip,scrl_clp_regions:scrl_clp_regions})};
-PDFNet.ElementBuilder.prototype.createUnicodeTextRun=function(text_data){checkArguments(arguments.length,1,"createUnicodeTextRun","(string)",[[text_data,"string"]]);return PDFNet.sendWithPromise("ElementBuilder.createUnicodeTextRun",{b:this.id,text_data:text_data}).then(function(id){return createPDFNetObj(PDFNet.Element,id)})};PDFNet.DigitalSignatureField.prototype.getCertPathsFromCMS=function(){checkThisYieldFunction("getCertPathsFromCMS",this.yieldFunction);return PDFNet.sendWithPromise("DigitalSignatureField.getCertPathsFromCMS",
-{self:this}).then(function(arrArray){for(var retArray=[],i=0;i<arrArray.length;++i){for(var idArray=arrArray[i],objArray=[],j=0;j<idArray.length;++j){var id=idArray[j];if("0"===id)return null;id=new PDFNet.X509Certificate(id);objArray.push(id);createdObjects.push({name:id.name,id:id.id})}retArray.push(objArray)}return retArray})};PDFNet.Convert.office2PDF=function(input,options){return PDFNet.Convert.office2PDFBuffer(input,options).then(function(buffer){PDFNet.PDFDoc.createFromBuffer(buffer).then(function(doc){doc.initSecurityHandler();
-return doc})})};PDFNet.PDFDoc.prototype.requirePage=function(page_number){if(1!==arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'requirePage'. Expected 1 argument. Function Signature: requirePage(number)");if(page_number instanceof Promise)throw new TypeError("Received a Promise object in 1st input argument 'requirePage'. Promises require a 'yield' statement before being accessed.");if("number"!=typeof page_number)throw new TypeError("1st input argument '"+
-page_number+"' in function 'requirePage' is of type '"+_typeof(page_number)+"'. Expected type 'number'. Function Signature: requirePage(number).");if(0>=page_number)throw Error("1st input argument '"+page_number+"' in function 'requirePage' is invalid. Expected number between 1 and number of pages in the document.");return PDFNet.sendWithPromise("PDFDoc.RequirePage",{docId:this.id,pageNum:page_number})};PDFNet.beginOperation=function(optionsObj){"undefined"===typeof optionsObj?optionsObj={allowMultipleInstances:!1}:
-"undefined"===typeof optionsObj.allowMultipleInstances&&console.log("Warning: passing in options object without value 'allowMultipleInstances'");if(0<beginOperationCounter&&!optionsObj.allowMultipleInstances)throw Error("a previous instance of PDFNet.beginOperation() has been called without being terminated by PDFNet.finishOperation(). If this is intentional, pass in an options object with its parameter 'allowMultipleInstances' set to 'true' (ex. optObj={}; optObj.allowMultipleInstances=true; PDFNet.beginOperation(optObj));");
-beginOperationCounter+=1;if(1<arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'beginOperation'. Expected 0 to 1 arguments. Function Signature: beginOperation(optObj = {})");return PDFNet.sendWithPromise("BeginOperation",{})};PDFNet.finishOperation=function(){if(0<beginOperationCounter){--beginOperationCounter;if(0!=arguments.length)throw new RangeError(arguments.length+" arguments passed into function 'finishOperation'. Expected 0 arguments. Function Signature: finishOperation()");
-return PDFNet.sendWithPromise("FinishOperation",{})}};PDFNet.runWithCleanup=function(callback,license_key){var result,shouldFinishOperation=!1,shouldDeallocateStack=!1;return previousRunPromise=previousRunPromise.then(function(){},function(){}).then(function(){return PDFNet.initialize(license_key)}).then(function(){shouldFinishOperation=!0;return PDFNet.beginOperation()}).then(function(){shouldDeallocateStack=!0;PDFNet.startDeallocateStack();return callback()}).then(function(val){result=val;shouldDeallocateStack=
-!1;return PDFNet.endDeallocateStack()}).then(function(){shouldFinishOperation=!1;PDFNet.finishOperation();if(0<stackCallCounter)throw Error('Detected not yet deallocated stack. You may have called "PDFNet.startDeallocateStack()" somewhere without calling "PDFNet.endDeallocateStack()" afterwards.');return result})["catch"](function(e){shouldDeallocateStack&&PDFNet.endDeallocateStack();shouldFinishOperation&&PDFNet.finishOperation();throw e;})};PDFNet.runWithoutCleanup=function(callback,license_key){var shouldFinishOperation=
-!1;return previousRunPromise=previousRunPromise.then(function(){},function(){}).then(function(){return PDFNet.initialize(license_key)}).then(function(){shouldFinishOperation=!0;return PDFNet.beginOperation()}).then(function(){return callback()}).then(function(result){shouldFinishOperation=!1;PDFNet.finishOperation();return result})["catch"](function(e){shouldFinishOperation&&PDFNet.finishOperation();throw e;})};PDFNet.initialize=function(licenseKey,pdfBackendType){if(!finishedInitializeCapability){var workerHandlers=
-{emsWorkerError:function(msg,genericMsg){console.log("EmsWorkerError: "+msg+", "+genericMsg)}};finishedInitializeCapability=createPromiseCapability();var finishInit=function(pdfBackendType){exports.Core.preloadPDFWorker(pdfBackendType,workerHandlers);exports.Core.initPDFWorkerTransports(pdfBackendType,workerHandlers,licenseKey).then(function(transport){PDFNet.messageHandler=transport.messageHandler;finishedInitializeCapability.resolve()},function(e){finishedInitializeCapability.reject(e)})};pdfBackendType&&
-"auto"!==pdfBackendType?finishInit(pdfBackendType):exports.Core.getDefaultBackendType().then(finishInit,function(e){finishedInitializeCapability.reject(e)})}return finishedInitializeCapability.promise};exports.Core.PDFNet=PDFNet})("undefined"===typeof window?this:window)}]);}).call(this || window)

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/pdf/PDFNet.prod.js


+ 0 - 248
public/lib/webviewer/core/pdf/PDFworker.js

@@ -1,248 +0,0 @@
-(function(){/*
- *****************************************************************************
-Copyright (c) Microsoft Corporation.
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
-PERFORMANCE OF THIS SOFTWARE.
-*****************************************************************************/
-var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var e=0;return function(){return e<a.length?{done:!1,value:a[e++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
-$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,c){a!=Array.prototype&&a!=Object.prototype&&(a[e]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_";$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};
-$jscomp.Symbol=function(){var a=0;return function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+a++}}();$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}});$jscomp.initSymbolIterator=function(){}};
-$jscomp.initSymbolAsyncIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.asyncIterator;a||(a=$jscomp.global.Symbol.asyncIterator=$jscomp.global.Symbol("asyncIterator"));$jscomp.initSymbolAsyncIterator=function(){}};$jscomp.iteratorPrototype=function(a){$jscomp.initSymbolIterator();a={next:a};a[$jscomp.global.Symbol.iterator]=function(){return this};return a};
-$jscomp.makeIterator=function(a){var e="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return e?e.call(a):$jscomp.arrayIterator(a)};$jscomp.polyfill=function(a,e,c,f){if(e){c=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var l=a[f];l in c||(c[l]={});c=c[l]}a=a[a.length-1];f=c[a];e=e(f);e!=f&&null!=e&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:e})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
-$jscomp.polyfill("Promise",function(a){function e(){this.batch_=null}function c(a){return a instanceof l?a:new l(function(b,d){b(a)})}if(a&&!$jscomp.FORCE_POLYFILL_PROMISE)return a;e.prototype.asyncExecute=function(a){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(a);return this};e.prototype.asyncExecuteBatch_=function(){var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})};var f=$jscomp.global.setTimeout;e.prototype.asyncExecuteFunction=function(a){f(a,
-0)};e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var b=0;b<a.length;++b){var d=a[b];a[b]=null;try{d()}catch(h){this.asyncThrow_(h)}}}this.batch_=null};e.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};var l=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var b=this.createResolveAndReject_();try{a(b.resolve,b.reject)}catch(d){b.reject(d)}};l.prototype.createResolveAndReject_=
-function(){function a(h){return function(a){d||(d=!0,h.call(b,a))}}var b=this,d=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};l.prototype.resolveTo_=function(a){if(a===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof l)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var b=null!=a;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};l.prototype.resolveToNonPromiseObj_=function(a){var b=
-void 0;try{b=a.then}catch(d){this.reject_(d);return}"function"==typeof b?this.settleSameAsThenable_(b,a):this.fulfill_(a)};l.prototype.reject_=function(a){this.settle_(2,a)};l.prototype.fulfill_=function(a){this.settle_(1,a)};l.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};l.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
-0;a<this.onSettledCallbacks_.length;++a)n.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};var n=new e;l.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};l.prototype.settleSameAsThenable_=function(a,b){var d=this.createResolveAndReject_();try{a.call(b,d.resolve,d.reject)}catch(h){d.reject(h)}};l.prototype.then=function(a,b){function d(b,d){return"function"==typeof b?function(d){try{h(b(d))}catch(t){r(t)}}:
-d}var h,r,f=new l(function(b,d){h=b;r=d});this.callWhenSettled_(d(a,h),d(b,r));return f};l.prototype.catch=function(a){return this.then(void 0,a)};l.prototype.callWhenSettled_=function(a,b){function d(){switch(h.state_){case 1:a(h.result_);break;case 2:b(h.result_);break;default:throw Error("Unexpected state: "+h.state_);}}var h=this;null==this.onSettledCallbacks_?n.asyncExecute(d):this.onSettledCallbacks_.push(d)};l.resolve=c;l.reject=function(a){return new l(function(b,d){d(a)})};l.race=function(a){return new l(function(b,
-d){for(var h=$jscomp.makeIterator(a),r=h.next();!r.done;r=h.next())c(r.value).callWhenSettled_(b,d)})};l.all=function(a){var b=$jscomp.makeIterator(a),d=b.next();return d.done?c([]):new l(function(h,a){function r(b){return function(d){m[b]=d;f--;0==f&&h(m)}}var m=[],f=0;do m.push(void 0),f++,c(d.value).callWhenSettled_(r(m.length-1),a),d=b.next();while(!d.done)})};return l},"es6","es3");$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},e={};try{return e.__proto__=a,e.a}catch(c){}return!1};
-$jscomp.setPrototypeOf="function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,e){a.__proto__=e;if(a.__proto__!==e)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
-$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
-$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
-$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,e){this.nextAddress=e;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,e){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=e;else return this.yieldAllIterator_=a,this.yield(c.value,e)};
-$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,e){this.catchAddress_=a;void 0!=e&&(this.finallyAddress_=e)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,e){this.nextAddress=a;this.catchAddress_=e||0};
-$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,e,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=e||0};
-$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,e){e=this.finallyContexts_.splice(e||0)[0];if(e=this.abruptCompletion_=this.abruptCompletion_||e){if(e.isException)return this.jumpToErrorHandler_();void 0!=e.jumpTo&&this.finallyAddress_<e.jumpTo?(this.nextAddress=e.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
-$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var e in a)this.properties_.push(e);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
-$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
-$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var e=this.context_.yieldAllIterator_;if(e)return this.yieldAllStep_("return"in e?e["return"]:function(a){return{value:a,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
-$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
-$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,e,c){try{var f=a.call(this.context_.yieldAllIterator_,e);$jscomp.generator.ensureIteratorResultIsObject_(f);if(!f.done)return this.context_.stop_(),f;var l=f.value}catch(n){return this.context_.yieldAllIterator_=null,this.context_.throw_(n),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,l);return this.nextStep_()};
-$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(e){this.context_.yieldResult=void 0,this.context_.throw_(e)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
-$jscomp.generator.Generator_=function(a){this.next=function(e){return a.next_(e)};this.throw=function(e){return a.throw_(e)};this.return=function(e){return a.return_(e)};$jscomp.initSymbolIterator();this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,e){e=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(e));$jscomp.setPrototypeOf&&$jscomp.setPrototypeOf(e,a.prototype);return e};
-$jscomp.asyncExecutePromiseGenerator=function(a){function e(f){return a.next(f)}function c(f){return a.throw(f)}return new Promise(function(f,l){function n(a){a.done?f(a.value):Promise.resolve(a.value).then(e,c).then(n,l)}n(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
-$jscomp.checkEs6ConformanceViaProxy=function(){try{var a={},e=Object.create(new $jscomp.global.Proxy(a,{get:function(c,f,l){return c==a&&"q"==f&&l==e}}));return!0===e.q}catch(c){return!1}};$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1;$jscomp.ES6_CONFORMANCE=$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&$jscomp.checkEs6ConformanceViaProxy();$jscomp.owns=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)};
-$jscomp.polyfill("WeakMap",function(a){function e(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),h=Object.seal({}),r=new a([[b,2],[h,3]]);if(2!=r.get(b)||3!=r.get(h))return!1;r.delete(b);r.set(h,4);return!r.has(b)&&4==r.get(h)}catch(y){return!1}}function c(){}function f(b){if(!$jscomp.owns(b,n)){var d=new c;$jscomp.defineProperty(b,n,{value:d})}}function l(b){var d=Object[b];d&&(Object[b]=function(b){if(b instanceof c)return b;f(b);return d(b)})}if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&
-$jscomp.ES6_CONFORMANCE)return a}else if(e())return a;var n="$jscomp_hidden_"+Math.random();l("freeze");l("preventExtensions");l("seal");var p=0,b=function(b){this.id_=(p+=Math.random()+1).toString();if(b){b=$jscomp.makeIterator(b);for(var d;!(d=b.next()).done;)d=d.value,this.set(d[0],d[1])}};b.prototype.set=function(b,a){f(b);if(!$jscomp.owns(b,n))throw Error("WeakMap key fail: "+b);b[n][this.id_]=a;return this};b.prototype.get=function(b){return $jscomp.owns(b,n)?b[n][this.id_]:void 0};b.prototype.has=
-function(b){return $jscomp.owns(b,n)&&$jscomp.owns(b[n],this.id_)};b.prototype.delete=function(b){return $jscomp.owns(b,n)&&$jscomp.owns(b[n],this.id_)?delete b[n][this.id_]:!1};return b},"es6","es3");$jscomp.MapEntry=function(){};
-$jscomp.polyfill("Map",function(a){function e(){if($jscomp.ASSUME_NO_NATIVE_MAP||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),h=new a($jscomp.makeIterator([[b,"s"]]));if("s"!=h.get(b)||1!=h.size||h.get({x:4})||h.set({x:4},"t")!=h||2!=h.size)return!1;var r=h.entries(),f=r.next();if(f.done||f.value[0]!=b||"s"!=f.value[1])return!1;f=r.next();return f.done||4!=f.value[0].x||"t"!=f.value[1]||!r.next().done?!1:!0}catch(m){return!1}}
-if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(e())return a;$jscomp.initSymbolIterator();var c=new WeakMap,f=function(b){this.data_={};this.head_=p();this.size=0;if(b){b=$jscomp.makeIterator(b);for(var d;!(d=b.next()).done;)d=d.value,this.set(d[0],d[1])}};f.prototype.set=function(b,a){b=0===b?0:b;var d=l(this,b);d.list||(d.list=this.data_[d.id]=[]);d.entry?d.entry.value=a:(d.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:b,
-value:a},d.list.push(d.entry),this.head_.previous.next=d.entry,this.head_.previous=d.entry,this.size++);return this};f.prototype.delete=function(b){b=l(this,b);return b.entry&&b.list?(b.list.splice(b.index,1),b.list.length||delete this.data_[b.id],b.entry.previous.next=b.entry.next,b.entry.next.previous=b.entry.previous,b.entry.head=null,this.size--,!0):!1};f.prototype.clear=function(){this.data_={};this.head_=this.head_.previous=p();this.size=0};f.prototype.has=function(b){return!!l(this,b).entry};
-f.prototype.get=function(b){return(b=l(this,b).entry)&&b.value};f.prototype.entries=function(){return n(this,function(b){return[b.key,b.value]})};f.prototype.keys=function(){return n(this,function(b){return b.key})};f.prototype.values=function(){return n(this,function(b){return b.value})};f.prototype.forEach=function(b,a){for(var d=this.entries(),h;!(h=d.next()).done;)h=h.value,b.call(a,h[1],h[0],this)};f.prototype[Symbol.iterator]=f.prototype.entries;var l=function(d,a){var h=a&&typeof a;"object"==
-h||"function"==h?c.has(a)?h=c.get(a):(h=""+ ++b,c.set(a,h)):h="p_"+a;var f=d.data_[h];if(f&&$jscomp.owns(d.data_,h))for(d=0;d<f.length;d++){var m=f[d];if(a!==a&&m.key!==m.key||a===m.key)return{id:h,list:f,index:d,entry:m}}return{id:h,list:f,index:-1,entry:void 0}},n=function(b,a){var d=b.head_;return $jscomp.iteratorPrototype(function(){if(d){for(;d.head!=b.head_;)d=d.previous;for(;d.next!=d.head;)return d=d.next,{done:!1,value:a(d)};d=null}return{done:!0,value:void 0}})},p=function(){var b={};return b.previous=
-b.next=b.head=b},b=0;return f},"es6","es3");$jscomp.checkStringArgs=function(a,e,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
-$jscomp.polyfill("String.prototype.endsWith",function(a){return a?a:function(a,c){var f=$jscomp.checkStringArgs(this,a,"endsWith");a+="";void 0===c&&(c=f.length);c=Math.max(0,Math.min(c|0,f.length));for(var e=a.length;0<e&&0<c;)if(f[--c]!=a[--e])return!1;return 0>=e}},"es6","es3");$jscomp.findInternal=function(a,e,c){a instanceof String&&(a=String(a));for(var f=a.length,l=0;l<f;l++){var n=a[l];if(e.call(c,n,l,a))return{i:l,v:n}}return{i:-1,v:void 0}};
-$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6","es3");$jscomp.polyfill("Object.setPrototypeOf",function(a){return a||$jscomp.setPrototypeOf},"es6","es5");$jscomp.assign="function"==typeof Object.assign?Object.assign:function(a,e){for(var c=1;c<arguments.length;c++){var f=arguments[c];if(f)for(var l in f)$jscomp.owns(f,l)&&(a[l]=f[l])}return a};
-$jscomp.polyfill("Object.assign",function(a){return a||$jscomp.assign},"es6","es3");
-$jscomp.polyfill("Set",function(a){function e(){if($jscomp.ASSUME_NO_NATIVE_SET||!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var f=Object.seal({x:4}),e=new a($jscomp.makeIterator([f]));if(!e.has(f)||1!=e.size||e.add(f)!=e||1!=e.size||e.add({x:4})!=e||2!=e.size)return!1;var c=e.entries(),p=c.next();if(p.done||p.value[0]!=f||p.value[1]!=f)return!1;p=c.next();return p.done||p.value[0]==f||4!=p.value[0].x||p.value[1]!=p.value[0]?!1:c.next().done}catch(b){return!1}}
-if($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&$jscomp.ES6_CONFORMANCE)return a}else if(e())return a;$jscomp.initSymbolIterator();var c=function(a){this.map_=new Map;if(a){a=$jscomp.makeIterator(a);for(var f;!(f=a.next()).done;)this.add(f.value)}this.size=this.map_.size};c.prototype.add=function(a){a=0===a?0:a;this.map_.set(a,a);this.size=this.map_.size;return this};c.prototype.delete=function(a){a=this.map_.delete(a);this.size=this.map_.size;return a};c.prototype.clear=function(){this.map_.clear();
-this.size=0};c.prototype.has=function(a){return this.map_.has(a)};c.prototype.entries=function(){return this.map_.entries()};c.prototype.values=function(){return this.map_.values()};c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(a,e){var f=this;this.map_.forEach(function(c){return a.call(e,c,c,f)})};return c},"es6","es3");
-$jscomp.iteratorFromArray=function(a,e){$jscomp.initSymbolIterator();a instanceof String&&(a+="");var c=0,f={next:function(){if(c<a.length){var l=c++;return{value:e(l,a[l]),done:!1}}f.next=function(){return{done:!0,value:void 0}};return f.next()}};f[Symbol.iterator]=function(){return f};return f};$jscomp.polyfill("Array.prototype.keys",function(a){return a?a:function(){return $jscomp.iteratorFromArray(this,function(a){return a})}},"es6","es3");
-(function(a){function e(f){if(c[f])return c[f].exports;var l=c[f]={i:f,l:!1,exports:{}};a[f].call(l.exports,l,l.exports,e);l.l=!0;return l.exports}var c={};e.m=a;e.c=c;e.d=function(a,c,n){e.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:n})};e.r=function(a){$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&Symbol.toStringTag&&($jscomp.initSymbol(),Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}));Object.defineProperty(a,"__esModule",{value:!0})};e.t=function(a,
-c){c&1&&(a=e(a));if(c&8||c&4&&"object"===typeof a&&a&&a.__esModule)return a;var f=Object.create(null);e.r(f);Object.defineProperty(f,"default",{enumerable:!0,value:a});if(c&2&&"string"!=typeof a)for(var p in a)e.d(f,p,function(b){return a[b]}.bind(null,p));return f};e.n=function(a){var f=a&&a.__esModule?function(){return a["default"]}:function(){return a};e.d(f,"a",f);return f};e.o=function(a,e){return Object.prototype.hasOwnProperty.call(a,e)};e.p="/core/pdf/";return e(e.s=22)})([function(a,e,c){c.d(e,
-"d",function(){return p});c.d(e,"e",function(){return l});c.d(e,"c",function(){return b});c.d(e,"a",function(){return d});c.d(e,"b",function(){return n});var f=c(3),l=function(b,a){Object(f.a)("disableLogs")||(a?console.warn(b+": "+a):console.warn(b))},n=function(b,a,d){var h=d.pop();d=d.length?d.join(", ")+" and "+h:h;l("'"+a+"' is deprecated since version "+b+". Please use "+d+" instead.")},p=function(b,a){Object(f.a)("disableLogs")||(a?console.log(b+": "+a):console.log(b))},b=function(b){if(!Object(f.a)("disableLogs"))throw console.error(b),
-Error(b);},d=function(b,a){}},function(a,e,c){c.d(e,"c",function(){return d});c.d(e,"a",function(){return h});c.d(e,"b",function(){return r});c.d(e,"d",function(){return y});var f=c(17),l=console.log,n=console.warn,p=console.error,b=function(b){void 0===b&&(b=!0);b?(console.log=function(){},console.warn=function(){},console.error=function(){}):(console.log=l,console.warn=n,console.error=p)},d=function(){var a=Object(f.a)(location.search);b("1"===a.disableLogs)},h=function(a){a.on("disableLogs",function(a){b(a.disabled)})},
-r=function(b,a){return function(){}},y=function(b,a){a?console.warn(b+": "+a):console.warn(b)}},function(a,e,c){c.d(e,"g",function(){return p});c.d(e,"c",function(){return b});c.d(e,"h",function(){return r});c.d(e,"d",function(){return y});c.d(e,"f",function(){return l});c.d(e,"b",function(){return n});c.d(e,"i",function(){return m});c.d(e,"j",function(){return t});c.d(e,"e",function(){return x});c.d(e,"a",function(){return z});c(0);var f="undefined"===typeof window?self:window;a=function(){var b=
-navigator.userAgent.toLowerCase();return(b=/(msie) ([\w.]+)/.exec(b)||/(trident)(?:.*? rv:([\w.]+)|)/.exec(b))?parseInt(b[2],10):b}();var l=function(){var b=f.navigator.userAgent.match(/OPR/),a=f.navigator.userAgent.match(/Maxthon/),d=f.navigator.userAgent.match(/Edge/);return f.navigator.userAgent.match(/Chrome\/(.*?) /)&&!b&&!a&&!d}(),n=function(){if(!l)return null;var b=f.navigator.userAgent.match(/Chrome\/([0-9]+)\./);return b?parseInt(b[1],10):b}(),p=!!navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Edg\/(.*?)/)&&
-f.navigator.userAgent.match(/Chrome\/(.*?) /),b=function(){if(!p)return null;var b=f.navigator.userAgent.match(/Edg\/([0-9]+)\./);return b?parseInt(b[1],10):b}();e=/iPad|iPhone|iPod/.test(f.navigator.platform)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints;var d=function(){var b=f.navigator.userAgent.match(/.*\/([0-9\.]+)\s(Safari|Mobile).*/i);return b?parseFloat(b[1]):b}(),h=/^((?!chrome|android).)*safari/i.test(f.navigator.userAgent)||/^((?!chrome|android).)*$/.test(f.navigator.userAgent)&&
-e,r=f.navigator.userAgent.match(/Firefox/),y=function(){if(!r)return null;var b=f.navigator.userAgent.match(/Firefox\/([0-9]+)\./);return b?parseInt(b[1],10):b}(),m=!(a||!/Android|webOS|Touch|IEMobile|Silk/i.test(navigator.userAgent)&&!e);navigator.userAgent.match(/(iPad|iPhone|iPod)/i);f.navigator.userAgent.indexOf("Android");var w=/Mac OS X 10_13_6.*\(KHTML, like Gecko\)$/.test(f.navigator.userAgent),A=f.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)?14<=parseInt(f.navigator.userAgent.match(/(iPad|iPhone).+\sOS\s((\d+)(_\d)*)/i)[3],
-10):!1,t=function(){return!A&&(h&&14>d||w)},x=!(!self.WebAssembly||!self.WebAssembly.validate),z=-1<f.navigator.userAgent.indexOf("Edge/16")||-1<f.navigator.userAgent.indexOf("MSAppHost")},function(a,e,c){c.d(e,"a",function(){return n});c.d(e,"b",function(){return p});var f={},l={flattenedResources:!1,CANVAS_CACHE_SIZE:void 0,maxPagesBefore:void 0,maxPagesAhead:void 0,disableLogs:!1,wvsQueryParameters:{},_trnDebugMode:!1,_logFiltersEnabled:null},n=function(b){return l[b]},p=function(b,a){var d;l[b]=
-a;null===(d=f[b])||void 0===d?void 0:d.forEach(function(b){b(a)})}},function(a,e,c){c.d(e,"a",function(){return x});c.d(e,"b",function(){return k});c.d(e,"c",function(){return g});var f=c(14),l=c(0),n=c(9),p=c(5),b="undefined"===typeof window?self:window,d=b.importScripts,h=!1,r=function(g,k){h||(d(b.basePath+"decode.min.js"),h=!0);g=self.BrotliDecode(Object(p.b)(g));return k?g:Object(p.a)(g)},y=function(g,b){return Object(f.a)(void 0,void 0,Promise,function(){var k;return Object(f.b)(this,function(v){switch(v.label){case 0:return h?
-[3,2]:[4,Object(n.a)(self.Core.getWorkerPath()+"external/decode.min.js","Failed to download decode.min.js",window)];case 1:v.sent(),h=!0,v.label=2;case 2:return k=self.BrotliDecode(Object(p.b)(g)),[2,b?k:Object(p.a)(k)]}})})};(function(){function g(){this.remainingDataArrays=[]}g.prototype.processRaw=function(g){return g};g.prototype.processBrotli=function(g){this.remainingDataArrays.push(g);return null};g.prototype.GetNextChunk=function(g){this.decodeFunction||(this.decodeFunction=0===g[0]&&97===
-g[1]&&115===g[2]&&109===g[3]?this.processRaw:this.processBrotli);return this.decodeFunction(g)};g.prototype.End=function(){if(this.remainingDataArrays.length){for(var g=this.arrays,b=0,k=0;k<g.length;++k)b+=g[k].length;b=new Uint8Array(b);var a=0;for(k=0;k<g.length;++k){var u=g[k];b.set(u,a);a+=u.length}return r(b,!0)}return null};return g})();var m=!1,w=function(g){m||(d(b.basePath+"pako_inflate.min.js"),m=!0);var k=10;if("string"===typeof g){if(g.charCodeAt(3)&8){for(;0!==g.charCodeAt(k);++k);++k}}else if(g[3]&
-8){for(;0!==g[k];++k);++k}g=Object(p.b)(g);g=g.subarray(k,g.length-8);return b.pako.inflate(g,{windowBits:-15})},A=function(g,b){return b?g:Object(p.a)(g)},t=function(g){var b=!g.shouldOutputArray,k=new XMLHttpRequest;k.open("GET",g.url,g.isAsync);var a=b&&k.overrideMimeType;k.responseType=a?"text":"arraybuffer";a&&k.overrideMimeType("text/plain; charset=x-user-defined");k.send();var u=function(){var v=Date.now();var u=a?k.responseText:new Uint8Array(k.response);Object(l.a)("worker","Result length is "+
-u.length);u.length<g.compressedMaximum?(u=g.decompressFunction(u,g.shouldOutputArray),Object(l.e)("There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this."),d&&Object(l.a)("worker","Decompressed length is "+u.length)):b&&(u=Object(p.a)(u));d&&Object(l.a)("worker",g.url+" Decompression took "+(Date.now()-v));return u};if(g.isAsync)var h=
-new Promise(function(b,a){k.onload=function(){200===this.status||0===this.status?b(u()):a("Download Failed "+g.url)};k.onerror=function(){a("Network error occurred "+g.url)}});else{if(200===k.status||0===k.status)return u();throw Error("Failed to load "+g.url);}return h},x=function(g){var b=g.lastIndexOf("/");-1===b&&(b=0);var k=g.slice(b).replace(".",".br.");d||(k.endsWith(".js.mem")?k=k.replace(".js.mem",".mem"):k.endsWith(".js")&&(k=k.concat(".mem")));return g.slice(0,b)+k},z=function(g,b){var k=
-g.lastIndexOf("/");-1===k&&(k=0);var a=g.slice(k).replace(".",".gz.");b.url=g.slice(0,k)+a;b.decompressFunction=w;return t(b)},q=function(g,k){k.url=x(g);k.decompressFunction=d?r:y;return t(k)},B=function(g,k){g.endsWith(".js.mem")?g=g.slice(0,-4):g.endsWith(".mem")&&(g=g.slice(0,-4)+".js.mem");k.url=g;k.decompressFunction=A;return t(k)},J=function(g,k,b,a){return g.catch(function(g){Object(l.e)(g);return a(k,b)})},E=function(g,k,b){var a;if(b.isAsync){var v=k[0](g,b);for(a=1;a<k.length;++a)v=J(v,
-g,b,k[a]);return v}for(a=0;a<k.length;++a)try{return k[a](g,b)}catch(K){Object(l.e)(K.message)}throw Error("");},g=function(g,k,b,a){return E(g,[z,q,B],{compressedMaximum:k,isAsync:b,shouldOutputArray:a})},k=function(g,k,b,a){return E(g,[q,z,B],{compressedMaximum:k,isAsync:b,shouldOutputArray:a})}},function(a,e,c){c.d(e,"b",function(){return f});c.d(e,"a",function(){return l});var f=function(a){if("string"===typeof a){for(var f=new Uint8Array(a.length),b=a.length,d=0;d<b;d++)f[d]=a.charCodeAt(d);
-return f}return a},l=function(a){if("string"!==typeof a){for(var f="",b=0,d=a.length,h;b<d;)h=a.subarray(b,b+1024),b+=1024,f+=String.fromCharCode.apply(null,h);return f}return a}},function(a,e,c){c.d(e,"c",function(){return f});c.d(e,"a",function(){return l});c.d(e,"b",function(){return n});var f="ems",l="jsworker",n="wasm-threads"},function(a,e,c){function f(b){"@babel/helpers - typeof";$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();return f="function"==typeof Symbol&&"symbol"==
-typeof Symbol.iterator?function(b){return typeof b}:function(b){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},f(b)}var l,n,p;!function(b){"object"===f(e)&&"undefined"!==typeof a?a.exports=b():!(n=[],l=b,p="function"===typeof l?l.apply(e,n):l,void 0!==p&&(a.exports=p))}(function(){return function y(a,h,f){function d(c,m){if(!h[c]){if(!a[c]){if(e)return e(c,!0);m=Error("Cannot find module '".concat(c,
-"'"));throw m.code="MODULE_NOT_FOUND",m;}m=h[c]={exports:{}};a[c][0].call(m.exports,function(h){return d(a[c][1][h]||h)},m,m.exports,y,a,h,f)}return h[c].exports}for(var e=!1,c=0;c<f.length;c++)d(f[c]);return d}({1:[function(a,h,f){var d={}.hasOwnProperty,c=function(a,h){function f(){this.constructor=a}for(var c in h)d.call(h,c)&&(a[c]=h[c]);f.prototype=h.prototype;a.prototype=new f;a.__super__=h.prototype;return a};f=a("./PriorityQueue/AbstractPriorityQueue");a=a("./PriorityQueue/ArrayStrategy");
-f=function(a){function d(a){a||(a={});a.strategy||(a.strategy=BinaryHeapStrategy);a.comparator||(a.comparator=function(a,d){return(a||0)-(d||0)});d.__super__.constructor.call(this,a)}c(d,a);return d}(f);f.ArrayStrategy=a;h.exports=f},{"./PriorityQueue/AbstractPriorityQueue":2,"./PriorityQueue/ArrayStrategy":3}],2:[function(a,h,f){h.exports=function(){function a(a){if(null==(null!=a?a.strategy:void 0))throw"Must pass options.strategy, a strategy";if(null==(null!=a?a.comparator:void 0))throw"Must pass options.comparator, a comparator";
-this.priv=new a.strategy(a);this.length=0}a.prototype.queue=function(a){this.length++;this.priv.queue(a)};a.prototype.dequeue=function(a){if(!this.length)throw"Empty queue";this.length--;return this.priv.dequeue()};a.prototype.peek=function(a){if(!this.length)throw"Empty queue";return this.priv.peek()};a.prototype.remove=function(a){this.priv.remove(a)&&--this.length};a.prototype.find=function(a){return 0<=this.priv.find(a)};a.prototype.removeAllMatching=function(a,d){a=this.priv.removeAllMatching(a,
-d);this.length-=a};return a}()},{}],3:[function(a,h,f){var d=function(a,d,h){var f;var c=0;for(f=a.length;c<f;){var e=c+f>>>1;0<=h(a[e],d)?c=e+1:f=e}return c};h.exports=function(){function a(a){var d;this.options=a;this.comparator=this.options.comparator;this.data=(null!=(d=this.options.initialValues)?d.slice(0):void 0)||[];this.data.sort(this.comparator).reverse()}a.prototype.queue=function(a){var h=d(this.data,a,this.comparator);this.data.splice(h,0,a)};a.prototype.dequeue=function(){return this.data.pop()};
-a.prototype.peek=function(){return this.data[this.data.length-1]};a.prototype.find=function(a){var h=d(this.data,a,this.comparator)-1;return 0<=h&&!this.comparator(this.data[h],a)?h:-1};a.prototype.remove=function(a){a=this.find(a);return 0<=a?(this.data.splice(a,1),!0):!1};a.prototype.removeAllMatching=function(a,d){for(var h=0,f=this.data.length-1;0<=f;--f)if(a(this.data[f])){var c=this.data.splice(f,1)[0];d&&d(c);++h}return h};return a}()},{}]},{},[1])(1)})},function(a,e,c){(function(a){function f(b,
-a){this._id=b;this._clearFn=a}var n="undefined"!==typeof a&&a||"undefined"!==typeof self&&self||window,p=Function.prototype.apply;e.setTimeout=function(){return new f(p.call(setTimeout,n,arguments),clearTimeout)};e.setInterval=function(){return new f(p.call(setInterval,n,arguments),clearInterval)};e.clearTimeout=e.clearInterval=function(b){b&&b.close()};f.prototype.unref=f.prototype.ref=function(){};f.prototype.close=function(){this._clearFn.call(n,this._id)};e.enroll=function(b,a){clearTimeout(b._idleTimeoutId);
-b._idleTimeout=a};e.unenroll=function(b){clearTimeout(b._idleTimeoutId);b._idleTimeout=-1};e._unrefActive=e.active=function(b){clearTimeout(b._idleTimeoutId);var a=b._idleTimeout;0<=a&&(b._idleTimeoutId=setTimeout(function(){b._onTimeout&&b._onTimeout()},a))};c(26);e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof a&&a.setImmediate||this&&this.setImmediate;e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof a&&a.clearImmediate||this&&
-this.clearImmediate}).call(this,c(12))},function(a,e,c){function f(a,f,b){return new Promise(function(d){if(!a)return d();var h=b.document.createElement("script");h.type="text/javascript";h.onload=function(){d()};h.onerror=function(){f&&Object(l.e)(f);d()};h.src=a;b.document.getElementsByTagName("head")[0].appendChild(h)})}c.d(e,"a",function(){return f});var l=c(0)},function(a,e,c){function f(b,a,h){function d(e){c=c||Date.now();return e?(Object(l.a)("load","Try instantiateStreaming"),fetch(Object(n.a)(b)).then(function(b){return WebAssembly.instantiateStreaming(b,
-a)}).catch(function(a){Object(l.a)("load","instantiateStreaming Failed "+b+" message "+a.message);return d(!1)})):Object(n.b)(b,h,!0,!0).then(function(b){f=Date.now();Object(l.a)("load","Request took "+(f-c)+" ms");return WebAssembly.instantiate(b,a)})}var f,c;return d(!!WebAssembly.instantiateStreaming).then(function(b){Object(l.a)("load","WASM compilation took "+(Date.now()-(f||c))+" ms");return b})}c.d(e,"a",function(){return f});var l=c(0),n=c(4),p=c(9);c.d(e,"b",function(){return p.a})},function(a,
-e,c){c.d(e,"a",function(){return f});c.d(e,"b",function(){return l});c.d(e,"c",function(){return n});var f=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])))})},l=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,
-1,0,10,8,1,6,0,6,64,25,11,11])))})},n=function(){return $jscomp.asyncExecutePromiseGeneratorProgram(function(a){return a.return(WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))})}},function(a,e){e=function(){return this}();try{e=e||(new Function("return this"))()}catch(c){"object"===typeof window&&(e=window)}a.exports=e},function(a,e,c){c.d(e,"b",function(){return p});c.d(e,"a",function(){return d});var f=c(4),l=c(10),n=c(2),
-p=function(){return n.e&&!n.a&&!Object(n.j)()},b=function(){function b(b){var a=this;this.promise=b.then(function(b){a.response=b;a.status=200})}b.prototype.addEventListener=function(b,a){this.promise.then(a)};return b}(),d=function(a,d,c){if(p()&&!c)self.Module.instantiateWasm=function(b,h){return Object(l.a)(a+"Wasm.wasm",b,d["Wasm.wasm"]).then(function(b){h(b.instance)})},c=Object(f.b)(a+"Wasm.js.mem",d["Wasm.js.mem"],!1,!1);else{c=Object(f.b)((self.Module.asmjsPrefix?self.Module.asmjsPrefix:"")+
-a+".js.mem",d[".js.mem"],!1);var h=Object(f.c)((self.Module.memoryInitializerPrefixURL?self.Module.memoryInitializerPrefixURL:"")+a+".mem",d[".mem"],!0,!0);self.Module.memoryInitializerRequest=new b(h)}c=new Blob([c],{type:"application/javascript"});importScripts(URL.createObjectURL(c))}},function(a,e,c){function f(a,f,b,d){function h(a){return a instanceof b?a:new b(function(b){b(a)})}return new (b||(b=Promise))(function(b,c){function e(b){try{p(d.next(b))}catch(x){c(x)}}function r(b){try{p(d["throw"](b))}catch(x){c(x)}}
-function p(a){a.done?b(a.value):h(a.value).then(e,r)}p((d=d.apply(a,f||[])).next())})}function l(a,f){function b(b){return function(a){return d([b,a])}}function d(b){if(c)throw new TypeError("Generator is already executing.");for(;h;)try{if(c=1,e&&(m=b[0]&2?e["return"]:b[0]?e["throw"]||((m=e["return"])&&m.call(e),0):e.next)&&!(m=m.call(e,b[1])).done)return m;if(e=0,m)b=[b[0]&2,m.value];switch(b[0]){case 0:case 1:m=b;break;case 4:return h.label++,{value:b[1],done:!1};case 5:h.label++;e=b[1];b=[0];
-continue;case 7:b=h.ops.pop();h.trys.pop();continue;default:if(!(m=h.trys,m=0<m.length&&m[m.length-1])&&(6===b[0]||2===b[0])){h=0;continue}if(3===b[0]&&(!m||b[1]>m[0]&&b[1]<m[3]))h.label=b[1];else if(6===b[0]&&h.label<m[1])h.label=m[1],m=b;else if(m&&h.label<m[2])h.label=m[2],h.ops.push(b);else{m[2]&&h.ops.pop();h.trys.pop();continue}}b=f.call(a,h)}catch(t){b=[6,t],e=0}finally{c=m=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}var h={label:0,sent:function(){if(m[0]&1)throw m[1];return m[1]},
-trys:[],ops:[]},c,e,m,p;$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();return p={next:b(0),"throw":b(1),"return":b(2)},"function"===typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p}c.d(e,"a",function(){return f});c.d(e,"b",function(){return l})},function(a,e){function c(){throw Error("setTimeout has not been defined");}function f(){throw Error("clearTimeout has not been defined");}function l(b){if(r===setTimeout)return setTimeout(b,0);if((r===c||!r)&&setTimeout)return r=
-setTimeout,setTimeout(b,0);try{return r(b,0)}catch(z){try{return r.call(null,b,0)}catch(q){return r.call(this,b,0)}}}function n(b){if(y===clearTimeout)return clearTimeout(b);if((y===f||!y)&&clearTimeout)return y=clearTimeout,clearTimeout(b);try{return y(b)}catch(z){try{return y.call(null,b)}catch(q){return y.call(this,b)}}}function p(){w&&A&&(w=!1,A.length?m=A.concat(m):t=-1,m.length&&b())}function b(){if(!w){var b=l(p);w=!0;for(var a=m.length;a;){A=m;for(m=[];++t<a;)A&&A[t].run();t=-1;a=m.length}A=
-null;w=!1;n(b)}}function d(b,a){this.fun=b;this.array=a}function h(){}a=a.exports={};try{var r="function"===typeof setTimeout?setTimeout:c}catch(x){r=c}try{var y="function"===typeof clearTimeout?clearTimeout:f}catch(x){y=f}var m=[],w=!1,A,t=-1;a.nextTick=function(a){var h=Array(arguments.length-1);if(1<arguments.length)for(var f=1;f<arguments.length;f++)h[f-1]=arguments[f];m.push(new d(a,h));1!==m.length||w||l(b)};d.prototype.run=function(){this.fun.apply(null,this.array)};a.title="browser";a.browser=
-!0;a.env={};a.argv=[];a.version="";a.versions={};a.on=h;a.addListener=h;a.once=h;a.off=h;a.removeListener=h;a.removeAllListeners=h;a.emit=h;a.prependListener=h;a.prependOnceListener=h;a.listeners=function(b){return[]};a.binding=function(b){throw Error("process.binding is not supported");};a.cwd=function(){return"/"};a.chdir=function(b){throw Error("process.chdir is not supported");};a.umask=function(){return 0}},function(a,e,c){e.a=function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=
-function(a,c){void 0===a&&(a=0);void 0===c&&(c=this.byteLength);a=Math.floor(a);c=Math.floor(c);0>a&&(a+=this.byteLength);0>c&&(c+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);c=Math.min(Math.max(0,c),this.byteLength);if(0>=c-a)return new ArrayBuffer(0);var f=new ArrayBuffer(c-a),e=new Uint8Array(f);a=new Uint8Array(this,a,c-a);e.set(a);return f})}},function(a,e,c){e.a=function(a){var c={};decodeURIComponent(a.slice(1)).split("&").forEach(function(a){a=a.split("=",2);c[a[0]]=a[1]});
-return c}},function(a,e,c){(function(a){function c(b){"function"!==typeof b&&(b=new Function(""+b));for(var a=Array(arguments.length-1),d=0;d<a.length;d++)a[d]=arguments[d+1];A[w]={callback:b,args:a};z(w);return w++}function f(b){delete A[b]}function p(b){if(t)setTimeout(p,0,b);else{var a=A[b];if(a){t=!0;try{var d=a.callback,g=a.args;switch(g.length){case 0:d();break;case 1:d(g[0]);break;case 2:d(g[0],g[1]);break;case 3:d(g[0],g[1],g[2]);break;default:d.apply(void 0,g)}}finally{f(b),t=!1}}}}function b(){z=
-function(b){a.nextTick(function(){p(b)})}}function d(){if(m.postMessage&&!m.importScripts){var b=!0,a=m.onmessage;m.onmessage=function(){b=!1};m.postMessage("","*");m.onmessage=a;return b}}function h(){var b="setImmediate$"+Math.random()+"$",a=function(a){a.source!==m&&a.source!==m.parent||"string"!==typeof a.data||0!==a.data.indexOf(b)||p(+a.data.slice(b.length))};m.addEventListener?m.addEventListener("message",a,!1):m.attachEvent("onmessage",a);z=function(a){m.postMessage(b+a,"*")}}function r(){var b=
-x.documentElement;z=function(a){var d=x.createElement("script");d.onreadystatechange=function(){p(a);d.onreadystatechange=null;b.removeChild(d);d=null};b.appendChild(d)}}function y(){z=function(b){setTimeout(p,0,b)}}var m="undefined"===typeof window?self:window,w=1,A={},t=!1,x=m.document,z,q=Object.getPrototypeOf&&Object.getPrototypeOf(m);q=q&&q.setTimeout?q:m;"[object process]"==={}.toString.call(m.process)?b():d()?h():x&&"onreadystatechange"in x.createElement("script")?r():y();q.setImmediate=c;
-q.clearImmediate=f;e.a={setImmediate:c,clearImmediate:f}}).call(this,c(15))},function(a,e,c){var f=c(0),l=c(3);a=function(){function a(a,b){this.name=a;this.comObj=b;this.callbackIndex=1;this.postMessageTransfers=!0;this.callbacksCapabilities={};this.actionHandler={};this.actionHandlerAsync={};this.pdfnetCommandChain=this.nextAsync=null;this.pdfnetActiveCommands=new Set;this.actionHandler.console_log=[function(b){Object(f.d)(b)}];this.actionHandler.console_error=[function(b){Object(f.c)(b)}];this.actionHandler.workerLoaded=
-[function(){}];this.msgHandler=this.handleMessage.bind(this);b.addEventListener("message",this.msgHandler)}a.prototype.on=function(a,b,d){var h=this.actionHandler;h[a]&&Object(f.c)('There is already an actionName called "'+a+'"');h[a]=[b,d]};a.prototype.clearActionHandlers=function(){this.actionHandler={};this.comObj.removeEventListener("message",this.msgHandler)};a.prototype.reset=function(){this.clearActionHandlers();this.comObj.reset&&this.comObj.reset()};a.prototype.replace=function(a,b,d){this.actionHandler[a]=
-[b,d]};a.prototype.onAsync=function(a,b,d){var h=this.actionHandlerAsync;h[a]&&Object(f.c)('There is already an actionName called "'+a+'"');h[a]=[b,d]};a.prototype.replaceAsync=function(a,b,d){var h=this.actionHandlerAsync,c=this.actionHandler;c[a]&&delete c[a];h[a]=[b,d]};a.prototype.onNextAsync=function(a){this.nextAsync=a};a.prototype.send=function(a,b){this.postMessage({action:a,data:b})};a.prototype.getNextId=function(){return this.callbackIndex++};a.prototype.sendWithPromise=function(a,b,d){var h=
-this.getNextId();a={action:a,data:b,callbackId:h,priority:d};b=window.createPromiseCapability();this.callbacksCapabilities[h]=b;try{this.postMessage(a)}catch(r){b.reject(r)}return b.promise};a.prototype.sendWithPromiseReturnId=function(a,b,d){var h=this.getNextId();a={action:a,data:b,callbackId:h,priority:d};b=window.createPromiseCapability();this.callbacksCapabilities[h]=b;try{this.postMessage(a)}catch(r){b.reject(r)}return{promise:b.promise,callbackId:h}};a.prototype.sendWithPromiseWithId=function(a,
-b,d){b>this.callbackIndex&&Object(f.c)("Can't reuse callbackId "+b+" lesser than callbackIndex "+this.callbackIndex);b in this.callbacksCapabilities&&Object(f.c)("Can't reuse callbackId "+b+". There is a capability waiting to be resolved. ");a={action:a,data:d,callbackId:b};d=window.createPromiseCapability();this.callbacksCapabilities[b]=d;try{this.postMessage(a)}catch(h){d.reject(h)}return d.promise};a.prototype.sendError=function(a,b){if(a.message||a.errorData){a.message&&a.message.message&&(a.message=
-a.message.message);var d=a.errorData;a={type:a.type?a.type:"JavascriptError",message:a.message};d&&Object.keys(d).forEach(function(b){d.hasOwnProperty(b)&&(a[b]=d[b])})}this.postMessage({isReply:!0,callbackId:b,error:a})};a.prototype.getPromise=function(a){if(a in this.callbacksCapabilities)return this.callbacksCapabilities[a];Object(f.c)("Cannot get promise for callback "+a)};a.prototype.cancelPromise=function(a){if(a in this.callbacksCapabilities){var b=this.callbacksCapabilities[a];delete this.callbacksCapabilities[a];
-this.pdfnetActiveCommands.has(a)&&this.pdfnetActiveCommands.delete(a);b.reject({type:"Cancelled",message:"Request has been cancelled."});this.postMessage({action:"actionCancel",data:{callbackId:a}})}else Object(f.e)("Cannot cancel callback "+a)};a.prototype.postMessage=function(a){Object(l.a)("enableWorkerLogs")&&Object(f.d)("PDFWorker","Sent "+JSON.stringify(a));if(this.postMessageTransfers){var b=this.getTransfersArray(a);this.comObj.postMessage(a,b)}else this.comObj.postMessage(a)};a.prototype.getObjectTransfers=
-function(a,b){var d=this;null!==a&&"object"===typeof a&&(a instanceof Uint8Array?b.push(a.buffer):a instanceof ArrayBuffer?b.push(a):Object.keys(a).forEach(function(h){a.hasOwnProperty(h)&&d.getObjectTransfers(a[h],b)}))};a.prototype.getTransfersArray=function(a){var b=[];this.getObjectTransfers(a,b);return 0===b.length?void 0:b};a.prototype.handleMessage=function(a){var b=this,d=a.data;Object(l.a)("enableWorkerLogs")&&Object(f.d)("PDFWorker","Received "+JSON.stringify(d));var h=this.actionHandler,
-c=this.actionHandlerAsync;a=this.callbacksCapabilities;var e=this.pdfnetActiveCommands;if(d.isReply)h=d.callbackId,h in a?(c=a[h],delete a[h],e.has(h)&&e.delete(h),"error"in d?c.reject(d.error):c.resolve(d.data)):Object(f.a)("Cannot resolve callback "+h);else if(d.action in h){var m=h[d.action];d.callbackId?Promise.resolve().then(function(){return m[0].call(m[1],d.data)}).then(function(a){b.postMessage({isReply:!0,callbackId:d.callbackId,data:a})},function(a){b.sendError(a,d.callbackId)}):m[0].call(m[1],
-d.data)}else d.action in c?(m=c[d.action],d.callbackId?m[0].call(m[1],d).then(function(a){b.postMessage({isReply:!0,callbackId:d.callbackId,data:a});b.nextAsync()},function(a){b.sendError(a,d.callbackId);b.nextAsync()}):m[0].call(m[1],d).then(function(){b.nextAsync()},function(){b.nextAsync()})):Object(f.c)("Unknown action from worker: "+d.action)};return a}();e.a=a},function(a,e,c){c.d(e,"a",function(){return f});c(0);c(21);c(2);c(6);c(11);var f="optimized/"},function(a,e,c){c.d(e,"a",function(){return l});
-c(0);a="undefined"===typeof window?self:window;a.Core=a.Core||{};var f=a.Core,l=function(){return"".concat(f.getWorkerPath(),"pdf/")}},function(a,e,c){a.exports=c(23)},function(a,e,c){c.r(e);c(2);a=c(16);c(24);c(25);c(28);c(29);c(30);c(31);c(32);Object(a.a)()},function(a,e,c){(function(a){"undefined"===typeof a.crypto&&(a.crypto={getRandomValues:function(a){for(var c=0;c<a.length;c++)a[c]=256*Math.random()}})})("undefined"===typeof window?self:window)},function(a,e,c){(function(a,e){function f(a){"@babel/helpers - typeof";
-$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f(a)}(function(a){function b(){for(var a=0;a<C.length;a++)C[a][0](C[a][1]);C=[];F=!1}function d(a,g){C.push([a,g]);F||(F=!0,D(b,0))}function h(a,b){function g(a){m(b,
-a)}function k(a){n(b,a)}try{a(g,k)}catch(G){k(G)}}function r(a){var b=a.owner,g=b.state_;b=b.data_;var v=a[g];a=a.then;if("function"===typeof v){g=k;try{b=v(b)}catch(G){n(a,G)}}l(a,b)||(g===k&&m(a,b),g===u&&n(a,b))}function l(a,b){var g;try{if(a===b)throw new TypeError("A promises callback cannot return that same promise.");if(b&&("function"===typeof b||"object"===f(b))){var k=b.then;if("function"===typeof k)return k.call(b,function(k){g||(g=!0,b!==k?m(a,k):w(a,k))},function(b){g||(g=!0,n(a,b))}),
-!0}}catch(G){return g||n(a,G),!0}return!1}function m(a,b){a!==b&&l(a,b)||w(a,b)}function w(a,b){a.state_===E&&(a.state_=g,a.data_=b,d(x,a))}function n(a,b){a.state_===E&&(a.state_=g,a.data_=b,d(z,a))}function t(a){var b=a.then_;a.then_=void 0;for(a=0;a<b.length;a++)r(b[a])}function x(a){a.state_=k;t(a)}function z(a){a.state_=u;t(a)}function q(a){if("function"!==typeof a)throw new TypeError("Promise constructor takes a function argument");if(!(this instanceof q))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");
-this.then_=[];h(a,this)}a.createPromiseCapability=function(){var a={};a.promise=new q(function(b,g){a.resolve=b;a.reject=g});return a};var B=a.Promise,p=B&&"resolve"in B&&"reject"in B&&"all"in B&&"race"in B&&function(){var a;new B(function(b){a=b});return"function"===typeof a}();"undefined"!==typeof exports&&exports?(exports.Promise=p?B:q,exports.Polyfill=q):"function"===typeof define&&c(27)?define(function(){return p?B:q}):p||(a.Promise=q);var E="pending",g="sealed",k="fulfilled",u="rejected",v=
-function(){},D="undefined"!==typeof e?e:setTimeout,C=[],F;q.prototype={constructor:q,state_:E,then_:null,data_:void 0,then:function(a,b){a={owner:this,then:new this.constructor(v),fulfilled:a,rejected:b};this.state_===k||this.state_===u?d(r,a):this.then_.push(a);return a.then},"catch":function(a){return this.then(null,a)}};q.all=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.all().");return new this(function(b,g){function k(a){d++;
-return function(g){v[a]=g;--d||b(v)}}for(var v=[],d=0,u=0,h;u<a.length;u++)(h=a[u])&&"function"===typeof h.then?h.then(k(u),g):v[u]=h;d||b(v)})};q.race=function(a){if("[object Array]"!==Object.prototype.toString.call(a))throw new TypeError("You must pass an array to Promise.race().");return new this(function(b,g){for(var k=0,v;k<a.length;k++)(v=a[k])&&"function"===typeof v.then?v.then(b,g):b(v)})};q.resolve=function(a){return a&&"object"===f(a)&&a.constructor===this?a:new this(function(b){b(a)})};
-q.reject=function(a){return new this(function(b,g){g(a)})}})("undefined"!==typeof window?window:"undefined"!==typeof a?a:"undefined"!==typeof self?self:void 0)}).call(this,c(12),c(8).setImmediate)},function(a,e,c){(function(a,c){(function(a,f){function b(a){delete x[a]}function d(a){if(z)setTimeout(d,0,a);else{var g=x[a];if(g){z=!0;try{var k=g.callback,u=g.args;switch(u.length){case 0:k();break;case 1:k(u[0]);break;case 2:k(u[0],u[1]);break;case 3:k(u[0],u[1],u[2]);break;default:k.apply(f,u)}}finally{b(a),
-z=!1}}}}function h(){B=function(a){c.nextTick(function(){d(a)})}}function e(){if(a.postMessage&&!a.importScripts){var b=!0,g=a.onmessage;a.onmessage=function(){b=!1};a.postMessage("","*");a.onmessage=g;return b}}function l(){var b="setImmediate$"+Math.random()+"$",g=function(g){g.source===a&&"string"===typeof g.data&&0===g.data.indexOf(b)&&d(+g.data.slice(b.length))};a.addEventListener?a.addEventListener("message",g,!1):a.attachEvent("onmessage",g);B=function(g){a.postMessage(b+g,"*")}}function m(){var a=
-new MessageChannel;a.port1.onmessage=function(a){d(a.data)};B=function(b){a.port2.postMessage(b)}}function w(){var a=q.documentElement;B=function(b){var g=q.createElement("script");g.onreadystatechange=function(){d(b);g.onreadystatechange=null;a.removeChild(g);g=null};a.appendChild(g)}}function n(){B=function(a){setTimeout(d,0,a)}}if(!a.setImmediate){var t=1,x={},z=!1,q=a.document,B,p=Object.getPrototypeOf&&Object.getPrototypeOf(a);p=p&&p.setTimeout?p:a;"[object process]"==={}.toString.call(a.process)?
-h():e()?l():a.MessageChannel?m():q&&"onreadystatechange"in q.createElement("script")?w():n();p.setImmediate=function(a){"function"!==typeof a&&(a=new Function(""+a));for(var b=Array(arguments.length-1),k=0;k<b.length;k++)b[k]=arguments[k+1];x[t]={callback:a,args:b};B(t);return t++};p.clearImmediate=b}})("undefined"===typeof self?"undefined"===typeof a?this:a:self)}).call(this,c(12),c(15))},function(a,e){a.exports={}},function(a,e,c){(function(a){var c=function(a,c){var b=function y(a){a=this["catch"](a);
-return{cancel:c,promise:a,then:d.bind(a),"catch":y.bind(a)}},d=function w(a,d){a=this.then(a,d);return{cancel:c,promise:a,then:w.bind(a),"catch":b.bind(a)}};return{cancel:c,promise:a,then:d.bind(a),"catch":b.bind(a)}};a.CancellablePromise=function(a,e){var b=!1,d,h=new Promise(function(h,c){d=function(){b||(e(),c("cancelled"))};(new Promise(a)).then(function(a){b=!0;h(a)},function(a){b=!0;c(a)})});return c(h,d)};a.CancellablePromise.all=function(a){var e=Promise.all(a);return c(e,function(){a.forEach(function(a){a.cancel&&
-a.cancel()})})}})("undefined"===typeof self?void 0:self)},function(a,e,c){(function(a,e){var f=c(1);(function(c){c.Module={INITIAL_MEMORY:50331648,noExitRuntime:!0,devicePixelRatio:1,cur_doc:null,cachePtrSize:0,hasBufOwnership:!0,loaded:!1,initCb:null,cachePtr:null,cleanupState:null,docs:{},postEvent:function(a,d,h){Module.workerMessageHandler.send("event",{docId:a,type:d,data:h})},postPagesUpdatedEvent:function(a,d,h,c){a={pageDimensions:Module.GetPageDimensions(a)};if(h)for(var b=0;b<h.length;++b)h[b]in
-a.pageDimensions?(a.pageDimensions[h[b]].contentChanged=!0,c&&(a.pageDimensions[h[b]].annotationsUnchanged=!0)):console.warn("Invalid Page Number ".concat(h[b]));Module.postEvent(d,"pagesUpdated",a);return a},postPagesRenamedEvent:function(a,d){var b={};a=Module.PDFDocGetPageIterator(a,1);for(var c=1;Module.IteratorHasNext(a);++c){var e=Module.stackSave(),f=Module.IteratorCurrent(a);b[c]=Module.PageGetId(f);Module.IteratorNext(a);Module.stackRestore(e)}Module.postEvent(d,"pagesRenamed",{pageNumToId:b})},
-GetIndividualPageDimensions:function(a,d,h){a=Module.PageGetPageInfo(h);a.id=Module.PageGetId(h);return a},GetPageDimensionsRange:function(a,d,h){for(var b={},c=Module.PDFDocGetPageIterator(a,d);d<h&&Module.IteratorHasNext(c);++d){var e=Module.stackSave(),f=Module.IteratorCurrent(c);b[d]=this.GetIndividualPageDimensions(a,d,f);Module.IteratorNext(c);Module.stackRestore(e)}return b},GetPageDimensionsContentChangedList:function(a,d){d.sort(function(a,b){return a-b});for(var b={},c=d[0],e=d[d.length-
-1],f=0,l=Module.PDFDocGetPageIterator(a,c);c<=e&&Module.IteratorHasNext(l);++c){if(d[f]==c){++f;var p=Module.stackSave(),t=Module.IteratorCurrent(l);t=this.GetIndividualPageDimensions(a,c,t);t.contentChanged=!0;b[c]=t;Module.stackRestore(p)}Module.IteratorNext(l)}return b},GetPageDimensions:function(a){try{var b=Module.stackSave();var c=Module.GetPageCount(a);if(0===c)throw"This document has no pages.";return Module.GetPageDimensionsRange(a,1,c+1)}finally{Module.stackRestore(b)}},loadDoc:function(a,
-d){"undefined"===typeof Module&&this._main();var b=null;try{var c=Module.stackSave();a.customHandlerId&&Module._TRN_PDFNetAddPDFTronCustomHandler(a.customHandlerId);d=Module.CreateDoc(a,d);var e=Module.GetDoc(d);if(Module.PDFDocInitSecurityHandler(e))return{docId:d,pageDimensions:Module.GetPageDimensions(e)};b={type:"NeedsPassword",errorData:{docId:d},message:"This document requires a password"}}catch(m){b={type:"InvalidPDF",message:m}}finally{Module.stackRestore(c)}throw b;},loadCanvas:function(a,
-d,c,e,f,m,l,p){return new Promise(function(b,h){var t=Module.GetDoc(a),r=d+1,w=function(){b(Module.RasterizePage(t,r,c,e,m,f,l,p))},x=Module.docs[a].chunkStorage;if(x){var y=Module.GetDownloadData(t).downloader,g=x.getRequiredChunkOffsetArrays(y,r);x.keepChunks(g.have);y=function(){var a=x.getChunks(g.missing);Module.loadPromise=a.then(function(){var a=Module.loadPromise.cancelled;Module.loadPromise=null;a||w()})["catch"](function(a){"cancelled"!==a?h(a):Module.loadPromise=null})};Module.loadPromise?
-Module.loadPromise.then(y,y):y()}else w()})},loadResources:function(a,d){Module.Initialize(d);Object(f.b)("worker","PDFNet initialized!");Module._TRN_PDFNetSetDefaultDiskCachingEnabled(!1);a=new Uint8Array(a);Module.PDFNetSetResourceData(a)},onRuntimeInitialized:function(){"undefined"===typeof Module&&(("undefined"!==typeof window?window:self).Module={});(function(b){b.PDFDocExportXFDF=function(a,b){a=Module.GetDoc(a);var d=Module.stackSave();try{var c=b?Module.PDFDocFDFExtract(a,b):Module.PDFDocFDFExtract(a);
-var h=Module.FDFDocSaveAsXFDF(c);Module.stackRestore(d)}catch(w){throw Module.stackRestore(d),w;}return h};b.PageArrayToPageSet=function(a){var b=Module.stackSave();try{var d=Module.PageSetCreate();for(var c=0;c<a.length;++c)Module.PageSetAddPage(d,a[c]);Module.stackRestore(b)}catch(m){throw Module.stackRestore(b),m;}return d};b.cancelCurrent=function(){var b=Module.loadPromise;return b?(b.cancel(),b.cancelled=!0):(b=Module.cleanupState)?(a(b.timeout),b.cleanupArr.reverse().forEach(function(a){a()}),
-Module.cleanupState=null,!0):!1};b.SetWorkerRestartCallback=function(a){Module.workerRestartCallback=a};b.XFDFMerge=function(a,b,c){if(b){var d=[];try{Object(f.b)("worker","Merge XFDF of length ".concat(b.length));var h=Module.GetUStringFromJSString(b,!0);d.push(function(){Module.UStringDestroy(h)});var e=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_FDFDocCreateFromXFDF(h,e));var l=Module.getValue(e,"i8*");d.push(function(){Module.FDFDocDestroy(l)});Module.PDFDocFDFUpdate(a,l,c)}finally{d.reverse().forEach(function(a){a()})}}};
-b.MergeXFDF=function(a,b,c){return new Promise(function(d,h){var e=[];try{var f=Module.stackSave();e[e.length]=function(){Module.stackRestore(f)};var m=Module.GetDoc(a);Module.XFDFMerge(m,b,c);e.forEach(function(a){a()});d({})}catch(x){e.forEach(function(a){a()}),h(x)}})};b.CreateBufferFile=function(a,b,c){Module.MakeDev(a);var d=new ArrayBuffer(b);d=new Uint8Array(d);c=c?0:255;for(var h=0;h<b;++h)d[h]=c;Module.docs[a]={buffer:d}};b.ReadBufferFile=function(a,b){var d=Module.docs[a].buffer;b&&(Module.docs[a].buffer=
-new Uint8Array(d.buffer.slice(0)));return d};b.RemoveBufferFile=function(a){Module.docs[a]=null};b.SaveHelper=function(a,b,c){c="undefined"===typeof c?2:c;Module.MakeDev(b);var d=Module._TRN_PDFDocSave(a,Module.GetUStringFromJSString(b),c,0);Module.docs[b].sink=null;REX(d);c&16&&Module.postPagesRenamedEvent(a,b);return Module.docs[b].buffer.buffer};b.SaveDoc=function(a,b,e,f,m,l,p){return new Promise(function(d,h){var t=[];try{var q=Module.GetDoc(a),r=Module.stackSave();t[t.length]=function(){Module.stackRestore(r)};
-Module.XFDFMerge(q,b,p);var w=Module.allocate(8,"i8",Module.ALLOC_STACK),x=Module.allocate(Module.intArrayFromString('{"UseNonStandardRotation": true}'),"i8",Module.ALLOC_STACK);Module.setValue(w,x,"i8*");Module.setValue(w+4,0,"i32");Module._TRN_PDFDocRefreshAnnotAppearances(q,w);if(l){w=function(a){a=new Uint8Array(a);c.FS.writeFile("watermarkFile",a);a=Module.ImageCreateFromFile(q,Module.GetUStringFromJSString("watermarkFile"));c.FS.unlink("watermarkFile");return a};var g=Module.ElementBuilderCreate();
-t.push(function(){Module.ElementBuilderDestroy(g)});var k=Module.ElementWriterCreate();t.push(function(){Module.ElementWriterDestroy(k)});try{if(!l.hasOwnProperty("default"))throw Error("Watermark dictionary has no 'default' key!");var u=w(l["default"]),v=Module.PDFDocGetPageIterator(q,1);for(x=-1;Module.IteratorHasNext(v);){var D=Module.IteratorCurrent(v);Module.IteratorNext(v);x++;var C=x.toString();try{var F=void 0;if(l.hasOwnProperty(C)){var n=l[C];if(n)F=w(n);else continue}else F=u;var y=Module.PageGetPageInfo(D),
-A=Module.ElementBuilderCreateImage(g,F,0,0,y.width,y.height);Module.ElementWriterBegin(k,D);Module.ElementWriterWritePlacedElement(k,A);Module.ElementWriterEnd(k)}catch(I){console.warn("Watermark for page "+C+"can not be added due to error: "+I)}}}catch(I){console.warn("Watermarks can not be added due to error: "+I)}}u=0;if(f){var H=Module.PDFDocGetRoot(q);(u=Module.ObjFindObj(H,"OpenAction"))&&Module.ObjPut(H,"__OpenActionBackup__",u);var G=Module.ObjPutDict(H,"OpenAction");Module.ObjPutName(G,"Type",
-"Action");Module.ObjPutName(G,"S","JavaScript");Module.ObjPutString(G,"JS","this.print()")}var L=Module.SaveHelper(q,a,m);f&&(u?Module.ObjPut(H,"OpenAction",Module.ObjFindObj(H,"__OpenActionBackup__")):Module.ObjErase(H,"OpenAction"));t.reverse().forEach(function(a){a()});if(e)d({fileData:L});else{var M=L.slice(0);d({fileData:M})}}catch(I){t.reverse().forEach(function(a){a()}),h(I)}})};b.SaveDocFromFixedElements=function(a,b,c,e){a=Module.PDFDocCreateFromLayoutEls(a);a=Module.CreateDoc({type:"ptr",
-value:a});return Module.SaveDoc(a,b,!0,!1,c,e)};b.GetCurrentCanvasData=function(a){var b=Module.currentRenderData;if(!b)return null;a&&REX(Module._TRN_PDFRasterizerUpdateBuffer(b.rast));var c=Date.now();if(b.bufPtr){a=new Uint8Array(new ArrayBuffer(b.buf_size));for(var d=0,e=0;e<b.out_height;++e)for(var l=b.bufPtr+b.stride*e,p=0;p<b.out_width;++p)a[d++]=Module.HEAPU8[l+2],a[d++]=Module.HEAPU8[l+1],a[d++]=Module.HEAPU8[l],a[d++]=Module.HEAPU8[l+3],l+=4}else a=Module.ReadBufferFile("b",a);Object(f.b)("bufferTiming",
-"Copy took ".concat(Date.now()-c));return{pageBuf:a.buffer,pageWidth:b.out_width,pageHeight:b.out_height}};b.RasterizePage=function(a,b,c,l,m,w,p,t){return new Promise(function(d,h){Module.currentRenderData={};var q=Module.currentRenderData;q.out_width=parseInt(c,10);q.out_height=parseInt(l,10);var r=[];r.push(function(){Module.currentRenderData=null});try{var x=Module.stackSave();r[r.length]=function(){Module.stackRestore(x)};var z=Module.GetPage(a,b),g=Module.PageGetPageWidth(z),k=Module.PageGetPageHeight(z);
-q.stride=4*q.out_width;q.buf_size=q.out_width*q.out_height*4;Object(f.b)("Memory","Created rasterizer");q.rast=Module.PDFRasterizerCreate();r.push(function(){Object(f.b)("Memory","Destroyed rasterizer");Module._TRN_PDFRasterizerDestroy(q.rast)});if(p){var u=Module.EMSCreateUpdatedLayersContext(a,p);0!==u&&(REX(Module._TRN_PDFRasterizerSetOCGContext(q.rast,u)),r.push(function(){Module._TRN_OCGContextDestroy(u)}))}var v=!1;t.hasOwnProperty("renderAnnots")?(t.renderAnnots&&(v=!0),REX(Module._TRN_PDFRasterizerSetDrawAnnotations(q.rast,
-t.renderAnnots?1:0))):REX(Module._TRN_PDFRasterizerSetDrawAnnotations(q.rast,0));t.hasOwnProperty("highlightFields")&&(t.highlightFields&&(v=!0),REX(Module._TRN_PDFRasterizerSetHighlightFields(q.rast,t.highlightFields)));t.hasOwnProperty("antiAliasing")&&REX(Module._TRN_PDFRasterizerSetAntiAliasing(q.rast,t.antiAliasing));t.hasOwnProperty("pathHinting")&&REX(Module._TRN_PDFRasterizerSetPathHinting(q.rast,t.pathHinting));if(t.hasOwnProperty("thinLinePixelGridFit")){var D=!0;t.hasOwnProperty("thinLineStrokeAdjust")&&
-(D=t.thinLineStrokeAdjust);REX(Module._TRN_PDFRasterizerSetThinLineAdjustment(q.rast,t.thinLinePixelGridFit,D))}else t.hasOwnProperty("thinLineStrokeAdjust")&&REX(Module._TRN_PDFRasterizerSetThinLineAdjustment(q.rast,!1,t.thinLineStrokeAdjust));t.hasOwnProperty("imageSmoothing")?(D=!1,t.hasOwnProperty("hqImageResampling")&&(D=t.hqImageResampling),REX(Module._TRN_PDFRasterizerSetImageSmoothing(q.rast,t.imageSmoothing,D))):t.hasOwnProperty("hqImageResampling")&&REX(Module._TRN_PDFRasterizerSetImageSmoothing(q.rast,
-!0,t.hqImageResampling));t.hasOwnProperty("caching")&&REX(Module._TRN_PDFRasterizerSetCaching(q.rast,t.caching));t.hasOwnProperty("expGamma")&&REX(Module._TRN_PDFRasterizerSetGamma(q.rast,t.expGamma));t.hasOwnProperty("isPrinting")&&(t.isPrinting&&(v=!0),REX(Module._TRN_PDFRasterizerSetPrintMode(q.rast,t.isPrinting)));t.hasOwnProperty("colorPostProcessMode")&&(t.colorPostProcessMode&&(v=!0),REX(Module._TRN_PDFRasterizerSetColorPostProcessMode(q.rast,t.colorPostProcessMode)));var C=Module.PageGetRotation(z);
-D=1===w||3===w;C=(1===C||3===C)!==D;var F=Module.allocate(48,"i8",Module.ALLOC_STACK);if(m){m.x1=m[0];m.y1=m[1];m.x2=m[2];m.y2=m[3];var n=Module.PageGetDefaultMatrix(z,0),y=Module.Matrix2DInverse(n);m=Module.Matrix2DMultBBox(y,m);if(m.x2<m.x1){var A=m.x1;m.x1=m.x2;m.x2=A}m.y2<m.y1&&(A=m.y1,m.y1=m.y2,m.y2=A);var H=q.out_width/(C?m.y2-m.y1:m.x2-m.x1);var G=Module.GetDefaultMatrixBox(z,m,w)}else G=Module.PageGetDefaultMatrix(z,w),H=q.out_width/(D?k:g);Module.Matrix2DSet(F,H,0,0,H,0,0);Module.Matrix2DConcat(F,
-G);var L=Module.allocate(4,"i8",Module.ALLOC_STACK),M=Module.allocate(4,"i8",Module.ALLOC_STACK);v?(q.bufPtr=Module._malloc(q.buf_size),Module._memset(q.bufPtr,t.pageTransparent?0:255,q.buf_size),r.push(function(){Module._free(q.bufPtr)})):(Module.CreateBufferFile("b",q.buf_size,t.pageTransparent),r.push(function(){Module.RemoveBufferFile("b")}));var I=t.overprintMode;if(10===I){REX(Module._TRN_PDFRasterizerSetOverprint(q.rast,1));var O=Module.PDFRasterizerRasterizeSeparations(q.rast,z,q.out_width,
-q.out_height,F,0,0);d({pageBuf:O,pageWidth:q.out_width,pageHeight:q.out_height})}else{REX(Module._TRN_PDFRasterizerSetOverprint(q.rast,I));v?REX(Module._TRN_PDFRasterizerGetChunkRenderer(q.rast,z,q.bufPtr,q.out_width,q.out_height,q.stride,4,!0,F,0,0,0,L)):REX(Module._TRN_PDFRasterizerGetChunkRendererPath(q.rast,z,Module.GetUStringFromJSString("b"),q.out_width,q.out_height,!0,F,0,0,0,L));var N=Module.getValue(L,"i8*");r.push(function(){REX(Module._TRN_ChunkRendererDestroy(N))})}var P=(new Date).getTime(),
-S=e(function Q(){try{if(REX(Module._TRN_ChunkRendererRenderForTimePeriod(N,200,M)),Module.getValue(M,"i8"))Module.cleanupState.timeout=e(Q);else{var a=Module.GetCurrentCanvasData(!1);Object(f.b)("worker","Total Page Time ".concat((new Date).getTime()-P));r.reverse().forEach(function(a){a()});d(a)}}catch(R){r.reverse().forEach(function(a){a()}),h(R)}});Module.cleanupState={cleanupArr:r,timeout:S};r.push(function(){Module.cleanupState=null})}catch(T){r.reverse().forEach(function(a){a()}),h(T)}})};b.UpdatePassword=
-function(a,b){try{var c=Module.stackSave();var d=Module.GetDoc(a);return Module.PDFDocInitStdSecurityHandler(d,b)?(d in downloadDataMap&&REX(Module._TRN_PDFDocDownloaderInitialize(d,downloadDataMap[d].downloader)),{success:!0,pageDimensions:Module.GetPageDimensions(d)}):{success:!1}}finally{Module.stackRestore(c)}};b.InsertBlankPages=function(a,b,c,e){return new Promise(function(d,h){var f=[],m=Module.GetDoc(a);try{var l=Module.stackSave();f[f.length]=function(){Module.stackRestore(l)};for(var r=
-b.length-1;0<=r;--r){var q=Module.PDFDocGetPageIterator(m,b[r]),w=Module.PDFDocPageCreate(m,c,e);Module.PDFDocPageInsert(m,q,w)}var p=Module.postPagesUpdatedEvent(m,a);f.forEach(function(a){a()});d(p)}catch(E){f.forEach(function(a){a()}),h(E)}})};b.InsertPages=function(a,b,c,e,f,l){return new Promise(function(d,h){var m=[],t=Module.GetDoc(a);try{var q=Module.stackSave();m[m.length]=function(){Module.stackRestore(q)};if(b instanceof ArrayBuffer){var r=Module.CreateDoc(b);var w=Module.GetDoc(r);m[m.length]=
-function(){Module.DeleteDoc(r)}}else w=Module.GetDoc(b);for(var p=c.length,g=Module.PageSetCreate(),k=0;k<p;++k)Module.PageSetAddPage(g,c[k]);Module.PDFDocInsertPages(t,e,w,g,f);var u;l||(u=Module.postPagesUpdatedEvent(t,a));m.reverse().forEach(function(a){a()});d(u)}catch(v){m.reverse().forEach(function(a){a()}),h(v)}})};b.MovePages=function(a,b,c){return new Promise(function(d,e){var h=[],f=Module.GetDoc(a);try{var m=Module.stackSave();h[h.length]=function(){Module.stackRestore(m)};for(var l=b.length,
-r=Module.PageSetCreate(),q=0;q<l;++q)Module.PageSetAddPage(r,b[q]);Module.PDFDocMovePages(f,c,r);var p=Module.postPagesUpdatedEvent(f,a);h.forEach(function(a){a()});d(p)}catch(J){h.forEach(function(a){a()}),e(J)}})};b.RemovePages=function(a,b,c){return new Promise(function(d,e){var h=Module.GetDoc(a),f=[];try{var m=Module.stackSave();f[f.length]=function(){Module.stackRestore(m)};for(var l=b.length-1;0<=l;--l){var r=Module.PDFDocGetPageIterator(h,b[l]);Module.IteratorHasNext(r)&&Module.PDFDocPageRemove(h,
-r)}var q;c||(q=Module.postPagesUpdatedEvent(h,a));f.forEach(function(a){a()});d(q)}catch(B){f.forEach(function(a){a()}),e(B)}})};b.RotatePages=function(a,b,c){return new Promise(function(d,e){var f=Module.GetDoc(a),h=[];try{var m=Module.stackSave();h[h.length]=function(){Module.stackRestore(m)};var l=b.length,r=0,q=Module.PDFDocGetPageIterator(f,b[0]),p=[];h.push(function(){Module._TRN_IteratorDestroy(q)});for(var n=b[0];Module.IteratorHasNext(q)&&r<b[l-1];++n){if(n===b[r]){var y=Module.IteratorCurrent(q),
-g=(Module.PageGetRotation(y)+c)%4;Module.PageSetRotation(y,g);p.push(n);r++}Module.IteratorNext(q)}var k=Module.postPagesUpdatedEvent(f,a,p,!0);h.reverse().forEach(function(a){a()});d(k)}catch(u){h.reverse().forEach(function(a){a()}),e(u)}})};b.ExtractPages=function(a,b,c,e,f){return new Promise(function(d,h){var m=[];try{var l=Module.GetDoc(a),r=Module.stackSave();m[m.length]=function(){Module.stackRestore(r)};var q=function(a){m.reverse().forEach(function(a){a()});h(a)};Module.XFDFMerge(l,c,f);
-var p=Module.CreateEmptyDoc();m[m.length]=function(){Module.DeleteDoc(p)};var w=Module.InsertPages(p,a,b,1,!0).then(function(){return Module.SaveDoc(p,void 0,!0,!1,void 0,e)}).then(function(a){m.reverse().forEach(function(a){a()});return a})["catch"](q);d(w)}catch(E){q(E)}})};b.CropPages=function(a,b,c,e,f,l){return new Promise(function(d,h){var m=Module.GetDoc(a),t=[];try{var q=Module.stackSave();t[t.length]=function(){Module.stackRestore(q)};var r=b.length,p=0,w=Module.PDFDocGetPageIterator(m,b[0]);
-t.push(function(){Module._TRN_IteratorDestroy(w)});for(var g=[],k=b[0];Module.IteratorHasNext(w)&&p<b[r-1];++k){if(k===b[p]){var u=Module.IteratorCurrent(w),v=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetCropBox(u,v));var D=Module.PageGetRotation(u),C=Module.getValue(v,"double"),n=Module.getValue(v+8,"double"),K=Module.getValue(v+16,"double"),y=Module.getValue(v+24,"double");0===D%4?(Module.setValue(v,C+f,"double"),Module.setValue(v+8,n+e,"double"),Module.setValue(v+16,K-l,"double"),
-Module.setValue(v+24,y-c,"double")):1===D%4?(Module.setValue(v,C+c,"double"),Module.setValue(v+8,n+f,"double"),Module.setValue(v+16,K-e,"double"),Module.setValue(v+24,y-l,"double")):2===D%4?(Module.setValue(v,C+l,"double"),Module.setValue(v+8,n+c,"double"),Module.setValue(v+16,K-f,"double"),Module.setValue(v+24,y-e,"double")):3===D%4&&(Module.setValue(v,C+e,"double"),Module.setValue(v+8,n+l,"double"),Module.setValue(v+16,K-c,"double"),Module.setValue(v+24,y-f,"double"));Module.setValue(v+32,0,"double");
-REX(Module._TRN_PageSetBox(u,0,v));REX(Module._TRN_PageSetBox(u,1,v));g.push(k);p++}Module.IteratorNext(w)}var A=Module.postPagesUpdatedEvent(m,a,g,!0);t.reverse().forEach(function(a){a()});d(A)}catch(H){t.reverse().forEach(function(a){a()}),h(H)}})}})("undefined"===typeof self?this.Module:self.Module);this.loaded=!0;Module.initCb&&Module.initCb()}}})(self)}).call(this,c(8).clearImmediate,c(8).setImmediate)},function(a,e,c){(function(a){function e(a){"@babel/helpers - typeof";$jscomp.initSymbol();
-$jscomp.initSymbol();$jscomp.initSymbolIterator();return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(a)}var f=c(1),p="undefined"!==typeof window?window:self;p.global=p;(function(b){b.currentFileString="/current";var c=0,h=0,l={},n=null;Module.chunkMax=200;var m=function(a,b,c,
-v,d){var g=new XMLHttpRequest;return CancellablePromise(function(k,u){g.open("GET",a,!0);g.responseType="arraybuffer";g.onerror=function(){u("Network error occurred")};g.onload=function(){if(206===this.status&&g.response.byteLength===c){var a=new Int8Array(g.response);k(a)}else u("Download Failed")};var e=["bytes=",b,"-",b+c-1].join("");g.setRequestHeader("Range",e);d&&(g.withCredentials=d);v&&Object.keys(v).forEach(function(a){g.setRequestHeader(a,v[a])});g.send()},function(){g.abort()})},w=function(a){this.maxChunkNum=
-a;this.lruList=[];this.chunkMap={}};w.prototype={has:function(a){return a in this.chunkMap},insert:function(a,b){this.lruList.length>=this.maxChunkNum&&(delete this.chunkMap[this.lruList[0]],this.lruList.shift());this.lruList.push(b);this.chunkMap[b]=a},get:function(a){var b=this.lruList.lastIndexOf(a);0<=b&&this.lruList.splice(b,1);this.lruList.push(a);return this.chunkMap[a]}};var A=function(a){this.file=a;this.filePosition=0;this.fileLength=a.size;this.chunkSize=1048576;this.chunkCache=new w(8);
-this.reader=new FileReaderSync};A.prototype={read:function(a,b,c){c=this.filePosition+c<=this.fileLength?c:this.fileLength-this.filePosition;a=a.subarray(b,b+c);b=c;for(var g=this.filePosition%this.chunkSize,k=this.filePosition-g,u=0;0<c;){if(this.chunkCache.has(k))var d=this.chunkCache.get(k);else d=new Int8Array(this.reader.readAsArrayBuffer(this.file.slice(k,k+this.chunkSize))),this.chunkCache.insert(d,k);var e=d.length,f=g+c;f<=e?(a.set(d.subarray(g,f),u),this.filePosition+=c,c=0):(a.set(d.subarray(g),
-u),this.filePosition+=e-g,g=0,k=this.filePosition,c=f-e,u=b-c)}return b},seek:function(a){this.filePosition=a},close:function(){this.reader=this.file=null},getPos:function(){return this.filePosition},getTotalSize:function(){return this.fileLength}};var t=function(a){this.data=a;this.position=0;this.length=this.data.length};t.prototype={read:function(a,b,c){c=this.position+c<=this.length?c:this.length-this.position;a=a.subarray(b,b+c);b=this.data.subarray(this.position,this.position+c);a.set(b);this.position+=
-c;return c},write:function(a,b,c){c=this.position+c<=this.length?c:this.length-this.position;a=a.subarray(b,b+c);this.data.subarray(this.position,this.position+c).set(a);this.position+=c;return c},seek:function(a){this.position=a},close:function(){this.data=null},getPos:function(){return this.position},getTotalSize:function(){return this.length}};var x=function(a,b,c,v,d){"object"===e(a)?(this.lruList=a.lruList,this.chunkMap=a.chunkMap,this.length=a.length,this.url=a.url,this.customHeaders=a.customHeaders,
-this.withCredentials=a.withCredentials):(this.lruList=[],this.chunkMap={},this.chunkMap[b]=d,this.length=b,this.url=a,this.customHeaders=c,this.withCredentials=v)};x.prototype={lruUpdate:function(a){var b=this.lruList.lastIndexOf(a);0<=b&&this.lruList.splice(b,1);this.lruList.push(a)},getChunk:function(a){var b=this;if(this.chunkMap[a])this.lruUpdate(a);else{var g=Math.min(a+1048576,this.length)-1,c=new XMLHttpRequest;c.open("GET",this.url,!1);c.responseType="arraybuffer";c.setRequestHeader("Range",
-["bytes=",a,"-",g].join(""));this.withCredentials&&(c.withCredentials=this.withCredentials);this.customHeaders&&Object.keys(this.customHeaders).forEach(function(a){c.setRequestHeader(a,b.customHeaders[a])});c.send();if(200===c.status||206===c.status)this.writeChunk(new Int8Array(c.response),a);else throw Error("Failed to load data from");}return this.chunkMap[a]},hadChunk:function(a){return a in this.chunkMap},hasChunk:function(a){return this.chunkMap[a]},getCacheData:function(){return this.chunkMap[this.length]},
-getRequiredChunkOffsetArrays:function(a,b){var g={have:[],downloading:[],missing:[]};try{var k=Module.stackSave();var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DownloaderGetRequiredChunksSize(a,b,c));var d=Module.getValue(c,"i8*");if(d){var e=Module._malloc(4*d);REX(Module._TRN_DownloaderGetRequiredChunks(a,b,e,d));for(a=0;a<d;++a){var f=Module.getValue(e+4*a,"i8*");this.hasChunk(f)?g.have.push(f):this.hadChunk(f)?g.missing.push(f):g.downloading.push(f)}}}finally{e&&Module._free(e),
-Module.stackRestore(k)}return g},keepVisibleChunks:function(a,b){for(var g=b.length,k=Module.chunkMax/2,c=0,d=0;d<g;++d){var e=this.getRequiredChunkOffsetArrays(a,b[d]),f=e.have,h=f.length;c+=h;if(c>k){this.keepChunks(f.slice(0,h-c+k));break}this.keepChunks(e.have)}},getChunkAsync:function(a){var b=this,g=a+1048576,c=1048576;g>this.length&&(c-=g-this.length);return m(this.url,a,c,this.customHeaders,this.withCredentials).then(function(g){b.writeChunk(g,a)})},getChunks:function(a){for(var b=a.length,
-g=Array(b),c=0;c<b;++c)g[c]=this.getChunkAsync(a[c]);return CancellablePromise.all(g)},keepChunks:function(a){for(var b=a.length,g=0;g<b;++g)this.lruUpdate(a[g])},writeChunk:function(a,b,c){c=c||0;var g=this.chunkMap[b],k=a.length,d=this.lruList.length>=Module.chunkMax&&!g;1048576!==k||a.buffer.byteLength!==k?(d?(g=this.lruList.shift(),d=this.chunkMap[g],1048576>d.length&&(d=new Int8Array(1048576)),this.chunkMap[g]=null):d=g?this.chunkMap[b]:new Int8Array(1048576),d.subarray(c,c+k).set(a),a=d):d&&
-(g=this.lruList.shift(),this.chunkMap[g]=null);this.lruUpdate(b);this.chunkMap[b]=a}};var z=function(a){this.chunkStorage=a;this.position=0;this.length=this.chunkStorage.length};z.prototype={read:function(a,b,c){var g=this.position+c<=this.length,k=g?c:this.length-this.position;if(this.position<this.length){var d;for(d=0;d<k;){var e=this.position%1048576;var f=this.position-e;var u=k-d,h=a.subarray(b+d,b+d+u);if(this.chunkStorage.hadChunk(f))f=this.chunkStorage.getChunk(f).subarray(e,e+u),h.set(f),
-h=f.length,d+=h,this.position+=h;else for(this.position+=u;d<k;++d)h[d]=0}}if(!g){b+=k;if(c-=k)g=this.chunkStorage.getCacheData(),c>g.length&&(c=g.length),d=this.position-this.length,a=a.subarray(b,b+c),f=g.subarray(d,d+c),a.set(f);this.position+=c;return k+c}return k},write:function(a,b,c){var g=this.position+c<=this.length,k=this.position+c<=this.length?c:this.length-this.position,d=a.subarray(b,b+k),e=this.position%1048576;this.chunkStorage.writeChunk(d,this.position-e,e);this.position+=k;if(!g){d=
-b+k;if(c-=k)b=this.chunkStorage.getCacheData(),c>b.length&&(c=b.length),g=this.position-this.length,d=a.subarray(d,d+c),b.subarray(g,g+c).set(d);this.position+=c;return k+c}return k},seek:function(a){this.position=a},close:function(){this.chunkStorage=null},getPos:function(){return this.position},getTotalSize:function(){return this.length}};var q=function(a){this.docId=a;this.length=0;this.data=new Int8Array(8192);this.position=0};q.prototype={seek:function(a){this.position=a},close:function(){var a=
-new Int8Array(this.data.buffer.slice(0,this.length));Module.ChangeDocBackend(this.docId,{ptr:Module.GetDoc(this.docId),buffer:a});this.data=null},getPos:function(){return this.position},getTotalSize:function(){return this.length},read:function(a,b,c){var g=this.data.length;c=c+b<g?c:g-b;a=a.subarray(b,b+c);b=this.data.subarray(this.position,this.position+c);a.set(b);this.position+=c;return c},write:function(a,b,c){for(var g=this.position+c,k=this.data.length;g>k;){k=Math.max(k*(16777216<k?1.5:2),
-g);var d=new Int8Array(k);d.set(this.data.subarray(0,this.length),0);this.data=d}a=a.subarray(b,b+c);this.data.set(a,this.position);this.position+=c;this.position>this.length&&(this.length=this.position);return c}};var B={IsSink:function(a){return 66===(a.flags&255)},open:function(a){var b=a.path.slice(1);this.IsSink(a)?(a.provider=new q(b),Module.docs[b].sink=a.provider):a.provider=Module.docs[b].sink?new t(Module.docs[b].sink.data):Module.docs[b].chunkStorage?new z(Module.docs[b].chunkStorage):
-Module.docs[b].buffer?new t(Module.docs[b].buffer):new A(Module.docs[b].file)},close:function(a){a.provider.close()},read:function(a,b,c,d,e){return a.provider.read(b,c,d)},llseek:function(a,b,c){a=a.provider;1===c?b+=a.getPos():2===c&&(b=a.getTotalSize()+b);if(0>b)throw new FS.ErrnoError(p.ERRNO_CODES.EINVAL);a.seek(b);return b},write:function(a,b,c,d,e){return d?a.provider.write(b,c,d):0}};p.THROW=function(a){throw{type:"PDFWorkerError",message:a};};var J=function(a){return"Exception: \n\t Message: ".concat(b.GetJSStringFromCString(Module._TRN_GetMessage(a)),
-"\n\t Filename: ").concat(b.GetJSStringFromCString(Module._TRN_GetFileName(a)),"\n\t Function: ").concat(b.GetJSStringFromCString(Module._TRN_GetFunction(a)),"\n\t Linenumber: ").concat(b.GetJSStringFromCString(Module._TRN_GetLineNum(a)))};b.GetErrToString=J;p.REX=function(a){a&&THROW(J(a))};b.Initialize=function(a){var b=Module.stackSave();a=a?Module.allocate(Module.intArrayFromString(a),"i8",Module.ALLOC_STACK):0;REX(Module._TRN_PDFNetInitialize(a));Module.stackRestore(b)};b.GetDoc=function(a){if(a in
-Module.docs)return Module.docs[a].ptr;throw{type:"InvalidDocReference",message:"Unable to access Document id=".concat(a,". The document appears to be invalid or was deleted.")};};b.clearDocBackend=function(){null!==Module.cachePtr?(Module.hasBufOwnership&&Module._free(Module.cachePtr),Module.cachePtr=null):Module.docs[b.currentFileString]&&delete Module.docs[b.currentFileString]};b.MakeDev=function(a){if(!l[a]){var b=FS.makedev(3,5);FS.registerDevice(b,B);FS.mkdev(a,511,b);l[a]=!0}};b.CreateDocFileBackend=
-function(a,b){Module.MakeDev(b);var g=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.docs[b]={file:a};a=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreateFromFilePath(a,g));g=Module.getValue(g,"i8*");Module.docs[b].ptr=g};b.InsertImageIntoDoc=function(a,b,c){var g=[];try{var k=Module.ElementBuilderCreate();g.push(function(){Module.ElementBuilderDestroy(k)});var d=Module.ElementWriterCreate();g.push(function(){Module.ElementWriterDestroy(d)});if(c){var e=
-c.width;var f=c.height}else e=Module.ImageGetImageWidth(b),f=Module.ImageGetImageHeight(b),c=e/f,c>612/792?(e=612,f=parseInt(e/c,10)):(f=792,e=parseInt(f*c,10));var h=Module.ElementBuilderCreateImage(k,b,0,0,e,f),u=Module.PDFDocPageCreate(a,e,f);Module.ElementWriterBegin(d,u);Module.ElementWriterWritePlacedElement(d,h);Module.ElementWriterEnd(d);Module.PDFDocPagePushBack(a,u)}finally{g.reverse().forEach(function(a){a()})}};var E=function(a,b,c){"object"===e(a)?(this.m_pages=a.m_pages,this.m_has_named_dests=
-a.m_has_named_dests,this.m_finished_download=a.m_finished_download,this.m_has_outline=a.m_has_outline,this.m_current_page=a.m_current_page,this.m_id=a.m_id,this.size=a.size,this.timeout=a.timeout,this.eventPageArray=a.eventPageArray,this.requirePageCallbacks=a.requirePageCallbacks):(this.m_pages=[],this.m_has_outline=this.m_finished_download=this.m_has_named_dests=!1,this.m_current_page=1,this.m_id=c,this.size=a,this.timeout=null,this.eventPageArray=[],this.requirePageCallbacks={});this.downloadUserData=
-Module.createDownloadUserData(b,c)};E.prototype={getJSUrl:function(){return Module.extractDownloadUserData(this.downloadUserData).url},getDocId:function(){return Module.extractDownloadUserData(this.downloadUserData).docId},destroyUserData:function(){this.m_id in Module.withCredentials&&delete Module.withCredentials[this.m_id];this.m_id in Module.customHeadersMap&&delete Module.customHeadersMap[this.m_id];Module.destroyDownloadUserData(this.downloadUserData)}};b.createDownloadUserData=function(a,b){a=
-Module.allocate(Module.intArrayFromString(a),"i8",Module.ALLOC_NORMAL);var g=Module.allocate(8,"i8",Module.ALLOC_NORMAL);Module.setValue(g,a,"i8*");Module.setValue(g+4,parseInt(b,10),"i32");return this.downloadUserData=g};b.extractDownloadUserData=function(a){var g=Module.getValue(a,"i8*");g=b.GetJSStringFromCString(g);a=Module.getValue(a+4,"i32").toString();return{url:g,docId:a}};b.destroyDownloadUserData=function(a){Module._free(Module.getValue(a,"i8*"));Module._free(a)};p.downloadDataMap={};Module.customHeadersMap=
-{};Module.withCredentials={};b.GetDownloadData=function(a){if(a in downloadDataMap)return downloadDataMap[a]};b.DownloaderHint=function(a,b){var g=Module.GetDoc(a),k=downloadDataMap[g];b.currentPage&&(k.m_current_page=b.currentPage);if(b.visiblePages){var c=b.visiblePages;for(b=0;b<c.length;++b)++c[b];Object.keys(k.requirePageCallbacks).forEach(function(a){k.requirePageCallbacks.hasOwnProperty(a)&&c.push(parseInt(a,10))});(b=Module.docs[a].chunkStorage)&&b.keepVisibleChunks(k.downloader,c);a=c.length;
-var d=Module.allocate(4*a,"i8",Module.ALLOC_STACK);for(b=0;b<a;++b)Module.setValue(d+4*b,c[b],"i32");REX(Module._TRN_PDFDocDownloadPages(g,d,a,1,0))}};b.RequirePage=function(a,b){return new Promise(function(g,c){c=Module.GetDoc(a);var k=downloadDataMap[c];!k||k.m_finished_download||k.m_pages[b]?g():(b in k.requirePageCallbacks?k.requirePageCallbacks[b].push(g):k.requirePageCallbacks[b]=[g],g=Module.allocate(4,"i8",Module.ALLOC_STACK),Module.setValue(g,b,"i32"),Module._TRN_PDFDocDownloadPages(c,g,
-1,0,0))})};b.IsLinearizationValid=function(a){a=Module.GetDoc(a);if(a=downloadDataMap[a]){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DownloaderIsLinearizationValid(a.downloader,b));return 0!==Module.getValue(b,"i8")}return!1};b.ShouldRunRender=function(a,b){a=Module.GetDoc(a);return(a=downloadDataMap[a])?a.m_finished_download?!0:a.m_pages[b]:!0};b.postPagesDownloadedEvent=function(a,b,c){a={pageDimensions:Module.GetPageDimensionsContentChangedList(a,c),pageNumbers:c};Module.postEvent(b,
-"pagesDownloaded",a);return a};b.createCallbacksStruct=function(b){if(!n){var g=function(b){return function(g){var c=arguments;g in downloadDataMap?b.apply(this,c):a(function(){g in downloadDataMap&&b.apply(this,c)},0)}};n={downloadProc:Module.addFunction(function(a,b,g,c,k){c=Module.extractDownloadUserData(c);var d=c.docId;m(c.url,b,g,Module.customHeadersMap[d],Module.withCredentials[d]).then(function(c){d in Module.docs&&Module.docs[d].chunkStorage&&Module.docs[d].chunkStorage.writeChunk(c,b);Module._TRN_DownloadComplete(0,
-b,g,a)})},"viiiii"),notifyUpdatePage:Module.addFunction(g(function(a,b,g,c){var k=downloadDataMap[a];k.m_pages[b]=!0;var d=k.eventPageArray;if(b in k.requirePageCallbacks)for(g=k.requirePageCallbacks[b],c=0;c<g.length;++c)g[c]();k.timeout?d.push(b):(d=k.eventPageArray=[b],k.timeout=setTimeout(function(){Module.postPagesDownloadedEvent(a,k.m_id,d);k.timeout=null},100))}),"viiii"),notifyUpdateOutline:Module.addFunction(g(function(a,b){a=downloadDataMap[a];a.m_has_outline||(a.m_has_outline=!0,Module.postEvent(a.m_id,
-"bookmarksUpdated",{}))}),"vii"),notifyUpdateNamedDests:Module.addFunction(g(function(a,b){a=downloadDataMap[a];a.m_has_named_dests||(a.m_has_named_dests=!0)}),"vii"),notifyUpdateThumb:Module.addFunction(g(function(a,b){}),"viiii"),notifyFinishedDownload:Module.addFunction(g(function(a,b){a=downloadDataMap[a];a.m_finished_download||(a.m_finished_download=!0,Module.postEvent(a.m_id,"documentComplete",{}))}),"vii"),notifyDocumentError:Module.addFunction(function(a,b){},"viii"),getCurrentPage:Module.addFunction(function(a,
-b){return downloadDataMap[a].m_current_page},"iii")}}g=Module.allocate(40,"i8",Module.ALLOC_STACK);Module.setValue(g,n.downloadProc,"i8*");Module.setValue(g+4,b,"i8*");Module.setValue(g+8,n.notifyUpdatePage,"i8*");Module.setValue(g+12,n.notifyUpdateOutline,"i8*");Module.setValue(g+16,n.notifyUpdateNamedDests,"i8*");Module.setValue(g+20,n.notifyUpdateThumb,"i8*");Module.setValue(g+24,n.notifyFinishedDownload,"i8*");Module.setValue(g+28,n.notifyDocumentError,"i8*");Module.setValue(g+32,n.getCurrentPage,
-"i8*");Module.setValue(g+36,0,"i8*");return g};b.CreateDocDownloaderBackend=function(a,b,c){var g=a.url,k=a.size,d=a.customHeaders,e=a.withCredentials;d&&(Module.customHeadersMap[c]=d);e&&(Module.withCredentials[c]=e);var f=a.downloadData?new E(a.downloadData,g,c,d,e):new E(a.size,g,c,d,e);var h=Module.createCallbacksStruct(f.downloadUserData),u=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.MakeDev(c);a.chunkStorage?g=new x(a.chunkStorage):(a=new Int8Array(new ArrayBuffer(Math.ceil((a.size+1048576-
-1)/1048576/8))),g=new x(g,k,d,e,a));Module.docs[c]={chunkStorage:g};REX(Module._TRN_DownloaderCreate(h,k,Module.GetUStringFromJSString(c),u));f.downloader=Module.getValue(u,"i8*");if(k=Module._TRN_PDFDocCreateFromFilter(f.downloader,b))Module._TRN_FilterDestroy(f.downloader),REX(k);b=Module.getValue(b,"i8*");Module.docs[c].ptr=b;Module.PDFDocInitSecurityHandler(b)&&REX(Module._TRN_PDFDocDownloaderInitialize(b,f.downloader));downloadDataMap[b]=f};b.CreateDocBackend=function(a,k){var g=a.value,d=a.extension,
-f=a.type,h=Module.allocate(4,"i8",Module.ALLOC_STACK),m=Module.stackSave();try{if(g)if("ptr"===f)Module.docs[k]={ptr:g};else{var l="object"===e(g)&&g.url;f=d&&"pdf"!==d;if(l)b.CreateDocDownloaderBackend(g,h,k);else{var t=g instanceof ArrayBuffer;l=t?"buffer":"file";if(t&&(g=new Uint8Array(g),10485760>g.length+c&&!f)){c+=g.length;var q=g.length,r=Module._malloc(g.length);Module.HEAPU8.set(g,r);REX(Module._TRN_PDFDocCreateFromBuffer(r,q,h));var p=Module.getValue(h,"i8*");Module.docs[k]={ptr:p,bufPtr:r,
-bufPtrSize:q,ownership:!0};Module.docs[k].extension=d;return}Module.MakeDev(k);t={};t[l]=g;Module.docs[k]=t;if(f){if(a.pageSizes&&a.pageSizes.length)var n=a.pageSizes[0];else a.defaultPageSize&&(n=a.defaultPageSize);var w=Module.GetUStringFromJSString(k);REX(Module._TRN_PDFDocCreate(h));p=Module.getValue(h,"i8*");var x=Module.ImageCreateFromFile(p,w);Module.InsertImageIntoDoc(p,x,n)}else{var z=Module.allocate(Module.intArrayFromString(k),"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreateFromFilePath(z,
-h));p=Module.getValue(h,"i8*")}Module.docs[k].extension=d;Module.docs[k].ptr=p}}else REX(Module._TRN_PDFDocCreate(h)),p=Module.getValue(h,"i8*"),Module.docs[k]={ptr:p},Module.docs[k].extension=d}finally{Module.stackRestore(m)}};b.ChangeDocBackend=function(a,b){var g=Module.docs[a];g?(g.bufPtr&&g.ownership&&(Module._free(g.bufPtr),c-=g.bufPtrSize),delete Module.docs[a]):Object(f.d)("Trying to delete document ".concat(a," that does not exist."));Module.docs[a]=b};b.DeleteDoc=function(a){var b=Module.docs[a];
-b?(b.ptr&&(b.ptr in downloadDataMap&&(clearTimeout(downloadDataMap[b.ptr].timeout),downloadDataMap[b.ptr].destroyUserData(),delete downloadDataMap[b.ptr]),Module.PDFDocDestroy(b.ptr)),b.bufPtr&&b.ownership&&(Module._free(b.bufPtr),c-=b.bufPtrSize),delete Module.docs[a]):Object(f.d)("Trying to delete document ".concat(a," that does not exist."))};b.CreateDoc=function(a,c){if("id"===a.type)return Module.docPtrStringToIdMap[a.value];if(!c){do c=(++h).toString();while(c in Module.docs)}Module.hasBufOwnership=
-!0;b.CreateDocBackend(a,c);return c};b.CreateEmptyDoc=function(){var a=(++h).toString(),b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocCreate(b));b=Module.getValue(b,"i8*");Module.docs[a]={ptr:b};return a};b.PDFDocCreateFromLayoutEls=function(a){var b=new Uint8Array(a);a=Module._malloc(b.length);var c=Module.stackSave(),g=Module.allocate(4,"i8",Module.ALLOC_STACK);Module.HEAPU8.set(b,a);b=Module._TRN_PDFDocCreateFromLayoutEls(a,b.length,g);g=Module.getValue(g,"i8*");Module._free(a);
-Module.stackRestore(c);REX(b);return g};b.GetPageCount=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetPageCount(a,b));return Module.getValue(b,"i8*")};b.GetPage=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetPage(a,b,c));a=Module.getValue(c,"i8*");Module.PageIsValid(a)||THROW("Trying to access page that doesn't exist at index ".concat(b));return a};b.PageGetPageWidth=function(a){var b=Module.allocate(8,"i8",Module.ALLOC_STACK);
-REX(Module._TRN_PageGetPageWidth(a,1,b));return Module.getValue(b,"double")};b.PageGetPageHeight=function(a){var b=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetPageHeight(a,1,b));return Module.getValue(b,"double")};b.PageGetDefaultMatrix=function(a,b){var c=Module.allocate(48,"i8",Module.ALLOC_STACK);b||(b=0);REX(Module._TRN_PageGetDefaultMatrix(a,!0,1,b,c));return c};b.GetMatrixAsArray=function(a){for(var b=[],c=0;6>c;++c)b[c]=Module.getValue(a+8*c,"double");return b};b.PageGetPageInfo=
-function(a){var b=Module.allocate(48,"i8",Module.ALLOC_STACK),c=Module.allocate(8,"i8",Module.ALLOC_STACK),g=Module.allocate(8,"i8",Module.ALLOC_STACK),d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetPageInfo(a,!0,1,0,c,g,b,d));return{rotation:Module.getValue(d,"i8*"),width:Module.getValue(c,"double"),height:Module.getValue(g,"double"),matrix:Module.GetMatrixAsArray(b)}};b.GetUStringFromJSString=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK),g=2*(a.length+1),k=
-Module.allocate(g,"i8",b?Module.ALLOC_NORMAL:Module.ALLOC_STACK);Module.stringToUTF16(a,k,g);a=Module._TRN_UStringCreateFromString(k,c);b&&Module._free(k);REX(a);return Module.getValue(c,"i8*")};b.GetJSStringFromUString=function(a){var b=Module.allocate(4,"i16*",Module.ALLOC_STACK);REX(Module._TRN_UStringCStr(a,b));return Module.UTF16ToString(Module.getValue(b,"i16*"))};b.GetJSStringFromCString=function(a){return Module.UTF8ToString(a)};b.PDFNetSetResourceData=function(a){Module.res_ptr=Module._malloc(a.length);
-Module.HEAPU8.set(a,Module.res_ptr);REX(Module._TRN_PDFNetSetResourceData(Module.res_ptr,a.length));Module.res_ptr_size=a.length};b.PDFDocDestroy=function(a){REX(Module._TRN_PDFDocDestroy(a))};b.VectorGetSize=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_VectorGetSize(a,b));return Module.getValue(b,"i32")};b.VectorGetAt=function(a,b){var c=Module.allocate(1,"i8*",Module.ALLOC_STACK);REX(Module._TRN_VectorGetAt(a,b,c));return Module.getValue(c,"i8*")};b.VectorDestroy=
-function(a){REX(Module._TRN_VectorDestroy(a))};b.PDFRasterizerCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFRasterizerCreate(0,a));return Module.getValue(a,"i8*")};b.ExtractSeparationData=function(a){var b=Module.getValue(a,"i8*"),c=Module.getValue(a+4,"i32"),g=Module.getValue(a+8,"i8*"),d=Module.HEAPU8[a+12],e=Module.HEAPU8[a+13],f=Module.HEAPU8[a+14];a=Module.HEAPU8[a+15];var h=new Uint8Array(c);h.set(Module.HEAPU8.subarray(b,b+c));b=Module.GetJSStringFromUString(g);
-return{color:[d,e,f,a],data:h.buffer,name:b}};b.PDFRasterizerRasterizeSeparations=function(a,b,c,d,e,f,h){var g=Module.allocate(8,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFRasterizerRasterizeSeparations(a,b,c,d,e,f,h,g));a=Module.getValue(g,"i8*");b=Module.VectorGetSize(a);c=Array(b);for(d=0;d<b;++d)e=Module.VectorGetAt(a,d),c[d]=Module.ExtractSeparationData(e);Module.VectorDestroy(a);return c};b.PageGetRotation=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetRotation(a,
-b));return Module.getValue(b,"i8*")};b.PageGetId=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetSDFObj(a,b));b=Module.getValue(b,"i8*");a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetObjNum(b,a));a=Module.getValue(a,"i32");var c=Module.allocate(2,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetGenNum(b,c));c=Module.getValue(c,"i16");return"".concat(a,"-").concat(c)};b.PageSetRotation=function(a,b){REX(Module._TRN_PageSetRotation(a,b))};b.GetDefaultMatrixBox=
-function(a,b,c){var g=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetRotation(a,g));a=(Module.getValue(g,"i32")+c)%4;c=Module.allocate(48,"i8",Module.ALLOC_STACK);switch(a){case 0:return REX(Module._TRN_Matrix2DSet(c,1,0,0,-1,-b.x1,b.y2)),c;case 1:return REX(Module._TRN_Matrix2DSet(c,0,1,1,0,-b.y1,-b.x1)),c;case 2:return REX(Module._TRN_Matrix2DSet(c,-1,0,0,1,b.x2,-b.y1)),c;case 3:return REX(Module._TRN_Matrix2DSet(c,0,-1,-1,0,b.y2,b.x2)),c}throw Error("Yikes, we don't support that rotation type");
-};b.Matrix2DMultBBox=function(a,b){var c=Module.allocate(8,"i8",Module.ALLOC_STACK),g=Module.allocate(8,"i8",Module.ALLOC_STACK);Module.setValue(c,b.x1,"double");Module.setValue(g,b.y1,"double");REX(Module._TRN_Matrix2DMult(a,c,g));b.x1=Module.getValue(c,"double");b.y1=Module.getValue(g,"double");Module.setValue(c,b.x2,"double");Module.setValue(g,b.y2,"double");REX(Module._TRN_Matrix2DMult(a,c,g));b.x2=Module.getValue(c,"double");b.y2=Module.getValue(g,"double");return b};b.Matrix2DMult=function(a,
-b){var c=Module.allocate(8,"i8",Module.ALLOC_STACK),g=Module.allocate(8,"i8",Module.ALLOC_STACK);Module.setValue(c,b.x,"double");Module.setValue(g,b.y,"double");REX(Module._TRN_Matrix2DMult(a,c,g));b.x=Module.getValue(c,"double");b.y=Module.getValue(g,"double");return b};b.Matrix2DConcat=function(a,b){var c=Module.getValue(b,"double"),g=Module.getValue(b+8,"double"),d=Module.getValue(b+16,"double"),k=Module.getValue(b+24,"double"),e=Module.getValue(b+32,"double");b=Module.getValue(b+40,"double");
-REX(Module._TRN_Matrix2DConcat(a,c,g,d,k,e,b))};b.Matrix2DSet=function(a,b,c,d,e,f,h){REX(Module._TRN_Matrix2DSet(a,b,c,d,e,f,h))};b.IteratorHasNext=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_IteratorHasNext(a,b));return 0!==Module.getValue(b,"i8")};b.IteratorCurrent=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_IteratorCurrent(a,b));return Module.getValue(Module.getValue(b,"i8*"),"i8*")};b.IteratorNext=function(a){REX(Module._TRN_IteratorNext(a))};
-b.PageGetNumAnnots=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetNumAnnots(a,b));return Module.getValue(b,"i32")};b.PageGetAnnot=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetAnnot(a,b,c));return Module.getValue(c,"i8*")};b.PageAnnotRemove=function(a,b){REX(Module._TRN_PageAnnotRemoveByIndex(a,b))};b.AnnotGetType=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_AnnotGetType(a,b));return Module.getValue(b,
-"i32")};b.AnnotHasAppearance=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_AnnotGetAppearance(a,0,0,b));return 0!==Module.getValue(b,"i8*")};b.AnnotRefreshAppearance=function(a){REX(Module._TRN_AnnotRefreshAppearance(a))};b.ObjErase=function(a,b){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjEraseFromKey(a,b))};b.GetJSDoubleArrFromCore=function(a,b){for(var c=Array(b),g=0;g<b;++g)c[g]=Module.getValue(a,"double"),a+=8;return c};
-b.GetJSIntArrayFromCore=function(a,b){for(var c=Array(b),g=0;g<b;++g)c[g]=Module.getValue(a,"i32"),a+=4;return c};b.BookmarkIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkIsValid(a,b));return 0!==Module.getValue(b,"i8")};b.BookmarkGetNext=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetNext(a,b));return Module.getValue(b,"i8*")};b.BookmarkGetFirstChild=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);
-REX(Module._TRN_BookmarkGetFirstChild(a,b));return Module.getValue(b,"i8*")};b.BookmarkHasChildren=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkHasChildren(a,b));return 0!==Module.getValue(b,"i8")};b.BookmarkGetAction=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetAction(a,b));return Module.getValue(b,"i8*")};b.BookmarkGetTitle=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_BookmarkGetTitle(a,
-b));a=Module.getValue(b,"i8*");return Module.GetJSStringFromUString(a)};b.ActionIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionIsValid(a,b));return 0!==Module.getValue(b,"i8")};b.ActionGetType=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionGetType(a,b));return Module.getValue(b,"i32")};b.ActionGetDest=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ActionGetDest(a,b));return Module.getValue(b,
-"i8*")};b.DestinationIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationIsValid(a,b));return 0!==Module.getValue(b,"i8")};b.DestinationGetPage=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetPage(a,b));return Module.getValue(b,"i8*")};b.PageIsValid=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageIsValid(a,b));return 0!==Module.getValue(b,"i8")};b.PageGetIndex=function(a){var b=
-Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageGetIndex(a,b));return Module.getValue(b,"i32")};b.ObjGetAsPDFText=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetAsPDFText(a,b));a=Module.getValue(b,"i8*");return Module.GetJSStringFromUString(a)};b.ObjFindObj=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjFindObj(a,b,c));return Module.getValue(c,
-"i8*")};b.PDFDocGetFirstBookmark=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetFirstBookmark(a,b));return Module.getValue(b,"i8*")};b.DestinationGetExplicitDestObj=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetExplicitDestObj(a,b));return Module.getValue(b,"i8*")};b.DestinationGetFitType=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_DestinationGetFitType(a,b));return Module.getValue(b,
-"i32")};b.ObjIsNumber=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjIsNumber(a,b));return 0!==Module.getValue(b,"i8")};b.ObjGetNumber=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjGetNumber(a,b));return Module.getValue(b,"double")};b.PDFDocGetRoot=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetRoot(a,b));return Module.getValue(b,"i8*")};b.ObjPutName=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),
-"i8",Module.ALLOC_STACK);c=Module.allocate(Module.intArrayFromString(c),"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutName(a,b,c,d));return Module.getValue(d,"i8*")};b.ObjPutDict=function(a,b){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutDict(a,b,c));return Module.getValue(c,"i8*")};b.ObjPutString=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),
-"i8",Module.ALLOC_STACK);c=Module.allocate(Module.intArrayFromString(c),"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPutString(a,b,c,d));return Module.getValue(d,"i8*")};b.ObjPut=function(a,b,c){b=Module.allocate(Module.intArrayFromString(b),"i8",Module.ALLOC_STACK);var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ObjPut(a,b,c,d));return Module.getValue(d,"i8*")};b.ObjGetAt=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);
-REX(Module._TRN_ObjGetAt(a,b,c));return Module.getValue(c,"i8*")};b.Matrix2DInverse=function(a){var b=Module.allocate(48,"i8",Module.ALLOC_STACK);REX(Module._TRN_Matrix2DInverse(a,b));return b};b.PDFDocInitSecurityHandler=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocInitSecurityHandler(a,0,b));return 0!==Module.getValue(b,"i8")};b.PDFDocInitStdSecurityHandler=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocInitStdSecurityHandlerUString(a,
-Module.GetUStringFromJSString(b),c));return 0!==Module.getValue(c,"i8")};b.PDFDocInsertPages=function(a,b,c,d,e){REX(Module._TRN_PDFDocInsertPageSet(a,b,c,d,e?1:0,0))};b.PDFDocMovePages=function(a,b,c){REX(Module._TRN_PDFDocMovePageSet(a,b,a,c,0,0))};b.PDFDocGetPageIterator=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetPageIterator(a,b,c));return Module.getValue(c,"i8*")};b.PDFDocPageRemove=function(a,b){REX(Module._TRN_PDFDocPageRemove(a,b))};b.PDFDocPageCreate=
-function(a,b,c){var d=Module.allocate(40,"i8",Module.ALLOC_STACK);Module.setValue(d,0,"double");Module.setValue(d+8,0,"double");Module.setValue(d+16,b,"double");Module.setValue(d+24,c,"double");Module.setValue(d+32,0,"double");b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocPageCreate(a,d,b));return Module.getValue(b,"i8*")};b.PDFDocPageInsert=function(a,b,c){REX(Module._TRN_PDFDocPageInsert(a,b,c))};b.PageSetCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageSetCreate(a));
-return Module.getValue(a,"i8*")};b.PageSetCreateRange=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PageSetCreateRange(c,a,b));return Module.getValue(c,"i8*")};b.PageSetAddPage=function(a,b){REX(Module._TRN_PageSetAddPage(a,b))};b.ElementBuilderCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementBuilderCreate(a));return Module.getValue(a,"i8*")};b.ElementBuilderDestroy=function(a){REX(Module._TRN_ElementBuilderDestroy(a))};b.ElementBuilderCreateImage=
-function(a,b,c,d,e,f){var g=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementBuilderCreateImageScaled(a,b,c,d,e,f,g));return Module.getValue(g,"i8*")};b.ElementWriterCreate=function(){var a=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementWriterCreate(a));return Module.getValue(a,"i8*")};b.ElementWriterDestroy=function(a){REX(Module._TRN_ElementWriterDestroy(a))};b.ElementWriterBegin=function(a,b){REX(Module._TRN_ElementWriterBeginOnPage(a,b,1,1,1,0))};b.ElementWriterWritePlacedElement=
-function(a,b){REX(Module._TRN_ElementWriterWritePlacedElement(a,b))};b.ElementWriterEnd=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ElementWriterEnd(a,b))};b.ImageGetImageWidth=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageGetImageWidth(a,b));return Module.getValue(b,"i32")};b.ImageGetImageHeight=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageGetImageHeight(a,b));return Module.getValue(b,"i32")};
-b.ImageCreateFromMemory2=function(a,b,c){var d=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageCreateFromMemory2(a,b,c,0,d));return Module.getValue(d,"i8*")};b.ImageCreateFromFile=function(a,b){var c=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_ImageCreateFromFile(a,b,0,c));return Module.getValue(c,"i8*")};b.PDFDocPagePushBack=function(a,b){REX(Module._TRN_PDFDocPagePushBack(a,b))};b.PDFDocHasOC=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocHasOC(a,
-b));return 0!==Module.getValue(b,"i8")};b.PDFDocGetOCGConfig=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_PDFDocGetOCGConfig(a,b));return Module.getValue(b,"i8*")};b.OCGContextCreate=function(a){var b=Module.allocate(4,"i8",Module.ALLOC_STACK);REX(Module._TRN_OCGContextCreateFromConfig(a,b));return Module.getValue(b,"i8*")};b.UStringDestroy=function(a){REX(Module._TRN_UStringDestroy(a))};b.PDFDocFDFUpdate=function(a,b,c){if(c){for(var d=Object.keys(c),e=d.length,g=
-Module._malloc(8*e),f=0;f<e;++f){var h=8*f,k=d[f],l=Module.GetDoc(c[k]);k=Module.GetUStringFromJSString(k);Module.setValue(g+h,l,"i8*");Module.setValue(g+h+4,k,"i8*")}REX(Module._TRN_PDFDocFDFUpdateAppearanceDocs(a,b,g,e))}else REX(Module._TRN_PDFDocFDFUpdate(a,b))};b.FDFDocDestroy=function(a){REX(Module._TRN_FDFDocDestroy(a))}})(p.Module)}).call(this,c(8).setImmediate)},function(a,e,c){function f(a){"@babel/helpers - typeof";$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbolIterator();
-return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f(a)}(function(a){a.SetupPDFNetFunctions=function(c){Module._IB_=[];for(var e=function z(a){if("object"===f(a)&&null!==a)if("undefined"!==typeof a.byteLength){var b=Module._IB_.length;Module._IB_[b]=new Uint8Array(a);a={handle:b,
-isArrayBufferRef:!0}}else Object.keys(a).forEach(function(b){a.hasOwnProperty(b)&&(a[b]=z(a[b]))});return a},b=function q(a){"object"===f(a)&&null!==a&&(a.buffer?a=a.buffer.slice(a.byteOffset,a.byteOffset+a.length):a.isArrayBufferRef?a=Module._IB_[a.handle].buffer:Object.keys(a).forEach(function(b){a.hasOwnProperty(b)&&(a[b]=q(a[b]))}));return a},d=Module._TRN_EMSCreateSharedWorkerInstance(),h,l=Module._TRN_EMSWorkerInstanceGetFunctionIterator(d),n=function(a,c){return new Promise(function(f,h){a=
-e(a);var l=a.docId;l=l?Module.GetDoc(l):0;(l=Module.EMSCallSharedFunction(d,c,l))?h({type:"PDFWorkerError",message:Module.GetErrToString(l)}):(h=Module.EMSGetLastResponse(d),h=b(h),f(h))})};h=Module._TRN_EMSFunctionIteratorGetNextCommandName(l);)h=Module.GetJSStringFromCString(h),a.queue.onAsync(h,n);Module._TRN_EMSFunctionIteratorDestroy(l);if(Module._TRN_EMSCreatePDFNetWorkerInstance){var m={};l=function(a,b){c.on(a,b);m[a]=!0};Module.docPtrStringToIdMap={};var w=function(a){if(a in Module.docPtrStringToIdMap)return Module.docPtrStringToIdMap[a];
-throw Error("Couldn't find document ".concat(a));};a.queue.onAsync("PDFDoc.RequirePage",function(a){return Module.RequirePage(w(a.docId),a.pageNum)});l("pdfDocCreateFromBuffer",function(a){a=Module.CreateDoc({type:"array",value:a.buf});var b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});l("PDFDoc.destroy",function(a){a=w(a.auto_dealloc_obj);Module.DeleteDoc(a)});l("PDFDoc.saveMemoryBuffer",function(a){var b=w(a.doc);return Module.SaveHelper(Module.GetDoc(b),b,a.flags).slice(0)});
-l("pdfDocCreate",function(){var a=Module.CreateDoc({type:"new"}),b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});l("GetPDFDoc",function(a){a=a.docId;var b=Module.GetDoc(a).toString(16);Module.docPtrStringToIdMap[b]=a;return b});l("ExtractPDFNetLayersContext",function(a){var b=a.layers;a=Module.GetDoc(a.docId);var c=0;b?c=Module.EMSCreateUpdatedLayersContext(a,b):Module.PDFDocHasOC(a)&&(b=Module.PDFDocGetOCGConfig(a),c=Module.OCGContextCreate(b));return c.toString(16)});
-var A=Module._TRN_EMSCreatePDFNetWorkerInstance();l=Module._TRN_EMSWorkerInstanceGetFunctionIterator(A);for(n=function(a){return new Promise(function(c,d){a=e(a);var f=Module.EMSCallPDFNetFunction(A,a);f?d(Module.GetErrToString(f)):(d=Module.EMSGetLastResponse(A),d=b(d),c(d))})};h=Module._TRN_EMSFunctionIteratorGetNextCommandName(l);)if(h=Module.GetJSStringFromCString(h),!m[h])c.onAsync(h,n);Module._TRN_EMSFunctionIteratorDestroy(l)}}})(self)},function(a,e,c){a=c(7);var f=c.n(a),l=c(18),n=c(19),p=
-c(13),b=c(1),d=c(20);(function(a){var c=null;a.basePath="../";var e=function(){var c=a.pdfWorkerPath||"";a.workerBasePath&&(a.basePath=a.workerBasePath);var e=a.isFull,f=e?"full/":"lean/";a.useOptimizedWorker&&(f+=d.a);var h=a.wasmDisabled;Object(b.c)();a.overriddenPdfWorkerPath&&(c=a.overriddenPdfWorkerPath,a.basePath="../",!Object(p.b)()||h)&&(c="");a.basePath=a.externalPath?a.externalPath:a.basePath+"external/";Object(p.a)("".concat(c+f,"PDFNetC"),{"Wasm.wasm":e?1E7:4E6,"Wasm.js.mem":1E5,".js.mem":12E6,
-".mem":e?2E6:6E5},h)};a.EmscriptenPDFManager=function(){};a.EmscriptenPDFManager.prototype={OnInitialized:function(a){Module.loaded?a():(Module.initCb=function(){a()},Object(b.b)("worker","PDFNet is not initialized yet!"))},NewDoc:function(a,b){return new Promise(function(c,d){try{c(Module.loadDoc(a,b))}catch(z){d(z)}})},Initialize:function(b,c,d,f){b&&(Module.TOTAL_MEMORY=b);Module.memoryInitializerPrefixURL=c;Module.asmjsPrefix=d;a.basePath=f;e()},shouldRunRender:function(a){return Module.ShouldRunRender(a.docId,
-a.pageIndex+1)}};var h={setup:function(d){function e(d){var e=d.data,f=d.action;var g="GetCanvas"===f||"GetCanvasPartial"===f?q.shouldRunRender(e):!0;if(g){c=d;var h=d.asyncCallCapability;Object(b.b)("Memory","Worker running command: ".concat(f));n.actionMap[f](e,d).then(function(a){"BeginOperation"!==c.action&&(c=null);h.resolve(a)},function(a){c=null;h.reject(a)})}else a.deferredQueue.queue(d),p()}function h(a){a.asyncCallCapability=createPromiseCapability();c||n.length?n.queue(a):e(a);return a.asyncCallCapability.promise}
-function m(b){self.shouldResize&&q.Initialize(b.options.workerHeapSize,b.options.pdfResourcePath,b.options.pdfAsmPath,b.options.parentUrl);Module.chunkMax=b.options.chunkMax;if(b.array instanceof Uint8Array){var c=255===b.array[0];d.postMessageTransfers=c;"response"in new XMLHttpRequest?q.OnInitialized(function(){a.SetupPDFNetFunctions(d);g();d.send("test",{supportTypedArray:!0,supportTransfers:c})}):d.send("test",!1)}else d.send("test",!1)}function p(){l.a.setImmediate(function(){if((!c||"BeginOperation"!==
-c.action)&&n.length&&!c){var a=n.dequeue();e(a)}})}var q=new a.EmscriptenPDFManager,n,r=!1,w=!1;Module.workerMessageHandler=d;var g=function(){r?w||(d.send("workerLoaded",{}),w=!0):r=!0};q.OnInitialized(g);(function(){a.queue=n=new f.a({strategy:f.a.ArrayStrategy,comparator:function(a,b){return a.priority===b.priority?a.callbackId-b.callbackId:b.priority-a.priority}});a.deferredQueue=new f.a({strategy:f.a.ArrayStrategy,comparator:function(a,b){return a.priority===b.priority?a.callbackId-b.callbackId:
-b.priority-a.priority}});n.actionMap={};n.onAsync=function(a,b){d.onAsync(a,h);n.actionMap[a]=b}})();d.on("test",m);d.on("InitWorker",m);var k=function(a){c&&a(c)&&(Module.cancelCurrent(),c=null);n.removeAllMatching(a,function(a){a.asyncCallCapability.reject({type:"Cancelled",message:"Operation was cancelled due to a change affecting the loaded document."})})},u=function(a){k(function(b){return b.data&&b.data.docId===a})};d.on("UpdatePassword",function(a){return Module.UpdatePassword(a.docId,a.password)});
-d.on("LoadRes",function(a){Module.loadResources(a.array,a.l);return{}});d.on("DownloaderHint",function(a){Module.DownloaderHint(a.docId,a.hint)});d.on("IsLinearized",function(a){return Module.IsLinearizationValid(a.docId)});d.onNextAsync(p);n.onAsync("NewDoc",function(a){return q.NewDoc(a)});n.onAsync("GetCanvas",function(a){Object(b.b)("workerdetails","Run GetCanvas PageIdx: ".concat(a.pageIndex," Width: ").concat(a.width));Object(b.b)("Memory","loadCanvas with potential memory usage ".concat(a.width*
-a.height*8));return Module.loadCanvas(a.docId,a.pageIndex,a.width,a.height,a.rotation,null,a.layers,a.renderOptions)});n.onAsync("GetCanvasPartial",function(a){Object(b.b)("Memory","GetCanvasPartial with potential memory usage ".concat(a.width*a.height*8));return Module.loadCanvas(a.docId,a.pageIndex,a.width,a.height,a.rotation,a.bbox,a.layers,a.renderOptions)});n.onAsync("SaveDoc",function(a){return Module.SaveDoc(a.docId,a.xfdfString,a.finishedWithDocument,a.printDocument,a.flags,a.watermarks,a.apdocs)});
-n.onAsync("SaveDocFromFixedElements",function(a){return Module.SaveDocFromFixedElements(a.bytes,a.xfdfString,a.flags,a.watermarks)});n.onAsync("MergeXFDF",function(a){return Module.MergeXFDF(a.docId,a.xfdf,a.apdocs)});n.onAsync("InsertPages",function(a){return Module.InsertPages(a.docId,a.doc,a.pageArray,a.destPos,a.insertBookmarks,a.skipUpdateEvent)});n.onAsync("MovePages",function(a){return Module.MovePages(a.docId,a.pageArray,a.destPos)});n.onAsync("RemovePages",function(a){return Module.RemovePages(a.docId,
-a.pageArray,a.skipUpdateEvent)});n.onAsync("RotatePages",function(a){return Module.RotatePages(a.docId,a.pageArray,a.rotation)});n.onAsync("ExtractPages",function(a){return Module.ExtractPages(a.docId,a.pageArray,a.xfdfString,a.watermarks,a.apdocs)});n.onAsync("CropPages",function(a){return Module.CropPages(a.docId,a.pageArray,a.topMargin,a.botMargin,a.leftMargin,a.rightMargin)});n.onAsync("InsertBlankPages",function(a){return Module.InsertBlankPages(a.docId,a.pageArray,a.width,a.height)});n.onAsync("BeginOperation",
-function(){return Promise.resolve()});n.onAsync("RequirePage",function(a,b){return Module.RequirePage(a.docId,a.pageNum)});d.on("FinishOperation",function(){if(c&&"BeginOperation"===c.action)c=null,p();else throw{message:"Operation has not started."};});d.on("DeleteDocument",function(a){a=a.docId;u(a);Module.DeleteDoc(a)});d.on("GetCanvasProgressive",function(d){if(c&&c.callbackId===d.callbackId){Object(b.b)("worker","Progressive request in progress");var e=Module.GetCurrentCanvasData(!0)}else{if(n.find({priority:0,
-callbackId:d.callbackId}))throw Object(b.b)("worker","Progressive request Queued"),{type:"Queued",message:"Rendering has not started yet."};if(a.deferredQueue.find({priority:0,callbackId:d.callbackId}))throw Object(b.b)("worker","Progressive request Deferred"),{type:"Queued",message:"Rendering has not started yet."};}if(!e)throw Object(b.b)("worker","Progressive request invalid (render already complete)"),{type:"Unavailable",message:"Rendering is complete or was cancelled."};return e});d.on("actionCancel",
-function(d){c&&c.callbackId===d.callbackId?(Object(b.b)("workerdetails","Cancelled Current Operation"),Module.cancelCurrent()&&(c=null,p())):(Object(b.b)("workerdetails","Cancelled queued operation"),n.remove({priority:0,callbackId:d.callbackId}),a.deferredQueue.remove({priority:0,callbackId:d.callbackId}))})}};a.onmessage=function(c){if("init"===c.data.action){var d=c.data.shouldResize;a.shouldResize=d;a.isFull=c.data.isFull;a.wasmDisabled=!c.data.wasm;a.externalPath=c.data.externalPath;a.useOptimizedWorker=
-c.data.useOptimizedWorker;if(c=c.data.pdfWorkerPath)a.overriddenPdfWorkerPath=c;d||e();d=new n.a("worker_processor",self);Object(b.a)(d);h.setup(d)}}})("undefined"===typeof window?self:window)}]);}).call(this || window)

+ 0 - 33
public/lib/webviewer/core/pdf/WasmThread.js

@@ -1,33 +0,0 @@
-(function(){var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(c){var b=0;return function(){return b<c.length?{done:!1,value:c[b++]}:{done:!0}}};$jscomp.arrayIterator=function(c){return{next:$jscomp.arrayIteratorImpl(c)}};$jscomp.makeIterator=function(c){var b="undefined"!=typeof Symbol&&Symbol.iterator&&c[Symbol.iterator];return b?b.call(c):$jscomp.arrayIterator(c)};
-$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,b,l){c!=Array.prototype&&c!=Object.prototype&&(c[b]=l.value)};
-$jscomp.polyfill=function(c,b,l,g){if(b){l=$jscomp.global;c=c.split(".");for(g=0;g<c.length-1;g++){var a=c[g];a in l||(l[a]={});l=l[a]}c=c[c.length-1];g=l[c];b=b(g);b!=g&&null!=b&&$jscomp.defineProperty(l,c,{configurable:!0,writable:!0,value:b})}};$jscomp.FORCE_POLYFILL_PROMISE=!1;
-$jscomp.polyfill("Promise",function(c){function b(){this.batch_=null}function l(k){return k instanceof a?k:new a(function(a,b){a(k)})}if(c&&!$jscomp.FORCE_POLYFILL_PROMISE)return c;b.prototype.asyncExecute=function(k){null==this.batch_&&(this.batch_=[],this.asyncExecuteBatch_());this.batch_.push(k);return this};b.prototype.asyncExecuteBatch_=function(){var k=this;this.asyncExecuteFunction(function(){k.executeBatch_()})};var g=$jscomp.global.setTimeout;b.prototype.asyncExecuteFunction=function(k){g(k,
-0)};b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var a=0;a<k.length;++a){var b=k[a];k[a]=null;try{b()}catch(q){this.asyncThrow_(q)}}}this.batch_=null};b.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};var a=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];var a=this.createResolveAndReject_();try{k(a.resolve,a.reject)}catch(u){a.reject(u)}};a.prototype.createResolveAndReject_=
-function(){function a(a){return function(k){d||(d=!0,a.call(b,k))}}var b=this,d=!1;return{resolve:a(this.resolveTo_),reject:a(this.reject_)}};a.prototype.resolveTo_=function(k){if(k===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(k instanceof a)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var b=null!=k;break a;case "function":b=!0;break a;default:b=!1}b?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};a.prototype.resolveToNonPromiseObj_=function(a){var b=
-void 0;try{b=a.then}catch(u){this.reject_(u);return}"function"==typeof b?this.settleSameAsThenable_(b,a):this.fulfill_(a)};a.prototype.reject_=function(a){this.settle_(2,a)};a.prototype.fulfill_=function(a){this.settle_(1,a)};a.prototype.settle_=function(a,b){if(0!=this.state_)throw Error("Cannot settle("+a+", "+b+"): Promise already settled in state"+this.state_);this.state_=a;this.result_=b;this.executeOnSettledCallbacks_()};a.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var a=
-0;a<this.onSettledCallbacks_.length;++a)d.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};var d=new b;a.prototype.settleSameAsPromise_=function(a){var b=this.createResolveAndReject_();a.callWhenSettled_(b.resolve,b.reject)};a.prototype.settleSameAsThenable_=function(a,b){var d=this.createResolveAndReject_();try{a.call(b,d.resolve,d.reject)}catch(q){d.reject(q)}};a.prototype.then=function(b,d){function g(a,b){return"function"==typeof a?function(b){try{k(a(b))}catch(v){c(v)}}:
-b}var k,c,l=new a(function(a,b){k=a;c=b});this.callWhenSettled_(g(b,k),g(d,c));return l};a.prototype.catch=function(a){return this.then(void 0,a)};a.prototype.callWhenSettled_=function(a,b){function g(){switch(k.state_){case 1:a(k.result_);break;case 2:b(k.result_);break;default:throw Error("Unexpected state: "+k.state_);}}var k=this;null==this.onSettledCallbacks_?d.asyncExecute(g):this.onSettledCallbacks_.push(g)};a.resolve=l;a.reject=function(b){return new a(function(a,d){d(b)})};a.race=function(b){return new a(function(a,
-d){for(var g=$jscomp.makeIterator(b),k=g.next();!k.done;k=g.next())l(k.value).callWhenSettled_(a,d)})};a.all=function(b){var d=$jscomp.makeIterator(b),g=d.next();return g.done?l([]):new a(function(a,b){function k(b){return function(d){c[b]=d;x--;0==x&&a(c)}}var c=[],x=0;do c.push(void 0),x++,l(g.value).callWhenSettled_(k(c.length-1),b),g=d.next();while(!g.done)})};return a},"es6","es3");
-(function(c){function b(g){if(l[g])return l[g].exports;var a=l[g]={i:g,l:!1,exports:{}};c[g].call(a.exports,a,a.exports,b);a.l=!0;return a.exports}var l={};b.m=c;b.c=l;b.d=function(g,a,d){b.o(g,a)||Object.defineProperty(g,a,{enumerable:!0,get:d})};b.r=function(b){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(b,Symbol.toStringTag,{value:"Module"});Object.defineProperty(b,"__esModule",{value:!0})};b.t=function(g,a){a&1&&(g=b(g));if(a&8||a&4&&"object"===typeof g&&g&&g.__esModule)return g;
-var d=Object.create(null);b.r(d);Object.defineProperty(d,"default",{enumerable:!0,value:g});if(a&2&&"string"!=typeof g)for(var k in g)b.d(d,k,function(a){return g[a]}.bind(null,k));return d};b.n=function(g){var a=g&&g.__esModule?function(){return g["default"]}:function(){return g};b.d(a,"a",a);return a};b.o=function(b,a){return Object.prototype.hasOwnProperty.call(b,a)};b.p="/core";return b(b.s=1)})([function(c,b,l){(function(g){l.d(b,"b",function(){return p});l.d(b,"a",function(){return E});l.d(b,
-"c",function(){return r});l.d(b,"d",function(){return D});var a=l(4);l.n(a);var d=window,k=function(){return function(a,n){this.fsQ=this.fs_read_counter=0;this.needCallback=!1;this.fs_read_total=a;this.fsQ=n}}();d.AsyncFSHack={readingAsyncFS:0,readingCounter:0,readCalls:{}};var c=d.Module,u=0,q={},z=function(a){d.AsyncFSHack.readingAsyncFS=1;a in d.AsyncFSHack.readCalls||(d.AsyncFSHack.readCalls[a]=new k(d.AsyncFSHack.read_total,d.AsyncFSHack.q))},A=function(a){var n=d.AsyncFSHack.readCalls[a];++n.fs_read_counter;
-n.fs_read_counter>=n.fs_read_total&&(n.needCallback?c._finish_do_call_operation(n.fsQ):d.AsyncFSHack.readingAsyncFS=0,delete d.AsyncFSHack.readCalls[a])},C=function(a,n,b,h,f,e){this.lruList=[];this.chunkMap={};this.chunkReader={};this.chunkMap[n]=h;this.length=n;this.cacheDataSize=b;this.url=a;this.customHeaders=f;this.withCredentials=e;this.chunkSize=1048576};C.prototype={lruUpdate:function(a){var b=this.lruList.lastIndexOf(a);0<=b&&this.lruList.splice(b,1);this.lruList.push(a)},downloadChunk:function(a,
-b){var n=!1;a in this.chunkReader||(this.chunkReader[a]=[],n=!0);b&&this.chunkReader[a].push(b);if(n){b=Math.min(a+this.chunkSize,this.length)-1;var h=new XMLHttpRequest;h.open("GET",this.url,!0);h.responseType="arraybuffer";h.setRequestHeader("Range",["bytes=",a,"-",b].join(""));this.withCredentials&&(h.withCredentials=this.withCredentials);if(this.customHeaders)for(var f in this.customHeaders)h.setRequestHeader(f,this.customHeaders[f]);h.send();var e=this;h.onload=function(){if(200===h.status||
-206===h.status){var b=new Int8Array(h.response);e.writeChunk(b,a)}else window.parent.parentWarn("Failed to load data from"+e.url),b=new Int8Array(0);for(var n=e.chunkReader[a],f=0;f<n.length;f++)n[f](b);delete e.chunkReader[a]}}},hadChunk:function(a){return a in this.chunkMap},hasChunk:function(a){return this.chunkMap[a]},getCacheData:function(){return this.chunkMap[this.length]},updateCache:function(a){for(var b=0;b<a.length;b++){var t=a[b];this.hadChunk(t)&&(this.hasChunk(t)?this.lruUpdate(t):this.downloadChunk(t))}},
-wrapChunkRetrieval:function(a,b,d){this.downloadChunk(a,function(a){d(a,b)})},downloadChunks:function(a,b){for(var n=a.length,h=Array(n),f=0,e=function(a,e){h[e]=a;++f;f===n&&b(h)},m=0;m<n;++m)this.wrapChunkRetrieval(a[m][0],m,e)},readFromCache:function(a,b,d){var h=[],f=0,e=Math.floor(b/this.chunkSize)*this.chunkSize,m=b%this.chunkSize;b=this.chunkSize-m;b=b>d?d:b;this.chunkMap[e]?(m=this.chunkMap[e].subarray(m,m+b),a.set(m),this.lruUpdate(e)):this.hadChunk(e)?h.push([e,m,b,f]):(m=new Int8Array(b),
-a.set(m));for(d-=b;0<d;)f+=b,e+=this.chunkSize,b=this.chunkSize>d?d:this.chunkSize,this.chunkMap[e]?(m=this.chunkMap[e].subarray(0,b),a.set(m,f),this.lruUpdate(e)):this.hadChunk(e)?h.push([e,0,b,f]):(m=new Int8Array(b),a.set(m,f)),d-=b;return h},writeChunk:function(a,b,d){d=d||0;var h=this.chunkMap[b],f=a.length,e=this.lruList.length>=c.chunkMax&&!h;f!==this.chunkSize||a.buffer.byteLength!==f?(e?(h=this.lruList.shift(),e=this.chunkMap[h],e.length<this.chunkSize&&(e=new Int8Array(this.chunkSize)),
-this.chunkMap[h]=null):e=h?this.chunkMap[b]:new Int8Array(this.chunkSize),e.subarray(d,d+f).set(a),a=e):e&&(h=this.lruList.shift(),this.chunkMap[h]=null);this.lruUpdate(b);this.chunkMap[b]=a}};var B=function(a){this.chunkStorage=a;this.position=0;this.length=this.chunkStorage.length};B.prototype={read:function(a,b,c,h){var f=h+c<=this.length,e=f?c:this.length-h,m=d.AsyncFSHack.readingCounter.toString();if(0<e){z(m);var n=a.subarray(b,b+e);var g=this.chunkStorage.readFromCache(n,h,e);g.length?(d.AsyncFSHack.readCalls[m].needCallback=
-!0,this.chunkStorage.downloadChunks(g,function(a){for(var b=0;b<a.length;++b){var e=g[b],f=a[b].subarray(e[1],e[1]+e[2]);n.set(f,e[3])}A(m)})):f&&A(m);h+=e}else e=0;if(!f){z(m);b+=e;if(c-=e){f=this.chunkStorage.getCacheData();c>f.length&&(c=f.length);var t=h-this.length;c-=t;a=a.subarray(b,b+c);b=f.subarray(t,t+c);a.set(b)}g&&g.length||A(m);h+=c;e+=c}this.position=h;return e},write:function(a,b,d,h){var f=h+d<=this.length,e=h+d<=this.length?d:this.length-h;if(0<e){var m=a.subarray(b,b+e),c=h%1048576;
-this.chunkStorage.writeChunk(m,h-c,c);h+=e}else e=0;if(!f){m=b+e;if(d-=e)b=this.chunkStorage.getCacheData(),d>b.length&&(d=b.length),f=h-this.length,d-=f,m=a.subarray(m,m+d),b.subarray(f,f+d).set(m);h+=d;e+=d}this.position=h;return e},seek:function(a){this.position=a},close:function(){this.chunkStorage=null},getPos:function(){return this.position},getTotalSize:function(){return this.length+this.chunkStorage.cacheDataSize}};var w=function(a){this.file=a;this.filePosition=0;this.fileLength=a.size;this.readerPool=
-[]};w.prototype={readFromFile:function(a,b,d){var h=this.readerPool.length?this.readerPool.pop():new FileReader;var f=this;h.onload=function(){var a=new Int8Array(h.result);f.readerPool.push(h);d(a)};h.readAsArrayBuffer(this.file.slice(b,b+a))},read:function(a,b,c,h){c=h+c<=this.fileLength?c:this.fileLength-h;if(0<c){var f=d.AsyncFSHack.readingCounter.toString();z(f);var e=a.subarray(b,b+c);d.AsyncFSHack.readCalls[f].needCallback=!0;this.readFromFile(c,h,function(a){e.set(a);A(f)});this.filePosition=
-h+c}return c},seek:function(a){this.filePosition=a},close:function(){this.reader=this.file=null},getPos:function(){return this.filePosition},getTotalSize:function(){return this.fileLength}};var v={open:function(a){var b=a.path.slice(1);a.provider=c.docs[b].chunkStorage?new B(c.docs[b].chunkStorage):new w(c.docs[b])},close:function(a){a.provider.close()},read:function(a,b,d,h,f){return a.provider.read(b,d,h,f)},llseek:function(a,b,c){a=a.provider;1===c?b+=a.getPos():2===c&&(b=a.getTotalSize()+b);if(0>
-b)throw new d.FS.ErrnoError(g.ERRNO_CODES.EINVAL);a.seek(b);return b},write:function(a,b,d,c,f){return c?a.provider.write(b,d,c,f):0}},y=function(a){if(!q[a]){var b=d.FS.makedev(3,5);d.FS.registerDevice(b,v);d.FS.mkdev(a,511,b);q[a]=!0}},p=function(a,b,d,h){var f="docdev"+ ++u;y(f);var e=Math.ceil((b+1048576-1)/1048576/8),m=new Int8Array(new ArrayBuffer(e));a=new C(a,b,e,m,d,h);c.docs[f]={chunkStorage:a};return f},E=function(a){var b="docdev"+ ++u;y(b);c.docs[b]=a;return b},r=function(a){d.FS.unlink(a);
-c.docs[a]&&delete c.docs[a]},D=function(a){var b=Object.prototype.toString.call(a);return"object"===typeof a&&null!==a&&("[object File]"===b||"[object Blob]"===b)}}).call(this,l(3))},function(c,b,l){c.exports=l(2)},function(c,b,l){function g(a){"@babel/helpers - typeof";return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},g(a)}l.r(b);var a=l(0),
-d=window,k;d.Module.onRuntimeInitialized=function(){x=!0;q||(r.handleMessage({action:"workerLoaded",data:{}}),q=!0);r.sendTestResponse();d.PThread.receiveObjectTransfer=function(){var a=d.Module.GetNextResponseMessage();d.getThreadedWasmWorker().handleMessage(a);d.Module.PopNextResponseMessage()}};d.Module.locateFile=function(a){return k+a};d.Module.INITIAL_MEMORY=100663296;var x=!1,u=!1,q=!1,z=1,A=function f(a){if("object"===g(a)&&null!==a)if("undefined"!==typeof a.byteLength){var b="mainThreadArrayBuffer".concat(z);
-z++;a=new Uint8Array(a);d.FS.writeFile(b,a);a={handle:b,isArrayBufferRef:!0}}else for(b in a)a.hasOwnProperty(b)&&(a[b]=f(a[b]));return a},C=function e(a){if("object"===g(a)&&null!==a)if(a.isArrayBufferRef){var b=d.FS.readFile(a.handle,{encoding:"binary"});d.FS.unlink(a.handle);a=b.buffer}else if(a.constructor===Uint8Array)a=(new Uint8Array(a)).buffer;else for(b in a)a.hasOwnProperty(b)&&(a[b]=e(a[b]));return a},B=0,w={},v={},y={},p={},E=function(b){var e=b.action,c=b.data,f=b.callbackId;if("NewDoc"===
-e&&c)e=c.value,"url"===c.type?(e=Object(a.b)(e.url,e.size,e.customHeaders,e.withCredentials),v[f]=e,c.value.docDevId=e):Object(a.d)(e)&&(e=Object(a.a)(e),v[f]=e,c.value=e);else if("SaveDoc"!==e&&"SaveDocFromFixedElements"!==e||!c)"GetCanvas"===e&&c?(f=c.docId,f in p&&(e=p[f],e in d.Module.docs&&(e=d.Module.docs[e],"chunkStorage"in e&&(c=d.Module.GetRequiredChunkOffsetArray(f,c.pageIndex+1),c.length&&e.chunkStorage.updateCache(c))))):"DeleteDocument"===e&&c&&(c=c.docId,c in p&&(y[f]=c));else{e=c.docId;
-var g=c.finishedWithDocument,k="docFilePath".concat(B);w[f]={filePath:k,docId:e,finishedWithDocument:g};B++;c.filePath=k}d.Module.HandleMessage(A(b))},r;d.MainThreadLabel=!0;d.getThreadedWasmWorker=function(){return r};var D=function(a){window.parent.loadThreadedBackend(a,{"Wasm.wasm":1E7,"Wasm.js":15E4},window);this.eventListeners=[]};D.prototype={addEventListener:function(a,b){if("message"===a)this.eventListeners.push(b);else throw Error("event type ".concat(a," is not supported by WasmWorker."));
-},removeEventListener:function(a,b){"message"===a&&(this.eventListeners=this.eventListeners.filter(function(a){return a!==b}))},sendTestResponse:function(){x&&u&&(this.handleMessage({action:"test",data:{supportTypedArray:!0,supportTransfers:!0}}),this.postMessage=E)},postMessage:function(a){if("test"===a.action)u=!0,this.sendTestResponse();else throw Error("Need to do handshake first!");},handleMessage:function(b){var e=b.callbackId,c=b.data;if(e in v)c&&c.docId?p[c.docId]=v[e]:Object(a.c)(v[e]),
-delete v[e];else if(e in w){if(!b.hasOwnProperty("error")){var f=w[e].filePath,g=d.FS.readFile(f,{encoding:"binary"});c.fileData=g.buffer;c=w[e].docId;c in p&&(Object(a.c)(p[c]),delete p[c]);c&&!w[e].finishedWithDocument?p[c]=f:d.FS.unlink(f)}delete w[e]}else e in y&&(f=y[e],f in p&&(Object(a.c)(p[f]),delete p[f]),delete y[e]);b=C(b);window.parent.postMessage(b)},reset:function(){r=null;q=u=x=!1}};var t=function(){var a={},b=new Promise(function(b,c){a.resolve=b;a.reject=c});a.promise=b;return a}(),
-n=function m(a){"object"===g(a.data)&&"action"in a.data&&"workerLoaded"===a.data.action&&(t.resolve(r),r.removeEventListener("message",m))};window.addEventListener("message",function(a){a=a.data;"loadWasmWorker"===a.action?(k=a.workerFolder,r=new D("".concat(a.wasmSource,"PDFNetThreaded")),q||r.addEventListener("message",n)):r.postMessage(a)});d.getWasmWorkerPromise=function(){return t.promise}},function(c,b){b=function(){return this}();try{b=b||(new Function("return this"))()}catch(l){"object"===
-typeof window&&(b=window)}c.exports=b},function(c,b){window.Module={chunkMax:100,docs:{}}}]);}).call(this || window)

BIN
public/lib/webviewer/core/pdf/full/PDFNetC.br.js.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetC.gz.js.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetC.gz.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetCWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetCWasm.br.wasm


BIN
public/lib/webviewer/core/pdf/full/PDFNetCWasm.gz.js.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.br.wasm


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/pdf/full/PDFNetThreadedWasm.worker.js


BIN
public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.br.wasm


BIN
public/lib/webviewer/core/pdf/full/optimized/PDFNetCWasm.gz.js.mem


BIN
public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.br.wasm


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/pdf/full/optimized/PDFNetThreadedWasm.worker.js


+ 0 - 1
public/lib/webviewer/core/pdf/iframe.aspx

@@ -1 +0,0 @@
-<html><head><script type="module" src="./WasmThread.js"></script></head><body></body></html>

+ 0 - 1
public/lib/webviewer/core/pdf/iframe.html

@@ -1 +0,0 @@
-<html><head><script type="module" src="./WasmThread.js"></script></head><body></body></html>

BIN
public/lib/webviewer/core/pdf/lean/PDFNetC.br.js.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetC.gz.js.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetC.gz.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetCWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetCWasm.br.wasm


BIN
public/lib/webviewer/core/pdf/lean/PDFNetCWasm.gz.js.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.br.wasm


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 0
public/lib/webviewer/core/pdf/lean/PDFNetThreadedWasm.worker.js


BIN
public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.br.js.mem


BIN
public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.br.wasm


BIN
public/lib/webviewer/core/pdf/lean/optimized/PDFNetCWasm.gz.js.mem


Daži faili netika attēloti, jo izmaiņu fails ir pārāk liels