/** 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([[10],{375:function(Ba,ya,z){z.r(ya);var qa=z(1);Ba=z(47);var ka=z(339),la=z(198),ha=window;z=function(){function da(y){var r=this;this.Z7=function(h){return h&&("image"===h.type.split("/")[0].toLowerCase()||h.name&&!!h.name.match(/.(jpg|jpeg|png|gif)$/i))};this.file=y;this.l8=new Promise(function(h){return Object(qa.b)(r,void 0,void 0,function(){var a;return Object(qa.d)(this,function(b){switch(b.label){case 0:return this.Z7(this.file)?
[4,Object(la.b)(y)]:[3,2];case 1:a=b.ea(),this.file=new File([a],null===y||void 0===y?void 0:y.name,{type:y.type}),b.label=2;case 2:return h(!0),[2]}})})})}da.prototype.getFileData=function(y){var r=this,h=new FileReader;h.onload=function(a){r.trigger(da.Events.DOCUMENT_LOADING_PROGRESS,[a.loaded,a.loaded]);y(new Uint8Array(a.target.result))};h.onprogress=function(a){a.lengthComputable&&r.trigger(da.Events.DOCUMENT_LOADING_PROGRESS,[a.loaded,0<a.total?a.total:0])};h.readAsArrayBuffer(this.file)};
da.prototype.getFile=function(){return Object(qa.b)(this,void 0,Promise,function(){return Object(qa.d)(this,function(y){switch(y.label){case 0:return[4,this.l8];case 1:return y.ea(),ha.utils.isJSWorker?[2,this.file.path]:[2,this.file]}})})};da.Events={DOCUMENT_LOADING_PROGRESS:"documentLoadingProgress"};return da}();Object(Ba.a)(z);Object(ka.a)(z);Object(ka.b)(z);ya["default"]=z}}]);}).call(this || window)
