@pdftron/webviewer 11.6.0-20250608 → 11.6.0-20250609
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
CHANGED
|
@@ -2447,7 +2447,7 @@ var ea=ja.kAa;ja={type:ja.type?ja.type:"JavascriptError",message:ja.message};ea&
|
|
|
2447
2447
|
ia.reject({type:"Cancelled",message:"Request has been cancelled."});this.postMessage({action:"actionCancel",data:{callbackId:ja}})}else Object(la.c)("Cannot cancel callback ".concat(ja))};ma.prototype.postMessage=function(ja){"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&Object(la.g)("PDFWorker","".concat(performance.now()," Sent ").concat(JSON.stringify(ja)));if(this.Mo){var ia=this.wFa(ja);this.Op.postMessage(ja,ia)}else this.Op.postMessage(ja)};ma.prototype.maa=function(ja,ia){var ea=
|
|
2448
2448
|
this;null!==ja&&"object"===typeof ja&&(ja instanceof Uint8Array?ia.push(ja.buffer):ja instanceof ArrayBuffer?ia.push(ja):Object.keys(ja).forEach(function(y){ja.hasOwnProperty(y)&&ea.maa(ja[y],ia)}))};ma.prototype.wFa=function(ja){var ia=[];this.maa(ja,ia);return 0===ia.length?void 0:ia};ma.prototype.jw=function(ja){var ia=this,ea=ja.data;"officeeditor"!==this.name&&Object(na.a)("enableWorkerLogs")&&Object(la.g)("PDFWorker","".concat(performance.now()," Received ").concat(JSON.stringify(ea)));var y=
|
|
2449
2449
|
this.Cp,x=this.Bra;ja=this.zk;var n=this.pdfnetActiveCommands;if(ea.isReply)y=ea.callbackId,y in ja?(x=ja[y],delete ja[y],n.has(y)&&n.delete(y),"error"in ea?x.reject(ea.error):x.resolve(ea.data)):Object(la.b)("Cannot resolve callback ".concat(y));else if(ea.action in y){var e=y[ea.action];ea.callbackId?Promise.resolve().then(function(){return e[0].call(e[1],ea.data)}).then(function(a){ia.postMessage({isReply:!0,callbackId:ea.callbackId,data:a})},function(a){ia.jP(a,ea.callbackId)}):e[0].call(e[1],
|
|
2450
|
-
ea.data)}else ea.action in x?(e=x[ea.action],ea.callbackId?e[0].call(e[1],ea).then(function(a){ia.postMessage({isReply:!0,callbackId:ea.callbackId,data:a});ia.VN()},function(a){ia.jP(a,ea.callbackId);ia.VN()}):e[0].call(e[1],ea).then(function(){ia.VN()},function(){ia.VN()})):Object(la.f)("Unknown action from worker: ".concat(ea.action))};return ma}();ua.a=ya},function(ya,ua,h){function la(){return"
|
|
2450
|
+
ea.data)}else ea.action in x?(e=x[ea.action],ea.callbackId?e[0].call(e[1],ea).then(function(a){ia.postMessage({isReply:!0,callbackId:ea.callbackId,data:a});ia.VN()},function(a){ia.jP(a,ea.callbackId);ia.VN()}):e[0].call(e[1],ea).then(function(){ia.VN()},function(){ia.VN()})):Object(la.f)("Unknown action from worker: ".concat(ea.action))};return ma}();ua.a=ya},function(ya,ua,h){function la(){return"Ni85LzIwMjV8OGZjNGVjYzg4"}function na(){return"11.6.0"}h.d(ua,"b",function(){return na});h.d(ua,"a",
|
|
2451
2451
|
function(){return la})},function(ya,ua){ua.a=function(){return function(h,la,na,ma,ja,ia){this.ER=h;this.mJ=la;this.lJ=na;this.mR=ma;this.QJ=ja;this.PJ=ia;this.ER=h;this.mJ=la||0;this.lJ=na||0;this.mR=ma;this.QJ=ja||0;this.PJ=ia||0}}()},function(ya,ua,h){h.d(ua,"a",function(){return la});var la=RegExp("[-[\\]{}()*+?.,\\\\^$|#\\s]","g");ua.b=function(){return function(na,ma){this.Eca=ma&&("r"===ma||"w"===ma);this.text=(ma&&"w"===ma?na.replace(/(\*+|.|\n)/g,function(ja){if("*"===ja.charAt(0)){if(1===
|
|
2452
2452
|
ja.length)return".*?";var ia=ja.length/2|0;return 1===((ja.length|0)&1)?"".concat("*".repeat(ia).replace(la,"\\$&"),".*?"):"*".repeat(ia).replace(la,"\\$&")}return ja.replace(la,"\\$&")}):na).replaceAll("\n"," ")}}()},function(ya,ua,h){var la=h(0),na=h(16),ma=h(42),ja=h(320);ya=h(53);h=function(){function ia(ea,y,x,n,e){void 0===x&&(x=!1);this.id=ea;this.iqa=y;this.jqa=x;this.transport=n;this.Is=e;this.isValid=!1;this.listeners=[];this.NB=window.createPromiseCapability()}ia.create=function(ea,y){return Object(la.b)(this,
|
|
2453
2453
|
arguments,Promise,function(x,n,e,a){var f,r;void 0===e&&(e=!1);void 0===a&&(a=!1);return Object(la.d)(this,function(b){switch(b.label){case 0:return[4,x.Uy()];case 1:f=b.aa();if("id"in f)return r=new ia(f.id,e,a,x,n),r.PM(f),[2,r];throw Error("Cursor ID not found");}})})};ia.prototype.PM=function(ea){if("cmd"in ea)switch(ea.cmd){case "invalidateCursor":this.Xba();break;case "resolveCursor":if("page"in ea&&"stream"in ea&&"paragraph"in ea&&"offset"in ea&&"style"in ea&&"listType"in ea){var y=ea.stream;
|