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