/** 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],{443:function(ia,ba,e){e.r(ba);var ea=e(1),x=e(0);e.n(x);var ha=e(2),ca=e(147);ia=e(51);var da=e(94),aa=e(246),w=e(71),y=e(245);e=e(376);var n=window,h=function(){function e(e,f,h){var n=-1===e.indexOf("?")?"?":"&";switch(f){case w.a.NEVER_CACHE:this.url=e+n+"_="+Object(x.uniqueId)();break;default:this.url=e}this.jf=h;this.request=new XMLHttpRequest;this.request.open("GET",this.url,!0);this.request.setRequestHeader("X-Requested-With", "XMLHttpRequest");this.request.overrideMimeType?this.request.overrideMimeType("text/plain; charset=x-user-defined"):this.request.setRequestHeader("Accept-Charset","x-user-defined");this.status=y.a.NOT_STARTED}e.prototype.start=function(f,h){var n=this,r=this,w=this.request,x;r.lx=0;f&&Object.keys(f).forEach(function(e){n.request.setRequestHeader(e,f[e])});h&&(this.request.withCredentials=h);this.XD=setInterval(function(){var f=0===window.document.URL.indexOf("file:///");f=200===w.status||f&&0===w.status; if(w.readyState!==y.b.DONE||f){try{w.responseText}catch(ra){return}r.lx=this.ut;)switch(this.state){case f.LOCAL_HEADER:this.em=n=this.Mga(e.slice(0,this.ut));if(n.cu!==ca.g)throw Error("Wrong signature in local header: "+ n.cu);e=e.slice(this.ut);this.state=f.FILE;this.ut=n.lH+n.Bq+n.jw+this.IM;this.trigger(h.Events.HEADER,[n]);break;case f.FILE:this.em.name=e.slice(0,this.em.Bq);this.Ln[this.em.name]=this.em;n=this.ut-this.IM;var r=e.slice(this.em.Bq+this.em.jw,n);this.trigger(h.Events.FILE,[this.em.name,r,this.em.CH]);e=e.slice(n);if(e.slice(0,this.IM)===ca.h)this.state=f.LOCAL_HEADER,this.ut=ca.c;else return this.state=f.CENTRAL_DIR,!0}this.buffer=e;return!1};h.Events={HEADER:"header",FILE:"file"};return h}(aa.a); Object(ia.a)(r);ia=function(e){function f(f,n,w,x,y){w=e.call(this,f,w,x)||this;w.url=f;w.stream=new h(f,n);w.de=new r;w.RW=window.createPromiseCapability();w.sX={};w.jf=y;return w}Object(ea.c)(f,e);f.prototype.Zx=function(e){var f=this;this.request([this.Aj,this.Sk,this.zj]);this.stream.addEventListener(h.Events.DATA,function(h){try{if(f.de.Bga(h))return f.stream.finish()}catch(ma){throw f.stream.abort(),f.fw(ma),e(ma),ma;}});this.stream.addEventListener(h.Events.DONE,function(h){f.gga=!0;f.RW.resolve(); h&&(f.fw(h),e(h))});this.de.addEventListener(r.Events.HEADER,Object(x.bind)(this.rX,this));this.de.addEventListener(r.Events.FILE,Object(x.bind)(this.bha,this));return this.stream.start(this.jf,this.withCredentials)};f.prototype.MT=function(e){var f=this;this.RW.promise.then(function(){e(Object.keys(f.de.Ln))})};f.prototype.yo=function(){return!0};f.prototype.request=function(e){var f=this;this.gga&&e.forEach(function(e){f.sX[e]||f.Dla(e)})};f.prototype.rX=function(){};f.prototype.abort=function(){this.stream&& this.stream.abort()};f.prototype.Dla=function(e){this.trigger(da.a.Events.PART_READY,[{cb:e,error:"Requested part not found",Ki:!1,cg:!1}])};f.prototype.bha=function(e,f,h){this.sX[e]=!0;this.trigger(da.a.Events.PART_READY,[{cb:e,data:f,Ki:!1,cg:!1,error:null,gd:h}])};return f}(da.a);Object(e.a)(ia);Object(e.b)(ia);ba["default"]=ia}}]);}).call(this || window)