@pdftron/webviewer 11.8.0-20250826 → 11.8.0-20250828
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/core/webviewer-core.min.js +52 -52
- package/public/ui/chunks/chunk.25.js +1 -1
- package/public/ui/chunks/chunk.25.js.map +1 -1
- package/public/ui/chunks/chunk.36.js +1 -1
- package/public/ui/chunks/chunk.36.js.map +1 -1
- package/public/ui/webviewer-ui.min.js +2 -2
- package/public/ui/webviewer-ui.min.js.map +1 -1
package/package.json
CHANGED
|
@@ -2174,8 +2174,8 @@ function(z){return Object(ma.b)(this,void 0,Promise,function(){var ea,aa,na,ka;r
|
|
|
2174
2174
|
this.va().getBoundingClientRect().top,[4,this.Uba(z)];case 1:return aa=ka.aa(),setTimeout(function(){return Object(ma.b)(na,void 0,void 0,function(){var la;return Object(ma.d)(this,function(ra){switch(ra.label){case 0:return ea!==this.va().getBoundingClientRect().top?[3,2]:[4,this.tba(z)];case 1:return la=ra.aa().kJa,[2,z.Ge(la)];case 2:return[4,this.zY(z)];case 3:if(ra.aa())return[2];this.DG(z,aa);return[2]}})})},this.l4),[2]}})})};ha.prototype.hNa=function(z){return Object(ma.b)(this,void 0,void 0,
|
|
2175
2175
|
function(){var ea,aa,na=this;return Object(ma.d)(this,function(ka){switch(ka.label){case 0:return ea=this.va().getBoundingClientRect().bottom,[4,this.Uba(z)];case 1:return aa=ka.aa(),setTimeout(function(){return Object(ma.b)(na,void 0,void 0,function(){var la;return Object(ma.d)(this,function(ra){switch(ra.label){case 0:return ea!==this.va().getBoundingClientRect().bottom?[3,2]:[4,this.tba(z)];case 1:return la=ra.aa().yMa,[2,z.Ge(la)];case 2:return[4,this.zY(z)];case 3:if(ra.aa())return[2];this.DG(z,
|
|
2176
2176
|
aa);return[2]}})})},this.l4),[2]}})})};ha.prototype.Mx=function(z){this.Jca=z};ha.prototype.tSa=function(z,ea){return Object(ma.b)(this,void 0,Promise,function(){var aa,na,ka,la,ra,qa,sa,ta,va,za,Da;return Object(ma.d)(this,function(Ea){switch(Ea.label){case 0:if(!z||0===z.length)throw Error("No search results provided");if("string"!==typeof ea)throw Error("Text to replace with must be a string");aa=new y.a;aa.append(new y.k(ea));Ea.label=1;case 1:return Ea.Gc.push([1,,13,15]),[4,this.cC(!0)];case 2:return Ea.aa(),
|
|
2177
|
-
this.Ib().getDocument().trigger(h.a.Events.EDIT_OPERATION_STARTED
|
|
2178
|
-
ta.toLowerCase())throw Error("Search result position does not match with expected text. The document may have changed since the search was performed");return[4,this.u0(la,ea,{})];case 10:Ea.aa(),Ea.label=11;case 11:return ra++,[3,6];case 12:return[3,15];case 13:return this.EP(na),this.EP(ka),[4,this.cC(!1)];case 14:return Ea.aa(),this.Ib().getDocument().trigger(h.a.Events.EDIT_OPERATION_ENDED
|
|
2177
|
+
this.Ib().getDocument().trigger(h.a.Events.EDIT_OPERATION_STARTED,{}),[4,this.Gv(!1,!0)];case 3:return na=Ea.aa(),[4,this.Gv(!1,!0)];case 4:return ka=Ea.aa(),[4,this.createRange()];case 5:la=Ea.aa(),ra=0,qa=Object(ma.f)([],z,!0).reverse(),Ea.label=6;case 6:if(!(ra<qa.length))return[3,12];sa=qa[ra];ta=sa.resultStr||sa.result_str||"";va=this.nTa(sa);za=va.start;Da=va.end;return[4,na.Ge(za)];case 7:return Ea.aa(),[4,ka.Ge(Da)];case 8:return Ea.aa(),la.setStart(na),la.setEnd(ka),[4,this.Qi(la)];case 9:if(Ea.aa().getPlainText().toLowerCase()!==
|
|
2178
|
+
ta.toLowerCase())throw Error("Search result position does not match with expected text. The document may have changed since the search was performed");return[4,this.u0(la,ea,{})];case 10:Ea.aa(),Ea.label=11;case 11:return ra++,[3,6];case 12:return[3,15];case 13:return this.EP(na),this.EP(ka),[4,this.cC(!1)];case 14:return Ea.aa(),this.Ib().getDocument().trigger(h.a.Events.EDIT_OPERATION_ENDED,{}),[7];case 15:return[2]}})})};ha.Events={CURSOR_MOVED:"cursorMoved",PAGE_DISPLAYED:"pageDisplayed",PAGE_CURSORS_UPDATED:"pageCursorsUpdated",
|
|
2179
2179
|
REACHED_END_OF_DOCUMENT:"reachedEndOfDocument",OUTLINE_UPDATED:"outlineUpdated"};return ha}();Object(xa.a)(e);ua.a=e},function(xa,ua,e){function ma(ea,aa){ea="image/".concat("jpg"===ea?"jpeg":ea);return oa(ea,aa)}function oa(ea,aa){if(Object(n.h)()){"string"===typeof aa&&(aa=Object(w.b)(aa));var na=void 0;try{na=new Blob([aa],{type:ea})}catch(ka){window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.g0a||window.e0a,window.BlobBuilder&&(na=new window.BlobBuilder,na.append(aa),na=
|
|
2180
2180
|
na.getBlob(ea))}if(na)return URL.createObjectURL(na)}else return aa=btoa(aa),"data:".concat(ea,";base64,").concat(aa)}e.d(ua,"d",function(){return oa});e.d(ua,"c",function(){return ma});e.d(ua,"a",function(){return z});var pa=e(1);e.n(pa);var ja=e(2),ia=e(334),fa=e(492),w=e(114),y=e(17),h=e(90),f=e(136),b=e(54),n=e(37),r=e(101),a=e(277);xa=e(10);var x=Object(xa.a)(window),ba=window,ca=function(){return function(ea,aa){this.Da=ea;this.resources={};this.Xd=null;this.fc=aa}}(),ha=function(){function ea(aa,
|
|
2181
2181
|
na){this.Da=aa;this.Kga=na;this.Ij={};this.Zo={};this.Ji=!1;for(aa=0;aa<na.length;aa++)this.Zo[na[aa]]=!0}ea.prototype.xKa=function(){return 0===Object.keys(this.Zo).length};return ea}(),z=function(){function ea(aa){this.name=aa;this.db=null;this.T9="1";this.TL=this.Ji=!1}ea.prototype.open=function(aa,na){var ka=this,la=window.indexedDB.open(ka.name);if(Object(pa.isUndefined)(la))na("User declined to increase space");else{la.onsuccess=function(){ka.db=la.result;if(ka.db.BWa&&ka.db.version!==ka.T9){var qa=
|
|
@@ -2443,7 +2443,7 @@ b),2)<Math.pow(this.ba.ha.xX().radiusThreshold/n,2)};w.prototype.Yja=function(y,
|
|
|
2443
2443
|
n=b.pageNumber,r=this.ba.Qb(n);"pageContainer"===(null===(f=y.target.parentElement)||void 0===f?void 0:f.className)||"pageContainer"===y.target.className?this.Yja(b,r,n).then(function(){h.ba.ha.Ac({pageNumber:n})}):(this.ri=null,this.ba.ha.Ac({pageNumber:n}))};w.prototype.rL=function(y){this.ri=null;this.ba.ha.Ac({pageNumber:y})};w.prototype.np=function(y){var h=this;if(this.annotation){var f=this.ba.Qb(this.annotation.PageNumber);return this.Yja(y,f,this.annotation.PageNumber).then(function(b){var n=
|
|
2444
2444
|
b.x;b=b.y;h.ri&&(y.x=n,y.y=b)})}};return w}()},function(xa,ua,e){var ma=e(80),oa=e(186),pa=e(137),ja=e(72),ia=e(247);xa=function(){function fa(){this.Sh=[];this.ud=-1;this.yk=[];this.ye=Array(8);this.cK=null;this.Kd="";this.og=null;this.Yq()}fa.prototype.Yq=function(){this.ud=this.Lg=-1;this.yk=[]};fa.prototype.he=function(w){return this.ud===w.ud};fa.prototype.tw=function(){return this.Sh.length};fa.prototype.Tk=function(){return this.Sh.length?this.Sh[0]:new oa.a};fa.prototype.kA=function(){return this.Sh.length?
|
|
2445
2445
|
this.Sh[this.Sh.length-1]:new oa.a};fa.prototype.Wk=function(){return null==this.cK?new fa:this.cK};fa.prototype.so=function(w){void 0===w&&(w=!1);var y=new pa.a;y.Lx(this.ye);w&&y.normalize();return y};fa.prototype.CD=function(w){this.ud=w};fa.prototype.LM=function(){if(this.yk.length)return this.yk[0];var w=new ja.a,y=new ja.a,h=this.Tk(),f=this.kA(),b=Array(8),n=Array(8);h.Em(0,b);w.x=(b[0]+b[2]+b[4]+b[6])/4;w.y=(b[1]+b[3]+b[5]+b[7])/4;f.Em(f.Kq()-1,n);y.x=(n[0]+n[2]+n[4]+n[6])/4;y.y=(n[1]+n[3]+
|
|
2446
|
-
n[5]+n[7])/4;.01>Math.abs(w.x-y.x)&&.01>Math.abs(w.y-y.y)&&this.yk.push(0);w=Math.atan2(y.y-w.y,y.x-w.x);w*=180/3.1415926;0>w&&(w+=360);this.yk.push(w);return 0};fa.prototype.Fja=function(w){this.cK=w};fa.prototype.F7=function(w){0<this.Sh.length&&this.Sh[this.Sh.length-1].qVa(w);this.Sh.push(w);var y=Object(ia.b)(this.Kd),h=Array(8);w.Pj(h);if(y)for(y=0;8>y;y++)this.ye[y]=h[y];else this.Kd+=" ",ma.a.gK(this.ye,h,!1,0);this.Kd+=w.Kd};return fa}();ua.a=xa},function(xa,ua,e){function ma(){return"
|
|
2446
|
+
n[5]+n[7])/4;.01>Math.abs(w.x-y.x)&&.01>Math.abs(w.y-y.y)&&this.yk.push(0);w=Math.atan2(y.y-w.y,y.x-w.x);w*=180/3.1415926;0>w&&(w+=360);this.yk.push(w);return 0};fa.prototype.Fja=function(w){this.cK=w};fa.prototype.F7=function(w){0<this.Sh.length&&this.Sh[this.Sh.length-1].qVa(w);this.Sh.push(w);var y=Object(ia.b)(this.Kd),h=Array(8);w.Pj(h);if(y)for(y=0;8>y;y++)this.ye[y]=h[y];else this.Kd+=" ",ma.a.gK(this.ye,h,!1,0);this.Kd+=w.Kd};return fa}();ua.a=xa},function(xa,ua,e){function ma(){return"OC8yOC8yMDI1fDI3OTI1NmVhYTQ="}
|
|
2447
2447
|
function oa(){return"11.8.0"}e.d(ua,"b",function(){return oa});e.d(ua,"a",function(){return ma})},function(xa,ua,e){function ma(fa,w){return-1<" ".concat(fa.className," ").indexOf(" ".concat(w," "))}function oa(fa,w){return 1E-6>Math.abs(fa-w)}function pa(fa,w,y){w.Cwa=void 0;y.Cwa=void 0;(0,eval)("str")}function ja(fa,w,y){function h(){for(;fa();)if(100<Date.now()-f&&!y){f=Date.now();setTimeout(h,0);return}w()}var f=Date.now();h()}function ia(fa,w,y){fa.rS||(fa.rS={});fa.rS[w]||(fa.rS[w]=!0,fa.addEventListener(w,
|
|
2448
2448
|
y))}e.d(ua,"d",function(){return ma});e.d(ua,"c",function(){return oa});e.d(ua,"e",function(){return pa});e.d(ua,"b",function(){return ja});e.d(ua,"a",function(){return ia});xa=e(1);e.n(xa);e(2)},function(xa,ua,e){function ma(){return pa}function oa(ia){pa=ia}e.d(ua,"a",function(){return ja});e.d(ua,"c",function(){return oa});e.d(ua,"b",function(){return ma});var pa,ja="rtl"},function(xa,ua,e){(function(ma){function oa(ca){"function"!==typeof ca&&(ca=new Function("".concat(ca)));for(var ha=Array(arguments.length-
|
|
2449
2449
|
1),z=0;z<ha.length;z++)ha[z]=arguments[z+1];n[b]={rh:ca,args:ha};x(b);return b++}function pa(ca){delete n[ca]}function ja(ca){if(r)setTimeout(ja,0,ca);else{var ha=n[ca];if(ha){r=!0;try{var z=ha.rh,ea=ha.args;switch(ea.length){case 0:z();break;case 1:z(ea[0]);break;case 2:z(ea[0],ea[1]);break;case 3:z(ea[0],ea[1],ea[2]);break;default:z.apply(void 0,ea)}}finally{pa(ca),r=!1}}}}function ia(){x=function(ca){ma.wfa(function(){ja(ca)})}}function fa(){if(f.postMessage&&!f.importScripts){var ca=!0,ha=f.onmessage;
|
|
@@ -3925,55 +3925,55 @@ n.aa())?[4,this.Ua().Bh(y)]:[2];case 2:return f=n.aa(),b=this.Ua().ta(),[4,b.cB(
|
|
|
3925
3925
|
void 0,Promise,function(){var f,b;return Object(ma.d)(this,function(n){switch(n.label){case 0:return[4,this.VM(fa,w)];case 1:return(f=n.aa())?[4,this.Ua().Bh(fa)]:[2];case 2:return b=n.aa(),[4,h.call(this,b,w,y)];case 3:return n.aa(),[2]}})})};ia.prototype.wUa=function(fa,w){return Object(ma.b)(this,void 0,Promise,function(){var y;return Object(ma.d)(this,function(h){switch(h.label){case 0:return[4,this.dba(fa)];case 1:if(h.aa()===w)return[2];y=w?this.Hv:this.q0;return[4,this.Qga(fa,oa.d.HEADER,oa.c.FirstPageOnly,
|
|
3926
3926
|
y)];case 2:return h.aa(),[4,this.Qga(fa,oa.d.FOOTER,oa.c.FirstPageOnly,y)];case 3:return h.aa(),[4,this.Si().CG()];case 4:return h.aa(),[2]}})})};ia.prototype.Hba=function(){return Object(ma.b)(this,void 0,Promise,function(){var fa,w,y;return Object(ma.d)(this,function(h){switch(h.label){case 0:return fa=0,[4,this.Qg(fa,oa.d.HEADER,oa.c.OddPages)];case 1:return w=h.aa(),[4,this.Qg(fa,oa.d.HEADER,oa.c.EvenPages)];case 2:return y=h.aa(),[2,w!==y]}})})};ia.prototype.bYa=function(fa,w){return Object(ma.b)(this,
|
|
3927
3927
|
void 0,Promise,function(){var y;return Object(ma.d)(this,function(h){switch(h.label){case 0:return[4,this.Qg(w,fa,oa.c.OddPages)];case 1:return y=h.aa(),y===ja.f?[2]:[4,this.KH(w,fa,oa.c.EvenPages,y)];case 2:return h.aa(),[2]}})})};ia.prototype.uVa=function(fa){return Object(ma.b)(this,void 0,Promise,function(){var w,y,h,f,b,n,r,a,x,ba,ca,ha,z;return Object(ma.d)(this,function(ea){switch(ea.label){case 0:return[4,this.Hba()];case 1:if(ea.aa()===fa)return[2];ea.label=2;case 2:return ea.Gc.push([2,
|
|
3928
|
-
,18,19]),this.ba.getDocument().trigger(pa.a.Events.EDIT_OPERATION_STARTED),w=(ca={},ca[oa.d.HEADER]=ja.f,ca[oa.d.FOOTER]=ja.f,ca),y=(ha={},ha[oa.d.HEADER]=ja.f,ha[oa.d.FOOTER]=ja.f,ha),h=(z={},z[oa.d.HEADER]=ja.f,z[oa.d.FOOTER]=ja.f,z),[4,this.Ra().dN()];case 3:f=ea.aa(),b=0,ea.label=4;case 4:if(!(b<f))return[3,16];n=0;r=Object.values(oa.d);ea.label=5;case 5:if(!(n<r.length))return[3,15];a=r[n];return fa?[4,this.Qg(b,a,oa.c.OddPages)]:[3,12];case 6:return x=ea.aa(),y[a]===
|
|
3929
|
-
[3,9]:[4,this.KH(b,a,oa.c.OddPages,y[a])];case 7:return ea.aa(),[4,this.KH(b,a,oa.c.EvenPages,h[a])];case 8:return ea.aa(),[3,11];case 9:return w[a]=x,[4,this.vVa(b,a)];case 10:ba=ea.aa(),y[a]=ba.wNa,h[a]=ba.vNa,ea.label=11;case 11:return[3,14];case 12:return[4,this.bYa(a,b)];case 13:ea.aa(),ea.label=14;case 14:return n++,[3,5];case 15:return b++,[3,4];case 16:return[4,this.Si().CG()];case 17:return ea.aa(),[3,19];case 18:return this.ba.getDocument().trigger(pa.a.Events.EDIT_OPERATION_ENDED
|
|
3930
|
-
case 19:return[2]}})})};ia.prototype.vVa=function(fa,w){return Object(ma.b)(this,void 0,Promise,function(){var y,h;return Object(ma.d)(this,function(f){switch(f.label){case 0:return[4,this.Hv(fa,w,oa.c.OddPages)];case 1:return f.aa(),[4,this.Hv(fa,w,oa.c.EvenPages)];case 2:return f.aa(),[4,this.Qg(fa,w,oa.c.OddPages)];case 3:return y=f.aa(),[4,this.Qg(fa,w,oa.c.EvenPages)];case 4:return h=f.aa(),[2,{wNa:y,vNa:h}]}})})};return ia}();ua.a=xa},function(xa,ua,e){e.d(ua,
|
|
3931
|
-
function(){return function(pa,ja){this.y_=pa.pid;this.text=pa.text;this.level=pa.level;this.cursor=ja}}(),oa=function(){function pa(ja,ia){this.items=[];for(var fa=0;fa<ja.length;fa++){var w=ja[fa];this.items.push(new ma(w,ia.gA(w.cid)))}}pa.prototype.DFa=function(ja){var ia=this.items.find(function(fa){return fa.y_===ja});if(!ia)throw Error("OutlineItem with id ".concat(ja," not found"));return ia};pa.prototype.sFa=function(ja){var ia=this.items.findIndex(function(fa){return fa.y_===
|
|
3932
|
-
ia)throw Error("OutlineItem with id ".concat(ja," not found"));return ia};pa.prototype.SIa=function(ja,ia){try{if("update"===ja.type){var fa=ja.args,w=this.DFa(fa.P3a);w.text=fa.text;w.level=fa.level}else if("add"===ja.type){fa=ja.args;var y=ja.insertAfter,h=-1!==y?this.sFa(y):-1;this.items.splice(h+1,0,new ma(fa,ia.gA(fa.cid)))}else if("remove"===ja.type){var f=ja.args;this.items=this.items.filter(function(b){return!f.includes(b.y_)})}}catch(b){console.error("Error handling outline update:",
|
|
3933
|
-
return pa}()},function(xa,ua,e){var ma=e(0),oa=e(69),pa=e(332),ja=e(71),ia=e(221),fa=e(146),w=e(25),y=e(15),h=e(54),f=e(192),b;(function(a){a[a.INVALID=0]="INVALID";a[a.render=1]="render";a[a.setContent=2]="setContent";a[a.applyTextStyle=3]="applyTextStyle";a[a.applyParagraphStyle=4]="applyParagraphStyle";a[a.applyListStyle=5]="applyListStyle";a[a.setListIndent=6]="setListIndent";a[a.insertImage=7]="insertImage";a[a.deleteImage=8]="deleteImage";a[a.resizeImage=9]="resizeImage";a[a.groupIndent=
|
|
3934
|
-
"groupIndent";a[a.insertTable=11]="insertTable";a[a.insertRows=12]="insertRows";a[a.removeRows=13]="removeRows";a[a.insertCols=14]="insertCols";a[a.removeCols=15]="removeCols";a[a.moveContent=16]="moveContent";a[a.beginTrackingChanges=17]="beginTrackingChanges";a[a.endTrackingChanges=18]="endTrackingChanges";a[a.resolveTrackedChange=19]="resolveTrackedChange";a[a.clearCells=20]="clearCells";a[a.setCellStyle=21]="setCellStyle";a[a.undo=22]="undo";a[a.redo=23]="redo";a[a.replaceHeaderFooter=24]=
|
|
3935
|
-
a[a.getSectionStartEnd1=25]="getSectionStartEnd1";a[a.moveTableRange=26]="moveTableRange";a[a.setSectionMargins=27]="setSectionMargins";a[a.setColumnWidths=28]="setColumnWidths";a[a.mergeCells=29]="mergeCells";a[a.splitCell=30]="splitCell";a[a.setSectionColumns=31]="setSectionColumns";a[a.suspendRenderingUpdates=32]="suspendRenderingUpdates";a[a.setRowHeight=33]="setRowHeight";a[a.getSectionStartEnd2=34]="getSectionStartEnd2"})(b||(b={}));var n;(function(a){a[a.GetContent=1]=
|
|
3936
|
-
2]="GetContentTableRange";a[a.GetHeaderFooterId=3]="GetHeaderFooterId";a[a.GetSectionMargins=4]="GetSectionMargins";a[a.GetSectionIndex=5]="GetSectionIndex";a[a.GetNumberOfSections=6]="GetNumberOfSections";a[a.GetOutlineInfo=7]="GetOutlineInfo";a[a.GetSectionColumnWidths=8]="GetSectionColumnWidths";a[a.GetNamedStyles=9]="GetNamedStyles"})(n||(n={}));var r=function(){function a(x){this.HYa=x;this.IO=0}a.prototype.oQa=function(x){this.y7(x);return 2>this.IO?this.dQ():
|
|
3937
|
-
function(x){if(this.hr)if(x.id===this.hr.id&&x.pos[0]===this.hr.pos[0]&&x.pos[1]===this.hr.pos[1]){x=x.arg.elements[0];var ba=this.hr.arg.elements;x instanceof w.k&&ba[ba.length-1]instanceof w.k&&x.style===ba[ba.length-1].style?ba[ba.length-1].text+=x.text:this.hr.arg.elements.push(x)}else this.dQ(),this.y7(x);else this.hr=x,this.UZ=window.createPromiseCapability()};a.prototype.dQ=function(){return Object(ma.b)(this,void 0,Promise,function(){var x,ba,ca;return Object(ma.d)(this,
|
|
3938
|
-
Promise.resolve()];x=this.UZ;ba=this.hr;this.hr=this.UZ=void 0;this.IO++;ha.label=1;case 1:return ha.Gc.push([1,3,4,5]),[4,this.HYa(JSON.stringify(ba))];case 2:return ha.aa(),x.resolve(),[3,5];case 3:return ca=ha.aa(),x.reject(ca),[3,5];case 4:return this.RNa(),[7];case 5:return[2,x.promise]}})})};a.prototype.RNa=function(){this.IO--;2>this.IO&&this.dQ()};return a}();xa=function(){function a(x,ba){var ca=this;this.Yv=new TextEncoder;this.xG=
|
|
3939
|
-
x;this.yn=new Promise(function(ha,z){var ea=ba.l;ca.Kf=new pa.a("officeeditor",x);ca.pha=new r(function(na){return ca.Afa(na)});if("undefined"!==typeof Worker)try{x.addEventListener("message",function(na){if(na=na.data)switch(na.data){case "unsupported":z("License Key Error: No office editor addon");break;case "invalid":ea&&z("License Key Error: Invalid license key")}ba.workerHandlers&&ba.workerHandlers.workerLoadingProgress&&ba.workerHandlers.workerLoadingProgress(1);
|
|
3940
|
-
x.postMessage({action:"enable_debugging",data:{},priority:0});var aa=new TextEncoder;x.postMessage({action:"set_license_key",data:aa.encode(ea),priority:0});return}catch(na){z(new oa.a("The worker has been disabled. This may be the result of using an unsupported browser.","error.SupportError"))}z(new oa.a("Can't start a worker","error.WorkerInitError"))})}a.prototype.fVa=function(x){this.xG=x};a.prototype.Gv=function(){return this.ju("create_cursor",
|
|
3941
|
-
})};a.prototype.replaceContent=function(x,ba,ca,ha,z){void 0===ca&&(ca=!1);void 0===ha&&(ha=!0);void 0===z&&(z=null);return x.valid()?(x=Object(ma.a)(Object(ma.a)({id:b.setContent,pos:[x.start().Ka(),x.end().Ka()]},z&&{sel:[z.start().Ka(),z.end().Ka()]}),{cursorsToMove:ha?{end:[this.xG]}:{start:[this.xG]},arg:ba,groupContinuation:ca}),this.pha.oQa(x)):Promise.reject(Error("Invalid range"))};a.prototype.moveContent=function(x,
|
|
3942
|
-
ba.Ka()],cursorsToMove:{end:[this.xG]}},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.r0=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z;return Object(ma.d)(this,function(ea){switch(ea.label){case 0:return z={id:b.render,page:x+1,zoom:ba,internal:ca},ha&&(z.renderID=ha),[4,this.notify(JSON.stringify(z))];case 1:return ea.aa(),[2]}})})};a.prototype.insertTable=
|
|
3943
|
-
x.end().Ka()],arg:{rows:ba,cols:ca,width:ha,type:z}};return this.notify(JSON.stringify(x))};a.prototype.insertRows=function(x,ba,ca){return this.notify(JSON.stringify({id:b.insertRows,arg:{uid:x.Ud,rowNdx:ca,num:ba,srcRow:x.Dd()}}))};a.prototype.insertCols=function(x,ba,ca){return this.notify(JSON.stringify({id:b.insertCols,arg:{uid:x.Ud,srcCol:x.Zd(),num:ba,colNdx:ca}}))};a.prototype.removeRows=function(x,ba){return this.notify(JSON.stringify({id:b.removeRows,
|
|
3944
|
-
a.prototype.removeCols=function(x,ba){return this.notify(JSON.stringify({id:b.removeCols,arg:{uid:x.Ud,colNdx:[x.Zd(),ba.Zd()]}}))};a.prototype.clearTableRange=function(x){return this.notify(JSON.stringify({id:b.clearCells,arg:x}))};a.prototype.moveTableRange=function(x,ba){return this.notify(JSON.stringify({id:b.moveTableRange,pos:[ba.Ka()],arg:x}))};a.prototype.setSectionMargins=function(x,ba,ca){return this.notify(JSON.stringify({id:b.setSectionMargins,
|
|
3945
|
-
function(x,ba,ca){return this.notify(JSON.stringify({id:b.setSectionColumns,arg:{uid:x,cols:ba,page:ca}}))};a.prototype.cC=function(x){return this.notify(JSON.stringify({id:b.suspendRenderingUpdates,arg:x}))};a.prototype.setColumnWidths=function(x,ba){return this.notify(JSON.stringify({id:b.setColumnWidths,arg:{uid:x,width:ba}}))};a.prototype.setRowHeight=function(x,ba,ca){return this.notify(JSON.stringify({id:b.setRowHeight,arg:{uid:x,
|
|
3946
|
-
arg:x}))};a.prototype.splitCell=function(x){return this.notify(JSON.stringify({id:b.splitCell,arg:x}))};a.prototype.applyStyleOnTableRange=function(x,ba,ca){x.style=ba;x.isParagraphStyle=ca;return this.notify(JSON.stringify({id:b.setCellStyle,arg:x}))};a.prototype.insertImage=function(x,ba,ca,ha){x={id:b.insertImage,pos:[ba.start().Ka(),ba.end().Ka()],cursorsToMove:{end:[this.xG]},arg:{id:x,
|
|
3947
|
-
x).then(function(ba){return"id"in ba?ba.id:Promise.reject(Error(JSON.stringify(ba)))})};a.prototype.applyTextStyle=function(x,ba){return x.valid()?(x={id:b.applyTextStyle,pos:[x.start().Ka(),x.end().Ka()],arg:ba},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.setListIndent=function(x,ba){return this.notify(JSON.stringify({id:b.setListIndent,pos:[x.Ka()],
|
|
3948
|
-
a.prototype.resizeImage=function(x,ba,ca){return this.notify(JSON.stringify({id:b.resizeImage,uid:x.Lw,width:ba,height:ca}))};a.prototype.applyListStyle=function(x,ba){x={id:b.applyListStyle,pos:[x.start().Ka(),x.end().Ka()],arg:ba};return this.notify(JSON.stringify(x))};a.prototype.applyParagraphStyle=function(x,ba){return x instanceof ja.a?(x={id:b.applyParagraphStyle,pos:[x.start().Ka(),
|
|
3949
|
-
function(x,ba){return x instanceof ja.a?(x={id:b.groupIndent,pos:[x.start().Ka(),x.end().Ka()],arg:{indentBy:ba}},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.ru=function(x){for(var ba=[],ca=1;ca<arguments.length;ca++)ba[ca-1]=arguments[ca];return this.query.apply(this,Object(ma.f)([x],ba,!1)).then(function(ha){return"result"in ha?ha.result:
|
|
3950
|
-
throw Error("Content not returned");})};a.prototype.tEa=function(x){var ba=this,ca={id:n.GetContentTableRange,arg:x};return this.Uaa(function(){return ba.query(JSON.stringify(ca))})};a.prototype.Qg=function(x,ba,ca){return this.ru(JSON.stringify({id:n.GetHeaderFooterId,arg:{uid:x,header:ba===y.d.HEADER,type:ca}}))};a.prototype.Go=function(x){return this.ru(JSON.stringify({id:n.GetSectionMargins,
|
|
3951
|
-
arg:{uid:x}}))};a.prototype.YGa=function(x){return Object(ma.b)(this,void 0,Promise,function(){var ba;return Object(ma.d)(this,function(ca){switch(ca.label){case 0:return[4,x.Mb()];case 1:return ca.aa(),ba={id:n.GetSectionIndex,pos:[x.Ka()]},[2,this.ru(JSON.stringify(ba))]}})})};a.prototype.Bh=function(x){return this.ru(JSON.stringify({id:n.GetSectionIndex,page:x+1}))};a.prototype.dN=function(){return this.ru(JSON.stringify({id:n.GetNumberOfSections}))};
|
|
3952
|
-
this.Uaa(function(){return ba.query("get_content",x.start().Ka(),x.end().Ka())}):Promise.reject(Error("Invalid range"))};a.prototype.replaceHeaderFooter=function(x,ba,ca,ha,z){return this.notify(JSON.stringify({id:b.replaceHeaderFooter,arg:{uid:x,header:ba===y.d.HEADER,type:ca,id:ha,page:z}}))};a.prototype.HO=function(x){if(x)return this.Km("l",x);throw Error("Invalid cursor");};a.prototype.EP=function(x){if(x)return this.Km("d",x).then(function(){});
|
|
3953
|
-
function(x){return x?this.Km("L",x):Promise.reject(Error("Invalid cursor"))};a.prototype.BG=function(x){if(x)return this.Km("r",x);throw Error("Invalid cursor");};a.prototype.QZ=function(x){return x?this.Km("R",x):Promise.reject(Error("Invalid cursor"))};a.prototype.$m=function(x,ba){return Object(ma.b)(this,void 0,Promise,function(){return Object(ma.d)(this,function(ca){switch(ca.label){case 0:return x.valid()&&ba?[4,Promise.all([this.Km("C",x.start(),
|
|
3954
|
-
[2];case 2:return[2,Promise.reject(Error("Invalid range"))]}})})};a.prototype.SZ=function(x){return x?this.Km("W",x):Promise.reject(Error("Invalid cursor"))};a.prototype.RZ=function(x){return x?this.Km("w",x):Promise.reject(Error("Invalid cursor"))};a.prototype.fNa=function(x,ba){return this.Km("T",x,ba.Ud)};a.prototype.hfa=function(x,ba,ca){return Object(ma.b)(this,arguments,Promise,function(ha,z,ea,aa){var na;void 0===aa&&(aa=!1);return Object(ma.d)(this,
|
|
3955
|
-
[3,2]:[4,ha.Mb()];case 1:na=ka.aa();if(na.isEqual(z))return[2,Promise.resolve(ha)];ka.label=2;case 2:return[2,this.Km("c",ha,z.stream,ea,z.offset,1,ha.Vra?1:0,ha.Ura&&z.stream!==y.b.BODY?z.Na():void 0)]}})})};a.prototype.Km=function(x,ba){for(var ca=this,ha=[],z=2;z<arguments.length;z++)ha[z-2]=arguments[z];z=x+ba.Ka();for(var ea=0;ea<ha.length;ea++){var aa=ha[ea];aa instanceof ia.a?z+=" ".concat(aa.Ka()):void 0!==aa&&(z+=" ".concat(aa))}return this.ju("cursor_action",
|
|
3956
|
-
a.prototype.N0=function(x){var ba={};x&&(ba=this.Yv.encode(JSON.stringify(x)));return this.ju("save_document",ba)};a.prototype.Nea=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z,ea,aa,na;return Object(ma.d)(this,function(ka){switch(ka.label){case 0:z=function(la){la=window.atob(la);for(var ra=la.length,qa=new Uint8Array(ra),sa=0;sa<ra;sa++)qa[sa]=la.charCodeAt(sa);return qa.buffer},
|
|
3957
|
-
ha&&void 0!==ha&&ha.customHeaders?[4,fetch(ba,{headers:ha.customHeaders}).then(function(la){return la.arrayBuffer()})]:[3,4];case 3:return ea=ka.aa(),[3,6];case 4:return[4,fetch(ba).then(function(la){return la.arrayBuffer()})];case 5:ea=ka.aa(),ka.label=6;case 6:return[3,7];case 7:return ca?(na=this.Yv.encode(JSON.stringify(ca)),aa=new Uint8Array(8+na.length+ea.byteLength),aa[0]=239,aa[1]=190,aa[2]=173,aa[3]=
|
|
3958
|
-
4278190080)>>24,aa.set(na,8),aa.set(new Uint8Array(ea),8+na.length)):aa=new Uint8Array(ea),[2,this.ju(x,aa)]}})})};a.prototype.OW=function(){return this.ru("getDocAsBinaryStream",0,0)};a.prototype.NM=function(){return this.ru("get_doc_info")};a.prototype.Ox=function(x){var ba=this;x=this.Yv.encode(JSON.stringify(x));return this.ju("set_pagination_options",x).then(function(ca){ba.zH(ca)})};a.prototype.FX=
|
|
3959
|
-
this.query("get_tracked_changes")).then(function(ca){if("result"in ca)return ca.result.map(function(ha){return fa.c.vm(x,ha)}).filter(function(ha){return!!ha});throw Error("Track changes not returned");}):Promise.reject(Error("Invalid range"))};a.prototype.acceptTrackedChange=function(x){return this.notify(JSON.stringify({id:b.resolveTrackedChange,change:{id:x.id},action:"accept"}))};a.prototype.rejectTrackedChange=
|
|
3960
|
-
action:"reject"}))};a.prototype.fU=function(x){return x?this.notify(JSON.stringify({id:b.beginTrackingChanges,author:x})).then(function(){}):Promise.reject(Error("Invalid author"))};a.prototype.HE=function(){return this.notify(JSON.stringify({id:b.endTrackingChanges})).then(function(){})};a.prototype.wta=function(x,ba,ca,ha,z,ea){return Object(ma.b)(this,void 0,Promise,function(){var aa;return Object(ma.d)(this,
|
|
3961
|
-
aa),{K_:ba}));aa=ea===f.c.TRACKED_CHANGE?Object(ma.a)(Object(ma.a)({},aa),{trackedChange:z}):Object(ma.a)(Object(ma.a)({},aa),{parent:z});return[2,this.kja(JSON.stringify(aa)).then(function(na){return na.id})]})})};a.prototype.Vya=function(x){return Object(ma.b)(this,void 0,Promise,function(){var ba;return Object(ma.d)(this,function(){ba={id:x};return[2,this.kja(JSON.stringify(ba)).then(function(){})]})})};
|
|
3962
|
-
function(){return[2,this.ju("set_comment",this.Yv.encode(x))]})})};a.prototype.undo=function(x,ba){x={id:b.undo,cursorsToMove:{selectionStart:x.map(function(ca){return ca.Ka()}),selectionEnd:ba.map(function(ca){return ca.Ka()})}};return this.notify(JSON.stringify(x)).then(function(){})};a.prototype.redo=function(x,ba){x={id:b.redo,cursorsToMove:{selectionStart:x.map(function(ca){return ca.Ka()}),
|
|
3963
|
-
a.prototype.xZ=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z=this;return Object(ma.d)(this,function(){return[2,this.Nea(x,ba,ca,ha).then(function(ea){return z.zH(ea)})]})})};a.prototype.ll=function(x,ba){var ca,ha;if(null===(ha=null===(ca=ba.officeOptions)||void 0===ca?void 0:ca.formatOptions)||void 0===ha?0:ha.password)var z={password:ba.officeOptions.formatOptions.password};
|
|
3964
|
-
a.prototype.Afa=function(x){var ba=this;return this.ju("handle_message",this.Yv.encode(x)).then(function(ca){return ba.zH(ca)})};a.prototype.VWa=function(x){this.zH=x;this.Kf.replace("responseFromOnIdle",x)};a.prototype.query=function(x){for(var ba=[],ca=1;ca<arguments.length;ca++)ba[ca-1]=arguments[ca];ca=x;for(var ha=0;ha<ba.length;ha++)ca+=" ".concat(ba[ha]);
|
|
3965
|
-
function(ha){switch(ha.label){case 0:return ca=this.VMa++,this.D0[ca]=this.Kf.cc(x,ba,0).then(function(z){return z&&"error"in z?(console.error("Worker encountered error:",z.error.toString(),z),Promise.reject(Error(z.error))):z}),[4,Promise.all(this.D0.slice(0,ca))];case 1:return ha.aa(),[2,this.D0[ca]]}})})};return a}();ua.a=xa},function(xa,
|
|
3966
|
-
404===h.status?f="Your server does not have a MIME type set for extension ".concat(ja,". Please see https://docs.apryse.com/documentation/web/faq/mime-types/ for more information."):"xod"!==ia&&(pa.l.qR.includes(ia)?f="Failed to find Office worker files. This project is not set up to work with Office files.":pa.l.C3.includes(ia)&&(f="Failed to find PDF worker files. This project is not set up to work with PDF files."));
|
|
3967
|
-
typeof ja&&ja.startsWith("Error retrieving file:")&&ja.includes(".xod")?ma("xod",ia,ja).then(fa):"The worker has encountered an error"===ja?(ma("mem",ia,ja).then(fa),ma("wasm",ia,ja).then(fa)):"Couldn't fetch resource file."===ja?ma("res",ia,ja).then(fa):fa(ja)})}},function(xa,ua,e){function ma(oa,pa){if("string"!==typeof oa||!pa)return oa;pa=pa.substr(0,pa.lastIndexOf("/"));return/^(\/|%2F|[a-z0-9-]+:)/i.test(oa)?
|
|
3968
|
-
e(0),oa=e(69),pa=e(183),ja=e(126),ia=e(125);xa=function(){function fa(w,y){var h=this;this.EZa=function(){return Object(ma.b)(h,void 0,void 0,function(){var f;return Object(ma.d)(this,function(b){switch(b.label){case 0:return f="".concat(Object(ia.a)(),"SpreadsheetEditorModule.js"),this.worker=new Worker(f),this.yn=this.oda(),[4,this.yn];case 1:return b.aa(),[2]}})})};this.options=y;this.worker=w;this.yn=this.oda()}
|
|
3969
|
-
if("undefined"===typeof Worker)return h(new oa.a("Can't start a worker","error.WorkerInitError"));try{w.ema=w.TIa(f,y,h).bind(w),w.worker.addEventListener("message",w.ema),w.worker.postMessage({action:pa.a.STARTUP})}catch(b){y="\n The worker has been disabled. This may be the result of using an unsupported browser.\n Or an error occurred during initialization. ".concat(b.message,"\n "),
|
|
3970
|
-
b.data;if(!b)return f.mL(),h("Empty worker message received from spreadsheet editor.");switch(b.type){case pa.a.ENGINE_LOADED:f.xIa(w);break;case pa.a.INITIALIZE_LICENSE:f.CIa(b,y,h);f.mL();break;default:f.mL(),h("Unknown worker message [".concat(b.type,"] received from spreadsheet editor."))}}};fa.prototype.Zka=function(){this.mL();this.worker.terminate();this.worker=null};fa.prototype.xIa=function(w){this.worker.postMessage({action:pa.a.INITIALIZE_LICENSE,
|
|
3971
|
-
y,h){w.errorMessage?h("License check failure. An unknown error occurred. Please reach out to support with error: ".concat(w.errorMessage)):(w=w.data,[ja.b.VALID_LICENSE,ja.b.DEMO_LICENSE].includes(w)?y(this.worker):w===ja.b.INVALID_LICENSE?h("License check failure. Invalid license provided."):w===ja.b.NO_EDITING_PERMISSION?y(this.worker):h("License check failure. An unknown license status was received. Please reach out to support with status: [".concat(w,"]")))};
|
|
3972
|
-
this.ema)};return fa}();ua.a=xa},function(xa,ua,e){function ma(oa){oa=oa||{q4:0,P3:0,v3:0};return window.Proxy?new Proxy(oa,{set:function(pa,ja,ia){pa[ja]=ia;return!0}}):oa}e.d(ua,"a",function(){return ma})},function(xa,ua,e){function ma(pa){return pa===oa.f.E_0||pa===oa.f.E_180}e.d(ua,"a",function(){return ma});var oa=e(3)},function(xa,ua){xa=function(){function e(ma){this.dM=[ma]}e.prototype.writeStartElement=function(ma){ma=document.createElementNS("",
|
|
3973
|
-
function(ma,oa){this.top().setAttribute(ma,oa)};e.prototype.writeEndElement=function(){var ma=this.dM.pop();this.top().appendChild(ma)};e.prototype.writeString=function(ma){this.top().textContent=ma};e.prototype.top=function(){return this.dM[this.dM.length-1]};return e}();window.I0a=xa;ua.a=xa},function(xa,ua,e){function ma(ia,fa,w){fa=fa||1;for(var y,h,f,b,n=0;n<ia[0].length;n++){var r=ia[0][n];if(!n||r[0]<y)y=r[0];if(!n||r[1]<h)h=r[1];if(!n||
|
|
3974
|
-
Math.min(r,a),ba=x/2;if(0===x)return ia=[y,h],ia.zc=0,ia;n=new ja(void 0,oa);for(var ca=y;ca<f;ca+=x)for(var ha=h;ha<b;ha+=x)n.push(new pa(ca+ba,ha+ba,ba,ia));b=f=ba=0;x=ia[0];ca=0;ha=x.length;for(var z=ha-1;ca<ha;z=ca++){var ea=x[ca];z=x[z];var aa=ea[0]*z[1]-z[0]*ea[1];f+=(ea[0]+z[0])*aa;b+=(ea[1]+z[1])*aa;ba+=3*aa}f=0===ba?new pa(x[0][0],x[0][1],0,ia):new pa(f/ba,b/ba,0,ia);y=new pa(y+r/2,h+a/2,0,ia);y.d>f.d&&(f=y);for(y=n.length;n.length;)h=
|
|
3975
|
-
Math.round(1E4*h.d)/1E4,y)),h.max-f.d<=fa||(ba=h.h/2,n.push(new pa(h.x-ba,h.y-ba,ba,ia)),n.push(new pa(h.x+ba,h.y-ba,ba,ia)),n.push(new pa(h.x-ba,h.y+ba,ba,ia)),n.push(new pa(h.x+ba,h.y+ba,ba,ia)),y+=4);w&&(console.log("num probes: "+y),console.log("best distance: "+f.d));ia=[f.x,f.y];ia.zc=f.d;return ia}function oa(ia,fa){return fa.max-ia.max}function pa(ia,fa,w,y){this.x=ia;this.y=fa;this.h=w;w=!1;for(var h=Infinity,f=0;f<y.length;f++)for(var b=
|
|
3976
|
-
b[a];x[1]>fa!==a[1]>fa&&ia<(a[0]-x[0])*(fa-x[1])/(a[1]-x[1])+x[0]&&(w=!w);var ba=Math,ca=ba.min,ha=x[0];x=x[1];var z=a[0]-ha,ea=a[1]-x;if(0!==z||0!==ea){var aa=((ia-ha)*z+(fa-x)*ea)/(z*z+ea*ea);1<aa?(ha=a[0],x=a[1]):0<aa&&(ha+=z*aa,x+=ea*aa)}z=ia-ha;ea=fa-x;h=ca.call(ba,h,z*z+ea*ea)}this.d=0===h?0:(w?1:-1)*Math.sqrt(h);this.max=this.d+this.h*Math.SQRT2}var ja=e(602);ja.default&&(ja=ja.default);xa.exports=ma;xa.exports.default=ma},function(xa,ua,e){function ma(oa){return oa.match(/[a-fA-F0-9]{2}/g).map(function(pa){return parseInt(pa,
|
|
3928
|
+
,18,19]),this.ba.getDocument().trigger(pa.a.Events.EDIT_OPERATION_STARTED,{shouldChangeEditMode:!0}),w=(ca={},ca[oa.d.HEADER]=ja.f,ca[oa.d.FOOTER]=ja.f,ca),y=(ha={},ha[oa.d.HEADER]=ja.f,ha[oa.d.FOOTER]=ja.f,ha),h=(z={},z[oa.d.HEADER]=ja.f,z[oa.d.FOOTER]=ja.f,z),[4,this.Ra().dN()];case 3:f=ea.aa(),b=0,ea.label=4;case 4:if(!(b<f))return[3,16];n=0;r=Object.values(oa.d);ea.label=5;case 5:if(!(n<r.length))return[3,15];a=r[n];return fa?[4,this.Qg(b,a,oa.c.OddPages)]:[3,12];case 6:return x=ea.aa(),y[a]===
|
|
3929
|
+
ja.f||x!==w[a]&&x!==ja.f?[3,9]:[4,this.KH(b,a,oa.c.OddPages,y[a])];case 7:return ea.aa(),[4,this.KH(b,a,oa.c.EvenPages,h[a])];case 8:return ea.aa(),[3,11];case 9:return w[a]=x,[4,this.vVa(b,a)];case 10:ba=ea.aa(),y[a]=ba.wNa,h[a]=ba.vNa,ea.label=11;case 11:return[3,14];case 12:return[4,this.bYa(a,b)];case 13:ea.aa(),ea.label=14;case 14:return n++,[3,5];case 15:return b++,[3,4];case 16:return[4,this.Si().CG()];case 17:return ea.aa(),[3,19];case 18:return this.ba.getDocument().trigger(pa.a.Events.EDIT_OPERATION_ENDED,
|
|
3930
|
+
{shouldChangeEditMode:!0}),[7];case 19:return[2]}})})};ia.prototype.vVa=function(fa,w){return Object(ma.b)(this,void 0,Promise,function(){var y,h;return Object(ma.d)(this,function(f){switch(f.label){case 0:return[4,this.Hv(fa,w,oa.c.OddPages)];case 1:return f.aa(),[4,this.Hv(fa,w,oa.c.EvenPages)];case 2:return f.aa(),[4,this.Qg(fa,w,oa.c.OddPages)];case 3:return y=f.aa(),[4,this.Qg(fa,w,oa.c.EvenPages)];case 4:return h=f.aa(),[2,{wNa:y,vNa:h}]}})})};return ia}();ua.a=xa},function(xa,ua,e){e.d(ua,
|
|
3931
|
+
"a",function(){return oa});var ma=function(){return function(pa,ja){this.y_=pa.pid;this.text=pa.text;this.level=pa.level;this.cursor=ja}}(),oa=function(){function pa(ja,ia){this.items=[];for(var fa=0;fa<ja.length;fa++){var w=ja[fa];this.items.push(new ma(w,ia.gA(w.cid)))}}pa.prototype.DFa=function(ja){var ia=this.items.find(function(fa){return fa.y_===ja});if(!ia)throw Error("OutlineItem with id ".concat(ja," not found"));return ia};pa.prototype.sFa=function(ja){var ia=this.items.findIndex(function(fa){return fa.y_===
|
|
3932
|
+
ja});if(-1===ia)throw Error("OutlineItem with id ".concat(ja," not found"));return ia};pa.prototype.SIa=function(ja,ia){try{if("update"===ja.type){var fa=ja.args,w=this.DFa(fa.P3a);w.text=fa.text;w.level=fa.level}else if("add"===ja.type){fa=ja.args;var y=ja.insertAfter,h=-1!==y?this.sFa(y):-1;this.items.splice(h+1,0,new ma(fa,ia.gA(fa.cid)))}else if("remove"===ja.type){var f=ja.args;this.items=this.items.filter(function(b){return!f.includes(b.y_)})}}catch(b){console.error("Error handling outline update:",
|
|
3933
|
+
b)}};return pa}()},function(xa,ua,e){var ma=e(0),oa=e(69),pa=e(332),ja=e(71),ia=e(221),fa=e(146),w=e(25),y=e(15),h=e(54),f=e(192),b;(function(a){a[a.INVALID=0]="INVALID";a[a.render=1]="render";a[a.setContent=2]="setContent";a[a.applyTextStyle=3]="applyTextStyle";a[a.applyParagraphStyle=4]="applyParagraphStyle";a[a.applyListStyle=5]="applyListStyle";a[a.setListIndent=6]="setListIndent";a[a.insertImage=7]="insertImage";a[a.deleteImage=8]="deleteImage";a[a.resizeImage=9]="resizeImage";a[a.groupIndent=
|
|
3934
|
+
10]="groupIndent";a[a.insertTable=11]="insertTable";a[a.insertRows=12]="insertRows";a[a.removeRows=13]="removeRows";a[a.insertCols=14]="insertCols";a[a.removeCols=15]="removeCols";a[a.moveContent=16]="moveContent";a[a.beginTrackingChanges=17]="beginTrackingChanges";a[a.endTrackingChanges=18]="endTrackingChanges";a[a.resolveTrackedChange=19]="resolveTrackedChange";a[a.clearCells=20]="clearCells";a[a.setCellStyle=21]="setCellStyle";a[a.undo=22]="undo";a[a.redo=23]="redo";a[a.replaceHeaderFooter=24]=
|
|
3935
|
+
"replaceHeaderFooter";a[a.getSectionStartEnd1=25]="getSectionStartEnd1";a[a.moveTableRange=26]="moveTableRange";a[a.setSectionMargins=27]="setSectionMargins";a[a.setColumnWidths=28]="setColumnWidths";a[a.mergeCells=29]="mergeCells";a[a.splitCell=30]="splitCell";a[a.setSectionColumns=31]="setSectionColumns";a[a.suspendRenderingUpdates=32]="suspendRenderingUpdates";a[a.setRowHeight=33]="setRowHeight";a[a.getSectionStartEnd2=34]="getSectionStartEnd2"})(b||(b={}));var n;(function(a){a[a.GetContent=1]=
|
|
3936
|
+
"GetContent";a[a.GetContentTableRange=2]="GetContentTableRange";a[a.GetHeaderFooterId=3]="GetHeaderFooterId";a[a.GetSectionMargins=4]="GetSectionMargins";a[a.GetSectionIndex=5]="GetSectionIndex";a[a.GetNumberOfSections=6]="GetNumberOfSections";a[a.GetOutlineInfo=7]="GetOutlineInfo";a[a.GetSectionColumnWidths=8]="GetSectionColumnWidths";a[a.GetNamedStyles=9]="GetNamedStyles"})(n||(n={}));var r=function(){function a(x){this.HYa=x;this.IO=0}a.prototype.oQa=function(x){this.y7(x);return 2>this.IO?this.dQ():
|
|
3937
|
+
this.UZ.promise};a.prototype.y7=function(x){if(this.hr)if(x.id===this.hr.id&&x.pos[0]===this.hr.pos[0]&&x.pos[1]===this.hr.pos[1]){x=x.arg.elements[0];var ba=this.hr.arg.elements;x instanceof w.k&&ba[ba.length-1]instanceof w.k&&x.style===ba[ba.length-1].style?ba[ba.length-1].text+=x.text:this.hr.arg.elements.push(x)}else this.dQ(),this.y7(x);else this.hr=x,this.UZ=window.createPromiseCapability()};a.prototype.dQ=function(){return Object(ma.b)(this,void 0,Promise,function(){var x,ba,ca;return Object(ma.d)(this,
|
|
3938
|
+
function(ha){switch(ha.label){case 0:if(!this.hr)return[2,Promise.resolve()];x=this.UZ;ba=this.hr;this.hr=this.UZ=void 0;this.IO++;ha.label=1;case 1:return ha.Gc.push([1,3,4,5]),[4,this.HYa(JSON.stringify(ba))];case 2:return ha.aa(),x.resolve(),[3,5];case 3:return ca=ha.aa(),x.reject(ca),[3,5];case 4:return this.RNa(),[7];case 5:return[2,x.promise]}})})};a.prototype.RNa=function(){this.IO--;2>this.IO&&this.dQ()};return a}();xa=function(){function a(x,ba){var ca=this;this.Yv=new TextEncoder;this.xG=
|
|
3939
|
+
0;this.zH=function(){};this.VMa=0;this.D0=[];this.worker=x;this.yn=new Promise(function(ha,z){var ea=ba.l;ca.Kf=new pa.a("officeeditor",x);ca.pha=new r(function(na){return ca.Afa(na)});if("undefined"!==typeof Worker)try{x.addEventListener("message",function(na){if(na=na.data)switch(na.data){case "unsupported":z("License Key Error: No office editor addon");break;case "invalid":ea&&z("License Key Error: Invalid license key")}ba.workerHandlers&&ba.workerHandlers.workerLoadingProgress&&ba.workerHandlers.workerLoadingProgress(1);
|
|
3940
|
+
ha(x)},{once:!0});Object(h.a)("enableWorkerLogs")&&x.postMessage({action:"enable_debugging",data:{},priority:0});var aa=new TextEncoder;x.postMessage({action:"set_license_key",data:aa.encode(ea),priority:0});return}catch(na){z(new oa.a("The worker has been disabled. This may be the result of using an unsupported browser.","error.SupportError"))}z(new oa.a("Can't start a worker","error.WorkerInitError"))})}a.prototype.fVa=function(x){this.xG=x};a.prototype.Gv=function(){return this.ju("create_cursor",
|
|
3941
|
+
{}).then(function(x){if("id"in x)return x;throw Error("Cursor id not returned");})};a.prototype.replaceContent=function(x,ba,ca,ha,z){void 0===ca&&(ca=!1);void 0===ha&&(ha=!0);void 0===z&&(z=null);return x.valid()?(x=Object(ma.a)(Object(ma.a)({id:b.setContent,pos:[x.start().Ka(),x.end().Ka()]},z&&{sel:[z.start().Ka(),z.end().Ka()]}),{cursorsToMove:ha?{end:[this.xG]}:{start:[this.xG]},arg:ba,groupContinuation:ca}),this.pha.oQa(x)):Promise.reject(Error("Invalid range"))};a.prototype.moveContent=function(x,
|
|
3942
|
+
ba){return x.valid()?(x={id:b.moveContent,pos:[x.start().Ka(),x.end().Ka(),ba.Ka()],cursorsToMove:{end:[this.xG]}},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.r0=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z;return Object(ma.d)(this,function(ea){switch(ea.label){case 0:return z={id:b.render,page:x+1,zoom:ba,internal:ca},ha&&(z.renderID=ha),[4,this.notify(JSON.stringify(z))];case 1:return ea.aa(),[2]}})})};a.prototype.insertTable=
|
|
3943
|
+
function(x,ba,ca,ha,z){void 0===z&&(z="auto");x={id:b.insertTable,pos:[x.start().Ka(),x.end().Ka()],arg:{rows:ba,cols:ca,width:ha,type:z}};return this.notify(JSON.stringify(x))};a.prototype.insertRows=function(x,ba,ca){return this.notify(JSON.stringify({id:b.insertRows,arg:{uid:x.Ud,rowNdx:ca,num:ba,srcRow:x.Dd()}}))};a.prototype.insertCols=function(x,ba,ca){return this.notify(JSON.stringify({id:b.insertCols,arg:{uid:x.Ud,srcCol:x.Zd(),num:ba,colNdx:ca}}))};a.prototype.removeRows=function(x,ba){return this.notify(JSON.stringify({id:b.removeRows,
|
|
3944
|
+
arg:{uid:x.Ud,rowNdx:[x.Dd(),ba.Dd()]}}))};a.prototype.removeCols=function(x,ba){return this.notify(JSON.stringify({id:b.removeCols,arg:{uid:x.Ud,colNdx:[x.Zd(),ba.Zd()]}}))};a.prototype.clearTableRange=function(x){return this.notify(JSON.stringify({id:b.clearCells,arg:x}))};a.prototype.moveTableRange=function(x,ba){return this.notify(JSON.stringify({id:b.moveTableRange,pos:[ba.Ka()],arg:x}))};a.prototype.setSectionMargins=function(x,ba,ca){return this.notify(JSON.stringify({id:b.setSectionMargins,
|
|
3945
|
+
arg:{uid:x,margins:ba,page:ca}}))};a.prototype.setSectionColumns=function(x,ba,ca){return this.notify(JSON.stringify({id:b.setSectionColumns,arg:{uid:x,cols:ba,page:ca}}))};a.prototype.cC=function(x){return this.notify(JSON.stringify({id:b.suspendRenderingUpdates,arg:x}))};a.prototype.setColumnWidths=function(x,ba){return this.notify(JSON.stringify({id:b.setColumnWidths,arg:{uid:x,width:ba}}))};a.prototype.setRowHeight=function(x,ba,ca){return this.notify(JSON.stringify({id:b.setRowHeight,arg:{uid:x,
|
|
3946
|
+
rowNdx:ba,height:ca}}))};a.prototype.mergeCells=function(x){return this.notify(JSON.stringify({id:b.mergeCells,arg:x}))};a.prototype.splitCell=function(x){return this.notify(JSON.stringify({id:b.splitCell,arg:x}))};a.prototype.applyStyleOnTableRange=function(x,ba,ca){x.style=ba;x.isParagraphStyle=ca;return this.notify(JSON.stringify({id:b.setCellStyle,arg:x}))};a.prototype.insertImage=function(x,ba,ca,ha){x={id:b.insertImage,pos:[ba.start().Ka(),ba.end().Ka()],cursorsToMove:{end:[this.xG]},arg:{id:x,
|
|
3947
|
+
width:ca,height:ha}};return this.notify(JSON.stringify(x))};a.prototype.yT=function(x){return this.Nea("add_image",x).then(function(ba){return"id"in ba?ba.id:Promise.reject(Error(JSON.stringify(ba)))})};a.prototype.applyTextStyle=function(x,ba){return x.valid()?(x={id:b.applyTextStyle,pos:[x.start().Ka(),x.end().Ka()],arg:ba},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.setListIndent=function(x,ba){return this.notify(JSON.stringify({id:b.setListIndent,pos:[x.Ka()],
|
|
3948
|
+
arg:ba}))};a.prototype.deleteImage=function(x){return this.notify(JSON.stringify({id:b.deleteImage,uid:x.Lw}))};a.prototype.resizeImage=function(x,ba,ca){return this.notify(JSON.stringify({id:b.resizeImage,uid:x.Lw,width:ba,height:ca}))};a.prototype.applyListStyle=function(x,ba){x={id:b.applyListStyle,pos:[x.start().Ka(),x.end().Ka()],arg:ba};return this.notify(JSON.stringify(x))};a.prototype.applyParagraphStyle=function(x,ba){return x instanceof ja.a?(x={id:b.applyParagraphStyle,pos:[x.start().Ka(),
|
|
3949
|
+
x.end().Ka()],arg:ba},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.increaseGroupIndent=function(x,ba){return x instanceof ja.a?(x={id:b.groupIndent,pos:[x.start().Ka(),x.end().Ka()],arg:{indentBy:ba}},this.notify(JSON.stringify(x))):Promise.reject(Error("Invalid range"))};a.prototype.ru=function(x){for(var ba=[],ca=1;ca<arguments.length;ca++)ba[ca-1]=arguments[ca];return this.query.apply(this,Object(ma.f)([x],ba,!1)).then(function(ha){return"result"in ha?ha.result:
|
|
3950
|
+
Promise.reject(Error(JSON.stringify(ha)))})};a.prototype.Uaa=function(x){return x().then(function(ba){if("result"in ba)return w.a.Xb(ba.result);throw Error("Content not returned");})};a.prototype.tEa=function(x){var ba=this,ca={id:n.GetContentTableRange,arg:x};return this.Uaa(function(){return ba.query(JSON.stringify(ca))})};a.prototype.Qg=function(x,ba,ca){return this.ru(JSON.stringify({id:n.GetHeaderFooterId,arg:{uid:x,header:ba===y.d.HEADER,type:ca}}))};a.prototype.Go=function(x){return this.ru(JSON.stringify({id:n.GetSectionMargins,
|
|
3951
|
+
arg:{uid:x}}))};a.prototype.XGa=function(x){return this.ru(JSON.stringify({id:n.GetSectionColumnWidths,arg:{uid:x}}))};a.prototype.YGa=function(x){return Object(ma.b)(this,void 0,Promise,function(){var ba;return Object(ma.d)(this,function(ca){switch(ca.label){case 0:return[4,x.Mb()];case 1:return ca.aa(),ba={id:n.GetSectionIndex,pos:[x.Ka()]},[2,this.ru(JSON.stringify(ba))]}})})};a.prototype.Bh=function(x){return this.ru(JSON.stringify({id:n.GetSectionIndex,page:x+1}))};a.prototype.dN=function(){return this.ru(JSON.stringify({id:n.GetNumberOfSections}))};
|
|
3952
|
+
a.prototype.Qi=function(x){var ba=this;return x.valid()?this.Uaa(function(){return ba.query("get_content",x.start().Ka(),x.end().Ka())}):Promise.reject(Error("Invalid range"))};a.prototype.replaceHeaderFooter=function(x,ba,ca,ha,z){return this.notify(JSON.stringify({id:b.replaceHeaderFooter,arg:{uid:x,header:ba===y.d.HEADER,type:ca,id:ha,page:z}}))};a.prototype.HO=function(x){if(x)return this.Km("l",x);throw Error("Invalid cursor");};a.prototype.EP=function(x){if(x)return this.Km("d",x).then(function(){});
|
|
3953
|
+
throw Error("Invalid cursor");};a.prototype.OZ=function(x){return x?this.Km("L",x):Promise.reject(Error("Invalid cursor"))};a.prototype.BG=function(x){if(x)return this.Km("r",x);throw Error("Invalid cursor");};a.prototype.QZ=function(x){return x?this.Km("R",x):Promise.reject(Error("Invalid cursor"))};a.prototype.$m=function(x,ba){return Object(ma.b)(this,void 0,Promise,function(){return Object(ma.d)(this,function(ca){switch(ca.label){case 0:return x.valid()&&ba?[4,Promise.all([this.Km("C",x.start(),
|
|
3954
|
+
ba),this.Km("C",x.end(),ba)])]:[3,2];case 1:return ca.aa(),[2];case 2:return[2,Promise.reject(Error("Invalid range"))]}})})};a.prototype.SZ=function(x){return x?this.Km("W",x):Promise.reject(Error("Invalid cursor"))};a.prototype.RZ=function(x){return x?this.Km("w",x):Promise.reject(Error("Invalid cursor"))};a.prototype.fNa=function(x,ba){return this.Km("T",x,ba.Ud)};a.prototype.hfa=function(x,ba,ca){return Object(ma.b)(this,arguments,Promise,function(ha,z,ea,aa){var na;void 0===aa&&(aa=!1);return Object(ma.d)(this,
|
|
3955
|
+
function(ka){switch(ka.label){case 0:return aa?[3,2]:[4,ha.Mb()];case 1:na=ka.aa();if(na.isEqual(z))return[2,Promise.resolve(ha)];ka.label=2;case 2:return[2,this.Km("c",ha,z.stream,ea,z.offset,1,ha.Vra?1:0,ha.Ura&&z.stream!==y.b.BODY?z.Na():void 0)]}})})};a.prototype.Km=function(x,ba){for(var ca=this,ha=[],z=2;z<arguments.length;z++)ha[z-2]=arguments[z];z=x+ba.Ka();for(var ea=0;ea<ha.length;ea++){var aa=ha[ea];aa instanceof ia.a?z+=" ".concat(aa.Ka()):void 0!==aa&&(z+=" ".concat(aa))}return this.ju("cursor_action",
|
|
3956
|
+
this.Yv.encode(z)).then(function(na){return ca.zH(na)}).then(function(){return ba})};a.prototype.N0=function(x){var ba={};x&&(ba=this.Yv.encode(JSON.stringify(x)));return this.ju("save_document",ba)};a.prototype.Nea=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z,ea,aa,na;return Object(ma.d)(this,function(ka){switch(ka.label){case 0:z=function(la){la=window.atob(la);for(var ra=la.length,qa=new Uint8Array(ra),sa=0;sa<ra;sa++)qa[sa]=la.charCodeAt(sa);return qa.buffer},
|
|
3957
|
+
ka.label=1;case 1:return ka.Gc.push([1,2,,7]),ea=z(ba),[3,7];case 2:return ka.aa(),null!==ha&&void 0!==ha&&ha.customHeaders?[4,fetch(ba,{headers:ha.customHeaders}).then(function(la){return la.arrayBuffer()})]:[3,4];case 3:return ea=ka.aa(),[3,6];case 4:return[4,fetch(ba).then(function(la){return la.arrayBuffer()})];case 5:ea=ka.aa(),ka.label=6;case 6:return[3,7];case 7:return ca?(na=this.Yv.encode(JSON.stringify(ca)),aa=new Uint8Array(8+na.length+ea.byteLength),aa[0]=239,aa[1]=190,aa[2]=173,aa[3]=
|
|
3958
|
+
222,aa[4]=na.length&255,aa[5]=(na.length&65280)>>8,aa[6]=(na.length&16711680)>>16,aa[7]=(na.length&4278190080)>>24,aa.set(na,8),aa.set(new Uint8Array(ea),8+na.length)):aa=new Uint8Array(ea),[2,this.ju(x,aa)]}})})};a.prototype.OW=function(){return this.ru("getDocAsBinaryStream",0,0)};a.prototype.NM=function(){return this.ru("get_doc_info")};a.prototype.Ox=function(x){var ba=this;x=this.Yv.encode(JSON.stringify(x));return this.ju("set_pagination_options",x).then(function(ca){ba.zH(ca)})};a.prototype.FX=
|
|
3959
|
+
function(x,ba){return!ba||ba.valid()?(ba?this.query("get_tracked_changes",ba.start().Ka(),ba.end().Ka()):this.query("get_tracked_changes")).then(function(ca){if("result"in ca)return ca.result.map(function(ha){return fa.c.vm(x,ha)}).filter(function(ha){return!!ha});throw Error("Track changes not returned");}):Promise.reject(Error("Invalid range"))};a.prototype.acceptTrackedChange=function(x){return this.notify(JSON.stringify({id:b.resolveTrackedChange,change:{id:x.id},action:"accept"}))};a.prototype.rejectTrackedChange=
|
|
3960
|
+
function(x){return this.notify(JSON.stringify({id:b.resolveTrackedChange,change:{id:x.id},action:"reject"}))};a.prototype.fU=function(x){return x?this.notify(JSON.stringify({id:b.beginTrackingChanges,author:x})).then(function(){}):Promise.reject(Error("Invalid author"))};a.prototype.HE=function(){return this.notify(JSON.stringify({id:b.endTrackingChanges})).then(function(){})};a.prototype.wta=function(x,ba,ca,ha,z,ea){return Object(ma.b)(this,void 0,Promise,function(){var aa;return Object(ma.d)(this,
|
|
3961
|
+
function(){aa={qv:x,status:ca===f.d.RESOLVED,date:ha};0!==ba.length&&(aa=Object(ma.a)(Object(ma.a)({},aa),{K_:ba}));aa=ea===f.c.TRACKED_CHANGE?Object(ma.a)(Object(ma.a)({},aa),{trackedChange:z}):Object(ma.a)(Object(ma.a)({},aa),{parent:z});return[2,this.kja(JSON.stringify(aa)).then(function(na){return na.id})]})})};a.prototype.Vya=function(x){return Object(ma.b)(this,void 0,Promise,function(){var ba;return Object(ma.d)(this,function(){ba={id:x};return[2,this.kja(JSON.stringify(ba)).then(function(){})]})})};
|
|
3962
|
+
a.prototype.kja=function(x){return Object(ma.b)(this,void 0,Promise,function(){return Object(ma.d)(this,function(){return[2,this.ju("set_comment",this.Yv.encode(x))]})})};a.prototype.undo=function(x,ba){x={id:b.undo,cursorsToMove:{selectionStart:x.map(function(ca){return ca.Ka()}),selectionEnd:ba.map(function(ca){return ca.Ka()})}};return this.notify(JSON.stringify(x)).then(function(){})};a.prototype.redo=function(x,ba){x={id:b.redo,cursorsToMove:{selectionStart:x.map(function(ca){return ca.Ka()}),
|
|
3963
|
+
selectionEnd:ba.map(function(ca){return ca.Ka()})}};return this.notify(JSON.stringify(x)).then(function(){})};a.prototype.xZ=function(x,ba,ca,ha){return Object(ma.b)(this,void 0,Promise,function(){var z=this;return Object(ma.d)(this,function(){return[2,this.Nea(x,ba,ca,ha).then(function(ea){return z.zH(ea)})]})})};a.prototype.ll=function(x,ba){var ca,ha;if(null===(ha=null===(ca=ba.officeOptions)||void 0===ca?void 0:ca.formatOptions)||void 0===ha?0:ha.password)var z={password:ba.officeOptions.formatOptions.password};
|
|
3964
|
+
return this.xZ("load_document",x,z,ba)};a.prototype.notify=function(x){var ba=this;return this.pha.dQ().then(function(){return ba.Afa(x)})};a.prototype.Afa=function(x){var ba=this;return this.ju("handle_message",this.Yv.encode(x)).then(function(ca){return ba.zH(ca)})};a.prototype.VWa=function(x){this.zH=x;this.Kf.replace("responseFromOnIdle",x)};a.prototype.query=function(x){for(var ba=[],ca=1;ca<arguments.length;ca++)ba[ca-1]=arguments[ca];ca=x;for(var ha=0;ha<ba.length;ha++)ca+=" ".concat(ba[ha]);
|
|
3965
|
+
return this.ju("query_doc",this.Yv.encode(ca))};a.prototype.ju=function(x,ba){return Object(ma.b)(this,void 0,Promise,function(){var ca;return Object(ma.d)(this,function(ha){switch(ha.label){case 0:return ca=this.VMa++,this.D0[ca]=this.Kf.cc(x,ba,0).then(function(z){return z&&"error"in z?(console.error("Worker encountered error:",z.error.toString(),z),Promise.reject(Error(z.error))):z}),[4,Promise.all(this.D0.slice(0,ca))];case 1:return ha.aa(),[2,this.D0[ca]]}})})};return a}();ua.a=xa},function(xa,
|
|
3966
|
+
ua,e){function ma(ja,ia,fa){return new Promise(function(w){var y="".concat(window.da.Se(),"assets/mime-types/test.").concat(ja);fetch(y).then(function(h){var f;404===h.status?f="Your server does not have a MIME type set for extension ".concat(ja,". Please see https://docs.apryse.com/documentation/web/faq/mime-types/ for more information."):"xod"!==ia&&(pa.l.qR.includes(ia)?f="Failed to find Office worker files. This project is not set up to work with Office files.":pa.l.C3.includes(ia)&&(f="Failed to find PDF worker files. This project is not set up to work with PDF files."));
|
|
3967
|
+
f=f||fa;Object(oa.g)(f);w(f)})})}var oa=e(2),pa=e(3);ua.a=function(ja,ia){return new Promise(function(fa){"string"===typeof ja&&ja.startsWith("Error retrieving file:")&&ja.includes(".xod")?ma("xod",ia,ja).then(fa):"The worker has encountered an error"===ja?(ma("mem",ia,ja).then(fa),ma("wasm",ia,ja).then(fa)):"Couldn't fetch resource file."===ja?ma("res",ia,ja).then(fa):fa(ja)})}},function(xa,ua,e){function ma(oa,pa){if("string"!==typeof oa||!pa)return oa;pa=pa.substr(0,pa.lastIndexOf("/"));return/^(\/|%2F|[a-z0-9-]+:)/i.test(oa)?
|
|
3968
|
+
oa:"".concat(pa,"/").concat(oa)}e.d(ua,"a",function(){return ma})},function(xa,ua,e){var ma=e(0),oa=e(69),pa=e(183),ja=e(126),ia=e(125);xa=function(){function fa(w,y){var h=this;this.EZa=function(){return Object(ma.b)(h,void 0,void 0,function(){var f;return Object(ma.d)(this,function(b){switch(b.label){case 0:return f="".concat(Object(ia.a)(),"SpreadsheetEditorModule.js"),this.worker=new Worker(f),this.yn=this.oda(),[4,this.yn];case 1:return b.aa(),[2]}})})};this.options=y;this.worker=w;this.yn=this.oda()}
|
|
3969
|
+
fa.prototype.oda=function(){var w=this;return new Promise(function(y,h){var f=w.options.l;if("undefined"===typeof Worker)return h(new oa.a("Can't start a worker","error.WorkerInitError"));try{w.ema=w.TIa(f,y,h).bind(w),w.worker.addEventListener("message",w.ema),w.worker.postMessage({action:pa.a.STARTUP})}catch(b){y="\n The worker has been disabled. This may be the result of using an unsupported browser.\n Or an error occurred during initialization. ".concat(b.message,"\n "),
|
|
3970
|
+
h(new oa.a(y,"error.SupportError"))}})};fa.prototype.TIa=function(w,y,h){var f=this;return function(b){b=b.data;if(!b)return f.mL(),h("Empty worker message received from spreadsheet editor.");switch(b.type){case pa.a.ENGINE_LOADED:f.xIa(w);break;case pa.a.INITIALIZE_LICENSE:f.CIa(b,y,h);f.mL();break;default:f.mL(),h("Unknown worker message [".concat(b.type,"] received from spreadsheet editor."))}}};fa.prototype.Zka=function(){this.mL();this.worker.terminate();this.worker=null};fa.prototype.xIa=function(w){this.worker.postMessage({action:pa.a.INITIALIZE_LICENSE,
|
|
3971
|
+
value:w})};fa.prototype.CIa=function(w,y,h){w.errorMessage?h("License check failure. An unknown error occurred. Please reach out to support with error: ".concat(w.errorMessage)):(w=w.data,[ja.b.VALID_LICENSE,ja.b.DEMO_LICENSE].includes(w)?y(this.worker):w===ja.b.INVALID_LICENSE?h("License check failure. Invalid license provided."):w===ja.b.NO_EDITING_PERMISSION?y(this.worker):h("License check failure. An unknown license status was received. Please reach out to support with status: [".concat(w,"]")))};
|
|
3972
|
+
fa.prototype.mL=function(){this.worker.removeEventListener("message",this.ema)};return fa}();ua.a=xa},function(xa,ua,e){function ma(oa){oa=oa||{q4:0,P3:0,v3:0};return window.Proxy?new Proxy(oa,{set:function(pa,ja,ia){pa[ja]=ia;return!0}}):oa}e.d(ua,"a",function(){return ma})},function(xa,ua,e){function ma(pa){return pa===oa.f.E_0||pa===oa.f.E_180}e.d(ua,"a",function(){return ma});var oa=e(3)},function(xa,ua){xa=function(){function e(ma){this.dM=[ma]}e.prototype.writeStartElement=function(ma){ma=document.createElementNS("",
|
|
3973
|
+
ma);this.dM.push(ma)};e.prototype.writeAttributeString=function(ma,oa){this.top().setAttribute(ma,oa)};e.prototype.writeEndElement=function(){var ma=this.dM.pop();this.top().appendChild(ma)};e.prototype.writeString=function(ma){this.top().textContent=ma};e.prototype.top=function(){return this.dM[this.dM.length-1]};return e}();window.I0a=xa;ua.a=xa},function(xa,ua,e){function ma(ia,fa,w){fa=fa||1;for(var y,h,f,b,n=0;n<ia[0].length;n++){var r=ia[0][n];if(!n||r[0]<y)y=r[0];if(!n||r[1]<h)h=r[1];if(!n||
|
|
3974
|
+
r[0]>f)f=r[0];if(!n||r[1]>b)b=r[1]}r=f-y;var a=b-h,x=Math.min(r,a),ba=x/2;if(0===x)return ia=[y,h],ia.zc=0,ia;n=new ja(void 0,oa);for(var ca=y;ca<f;ca+=x)for(var ha=h;ha<b;ha+=x)n.push(new pa(ca+ba,ha+ba,ba,ia));b=f=ba=0;x=ia[0];ca=0;ha=x.length;for(var z=ha-1;ca<ha;z=ca++){var ea=x[ca];z=x[z];var aa=ea[0]*z[1]-z[0]*ea[1];f+=(ea[0]+z[0])*aa;b+=(ea[1]+z[1])*aa;ba+=3*aa}f=0===ba?new pa(x[0][0],x[0][1],0,ia):new pa(f/ba,b/ba,0,ia);y=new pa(y+r/2,h+a/2,0,ia);y.d>f.d&&(f=y);for(y=n.length;n.length;)h=
|
|
3975
|
+
n.pop(),h.d>f.d&&(f=h,w&&console.log("found best %d after %d probes",Math.round(1E4*h.d)/1E4,y)),h.max-f.d<=fa||(ba=h.h/2,n.push(new pa(h.x-ba,h.y-ba,ba,ia)),n.push(new pa(h.x+ba,h.y-ba,ba,ia)),n.push(new pa(h.x-ba,h.y+ba,ba,ia)),n.push(new pa(h.x+ba,h.y+ba,ba,ia)),y+=4);w&&(console.log("num probes: "+y),console.log("best distance: "+f.d));ia=[f.x,f.y];ia.zc=f.d;return ia}function oa(ia,fa){return fa.max-ia.max}function pa(ia,fa,w,y){this.x=ia;this.y=fa;this.h=w;w=!1;for(var h=Infinity,f=0;f<y.length;f++)for(var b=
|
|
3976
|
+
y[f],n=0,r=b.length,a=r-1;n<r;a=n++){var x=b[n];a=b[a];x[1]>fa!==a[1]>fa&&ia<(a[0]-x[0])*(fa-x[1])/(a[1]-x[1])+x[0]&&(w=!w);var ba=Math,ca=ba.min,ha=x[0];x=x[1];var z=a[0]-ha,ea=a[1]-x;if(0!==z||0!==ea){var aa=((ia-ha)*z+(fa-x)*ea)/(z*z+ea*ea);1<aa?(ha=a[0],x=a[1]):0<aa&&(ha+=z*aa,x+=ea*aa)}z=ia-ha;ea=fa-x;h=ca.call(ba,h,z*z+ea*ea)}this.d=0===h?0:(w?1:-1)*Math.sqrt(h);this.max=this.d+this.h*Math.SQRT2}var ja=e(602);ja.default&&(ja=ja.default);xa.exports=ma;xa.exports.default=ma},function(xa,ua,e){function ma(oa){return oa.match(/[a-fA-F0-9]{2}/g).map(function(pa){return parseInt(pa,
|
|
3977
3977
|
16)})}e.d(ua,"a",function(){return ma})},function(xa,ua,e){function ma(ia,fa,w,y){return Object(oa.b)(this,void 0,void 0,function(){var h,f,b,n;return Object(oa.d)(this,function(r){switch(r.label){case 0:h={calculationOrder:[],widgets:[],fields:{},pages:[],documentActions:{},custom:[]};f=ia.qb();if("pdf-info"!==f)return Object(ja.j)("pdf-info missing. found: ".concat(f)),w(h),[2];b=ia.ka("version");return"1"!==b?[3,2]:[4,e.e(9).then(e.bind(null,667))];case 1:return n=r.aa().parse,n(ia,fa,w,y),[3,
|
|
3978
3978
|
3];case 2:"2"===b?Object(pa.a)(ia,fa,w,y):(Object(ja.j)("PDFInfo version is incorrect: ".concat(b)),w(h)),r.label=3;case 3:return[2]}})})}e.d(ua,"a",function(){return ma});var oa=e(0),pa=e(507),ja=e(2)},function(xa,ua,e){function ma(la,ra){var qa=la.ka("name"),sa={type:la.ka("type"),maxLen:la.ka("max-len")||-1,tooltipName:la.ka("tooltip-name")},ta=la.ka("flags");Object(r.isString)(ta)&&(sa.flags=ta.split(" "));for(la.ib();la.advance();)switch(ta=la.qb(),ta){case "actions":sa.actions=y(la,["C","F",
|
|
3979
3979
|
"K","V"],function(){return ra});break;case "default-value":sa.defaultValue=ja(la);break;case "font":sa.font=f(la,ra);break;case "options":sa.options=b(la);break;default:Object(ha.j)("unknown field child: ".concat(ta))}la.Lb();return new ka.la.xa(qa,sa)}function oa(la,ra){switch(la.type){case "Tx":try{if(Object(z.c)(la.actions))return new ca.a.DatePickerWidgetAnnotation(la,ra)}catch(ta){Object(ha.j)(ta)}return new ca.a.TextWidgetAnnotation(la,ra);case "Ch":return la.flags.get(ea.WidgetFlags.COMBO)?
|