@pdftron/pdfjs-express 8.7.2 → 8.7.3
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/public/ui/style.css +1 -1
- package/public/ui/style.css.map +1 -1
- package/webviewer.min.js +1 -1
|
@@ -1,41 +1,41 @@
|
|
|
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([[16],{445:function(ia,ba,e){function ea(){return!1}function x(e,f,h){if(!(f in fa))return!0;f=fa[f];for(var n=0;n<f.length;n++){var r=e;var w=f[n];var x=h;if(w.name in r){var y="",z=!1;r=r[w.name];switch(w.type){case "s":y="String";z=Object(ca.isString)(r);break;case "a":y="Array";z=Object(ca.isArray)(r);break;case "n":y="Number";z=Object(ca.isNumber)(r)&&Object(ca.isFinite)(r);break;case "o":y="Object",z=Object(ca.isObject)(r)&&
|
|
3
3
|
!Object(ca.isArray)(r)}z||x.reject('Expected response field "'+w.name+'" to have type '+y);w=z}else x.reject('Response missing field "'+w.name+'"'),w=!1;if(!w)return!1}return!0}e.r(ba);var ha=e(1),ca=e(0);e.n(ca);var da=e(2);ia=e(51);var aa=e(34),w=e(463),y=e(94),n=e(376),h=e(40),f=e(163),r=function(){function e(){this.request=this.result=null;this.state=0;var e=this;e.promise=new Promise(function(f,h){e.resolve=function(){if(0===e.state||4===e.state)e.state=1,e.result=arguments[0],f.apply(null,arguments)};
|
|
4
|
-
e.reject=function(){if(0===e.state||4===e.state)e.state=2,h.apply(null,arguments)}})}e.prototype.ht=function(){return 1===(this.state&1)};e.prototype.
|
|
5
|
-
f){f={key:e,data:f};this.
|
|
4
|
+
e.reject=function(){if(0===e.state||4===e.state)e.state=2,h.apply(null,arguments)}})}e.prototype.ht=function(){return 1===(this.state&1)};e.prototype.Pda=function(){return 2===(this.state&2)};e.prototype.Xi=function(){return!this.Pda()&&!this.ht()};e.prototype.qda=function(){return 4===(this.state&4)};e.prototype.iM=function(){this.state|=4};return e}(),z=function(){function e(){this.Rs={};this.Ib=[]}e.prototype.pop=function(){var e=this.Ib.pop();this.Rs[e.key]=void 0;return e};e.prototype.push=function(e,
|
|
5
|
+
f){f={key:e,data:f};this.Ib.push(f);this.Rs[e]=f.data};e.prototype.contains=function(e){return!!this.Rs[e]};e.prototype.get=function(e){return this.Rs[e]};e.prototype.set=function(e,f){var h=this;this.Rs[e]=f;this.Ib.forEach(function(f,n){f.key===e&&(h.Ib[n]=f)})};e.prototype.remove=function(e){var f=this;this.Rs[e]=void 0;this.Ib.forEach(function(h,n){h.key===e&&f.Ib.splice(n,1)})};e.prototype.length=function(){return this.Ib.length};return e}(),fa={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",
|
|
6
6
|
type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],cAnnots:[{name:"annots",type:"a"}],annots:[{name:"url",type:"s"},{name:"name",type:"s"}],image:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],text:[{name:"url",type:"s"},{name:"name",type:"s"},{name:"p",type:"n"}],ApString2Xod:[{name:"url",type:"s"},{name:"rID",type:"s"}]};e=function(){function e(e,f,n){var x=
|
|
7
|
-
this;this.JM=this.bS=!1;this.lh=this.iF=this.vu=this.KK=this.nH=this.Mm=null;this.om=new r;this.Ep=new r;this.nB=!1;this.Bf=this.De=this.Ee=this.tf=null;this.Sf=[];this.ZB=[];this.cache={};this.timeStamp=0;this.fh=[];this.gj=[];this.rI=null;this.QR=!1;this.
|
|
8
|
-
n.customQueryParameters);f.endsWith("blackbox/")||(f+="blackbox/");this.Mm=n.uploadData||null;this.vu=n.uriData||null;this.nH=n.cacheKey||null;this.KK=n.officeOptions||null;this.Ve=f;this.UH=e;this.Eo(!0);this.es=(new w.a(f,null,this.Ph())).
|
|
9
|
-
function(){n.readyState===XMLHttpRequest.DONE&&(200===n.status?f():h())};n.send()})};e.prototype.
|
|
10
|
-
this.rh(this.tf.request):this.tf.ht()&&this.wK(this.tf.result.url,"pdf")&&(this.tf=null,this.
|
|
11
|
-
this.rh(this.gj[e].request);for(e=0;e<this.Sf.length;e++)this.Sf[e]&&this.Sf[e].Xi()&&this.rh(this.Sf[e].request)};e.prototype
|
|
7
|
+
this;this.JM=this.bS=!1;this.lh=this.iF=this.vu=this.KK=this.nH=this.Mm=null;this.om=new r;this.Ep=new r;this.nB=!1;this.Bf=this.De=this.Ee=this.tf=null;this.Sf=[];this.ZB=[];this.cache={};this.timeStamp=0;this.fh=[];this.gj=[];this.rI=null;this.QR=!1;this.vY=this.id=null;this.wK=this.uU=ea;this.ei=0;this.CJ=!1;this.YV=1;this.cj={};this.Pr=0;this.Lt=new z;f.endsWith("/")||(f+="/");n=n||{};this.bS=n.disableWebsockets||!1;this.JM=n.singleServerMode||!1;null!=n.customQueryParameters&&Object(h.b)("wvsQueryParameters",
|
|
8
|
+
n.customQueryParameters);f.endsWith("blackbox/")||(f+="blackbox/");this.Mm=n.uploadData||null;this.vu=n.uriData||null;this.nH=n.cacheKey||null;this.KK=n.officeOptions||null;this.Ve=f;this.UH=e;this.Eo(!0);this.es=(new w.a(f,null,this.Ph())).L$(!this.bS,function(e){x.gfa(e)},function(){return null},function(){x.nB=!1},function(){x.iia()})}e.prototype.o7=function(){var e=this;return new Promise(function(f,h){var n=new XMLHttpRequest;n.open("GET",e.Ve+"ck");n.withCredentials=e.Ph();n.onreadystatechange=
|
|
9
|
+
function(){n.readyState===XMLHttpRequest.DONE&&(200===n.status?f():h())};n.send()})};e.prototype.Kja=function(e){this.uU=e||ea;this.wK=ea};e.prototype.h6=function(){this.ZX();return this.es.Np(!0)};e.prototype.ZX=function(){Object(ha.b)(this,void 0,void 0,function(){return Object(ha.d)(this,function(e){switch(e.label){case 0:return this.Ep=new r,this.om=new r,this.nB=!1,this.id=null,this.QR=!1,[4,this.o7()];case 1:return e.ea(),[2]}})})};e.prototype.iia=function(){this.uU();this.ZX();this.tf&&(this.tf.Xi()?
|
|
10
|
+
this.rh(this.tf.request):this.tf.ht()&&this.wK(this.tf.result.url,"pdf")&&(this.tf=null,this.YX()));this.Bf&&this.Bf.Xi()&&this.rh(this.Bf.request);this.Ee&&this.Ee.Xi()?this.rh(this.Ee.request):this.De&&this.De.Xi()&&this.hU();var e;for(e=0;e<this.fh.length;e++)this.fh[e]&&(this.fh[e].Xi()?this.rh(this.fh[e].request):this.fh[e].ht()&&this.wK(this.fh[e].result.url,"image")&&(this.fh[e]=null,this.jE(Object(ca.uniqueId)(),e)));for(e=0;e<this.gj.length;e++)this.gj[e]&&this.gj[e].Xi()&&!this.gj[e].qda()&&
|
|
11
|
+
this.rh(this.gj[e].request);for(e=0;e<this.Sf.length;e++)this.Sf[e]&&this.Sf[e].Xi()&&this.rh(this.Sf[e].request)};e.prototype.$ca=function(){return this.nB?Promise.resolve():(this.nB=!0,this.timeStamp=Date.now(),this.es.TC())};e.prototype.$la=function(){var e=this,h,n,r,w,x;return new Promise(function(y,z){if(e.Mm)h=new FormData,h.append("file",e.Mm.fileHandle,e.Mm.fileHandle.name),n=e.Mm.loadCallback,w="upload",r=e.Mm.extension;else if(e.vu)h={uri:e.vu.uri,iqa:e.vu.shareId},h=Object.keys(h).map(function(e){return e+
|
|
12
12
|
"="+(h[e]?encodeURIComponent(h[e]):"")}).join("&"),x="application/x-www-form-urlencoded; charset=UTF-8",n=e.vu.loadCallback,w="url",r=e.vu.extension;else{y();return}var ba=new XMLHttpRequest,da=Object(aa.j)(e.Ve,"AuxUpload");da=Object(f.a)(da,{type:w,ext:r});ba.open("POST",da);ba.withCredentials=e.Ph();x&&ba.setRequestHeader("Content-Type",x);ba.addEventListener("load",function(){if(ba.readyState===ba.DONE&&200===ba.status){var f=JSON.parse(ba.response);e.UH=f.uri;n(f);y(f)}});ba.addEventListener("error",
|
|
13
|
-
function(){z(ba.statusText+" "+JSON.stringify(ba))});e.Mm&&null!=e.Mm.onProgress&&(ba.upload.onprogress=function(f){e.Mm.onProgress(f)});ba.send(h)})};e.prototype
|
|
14
|
-
this.password&&(e.pswd=this.password);this.nH&&(e.cacheKey=this.nH);this.KK&&(e.officeOptions=this.KK);return e};e.prototype.
|
|
15
|
-
e.prototype.vl=function(e){return e};e.prototype.
|
|
16
|
-
w.id&&(this.id=w.id);if(w.auth){var ba=Object(h.a)("wvsQueryParameters");ba.auth=w.auth;Object(h.b)("wvsQueryParameters",ba)}w.serverVersion&&(this.iF=w.serverVersion,Object(da.h)("[WebViewer Server] server version: "+this.iF));w.serverID?(this.ei=w.serverID===this.
|
|
13
|
+
function(){z(ba.statusText+" "+JSON.stringify(ba))});e.Mm&&null!=e.Mm.onProgress&&(ba.upload.onprogress=function(f){e.Mm.onProgress(f)});ba.send(h)})};e.prototype.$ha=function(e){this.password=e||null;this.om.ht()||(this.om=new r,this.rh({t:"pages"}));return this.om.promise};e.prototype.Zx=function(e){this.rI=e||null;this.om.ht()||this.rh({t:"pages"});return this.om.promise};e.prototype.Qv=function(e){e=Object.assign(e,{uri:encodeURIComponent(this.UH)});this.rI&&(e.ext=this.rI);this.lh&&(e.c=this.lh);
|
|
14
|
+
this.password&&(e.pswd=this.password);this.nH&&(e.cacheKey=this.nH);this.KK&&(e.officeOptions=this.KK);return e};e.prototype.Hia=function(){0<this.Lt.length()&&10>=this.Pr&&this.Iia(this.Lt.pop().data)};e.prototype.I5=function(e){0<this.Lt.length()&&this.Lt.contains(e)&&this.Lt.remove(e)};e.prototype.rh=function(e){e=this.Qv(e);this.es.send(e)};e.prototype.qY=function(e,f){10<this.Pr?this.Lt.push(e,f):(this.Pr++,e=this.Qv(f),this.es.send(e))};e.prototype.Iia=function(e){this.Pr++;e=this.Qv(e);this.es.send(e)};
|
|
15
|
+
e.prototype.vl=function(e){return e};e.prototype.tU=function(e){this.JM&&e?Object(da.j)("Server failed health check. Single server mode ignoring check."):!this.roa&&e&&3>=this.ei?(this.CJ=!0,this.es.Np()):3<this.ei&&(this.JM=!0)};e.prototype.gfa=function(e){var n=this,w=e.data,z=e.err,aa=e.t;switch(aa){case "upload":z?this.ama.reject(z):this.ama.resolve("Success");break;case "pages":z?this.om.reject(z):x(w,aa,this.om)&&this.om.resolve(w);break;case "config":if(z)this.Ep.reject(z);else if(x(w,aa,this.Ep)){this.tU(w.unhealthy);
|
|
16
|
+
w.id&&(this.id=w.id);if(w.auth){var ba=Object(h.a)("wvsQueryParameters");ba.auth=w.auth;Object(h.b)("wvsQueryParameters",ba)}w.serverVersion&&(this.iF=w.serverVersion,Object(da.h)("[WebViewer Server] server version: "+this.iF));w.serverID?(this.ei=w.serverID===this.vY&&this.CJ?this.ei+1:0,this.vY=w.serverID):this.ei=0;this.CJ=!1;this.Ep.resolve(w)}break;case "health":z?this.Ep.reject(z):x(w,aa,this.Ep)&&this.tU(w.unhealthy);break;case "pdf":w.url=Object(f.a)(this.Ve+"../"+encodeURI(w.url));z?this.tf.reject(z):
|
|
17
17
|
x(w,aa,this.tf)&&this.tf.resolve(w);break;case "ApString2Xod":w.url=Object(f.a)(this.Ve+"../data/"+encodeURI(w.url));z?this.cj[w.rID].reject(z):x(w,aa,this.cj[w.rID])&&this.cj[w.rID].resolve(w);break;case "docmod":w.url=Object(f.a)(this.Ve+"../"+encodeURI(w.url));z?this.cj[w.rID].reject(z):x(w,aa,this.tf)&&this.cj[w.rID].resolve(w);break;case "xod":if(z)this.Ee&&this.Ee.Xi()&&this.Ee.reject(z),this.De&&this.De.Xi()&&this.De.reject(z);else if(w.notFound)w.noCreate||this.Ee&&this.Ee.Xi()&&this.Ee.resolve(w),
|
|
18
18
|
this.De&&this.De.Xi()&&this.De.resolve(w);else{w.url&&(w.url=Object(f.a)(this.Ve+"../"+encodeURI(w.url)));if(!this.De||this.De.ht())this.De=new r,this.De.request={t:"xod",noCreate:!0};this.Ee||(this.Ee=new r,this.Ee.request={t:"xod"});this.De.resolve(w);this.Ee.resolve(w)}break;case "cAnnots":ba=this.Bf;if(z)ba.reject(z);else if(x(w,aa,ba)){ba.iM();var ea=[],fa=w.annots;w=function(e){var h=fa[e].s,r=fa[e].e,w=ha.Ve+"../"+encodeURI(fa[e].xfdf),x="true"===fa[e].hasAppearance?Object(f.a)(w+".xodapp"):
|
|
19
19
|
null,y=Object(ca.range)(h,r+1);ea[e]={range:y,promise:new Promise(function(e,h){var r=new XMLHttpRequest;r.open("GET",Object(f.a)(w));r.responseType="text";r.withCredentials=n.Ph();r.addEventListener("load",function(){r.readyState===r.DONE&&200===r.status&&e({jr:r.response,ll:x,range:y})});r.addEventListener("error",function(){h(r.statusText+" "+JSON.stringify(r))});r.send()})}};var ha=this;for(z=0;z<fa.length;z++)w(z);ba.resolve(ea)}break;case "annots":if(z)this.Bf.reject(z);else if(x(w,aa,this.Bf)){this.Bf.iM();
|
|
20
20
|
var ia=new XMLHttpRequest;ba=this.Ve+"../"+encodeURI(w.url);var ja=w.hasAppearance?Object(f.a)(ba+".xodapp"):null;ia.open("GET",Object(f.a)(ba));ia.responseType="text";ia.withCredentials=this.Ph();ia.addEventListener("load",function(){ia.readyState===ia.DONE&&200===ia.status&&n.Bf.resolve({jr:ia.response,ll:ja})});ia.addEventListener("error",function(){n.Bf.reject(ia.statusText+" "+JSON.stringify(ia))});ia.send()}break;case "image":this.Pr--;var ka=this.fh[w.p];z?ka.promise.reject(z):x(w,aa,ka)&&
|
|
21
|
-
(ka.result=w,ka.result.url=Object(f.a)(this.Ve+"../"+encodeURI(ka.result.url)),ka.resolve(ka.result));break;case "tiles":this.Pr--;ka=w.rID;ba=this.Sf[ka];this.Sf[ka]=null;this.ZB.push(ka);if(z)ba.reject(z);else if(x(w,aa,ba)){for(z=0;z<w.tiles.length;z++)w.tiles[z]=Object(f.a)(this.Ve+"../"+encodeURI(w.tiles[z]));ba.resolve(w)}break;case "text":ka=this.gj[w.p];if(z)ka.reject(z);else if(x(w,aa,ka)){ka.iM();var
|
|
22
|
-
this.Ph();
|
|
23
|
-
this.cj[e].reject())};e.prototype.
|
|
24
|
-
var ba=this.Qv(e);x.append("msg",JSON.stringify(ba));this.cj[ba.reqID]=new r;n.open("POST",w);n.withCredentials=this.Ph;w=new Promise(function(e,f){n.onreadystatechange=function(){4===n.readyState&&(200===n.status?e():f("An error occurred while sending down appearance strings to the server"))}});n.send(x);return w.then(function(){return h.cj[ba.reqID].promise})};e.prototype.
|
|
25
|
-
if(3!==f.length)throw Error("Invalid version length.");for(var h=0;h<e.length;++h){if(f.length===h||e[h]>f[h])return-1;if(e[h]!==f[h])return 1}return 0};e.prototype.Ap=function(){return 0>=this.
|
|
26
|
-
e.prototype
|
|
27
|
-
return this.tf.promise};e.prototype.BT=function(e){var h=this,n=new XMLHttpRequest,w=Object(f.a)(this.Ve+"aul",{id:this.id}),x=new FormData,y={};e.annots&&(y.annots="xfdf");e.watermark&&(y.watermark="png");e.redactions&&(y.redactions="redact");y={t:"docmod",reqID:this.
|
|
28
|
-
x.append("annots",f);y&&x.append("watermark",y);e&&x.append("redactions",e);h.cj[z.reqID]=new r;n.open("POST",w);n.withCredentials=h.Ph;f=new Promise(function(e,f){n.onreadystatechange=function(){4===n.readyState&&(200===n.status?e():f("An error occurred while sending down annotation data to the server"))}});n.send(x);return f.then(function(){return h.cj[z.reqID].promise})})};e.prototype.
|
|
29
|
-
e.prototype.
|
|
30
|
-
this.lh.internal||{};this.lh.internal.withCredentials=e};e.prototype.Ph=function(){return this.lh&&this.lh.internal?this.lh.internal.withCredentials:null};e.prototype.getFileData=function(){return Promise.reject()};return e}();Object(ia.a)(e);Object(n.a)(e);Object(n.b)(e);ba["default"]=e},463:function(ia,ba,e){var ea=e(1),x=e(2),ha=e(34),ca=e(40),da=e(163),aa=e(112),w=function(){function e(e,f,n,w,x,y){void 0===n&&(n=null);void 0===w&&(w=null);void 0===x&&(x=null);void 0===y&&(y=null);this.
|
|
31
|
-
this.ei=0;this.XQ=this.
|
|
32
|
-
Object(ca.a)("wvsQueryParameters");e.bcid=Object(ha.k)(8);Object(ca.b)("wvsQueryParameters",e);return[2,new Promise(function(e,h){var n=Object(da.a)(f.url);f.Qo=new WebSocket(n);f.Qo.onopen=function(){f.Dx&&f.Dx();e()};f.Qo.onerror=function(e){f.
|
|
21
|
+
(ka.result=w,ka.result.url=Object(f.a)(this.Ve+"../"+encodeURI(ka.result.url)),ka.resolve(ka.result));break;case "tiles":this.Pr--;ka=w.rID;ba=this.Sf[ka];this.Sf[ka]=null;this.ZB.push(ka);if(z)ba.reject(z);else if(x(w,aa,ba)){for(z=0;z<w.tiles.length;z++)w.tiles[z]=Object(f.a)(this.Ve+"../"+encodeURI(w.tiles[z]));ba.resolve(w)}break;case "text":ka=this.gj[w.p];if(z)ka.reject(z);else if(x(w,aa,ka)){ka.iM();var Ca=new XMLHttpRequest;w=Object(f.a)(this.Ve+"../"+encodeURI(w.url));Ca.open("GET",w);Ca.withCredentials=
|
|
22
|
+
this.Ph();Ca.addEventListener("load",function(){Ca.readyState===Ca.DONE&&200===Ca.status&&(ka.result=JSON.parse(Ca.response),ka.resolve(ka.result))});Ca.addEventListener("error",function(e){ka.reject(Ca.statusText+" "+JSON.stringify(e))});Ca.send()}break;case "progress":"loading"===w.t&&this.trigger(y.a.Events.DOCUMENT_LOADING_PROGRESS,[w.bytes,w.total])}this.Hia();!aa&&e.echo&&e&&"apstring2xod"===e.echo.t&&(e=e.echo.reqID)&&(2<=parseInt(this.iF,10)?this.cj[e].reject("Message unhandled by server"):
|
|
23
|
+
this.cj[e].reject())};e.prototype.raa=function(){return Object(ha.b)(this,void 0,void 0,function(){return Object(ha.d)(this,function(e){switch(e.label){case 0:return[4,this.$ca()];case 1:return e.ea(),[2,this.Ep.promise]}})})};e.prototype.$$=function(e){for(var h=this,n=new XMLHttpRequest,w=Object(f.a)(this.Ve+"aul",{id:this.id}),x=new FormData,y={},z=0;z<e.body.length;z++){var aa=e.body[z];y[aa.id]=aa.aH.w+";"+aa.aH.h;x.append(aa.id,aa.aH.dataString)}e={t:"apstring2xod",reqID:this.YV++,parts:y};
|
|
24
|
+
var ba=this.Qv(e);x.append("msg",JSON.stringify(ba));this.cj[ba.reqID]=new r;n.open("POST",w);n.withCredentials=this.Ph;w=new Promise(function(e,f){n.onreadystatechange=function(){4===n.readyState&&(200===n.status?e():f("An error occurred while sending down appearance strings to the server"))}});n.send(x);return w.then(function(){return h.cj[ba.reqID].promise})};e.prototype.j6=function(){var e=this.iF.split("-")[0].split("."),f=["1","5","9"];if(3!==e.length)throw Error("Invalid WVS version length.");
|
|
25
|
+
if(3!==f.length)throw Error("Invalid version length.");for(var h=0;h<e.length;++h){if(f.length===h||e[h]>f[h])return-1;if(e[h]!==f[h])return 1}return 0};e.prototype.Ap=function(){return 0>=this.j6()};e.prototype.BI=function(){this.Bf||(this.Bf=new r,this.Ap()?this.Bf.request={t:"cAnnots"}:this.Bf.request={t:"annots"},this.rh(this.Bf.request));return this.Bf.promise};e.prototype.jE=function(e,f){this.fh[f]||(this.fh[f]=new r,this.fh[f].request={t:"image",p:f},this.qY(e,this.fh[f].request));return this.fh[f].promise};
|
|
26
|
+
e.prototype.aia=function(e){this.gj[e]||(this.gj[e]=new r,this.gj[e].request={t:"text",p:e},this.rh(this.gj[e].request));return this.gj[e].promise};e.prototype.bia=function(e,f,h,n,w){var x=this.Sf.length;this.ZB.length&&(x=this.ZB.pop());this.Sf[x]=new r;this.Sf[x].request={t:"tiles",p:f,z:h,r:n,size:w,rID:x};this.qY(e,this.Sf[x].request);return this.Sf[x].promise};e.prototype.YX=function(){this.tf||(this.tf=new r,this.tf.request={t:"pdf"},this.QR?this.tf.resolve({url:this.UH}):this.rh(this.tf.request));
|
|
27
|
+
return this.tf.promise};e.prototype.BT=function(e){var h=this,n=new XMLHttpRequest,w=Object(f.a)(this.Ve+"aul",{id:this.id}),x=new FormData,y={};e.annots&&(y.annots="xfdf");e.watermark&&(y.watermark="png");e.redactions&&(y.redactions="redact");y={t:"docmod",reqID:this.YV++,parts:y};e.print&&(y.print=!0);var z=this.Qv(y);x.append("msg",JSON.stringify(z));return Promise.all([e.annots,e.watermark,e.redactions].map(function(e){return Promise.resolve(e)})).then(function(e){var f=e[0],y=e[1];e=e[2];f&&
|
|
28
|
+
x.append("annots",f);y&&x.append("watermark",y);e&&x.append("redactions",e);h.cj[z.reqID]=new r;n.open("POST",w);n.withCredentials=h.Ph;f=new Promise(function(e,f){n.onreadystatechange=function(){4===n.readyState&&(200===n.status?e():f("An error occurred while sending down annotation data to the server"))}});n.send(x);return f.then(function(){return h.cj[z.reqID].promise})})};e.prototype.hU=function(){this.De||(this.De=new r,this.De.request={t:"xod",noCreate:!0},this.rh(this.De.request));return this.De.promise};
|
|
29
|
+
e.prototype.cia=function(){this.Ee||(this.Ee=new r,this.Ee.request={t:"xod"},this.rh(this.Ee.request));return this.Ee.promise};e.prototype.yo=function(){return!0};e.prototype.request=function(){};e.prototype.rX=function(){};e.prototype.abort=function(){for(var e=0;e<this.Sf.length;e++)this.Sf[e]&&(this.Sf[e].resolve(null),this.Sf[e]=null,this.ZB.push(e));this.close()};e.prototype.vE=function(e){this.lh=this.lh||{};this.lh.headers=e};e.prototype.Eo=function(e){this.lh=this.lh||{};this.lh.internal=
|
|
30
|
+
this.lh.internal||{};this.lh.internal.withCredentials=e};e.prototype.Ph=function(){return this.lh&&this.lh.internal?this.lh.internal.withCredentials:null};e.prototype.getFileData=function(){return Promise.reject()};return e}();Object(ia.a)(e);Object(n.a)(e);Object(n.b)(e);ba["default"]=e},463:function(ia,ba,e){var ea=e(1),x=e(2),ha=e(34),ca=e(40),da=e(163),aa=e(112),w=function(){function e(e,f,n,w,x,y){void 0===n&&(n=null);void 0===w&&(w=null);void 0===x&&(x=null);void 0===y&&(y=null);this.EV=!1;
|
|
31
|
+
this.ei=0;this.XQ=this.sma(e);this.url=f?this.XQ+"/"+f:this.XQ+"/ws";this.NH=n;this.Dx=w;this.Ov=x;this.NL=y}e.prototype.sma=function(e){var f=e.indexOf("://"),h="ws://";0>f?f=0:(5===f&&(h="wss://"),f+=3);var n=e.lastIndexOf("/");0>n&&(n=e.length);return h+e.slice(f,n)};e.prototype.send=function(e){this.Qo.readyState===WebSocket.CLOSED||this.EV||this.Qo.send(JSON.stringify(e))};e.prototype.TC=function(){return Object(ea.b)(this,void 0,void 0,function(){var e,f=this;return Object(ea.d)(this,function(){e=
|
|
32
|
+
Object(ca.a)("wvsQueryParameters");e.bcid=Object(ha.k)(8);Object(ca.b)("wvsQueryParameters",e);return[2,new Promise(function(e,h){var n=Object(da.a)(f.url);f.Qo=new WebSocket(n);f.Qo.onopen=function(){f.Dx&&f.Dx();e()};f.Qo.onerror=function(e){f.EV=!0;h(e)};f.Qo.onclose=function(e){var n=e.code;return Object(ea.b)(f,void 0,void 0,function(){var e=this;return Object(ea.d)(this,function(f){switch(f.label){case 0:return this.Ov&&this.Ov(),3E3===n?[3,3]:8>this.ei++?[4,new Promise(function(f){return setTimeout(function(){return Object(ea.b)(e,
|
|
33
33
|
void 0,void 0,function(){return Object(ea.d)(this,function(e){switch(e.label){case 0:return this.NL(),[4,this.TC()];case 1:return e.ea(),f(),[2]}})})},3E3)})]:[3,2];case 1:return f.ea(),[3,3];case 2:h(aa.a),f.label=3;case 3:return[2]}})})};f.Qo.onmessage=function(e){e&&e.data&&(e=JSON.parse(e.data),e.hb?f.send({hb:!0}):e.end?close():f.NH(e))}})]})})};e.prototype.Np=function(e){void 0===e&&(e=!1);this.ei=0;e?this.Qo.close(3E3):this.Qo.close();return Promise.resolve()};return e}(),y=function(){function e(e,
|
|
34
|
-
f,n,w,x,y,aa){void 0===w&&(w=null);void 0===x&&(x=null);void 0===y&&(y=null);void 0===aa&&(aa=null);this.ei=this.iE=this.id=0;this.Uw=!1;this.request=null;e=this.
|
|
35
|
-
e.shift();for(var f=0;f<e.length;++f)e[f].endsWith(",")&&(e[f]=e[f].substr(0,e[f].length-1));return e};e.prototype.
|
|
36
|
-
function(n){switch(n.label){case 0:f=null,h=0,n.label=1;case 1:if(!(h<e.length))return[3,6];f=JSON.parse(e[h]);if(!f)return[3,5];if(!f.end)return[3,2];close();return[3,5];case 2:if(!f.id||Number(f.id)===this.id)return[3,4];Object(x.j)("Reconnecting, new server detected");this.Np();return[4,this.
|
|
37
|
-
void 0,void 0,function(){var f,h,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:if(!(3<=e.readyState))return[3,2];try{f=e.responseText.length}catch(ka){return Object(x.h)("caught exception"),[2]}if(0<f)try{h=this.
|
|
38
|
-
this;return Object(ea.d)(this,function(){return[2,new Promise(function(f,h){function n(){return Object(ea.b)(e,void 0,void 0,function(){return Object(ea.d)(this,function(e){switch(e.label){case 0:h(),this.Np(),e.label=1;case 1:return this.Uw&&8>this.ei?[4,this.
|
|
39
|
-
e.request.setRequestHeader("Cache-Control","no-cache");e.request.setRequestHeader("X-Requested-With","XMLHttpRequest");e.request.onreadystatechange=function(){e.
|
|
34
|
+
f,n,w,x,y,aa){void 0===w&&(w=null);void 0===x&&(x=null);void 0===y&&(y=null);void 0===aa&&(aa=null);this.ei=this.iE=this.id=0;this.Uw=!1;this.request=null;e=this.Aga(e);this.url=f?e+"/"+f+"pf":e+"/pf";this.bF=n;this.NH=w;this.Dx=x;this.Ov=y;this.NL=aa}e.prototype.Aga=function(e){var f=e.lastIndexOf("/");0>f&&(f=e.length);return e.slice(0,f)};e.prototype.Y6=function(e){e=e.split("\n");for(e[e.length-1]&&e.pop();0<e.length&&3>e[e.length-1].length;)"]"===e.pop()&&(this.id=0);0<e.length&&3>e[0].length&&
|
|
35
|
+
e.shift();for(var f=0;f<e.length;++f)e[f].endsWith(",")&&(e[f]=e[f].substr(0,e[f].length-1));return e};e.prototype.hY=function(){return Object(ea.b)(this,void 0,void 0,function(){var e=this;return Object(ea.d)(this,function(f){switch(f.label){case 0:return 8>this.ei++?[4,new Promise(function(f){return setTimeout(function(){e.NL();e.TC();f()},3E3)})]:[3,2];case 1:f.ea(),f.label=2;case 2:return[2]}})})};e.prototype.Cga=function(e){Object(ea.b)(this,void 0,void 0,function(){var f,h;return Object(ea.d)(this,
|
|
36
|
+
function(n){switch(n.label){case 0:f=null,h=0,n.label=1;case 1:if(!(h<e.length))return[3,6];f=JSON.parse(e[h]);if(!f)return[3,5];if(!f.end)return[3,2];close();return[3,5];case 2:if(!f.id||Number(f.id)===this.id)return[3,4];Object(x.j)("Reconnecting, new server detected");this.Np();return[4,this.hY()];case 3:return n.ea(),[3,5];case 4:f.hb&&Number(f.id)===this.id?this.send({hb:!0}):this.Uw||this.NH(f),n.label=5;case 5:return++h,[3,1];case 6:return[2]}})})};e.prototype.dfa=function(e){Object(ea.b)(this,
|
|
37
|
+
void 0,void 0,function(){var f,h,n;return Object(ea.d)(this,function(r){switch(r.label){case 0:if(!(3<=e.readyState))return[3,2];try{f=e.responseText.length}catch(ka){return Object(x.h)("caught exception"),[2]}if(0<f)try{h=this.Y6(e.responseText),0===this.id&&0<h.length&&(n=JSON.parse(h.shift()),this.id=n.id,this.ei=0),this.Cga(h)}catch(ka){}return this.Uw?[3,2]:[4,this.HS()];case 1:r.ea(),r.label=2;case 2:return[2]}})})};e.prototype.HS=function(){return Object(ea.b)(this,void 0,void 0,function(){var e=
|
|
38
|
+
this;return Object(ea.d)(this,function(){return[2,new Promise(function(f,h){function n(){return Object(ea.b)(e,void 0,void 0,function(){return Object(ea.d)(this,function(e){switch(e.label){case 0:h(),this.Np(),e.label=1;case 1:return this.Uw&&8>this.ei?[4,this.hY()]:[3,3];case 2:return e.ea(),[3,1];case 3:return[2]}})})}e.request=new XMLHttpRequest;e.request.withCredentials=e.bF;var r=Object(da.a)(e.url,0!==e.id?{id:String(e.id),uc:String(e.iE)}:{uc:String(e.iE)});e.iE++;e.request.open("GET",r,!0);
|
|
39
|
+
e.request.setRequestHeader("Cache-Control","no-cache");e.request.setRequestHeader("X-Requested-With","XMLHttpRequest");e.request.onreadystatechange=function(){e.dfa(e.request)};e.request.addEventListener("error",n);e.request.addEventListener("timeout",n);e.request.addEventListener("load",function(){e.Dx&&e.Dx();f()});e.request.send()})]})})};e.prototype.TC=function(){var e=Object(ca.a)("wvsQueryParameters");e.bcid=Object(ha.k)(8);Object(ca.b)("wvsQueryParameters",e);this.iE=this.id=0;this.Uw=!1;return this.HS()};
|
|
40
40
|
e.prototype.send=function(e){var f=this,h=new XMLHttpRequest;h.withCredentials=this.bF;var n=Object(da.a)(this.url,{id:String(this.id)}),w=new FormData;w.append("data",JSON.stringify(e));h.addEventListener("error",function(){f.Np()});h.open("POST",n);h.setRequestHeader("X-Requested-With","XMLHttpRequest");h.send(w)};e.prototype.Np=function(){this.id=0;this.Uw=!0;this.Ov&&this.Ov();this.request.abort();return Promise.resolve()};return e}();ia=function(){function e(e,f,n){this.wR=e;this.target=f;this.bF=
|
|
41
|
-
n}e.prototype.
|
|
41
|
+
n}e.prototype.L$=function(e,f,n,x,aa){void 0===e&&(e=!0);void 0===f&&(f=null);void 0===n&&(n=null);void 0===x&&(x=null);void 0===aa&&(aa=null);return e?new w(this.wR,this.target,f,n,x,aa):new y(this.wR,this.target,this.bF,f,n,x,aa)};return e}();ba.a=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
2
|
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[17],{444:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(245);ia=e(434);var ha=e(94);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;"undefined"===typeof ca[this.range.start]&&(ca[this.range.start]={ku:function(h){var f=atob(h),r,w=f.length;h=new Uint8Array(w);for(r=0;r<w;++r)h[r]=f.charCodeAt(r);
|
|
3
|
-
f=h.length;r="";for(var x=0;x<f;)w=h.subarray(x,x+1024),x+=1024,r+=String.fromCharCode.apply(null,w);n.ku(r,e)},AS:function(){n.status=x.a.ERROR;e({code:n.status})}},window.external.
|
|
3
|
+
f=h.length;r="";for(var x=0;x<f;)w=h.subarray(x,x+1024),x+=1024,r+=String.fromCharCode.apply(null,w);n.ku(r,e)},AS:function(){n.status=x.a.ERROR;e({code:n.status})}},window.external.Bpa(this.url),this.status=x.a.STARTED);n.tC()};return w}(ia.ByteRangeRequest);ia=function(e){function w(w,n,h,f){w=e.call(this,w,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:"")};return w}(ha.a);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)
|
|
@@ -7,33 +7,33 @@
|
|
|
7
7
|
(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[19],{435:function(ia,ba){!function(e,ea){if("object"==typeof ba){try{var x=require("moment")}catch(ha){}ia.exports=ea(x)}else"function"==typeof define&&define.amd?define(function(e){try{x=e("moment")}catch(ca){}return ea(x)}):e.Pikaday=ea(e.moment)}(this,function(e){function ba(f){var h=this,n=h.config(f);h._onMouseDown=function(e){if(h._v){var f=(e=e||window.event).target||e.srcElement;if(f)if(ja(f,"is-disabled")||(!ja(f,"pika-button")||
|
|
8
8
|
ja(f,"is-empty")||ja(f.parentNode,"is-disabled")?ja(f,"pika-prev")?h.prevMonth():ja(f,"pika-next")?h.nextMonth():ja(f,"pika-set-today")&&(h.setDate(new Date),h.hide()):(h.setDate(new Date(f.getAttribute("data-pika-year"),f.getAttribute("data-pika-month"),f.getAttribute("data-pika-day"))),n.bound&&sa(function(){h.hide();n.blurFieldOnSelect&&n.field&&n.field.blur()},100))),ja(f,"pika-select"))h._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}};h._onChange=function(e){var f=
|
|
9
9
|
(e=e||window.event).target||e.srcElement;f&&(ja(f,"pika-select-month")?h.gotoMonth(f.value):ja(f,"pika-select-year")&&h.gotoYear(f.value))};h._onKeyChange=function(e){if(e=e||window.event,h.isVisible())switch(e.keyCode){case 13:case 27:n.field&&n.field.blur();break;case 37:h.adjustDate("subtract",1);break;case 38:h.adjustDate("subtract",7);break;case 39:h.adjustDate("add",1);break;case 40:h.adjustDate("add",7);break;case 8:case 46:h.setDate(null)}};h._parseFieldValue=function(){if(n.parse)return n.parse(n.field.value,
|
|
10
|
-
n.format);if(la){var f=e(n.field.value,n.format,n.formatStrict);return f&&f.isValid()?f.toDate():null}return new Date(Date.parse(n.field.value))};h._onInputChange=function(e){var f;e.firedBy!==h&&(f=h._parseFieldValue(),r(f)&&h.setDate(f),h._v||h.show())};h._onInputFocus=function(){h.show()};h._onInputClick=function(){h.show()};h._onInputBlur=function(){var e=
|
|
11
|
-
(e=e||window.event).target||e.srcElement;if(e=f){!na&&ja(f,"pika-select")&&(f.onchange||(f.setAttribute("onchange","return;"),ma(f,"change",h._onChange)));do if(ja(e,"pika-single")||e===n.trigger)return;while(e=e.parentNode);h._v&&f!==n.trigger&&e!==n.trigger&&h.hide()}};h.el=
|
|
12
|
-
ma(
|
|
10
|
+
n.format);if(la){var f=e(n.field.value,n.format,n.formatStrict);return f&&f.isValid()?f.toDate():null}return new Date(Date.parse(n.field.value))};h._onInputChange=function(e){var f;e.firedBy!==h&&(f=h._parseFieldValue(),r(f)&&h.setDate(f),h._v||h.show())};h._onInputFocus=function(){h.show()};h._onInputClick=function(){h.show()};h._onInputBlur=function(){var e=ra.activeElement;do if(ja(e,"pika-single"))return;while(e=e.parentNode);h._c||(h._b=sa(function(){h.hide()},50));h._c=!1};h._onClick=function(e){var f=
|
|
11
|
+
(e=e||window.event).target||e.srcElement;if(e=f){!na&&ja(f,"pika-select")&&(f.onchange||(f.setAttribute("onchange","return;"),ma(f,"change",h._onChange)));do if(ja(e,"pika-single")||e===n.trigger)return;while(e=e.parentNode);h._v&&f!==n.trigger&&e!==n.trigger&&h.hide()}};h.el=ra.createElement("div");h.el.className="pika-single"+(n.isRTL?" is-rtl":"")+(n.theme?" "+n.theme:"");ma(h.el,"mousedown",h._onMouseDown,!0);ma(h.el,"touchend",h._onMouseDown,!0);ma(h.el,"change",h._onChange);n.keyboardInput&&
|
|
12
|
+
ma(ra,"keydown",h._onKeyChange);n.field&&(n.container?n.container.appendChild(h.el):n.bound?ra.body.appendChild(h.el):n.field.parentNode.insertBefore(h.el,n.field.nextSibling),ma(n.field,"change",h._onInputChange),n.defaultDate||(n.defaultDate=h._parseFieldValue(),n.setDefaultDate=!0));f=n.defaultDate;r(f)?n.setDefaultDate?h.setDate(f,!0):h.gotoDate(f):h.gotoDate(new Date);n.bound?(this.hide(),h.el.className+=" is-bound",ma(n.trigger,"click",h._onInputClick),ma(n.trigger,"focus",h._onInputFocus),
|
|
13
13
|
ma(n.trigger,"blur",h._onInputBlur)):this.show()}function x(e,f,h){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+h+'">'+function(e){var f,h=[];e.showWeekNumber&&h.push("<th></th>");for(f=0;7>f;f++)h.push('<th scope="col"><abbr title="'+w(e,f)+'">'+w(e,f,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?h.reverse():h).join("")+"</tr></thead>"}(e)+("<tbody>"+f.join("")+"</tbody>")+(e.showTodayButton?function(e){var f=[];return f.push('<td colspan="'+
|
|
14
14
|
(e.showWeekNumber?"8":"7")+'"><button class="pika-set-today">'+e.i18n.today+"</button></td>"),"<tfoot>"+(e.isRTL?f.reverse():f).join("")+"</tfoot>"}(e):"")+"</table>"}function ha(e,f,h,n,r,w){var x,y,aa=e._o,ba=h===aa.minYear,da=h===aa.maxYear,ca='<div id="'+w+'" class="pika-title" role="heading" aria-live="assertive">',ea=!0,fa=!0;var ha=[];for(w=0;12>w;w++)ha.push('<option value="'+(h===r?w-f:12+w-f)+'"'+(w===n?' selected="selected"':"")+(ba&&w<aa.minMonth||da&&w>aa.maxMonth?' disabled="disabled"':
|
|
15
15
|
"")+">"+aa.i18n.months[w]+"</option>");r='<div class="pika-label">'+aa.i18n.months[n]+'<select class="pika-select pika-select-month" tabindex="-1">'+ha.join("")+"</select></div>";z(aa.yearRange)?(w=aa.yearRange[0],x=aa.yearRange[1]+1):(w=h-aa.yearRange,x=1+h+aa.yearRange);for(ha=[];w<x&&w<=aa.maxYear;w++)w>=aa.minYear&&ha.push('<option value="'+w+'"'+(w===h?' selected="selected"':"")+">"+w+"</option>");return y='<div class="pika-label">'+h+aa.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+
|
|
16
16
|
ha.join("")+"</select></div>",aa.showMonthAfterYear?ca+=y+r:ca+=r+y,ba&&(0===n||aa.minMonth>=n)&&(ea=!1),da&&(11===n||aa.maxMonth<=n)&&(fa=!1),0===f&&(ca+='<button class="pika-prev'+(ea?"":" is-disabled")+'" type="button">'+aa.i18n.previousMonth+"</button>"),f===e._o.numberOfMonths-1&&(ca+='<button class="pika-next'+(fa?"":" is-disabled")+'" type="button">'+aa.i18n.nextMonth+"</button>"),ca+"</div>"}function ca(e,f,h,n){return'<tr class="pika-row'+(h?" pick-whole-week":"")+(n?" is-selected":"")+'">'+
|
|
17
17
|
(f?e.reverse():e).join("")+"</tr>"}function da(f,h,n,r){f=new Date(n,h,f);la?r=e(f).isoWeek():(f.setHours(0,0,0,0),n=f.getDate(),h=r-1,f.setDate(n+h-(f.getDay()+7-1)%7),r=new Date(f.getFullYear(),0,r),r=1+Math.round(((f.getTime()-r.getTime())/864E5-h+(r.getDay()+7-1)%7)/7));return'<td class="pika-week">'+r+"</td>"}function aa(e){var f=[],h="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';f.push("is-outside-current-month");e.enableSelectionDaysInNextAndPreviousMonths||
|
|
18
18
|
f.push("is-selection-disabled")}return e.isDisabled&&f.push("is-disabled"),e.isToday&&f.push("is-today"),e.isSelected&&(f.push("is-selected"),h="true"),e.hasEvent&&f.push("has-event"),e.isInRange&&f.push("is-inrange"),e.isStartRange&&f.push("is-startrange"),e.isEndRange&&f.push("is-endrange"),'<td data-day="'+e.day+'" class="'+f.join(" ")+'" aria-selected="'+h+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+
|
|
19
|
-
e.day+"</button></td>"}function w(e,f,h){for(f+=e.firstDay;7<=f;)f-=7;return h?e.i18n.weekdaysShort[f]:e.i18n.weekdays[f]}function y(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function n(e,f,n){var r;
|
|
19
|
+
e.day+"</button></td>"}function w(e,f,h){for(f+=e.firstDay;7<=f;)f-=7;return h?e.i18n.weekdaysShort[f]:e.i18n.weekdays[f]}function y(e){return 0>e.month&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),11<e.month&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e}function n(e,f,n){var r;ra.createEvent?((r=ra.createEvent("HTMLEvents")).initEvent(f,!0,!1),r=h(r,n),e.dispatchEvent(r)):ra.createEventObject&&(r=ra.createEventObject(),r=h(r,n),e.fireEvent("on"+f,r))}function h(e,f,n){var w,
|
|
20
20
|
x;for(w in f)(x=void 0!==e[w])&&"object"==typeof f[w]&&null!==f[w]&&void 0===f[w].nodeName?r(f[w])?n&&(e[w]=new Date(f[w].getTime())):z(f[w])?n&&(e[w]=f[w].slice(0)):e[w]=h({},f[w],n):!n&&x||(e[w]=f[w]);return e}function f(e){r(e)&&e.setHours(0,0,0,0)}function r(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())}function z(e){return/Array/.test(Object.prototype.toString.call(e))}function fa(e,f){var h;e.className=(h=(" "+e.className+" ").replace(" "+f+" "," ")).trim?h.trim():
|
|
21
|
-
h.replace(/^\s+|\s+$/g,"")}function ia(e,f){ja(e,f)||(e.className=""===e.className?f:e.className+" "+f)}function ja(e,f){return-1!==(" "+e.className+" ").indexOf(" "+f+" ")}function pa(e,f,h,n){na?e.removeEventListener(f,h,!!n):e.detachEvent("on"+f,h)}function ma(e,f,h,n){na?e.addEventListener(f,h,!!n):e.attachEvent("on"+f,h)}var la="function"==typeof e,na=!!window.addEventListener,
|
|
21
|
+
h.replace(/^\s+|\s+$/g,"")}function ia(e,f){ja(e,f)||(e.className=""===e.className?f:e.className+" "+f)}function ja(e,f){return-1!==(" "+e.className+" ").indexOf(" "+f+" ")}function pa(e,f,h,n){na?e.removeEventListener(f,h,!!n):e.detachEvent("on"+f,h)}function ma(e,f,h,n){na?e.addEventListener(f,h,!!n):e.attachEvent("on"+f,h)}var la="function"==typeof e,na=!!window.addEventListener,ra=window.document,sa=window.setTimeout,Da={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",
|
|
22
22
|
reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,showTodayButton:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,
|
|
23
|
-
blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",today:"Today",months:"January February March April May June July August September October November December".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0};return ba.prototype={config:function(e){this._o||(this._o=h({},
|
|
23
|
+
blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",today:"Today",months:"January February March April May June July August September October November December".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),weekdaysShort:"Sun Mon Tue Wed Thu Fri Sat".split(" ")},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0};return ba.prototype={config:function(e){this._o||(this._o=h({},Da,!0));e=h(this._o,
|
|
24
24
|
e,!0);e.isRTL=!!e.isRTL;e.field=e.field&&e.field.nodeName?e.field:null;e.theme="string"==typeof e.theme&&e.theme?e.theme:null;e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field);e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field;e.disableWeekends=!!e.disableWeekends;e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var f=parseInt(e.numberOfMonths,10)||1;(e.numberOfMonths=4<f?4:f,r(e.minDate)||(e.minDate=!1),r(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&
|
|
25
|
-
(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),z(e.yearRange))?(f=(new Date).getFullYear()-10,e.yearRange[0]=parseInt(e.yearRange[0],10)||f,e.yearRange[1]=parseInt(e.yearRange[1],10)||f):(e.yearRange=Math.abs(parseInt(e.yearRange,10))||
|
|
25
|
+
(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),z(e.yearRange))?(f=(new Date).getFullYear()-10,e.yearRange[0]=parseInt(e.yearRange[0],10)||f,e.yearRange[1]=parseInt(e.yearRange[1],10)||f):(e.yearRange=Math.abs(parseInt(e.yearRange,10))||Da.yearRange,100<e.yearRange&&(e.yearRange=100));return e},toString:function(f){return f=f||this._o.format,r(this._d)?this._o.toString?this._o.toString(this._d,f):la?e(this._d).format(f):this._d.toDateString():""},
|
|
26
26
|
getMoment:function(){return la?e(this._d):null},setMoment:function(f,h){la&&e.isMoment(f)&&this.setDate(f.toDate(),h)},getDate:function(){return r(this._d)?new Date(this._d.getTime()):null},setDate:function(e,f){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",n(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),r(e)){var h=this._o.minDate,w=this._o.maxDate;r(h)&&e<h?e=h:r(w)&&e>w&&(e=w);this._d=new Date(e.getTime());this.gotoDate(this._d);
|
|
27
27
|
this._o.field&&(this._o.field.value=this.toString(),n(this._o.field,"change",{firedBy:this}));f||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(e){var f=!0;if(r(e)){if(this.calendars){f=new Date(this.calendars[0].year,this.calendars[0].month,1);var h=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),n=e.getTime();h.setMonth(h.getMonth()+1);h.setDate(h.getDate()-
|
|
28
28
|
1);f=n<f.getTime()||h.getTime()<n}f&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths));this.adjustCalendars()}},adjustDate:function(e,f){var h,n=this.getDate()||new Date;f=864E5*parseInt(f);"add"===e?h=new Date(n.valueOf()+f):"subtract"===e&&(h=new Date(n.valueOf()-f));this.setDate(h)},adjustCalendars:function(){this.calendars[0]=y(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=
|
|
29
29
|
y({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(f(e),
|
|
30
|
-
this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=
|
|
30
|
+
this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=Da.minDate,this._o.minYear=Da.minYear,this._o.minMonth=Da.minMonth,this._o.startRange=Da.startRange);this.draw()},setMaxDate:function(e){e instanceof Date?(f(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=Da.maxDate,this._o.maxYear=Da.maxYear,this._o.maxMonth=Da.maxMonth,this._o.endRange=Da.endRange);this.draw()},setStartRange:function(e){this._o.startRange=
|
|
31
31
|
e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var f=this._o;var h=f.minYear;var n=f.maxYear,r=f.minMonth,w=f.maxMonth;e="";this._y<=h&&(this._y=h,!isNaN(r)&&this._m<r&&(this._m=r));this._y>=n&&(this._y=n,!isNaN(w)&&this._m>w&&(this._m=w));for(n=0;n<f.numberOfMonths;n++)h="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),e+='<div class="pika-lendar">'+ha(this,n,this.calendars[n].year,this.calendars[n].month,this.calendars[0].year,h)+this.render(this.calendars[n].year,
|
|
32
|
-
this.calendars[n].month,h)+"</div>";this.el.innerHTML=e;f.bound&&"hidden"!==f.field.type&&sa(function(){f.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);f.bound&&f.field.setAttribute("aria-label",f.ariaLabel)}},adjustPosition:function(){var e,f,h,n,r,w,x,y,aa;if(!this._o.container){if(this.el.style.position="absolute",f=e=this._o.trigger,h=this.el.offsetWidth,n=this.el.offsetHeight,r=window.innerWidth||
|
|
33
|
-
x=window.pageYOffset||
|
|
32
|
+
this.calendars[n].month,h)+"</div>";this.el.innerHTML=e;f.bound&&"hidden"!==f.field.type&&sa(function(){f.trigger.focus()},1);"function"==typeof this._o.onDraw&&this._o.onDraw(this);f.bound&&f.field.setAttribute("aria-label",f.ariaLabel)}},adjustPosition:function(){var e,f,h,n,r,w,x,y,aa;if(!this._o.container){if(this.el.style.position="absolute",f=e=this._o.trigger,h=this.el.offsetWidth,n=this.el.offsetHeight,r=window.innerWidth||ra.documentElement.clientWidth,w=window.innerHeight||ra.documentElement.clientHeight,
|
|
33
|
+
x=window.pageYOffset||ra.body.scrollTop||ra.documentElement.scrollTop,y=!0,aa=!0,"function"==typeof e.getBoundingClientRect){var z=(f=e.getBoundingClientRect()).left+window.pageXOffset;var ba=f.bottom+window.pageYOffset}else for(z=f.offsetLeft,ba=f.offsetTop+f.offsetHeight;f=f.offsetParent;)z+=f.offsetLeft,ba+=f.offsetTop;(this._o.reposition&&z+h>r||-1<this._o.position.indexOf("right")&&0<z-h+e.offsetWidth)&&(z=z-h+e.offsetWidth,y=!1);(this._o.reposition&&ba+n>w+x||-1<this._o.position.indexOf("top")&&
|
|
34
34
|
0<ba-n-e.offsetHeight)&&(ba=ba-n-e.offsetHeight,aa=!1);0>z&&(z=0);0>ba&&(ba=0);this.el.style.left=z+"px";this.el.style.top=ba+"px";ia(this.el,y?"left-aligned":"right-aligned");ia(this.el,aa?"bottom-aligned":"top-aligned");fa(this.el,y?"right-aligned":"left-aligned");fa(this.el,aa?"top-aligned":"bottom-aligned")}},render:function(e,h,n){var w=this._o,y=new Date,z=[31,0==e%4&&0!=e%100||0==e%400?29:28,31,30,31,30,31,31,30,31,30,31][h],ba=(new Date(e,h,1)).getDay(),ea=[],fa=[];f(y);0<w.firstDay&&0>(ba-=
|
|
35
|
-
w.firstDay)&&(ba+=7);for(var ha=0===h?11:h-1,ia=11===h?0:h+1,ja=0===h?e-1:e,
|
|
36
|
-
w.endRange.getTime()===ma.getTime(),bb=w.startRange&&w.endRange&&w.startRange<ma&&ma<w.endRange;pa&&(oa<ba?(
|
|
37
|
-
enableSelectionDaysInNextAndPreviousMonths:w.enableSelectionDaysInNextAndPreviousMonths};w.pickWholeWeek&&va&&(
|
|
38
|
-
this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&pa(
|
|
39
|
-
pa(
|
|
35
|
+
w.firstDay)&&(ba+=7);for(var ha=0===h?11:h-1,ia=11===h?0:h+1,ja=0===h?e-1:e,qa=11===h?e+1:e,ka=[31,0==ja%4&&0!=ja%100||0==ja%400?29:28,31,30,31,30,31,31,30,31,30,31][ha],la=z+ba,ra=la;7<ra;)ra-=7;la+=7-ra;ra=!1;for(var oa=0,na=0;oa<la;oa++){var ma=new Date(e,h,oa-ba+1),va=!!r(this._d)&&ma.getTime()===this._d.getTime(),sa=ma.getTime()===y.getTime(),wa=-1!==w.events.indexOf(ma.toDateString()),pa=oa<ba||oa>=z+ba,Da=oa-ba+1,Oa=h,Ta=e,Nb=w.startRange&&w.startRange.getTime()===ma.getTime(),sc=w.endRange&&
|
|
36
|
+
w.endRange.getTime()===ma.getTime(),bb=w.startRange&&w.endRange&&w.startRange<ma&&ma<w.endRange;pa&&(oa<ba?(Da=ka+Da,Oa=ha,Ta=ja):(Da-=z,Oa=ia,Ta=qa));var lb;!(lb=w.minDate&&ma<w.minDate||w.maxDate&&ma>w.maxDate)&&(lb=w.disableWeekends)&&(lb=ma.getDay(),lb=0===lb||6===lb);ma={day:Da,month:Oa,year:Ta,hasEvent:wa,isSelected:va,isToday:sa,isDisabled:lb||w.disableDayFn&&w.disableDayFn(ma),isEmpty:pa,isStartRange:Nb,isEndRange:sc,isInRange:bb,showDaysInNextAndPreviousMonths:w.showDaysInNextAndPreviousMonths,
|
|
37
|
+
enableSelectionDaysInNextAndPreviousMonths:w.enableSelectionDaysInNextAndPreviousMonths};w.pickWholeWeek&&va&&(ra=!0);fa.push(aa(ma));7==++na&&(w.showWeekNumber&&fa.unshift(da(oa-ba,h,e,w.firstWeekOfYearMinDays)),ea.push(ca(fa,w.isRTL,w.pickWholeWeek,ra)),fa=[],na=0,ra=!1)}return x(w,ea,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),fa(this.el,"is-hidden"),this._o.bound&&(ma(ra,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&
|
|
38
|
+
this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&pa(ra,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),ia(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide();pa(this.el,"mousedown",this._onMouseDown,!0);pa(this.el,"touchend",this._onMouseDown,!0);pa(this.el,"change",this._onChange);e.keyboardInput&&
|
|
39
|
+
pa(ra,"keydown",this._onKeyChange);e.field&&(pa(e.field,"change",this._onInputChange),e.bound&&(pa(e.trigger,"click",this._onInputClick),pa(e.trigger,"focus",this._onInputFocus),pa(e.trigger,"blur",this._onInputBlur)));this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},ba})}}]);}).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([[20],{447:function(ia,ba,e){(function(e){function x(e){this.Xf=e=e||{};if(Array.isArray(e.table)){var f=[];e.table.forEach(function(e,h){f[e.charCodeAt(0)]=h});e.
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[20],{447:function(ia,ba,e){(function(e){function x(e){this.Xf=e=e||{};if(Array.isArray(e.table)){var f=[];e.table.forEach(function(e,h){f[e.charCodeAt(0)]=h});e.S9=e.table;e.c7=f}}var ba=e.from||function(){switch(arguments.length){case 1:return new e(arguments[0]);case 2:return new e(arguments[0],arguments[1]);case 3:return new e(arguments[0],arguments[1],arguments[2]);default:throw new Exception("unexpected call.");}},ca=e.allocUnsafe||
|
|
3
3
|
function(f){return new e(f)},da=function(){return"undefined"===typeof Uint8Array?function(e){return Array(e)}:function(e){return new Uint8Array(e)}}(),aa=String.fromCharCode(0),w=aa+aa+aa+aa,y=ba("<~").Vx(0),n=ba("~>").Vx(0),h=function(){var e=Array(85),f;for(f=0;85>f;f++)e[f]=String.fromCharCode(33+f);return e}(),f=function(){var e=Array(256),f;for(f=0;85>f;f++)e[33+f]=f;return e}();aa=ia.exports=new x;x.prototype.encode=function(f,n){var r=da(5),w=f,x=this.Xf,y,aa;"string"===typeof w?w=ba(w,"binary"):
|
|
4
|
-
w instanceof e||(w=ba(w));n=n||{};if(Array.isArray(n)){f=n;var z=x.yB||!1;var ea=x.zJ||!1}else f=n.table||x.
|
|
5
|
-
x);y=aa=0}}if(y)if(aa){w=4-y;for(ia=4-y;0<ia;ia--)aa*=256;for(y=4;0<=y;y--)
|
|
6
|
-
0;if(aa||z){var
|
|
7
|
-
5-da;for(
|
|
4
|
+
w instanceof e||(w=ba(w));n=n||{};if(Array.isArray(n)){f=n;var z=x.yB||!1;var ea=x.zJ||!1}else f=n.table||x.S9||h,z=void 0===n.yB?x.yB||!1:!!n.yB,ea=void 0===n.zJ?x.zJ||!1:!!n.zJ;x=0;var ha=Math.ceil(5*w.length/4)+4+(z?4:0);n=ca(ha);z&&(x+=n.write("<~",x));var ia=y=aa=0;for(ha=w.length;ia<ha;ia++){var Da=w.wL(ia);aa*=256;aa+=Da;y++;if(!(y%4)){if(ea&&538976288===aa)x+=n.write("y",x);else if(aa){for(y=4;0<=y;y--)Da=aa%85,r[y]=Da,aa=(aa-Da)/85;for(y=0;5>y;y++)x+=n.write(f[r[y]],x)}else x+=n.write("z",
|
|
5
|
+
x);y=aa=0}}if(y)if(aa){w=4-y;for(ia=4-y;0<ia;ia--)aa*=256;for(y=4;0<=y;y--)Da=aa%85,r[y]=Da,aa=(aa-Da)/85;for(y=0;5>y;y++)x+=n.write(f[r[y]],x);x-=w}else for(ia=0;ia<y+1;ia++)x+=n.write(f[0],x);z&&(x+=n.write("~>",x));return n.slice(0,x)};x.prototype.decode=function(h,x){var r=this.Xf,aa=!0,z=!0,da,ea,ha;x=x||r.c7||f;if(!Array.isArray(x)&&(x=x.table||x,!Array.isArray(x))){var ia=[];Object.keys(x).forEach(function(e){ia[e.charCodeAt(0)]=x[e]});x=ia}aa=!x[122];z=!x[121];h instanceof e||(h=ba(h));ia=
|
|
6
|
+
0;if(aa||z){var ra=0;for(ha=h.length;ra<ha;ra++){var sa=h.wL(ra);aa&&122===sa&&ia++;z&&121===sa&&ia++}}var Da=0;ha=Math.ceil(4*h.length/5)+4*ia+5;r=ca(ha);if(4<=h.length&&h.Vx(0)===y){for(ra=h.length-2;2<ra&&h.Vx(ra)!==n;ra--);if(2>=ra)throw Error("Invalid ascii85 string delimiter pair.");h=h.slice(2,ra)}ra=da=ea=0;for(ha=h.length;ra<ha;ra++)sa=h.wL(ra),aa&&122===sa?Da+=r.write(w,Da):z&&121===sa?Da+=r.write(" ",Da):void 0!==x[sa]&&(ea*=85,ea+=x[sa],da++,da%5||(Da=r.qma(ea,Da),da=ea=0));if(da){h=
|
|
7
|
+
5-da;for(ra=0;ra<h;ra++)ea*=85,ea+=84;ra=3;for(ha=h-1;ra>ha;ra--)Da=r.rma(ea>>>8*ra&255,Da)}return r.slice(0,Da)};aa.lna=new x({table:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-:+=^!/*?&<>()[]{}@%$#".split("")});aa.Jma=new x({yB:!0});aa.J_=x}).call(this,e(455).Buffer)}}]);}).call(this || window)
|
|
@@ -1,31 +1,31 @@
|
|
|
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([[1],{455:function(ia,ba,e){(function(ea){function x(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,
|
|
2
|
+
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[1],{455:function(ia,ba,e){(function(ea){function x(){try{var e=new Uint8Array(1);e.__proto__={__proto__:Uint8Array.prototype,Goa:function(){return 42}};return"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(ua){return!1}}function ha(e,f){if((ca.$e?2147483647:1073741823)<f)throw new RangeError("Invalid typed array length");ca.$e?(e=new Uint8Array(f),e.__proto__=ca.prototype):(null===e&&(e=new ca(f)),e.length=f);
|
|
3
3
|
return e}function ca(e,f,h){if(!(ca.$e||this instanceof ca))return new ca(e,f,h);if("number"===typeof e){if("string"===typeof f)throw Error("If encoding is specified then the first argument must be a string");return w(this,e)}return da(this,e,f,h)}function da(e,h,r,w){if("number"===typeof h)throw new TypeError('"value" argument must not be a number');if("undefined"!==typeof ArrayBuffer&&h instanceof ArrayBuffer){h.byteLength;if(0>r||h.byteLength<r)throw new RangeError("'offset' is out of bounds");
|
|
4
|
-
if(h.byteLength<r+(w||0))throw new RangeError("'length' is out of bounds");h=void 0===r&&void 0===w?new Uint8Array(h):void 0===w?new Uint8Array(h,r):new Uint8Array(h,r,w);ca.$e?(e=h,e.__proto__=ca.prototype):e=y(e,h);h=e}else if("string"===typeof h){w=e;e=r;if("string"!==typeof e||""===e)e="utf8";if(!ca.
|
|
4
|
+
if(h.byteLength<r+(w||0))throw new RangeError("'length' is out of bounds");h=void 0===r&&void 0===w?new Uint8Array(h):void 0===w?new Uint8Array(h,r):new Uint8Array(h,r,w);ca.$e?(e=h,e.__proto__=ca.prototype):e=y(e,h);h=e}else if("string"===typeof h){w=e;e=r;if("string"!==typeof e||""===e)e="utf8";if(!ca.UU(e))throw new TypeError('"encoding" must be a valid string encoding');r=f(h,e)|0;w=ha(w,r);h=w.write(h,e);h!==r&&(w=w.slice(0,h));h=w}else h=n(e,h);return h}function aa(e){if("number"!==typeof e)throw new TypeError('"size" argument must be a number');
|
|
5
5
|
if(0>e)throw new RangeError('"size" argument must not be negative');}function w(e,f){aa(f);e=ha(e,0>f?0:h(f)|0);if(!ca.$e)for(var n=0;n<f;++n)e[n]=0;return e}function y(e,f){var n=0>f.length?0:h(f.length)|0;e=ha(e,n);for(var r=0;r<n;r+=1)e[r]=f[r]&255;return e}function n(e,f){if(ca.isBuffer(f)){var n=h(f.length)|0;e=ha(e,n);if(0===e.length)return e;f.copy(e,0,0,n);return e}if(f){if("undefined"!==typeof ArrayBuffer&&f.buffer instanceof ArrayBuffer||"length"in f)return(n="number"!==typeof f.length)||
|
|
6
|
-
(n=f.length,n=n!==n),n?ha(e,0):y(e,f);if("Buffer"===f.type&&
|
|
7
|
-
(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var h=e.length;if(0===h)return 0;for(var n=!1;;)switch(f){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return sa.
|
|
6
|
+
(n=f.length,n=n!==n),n?ha(e,0):y(e,f);if("Buffer"===f.type&&Da(f.data))return y(e,f.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");}function h(e){if(e>=(ca.$e?2147483647:1073741823))throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+(ca.$e?2147483647:1073741823).toString(16)+" bytes");return e|0}function f(e,f){if(ca.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&
|
|
7
|
+
(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var h=e.length;if(0===h)return 0;for(var n=!1;;)switch(f){case "ascii":case "latin1":case "binary":return h;case "utf8":case "utf-8":case void 0:return la(e).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*h;case "hex":return h>>>1;case "base64":return sa.OZ(ma(e)).length;default:if(n)return la(e).length;f=(""+f).toLowerCase();n=!0}}function r(e,f,h){var n=!1;if(void 0===f||
|
|
8
8
|
0>f)f=0;if(f>this.length)return"";if(void 0===h||h>this.length)h=this.length;if(0>=h)return"";h>>>=0;f>>>=0;if(h<=f)return"";for(e||(e="utf8");;)switch(e){case "hex":e=f;f=h;h=this.length;if(!e||0>e)e=0;if(!f||0>f||f>h)f=h;n="";for(h=e;h<f;++h)e=n,n=this[h],n=16>n?"0"+n.toString(16):n.toString(16),n=e+n;return n;case "utf8":case "utf-8":return ia(this,f,h);case "ascii":e="";for(h=Math.min(this.length,h);f<h;++f)e+=String.fromCharCode(this[f]&127);return e;case "latin1":case "binary":e="";for(h=Math.min(this.length,
|
|
9
9
|
h);f<h;++f)e+=String.fromCharCode(this[f]);return e;case "base64":return 0===f&&h===this.length?sa.PS(this):sa.PS(this.slice(f,h));case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":f=this.slice(f,h);h="";for(e=0;e<f.length;e+=2)h+=String.fromCharCode(f[e]+256*f[e+1]);return h;default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase();n=!0}}function z(e,f,h,n,r){if(0===e.length)return-1;"string"===typeof h?(n=h,h=0):2147483647<h?h=2147483647:-2147483648>h&&(h=-2147483648);
|
|
10
10
|
h=+h;isNaN(h)&&(h=r?0:e.length-1);0>h&&(h=e.length+h);if(h>=e.length){if(r)return-1;h=e.length-1}else if(0>h)if(r)h=0;else return-1;"string"===typeof f&&(f=ca.from(f,n));if(ca.isBuffer(f))return 0===f.length?-1:fa(e,f,h,n,r);if("number"===typeof f)return f&=255,ca.$e&&"function"===typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,f,h):Uint8Array.prototype.lastIndexOf.call(e,f,h):fa(e,[f],h,n,r);throw new TypeError("val must be string, number or Buffer");}function fa(e,f,h,
|
|
11
11
|
n,r){function w(e,f){return 1===x?e[f]:e.Vx(f*x)}var x=1,z=e.length,y=f.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(2>e.length||2>f.length)return-1;x=2;z/=2;y/=2;h/=2}if(r)for(n=-1;h<z;h++)if(w(e,h)===w(f,-1===n?0:h-n)){if(-1===n&&(n=h),h-n+1===y)return n*x}else-1!==n&&(h-=h-n),n=-1;else for(h+y>z&&(h=z-y);0<=h;h--){z=!0;for(n=0;n<y;n++)if(w(e,h+n)!==w(f,n)){z=!1;break}if(z)return h}return-1}function ia(e,f,h){h=Math.min(e.length,h);
|
|
12
12
|
for(var n=[];f<h;){var r=e[f],w=null,x=239<r?4:223<r?3:191<r?2:1;if(f+x<=h)switch(x){case 1:128>r&&(w=r);break;case 2:var z=e[f+1];128===(z&192)&&(r=(r&31)<<6|z&63,127<r&&(w=r));break;case 3:z=e[f+1];var y=e[f+2];128===(z&192)&&128===(y&192)&&(r=(r&15)<<12|(z&63)<<6|y&63,2047<r&&(55296>r||57343<r)&&(w=r));break;case 4:z=e[f+1];y=e[f+2];var aa=e[f+3];128===(z&192)&&128===(y&192)&&128===(aa&192)&&(r=(r&15)<<18|(z&63)<<12|(y&63)<<6|aa&63,65535<r&&1114112>r&&(w=r))}null===w?(w=65533,x=1):65535<w&&(w-=
|
|
13
|
-
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);f+=x}e=n.length;if(e<=
|
|
13
|
+
65536,n.push(w>>>10&1023|55296),w=56320|w&1023);n.push(w);f+=x}e=n.length;if(e<=qa)n=String.fromCharCode.apply(String,n);else{h="";for(f=0;f<e;)h+=String.fromCharCode.apply(String,n.slice(f,f+=qa));n=h}return n}function ja(e,f,h){if(0!==e%1||0>e)throw new RangeError("offset is not uint");if(e+f>h)throw new RangeError("Trying to access beyond buffer length");}function pa(e,f,h,n,r,w){if(!ca.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(f>r||f<w)throw new RangeError('"value" argument is out of bounds');
|
|
14
14
|
if(h+n>e.length)throw new RangeError("Index out of range");}function ma(e){e=(e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(va,"");if(2>e.length)return"";for(;0!==e.length%4;)e+="=";return e}function la(e,f){f=f||Infinity;for(var h,n=e.length,r=null,w=[],x=0;x<n;++x){h=e.charCodeAt(x);if(55295<h&&57344>h){if(!r){if(56319<h){-1<(f-=3)&&w.push(239,191,189);continue}else if(x+1===n){-1<(f-=3)&&w.push(239,191,189);continue}r=h;continue}if(56320>h){-1<(f-=3)&&w.push(239,191,189);r=h;continue}h=(r-
|
|
15
|
-
55296<<10|h-56320)+65536}else r&&-1<(f-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--f)break;w.push(h)}else if(2048>h){if(0>(f-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(f-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(f-=4))break;w.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw Error("Invalid code point");}return w}function na(e){for(var f=[],h=0;h<e.length;++h)f.push(e.charCodeAt(h)&255);return f}function
|
|
16
|
-
h>=f.length||r>=e.length);++r)f[r+h]=e[r];return r}var sa=e(464);e(465);var
|
|
17
|
-
{value:null,configurable:!0}));ca.FQ=function(e){aa(e);return ha(null,e)};ca.allocUnsafe=function(e){return w(null,e)};ca.
|
|
18
|
-
default:return!1}};ca.concat=function(e,f){if(!
|
|
19
|
-
arguments.length?ia(this,0,e):r.apply(this,arguments)};ca.prototype.vs=function(e){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===ca.compare(this,e)};ca.prototype.inspect=function(){var e="",f=ba.
|
|
15
|
+
55296<<10|h-56320)+65536}else r&&-1<(f-=3)&&w.push(239,191,189);r=null;if(128>h){if(0>--f)break;w.push(h)}else if(2048>h){if(0>(f-=2))break;w.push(h>>6|192,h&63|128)}else if(65536>h){if(0>(f-=3))break;w.push(h>>12|224,h>>6&63|128,h&63|128)}else if(1114112>h){if(0>(f-=4))break;w.push(h>>18|240,h>>12&63|128,h>>6&63|128,h&63|128)}else throw Error("Invalid code point");}return w}function na(e){for(var f=[],h=0;h<e.length;++h)f.push(e.charCodeAt(h)&255);return f}function ra(e,f,h,n){for(var r=0;r<n&&!(r+
|
|
16
|
+
h>=f.length||r>=e.length);++r)f[r+h]=e[r];return r}var sa=e(464);e(465);var Da=e(466);ba.Buffer=ca;ba.Mma=function(e){+e!=e&&(e=0);return ca.FQ(+e)};ba.u0=50;ca.$e=void 0!==ea.$e?ea.$e:x();ba.ppa=ca.$e?2147483647:1073741823;ca.Qpa=8192;ca.qna=function(e){e.__proto__=ca.prototype;return e};ca.from=function(e,f,h){return da(null,e,f,h)};ca.$e&&(ca.prototype.__proto__=Uint8Array.prototype,ca.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.sZ&&ca[Symbol.sZ]===ca&&Object.defineProperty(ca,Symbol.sZ,
|
|
17
|
+
{value:null,configurable:!0}));ca.FQ=function(e){aa(e);return ha(null,e)};ca.allocUnsafe=function(e){return w(null,e)};ca.Fna=function(e){return w(null,e)};ca.isBuffer=function(e){return!(null==e||!e.s3)};ca.compare=function(e,f){if(!ca.isBuffer(e)||!ca.isBuffer(f))throw new TypeError("Arguments must be Buffers");if(e===f)return 0;for(var h=e.length,n=f.length,r=0,w=Math.min(h,n);r<w;++r)if(e[r]!==f[r]){h=e[r];n=f[r];break}return h<n?-1:n<h?1:0};ca.UU=function(e){switch(String(e).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "latin1":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;
|
|
18
|
+
default:return!1}};ca.concat=function(e,f){if(!Da(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return ca.FQ(0);var h;if(void 0===f)for(h=f=0;h<e.length;++h)f+=e[h].length;f=ca.allocUnsafe(f);var n=0;for(h=0;h<e.length;++h){var r=e[h];if(!ca.isBuffer(r))throw new TypeError('"list" argument must be an Array of Buffers');r.copy(f,n);n+=r.length}return f};ca.byteLength=f;ca.prototype.s3=!0;ca.prototype.toString=function(){var e=this.length|0;return 0===e?"":0===
|
|
19
|
+
arguments.length?ia(this,0,e):r.apply(this,arguments)};ca.prototype.vs=function(e){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:0===ca.compare(this,e)};ca.prototype.inspect=function(){var e="",f=ba.u0;0<this.length&&(e=this.toString("hex",0,f).match(/.{2}/g).join(" "),this.length>f&&(e+=" ... "));return"<Buffer "+e+">"};ca.prototype.compare=function(e,f,h,n,r){if(!ca.isBuffer(e))throw new TypeError("Argument must be a Buffer");void 0===f&&(f=0);void 0===h&&
|
|
20
20
|
(h=e?e.length:0);void 0===n&&(n=0);void 0===r&&(r=this.length);if(0>f||h>e.length||0>n||r>this.length)throw new RangeError("out of range index");if(n>=r&&f>=h)return 0;if(n>=r)return-1;if(f>=h)return 1;f>>>=0;h>>>=0;n>>>=0;r>>>=0;if(this===e)return 0;var w=r-n,x=h-f,z=Math.min(w,x);n=this.slice(n,r);e=e.slice(f,h);for(f=0;f<z;++f)if(n[f]!==e[f]){w=n[f];x=e[f];break}return w<x?-1:x<w?1:0};ca.prototype.includes=function(e,f,h){return-1!==this.indexOf(e,f,h)};ca.prototype.indexOf=function(e,f,h){return z(this,
|
|
21
21
|
e,f,h,!0)};ca.prototype.lastIndexOf=function(e,f,h){return z(this,e,f,h,!1)};ca.prototype.write=function(e,f,h,n){if(void 0===f)n="utf8",h=this.length,f=0;else if(void 0===h&&"string"===typeof f)n=f,h=this.length,f=0;else if(isFinite(f))f|=0,isFinite(h)?(h|=0,void 0===n&&(n="utf8")):(n=h,h=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var r=this.length-f;if(void 0===h||h>r)h=r;if(0<e.length&&(0>h||0>f)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");
|
|
22
|
-
n||(n="utf8");for(r=!1;;)switch(n){case "hex":f=Number(f)||0;n=this.length-f;h?(h=Number(h),h>n&&(h=n)):h=n;n=e.length;if(0!==n%2)throw new TypeError("Invalid hex string");h>n/2&&(h=n/2);for(n=0;n<h;++n){r=parseInt(e.substr(2*n,2),16);if(isNaN(r))break;this[f+n]=r}return n;case "utf8":case "utf-8":return
|
|
23
|
-
e;r=this.length-f;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var z=n.charCodeAt(x);e=z>>8;z%=256;w.push(z);w.push(e)}return
|
|
24
|
-
this.subarray(e,f),f.__proto__=ca.prototype;else{h=f-e;f=new ca(h,void 0);for(var n=0;n<h;++n)f[n]=this[n+e]}return f};ca.prototype.wL=function(e){ja(e,1,this.length);return this[e]};ca.prototype.Vx=function(e){ja(e,2,this.length);return this[e]<<8|this[e+1]};ca.prototype.
|
|
22
|
+
n||(n="utf8");for(r=!1;;)switch(n){case "hex":f=Number(f)||0;n=this.length-f;h?(h=Number(h),h>n&&(h=n)):h=n;n=e.length;if(0!==n%2)throw new TypeError("Invalid hex string");h>n/2&&(h=n/2);for(n=0;n<h;++n){r=parseInt(e.substr(2*n,2),16);if(isNaN(r))break;this[f+n]=r}return n;case "utf8":case "utf-8":return ra(la(e,this.length-f),this,f,h);case "ascii":return ra(na(e),this,f,h);case "latin1":case "binary":return ra(na(e),this,f,h);case "base64":return ra(sa.OZ(ma(e)),this,f,h);case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":n=
|
|
23
|
+
e;r=this.length-f;for(var w=[],x=0;x<n.length&&!(0>(r-=2));++x){var z=n.charCodeAt(x);e=z>>8;z%=256;w.push(z);w.push(e)}return ra(w,this,f,h);default:if(r)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase();r=!0}};ca.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.pna||this,0)}};var qa=4096;ca.prototype.slice=function(e,f){var h=this.length;e=~~e;f=void 0===f?h:~~f;0>e?(e+=h,0>e&&(e=0)):e>h&&(e=h);0>f?(f+=h,0>f&&(f=0)):f>h&&(f=h);f<e&&(f=e);if(ca.$e)f=
|
|
24
|
+
this.subarray(e,f),f.__proto__=ca.prototype;else{h=f-e;f=new ca(h,void 0);for(var n=0;n<h;++n)f[n]=this[n+e]}return f};ca.prototype.wL=function(e){ja(e,1,this.length);return this[e]};ca.prototype.Vx=function(e){ja(e,2,this.length);return this[e]<<8|this[e+1]};ca.prototype.rma=function(e,f){e=+e;f|=0;pa(this,e,f,1,255,0);ca.$e||(e=Math.floor(e));this[f]=e&255;return f+1};ca.prototype.qma=function(e,f){e=+e;f|=0;pa(this,e,f,4,4294967295,0);if(ca.$e)this[f]=e>>>24,this[f+1]=e>>>16,this[f+2]=e>>>8,this[f+
|
|
25
25
|
3]=e&255;else{var h=f;0>e&&(e=4294967295+e+1);for(var n=0,r=Math.min(this.length-h,4);n<r;++n)this[h+n]=e>>>8*(3-n)&255}return f+4};ca.prototype.copy=function(e,f,h,n){h||(h=0);n||0===n||(n=this.length);f>=e.length&&(f=e.length);f||(f=0);0<n&&n<h&&(n=h);if(n===h||0===e.length||0===this.length)return 0;if(0>f)throw new RangeError("targetStart out of bounds");if(0>h||h>=this.length)throw new RangeError("sourceStart out of bounds");if(0>n)throw new RangeError("sourceEnd out of bounds");n>this.length&&
|
|
26
26
|
(n=this.length);e.length-f<n-h&&(n=e.length-f+h);var r=n-h;if(this===e&&h<f&&f<n)for(n=r-1;0<=n;--n)e[n+f]=this[n+h];else if(1E3>r||!ca.$e)for(n=0;n<r;++n)e[n+f]=this[n+h];else Uint8Array.prototype.set.call(e,this.subarray(h,h+r),f);return r};ca.prototype.fill=function(e,f,h,n){if("string"===typeof e){"string"===typeof f?(n=f,f=0,h=this.length):"string"===typeof h&&(n=h,h=this.length);if(1===e.length){var r=e.charCodeAt(0);256>r&&(e=r)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");
|
|
27
|
-
if("string"===typeof n&&!ca.
|
|
28
|
-
e.length;if(0<x%4)throw Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");-1===e&&(e=x);return[e,e===x?0:4-e%4]}function ea(e,aa,w){for(var y=[],n=aa;n<w;n+=3)aa=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),y.push(x[aa>>18&63]+x[aa>>12&63]+x[aa>>6&63]+x[aa&63]);return y.join("")}ba.byteLength=function(x){x=e(x);var aa=x[1];return 3*(x[0]+aa)/4-aa};ba.
|
|
27
|
+
if("string"===typeof n&&!ca.UU(n))throw new TypeError("Unknown encoding: "+n);}else"number"===typeof e&&(e&=255);if(0>f||this.length<f||this.length<h)throw new RangeError("Out of range index");if(h<=f)return this;f>>>=0;h=void 0===h?this.length:h>>>0;e||(e=0);if("number"===typeof e)for(n=f;n<h;++n)this[n]=e;else for(e=ca.isBuffer(e)?e:la((new ca(e,n)).toString()),r=e.length,n=0;n<h-f;++n)this[n+f]=e[n%r];return this};var va=/[^+\/0-9A-Za-z-_]/g}).call(this,e(178))},464:function(ia,ba){function e(e){var x=
|
|
28
|
+
e.length;if(0<x%4)throw Error("Invalid string. Length must be a multiple of 4");e=e.indexOf("=");-1===e&&(e=x);return[e,e===x?0:4-e%4]}function ea(e,aa,w){for(var y=[],n=aa;n<w;n+=3)aa=(e[n]<<16&16711680)+(e[n+1]<<8&65280)+(e[n+2]&255),y.push(x[aa>>18&63]+x[aa>>12&63]+x[aa>>6&63]+x[aa&63]);return y.join("")}ba.byteLength=function(x){x=e(x);var aa=x[1];return 3*(x[0]+aa)/4-aa};ba.OZ=function(x){var aa=e(x);var w=aa[0];aa=aa[1];var y=new ca(3*(w+aa)/4-aa),n=0,h=0<aa?w-4:w,f;for(f=0;f<h;f+=4)w=ha[x.charCodeAt(f)]<<
|
|
29
29
|
18|ha[x.charCodeAt(f+1)]<<12|ha[x.charCodeAt(f+2)]<<6|ha[x.charCodeAt(f+3)],y[n++]=w>>16&255,y[n++]=w>>8&255,y[n++]=w&255;2===aa&&(w=ha[x.charCodeAt(f)]<<2|ha[x.charCodeAt(f+1)]>>4,y[n++]=w&255);1===aa&&(w=ha[x.charCodeAt(f)]<<10|ha[x.charCodeAt(f+1)]<<4|ha[x.charCodeAt(f+2)]>>2,y[n++]=w>>8&255,y[n++]=w&255);return y};ba.PS=function(e){for(var aa=e.length,w=aa%3,y=[],n=0,h=aa-w;n<h;n+=16383)y.push(ea(e,n,n+16383>h?h:n+16383));1===w?(e=e[aa-1],y.push(x[e>>2]+x[e<<4&63]+"==")):2===w&&(e=(e[aa-2]<<8)+
|
|
30
30
|
e[aa-1],y.push(x[e>>10]+x[e>>4&63]+x[e<<2&63]+"="));return y.join("")};var x=[],ha=[],ca="undefined"!==typeof Uint8Array?Uint8Array:Array;for(ia=0;64>ia;++ia)x[ia]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[ia],ha["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(ia)]=ia;ha[45]=62;ha[95]=63},465:function(ia,ba){ba.read=function(e,ba,x,ha,ca){var da=8*ca-ha-1;var aa=(1<<da)-1,w=aa>>1,y=-7;ca=x?ca-1:0;var n=x?-1:1,h=e[ba+ca];ca+=n;x=h&(1<<-y)-1;h>>=
|
|
31
31
|
-y;for(y+=da;0<y;x=256*x+e[ba+ca],ca+=n,y-=8);da=x&(1<<-y)-1;x>>=-y;for(y+=ha;0<y;da=256*da+e[ba+ca],ca+=n,y-=8);if(0===x)x=1-w;else{if(x===aa)return da?NaN:Infinity*(h?-1:1);da+=Math.pow(2,ha);x-=w}return(h?-1:1)*da*Math.pow(2,x-ha)};ba.write=function(e,ba,x,ha,ca,da){var aa,w=8*da-ca-1,y=(1<<w)-1,n=y>>1,h=23===ca?Math.pow(2,-24)-Math.pow(2,-77):0;da=ha?0:da-1;var f=ha?1:-1,r=0>ba||0===ba&&0>1/ba?1:0;ba=Math.abs(ba);isNaN(ba)||Infinity===ba?(ba=isNaN(ba)?1:0,ha=y):(ha=Math.floor(Math.log(ba)/Math.LN2),
|