@pdftron/pdfjs-express 8.7.2 → 8.7.4
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/22.chunk.js +2 -2
- package/public/core/23.chunk.js +5 -5
- package/public/core/ContentEdit.chunk.js +16 -16
- package/public/core/ExternalAnnotationMerger.chunk.js +12 -12
- package/public/core/ExternalPdfPartRetriever.chunk.js +4 -4
- package/public/core/HttpPartRetriever.chunk.js +9 -9
- package/public/core/IOSPartRetriever.chunk.js +1 -1
- package/public/core/LocalPartRetriever.chunk.js +3 -3
- package/public/core/LocalPdfPartRetriever.chunk.js +2 -2
- package/public/core/PDFInfoVersion1.chunk.js +8 -8
- package/public/core/SelectionInfoOld.chunk.js +5 -5
- package/public/core/StreamingPartRetriever.chunk.js +6 -6
- package/public/core/WebDBPartRetriever.chunk.js +1 -1
- package/public/core/WebViewerServerPartRetriever.chunk.js +30 -30
- package/public/core/WinRTPartRetriever.chunk.js +1 -1
- package/public/core/pikaday.chunk.js +15 -15
- package/public/core/vendors.ascii85.chunk.js +5 -5
- package/public/core/vendors.ascii85.quill.chunk.js +15 -15
- package/public/core/vendors.pako.chunk.js +68 -68
- package/public/core/vendors.quill.chunk.js +58 -58
- package/public/core/webviewer-core.min.js +1662 -1663
- package/webviewer.min.js +1 -1
package/package.json
CHANGED
package/public/core/22.chunk.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{450:function(ia){(function(){ia.exports={
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[22],{450:function(ia){(function(){ia.exports={XW:function(){function ba(e,f){this.scrollLeft=e;this.scrollTop=f}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 ea(e,h){if("Y"===
|
|
3
3
|
h)return e.clientHeight+f<e.scrollHeight;if("X"===h)return e.clientWidth+f<e.scrollWidth}function x(e,f){e=aa.getComputedStyle(e,null)["overflow"+f];return"auto"===e||"scroll"===e}function ha(e){var f=ea(e,"Y")&&x(e,"Y");e=ea(e,"X")&&x(e,"X");return f||e}function ca(e){var f=(h()-e.startTime)/468;var n=.5*(1-Math.cos(Math.PI*(1<f?1:f)));f=e.xy+(e.x-e.xy)*n;n=e.zy+(e.y-e.zy)*n;e.method.call(e.qE,f,n);f===e.x&&n===e.y||aa.requestAnimationFrame(ca.bind(aa,e))}function da(e,f,x){var r=h();if(e===w.body){var y=
|
|
4
|
-
aa;var z=aa.scrollX||aa.pageXOffset;e=aa.scrollY||aa.pageYOffset;var da=n.scroll}else y=e,z=e.scrollLeft,e=e.scrollTop,da=ba;ca({qE:y,method:da,startTime:r,xy:z,zy:e,x:f,y:x})}var aa=window,w=document;if(!("scrollBehavior"in w.documentElement.style&&!0!==aa.
|
|
4
|
+
aa;var z=aa.scrollX||aa.pageXOffset;e=aa.scrollY||aa.pageYOffset;var da=n.scroll}else y=e,z=e.scrollLeft,e=e.scrollTop,da=ba;ca({qE:y,method:da,startTime:r,xy:z,zy:e,x:f,y:x})}var aa=window,w=document;if(!("scrollBehavior"in w.documentElement.style&&!0!==aa.ona)){var y=aa.HTMLElement||aa.Element,n={scroll:aa.scroll||aa.scrollTo,scrollBy:aa.scrollBy,qS:y.prototype.scroll||ba,scrollIntoView:y.prototype.scrollIntoView},h=aa.performance&&aa.performance.now?aa.performance.now.bind(aa.performance):Date.now,
|
|
5
5
|
f=/MSIE |Trident\/|Edge\//.test(aa.navigator.userAgent)?1:0;aa.scroll=aa.scrollTo=function(f,h){void 0!==f&&(!0===e(f)?n.scroll.call(aa,void 0!==f.left?f.left:"object"!==typeof f?f:aa.scrollX||aa.pageXOffset,void 0!==f.top?f.top:void 0!==h?h:aa.scrollY||aa.pageYOffset):da.call(aa,w.body,void 0!==f.left?~~f.left:aa.scrollX||aa.pageXOffset,void 0!==f.top?~~f.top:aa.scrollY||aa.pageYOffset))};aa.scrollBy=function(f,h){void 0!==f&&(e(f)?n.scrollBy.call(aa,void 0!==f.left?f.left:"object"!==typeof f?f:
|
|
6
6
|
0,void 0!==f.top?f.top:void 0!==h?h:0):da.call(aa,w.body,~~f.left+(aa.scrollX||aa.pageXOffset),~~f.top+(aa.scrollY||aa.pageYOffset)))};y.prototype.scroll=y.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");n.qS.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,da.call(this,this,"undefined"===typeof h?
|
|
7
7
|
this.scrollLeft:~~h,"undefined"===typeof f?this.scrollTop:~~f)};y.prototype.scrollBy=function(f,h){void 0!==f&&(!0===e(f)?n.qS.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}))};y.prototype.scrollIntoView=function(f){if(!0===e(f))n.scrollIntoView.call(this,void 0===f?!0:f);else{for(f=this;f!==w.body&&!1===ha(f);)f=f.parentNode||
|
package/public/core/23.chunk.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[23],{452:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(10),ha=e(2);ia=e(51);var ca=e(34),da=e(11);e=function(){function e(){this.init()}e.prototype.init=function(){this.
|
|
3
|
-
break;case "delete":this.la.Ul("<delete><id>"+h.aId+"</id></delete>")}}};e.prototype.
|
|
4
|
-
this;if(w){h.Ve=y;h.la=n.ta();n.addEventListener(x.e.DOCUMENT_UNLOADED,function(){h.disableCollaboration()});h.
|
|
5
|
-
h.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[h.Wr[n.id],h.dF])},function(){h.disableCollaboration()})}catch(z){Object(ha.g)(z.message)}});f.open("GET",Object(ca.j)(this.Ve,"demo/SessionInfo.jsp"));f.withCredentials=!0;f.send();h.
|
|
6
|
-
this.connection.Np();this.la&&this.la.eM("Guest");this.init();this.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};e.prototype.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[23],{452:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(10),ha=e(2);ia=e(51);var ca=e(34),da=e(11);e=function(){function e(){this.init()}e.prototype.init=function(){this.i6=!1;this.Ve=this.rl=this.connection=null;this.Wr={};this.la=this.dF=null};e.prototype.Nla=function(e){for(var w=this,n=0;n<e.length;++n){var h=e[n];switch(h.at){case "create":this.Wr[h.author]||(this.Wr[h.author]=h.aName);this.Tca(h);break;case "modify":this.la.Ul(h.xfdf).then(function(e){w.la.qb(e[0])});
|
|
3
|
+
break;case "delete":this.la.Ul("<delete><id>"+h.aId+"</id></delete>")}}};e.prototype.Tca=function(e){var w=this;this.la.Ul(e.xfdf).then(function(n){n=n[0];n.authorId=e.author;w.la.qb(n);w.la.trigger(x.b.UPDATE_ANNOTATION_PERMISSION,[n])})};e.prototype.sca=function(e,x,n){this.rl&&this.rl(e,x,n)};e.prototype.preloadAnnotations=function(e){this.addEventListener("webViewerServerAnnotationsEnabled",this.sca.bind(this,e,"add",{imported:!1}),{once:!0})};e.prototype.initiateCollaboration=function(w,y,n){var h=
|
|
4
|
+
this;if(w){h.Ve=y;h.la=n.ta();n.addEventListener(x.e.DOCUMENT_UNLOADED,function(){h.disableCollaboration()});h.lma(w);var f=new XMLHttpRequest;f.addEventListener("load",function(){if(200===f.status&&0<f.responseText.length)try{var n=JSON.parse(f.responseText);h.connection=exports.Ya.Qma(Object(ca.j)(h.Ve,"blackbox/"),"annot");h.dF=n.id;h.Wr[n.id]=n.user_name;h.la.eM(n.id);h.connection.mqa(function(e){e.t&&e.t.startsWith("a_")&&e.data&&h.Nla(e.data)},function(){h.connection.send({t:"a_retrieve",dId:w});
|
|
5
|
+
h.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_ENABLED,[h.Wr[n.id],h.dF])},function(){h.disableCollaboration()})}catch(z){Object(ha.g)(z.message)}});f.open("GET",Object(ca.j)(this.Ve,"demo/SessionInfo.jsp"));f.withCredentials=!0;f.send();h.i6=!0;h.la.yY(function(e){return h.Wr[e.Author]||e.Author})}else Object(ha.g)("Document ID required for collaboration")};e.prototype.disableCollaboration=function(){this.rl&&(this.la.removeEventListener(da.a.Events.ANNOTATION_CHANGED,this.rl),this.rl=null);this.connection&&
|
|
6
|
+
this.connection.Np();this.la&&this.la.eM("Guest");this.init();this.trigger(e.Events.WEBVIEWER_SERVER_ANNOTATIONS_DISABLED)};e.prototype.lma=function(e){var w=this;this.rl&&this.la.removeEventListener(da.a.Events.ANNOTATION_CHANGED,this.rl);this.rl=function(n,h,f){return Object(ea.b)(this,void 0,void 0,function(){var r,x,y,aa,ba,ca,da,ha,ia;return Object(ea.d)(this,function(z){switch(z.label){case 0:if(f.imported)return[2];r={t:"a_"+h,dId:e,annots:[]};return[4,w.la.mI()];case 1:x=z.ea();"delete"!==
|
|
7
7
|
h&&(y=(new DOMParser).parseFromString(x,"text/xml"),aa=new XMLSerializer);for(ba=0;ba<n.length;ba++)ca=n[ba],ha=da=void 0,"add"===h?(da=y.querySelector('[name="'+ca.Id+'"]'),ha=aa.serializeToString(da),ia=null,ca.InReplyTo&&(ia=w.la.hg(ca.InReplyTo).authorId||"default"),r.annots.push({at:"create",aId:ca.Id,author:w.dF,aName:w.Wr[w.dF],parent:ia,xfdf:"<add>"+ha+"</add>"})):"modify"===h?(da=y.querySelector('[name="'+ca.Id+'"]'),ha=aa.serializeToString(da),r.annots.push({at:"modify",aId:ca.Id,xfdf:"<modify>"+
|
|
8
8
|
ha+"</modify>"})):"delete"===h&&r.annots.push({at:"delete",aId:ca.Id});0<r.annots.length&&w.connection.send(r);return[2]}})})}.bind(w);this.la.addEventListener(da.a.Events.ANNOTATION_CHANGED,this.rl)};e.Events={WEBVIEWER_SERVER_ANNOTATIONS_ENABLED:"webViewerServerAnnotationsEnabled",WEBVIEWER_SERVER_ANNOTATIONS_DISABLED:"webViewerServerAnnotationsDisabled"};return e}();Object(ia.a)(e);ba["default"]=e}}]);}).call(this || window)
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[6],{164:function(ia,ba,e){function ea(e,f,h,n){return Object(na.b)(void 0,void 0,void 0,function(){var r,w,x,y,aa,ba,da,ea,fa;return Object(na.d)(this,function(ha){switch(ha.label){case 0:return r=Ia.getDocument(),w=[1],[4,Object(
|
|
3
|
-
ea)];case 4:return ha.ea(),fa=y.
|
|
4
|
-
f});var f=e.getAttribute("style"),h=e.innerHTML.pj("<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 ca(e){var f=Ia.ta(),h=f.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[6],{164:function(ia,ba,e){function ea(e,f,h,n){return Object(na.b)(void 0,void 0,void 0,function(){var r,w,x,y,aa,ba,da,ea,fa;return Object(na.d)(this,function(ha){switch(ha.label){case 0:return r=Ia.getDocument(),w=[1],[4,Object(ra.c)(f,{extension:"pdf"})];case 1:return x=ha.ea(),y=Ia.ta(),da=(ba=ya.a).tga,[4,x.SB()];case 2:return aa=da.apply(ba,[ha.ea().xfdfString,e]),ea=!0,[4,r.Hf(x,w,e,ea)];case 3:return ha.ea(),[4,r.yg([e+1],
|
|
3
|
+
ea)];case 4:return ha.ea(),fa=y.Pb().filter(function(f){return f.hK()&&f.PageNumber===e}),y.Wj(fa,{force:!0,source:"contentEditTool"}),[4,y.QJ(aa)];case 5:return ha.ea(),Ia.getDocument().BL(),Ia.AL(e),Ia.Ye(),ca(e),z(e,h.galleys,n),z(e,h.objects,n),[2]}})})}function x(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=
|
|
4
|
+
f});var f=e.getAttribute("style"),h=e.innerHTML.pj("<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 ca(e){var f=Ia.ta(),h=f.Pb().filter(function(f){return f.Sh()&&f.PageNumber===e});f.Wj(h,{force:!0,source:"contentEditTool"})}function da(e,f){f.forEach(function(f){Ga[e]||(Ga[e]=[]);Ga[e].find(function(e){return e.id===
|
|
5
5
|
f.id})||Ga[e].push(f)})}function aa(e,f){f.forEach(function(f){Fa[e]||(Fa[e]=[]);Fa[e].find(function(e){return e.id===f.id})||Fa[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))});
|
|
6
6
|
return(new XMLSerializer).serializeToString(h)}function y(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()!==
|
|
7
|
-
e.topVal()||this.leftVal()!==e.leftVal()||this.bottomVal()!==e.bottomVal()||this.rightVal()!==e.rightVal()}}function n(e,f,h,n,r){this.id=e;this.pagenum=f;this.galleysContents=h;this.contents=n;this.galleyBox=r;Object(
|
|
7
|
+
e.topVal()||this.leftVal()!==e.leftVal()||this.bottomVal()!==e.bottomVal()||this.rightVal()!==e.rightVal()}}function n(e,f,h,n,r){this.id=e;this.pagenum=f;this.galleysContents=h;this.contents=n;this.galleyBox=r;Object(Ca.g)(Fa)}function h(e,f,h,n){this.id=f;this.type=e;this.bbox=h;this.pagenum=n}function f(e,f,h,n,r){this.id=e;this.pagecount=f;this.pageBBox=h;this.galleys=n;this.objects=r}function r(e,f,h,n,r){var w=[];(new DOMParser).parseFromString(n,"text/html").documentElement.querySelectorAll("p").forEach(function(e,
|
|
8
8
|
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];
|
|
9
9
|
null!=x&&y.setAttribute("style",x);h.documentElement.querySelector("body").appendChild(y)}h=h.documentElement.querySelector("body").innerHTML;var aa="";Fa[e].forEach(function(e){e.id===r&&(aa=e)});if(""===aa)return"";f="<DOC id='"+f.id+"' pagecount='"+f.pagecount+"'>";f=f+("<STORY galley_ids='"+r+"' pagenum='"+e+"'>")+("<galleys>"+aa.galleysContents+"</galleys>");aa.contents=h;f=f+h+"\n</STORY>";return f+="</DOC>"}function z(e,f,r){var w=[],x=Ia.getDocument(),y=null;f.forEach(function(f){if(f instanceof
|
|
10
|
-
h){var aa=x.co(e,f.bbox.leftVal(),f.bbox.topVal());var z=aa.x;var ba=aa.y;var ca=x.co(e,f.bbox.rightVal(),f.bbox.bottomVal());aa=ca.x;ca=ca.y}else if(f instanceof n)aa=x.co(e,f.galleyBox.leftVal(),f.galleyBox.topVal()),z=aa.x,ba=aa.y,ca=x.co(e,f.galleyBox.rightVal(),f.galleyBox.bottomVal()),aa=ca.x,ca=ca.y;else return;var da=new window.Core.Annotations.RectangleAnnotation,ea=ua.a.OBJECT;f instanceof n&&(ea=ua.a.TEXT);da.
|
|
11
|
-
da.StrokeColor=new sa.a("#3183C8");da.FillColor=new sa.a(255,255,255,.01);da.Style="dash";da.Dashes="4,3";da.DB();da.selectionModel=
|
|
12
|
-
5];case "transformObject":return[3,5];case "deleteObject":return[3,6]}return[3,7];case 1:return[4,Object(va.b)()];case 2:return x=ba.ea(),
|
|
13
|
-
r.objects)),[3,7];case 5:return r=
|
|
14
|
-
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);
|
|
10
|
+
h){var aa=x.co(e,f.bbox.leftVal(),f.bbox.topVal());var z=aa.x;var ba=aa.y;var ca=x.co(e,f.bbox.rightVal(),f.bbox.bottomVal());aa=ca.x;ca=ca.y}else if(f instanceof n)aa=x.co(e,f.galleyBox.leftVal(),f.galleyBox.topVal()),z=aa.x,ba=aa.y,ca=x.co(e,f.galleyBox.rightVal(),f.galleyBox.bottomVal()),aa=ca.x,ca=ca.y;else return;var da=new window.Core.Annotations.RectangleAnnotation,ea=ua.a.OBJECT;f instanceof n&&(ea=ua.a.TEXT);da.Zia(f,ea);da.PageNumber=f.pagenum;da.X=z;da.Y=ba;da.Width=aa-z;da.Height=ca-ba;
|
|
11
|
+
da.StrokeColor=new sa.a("#3183C8");da.FillColor=new sa.a(255,255,255,.01);da.Style="dash";da.Dashes="4,3";da.DB();da.selectionModel=Da.a;w.push(da);"undefined"!==typeof r&&r===f.id&&(y=da)});f=Ia.ta();f.Ci(w);y&&f.Cg(y);f.kf(w)}function fa(e,f,h){return Object(na.b)(this,void 0,void 0,function(){var n,r,w,x,y;return Object(na.d)(this,function(ba){switch(ba.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,
|
|
12
|
+
5];case "transformObject":return[3,5];case "deleteObject":return[3,6]}return[3,7];case 1:return[4,Object(va.b)()];case 2:return x=ba.ea(),Ea.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=Ba[n.pageNumber],aa(n.pageNumber,r.galleys),da(n.pageNumber,r.objects),ca(n.pageNumber),z(n.pageNumber,r.galleys),z(n.pageNumber,
|
|
13
|
+
r.objects)),[3,7];case 5:return r=Ba[n.pageNumber],la(n.pageNumber,n.resultsXML),ea(n.pageNumber,n.pdfBuffer,r,n.id),[3,7];case 6:return r=Ba[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}),ea(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");
|
|
14
|
+
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);Ba[e]=ma(e,f,h,n);n=Ba[e];aa(e,n.galleys);da(e,n.objects);ca(e);z(e,n.galleys);z(e,n.objects)}function pa(e,f){e=parseFloat(e);return isNaN(f)||f<e?e:f}function ma(e,r,w,x){var aa;var z=new DOMParser;x=z.parseFromString(x,"text/xml");
|
|
15
15
|
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);aa=new y(f,n,h,e)}});z=new DOMParser;x=z.parseFromString(r,"text/xml");var ba=[];Array.prototype.slice.call(x.getElementsByTagName("STORY")).forEach(function(f){var h=
|
|
16
16
|
f.getAttribute("galley_ids"),r=Array.prototype.slice.call(f.getElementsByTagName("g"))[0],w=r.getAttribute("bbox").split(" ");w=new y(parseFloat(w[0]),parseFloat(w[1]),parseFloat(w[2]),parseFloat(w[3]));r=r.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();h=new n(h,e,r,f,w);ba.push(h)});z=new DOMParser;var ca=[];r=z.parseFromString(w,
|
|
17
17
|
"text/xml").getElementsByTagName("Object");Array.prototype.slice.call(r).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,aa=Number.NaN,z=Number.NaN;f.forEach(function(e){var f=e.getAttribute("Name");"TL"===f?(w=pa(e.getAttribute("Y"),w),aa=pa(e.getAttribute("X"),aa)):"TR"===f?(w=pa(e.getAttribute("Y"),w),z=pa(e.getAttribute("X"),z)):"BR"===f?(x=pa(e.getAttribute("Y"),x),z=pa(e.getAttribute("X"),
|
|
18
18
|
z)):"BL"===f&&(x=pa(e.getAttribute("Y"),x),aa=pa(e.getAttribute("X"),aa))});ca.push(new h(n,r,new y(w,aa,x,z),e))});r=Array.prototype.slice.call(x.getElementsByTagName("DOC"))[0].getAttribute("id");return new f(r,1,aa,ba,ca)}function la(e,f){var h;f=(new TextDecoder("utf-8")).decode(f);var n=(new DOMParser).parseFromString(f,"text/xml");f=n.getElementsByTagName("Galley").item(0);if(null!=f){var r=f.getAttribute("id");f=n.getElementsByTagName("BBox");f=Array.prototype.slice.call(f);f.forEach(function(e){var f=
|
|
19
19
|
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 y(n,r,w,e)});Fa[e].forEach(function(e){e.id===r&&!0===h.YQ(e.galleyBox)&&(e.galleyBox=h)})}f=n.getElementsByTagName("Object").item(0);if(null!=f){var w=f.getAttribute("OID");f=n.getElementsByTagName("BBox");f=Array.prototype.slice.call(f);
|
|
20
20
|
f.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 y(n,r,w,e)});Ga[e].forEach(function(e){e.id===w&&!0===h.YQ(e.bbox)&&(e.bbox=h)})}f=n.getElementsByTagName("NewParas").item(0);if(null!=f){var x=f.getAttribute("id");Fa[e].forEach(function(e){if(e.id===
|
|
21
|
-
x){var f="<Contents>"+e.contents;f+="</Contents>";var h=Array.prototype.slice.call(n.getElementsByTagName("NewPara"));f=(new DOMParser).parseFromString(f,"text/xml");var r=Array.prototype.slice.call(f.getElementsByTagName("p"));h.forEach(function(e){var f=parseFloat(e.innerHTML),h=!1;r.forEach(function(e){var n=e.getAttribute("id");!1===h&&"0"===n&&(e.setAttribute("id",f),h=!0)})});e.contents=f.getElementsByTagName("Contents").item(0).innerHTML}})}}e.r(ba);var na=e(1),
|
|
22
|
-
e(37),va=e(76),oa=e(2),ua=e(174),
|
|
23
|
-
function(y){switch(y.label){case 0:return ca(f),Fa[f]=[],Ga[f]=[],[4,e.Ie([f])];case 1:return n=y.ea(),r=new TextEncoder,w=r.encode(""),x=w.buffer,
|
|
24
|
-
y=x.encode(""),aa=y.buffer,
|
|
25
|
-
pdfFile:ba,pageNumber:aa,objectID:f,isText:y,topVal:n,leftVal:r,bottomVal:w,rightVal:x,tableData:ea},[ea]),[2]}})})},
|
|
26
|
-
da=r(aa,z,ca,n,y);if(""===da)return[3,2];ea=new TextEncoder;fa=ea.encode(da);ha=fa.buffer;ia=Object(
|
|
27
|
-
case 2:Object(oa.g)("Unable to generate import XML"),na.label=3;case 3:return[2]}})})},
|
|
21
|
+
x){var f="<Contents>"+e.contents;f+="</Contents>";var h=Array.prototype.slice.call(n.getElementsByTagName("NewPara"));f=(new DOMParser).parseFromString(f,"text/xml");var r=Array.prototype.slice.call(f.getElementsByTagName("p"));h.forEach(function(e){var f=parseFloat(e.innerHTML),h=!1;r.forEach(function(e){var n=e.getAttribute("id");!1===h&&"0"===n&&(e.setAttribute("id",f),h=!0)})});e.contents=f.getElementsByTagName("Contents").item(0).innerHTML}})}}e.r(ba);var na=e(1),ra=e(55),sa=e(8),Da=e(475),qa=
|
|
22
|
+
e(37),va=e(76),oa=e(2),ua=e(174),Ca=e(118),ya=e(6),Ea=null,Aa=null,Fa={},Ga={},Ba={},Ia;ba["default"]={qga:function(e){return Object(na.b)(void 0,void 0,void 0,function(){return Object(na.d)(this,function(){Aa||(Ia=e,Aa=new Promise(function(e,f){Ea=new Worker(window.Core.getWorkerPath()+"contentEdit/InfixServerModule.js");Ea.onmessage=function(h){fa(h,e,f)};Ea.postMessage({cmd:"isReady"})}));return[2,Aa]})})},sga:function(e,f,h){return Object(na.b)(void 0,void 0,void 0,function(){var n,r,w,x;return Object(na.d)(this,
|
|
23
|
+
function(y){switch(y.label){case 0:return ca(f),Fa[f]=[],Ga[f]=[],[4,e.Ie([f])];case 1:return n=y.ea(),r=new TextEncoder,w=r.encode(""),x=w.buffer,Ea.postMessage({cmd:"exportFile",pageNumber:f,performExport:h,pdfFile:n,tableData:x},[n,x]),[2]}})})},k7:function(e){return Object(na.b)(void 0,void 0,void 0,function(){var f,h,n,r,w,x,y,aa;return Object(na.d)(this,function(z){switch(z.label){case 0:return f=e.id,h=e.isText,n=e.pageNumber,r=Ia.getDocument(),[4,r.Ie([n])];case 1:return w=z.ea(),x=new TextEncoder,
|
|
24
|
+
y=x.encode(""),aa=y.buffer,Ea.postMessage({cmd:"deleteObject",pdfFile:w,pageNumber:n,objectID:f,isText:h,tableData:aa},[aa]),[2]}})})},Bla:function(e){return Object(na.b)(void 0,void 0,void 0,function(){var f,h,n,r,w,x,y,aa,z,ba,ca,da,ea;return Object(na.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,aa=e.pageNumber,z=Ia.getDocument(),[4,z.Ie([aa])];case 1:return ba=fa.ea(),ca=new TextEncoder,da=ca.encode(""),ea=da.buffer,Ea.postMessage({cmd:"transformObject",
|
|
25
|
+
pdfFile:ba,pageNumber:aa,objectID:f,isText:y,topVal:n,leftVal:r,bottomVal:w,rightVal:x,tableData:ea},[ea]),[2]}})})},Tla:function(e,f){return Object(na.b)(void 0,void 0,void 0,function(){var h,n,y,aa,z,ba,ca,da,ea,fa,ha,ia,ja,ka,la,ma,pa,ra;return Object(na.d)(this,function(na){switch(na.label){case 0:h=f.pj("<p><br></p>","");n=w(h);n=n.replace(/<span style="color: var\(--text-color\);">(.*?)<\/span>/g,"$1");y=e.Ru.id;aa=e.PageNumber;z=Ba[aa];ba=z.galleys.find(function(e){return e.id===y});ca=x(ba.contents);
|
|
26
|
+
da=r(aa,z,ca,n,y);if(""===da)return[3,2];ea=new TextEncoder;fa=ea.encode(da);ha=fa.buffer;ia=Object(qa.c)()||"https://www.pdftron.com/webfonts/v2/";ja=Ia.getDocument();return[4,ja.Ie([aa])];case 1:return ka=na.ea(),ea=new TextEncoder,la=ea.encode(""),ma=la.buffer,Ea.postMessage({cmd:"importText",pdfFile:ka,pageNumber:aa,webFontURL:ia,galleyId:y,importData:ha,tableData:ma},[ha,ma]),pa={},ba&&(ra=ba.galleyBox,pa={top:ra.top,left:ra.left,bottom:ra.bottom,right:ra.right}),Object(Ca.h)(ca,n,pa),[3,3];
|
|
27
|
+
case 2:Object(oa.g)("Unable to generate import XML"),na.label=3;case 3:return[2]}})})},Daa:function(e){if(e)return x(e.contents);Object(oa.g)("Unable to extract document content")}}},475:function(ia,ba,e){var ea=e(1);ia=e(83);var x=e(48);e=function(e){function ba(){return null!==e&&e.apply(this,arguments)||this}Object(ea.c)(ba,e);ba.prototype.testSelection=function(e,aa,w){return x.a.pl(e,aa,w)};return ba}(ia.a);ba.a=e}}]);}).call(this || window)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{449:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(476),ha=e(477),ca;(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"})(ca||(ca={}));ia=function(){function e(e){this.aa=e;this.state=ca.EXTERNAL_XFDF_NOT_REQUESTED}e.prototype.
|
|
3
|
-
void 0,void 0,function(){var e,f,r,y,aa,ba,da,ha=this,ia;return Object(ea.d)(this,function(h){switch(h.label){case 0:if(this.state!==ca.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().Bs();return[4,this.
|
|
4
|
-
new DOMParser;aa=y.parseFromString(w,"text/xml");x.forEach(function(e){ha.merge(aa,ha.nI,e-1)});ba=new XMLSerializer;da=ba.serializeToString(aa);n(da);return[2]}})})}};e.prototype.hM=function(e){this.
|
|
5
|
-
function(e,w,x){var n=this;0===x&&(this.
|
|
6
|
-
"annots");Object.keys(w).forEach(function(e){x.Mq(n,'[name="'+e+'"]',w[e])})};e.prototype.
|
|
7
|
-
this.xv(e,"pages"),this.Mq(e,'[number="'+(x+1)+'"]',w))};e.prototype.
|
|
8
|
-
w.length-1?h:this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[7],{449:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(476),ha=e(477),ca;(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"})(ca||(ca={}));ia=function(){function e(e){this.aa=e;this.state=ca.EXTERNAL_XFDF_NOT_REQUESTED}e.prototype.mca=function(){var e=this;return function(w,x,n){return Object(ea.b)(e,
|
|
3
|
+
void 0,void 0,function(){var e,f,r,y,aa,ba,da,ha=this,ia;return Object(ea.d)(this,function(h){switch(h.label){case 0:if(this.state!==ca.EXTERNAL_XFDF_NOT_REQUESTED)return[3,2];e=this.aa.getDocument().Bs();return[4,this.Iaa(e)];case 1:f=h.ea(),r=this.H6(f),this.nI=null!==(ia=null===r||void 0===r?void 0:r.parse())&&void 0!==ia?ia:null,this.state=null===this.nI?ca.EXTERNAL_XFDF_NOT_AVAILABLE:ca.EXTERNAL_XFDF_AVAILABLE,h.label=2;case 2:if(this.state===ca.EXTERNAL_XFDF_NOT_AVAILABLE)return n(w),[2];y=
|
|
4
|
+
new DOMParser;aa=y.parseFromString(w,"text/xml");x.forEach(function(e){ha.merge(aa,ha.nI,e-1)});ba=new XMLSerializer;da=ba.serializeToString(aa);n(da);return[2]}})})}};e.prototype.hM=function(e){this.Iaa=e};e.prototype.se=function(){this.nI=void 0;this.state=ca.EXTERNAL_XFDF_NOT_REQUESTED};e.prototype.H6=function(e){return e?Array.isArray(e)?new x.a(e):"string"!==typeof e?null:(new DOMParser).parseFromString(e,"text/xml").querySelector("xfdf > add")?new x.a(e):new ha.a(e):null};e.prototype.merge=
|
|
5
|
+
function(e,w,x){var n=this;0===x&&(this.Hea(e,w.wp),this.Jea(e,w.VH));var h=w.ca[x];h&&(this.Kea(e,h.wn),this.Mea(e,h.n_,w.kw),this.Lea(e,h.page,x),this.Iea(e,h.UR));h=this.aa.Wb();if(x===h-1){var f=w.kw;Object.keys(f).forEach(function(h){f[h].FJ||n.LV(e,h,f[h])})}};e.prototype.Hea=function(e,w){null!==w&&(e=this.yv(e),this.Mq(e,"calculation-order",w))};e.prototype.Jea=function(e,w){null!==w&&(e=this.yv(e),this.Mq(e,"document-actions",w))};e.prototype.Kea=function(e,w){var x=this,n=this.xv(e.querySelector("xfdf"),
|
|
6
|
+
"annots");Object.keys(w).forEach(function(e){x.Mq(n,'[name="'+e+'"]',w[e])})};e.prototype.Mea=function(e,w,x){var n=this;if(0!==w.length){var h=this.yv(e);w.forEach(function(f){var r=f.getAttribute("field"),w=x[r];w&&(n.LV(e,r,w),n.Mq(h,"null",f))})}};e.prototype.LV=function(e,w,x){var n=this.yv(e);null!==x.TB&&this.Mq(n,'ffield [name="'+w+'"]',x.TB);e=this.xv(e.querySelector("xfdf"),"fields");w=w.split(".");this.rL(e,w,0,x.value);x.FJ=!0};e.prototype.Lea=function(e,w,x){null!==w&&(e=this.yv(e),e=
|
|
7
|
+
this.xv(e,"pages"),this.Mq(e,'[number="'+(x+1)+'"]',w))};e.prototype.Iea=function(e,w){Object.keys(w).forEach(function(w){(w=e.querySelector('annots [name="'+w+'"]'))&&w.parentElement.removeChild(w)})};e.prototype.rL=function(e,w,x,n){if(x===w.length)w=document.createElementNS("","value"),w.textContent=n,this.Mq(e,"value",w);else{var h=w[x];this.xv(e,'[name="'+h+'"]',"field").setAttribute("name",h);e=e.querySelectorAll('[name="'+h+'"]');1===e.length?this.rL(e[0],w,x+1,n):(h=this.t$(e),this.rL(x===
|
|
8
|
+
w.length-1?h:this.ula(e,h),w,x+1,n))}};e.prototype.t$=function(e){for(var w=null,x=0;x<e.length;x++){var n=e[x];if(0===n.childElementCount||1===n.childElementCount&&"value"===n.children[0].tagName){w=n;break}}return w};e.prototype.ula=function(e,w){for(var x=0;x<e.length;x++)if(e[x]!==w)return e[x];return null};e.prototype.Mq=function(e,w,x){w=e.querySelector(w);null!==w&&e.removeChild(w);e.appendChild(x)};e.prototype.yv=function(e){var w=e.querySelector("pdf-info");if(null!==w)return w;w=this.xv(e.querySelector("xfdf"),
|
|
9
9
|
"pdf-info");w.setAttribute("xmlns","http://www.pdftron.com/pdfinfo");w.setAttribute("version","2");w.setAttribute("import-version","4");return w};e.prototype.xv=function(e,w,x){var n=e.querySelector(w);if(null!==n)return n;n=document.createElementNS("",x||w);e.appendChild(n);return n};return e}();ba["default"]=ia},461:function(ia,ba){ia=function(){function e(){}e.prototype.wA=function(e){var x={wp:null,VH:null,kw:{},ca:{}};e=(new DOMParser).parseFromString(e,"text/xml");x.wp=e.querySelector("pdf-info calculation-order");
|
|
10
|
-
x.VH=e.querySelector("pdf-info document-actions");x.kw=this.
|
|
11
|
-
x.element.children[ca],"value"===da.tagName?e[x.name]={value:da.textContent,TB:null,FJ:!1}:da.children&&ba.push({name:x.name+"."+da.getAttribute("name"),element:da})}};e.prototype.
|
|
12
|
-
parseInt(e.getAttribute("number"),10)-1;x.SC(ba,ca);ba[ca].page=e});this.yT(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10),aa=e.getAttribute("name");x.SC(ba,ca);ba[ca].wn[aa]=e});this.kT(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10);e=e.textContent;x.SC(ba,ca);ba[ca].UR[e]=!0});return ba};e.prototype.SC=function(e,x){e[x]||(e[x]={wn:{},UR:{},
|
|
13
|
-
e.call(this)||this;aa.
|
|
14
|
-
ba,e){var ea=e(1);ia=function(e){function x(x){var ba=e.call(this)||this;ba.
|
|
10
|
+
x.VH=e.querySelector("pdf-info document-actions");x.kw=this.Dfa(e);x.ca=this.Pfa(e);return x};e.prototype.Dfa=function(e){var x=e.querySelector("fields");e=e.querySelectorAll("pdf-info > ffield");if(null===x&&null===e)return{};var ba={};this.r4(ba,x);this.p4(ba,e);return ba};e.prototype.r4=function(e,x){if(null!==x&&x.children){for(var ba=[],ca=0;ca<x.children.length;ca++){var da=x.children[ca];ba.push({name:da.getAttribute("name"),element:da})}for(;0!==ba.length;)for(x=ba.shift(),ca=0;ca<x.element.children.length;ca++)da=
|
|
11
|
+
x.element.children[ca],"value"===da.tagName?e[x.name]={value:da.textContent,TB:null,FJ:!1}:da.children&&ba.push({name:x.name+"."+da.getAttribute("name"),element:da})}};e.prototype.p4=function(e,x){x.forEach(function(x){var ba=x.getAttribute("name");e[ba]?e[ba].TB=x:e[ba]={value:null,TB:x,FJ:!1}})};e.prototype.Pfa=function(e){var x=this,ba={};e.querySelectorAll("pdf-info widget").forEach(function(e){var ca=parseInt(e.getAttribute("page"),10)-1;x.SC(ba,ca);ba[ca].n_.push(e)});e.querySelectorAll("pdf-info page").forEach(function(e){var ca=
|
|
12
|
+
parseInt(e.getAttribute("number"),10)-1;x.SC(ba,ca);ba[ca].page=e});this.yT(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10),aa=e.getAttribute("name");x.SC(ba,ca);ba[ca].wn[aa]=e});this.kT(e).forEach(function(e){var ca=parseInt(e.getAttribute("page"),10);e=e.textContent;x.SC(ba,ca);ba[ca].UR[e]=!0});return ba};e.prototype.SC=function(e,x){e[x]||(e[x]={wn:{},UR:{},n_:[],page:null})};return e}();ba.a=ia},476:function(ia,ba,e){var ea=e(1),x=e(0);e.n(x);ia=function(e){function ba(x){var aa=
|
|
13
|
+
e.call(this)||this;aa.g$=Array.isArray(x)?x:[x];return aa}Object(ea.c)(ba,e);ba.prototype.parse=function(){var e=this,aa={wp:null,VH:null,kw:{},ca:{}};this.g$.forEach(function(w){aa=Object(x.merge)(aa,e.wA(w))});return aa};ba.prototype.yT=function(e){var x=[];e.querySelectorAll("add > *").forEach(function(e){x.push(e)});e.querySelectorAll("modify > *").forEach(function(e){x.push(e)});return x};ba.prototype.kT=function(e){return e.querySelectorAll("delete > *")};return ba}(e(461).a);ba.a=ia},477:function(ia,
|
|
14
|
+
ba,e){var ea=e(1);ia=function(e){function x(x){var ba=e.call(this)||this;ba.h$=x;return ba}Object(ea.c)(x,e);x.prototype.parse=function(){return this.wA(this.h$)};x.prototype.yT=function(e){return e.querySelectorAll("annots > *")};x.prototype.kT=function(){return[]};return x}(e(461).a);ba.a=ia}}]);}).call(this || window)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{441:function(ia,ba,e){e.r(ba);var ea=e(1);ia=e(51);var x=e(163),ha=e(376),ca=e(229),da=window;e=function(){function e(e,x){this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[8],{441:function(ia,ba,e){e.r(ba);var ea=e(1);ia=e(51);var x=e(163),ha=e(376),ca=e(229),da=window;e=function(){function e(e,x){this.ZU=function(e){e=e.split(".");return e[e.length-1].match(/(jpg|jpeg|png|gif)$/i)};x=x||{};this.url=e;this.filename=x.filename||e;this.jf=x.customHeaders;this.cma=!!x.useDownloader;this.withCredentials=!!x.withCredentials}e.prototype.vE=function(e){this.jf=e};e.prototype.getCustomHeaders=function(){return this.jf};
|
|
3
3
|
e.prototype.getFileData=function(w){var y=this,n=this,h=new XMLHttpRequest,f=0===this.url.indexOf("blob:")?"blob":"arraybuffer";h.open("GET",this.url,!0);h.withCredentials=this.withCredentials;h.responseType=f;this.jf&&Object.keys(this.jf).forEach(function(e){h.setRequestHeader(e,y.jf[e])});var r=/^https?:/i.test(this.url);h.addEventListener("load",function(f){return Object(ea.b)(this,void 0,void 0,function(){var h,y,z,aa,ba,da;return Object(ea.d)(this,function(ea){switch(ea.label){case 0:if(200!==
|
|
4
|
-
this.status&&(r||0!==this.status))return[3,10];n.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,f.loaded]);if("blob"!==this.responseType)return[3,4];h=this.response;return n.
|
|
5
|
-
if(!n.
|
|
6
|
-
function(f){n.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,0<f.total?f.total:0])};h.addEventListener("error",function(){n.trigger(e.Events.ERROR,["pdfLoad","Network failure"]);n.Yy=null},!1);h.send();this.Yy=h};e.prototype.getFile=function(){var e=this;return new Promise(function(w){da.utils.isJSWorker&&w(e.url);if(e.
|
|
4
|
+
this.status&&(r||0!==this.status))return[3,10];n.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,f.loaded]);if("blob"!==this.responseType)return[3,4];h=this.response;return n.ZU(n.filename)?[4,Object(ca.b)(h)]:[3,2];case 1:return y=ea.ea(),n.fileSize=y.byteLength,w(new Uint8Array(y)),[3,3];case 2:z=new FileReader,z.onload=function(e){e=new Uint8Array(e.target.result);n.fileSize=e.length;w(e)},z.readAsArrayBuffer(h),ea.label=3;case 3:return[3,9];case 4:ea.Gg.push([4,8,,9]);aa=new Uint8Array(this.response);
|
|
5
|
+
if(!n.ZU(n.filename))return[3,6];h=new Blob([aa.buffer]);return[4,Object(ca.b)(h)];case 5:return y=ea.ea(),n.fileSize=y.byteLength,w(new Uint8Array(y)),[3,7];case 6:n.fileSize=aa.length,w(aa),ea.label=7;case 7:return[3,9];case 8:return ea.ea(),n.trigger(e.Events.ERROR,["pdfLoad","Out of memory"]),[3,9];case 9:return[3,11];case 10:ba=f.currentTarget,da=Object(x.b)(ba),n.trigger(e.Events.ERROR,["pdfLoad",this.status+" "+ba.statusText,da]),ea.label=11;case 11:return n.Yy=null,[2]}})})},!1);h.onprogress=
|
|
6
|
+
function(f){n.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[f.loaded,0<f.total?f.total:0])};h.addEventListener("error",function(){n.trigger(e.Events.ERROR,["pdfLoad","Network failure"]);n.Yy=null},!1);h.send();this.Yy=h};e.prototype.getFile=function(){var e=this;return new Promise(function(w){da.utils.isJSWorker&&w(e.url);if(e.cma){var n=Object(ea.a)({url:e.url},e.jf?{customHeaders:e.jf}:{});w(n)}w(null)})};e.prototype.abort=function(){this.Yy&&(this.Yy.abort(),this.Yy=null)};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress",
|
|
7
7
|
ERROR:"error"};return e}();Object(ia.a)(e);Object(ha.a)(e);Object(ha.b)(e);ba["default"]=e}}]);}).call(this || window)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[0],{434:function(ia,ba,e){e.r(ba);e.d(ba,"ByteRangeRequest",function(){return ka});var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(147);ia=e(94);var da=e(246),aa=e(73),w=e(71),y=e(245),n=e(163);e=e(376);var h=[],f=[],r=window,z=function(){return function(){this.um=1}}(),fa;(function(e){e[e.UNSENT=0]="UNSENT";e[e.DONE=4]="DONE"})(fa||(fa={}));var ka=function(){function e(e,f,h,n){var w=this;this.url=e;this.range=f;this.jf=h;this.withCredentials=
|
|
3
|
-
n;this.
|
|
4
|
-
this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(e){var f=this,h=this.request;h.onreadystatechange=function(){if(f.aborted)return f.status=y.a.ABORTED,e({code:y.a.ABORTED});if(this.readyState===f.
|
|
3
|
+
n;this.e2=fa;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);r.Uint8Array&&(this.request.responseType="arraybuffer");n&&(this.request.withCredentials=n);ja.DISABLE_RANGE_HEADER||(Object(x.isUndefined)(f.stop)?this.request.setRequestHeader("Range","bytes="+f.start):this.request.setRequestHeader("Range",["bytes=",f.start,"-",f.stop-1].join("")));h&&Object.keys(h).forEach(function(e){w.request.setRequestHeader(e,h[e])});this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):
|
|
4
|
+
this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(e){var f=this,h=this.request;h.onreadystatechange=function(){if(f.aborted)return f.status=y.a.ABORTED,e({code:y.a.ABORTED});if(this.readyState===f.e2.DONE){f.tC();var n=0===window.document.URL.indexOf("file:///");200===h.status||206===h.status||n&&0===h.status?(n=r.QT(this),f.ku(n,e)):(f.status=y.a.ERROR,e({code:f.status,status:f.status}))}};this.request.send(null);this.status=y.a.STARTED};
|
|
5
5
|
e.prototype.ku=function(e,f){this.status=y.a.SUCCESS;if(f)return f(!1,e)};e.prototype.abort=function(){this.tC();this.aborted=!0;this.request.abort()};e.prototype.tC=function(){var r=Object(n.c)(this.url,this.range,f);-1!==r&&f.splice(r,1);if(0<h.length){r=h.shift();var w=new e(r.url,r.range,this.jf,this.withCredentials);r.request=w;f.push(r);w.start(Object(n.d)(r))}};e.prototype.extend=function(e){var f=Object.assign({},this,e.prototype);f.constructor=e;return f};return e}(),ja=function(e){function r(f,
|
|
6
|
-
h,n,r,w){n=e.call(this,f,n,r)||this;n.xm={};n.YA=h;n.url=f;n.DISABLE_RANGE_HEADER=!1;n.Tx=ka;n.NN=3;n.jf=w||{};return n}Object(ea.c)(r,e);r.prototype.Rv=function(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(h){case !1:case w.a.NEVER_CACHE:e=e+n+"_="+Object(x.uniqueId)();break;case !0:case w.a.CACHE:e=e+n+"_="+f.start+","+(Object(x.isUndefined)(f.stop)?"":f.stop)}return e};r.prototype.HR=function(e,f,h,n){void 0===h&&(h={});return new this.Tx(e,f,h,n)};r.prototype.
|
|
7
|
-
0;y<h.length;y++)if(Object(x.isEqual)(h[y].range,n)&&Object(x.isEqual)(h[y].url,e))return h[y].Vg.push(w),h[y].xD++,null;for(y=0;y<f.length;y++)if(Object(x.isEqual)(f[y].range,n)&&Object(x.isEqual)(f[y].url,e))return f[y].Vg.push(w),f[y].xD++,null;r={url:e,range:n,YA:r,Vg:[w],xD:1};if(0===h.length&&f.length<this.NN)return f.push(r),r.request=this.HR(e,n,z,this.withCredentials),r;h.push(r);return null};r.prototype.oo=function(e,r,w){var x=this.Rv(e,r,this.YA);(e=this.
|
|
8
|
-
return function(){var e=Object(n.c)(x,r,f);if(-1!==e){var w=--f[e].xD;0===w&&f[e].request&&f[e].request.abort()}else e=Object(n.c)(x,r,h),-1!==e&&(w=--h[e].xD,0===w&&h.splice(e,1))}};r.prototype.pT=function(){return{start:-ca.a}};r.prototype.
|
|
9
|
-
n),e(n);r=Object(aa.a)(r);if(r.length!==h.stop-h.start)return e("Invalid XOD file: Zip central directory data is wrong size! Should be "+(h.stop-h.start)+" but is "+r.length);f.
|
|
10
|
-
h),e(h);n=Object(aa.a)(n);f.
|
|
11
|
-
0===y.$r.um&&(x(),delete h.xm[n])},this.xm[n]=new z(n),y.$r=this.xm[n],y.$r.cancel=y.cancel)}}else delete this.bi[e],f(Error('File not found: "'+e+'"'),e)};r.prototype.
|
|
12
|
-
delete this.xm[h]}};r.DISABLE_RANGE_HEADER=!1;r.NN=3;return r}(ia.a);(function(e){function f(f,h,n){var r=e.call(this)||this,w;for(w in f)r[w]=f[w];r.
|
|
6
|
+
h,n,r,w){n=e.call(this,f,n,r)||this;n.xm={};n.YA=h;n.url=f;n.DISABLE_RANGE_HEADER=!1;n.Tx=ka;n.NN=3;n.jf=w||{};return n}Object(ea.c)(r,e);r.prototype.Rv=function(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(h){case !1:case w.a.NEVER_CACHE:e=e+n+"_="+Object(x.uniqueId)();break;case !0:case w.a.CACHE:e=e+n+"_="+f.start+","+(Object(x.isUndefined)(f.stop)?"":f.stop)}return e};r.prototype.HR=function(e,f,h,n){void 0===h&&(h={});return new this.Tx(e,f,h,n)};r.prototype.V9=function(e,n,r,w,z){for(var y=
|
|
7
|
+
0;y<h.length;y++)if(Object(x.isEqual)(h[y].range,n)&&Object(x.isEqual)(h[y].url,e))return h[y].Vg.push(w),h[y].xD++,null;for(y=0;y<f.length;y++)if(Object(x.isEqual)(f[y].range,n)&&Object(x.isEqual)(f[y].url,e))return f[y].Vg.push(w),f[y].xD++,null;r={url:e,range:n,YA:r,Vg:[w],xD:1};if(0===h.length&&f.length<this.NN)return f.push(r),r.request=this.HR(e,n,z,this.withCredentials),r;h.push(r);return null};r.prototype.oo=function(e,r,w){var x=this.Rv(e,r,this.YA);(e=this.V9(x,r,this.YA,w,this.jf))&&e.request.start(Object(n.d)(e));
|
|
8
|
+
return function(){var e=Object(n.c)(x,r,f);if(-1!==e){var w=--f[e].xD;0===w&&f[e].request&&f[e].request.abort()}else e=Object(n.c)(x,r,h),-1!==e&&(w=--h[e].xD,0===w&&h.splice(e,1))}};r.prototype.pT=function(){return{start:-ca.a}};r.prototype.vca=function(){var e=-(ca.a+ca.e);return{start:e-ca.d,end:e}};r.prototype.ot=function(e){var f=this;this.dB=!0;var h=ca.a;this.oo(this.url,this.pT(),function(n,r,w){function x(){var h=f.de.lT();f.oo(f.url,h,function(n,r){if(n)return Object(ha.j)("Error loading central directory: "+
|
|
9
|
+
n),e(n);r=Object(aa.a)(r);if(r.length!==h.stop-h.start)return e("Invalid XOD file: Zip central directory data is wrong size! Should be "+(h.stop-h.start)+" but is "+r.length);f.de.iX(r);f.vH=!0;f.dB=!1;return e(!1)})}if(n)return Object(ha.j)("Error loading end header: "+n),e(n,r,w);r=Object(aa.a)(r);if(r.length!==h)return e("Invalid XOD file: Zip end header data is wrong size!");try{f.de=new da.a(r)}catch(oa){return e(oa)}f.de.bea?f.oo(f.url,f.vca(),function(h,n){if(h)return Object(ha.j)("Error loading zip64 header: "+
|
|
10
|
+
h),e(h);n=Object(aa.a)(n);f.de.uea(n);x()}):x()})};r.prototype.MT=function(e){e(Object.keys(this.de.Ln))};r.prototype.uL=function(e,f){var h=this;if(this.de.zR(e)){var n=this.de.oC(e);if(n in this.xm){var r=this.bi[e];r.$r=this.xm[n];r.$r.um++;r.cancel=r.$r.cancel}else{var w=this.de.Kaa(e),x=this.oo(this.url,w,function(r,x){r?(Object(ha.j)('Error loading part "'+e+'": '+r),h.oo(h.url,w,function(r,x){if(r)return f(r,e);h.mX(x,w,n,e,f)})):h.mX(x,w,n,e,f)}),y=this.bi[e];y&&(y.vZ=!0,y.cancel=function(){y.$r.um--;
|
|
11
|
+
0===y.$r.um&&(x(),delete h.xm[n])},this.xm[n]=new z(n),y.$r=this.xm[n],y.$r.cancel=y.cancel)}}else delete this.bi[e],f(Error('File not found: "'+e+'"'),e)};r.prototype.mX=function(e,f,h,n,r){if(e.length!==f.stop-f.start)r(Error("Part data is wrong size!"),n);else{do{if(!this.xm[h])return;n=this.xm[h].um;for(var w=f.Nq.length,x=0;x<w;++x){var z=f.Nq[x];r(!1,z.Jq,e["string"===typeof e?"substring":"subarray"](z.start,z.stop),this.de.PU(z.Jq));z.Jq in this.bi&&delete this.bi[z.Jq]}}while(n!==this.xm[h].um);
|
|
12
|
+
delete this.xm[h]}};r.DISABLE_RANGE_HEADER=!1;r.NN=3;return r}(ia.a);(function(e){function f(f,h,n){var r=e.call(this)||this,w;for(w in f)r[w]=f[w];r.Hpa=f;r.startOffset=h;r.endOffset=n;r.HR=function(e,h,n,w){Object(x.isUndefined)(h.stop)?(h.start+=r.endOffset,h.stop=r.endOffset):(h.start+=r.startOffset,h.stop+=r.startOffset);e=r.Rv(r.url,h,r.YA);return new f.Tx(e,h,n,w)};return r}Object(ea.c)(f,e);return f})(ja);Object(e.a)(ja);Object(e.b)(ja);ba["default"]=ja}}]);}).call(this || window)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[9],{442:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(245);ia=e(434);var ha=e(34);e=e(376);var ca={},da=function(e){function w(w,n){var h=e.call(this,w,n)||this;h.url=w;h.range=n;h.status=x.a.NOT_STARTED;return h}Object(ea.c)(w,e);w.prototype.start=function(e){var n=this;ca[this.range.start]={ku:function(f){var h=atob(f),w,x=h.length;f=new Uint8Array(x);for(w=0;w<x;++w)f[w]=h.charCodeAt(w);h=f.length;w="";var y=0;if(Object(ha.q)())for(;y<
|
|
3
3
|
h;)x=f.subarray(y,y+1024),y+=1024,w+=String.fromCharCode.apply(null,x);else for(x=Array(1024);y<h;){for(var aa=0,da=Math.min(y+1024,h);y<da;aa++,y++)x[aa]=f[y];w+=String.fromCharCode.apply(null,1024>aa?x.slice(0,aa):x)}n.ku(w,e)},AS:function(){n.status=x.a.ERROR;e({code:n.status})}};var h=document.createElement("IFRAME");h.setAttribute("src",this.url);document.documentElement.appendChild(h);h.parentNode.removeChild(h);h=null;this.status=x.a.STARTED;n.tC()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,
|
|
4
|
-
n,h,f){w=e.call(this,w,n,h,f)||this;w.Tx=da;return w}Object(ea.c)(w,e);w.prototype.Rv=function(e,n){return e+"#"+n.start+"&"+(n.stop?n.stop:"")};w.
|
|
4
|
+
n,h,f){w=e.call(this,w,n,h,f)||this;w.Tx=da;return w}Object(ea.c)(w,e);w.prototype.Rv=function(e,n){return e+"#"+n.start+"&"+(n.stop?n.stop:"")};w.Mpa=function(e,n){var h=ca[n];delete ca[n];h.ku(e)};w.Lpa=function(e,n){e=ca[n];delete ca[n];e.AS()};return w}(ia["default"]);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[10],{436:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(2),ha=e(147);ia=e(94);var ca=e(246);e=e(376);var da=window;ia=function(e){function w(w,n,h){n=e.call(this,w,n,h)||this;if(w.name&&"xod"!==w.name.toLowerCase().split(".").pop())throw Error("Not an XOD file");if(!da.FileReader||!da.File||!da.Blob)throw Error("File API is not supported in this browser");n.file=w;n.hB=[];n.KH=0;return n}Object(ea.c)(w,e);w.prototype.xK=function(e,n,
|
|
3
|
-
h){var f=this,r=new FileReader;r.onloadend=function(e){if(0<f.hB.length){var w=f.hB.shift();w
|
|
4
|
-
f.hB.push({
|
|
5
|
-
n.
|
|
3
|
+
h){var f=this,r=new FileReader;r.onloadend=function(e){if(0<f.hB.length){var w=f.hB.shift();w.aha.readAsBinaryString(w.file)}else f.KH--;if(r.error){e=r.error;if(e.code===e.ABORT_ERR){Object(x.j)("Request for chunk "+n.start+"-"+n.stop+" was aborted");return}return h(e)}if(e=r.content||e.target.result)return h(!1,e);Object(x.j)("No data was returned from FileReader.")};n&&(e=(e.slice||e.webkitSlice||e.mozSlice||e.Eoa).call(e,n.start,n.stop));0===f.hB.length&&50>f.KH?(r.readAsBinaryString(e),f.KH++):
|
|
4
|
+
f.hB.push({aha:r,file:e});return function(){r.abort()}};w.prototype.ot=function(e){var n=this;n.dB=!0;var h=ha.a;n.xK(n.file,{start:-h,stop:n.file.size},function(f,r){if(f)return Object(x.j)("Error loading end header: %s "+f),e(f);if(r.length!==h)throw Error("Zip end header data is wrong size!");n.de=new ca.a(r);var w=n.de.lT();n.xK(n.file,w,function(f,h){if(f)return Object(x.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!");
|
|
5
|
+
n.de.iX(h);n.vH=!0;n.dB=!1;return e(!1)})})};w.prototype.uL=function(e,n){var h=this,f=h.bi[e];if(h.de.zR(e)){var r=h.de.zw(e),w=h.xK(h.file,r,function(f,w){delete h.bi[e];if(f)return Object(x.j)('Error loading part "%s": %s, '+e+", "+f),n(f);if(w.length!==r.stop-r.start)throw Error("Part data is wrong size!");n(!1,e,w,h.de.PU(e))});f.vZ=!0;f.cancel=w}else n(Error('File not found: "'+e+'"'),e)};return w}(ia.a);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{437:function(ia,ba,e){e.r(ba);var ea=e(1);ia=e(51);var x=e(376),ha=e(229),ca=e(19),da=window;e=function(){function e(e){var w=this;this.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[11],{437:function(ia,ba,e){e.r(ba);var ea=e(1);ia=e(51);var x=e(376),ha=e(229),ca=e(19),da=window;e=function(){function e(e){var w=this;this.Bda=function(e){return e&&("image"===e.type.split("/")[0].toLowerCase()||e.name&&!!e.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=e;this.Oda=new Promise(function(n){return Object(ea.b)(w,void 0,void 0,function(){var h;return Object(ea.d)(this,function(f){switch(f.label){case 0:return this.Bda(this.file)?
|
|
3
3
|
[4,Object(ha.b)(e)]:[3,2];case 1:h=f.ea(),this.file=ca.p?new Blob([h],{type:e.type}):new File([h],null===e||void 0===e?void 0:e.name,{type:e.type}),f.label=2;case 2:return n(!0),[2]}})})})}e.prototype.getFileData=function(w){var x=this,n=new FileReader;n.onload=function(h){x.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,h.loaded]);w(new Uint8Array(h.target.result))};n.onprogress=function(h){h.lengthComputable&&x.trigger(e.Events.DOCUMENT_LOADING_PROGRESS,[h.loaded,0<h.total?h.total:0])};n.readAsArrayBuffer(this.file)};
|
|
4
|
-
e.prototype.getFile=function(){return Object(ea.b)(this,void 0,Promise,function(){return Object(ea.d)(this,function(e){switch(e.label){case 0:return[4,this.
|
|
4
|
+
e.prototype.getFile=function(){return Object(ea.b)(this,void 0,Promise,function(){return Object(ea.d)(this,function(e){switch(e.label){case 0:return[4,this.Oda];case 1:return e.ea(),da.utils.isJSWorker?[2,this.file.path]:[2,this.file]}})})};e.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return e}();Object(ia.a)(e);Object(x.a)(e);Object(x.b)(e);ba["default"]=e}}]);}).call(this || window)
|
|
@@ -6,11 +6,11 @@ f=new pa.d(n.x,n.y,f.x,f.y);h.top=f.ja;h.left=f.na;h.bottom=f.ka;h.right=f.oa;br
|
|
|
6
6
|
default:Object(fa.j)("unrecognised hide child: "+f)}e.$a();return h;case "named":return{name:"Named",action:e.fa("name")};default:Object(fa.j)("Encountered unexpected action type: "+h)}return null}function da(e,f,h){var n={};for(e.Ka();e.advance();){var r=e.Oa();switch(r){case "action":r=e.fa("trigger");if(f?-1!==f.indexOf(r):1){n[r]=[];for(e.Ka();e.advance();){var w=ca(e,h);Object(ka.isNull)(w)||n[r].push(w)}e.$a()}else Object(fa.j)("encountered unexpected trigger on field: "+r);break;default:Object(fa.j)("encountered unknown action child: "+
|
|
7
7
|
r)}}e.$a();return n}function aa(e){return new ma.a(e.fa("r")||0,e.fa("g")||0,e.fa("b")||0,e.fa("a")||1)}function w(e,f){var h=e.fa("name"),n=e.fa("type")||"Type1",r=e.fa("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.Ka();e.advance();)switch(n=e.Oa(),n){case "stroke-color":h.strokeColor=aa(e);break;case "fill-color":h.fillColor=aa(e);break;default:Object(fa.j)("unrecognised font child: "+
|
|
8
8
|
n)}e.$a();return h}function y(e){return{value:e.fa("value"),displayValue:e.fa("display-value")||void 0}}function n(e){var f=[];for(e.Ka();e.advance();){var h=e.Oa();switch(h){case "option":f.push(y(e));break;default:Object(fa.j)("unrecognised options child: "+h)}}e.$a();return f}function h(e,f){var h=e.fa("name"),r={type:e.fa("type"),quadding:e.fa("quadding")||"Left-justified",maxLen:e.fa("max-len")||-1},x=e.fa("flags");Object(ka.isString)(x)&&(r.flags=x.split(" "));for(e.Ka();e.advance();)switch(x=
|
|
9
|
-
e.Oa(),x){case "actions":r.actions=da(e,["C","F","K","V"],function(){return f});break;case "default-value":r.defaultValue=ea(e);break;case "font":r.font=w(e,f);break;case "options":r.options=n(e);break;default:Object(fa.j)("unknown field child: "+x)}e.$a();return new window.Annotations.ha.va(h,r)}function f(e,f){switch(e.type){case "Tx":try{if(Object(na.c)(e.actions))return new ja.a.DatePickerWidgetAnnotation(e,f)}catch(
|
|
10
|
-
new ja.a.ChoiceWidgetAnnotation(e,f):new ja.a.ListWidgetAnnotation(e,f);case "Btn":return e.flags.get(
|
|
11
|
-
da(e,["O","C"],f);break;default:Object(fa.j)("unrecognised page child: "+n)}}e.$a();return h}function z(e,n,y,z){var ba=[],ca={};e.Ka();var ea=[],ha={},
|
|
12
|
-
|
|
13
|
-
new pa.d(z.x,z.y,
|
|
14
|
-
"appearances");for(z.Ka();z.advance();)if(
|
|
15
|
-
ka)}z.$a();z=
|
|
16
|
-
widgets:ba,fields:ca,documentActions:ha,pages:
|
|
9
|
+
e.Oa(),x){case "actions":r.actions=da(e,["C","F","K","V"],function(){return f});break;case "default-value":r.defaultValue=ea(e);break;case "font":r.font=w(e,f);break;case "options":r.options=n(e);break;default:Object(fa.j)("unknown field child: "+x)}e.$a();return new window.Annotations.ha.va(h,r)}function f(e,f){switch(e.type){case "Tx":try{if(Object(na.c)(e.actions))return new ja.a.DatePickerWidgetAnnotation(e,f)}catch(qa){Object(fa.j)(qa)}return new ja.a.TextWidgetAnnotation(e,f);case "Ch":return e.flags.get(ra.WidgetFlags.COMBO)?
|
|
10
|
+
new ja.a.ChoiceWidgetAnnotation(e,f):new ja.a.ListWidgetAnnotation(e,f);case "Btn":return e.flags.get(ra.WidgetFlags.PUSH_BUTTON)?new ja.a.PushButtonWidgetAnnotation(e,f):e.flags.get(ra.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(fa.j)("Unrecognised field type: "+e.type)}return null}function r(e,f){var h={number:e.fa("number")};for(e.Ka();e.advance();){var n=e.Oa();switch(n){case "actions":h.actions=
|
|
11
|
+
da(e,["O","C"],f);break;default:Object(fa.j)("unrecognised page child: "+n)}}e.$a();return h}function z(e,n,y,z){var ba=[],ca={};e.Ka();var ea=[],ha={},ja=[];Object(la.a)(function(){if(e.advance()){var y=e.Oa();switch(y){case "calculation-order":ea="calculation-order"===e.Oa()?x(e):[];break;case "document-actions":ha=da(e,["Init","Open"],n);break;case "pages":y=[];for(e.Ka();e.advance();){var z=e.Oa();switch(z){case "page":y.push(r(e,n));break;default:Object(fa.j)("unrecognised page child: "+z)}}e.$a();
|
|
12
|
+
ja=y;break;case "field":z=h(e,n(1));ca[z.name]=z;break;case "widget":y={border:{style:"Solid",width:1},backgroundColor:[],fieldName:e.fa("field"),page:e.fa("page"),index:e.fa("index")||0,rotation:e.fa("rotation")||0,flags:[],isImporting:!0};(z=e.fa("appearance"))&&(y.appearance=z);(z=e.fa("flags"))&&(y.flags=z.split(" "));for(e.Ka();e.advance();)switch(z=e.Oa(),z){case "rect":var ia=e,qa=n(Number(y.page));z=qa.ra({x:ia.fa("x1")||0,y:ia.fa("y1")||0});ia=qa.ra({x:ia.fa("x2")||0,y:ia.fa("y2")||0});z=
|
|
13
|
+
new pa.d(z.x,z.y,ia.x,ia.y);z.normalize();y.rect={x1:z.x1,y1:z.y1,x2:z.x2,y2:z.y2};break;case "border":z=e;ia={style:z.fa("style")||"Solid",width:z.fa("width")||1,color:[0,0,0]};for(z.Ka();z.advance();)switch(qa=z.Oa(),qa){case "color":ia.color=aa(z);break;default:Object(fa.j)("unrecognised border child: "+qa)}z.$a();y.border=ia;break;case "background-color":y.backgroundColor=aa(e);break;case "actions":y.actions=da(e,"E X D U Fo Bl PO PC PV PI".split(" "),n);break;case "appearances":z=e;ia=Object(na.b)(y,
|
|
14
|
+
"appearances");for(z.Ka();z.advance();)if(qa=z.Oa(),"appearance"===qa){qa=z.fa("name");var ka=Object(na.b)(ia,qa);qa=z;for(qa.Ka();qa.advance();){var la=qa.Oa();switch(la){case "Normal":Object(na.b)(ka,"Normal").data=qa.current.textContent;break;default:Object(fa.j)("unexpected appearance state: ",la)}}qa.$a()}else Object(fa.j)("unexpected appearances child: "+qa);z.$a();break;case "extra":z=e;ia=n;qa={};for(z.Ka();z.advance();)switch(ka=z.Oa(),ka){case "font":qa.font=w(z,ia(1));break;default:Object(fa.j)("unrecognised extra child: "+
|
|
15
|
+
ka)}z.$a();z=qa;z.font&&(y.font=z.font);break;case "captions":ia=e;z={};(qa=ia.fa("Normal"))&&(z.Normal=qa);(qa=ia.fa("Rollover"))&&(z.Rollover=qa);(ia=ia.fa("Down"))&&(z.Down=ia);y.captions=z;break;default:Object(fa.j)("unrecognised widget child: "+z)}e.$a();(z=ca[y.fieldName])?(y=f(z,y),ba.push(y)):Object(fa.j)("ignoring widget with no corresponding field data: "+y.fieldName);break;default:Object(fa.j)("Unknown element encountered in PDFInfo: "+y)}return!0}return!1},function(){e.$a();y({calculationOrder:ea,
|
|
16
|
+
widgets:ba,fields:ca,documentActions:ha,pages:ja,custom:[]})},z)}e.r(ba);e.d(ba,"parse",function(){return z});var fa=e(2),ka=e(0);e.n(ka);var ja=e(117),pa=e(4),ma=e(8),la=e(19),na=e(102),ra=e(25)}}]);}).call(this || window)
|
|
@@ -4,12 +4,12 @@ x++):128>n?(w+=String.fromCharCode(n),x++):191<n&&224>n?(h=e.charCodeAt(x+1),w+=
|
|
|
4
4
|
Object(x.a)(n);h.gm();){var f=h.current;try{var r=parseInt(f.trim(),10);this.we.push(r)}catch(la){}}Object(ha.b)(this.jc);w.advance();y=w.current.textContent;n=y.split(",");for(var z=Object(x.a)(n);z.gm();){f=z.current;try{r=parseFloat(f.trim()),this.jc.push(r)}catch(la){}}Object(ha.b)(this.ub);w.advance();y=w.current.textContent;n=y.split(",");e=[];w=[];y=0;for(var aa=Object(x.a)(n);aa.gm();){f=aa.current;switch(f){case "Q":y=1;break;case "R":y=2;break;case "S":y=3;break;default:y=0}if(y)e.push(0),
|
|
5
5
|
w.push(y);else try{r=parseFloat(f.trim()),e.push(r),w.push(y)}catch(la){return}}y=0;var ba=e.length;h=aa=f=n=void 0;for(var da=z=0,ea=0;ea<ba;){var ia=w[ea];if(0<ia)y=ia,++ea,3===y&&(z=e[ea],da=e[ea+1],ea+=2);else if(1===y)for(r=0;8>r;++r)this.ub.push(e[ea++]);else 2===y?(n=e[ea++],f=e[ea++],aa=e[ea++],h=e[ea++],this.ub.push(n),this.ub.push(f),this.ub.push(aa),this.ub.push(f),this.ub.push(aa),this.ub.push(h),this.ub.push(n),this.ub.push(h)):3===y&&(n=e[ea++],f=z,aa=e[ea++],h=da,this.ub.push(n),this.ub.push(f),
|
|
6
6
|
this.ub.push(aa),this.ub.push(f),this.ub.push(aa),this.ub.push(h),this.ub.push(n),this.ub.push(h))}}catch(la){return}this.Rb.length&&this.Rb.length===this.we.length&&8*this.Rb.length===this.ub.length&&(this.Oe=!0)};e.prototype.ready=function(){return this.Oe};e.prototype.Aw=function(){var e=new ea.a;if(!this.jc.length)return e.dh(this.jc,-1,this.Rb,this.ub,0),e;e.dh(this.jc,1,this.Rb,this.ub,1);return e};e.prototype.nf=function(){return this.ub};e.prototype.getData=function(){return{m_Struct:this.jc,
|
|
7
|
-
m_Str:this.Rb,m_Offsets:this.we,m_Quads:this.ub,m_Ready:this.Oe}};return e}();ba["default"]=ia},462:function(ia,ba,e){var ea=e(86),x=e(50),ha=e(478);ia=function(){function e(){this.
|
|
8
|
-
e.prototype.bm=function(){return 0<this.bf[this.
|
|
9
|
-
-1,this.Ea,this.rb,0),x;var aa=new e;aa.dh(this.bf,x,this.Ea,this.rb,this.Oc+1);return aa};e.prototype.Je=function(e){if(this.bm())e.na=this.bf[this.
|
|
10
|
-
var e=new x.a,aa=new x.a,w=new ha.a;w.md();var y=this.Yg(),n=new ha.a;n.md();for(var h=this.Yg();!h.Fc(w);h=h.$g())n=h;w=Array(8);h=Array(8);y.Ke(0,w);e.x=(w[0]+w[2]+w[4]+w[6])/4;e.y=(w[1]+w[3]+w[5]+w[7])/4;n.Ke(n.ek()-1,h);aa.x=(h[0]+h[2]+h[4]+h[6])/4;aa.y=(h[1]+h[3]+h[5]+h[7])/4;.01>Math.abs(e.x-aa.x)&&.01>Math.abs(e.y-aa.y)&&this.
|
|
7
|
+
m_Str:this.Rb,m_Offsets:this.we,m_Quads:this.ub,m_Ready:this.Oe}};return e}();ba["default"]=ia},462:function(ia,ba,e){var ea=e(86),x=e(50),ha=e(478);ia=function(){function e(){this.fe=0;this.rb=this.Ea=this.bf=null;this.Oc=0;this.ee=null}e.prototype.md=function(){this.fe=-1;this.Oc=0;this.ee=[]};e.prototype.dh=function(e,x,w,y,n){this.fe=x;this.Oc=n;this.ee=[];this.bf=e;this.Ea=w;this.rb=y};e.prototype.Fc=function(e){return this.fe===e.fe};e.prototype.fk=function(){return Math.abs(this.bf[this.fe])};
|
|
8
|
+
e.prototype.bm=function(){return 0<this.bf[this.fe]};e.prototype.Yg=function(){var e=this.bm()?6:10,x=new ha.a;x.dh(this.bf,this.fe+e,this.fe,this.Ea,this.rb,1);return x};e.prototype.gU=function(e){if(0>e||e>=this.fk())return e=new ha.a,e.dh(this.bf,-1,-1,this.Ea,this.rb,0),e;var x=this.bm()?6:10,w=this.bm()?5:11,y=new ha.a;y.dh(this.bf,this.fe+x+w*e,this.fe,this.Ea,this.rb,1+e);return y};e.prototype.Vn=function(){var x=this.fe+parseInt(this.bf[this.fe+1],10);if(x>=this.bf.length)return x=new e,x.dh(this.bf,
|
|
9
|
+
-1,this.Ea,this.rb,0),x;var aa=new e;aa.dh(this.bf,x,this.Ea,this.rb,this.Oc+1);return aa};e.prototype.Je=function(e){if(this.bm())e.na=this.bf[this.fe+2+0],e.ja=this.bf[this.fe+2+1],e.oa=this.bf[this.fe+2+2],e.ka=this.bf[this.fe+2+3];else{for(var x=1.79769E308,w=ea.a.MIN,y=1.79769E308,n=ea.a.MIN,h=0;4>h;++h){var f=this.bf[this.fe+2+2*h],r=this.bf[this.fe+2+2*h+1];x=Math.min(x,f);w=Math.max(w,f);y=Math.min(y,r);n=Math.max(n,r)}e.na=x;e.ja=y;e.oa=w;e.ka=n}};e.prototype.lC=function(){if(this.ee.length)return this.ee[0];
|
|
10
|
+
var e=new x.a,aa=new x.a,w=new ha.a;w.md();var y=this.Yg(),n=new ha.a;n.md();for(var h=this.Yg();!h.Fc(w);h=h.$g())n=h;w=Array(8);h=Array(8);y.Ke(0,w);e.x=(w[0]+w[2]+w[4]+w[6])/4;e.y=(w[1]+w[3]+w[5]+w[7])/4;n.Ke(n.ek()-1,h);aa.x=(h[0]+h[2]+h[4]+h[6])/4;aa.y=(h[1]+h[3]+h[5]+h[7])/4;.01>Math.abs(e.x-aa.x)&&.01>Math.abs(e.y-aa.y)&&this.ee.push(0);e=Math.atan2(aa.y-e.y,aa.x-e.x);e*=180/3.1415926;0>e&&(e+=360);this.ee.push(e);return 0};return e}();ba.a=ia},478:function(ia,ba,e){var ea=e(462),x=e(95),ha=
|
|
11
11
|
e(86);ia=function(){function e(){this.dl=this.Jd=0;this.rb=this.Ea=this.jc=null;this.Oc=0}e.prototype.md=function(){this.dl=this.Jd=-1;this.Oc=0};e.prototype.dh=function(e,x,w,y,n,h){this.Jd=x;this.dl=w;this.jc=e;this.Ea=y;this.rb=n;this.Oc=h};e.prototype.Fc=function(e){return this.Jd===e.Jd};e.prototype.ek=function(){return parseInt(this.jc[this.Jd],10)};e.prototype.Pi=function(){return parseInt(this.jc[this.Jd+2],10)};e.prototype.bh=function(){return parseInt(this.jc[this.Jd+1],10)};e.prototype.bm=
|
|
12
|
-
function(){return 0<this.jc[this.dl]};e.prototype.
|
|
12
|
+
function(){return 0<this.jc[this.dl]};e.prototype.zba=function(){return Math.abs(this.jc[this.dl])};e.prototype.$g=function(){var x=this.bm(),aa=x?5:11;if(this.Jd>=this.dl+(x?6:10)+(this.zba()-1)*aa)return aa=new e,aa.dh(this.jc,-1,-1,this.Ea,this.rb,0),aa;x=new e;x.dh(this.jc,this.Jd+aa,this.dl,this.Ea,this.rb,this.Oc+1);return x};e.prototype.Raa=function(e){var x=this.ek();return 0>e||e>=x?-1:parseInt(this.jc[this.Jd+1],10)+e};e.prototype.Ke=function(e,aa){e=this.Raa(e);if(!(0>e)){var w=new ea.a;
|
|
13
13
|
w.dh(this.jc,this.dl,this.Ea,this.rb,0);if(w.bm()){var y=new x.a;w.Je(y);w=y.ja<y.ka?y.ja:y.ka;y=y.ja>y.ka?y.ja:y.ka;e*=8;aa[0]=this.rb[e];aa[1]=w;aa[2]=this.rb[e+2];aa[3]=aa[1];aa[4]=this.rb[e+4];aa[5]=y;aa[6]=this.rb[e+6];aa[7]=aa[5]}else for(e*=8,w=0;8>w;++w)aa[w]=this.rb[e+w]}};e.prototype.le=function(e){var aa=new ea.a;aa.dh(this.jc,this.dl,this.Ea,this.rb,0);if(aa.bm()){var w=this.jc[this.Jd+3],y=this.jc[this.Jd+4];if(w>y){var n=w;w=y;y=n}n=new x.a;aa.Je(n);aa=n.ja<n.ka?n.ja:n.ka;n=n.ja>n.ka?
|
|
14
14
|
n.ja:n.ka;e[0]=w;e[1]=aa;e[2]=y;e[3]=aa;e[4]=y;e[5]=n;e[6]=w;e[7]=n}else for(w=this.Jd+3,y=0;8>y;++y)e[y]=this.jc[w+y]};e.prototype.Je=function(e){var aa=new ea.a;aa.dh(this.jc,this.dl,this.Ea,this.rb,0);if(aa.bm()){var w=this.jc[this.Jd+3],y=this.jc[this.Jd+4];if(w>y){var n=w;w=y;y=n}n=new x.a;aa.Je(n);aa=n.ja<n.ka?n.ja:n.ka;n=n.ja>n.ka?n.ja:n.ka;e[0]=w;e[1]=aa;e[2]=y;e[3]=n}else{w=1.79769E308;y=ha.a.MIN;aa=1.79769E308;n=ha.a.MIN;for(var h=this.Jd+3,f=0;4>f;++f){var r=this.jc[h+2*f],z=this.jc[h+
|
|
15
15
|
2*f+1];w=Math.min(w,r);y=Math.max(y,r);aa=Math.min(aa,z);n=Math.max(n,z)}e[0]=w;e[1]=aa;e[2]=y;e[3]=n}};return e}();ba.a=ia}}]);}).call(this || window)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{443:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(147);ia=e(51);var da=e(94),aa=e(246),w=e(71),y=e(245);e=e(376);var n=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(x.uniqueId)();break;default:this.url=e}this.jf=h;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With",
|
|
3
3
|
"XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(f,h){var n=this,r=this,w=this.request,x;r.lx=0;f&&Object.keys(f).forEach(function(e){n.request.setRequestHeader(e,f[e])});h&&(this.request.withCredentials=h);this.XD=setInterval(function(){var f=0===window.document.URL.indexOf("file:///");f=200===w.status||f&&0===w.status;
|
|
4
|
-
if(w.readyState!==y.b.DONE||f){try{w.responseText}catch(
|
|
5
|
-
else return h=Math.min(this.lx+3E6,h.length),f=n.
|
|
6
|
-
ABORTED:"aborted"};return e}();Object(ia.a)(h);var f;(function(e){e[e.LOCAL_HEADER=0]="LOCAL_HEADER";e[e.FILE=1]="FILE";e[e.CENTRAL_DIR=2]="CENTRAL_DIR"})(f||(f={}));var r=function(e){function h(){var h=e.call(this)||this;h.buffer="";h.state=f.LOCAL_HEADER;h.IM=4;h.em=null;h.ut=ca.c;h.Ln={};return h}Object(ea.c)(h,e);h.prototype.
|
|
4
|
+
if(w.readyState!==y.b.DONE||f){try{w.responseText}catch(ra){return}r.lx<w.responseText.length&&(x=r.Iga())&&r.trigger(e.Events.DATA,[x]);0===w.readyState&&(clearInterval(r.XD),r.trigger(e.Events.DONE))}else clearInterval(r.XD),r.trigger(e.Events.DONE,["Error received return status "+w.status])},1E3);this.request.send(null);this.status=y.a.STARTED};e.prototype.Iga=function(){var f=this.request,h=f.responseText;if(0!==h.length)if(this.lx===h.length)clearInterval(this.XD),this.trigger(e.Events.DONE);
|
|
5
|
+
else return h=Math.min(this.lx+3E6,h.length),f=n.QT(f,this.lx,!0,h),this.lx=h,f};e.prototype.abort=function(){clearInterval(this.XD);var f=this;this.request.onreadystatechange=function(){Object(ha.j)("StreamingRequest aborted");f.status=y.a.ABORTED;return f.trigger(e.Events.ABORTED)};this.request.abort()};e.prototype.finish=function(){var f=this;this.request.onreadystatechange=function(){f.status=y.a.SUCCESS;return f.trigger(e.Events.DONE)};this.request.abort()};e.Events={DONE:"done",DATA:"data",
|
|
6
|
+
ABORTED:"aborted"};return e}();Object(ia.a)(h);var f;(function(e){e[e.LOCAL_HEADER=0]="LOCAL_HEADER";e[e.FILE=1]="FILE";e[e.CENTRAL_DIR=2]="CENTRAL_DIR"})(f||(f={}));var r=function(e){function h(){var h=e.call(this)||this;h.buffer="";h.state=f.LOCAL_HEADER;h.IM=4;h.em=null;h.ut=ca.c;h.Ln={};return h}Object(ea.c)(h,e);h.prototype.Bga=function(e){var n;for(e=this.buffer+e;e.length>=this.ut;)switch(this.state){case f.LOCAL_HEADER:this.em=n=this.Mga(e.slice(0,this.ut));if(n.cu!==ca.g)throw Error("Wrong signature in local header: "+
|
|
7
7
|
n.cu);e=e.slice(this.ut);this.state=f.FILE;this.ut=n.lH+n.Bq+n.jw+this.IM;this.trigger(h.Events.HEADER,[n]);break;case f.FILE:this.em.name=e.slice(0,this.em.Bq);this.Ln[this.em.name]=this.em;n=this.ut-this.IM;var r=e.slice(this.em.Bq+this.em.jw,n);this.trigger(h.Events.FILE,[this.em.name,r,this.em.CH]);e=e.slice(n);if(e.slice(0,this.IM)===ca.h)this.state=f.LOCAL_HEADER,this.ut=ca.c;else return this.state=f.CENTRAL_DIR,!0}this.buffer=e;return!1};h.Events={HEADER:"header",FILE:"file"};return h}(aa.a);
|
|
8
|
-
Object(ia.a)(r);ia=function(e){function f(f,n,w,x,y){w=e.call(this,f,w,x)||this;w.url=f;w.stream=new h(f,n);w.
|
|
9
|
-
h&&(f.fw(h),e(h))});this.
|
|
10
|
-
this.stream.abort()};f.prototype.
|
|
8
|
+
Object(ia.a)(r);ia=function(e){function f(f,n,w,x,y){w=e.call(this,f,w,x)||this;w.url=f;w.stream=new h(f,n);w.de=new r;w.RW=window.createPromiseCapability();w.sX={};w.jf=y;return w}Object(ea.c)(f,e);f.prototype.Zx=function(e){var f=this;this.request([this.Aj,this.Sk,this.zj]);this.stream.addEventListener(h.Events.DATA,function(h){try{if(f.de.Bga(h))return f.stream.finish()}catch(ma){throw f.stream.abort(),f.fw(ma),e(ma),ma;}});this.stream.addEventListener(h.Events.DONE,function(h){f.gga=!0;f.RW.resolve();
|
|
9
|
+
h&&(f.fw(h),e(h))});this.de.addEventListener(r.Events.HEADER,Object(x.bind)(this.rX,this));this.de.addEventListener(r.Events.FILE,Object(x.bind)(this.bha,this));return this.stream.start(this.jf,this.withCredentials)};f.prototype.MT=function(e){var f=this;this.RW.promise.then(function(){e(Object.keys(f.de.Ln))})};f.prototype.yo=function(){return!0};f.prototype.request=function(e){var f=this;this.gga&&e.forEach(function(e){f.sX[e]||f.Dla(e)})};f.prototype.rX=function(){};f.prototype.abort=function(){this.stream&&
|
|
10
|
+
this.stream.abort()};f.prototype.Dla=function(e){this.trigger(da.a.Events.PART_READY,[{cb:e,error:"Requested part not found",Ki:!1,cg:!1}])};f.prototype.bha=function(e,f,h){this.sX[e]=!0;this.trigger(da.a.Events.PART_READY,[{cb:e,data:f,Ki:!1,cg:!1,error:null,gd:h}])};return f}(da.a);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
|
|
2
|
-
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[15],{446:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(0);e.n(x);ia=e(94);e=e(376);ia=function(e){function ba(x,aa,w){aa=e.call(this,x,aa,w)||this;aa.db=x;return aa}Object(ea.c)(ba,e);ba.prototype.request=function(e){var aa=this;Object(x.each)(e,function(e){aa.db.get(e,function(w,n,h){return w?aa.trigger("partReady",{cb:e,error:w}):aa.trigger("partReady",{cb:e,data:n,Ki:!1,cg:!1,error:null,
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[15],{446:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(0);e.n(x);ia=e(94);e=e(376);ia=function(e){function ba(x,aa,w){aa=e.call(this,x,aa,w)||this;aa.db=x;return aa}Object(ea.c)(ba,e);ba.prototype.request=function(e){var aa=this;Object(x.each)(e,function(e){aa.db.get(e,function(w,n,h){return w?aa.trigger("partReady",{cb:e,error:w}):aa.trigger("partReady",{cb:e,data:n,Ki:!1,cg:!1,error:null,gd:h})})})};ba.prototype.ot=function(e){e()};
|
|
3
3
|
return ba}(ia.a);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)
|