/** Notice * This file contains works from many authors under various (but compatible) licenses. Please see core.txt for more information. **/
(function(){(window.wpCoreControlsBundle=window.wpCoreControlsBundle||[]).push([[14],{467:function(Ba,wa,r){function oa(){return!1}function na(z,y,da){if(!(y in n))return!0;y=n[y];for(var ia=0;ia<y.length;ia++){var ca=z;var ba=y[ia];var ja=da;if(ba.name in ca){var la="",ha=!1;ca=ca[ba.name];switch(ba.type){case "s":la="String";ha=Object(fa.isString)(ca);break;case "a":la="Array";ha=Object(fa.isArray)(ca);break;case "n":la="Number";ha=Object(fa.isNumber)(ca)&&Object(fa.isFinite)(ca);break;case "o":la="Object",
ha=Object(fa.isObject)(ca)&&!Object(fa.isArray)(ca)}ha||ja.reject('Expected response field "'+ba.name+'" to have type '+la);ba=ha}else ja.reject('Response missing field "'+ba.name+'"'),ba=!1;if(!ba)return!1}return!0}r.r(wa);var ma=r(0),fa=r(1);r.n(fa);var ea=r(2);Ba=r(48);var aa=r(23),w=r(484),x=r(100),h=r(394),e=r(43),a=r(177),b=function(){function z(){this.request=this.result=null;this.state=0;var y=this;y.promise=new Promise(function(da,ia){y.resolve=function(){if(0===y.state||4===y.state)y.state=
1,y.result=arguments[0],da.apply(null,arguments)};y.reject=function(){if(0===y.state||4===y.state)y.state=2,ia.apply(null,arguments)}})}z.prototype.Qt=function(){return 1===(this.state&1)};z.prototype.wha=function(){return 2===(this.state&2)};z.prototype.cj=function(){return!this.wha()&&!this.Qt()};z.prototype.Xga=function(){return 4===(this.state&4)};z.prototype.KN=function(){this.state|=4};return z}(),f=function(){function z(){this.yt={};this.Nb=[]}z.prototype.pop=function(){var y=this.Nb.pop();
this.yt[y.key]=void 0;return y};z.prototype.push=function(y,da){da={key:y,data:da};this.Nb.push(da);this.yt[y]=da.data};z.prototype.contains=function(y){return!!this.yt[y]};z.prototype.get=function(y){return this.yt[y]};z.prototype.set=function(y,da){var ia=this;this.yt[y]=da;this.Nb.forEach(function(ca,ba){ca.key===y&&(ia.Nb[ba]=ca)})};z.prototype.remove=function(y){var da=this;this.yt[y]=void 0;this.Nb.forEach(function(ia,ca){ia.key===y&&da.Nb.splice(ca,1)})};z.prototype.length=function(){return this.Nb.length};
return z}(),n={pages:[{name:"pages",type:"a"}],pdf:[{name:"url",type:"s"}],docmod:[{name:"url",type:"s"},{name:"rID",type:"s"}],health:[],tiles:[{name:"z",type:"n"},{name:"rID",type:"n"},{name:"tiles",type:"a"},{name:"size",type:"n"}],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"}]};r=function(){function z(y,da,ia){var ca=this;this.qO=this.nU=!1;this.wh=this.qG=this.$u=this.hM=this.EI=this.en=null;this.Km=new b;this.Wp=new b;this.iC=!1;this.Gf=this.He=this.Ie=this.zf=null;this.dg=[];this.UC=[];this.cache={};this.timeStamp=0;this.rh=[];this.mj=[];this.KJ=null;this.bU=!1;this.L_=this.id=null;this.TL=this.HW=oa;this.li=0;this.TK=!1;this.oY=1;this.ij={};this.qs=0;this.qu=new f;da.endsWith("/")||(da+="/");ia=ia||{};this.nU=ia.disableWebsockets||!1;this.qO=
ia.singleServerMode||!1;null!=ia.customQueryParameters&&Object(e.b)("wvsQueryParameters",ia.customQueryParameters);da.endsWith("blackbox/")||(da+="blackbox/");this.en=ia.uploadData||null;this.$u=ia.uriData||null;this.EI=ia.cacheKey||null;this.hM=ia.officeOptions||null;this.af=da;this.mJ=y;this.To(!0);this.Hs=(new w.a(da,null,this.Yh())).dda(!this.nU,function(ba){ca.Qia(ba)},function(){return null},function(){ca.iC=!1},function(){ca.Yla()})}z.prototype.G$=function(){var y=this;return new Promise(function(da,
ia){var ca=new XMLHttpRequest;ca.open("GET",y.af+"ck");ca.withCredentials=y.Yh();ca.onreadystatechange=function(){ca.readyState===XMLHttpRequest.DONE&&(200===ca.status?da():ia())};ca.send()})};z.prototype.Qna=function(y){this.HW=y||oa;this.TL=oa};z.prototype.n9=function(){this.o_();return this.Hs.kq(!0)};z.prototype.o_=function(){Object(ma.b)(this,void 0,void 0,function(){return Object(ma.d)(this,function(y){switch(y.label){case 0:return this.Wp=new b,this.Km=new b,this.iC=!1,this.id=null,this.bU=
!1,[4,this.G$()];case 1:return y.ca(),[2]}})})};z.prototype.Yla=function(){this.HW();this.o_();this.zf&&(this.zf.cj()?this.Ch(this.zf.request):this.zf.Qt()&&this.TL(this.zf.result.url,"pdf")&&(this.zf=null,this.n_()));this.Gf&&this.Gf.cj()&&this.Ch(this.Gf.request);this.Ie&&this.Ie.cj()?this.Ch(this.Ie.request):this.He&&this.He.cj()&&this.tW();var y;for(y=0;y<this.rh.length;y++)this.rh[y]&&(this.rh[y].cj()?this.Ch(this.rh[y].request):this.rh[y].Qt()&&this.TL(this.rh[y].result.url,"image")&&(this.rh[y]=
null,this.qF(Object(fa.uniqueId)(),y)));for(y=0;y<this.mj.length;y++)this.mj[y]&&this.mj[y].cj()&&!this.mj[y].Xga()&&this.Ch(this.mj[y].request);for(y=0;y<this.dg.length;y++)this.dg[y]&&this.dg[y].cj()&&this.Ch(this.dg[y].request)};z.prototype.Fga=function(){return this.iC?Promise.resolve():(this.iC=!0,this.timeStamp=Date.now(),this.Hs.TD())};z.prototype.sqa=function(){var y=this,da,ia,ca,ba,ja;return new Promise(function(la,ha){if(y.en)da=new FormData,da.append("file",y.en.fileHandle,y.en.fileHandle.name),
ia=y.en.loadCallback,ba="upload",ca=y.en.extension;else if(y.$u)da={uri:y.$u.uri,jua:y.$u.shareId},da=Object.keys(da).map(function(qa){return qa+"="+(da[qa]?encodeURIComponent(da[qa]):"")}).join("&"),ja="application/x-www-form-urlencoded; charset=UTF-8",ia=y.$u.loadCallback,ba="url",ca=y.$u.extension;else{la();return}var ka=new XMLHttpRequest,pa=Object(aa.k)(y.af,"AuxUpload");pa=Object(a.a)(pa,{type:ba,ext:ca});ka.open("POST",pa);ka.withCredentials=y.Yh();ja&&ka.setRequestHeader("Content-Type",ja);
ka.addEventListener("load",function(){if(ka.readyState===ka.DONE&&200===ka.status){var qa=JSON.parse(ka.response);y.mJ=qa.uri;ia(qa);la(qa)}});ka.addEventListener("error",function(){ha(ka.statusText+" "+JSON.stringify(ka))});y.en&&null!=y.en.onProgress&&(ka.upload.onprogress=function(qa){y.en.onProgress(qa)});ka.send(da)})};z.prototype.Pla=function(y){this.password=y||null;this.Km.Qt()||(this.Km=new b,this.Ch({t:"pages"}));return this.Km.promise};z.prototype.Qy=function(y){this.KJ=y||null;this.Km.Qt()||
this.Ch({t:"pages"});return this.Km.promise};z.prototype.tw=function(y){y=Object.assign(y,{uri:encodeURIComponent(this.mJ)});this.KJ&&(y.ext=this.KJ);this.wh&&(y.c=this.wh);this.password&&(y.pswd=this.password);this.EI&&(y.cacheKey=this.EI);this.hM&&(y.officeOptions=this.hM);return y};z.prototype.xma=function(){0<this.qu.length()&&10>=this.qs&&this.yma(this.qu.pop().data)};z.prototype.L8=function(y){0<this.qu.length()&&this.qu.contains(y)&&this.qu.remove(y)};z.prototype.Ch=function(y){y=this.tw(y);
this.Hs.send(y)};z.prototype.G_=function(y,da){10<this.qs?this.qu.push(y,da):(this.qs++,y=this.tw(da),this.Hs.send(y))};z.prototype.yma=function(y){this.qs++;y=this.tw(y);this.Hs.send(y)};z.prototype.Ol=function(y){return y};z.prototype.GW=function(y){this.qO&&y?Object(ea.j)("Server failed health check. Single server mode ignoring check."):!this.Jsa&&y&&3>=this.li?(this.TK=!0,this.Hs.kq()):3<this.li&&(this.qO=!0)};z.prototype.Qia=function(y){var da=this,ia=y.data,ca=y.err,ba=y.t;switch(ba){case "upload":ca?
this.tqa.reject(ca):this.tqa.resolve("Success");break;case "pages":ca?this.Km.reject(ca):na(ia,ba,this.Km)&&this.Km.resolve(ia);break;case "config":if(ca)this.Wp.reject(ca);else if(na(ia,ba,this.Wp)){this.GW(ia.unhealthy);ia.id&&(this.id=ia.id);if(ia.auth){var ja=Object(e.a)("wvsQueryParameters");ja.auth=ia.auth;Object(e.b)("wvsQueryParameters",ja)}ia.serverVersion&&(this.qG=ia.serverVersion,Object(ea.h)("[WebViewer Server] server version: "+this.qG));ia.serverID?(this.li=ia.serverID===this.L_&&this.TK?
this.li+1:0,this.L_=ia.serverID):this.li=0;this.TK=!1;this.Wp.resolve(ia)}break;case "health":ca?this.Wp.reject(ca):na(ia,ba,this.Wp)&&this.GW(ia.unhealthy);break;case "pdf":ia.url=Object(a.a)(this.af+"../"+encodeURI(ia.url));ca?this.zf.reject(ca):na(ia,ba,this.zf)&&this.zf.resolve(ia);break;case "ApString2Xod":ia.url=Object(a.a)(this.af+"../data/"+encodeURI(ia.url));ca?this.ij[ia.rID].reject(ca):na(ia,ba,this.ij[ia.rID])&&this.ij[ia.rID].resolve(ia);break;case "docmod":ia.url=Object(a.a)(this.af+
"../"+encodeURI(ia.url));ca?this.ij[ia.rID].reject(ca):na(ia,ba,this.zf)&&this.ij[ia.rID].resolve(ia);break;case "xod":if(ca)this.Ie&&this.Ie.cj()&&this.Ie.reject(ca),this.He&&this.He.cj()&&this.He.reject(ca);else if(ia.notFound)ia.noCreate||this.Ie&&this.Ie.cj()&&this.Ie.resolve(ia),this.He&&this.He.cj()&&this.He.resolve(ia);else{ia.url&&(ia.url=Object(a.a)(this.af+"../"+encodeURI(ia.url)));if(!this.He||this.He.Qt())this.He=new b,this.He.request={t:"xod",noCreate:!0};this.Ie||(this.Ie=new b,this.Ie.request=
{t:"xod"});this.He.resolve(ia);this.Ie.resolve(ia)}break;case "cAnnots":ja=this.Gf;if(ca)ja.reject(ca);else if(na(ia,ba,ja)){ja.KN();var la=[],ha=ia.annots;ia=function(va){var Aa=ha[va].s,ta=ha[va].e,Ea=ka.af+"../"+encodeURI(ha[va].xfdf),Ha="true"===ha[va].hasAppearance?Object(a.a)(Ea+".xodapp"):null,za=Object(fa.range)(Aa,ta+1);la[va]={range:za,promise:new Promise(function(Ja,Ma){var Ka=new XMLHttpRequest;Ka.open("GET",Object(a.a)(Ea));Ka.responseType="text";Ka.withCredentials=da.Yh();Ka.addEventListener("load",
function(){Ka.readyState===Ka.DONE&&200===Ka.status&&Ja({Br:Ka.response,Dl:Ha,range:za})});Ka.addEventListener("error",function(){Ma(Ka.statusText+" "+JSON.stringify(Ka))});Ka.send()})}};var ka=this;for(ca=0;ca<ha.length;ca++)ia(ca);ja.resolve(la)}break;case "annots":if(ca)this.Gf.reject(ca);else if(na(ia,ba,this.Gf)){this.Gf.KN();var pa=new XMLHttpRequest;ja=this.af+"../"+encodeURI(ia.url);var qa=ia.hasAppearance?Object(a.a)(ja+".xodapp"):null;pa.open("GET",Object(a.a)(ja));pa.responseType="text";
pa.withCredentials=this.Yh();pa.addEventListener("load",function(){pa.readyState===pa.DONE&&200===pa.status&&da.Gf.resolve({Br:pa.response,Dl:qa})});pa.addEventListener("error",function(){da.Gf.reject(pa.statusText+" "+JSON.stringify(pa))});pa.send()}break;case "image":this.qs--;var ra=this.rh[ia.p];ca?ra.promise.reject(ca):na(ia,ba,ra)&&(ra.result=ia,ra.result.url=Object(a.a)(this.af+"../"+encodeURI(ra.result.url)),ra.resolve(ra.result));break;case "tiles":this.qs--;ra=ia.rID;ja=this.dg[ra];this.dg[ra]=
null;this.UC.push(ra);if(ca)ja.reject(ca);else if(na(ia,ba,ja)){for(ca=0;ca<ia.tiles.length;ca++)ia.tiles[ca]=Object(a.a)(this.af+"../"+encodeURI(ia.tiles[ca]));ja.resolve(ia)}break;case "text":ra=this.mj[ia.p];if(ca)ra.reject(ca);else if(na(ia,ba,ra)){ra.KN();var ua=new XMLHttpRequest;ia=Object(a.a)(this.af+"../"+encodeURI(ia.url));ua.open("GET",ia);ua.withCredentials=this.Yh();ua.addEventListener("load",function(){ua.readyState===ua.DONE&&200===ua.status&&(ra.result=JSON.parse(ua.response),ra.resolve(ra.result))});
ua.addEventListener("error",function(va){ra.reject(ua.statusText+" "+JSON.stringify(va))});ua.send()}break;case "progress":"loading"===ia.t&&this.trigger(x.a.Events.DOCUMENT_LOADING_PROGRESS,[ia.bytes,ia.total])}this.xma();!ba&&y.echo&&y&&"apstring2xod"===y.echo.t&&(y=y.echo.reqID)&&(2<=parseInt(this.qG,10)?this.ij[y].reject("Message unhandled by server"):this.ij[y].reject())};z.prototype.Lda=function(){return Object(ma.b)(this,void 0,void 0,function(){return Object(ma.d)(this,function(y){switch(y.label){case 0:return[4,
this.Fga()];case 1:return y.ca(),[2,this.Wp.promise]}})})};z.prototype.rda=function(y){for(var da=this,ia=new XMLHttpRequest,ca=Object(a.a)(this.af+"aul",{id:this.id}),ba=new FormData,ja={},la=0;la<y.body.length;la++){var ha=y.body[la];ja[ha.id]=ha.rI.w+";"+ha.rI.h;ba.append(ha.id,ha.rI.dataString)}y={t:"apstring2xod",reqID:this.oY++,parts:ja};var ka=this.tw(y);ba.append("msg",JSON.stringify(ka));this.ij[ka.reqID]=new b;ia.open("POST",ca);ia.withCredentials=this.Yh;ca=new Promise(function(pa,qa){ia.onreadystatechange=
function(){4===ia.readyState&&(200===ia.status?pa():qa("An error occurred while sending down appearance strings to the server"))}});ia.send(ba);return ca.then(function(){return da.ij[ka.reqID].promise})};z.prototype.p9=function(){var y=this.qG.split("-")[0].split("."),da=["1","5","9"];if(3!==y.length)throw Error("Invalid WVS version length.");if(3!==da.length)throw Error("Invalid version length.");for(var ia=0;ia<y.length;++ia){if(da.length===ia||y[ia]>da[ia])return-1;if(y[ia]!==da[ia])return 1}return 0};
z.prototype.Sp=function(){return 0>=this.p9()};z.prototype.TJ=function(){this.Gf||(this.Gf=new b,this.Sp()?this.Gf.request={t:"cAnnots"}:this.Gf.request={t:"annots"},this.Ch(this.Gf.request));return this.Gf.promise};z.prototype.qF=function(y,da){this.rh[da]||(this.rh[da]=new b,this.rh[da].request={t:"image",p:da},this.G_(y,this.rh[da].request));return this.rh[da].promise};z.prototype.Qla=function(y){this.mj[y]||(this.mj[y]=new b,this.mj[y].request={t:"text",p:y},this.Ch(this.mj[y].request));return this.mj[y].promise};
z.prototype.Rla=function(y,da,ia,ca,ba){var ja=this.dg.length;this.UC.length&&(ja=this.UC.pop());this.dg[ja]=new b;this.dg[ja].request={t:"tiles",p:da,z:ia,r:ca,size:ba,rID:ja};this.G_(y,this.dg[ja].request);return this.dg[ja].promise};z.prototype.n_=function(){this.zf||(this.zf=new b,this.zf.request={t:"pdf"},this.bU?this.zf.resolve({url:this.mJ}):this.Ch(this.zf.request));return this.zf.promise};z.prototype.OV=function(y){var da=this,ia=new XMLHttpRequest,ca=Object(a.a)(this.af+"aul",{id:this.id}),
ba=new FormData,ja={};y.annots&&(ja.annots="xfdf");y.watermark&&(ja.watermark="png");y.redactions&&(ja.redactions="redact");ja={t:"docmod",reqID:this.oY++,parts:ja};y.print&&(ja.print=!0);var la=this.tw(ja);ba.append("msg",JSON.stringify(la));return Promise.all([y.annots,y.watermark,y.redactions].map(function(ha){return Promise.resolve(ha)})).then(function(ha){var ka=ha[0],pa=ha[1];ha=ha[2];ka&&ba.append("annots",ka);pa&&ba.append("watermark",pa);ha&&ba.append("redactions",ha);da.ij[la.reqID]=new b;
ia.open("POST",ca);ia.withCredentials=da.Yh;ka=new Promise(function(qa,ra){ia.onreadystatechange=function(){4===ia.readyState&&(200===ia.status?qa():ra("An error occurred while sending down annotation data to the server"))}});ia.send(ba);return ka.then(function(){return da.ij[la.reqID].promise})})};z.prototype.tW=function(){this.He||(this.He=new b,this.He.request={t:"xod",noCreate:!0},this.Ch(this.He.request));return this.He.promise};z.prototype.Sla=function(){this.Ie||(this.Ie=new b,this.Ie.request=
{t:"xod"},this.Ch(this.Ie.request));return this.Ie.promise};z.prototype.No=function(){return!0};z.prototype.request=function(){};z.prototype.HZ=function(){};z.prototype.abort=function(){for(var y=0;y<this.dg.length;y++)this.dg[y]&&(this.dg[y].resolve(null),this.dg[y]=null,this.UC.push(y));this.close()};z.prototype.DF=function(y){this.wh=this.wh||{};this.wh.headers=y};z.prototype.To=function(y){this.wh=this.wh||{};this.wh.internal=this.wh.internal||{};this.wh.internal.withCredentials=y};z.prototype.Yh=
function(){return this.wh&&this.wh.internal?this.wh.internal.withCredentials:null};z.prototype.getFileData=function(){return Promise.reject()};return z}();Object(Ba.a)(r);Object(h.a)(r);Object(h.b)(r);wa["default"]=r},484:function(Ba,wa,r){var oa=r(0),na=r(2),ma=r(23),fa=r(43),ea=r(177),aa=r(77),w=function(){function h(e,a,b,f,n,z){void 0===b&&(b=null);void 0===f&&(f=null);void 0===n&&(n=null);void 0===z&&(z=null);this.YX=!1;this.li=0;this.TS=this.Pqa(e);this.url=a?this.TS+"/"+a:this.TS+"/ws";this.dJ=
b;this.py=f;this.rw=n;this.mN=z}h.prototype.Pqa=function(e){var a=e.indexOf("://"),b="ws://";0>a?a=0:(5===a&&(b="wss://"),a+=3);var f=e.lastIndexOf("/");0>f&&(f=e.length);return b+e.slice(a,f)};h.prototype.send=function(e){this.hp.readyState===WebSocket.CLOSED||this.YX||this.hp.send(JSON.stringify(e))};h.prototype.TD=function(){return Object(oa.b)(this,void 0,void 0,function(){var e,a=this;return Object(oa.d)(this,function(){e=Object(fa.a)("wvsQueryParameters");e.bcid=Object(ma.l)(8);Object(fa.b)("wvsQueryParameters",
e);return[2,new Promise(function(b,f){var n=Object(ea.a)(a.url);a.hp=new WebSocket(n);a.hp.onopen=function(){a.py&&a.py();b()};a.hp.onerror=function(z){a.YX=!0;f(z)};a.hp.onclose=function(z){var y=z.code;return Object(oa.b)(a,void 0,void 0,function(){var da=this;return Object(oa.d)(this,function(ia){switch(ia.label){case 0:return this.rw&&this.rw(),3E3===y?[3,3]:8>this.li++?[4,new Promise(function(ca){return setTimeout(function(){return Object(oa.b)(da,void 0,void 0,function(){return Object(oa.d)(this,
function(ba){switch(ba.label){case 0:return this.mN(),[4,this.TD()];case 1:return ba.ca(),ca(),[2]}})})},3E3)})]:[3,2];case 1:return ia.ca(),[3,3];case 2:f(aa.a),ia.label=3;case 3:return[2]}})})};a.hp.onmessage=function(z){z&&z.data&&(z=JSON.parse(z.data),z.hb?a.send({hb:!0}):z.end?close():a.dJ(z))}})]})})};h.prototype.kq=function(e){void 0===e&&(e=!1);this.li=0;e?this.hp.close(3E3):this.hp.close();return Promise.resolve()};return h}(),x=function(){function h(e,a,b,f,n,z,y){void 0===f&&(f=null);void 0===
n&&(n=null);void 0===z&&(z=null);void 0===y&&(y=null);this.li=this.pF=this.id=0;this.Ex=!1;this.request=null;e=this.nka(e);this.url=a?e+"/"+a+"pf":e+"/pf";this.jG=b;this.dJ=f;this.py=n;this.rw=z;this.mN=y}h.prototype.nka=function(e){var a=e.lastIndexOf("/");0>a&&(a=e.length);return e.slice(0,a)};h.prototype.p$=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&&e.shift();for(var a=0;a<e.length;++a)e[a].endsWith(",")&&
(e[a]=e[a].substr(0,e[a].length-1));return e};h.prototype.w_=function(){return Object(oa.b)(this,void 0,void 0,function(){var e=this;return Object(oa.d)(this,function(a){switch(a.label){case 0:return 8>this.li++?[4,new Promise(function(b){return setTimeout(function(){e.mN();e.TD();b()},3E3)})]:[3,2];case 1:a.ca(),a.label=2;case 2:return[2]}})})};h.prototype.pka=function(e){Object(oa.b)(this,void 0,void 0,function(){var a,b;return Object(oa.d)(this,function(f){switch(f.label){case 0:a=null,b=0,f.label=
1;case 1:if(!(b<e.length))return[3,6];a=JSON.parse(e[b]);if(!a)return[3,5];if(!a.end)return[3,2];close();return[3,5];case 2:if(!a.id||Number(a.id)===this.id)return[3,4];Object(na.j)("Reconnecting, new server detected");this.kq();return[4,this.w_()];case 3:return f.ca(),[3,5];case 4:a.hb&&Number(a.id)===this.id?this.send({hb:!0}):this.Ex||this.dJ(a),f.label=5;case 5:return++b,[3,1];case 6:return[2]}})})};h.prototype.Nia=function(e){Object(oa.b)(this,void 0,void 0,function(){var a,b,f;return Object(oa.d)(this,
function(n){switch(n.label){case 0:if(!(3<=e.readyState))return[3,2];try{a=e.responseText.length}catch(z){return Object(na.h)("caught exception"),[2]}if(0<a)try{b=this.p$(e.responseText),0===this.id&&0<b.length&&(f=JSON.parse(b.shift()),this.id=f.id,this.li=0),this.pka(b)}catch(z){}return this.Ex?[3,2]:[4,this.RU()];case 1:n.ca(),n.label=2;case 2:return[2]}})})};h.prototype.RU=function(){return Object(oa.b)(this,void 0,void 0,function(){var e=this;return Object(oa.d)(this,function(){return[2,new Promise(function(a,
b){function f(){return Object(oa.b)(e,void 0,void 0,function(){return Object(oa.d)(this,function(z){switch(z.label){case 0:b(),this.kq(),z.label=1;case 1:return this.Ex&&8>this.li?[4,this.w_()]:[3,3];case 2:return z.ca(),[3,1];case 3:return[2]}})})}e.request=new XMLHttpRequest;e.request.withCredentials=e.jG;var n=Object(ea.a)(e.url,0!==e.id?{id:String(e.id),uc:String(e.pF)}:{uc:String(e.pF)});e.pF++;e.request.open("GET",n,!0);e.request.setRequestHeader("Cache-Control","no-cache");e.request.setRequestHeader("X-Requested-With",
"XMLHttpRequest");e.request.onreadystatechange=function(){e.Nia(e.request)};e.request.addEventListener("error",f);e.request.addEventListener("timeout",f);e.request.addEventListener("load",function(){e.py&&e.py();a()});e.request.send()})]})})};h.prototype.TD=function(){var e=Object(fa.a)("wvsQueryParameters");e.bcid=Object(ma.l)(8);Object(fa.b)("wvsQueryParameters",e);this.pF=this.id=0;this.Ex=!1;return this.RU()};h.prototype.send=function(e){var a=this,b=new XMLHttpRequest;b.withCredentials=this.jG;
var f=Object(ea.a)(this.url,{id:String(this.id)}),n=new FormData;n.append("data",JSON.stringify(e));b.addEventListener("error",function(){a.kq()});b.open("POST",f);b.setRequestHeader("X-Requested-With","XMLHttpRequest");b.send(n)};h.prototype.kq=function(){this.id=0;this.Ex=!0;this.rw&&this.rw();this.request.abort();return Promise.resolve()};return h}();Ba=function(){function h(e,a,b){this.wT=e;this.target=a;this.jG=b}h.prototype.dda=function(e,a,b,f,n){void 0===e&&(e=!0);void 0===a&&(a=null);void 0===
b&&(b=null);void 0===f&&(f=null);void 0===n&&(n=null);return e?new w(this.wT,this.target,a,b,f,n):new x(this.wT,this.target,this.jG,a,b,f,n)};return h}();wa.a=Ba}}]);}).call(this || window)
