window.wp=window.wp||{};(function(b){var r,k,i,o,m,q,j=/\s?\bwp-format-[^ ]+/g,f=120,n=360,p="standard",a="short-format",d=["status"],h=["status","aside","image","audio","video"],e=["status","aside"],c=["standard","chat","status","aside","gallery"];function s(t){m.val(t);i.prop("className",i.prop("className").replace(j,"")).addClass("wp-format-"+t);o.prop("className",o.prop("className").replace(j,"")).addClass("wp-format-"+t)}function g(w,u){var t,v=b("#content, #content_ifr");t=v.outerHeight();if(f600){z=600}C+=' width="'+z+'"'}if(F.height){B=F.height;if(F.width&&z<'+E+C+' class="wp-'+E+'-shortcode" controls="controls" preload="none">");b(".wp-"+E+"-shortcode").mediaelementplayer()};r.on("select",function(){var z=0,B=0,A,C=r.state().get("selection").first().toJSON();if(0===C.mime.indexOf("audio")){u.val(C.url);v(C)}else{if(0===C.mime.indexOf("video")){C.src=C.url;u.val(wp.shortcode.string({tag:"video",attrs:_.pick(C,"src","width","height")}));v(C)}else{A=wp.media.string.image({align:getUserSetting("align"),size:getUserSetting("imgsize"),link:getUserSetting("urlbutton")},C);u.val(A);b("#image-preview").remove();if(C.width){z=C.width>600?600:C.width}if(C.height){B=C.height}if(z','",""].join(""))}}});r.open()})})}(jQuery));