window.wp=window.wp||{};(function(e){var a,b,f,d,h=["standard","chat","status","aside","gallery"],i=e(".post-formats-fields");function c(j){a.get(0).className=a.get(0).className.replace(/\bwp-format-[^ ]+/g,"");a.addClass("wp-format-"+j)}function g(p){var l,j,k=p.parent(),o=p.data("wp-format"),m=e(".post-format-description"),n=e("#title");if(typeof a==="undefined"){a=e("#post-body-content")}k.slideUp().find("a.active").removeClass("active");p.addClass("active");e("#post_format").val(o);e(".post-format-change").show().find("span.icon").removeClass(postFormats.currentPostFormat).addClass(o);if(-1600){o=600}r+=' width="'+o+'"'}if(u.height){q=u.height;if(u.width&&o<'+t+r+' class="wp-'+t+'-shortcode" controls="controls" preload="none">");e(".wp-"+t+"-shortcode").mediaelementplayer()};b.on("select",function(){var o=0,q=0,p,r=b.state().get("selection").first().toJSON();if(0===r.mime.indexOf("audio")){k.val(r.url);d(r)}else{if(0===r.mime.indexOf("video")){r.src=r.url;k.val(wp.shortcode.string({tag:"video",attrs:_.pick(r,"src","width","height")}));d(r)}else{p=wp.media.string.image({},r);k.val(p);e("#image-preview").remove();if(r.width){o=r.width>600?600:r.width}if(r.height){q=r.height}if(o','",""].join(""))}}});b.open()})})})(jQuery);