/** 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([[2],{344:function(Ca,va,ba){function pa(r){return new Promise(function(n){return Object(ca.b)(void 0,void 0,void 0,function(){var b,a,e,f,x,w,h,y;return Object(ca.d)(this,function(aa){switch(aa.label){case 0:return[4,fa(r)];case 1:return b=aa.ia(),1<b?[4,ka(r)]:[3,3];case 2:a=aa.ia();e=a.split(",")[1];f=window.atob(e);x=f.length;w=new Uint8Array(x);for(h=0;h<x;h++)w[h]=f.charCodeAt(h);n(w);return[3,4];case 3:y=new FileReader,y.readAsArrayBuffer(r),
y.onloadend=function(){n(y.result)},aa.label=4;case 4:return[2]}})})})}function ka(r,n){return new Promise(function(b){var a=new Image,e=new FileReader;e.readAsDataURL(r);a.onload=function(){return Object(ca.b)(this,void 0,void 0,function(){var f,x,w,h,y,aa;return Object(ca.d)(this,function(ja){switch(ja.label){case 0:return f=a.width,x=a.height,w=document.createElement("canvas"),h=w.getContext("2d"),[4,la()];case 1:return y=ja.ia(),w.width=f,w.height=x,[4,fa(r)];case 2:aa=ja.ia();if(!y)switch(4<
aa&&9>aa&&(w.width=x,w.height=f),aa){case 2:h&&h.transform(-1,0,0,1,f,0);break;case 3:h&&h.transform(-1,0,0,-1,f,x);break;case 4:h&&h.transform(1,0,0,-1,0,x);break;case 5:h&&h.transform(0,1,1,0,0,0);break;case 6:h&&h.transform(0,1,-1,0,x,0);break;case 7:h&&h.transform(0,-1,-1,0,x,f);break;case 8:h&&h.transform(0,-1,1,0,0,f)}1<aa?(h.drawImage(a,0,0),b(w.toDataURL(n&&n.mimeType?n.mimeType:z.JPEG,n&&n.n0?n.n0:.9))):b(e.result);return[2]}})})};e.onloadend=function(){a.src=e.result}})}function la(){return new Promise(function(r,
n){var b=new Image;b.onload=function(){r(1===b.naturalWidth)};b.onerror=n;b.src="data:image/jpeg;base64,/9j/4QBiRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAYAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAAITAAMAAAABAAEAAAAAAAAAAABIAAAAAQAAAEgAAAAB/9sAQwAEAwMEAwMEBAMEBQQEBQYKBwYGBgYNCQoICg8NEBAPDQ8OERMYFBESFxIODxUcFRcZGRsbGxAUHR8dGh8YGhsa/9sAQwEEBQUGBQYMBwcMGhEPERoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoaGhoa/8IAEQgAAQACAwERAAIRAQMRAf/EABQAAQAAAAAAAAAAAAAAAAAAAAf/xAAUAQEAAAAAAAAAAAAAAAAAAAAA/9oADAMBAAIQAxAAAAF/P//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAQUCf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Bf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Bf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEABj8Cf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8hf//aAAwDAQACAAMAAAAQH//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQMBAT8Qf//EABQRAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIBAT8Qf//EABQQAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQEAAT8Qf//Z"})}
function fa(r){return new Promise(function(n){var b=new FileReader;b.onload=function(){var a=new DataView(b.result);65496!==a.getUint16(0,!1)&&n(-2);for(var e=a.byteLength,f=2;f<e;){var x=a.getUint16(f,!1);f+=2;if(65505===x){1165519206!=a.getUint32(f+=2,!1)&&n(-1);x=18761===a.getUint16(f+=6,!1);f+=a.getUint32(f+4,x);var w=a.getUint16(f,x);f+=2;for(var h=0;h<w;h++)274==a.getUint16(f+12*h,x)&&n(a.getUint16(f+12*h+8,x))}else if(65280!==(x&65280))break;else f+=a.getUint16(f,!1)}n(-1)};b.readAsArrayBuffer(r.slice(0,
65536))})}ba.d(va,"a",function(){return pa});var ca=ba(2),z;(function(r){r.JPEG="image/jpeg";r.PNG="image/png"})(z||(z={}))}}]);}).call(this || window)
